2015-10-18 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / ChangeLog
blobeddf22a1641feb8c05ee0fbed2b6dba1c025d128
1 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3         * config/darwin-driver.h: Adjust includes to add diagnostic-core.
5 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7         * lra-constraints.c (add_next_usage_insn): Change argument type
8         from rtx to rtx_insn *.
10 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
12         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
13         for Lakemont.
15 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
17         * config/tilepro/gen-mul-tables.cc: Adjust include files.
18         * config/tilegx/mul-tables.c: Regenerate.
19         * config/tilepro/mul-tables.c: Regenerate.
21         * config/tilegx/tilegx-c.c: Adjust include files.
22         * config/tilegx/tilegx.c: Likewise.
23         * config/tilepro/tilepro-c.c: Likewise.
24         * config/tilepro/tilepro.c: Likewise.
25         * config/aarch64/aarch64-builtins.c: Likewise.
26         * config/aarch64/aarch64.c: Likewise.
27         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28         * config/alpha/alpha.c: Likewise.
29         * config/arc/arc.c: Likewise.
30         * config/arm/aarch-common.c: Likewise.
31         * config/arm/arm-builtins.c: Likewise.
32         * config/arm/arm-c.c: Likewise.
33         * config/arm/arm.c: Likewise.
34         * config/avr/avr-c.c: Likewise.
35         * config/avr/avr-devices.c: Likewise.
36         * config/avr/avr-log.c: Likewise.
37         * config/avr/avr.c: Likewise.
38         * config/bfin/bfin.c: Likewise.
39         * config/c6x/c6x.c: Likewise.
40         * config/cr16/cr16.c: Likewise.
41         * config/cris/cris.c: Likewise.
42         * config/darwin-c.c: Likewise.
43         * config/darwin-driver.c: Likewise.
44         * config/darwin.c: Likewise.
45         * config/default-c.c: Likewise.
46         * config/epiphany/epiphany.c: Likewise.
47         * config/epiphany/mode-switch-use.c: Likewise.
48         * config/epiphany/resolve-sw-modes.c: Likewise.
49         * config/fr30/fr30.c: Likewise.
50         * config/frv/frv.c: Likewise.
51         * config/ft32/ft32.c: Likewise.
52         * config/glibc-c.c: Likewise.
53         * config/h8300/h8300.c: Likewise.
54         * config/i386/host-cygwin.c: Likewise.
55         * config/i386/host-mingw32.c: Likewise.
56         * config/i386/i386-c.c: Likewise.
57         * config/i386/i386.c: Likewise.
58         * config/i386/msformat-c.c: Likewise.
59         * config/i386/winnt-cxx.c: Likewise.
60         * config/i386/winnt-stubs.c: Likewise.
61         * config/i386/winnt.c: Likewise.
62         * config/ia64/ia64-c.c: Likewise.
63         * config/ia64/ia64.c: Likewise.
64         * config/iq2000/iq2000.c: Likewise.
65         * config/lm32/lm32.c: Likewise.
66         * config/m32c/m32c-pragma.c: Likewise.
67         * config/m32c/m32c.c: Likewise.
68         * config/m32r/m32r.c: Likewise.
69         * config/mcore/mcore.c: Likewise.
70         * config/mep/mep-pragma.c: Likewise.
71         * config/mep/mep.c: Likewise.
72         * config/microblaze/microblaze-c.c: Likewise.
73         * config/microblaze/microblaze.c: Likewise.
74         * config/mips/mips-tables.opt
75         * config/mips/mips.c: Likewise.
76         * config/mmix/mmix.c: Likewise.
77         * config/mn10300/mn10300.c: Likewise.
78         * config/moxie/moxie.c: Likewise.
79         * config/msp430/msp430-c.c: Likewise.
80         * config/msp430/msp430.c: Likewise.
81         * config/nds32/nds32-cost.c: Likewise.
82         * config/nds32/nds32-fp-as-gp.c: Likewise.
83         * config/nds32/nds32-intrinsic.c: Likewise.
84         * config/nds32/nds32-isr.c: Likewise.
85         * config/nds32/nds32-md-auxiliary.c: Likewise.
86         * config/nds32/nds32-memory-manipulation.c: Likewise.
87         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
88         * config/nds32/nds32-predicates.c: Likewise.
89         * config/nds32/nds32.c: Likewise.
90         * config/nios2/nios2.c: Likewise.
91         * config/nvptx/mkoffload.c: Likewise.
92         * config/nvptx/nvptx.c: Likewise.
93         * config/pa/pa.c: Likewise.
94         * config/pdp11/pdp11.c: Likewise.
95         * config/rl78/rl78-c.c: Likewise.
96         * config/rl78/rl78.c: Likewise.
97         * config/rs6000/host-darwin.c: Likewise.
98         * config/rs6000/rs6000-c.c: Likewise.
99         * config/rs6000/rs6000-linux.c: Likewise.
100         * config/rs6000/rs6000.c: Likewise.
101         * config/rx/rx.c: Likewise.
102         * config/s390/s390-c.c: Likewise.
103         * config/s390/s390.c: Likewise.
104         * config/sh/sh-c.c: Likewise.
105         * config/sh/sh-mem.cc: Likewise.
106         * config/sh/sh.c: Likewise.
107         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
108         * config/sh/sh_treg_combine.cc: Likewise.
109         * config/sol2-c.c: Likewise.
110         * config/sol2-cxx.c: Likewise.
111         * config/sol2-stubs.c: Likewise.
112         * config/sol2.c: Likewise.
113         * config/sparc/sparc-c.c: Likewise.
114         * config/sparc/sparc.c: Likewise.
115         * config/spu/spu-c.c: Likewise.
116         * config/spu/spu.c: Likewise.
117         * config/stormy16/stormy16.c: Likewise.
118         * config/v850/v850-c.c: Likewise.
119         * config/v850/v850.c: Likewise.
120         * config/vax/vax.c: Likewise.
121         * config/visium/visium.c: Likewise.
122         * config/vms/vms-c.c: Likewise.
123         * config/vms/vms.c: Likewise.
124         * config/vxworks.c: Likewise.
125         * config/winnt-c.c: Likewise.
126         * config/xtensa/xtensa.c: Likewise.
128 2015-10-16  Christian Bruel  <christian.bruel@st.com>
130         PR target/67745
131         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
132         (FUNCTION_BOUNDARY_P): New macro:
133         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function): 
134         New hook.
135         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
136         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
137         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
138         * gcc/function.c (allocate_struct_function): Call relayout_function hook.
139         * gcc/passes.c (rest_of_decl_compilation): Likewise.
141 2015-10-16  Christian Bruel  <christian.bruel@st.com>
143         PR target/67745
144         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
145         * config/arm/arm.c (arm_option_override_internal): Call
146         arm_override_options_after_change_1.
147         (arm_override_options_after_change): New function.
148         (arm_override_options_after_change_1): Likewise.
149         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
151 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
153         Revert:
154         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
155         empty constructors.
157 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
159         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
160         argument is an ADDR_EXPR.
162 2015-10-16  Richard Biener  <rguenther@suse.de>
164         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
165         and get rid of force_gimple_operand_gsi.
166         (gimple_fold_builtin_memory_chk): Likewise.
167         (gimple_fold_builtin_stxcpy_chk): Likewise.
168         (rewrite_to_defined_overflow): Likewise.
169         (gimple_convert_to_ptrofftype): New function.
170         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload,
171         declare.
173 2015-10-16  Richard Biener  <rguenther@suse.de>
175         * tree-nested.h (build_addr): Adjust prototype.
176         * tree-nested.c (build_addr): Remove context argument and use
177         mark_addressable.
178         (get_static_chain): Adjust calls to build_addr.
179         (convert_nl_goto_reference): Likewise.
180         (convert_tramp_reference_op): Likewise.
181         (finalize_nesting_tree_1): Likewise.
182         * value-prof.c (gimple_ic): Likewise.
183         * gimple-low.c (lower_builtin_setjmp): Likewise.
184         * tree-parloops.c (take_address_of): Likewise.
185         (create_call_for_reduction_1): Likewise.
186         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
187         (gimple_gen_ic_func_profiler): Likewise.
189 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
191         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
192         empty constructors.
194 2015-10-16  Michael Collison  <michael.collison@linaro.org>
195             Andrew Pinski <andrew.pinski@caviumnetworks.com>
197         * match.pd ((x < y) && (x < z) -> x < min (y,z),
198         (x > y) and (x > z) -> x > max (y,z))
200 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
201             Szabolcs Nagy  <szabolcs.nagy@arm.com>
203         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
204         (DYNAMIC_LINKER): Renamed to ...
205         (GLIBC_DYNAMIC_LINKER): This.
206         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
208 2015-10-15  Marek Polacek  <polacek@redhat.com>
210         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
211         gimple_call_builtin instead of is_gimple_call.
213 2015-10-15  Richard Biener  <rguenther@suse.de>
215         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
217 2015-10-15  Richard Biener  <rguenther@suse.de>
219         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
220         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
221         * tree-vect-loop.c (get_initial_def_for_induction): Drop
222         use of force_gimple_operand in favor of gimple_build.
223         Use vect_get_new_ssa_name.
224         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
225         (vectorizable_mask_load_store): Likewise.
226         (vectorizable_call): Likewise.
227         (vectorizable_store): Likewise.
228         (vectorizable_load): Likewise.
229         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
231 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
233         PR tree-optimization/67945
234         * tree-pass.h (PROP_gimple_opt_math): New property flag.
235         * generic-match-head.c (canonicalize_math_p): New function.
236         * gimple-match-head.c: Include tree-pass.h.
237         (canonicalize_math_p): New function.
238         * match.pd: Group math built-in rules into simplifications
239         and canonicalizations.  Guard the latter with canonicalize_math_p.
240         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
241         PROP_gimple_opt_math property.
243 2015-10-15  Marek Polacek  <polacek@redhat.com>
245         PR tree-optimization/67953
246         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
248 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
250         * config.gcc: Recognize "." in architecture base name for AArch64.
252 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
254         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
255         ROUND_UP macro.
256         * config/mips/mips.c (mips_setup_incoming_varargs): Use
257         ROUND_DOWN to calculate off.
258         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
259         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
260         rounded_size.
262 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
264         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
266 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
267             Torvald Riegel  <triegel@redhat.com>
269         PR target/67281
270         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
271         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
272         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
273         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
274         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
275         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
276         trechkpt, treclaim, tsr, ttest): New define_expands.
277         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
278         __TM_FENCE__ for htm.
279         * doc/extend.texi: Update documentation for htm builtins.
281 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
283         PR target/67967
284         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
285         REG_CFA_EXPRESSION to aligned SSE stores.
287 2015-10-14  Jeff Law  <law@redhat.com>
289         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
290         num_threaded_edges for successful FSM threads too.
292 2015-10-14  Richard Biener  <rguenther@suse.de>
294         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
295         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
296         (vect_get_vec_def_for_operand): Remove unused parameter.
297         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
298         (vect_create_epilog_for_reduction): Likewise.
299         (vectorizable_reduction): Likewise.
300         (vectorizable_live_operation): Likewise.
301         * tree-vect-patterns.c (type_conversion_p): Likewise.
302         (vect_recog_vector_vector_shift_pattern): Likewise.
303         (check_bool_pattern): Likewise.
304         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
305         (vect_analyze_slp_cost_1): Likewise.
306         * tree-vect-stmts.c (process_use): Likewise.
307         (vect_get_vec_def_for_operand): Do not handle reductions.
308         (vect_get_vec_defs): Adjust.
309         (vectorizable_mask_load_store): Likewise.
310         (vectorizable_call): Likewise.
311         (vectorizable_simd_clone_call): Likewise.
312         (vect_get_loop_based_defs): Likewise.
313         (vectorizable_conversion): Likewise.
314         (vectorizable_assignment): Likewise.
315         (vectorizable_shift): Likewise.
316         (vectorizable_operation): Likewise.
317         (vectorizable_store): Likewise.
318         (vectorizable_load): Likewise.
319         (vect_is_simple_cond): Likewise.
320         (vectorizable_condition): Likewise.
321         (vect_is_simple_use): Remove unused parameters.
322         (vect_is_simple_use_1): Adjust and rename.
324 2015-10-14  Richard Biener  <rguenther@suse.de>
326         PR tree-optimization/67915
327         * match.pd: Handle comparisons of addresses of STRING_CSTs.
328         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
329         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
330         stmt folding in favor of GIMPLE one.
332 2015-10-14  Marek Polacek  <polacek@redhat.com>
334         PR tree-optimization/67815
335         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
336         (reassociate_bb): Call it.
338 2015-10-14  Richard Biener  <rguenther@suse.de>
340         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
341         Reset info at start.
342         (vect_analyze_group_access_1): Add debug print.
343         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
344         (vect_compute_single_scalar_iteration_cost): ... to this.
345         (vect_analyze_loop_2): Adjust.
346         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
347         * tree-vectorizer.h: ... here.
348         (add_stmt_info_to_vec): Remove.
349         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
351 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
353         * targhooks.c (default_target_option_pragma_parse): Do not warn if
354         called on behalf of "#pragma GCC pop_options".
356 2015-10-14  Tom de Vries  <tom@codesourcery.com>
358         * cfganal.c (verify_no_unreachable_blocks): New function.
359         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
360         verify_no_unreachable_blocks.
361         cfganal.h (verify_no_unreachable_blocks): Declare.
363 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
365         * common.opt: Add flag_checking.
366         * system.h (CHECKING_P): Define.
368 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
369             Aldy Hernandez  <aldyh@redhat.com>
370             Ilya Verbin  <ilya.verbin@intel.com>
372         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
373         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
374         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
375         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
376         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
377         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
378         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
379         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
380         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
381         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
382         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
383         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
384         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
385         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
386         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
387         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
388         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
389         (struct cgraph_simd_clone_arg): Adjust comment.
390         * coretypes.h (struct gomp_ordered): New forward decl.
391         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
392         set critical clauses to it.
393         (gimple_build_omp_ordered): Return gomp_ordered * instead of
394         gimple *.  Add CLAUSES argument, set ordered clauses to it.
395         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
396         GIMPLE_OMP_ORDERED.
397         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
398         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
399         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
400         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
401         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
402         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
403         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
404         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
405         renumber
406         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
407         (gomp_critical): Add clauses field.
408         (gomp_ordered): New struct.
409         (is_a_helper <gomp_ordered *>::test): New inline.
410         (gimple_build_omp_critical): Add CLAUSES argument.
411         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
412         instead of gimple *.
413         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
414         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
415         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
416         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
417         inline functions.
418         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
419         (dump_gimple_omp_target): Handle enter data and exit data.
420         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
421         (dump_gimple_omp_critical): Print clauses.
422         (dump_gimple_omp_ordered): New function.
423         (dump_gimple_omp_task): Handle taskloop.
424         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
425         GIMPLE_OMP_ORDERED.
426         * gimple-walk.c (walk_gimple_op): Walk clauses on
427         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
428         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
429         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
430         (struct gimplify_omp_ctx): Add loop_iter_var,
431         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
432         and target_firstprivatize_array_bases fields.
433         (delete_omp_context): Release loop_iter_var.
434         (gimplify_bind_expr): Handle ORT_NONE.
435         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
436         ORT_COMBINED_TARGET.
437         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
438         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
439         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
440         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
441         ctx->target_map_scalars_firstprivate.
442         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
443         data sharing clauses.  For data sharing clause with VLA decl
444         on omp target/target data don't add firstprivate for the pointer.
445         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
446         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
447         the addition of ORT_COMBINED_TARGET.
448         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
449         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
450         pointers as zero length array sections and
451         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
452         data sharing.
453         (omp_check_private): Handle omp_member_access_dummy_var vars.
454         (find_decl_expr): New function.
455         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
456         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
457         Handle OMP_CLAUSE_GANG separately.  Handle
458         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
459         clauses.  Diagnose linear clause on combined
460         distribute {, parallel for} simd construct, unless it is the loop
461         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
462         Handle map clauses with COMPONENT_REF.  Initialize
463         ctx->target_map_scalars_firstprivate,
464         ctx->target_firstprivatize_array_bases and
465         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
466         linear clause even to target region if combined.  Remove
467         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
468         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
469         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
470         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
471         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
472         For linear clause on worksharing loop combined with parallel add
473         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
474         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
475         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
476         taskloop if needed.
477         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
478         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
479         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
480         GOMP_MAP_POINTER.
481         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
482         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
483         in target body.  Handle removal of struct mapping if struct is not
484         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
485         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
486         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
487         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
488         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
489         clause appear together.  Handle
490         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
491         clause if it has map-type-modifier always.  Handle
492         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
493         clauses.
494         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
495         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
496         callers.
497         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
498         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
499         iterators in doacross loops.
500         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
501         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
502         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
503         for the addition of ORT_COMBINED_TARGET.
504         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
505         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
506         and OMP_TARGET_EXIT_DATA.
507         (gimplify_omp_ordered): New function.
508         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
509         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
510         Gimplify clauses on OMP_CRITICAL.
511         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
512         expand_GOMP_SIMD_ORDERED_END): New functions.
513         * internal-fn.def (GOMP_SIMD_ORDERED_START,
514         GOMP_SIMD_ORDERED_END): New internal functions.
515         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
516         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
517         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
518         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
519         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
520         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
521         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
522         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
523         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
524         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
525         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
526         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
527         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
528         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
529         adjust type.
530         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
531         GOMP_target_data_41, adjust type.
532         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
533         GOMP_target_update_41, adjust type.
534         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
535         field.
536         (struct omp_for_data): Add ordered and simd_schedule fields.
537         (omp_member_access_dummy_var, unshare_and_remap_1,
538         unshare_and_remap, is_taskloop_ctx): New functions.
539         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
540         (extract_omp_for_data): Handle taskloops and doacross loops
541         and simd schedule modifier.
542         (omp_adjust_chunk_size): New function.
543         (get_ws_args_for): Use it.
544         (lookup_sfield): Change first argument to splay_tree_key,
545         add overload with first argument tree.
546         (maybe_lookup_field): Likewise.
547         (use_pointer_for_field): Handle omp_member_access_dummy_var.
548         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
549         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
550         (build_outer_var_ref): Add LASTPRIVATE argument, handle
551         taskloops and omp_member_access_dummy_var vars.
552         (build_sender_ref): Change first argument to splay_tree_key,
553         add overload with first argument tree.
554         (install_var_field): For mask & 8 use &DECL_UID as key instead
555         of the tree itself.
556         (fixup_child_record_type): Const qualify *.omp_data_i.
557         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
558         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
559         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
560         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
561         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
562         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
563         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
564         kinds.
565         (add_taskreg_looptemp_clauses): New function.
566         (scan_omp_parallel): Use it.
567         (scan_omp_task): Likewise.
568         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
569         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
570         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
571         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
572         sandwiched taskloop constructs.  Type check
573         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
574         region.  Diagnose depend(source) or depend(sink:...) on
575         target constructs or task/taskloop.
576         (handle_simd_reference): Use get_name.
577         (lower_rec_input_clauses): Likewise.  Ignore all
578         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
579         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
580         before passing it to omp_clause_{default,copy}_ctor.  Handle
581         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
582         lastprivate_firstprivate flag for linear that needs copyin and
583         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
584         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
585         on taskloop lookup decl in outer context.  Pass true to
586         build_outer_var_ref lastprivate argument.  Handle
587         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
588         outside of outer taskloop for.
589         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
590         OMP_CLAUSE_DECL.
591         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
592         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
593         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
594         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
595         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
596         abstract origin.  Handle omp_member_access_dummy_var vars.
597         (expand_parallel_call): Use expand_omp_build_assign.
598         (expand_task_call): Handle taskloop construct expansion.  Add
599         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
600         integers.  Add priority argument to GOMP_task* calls.  Or in
601         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
602         GOMP_task call.
603         (expand_omp_build_assign): Add prototype.  Add AFTER
604         argument, if true emit statements after *GSI_P and continue linking.
605         (expand_omp_taskreg): Adjust expand_task_call caller.
606         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
607         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
608         zero_iter2_bb and first_zero_iter2 arguments, handle computation
609         of counts even for ordered loops.
610         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
611         (expand_omp_ordered_source, expand_omp_ordered_sink,
612         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
613         functions.
614         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
615         clauses on worksharing loop.  Handle DOACROSS loop expansion.
616         (expand_omp_for_static_nochunk): Handle linear clauses on
617         worksharing loop.  Adjust expand_omp_for_init_counts
618         callers.
619         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
620         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
621         expand_omp_for_init_counts callers.
622         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
623         functions.
624         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
625         Handle doacross loops.
626         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
627         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
628         GOMP_target_{41,update_41,enter_exit_data} libcalls.
629         (expand_omp): Don't expand ordered depend constructs here, record
630         ord_stmt instead for later expand_omp_for_generic.
631         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
632         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
633         clause as stand-alone directive.
634         (lower_omp_ordered_clauses): New function.
635         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
636         don't lower anything.
637         (lower_omp_for_lastprivate): Use last _looptemp_ clause
638         on taskloop for comparison.
639         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
640         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
641         expansion for linear adjustments.
642         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
643         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
644         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
645         to tree * pointing to the stmt's clauses.
646         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
647         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
648         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
649         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
650         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
651         clauses.  Always use short kind and 8-bit align shift.
652         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
653         (struct lower_omp_regimplify_operands_data): New type.
654         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
655         New functions.
656         (lower_omp_1): Use lower_omp_regimplify_operands instead of
657         gimple_regimplify_operands.
658         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
659         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
660         clause as stand-alone directive.
661         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
662         (simd_clone_mangle): Mangle the various linear kinds
663         per the new ABI.
664         (simd_clone_adjust_argument_types): Handle
665         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
666         (simd_clone_init_simd_arrays): Don't do anything for uval.
667         (simd_clone_adjust): Handle
668         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
669         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
670         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
671         * omp-low.h (omp_member_access_dummy_var): New prototype.
672         * passes.def (pass_simduid_cleanup): Schedule another copy of the
673         pass after all optimizations.
674         * tree.c (omp_clause_code_name): Add entries for
675         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
676         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
677         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
678         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
679         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
680         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
681         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
682         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
683         clauses.
684         * tree-core.h (enum omp_clause_linear_kind): New.
685         (struct tree_omp_clause): Change type of map_kind
686         from unsigned char to unsigned int.  Add subcode.if_modifier
687         and subcode.linear_kind fields.
688         (enum omp_clause_code): Add
689         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
690         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
691         (OMP_CLAUSE_REDUCTION): Document
692         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
693         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
694         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
695         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
696         operand.
697         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
698         operand.
699         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
700         codes.
701         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
702         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
703         char.
704         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
705         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
706         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
707         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
708         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
709         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
710         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
711         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
712         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
713         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
714         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
715         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
716         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
717         * tree-inline.c (remap_gimple_stmt): Handle clauses on
718         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
719         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
720         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
721         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
722         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
723         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
724         (convert_local_omp_clauses): Likewise.
725         * tree-pretty-print.c (dump_omp_clause): Handle
726         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
727         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
728         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
729         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
730         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
731         GOMP_MAP_FORCE_DEALLOC.  Handle
732         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
733         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
734         and clauses on OMP_ORDERED and OMP_CRITICAL.
735         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
736         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
737         (vectorize_loops): Adjust comments.
738         (pass_simduid_cleanup::execute): Likewise.
739         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
740         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
741         * wide-int.h (wi::gcd): New.
743 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
745         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
746         (ix86_function_arg_advance): Ditto.
747         (ix86_function_arg): Ditto.
748         (ix86_gimplify_va_arg): Ditto.
749         (ix86_class_max_nregs): Ditto.
750         (inline_memory_move_cost): Ditto.
751         (ix86_set_reg_reg_cost): Ditto.
752         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
754 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
756         PR middle-end/67912
757         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
759 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
761         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
762         ROUND_UP macro and UNITS_PER_WORD * 2.
763         * config/sparc/sparc.c (sparc_compute_frame_size):
764         Use ROUND_UP and ROUND_DOWN macros where applicable.
765         (function_arg_record_value, function_arg_record_value_1)
766         (function_arg_record_value_1): Ditto.
767         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
768         alignment to double-word.
769         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
770         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
771         rounded_size.
773 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
775         * gcc/rtl.h (print_insn): Fix prototype.
777 2015-10-13  Tom de Vries  <tom@codesourcery.com>
779         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
780         -1.  Add assert that returned entry matches phi argument.
781         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
782         free_stmt_vec_info_vec ...
783         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
784         with -1.
786 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
788         PR tree-optimization/67909, 67947
789         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
790         really skip the inner loop.
792 2015-10-13  Jeff Law  <law@redhat.com>
794         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
795         Allow single block jump threading paths.
797 2015-10-13  Tom de Vries  <tom@codesourcery.com>
799         PR tree-optimization/67476
800         * doc/invoke.texi (@item parloops-schedule): New item.
801         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
802         * tree-parloops.c: Include params-enum.h.
803         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
805 2015-10-13  Tom de Vries  <tom@codesourcery.com>
807         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
808         * params-enum.h: New file.
809         * opts.c (handle_param): Handle case that param arg is a string.
810         * params-list.h: Handle DEFPARAMENUM5 in params.def.
811         * params.c (find_param): New function, factored out of ...
812         (set_param_value): ... here.
813         (param_string_value_p): New function.
814         * params.h (struct param_info): Add value_names field.
815         (find_param, param_string_value_p): Declare.
817 2015-10-13  Tom de Vries  <tom@codesourcery.com>
819         PR tree-optimization/67476
820         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
822 2015-10-13  Richard Biener  <rguenther@suse.de>
824         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
825         the data dependence vector.
826         (vect_peeling_hash_insert): Get the peeling hash table as argument.
827         (vect_peeling_hash_get_lowest_cost): Likewise.
828         (vect_enhance_data_refs_alignment): Adjust.
829         (struct _vect_peel_info, struct _vect_peel_extended_info,
830         struct peel_info_hasher): Move from ...
831         * tree-vectorizer.h: ... here.
832         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
833         (LOOP_VINFO_PEELING_HTAB): Likewise.
834         (struct _loop_vec_info): Remove min_profitable_iters and
835         peeling_htab members.
836         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
837         here.
838         (destroy_loop_vec_info): Adjust.
839         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
840         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
841         to estimate alias versioning cost.
842         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
844 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
846         * real.h (real_isinteger): Declare.
847         * real.c (real_isinteger): New function.
848         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
849         if y is an even integer.
851 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
853         revert:
854         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
855         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
856         counts when these are more informative.
858 2015-10-12  Jeff Law  <law@redhat.com>
860         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
861         (fsm_find_control_stmt_paths): Change name of first argument to
862         more accurately relfect what it really is.  Handle simplification
863         of GIMPLE_COND after finding a thread path for NAME.
864         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
865         nontrivial conditions to be handled by FSM threader.
866         (thread_through_normal_block): Extract the name to looup via
867         FSM threader from COND_EXPR.
869         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
870         restriction that traced SSA_NAME is a user variable.
872 2015-10-12  Tom de Vries  <tom@codesourcery.com>
874         PR tree-optimization/67476
875         * omp-low.c (expand_omp_for_generic): Add missing phis.
877 2015-10-12  Tom de Vries  <tom@codesourcery.com>
879         PR tree-optimization/67476
880         * omp-low.c (expand_omp_for_generic): Handle simple latch.
882 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
884         * config/aarch64/aarch64-simd-builtins.def: Update builtins
885         tables: add tbl3 and tbx4.
886         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
887         (aarch64_tbx4v8qi): New.
888         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
889         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
890         Rewrite using builtin functions.
891         * config/aarch64/iterators.md (UNSPEC_TBX): New.
893 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
895         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
896         ROUND_UP macro.
897         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
898         Use ROUND_UP and ROUND_DOWN macros where applicable.
899         (rs6000_darwin64_record_arg_flush): Ditto.
900         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
901         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
902         rounded_size.
904 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
906         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
907         (AARCH64_ROUND_DOWN): Ditto.
908         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
910 2015-10-12  Richard Biener  <rguenther@suse.de>
912         PR ipa/67783
913         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
914         code that analyzes IVs on each stmt but in a cheaper way avoiding
915         quadratic behavior.
917 2015-10-12  Nick Clifton  <nickc@redhat.com>
919         * config/msp430/msp430.c (msp430_mcu_names): Rename to
920         msp430_mcu_data, add fields for ISA and hardware multiply
921         support.  Import latest data from the devices.csv file.
922         (msp430_override_option): Use the data from the new array.
923         (msp430_use_f5_series_hwmult): Likewise.
924         (use_32bit_hwmult): Likewise.
925         (msp430_no_hwmult): Likewise.
926         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
927         MCU names.
928         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
929         not recognised then no hardware multiply support is assumed and
930         that only the MSP430 ISA is allowed.
932 2015-10-12  Richard Biener  <rguenther@suse.de>
934         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
935         related code ...
936         (vect_analyze_loop_2): ... here.
938 2015-10-11  Jason Merrill  <jason@redhat.com>
940         PR c++/67557
941         * expr.c (store_field): Call store_constructor directly when
942         storing a CONSTRUCTOR into a target smaller than its type.
943         Guard against unsafe bitwise copy.
945 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
947         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
948         counts when these are more informative.
950 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
952         * tree-profile.c (tree_profiling): Do not clear
953         pure/const when not instrumenting.
954         (pass tree_profile): Add dump of symtab.
956 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
958         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
959         addresses.
960         (fold_addr_of_array_ref_difference): Likewise.
962 2015-10-11  Jeff Law  <law@redhat.com>
964         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
965         tree-ssa-threadbackward.c.
966         (fsm_find_control_statement_thread_paths): Likewise.
967         (thread_through_normal_block): Break out FSM bits and move them
968         into a new function in tree-ssa-threadbackward.c.  Call new function
969         instead.
970         Minimize header file usage.
971         * tree-ssa-threadbackward.h: New file.
972         * tree-ssa-threadbackward.c: Likewise.
973         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
975 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
977         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
979 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
981         PR rtl-optimization/67864
982         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
983         fallthrough edges for conditional jumps.  Don't sort candidate
984         edges if not optimizing for speed.
986 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
988         * defaults.h (REVERSE_CONDITION): New default definition.
989         * jump.c (reversed_comparison_code_parts): Adjust.
991 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
993         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
994         check HARD_FRAME_POINTER_IS_ARG_POINTER.
996 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
998         * defaults.h (FRAME_ADDR_RTX): New default definition.
999         * builtins.c (expand_builtin_return_addr): Adjust.
1001 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1003         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1004         * builtins.c (expand_builtin_return_addr): Adjust.
1006 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1008         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1009         * builtins.c (expand_builtin_return_addr): Adjust.
1010         * doc/tm.texi: Likewise.
1011         * doc/tm.texi.in: Likewise.
1012         * except.c (expand_builtin_unwind_init): Likewise.
1014 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1016         * builtins.c (expand_builtin_return_addr): Adjust.
1017         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1019 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1021         * tree.c (type_with_interoperable_signedness): New.
1022         (gimple_canonical_types_compatible_p): Use it.
1023         * tree.h (type_with_interoperable_signedness): Declare
1025 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1027         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1028         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1029         when OEP_ADDRESS_OF is se.
1031 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1032             Sebastian Pop  <s.pop@samsung.com>
1034         * graphite-dependences.c (scop_get_dependences): Add dump of the
1035         data dependence graph.
1036         * graphite-poly.c (print_isl_union_map): New.
1037         (debug_isl_union_map): New.
1038         * graphite-poly.h (print_isl_union_map): Declare.
1039         (debug_isl_union_map): Declare.
1041 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1042             Sebastian Pop  <s.pop@samsung.com>
1044         * graphite-poly.c (print_iteration_domain): Remove verbosity.
1045         Remove OpenScop formatting.
1046         (print_iteration_domains): Same.
1047         (debug_iteration_domain): Same.
1048         (debug_iteration_domains): Same.
1049         (print_pdr): Same.
1050         (debug_pdr): Same.
1051         (dump_gbb_cases): Same.
1052         (dump_gbb_conditions): Same.
1053         (print_pdrs): Same.
1054         (debug_pdrs): Same.
1055         (print_pbb_body): Same.
1056         (print_pbb): Same.
1057         (print_scop_params): Same.
1058         (print_scop_context): Same.
1059         (print_scop): Same.
1060         (debug_pbb_domain): Same.
1061         (debug_pbb): Same.
1062         (debug_scop_context): Same.
1063         (debug_scop): Same.
1064         (debug_scop_params): Same.
1065         * graphite-poly.h: Same.
1066         * graphite.c (graphite_transform_loops): Same.
1068 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1070         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1071         call that isn't needed.
1073 2015-10-09  Jeff Law  <law@redhat.com>
1075         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1076         rather than moving each name to the freelist individually.
1078 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
1080         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1081         * frame-header-opt.c: New file.
1082         * config/mips/mips-proto.h (mips_register_frame_header_opt):
1083         Add prototype.
1084         * config/mips/mips.c (mips_compute_frame_info): Check
1085         optimize_call_stack flag.
1086         (mips_option_override): Register new frame_header_opt pass.
1087         (mips_frame_info, mips_int_mask, mips_shadow_set,
1088         machine_function): Move these types to...
1089         * config/mips/mips.h: here.
1090         (machine_function): Add does_not_use_frame_header and
1091         optimize_call_stack fields.
1092         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1093         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1094         Document new flags.
1095         * config/mips/mips.opt (mframe-header-opt): Add new option.
1097 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
1099         * config/i386/i386.c
1100         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1101         ROUND_DOWN where applicable.
1103 2015-10-09  Jeff Law  <law@redhat.com>
1105         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1106         correct statement.
1108 2015-10-09  Renlin Li  <renlin.li@arm.com>
1110         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1111         operands[0] and operands[2].
1112         (neon_vtrn<mode>_insn): Likewise.
1113         (neon_vzip<mode>_insn): Likewise.
1115 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1117         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1118         ((X & C2) << C1): Expand to...
1119         (X {&,^,|} C2 << C1): ...This.
1120         ((X & C2) >> C1): Expand to...
1121         (X {&,^,|} C2 >> C1): ...This.
1123 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
1125         PR target/67895
1126         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1127         Adjust embedded rounding/SAE specifier position.
1128         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1129         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1130         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1131         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1132         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1133         Likewise.
1134         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1136 2015-10-09  Martin Jambor  <mjambor@suse.cz>
1138         tree-optimization/67794
1139         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1140         between types of state,ents but accept original definitions as a
1141         parameter.
1142         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1143         iterate over definitions.
1145 2015-10-09  James Norris  <jnorris@codesourcery.com>
1147         * config/rs6000/rs6000.c (rs6000_offload_options): New.
1148         (TARGET_OFFLOAD_OPTIONS): New.
1150 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
1152         PR middle-end/67891
1153         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1155         PR middle-end/67766
1156         * function.c (expand_function_end): Move return value
1157         promotion past the handling of PARALLELs and CONCATs.
1159         PR rtl-optimization/67828
1160         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1161         (tree_may_unswitch_on): Don't unswitch on expressions
1162         involving undefined values.
1164 2015-10-09  Richard Biener  <rguenther@suse.de>
1166         * genmatch.c (print_operand): Fix formatting.
1167         (dt_node::append_simplify): Warn for multiple simplifiers
1168         that match the same pattern.
1169         * match.pd (log (exp @0)): Remove duplicates.
1171 2015-10-09  Richard Biener  <rguenth@suse.de>
1173         PR target/67366
1174         * gimple-fold.c (optabs-query.h): Include
1175         (gimple_fold_builtin_memory_op): Allow unaligned stores
1176         when movmisalign_optabs are available.
1178 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1180         PR target/67366
1181         * config/arm/arm.md (movmisalign<mode>): New.
1182         * config/arm/iterators.md (HSI): New.
1184 2015-10-09  Richard Biener  <rguenther@suse.de>
1186         PR tree-optimization/67891
1187         * gimple-match.h (gimple_simplified_result_is_gimple_val):
1188         New helper.
1189         (gimple_resimplify1): Declare.
1190         (gimple_resimplify2): Likewise.
1191         (gimple_resimplify3): Likewise.
1192         * gimple-match-head.c (gimple_resimplify1): Export.
1193         (gimple_resimplify2): Likewise.
1194         (gimple_resimplify3): Likewise.
1195         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1196         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1197         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1198         to avoid creating stmts without VN info.
1200 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
1202         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1203         of availability.
1205 2015-10-08  Jeff Law  <law@redhat.com>
1207         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1208         and release_ssa_name in two places.
1209         (gimple_stringop_fixed_value): Similarly.
1211         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1212         release_defs.
1214         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1215         unlink_stmt_vdef and release_ssa_name_fn.
1217         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1218         release_defs.
1220 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1222         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1223         SSE register save area to 16 bytes only if the incoming stack
1224         boundary is no less than 16 bytes.
1226 2015-10-08  Jeff Law  <law@redhat.com>
1228         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1229         release_ssa_name.  Fix typo in comment.
1231 2015-10-08  Nathan Sidwell  <nathan@acm.org>
1233         * config/nvptx/nvptx.h (struct machine_function): Add comment.
1234         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1235         may return pointer as well as in memory.
1236         (nvptx_output_return): Likewise.
1238 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1240         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1241         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
1242         * match.pd: Add rules previously handled by fold_builtin_sqrt
1243         and fold_builtin_cbrt.
1245 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1247         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1248         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1249         * fold-const.h (tree_unary_nonnegative_warnv_p)
1250         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1251         (tree_expr_nonnegative_warnv_p): Add depth parameters.
1252         * fold-const.c: Include gimple-fold.h and params.h.
1253         (tree_ssa_name_nonnegative_warnv_p): New function.
1254         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1255         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1256         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1257         Add a depth parameter and increment it for recursive calls to
1258         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
1259         to handle SSA names.
1260         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1261         (gimple_stmt_nonnegative_warnv_p): Declare.
1262         * tree-vrp.c (remove_range_assertions): Remove assert that condition
1263         cannot be proven false.
1264         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1265         (gimple_stmt_nonnegative_warnv_p): Move to...
1266         * gimple-fold.c: ...here.  Add depth parameters and pass them
1267         down to the tree routines.  Accept statements that aren't
1268         assignments or calls but just return false for them.
1269         (gimple_val_nonnegative_real_p): Delete.
1270         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1271         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1272         Check HONOR_NANs first.
1274 2015-10-08  Martin Jambor  <mjambor@suse.cz>
1276         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
1277         unnecessary MIN.
1279 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
1281         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1282         in the tail of outer-loop.
1284 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
1286         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1287         return UI_NONE.
1289 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
1291         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1292         "cfghooks.h", add prototypes for introduced new functions.
1293         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1294         checks on ability of loop unswitching to tree_unswitch_single_loop;
1295         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1296         on innermost loop check.
1297         (tree_unswitch_single_loop): Add all required checks on ability of
1298         loop unswitching under zero recursive level guard.
1299         (tree_unswitch_outer_loop): New function.
1300         (find_loop_guard): Likewise.
1301         (empty_bb_without_guard_p): Likewise.
1302         (used_outside_loop_p): Likewise.
1303         (get_vop_from_header): Likewise.
1304         (hoist_guard): Likewise.
1305         (check_exit_phi): Likewise.
1307 2015-10-08  Marek Polacek  <polacek@redhat.com>
1309         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1310         ops element.
1312 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1314         PR c/65345
1315         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1316         create_tmp_var_raw instead of create_tmp_var.
1318 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
1320         * expr.c (store_expr_with_bounds): Handle aggregate moves from
1321         BLKmode.
1322         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1323         to define gimple type system; compare aggregates only by size.
1325 2015-10-07  Jeff Law  <law@redhat.com>
1327         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1328         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1329         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
1330         unnecessarily.
1332 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1333             Sebastian Pop  <s.pop@samsung.com>
1335         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1336         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1337         (generate_isl_schedule): Same.
1338         * graphite-optimize-isl.c (scop_get_domains): Same.
1339         (apply_schedule_map_to_scop): Same.
1340         * graphite-poly.c (print_iteration_domains): Same.
1341         (remove_gbbs_in_scop): Same.
1342         (new_scop): Same.
1343         (free_scop): Same.
1344         (print_scop): Same.
1345         * graphite-poly.h (struct scop): Rename bbs to pbbs.
1346         (SCOP_BBS): Remove.
1347         * graphite-scop-detection.c (compare_bb_depths): Remove.
1348         (graphite_sort_dominated_info): Remove.
1349         (try_generate_gimple_bb): Move out of scop_detection.
1350         (all_non_dominated_preds_marked_p): Remove.
1351         (build_scop_bbs_1): Remove.
1352         (build_scop_bbs): Remove.
1353         (nb_pbbs_in_loops): Do not use SCOP_BBS.
1354         (find_scop_parameters): Same.
1355         (sese_dom_walker): Rename gather_bbs.
1356         (before_dom_children): Call try_generate_gimple_bb and collect gbb
1357         and pbb.
1358         (build_scops): Call gather_bbs.
1359         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1360         (add_conditions_to_constraints): Same.
1361         (build_scop_iteration_domain): Same.
1362         (build_scop_drs): Same.
1363         (new_pbb_from_pbb): Same.
1364         * sese.c (new_sese_info): Create bbs.
1365         * sese.h (struct sese_info_t): Add bbs.
1367 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
1369         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1370         encoding in 64-bit mode.
1372 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
1374         PR target/66697
1375         * config/i386/i386.c (ix86_option_override_internal): Always use
1376         8-byte minimum stack boundary in 64-bit mode.
1377         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1378         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1379         Add a REG_CFA_EXPRESSION note if needed.
1380         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1381         (ix86_handle_force_align_arg_pointer_attribute): New.
1382         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1383         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1384         with ix86_handle_force_align_arg_pointer_attribute.
1385         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1387 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1388             Sebastian Pop  <s.pop@samsung.com>
1390         * graphite-scop-detection.c (parameter_index_in_region): Remove
1391         use of SESE_ADD_PARAMS.
1392         (find_scop_parameters): Same.
1393         * sese.c (new_sese_info): Same.
1394         * sese.h (struct sese_info_t): Remove add_params.
1395         (SESE_ADD_PARAMS): Remove.
1397 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1398             Sebastian Pop  <s.pop@samsung.com>
1400         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1401         an sese_info_p.
1402         (copy_def): Same.
1403         (copy_internal_parameters): Same.
1404         (translate_isl_ast_to_gimple): Use an sese_l.
1405         (build_iv_mapping): Same.
1406         * graphite-poly.c (new_sese): Rename new_sese_info.
1407         (free_sese): Rename free_sese_info.
1408         * graphite-poly.h (struct scop): Use an sese_info_p.
1409         (scop_set_region): Same.
1410         * graphite-scop-detection.c (struct sese_l): Moved...
1411         (get_entry_bb): Moved...
1412         (get_exit_bb): Moved...
1413         (parameter_index_in_region_1): Use an sese_info_p.
1414         (parameter_index_in_region): Same.
1415         (scan_tree_for_params): Same.
1416         (find_params_in_bb): Same.
1417         (sese_dom_walker): Use an sese_l.
1418         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1419         (reduction_phi_p): Same.
1420         (parameter_index_in_region_1): Use an sese_info_p.
1421         (propagate_expr_outside_region): Use an sese_l.
1422         * graphite.c: Replace uses of SCOP_REGION.
1423         * sese.c (sese_record_loop): Use an sese_info_p.
1424         (build_sese_loop_nests): Same.
1425         (sese_build_liveouts_use): Same.
1426         (sese_build_liveouts_bb): Same.
1427         (sese_build_liveouts_bb): Same.
1428         (sese_bad_liveouts_use): Same.
1429         (sese_reset_debug_liveouts_bb): Same.
1430         (sese_build_liveouts): Same.
1431         (new_sese): Renamed new_sese_info.
1432         (free_sese): Renamed free_sese_info.
1433         (set_rename): Use an sese_info_p.
1434         (graphite_copy_stmts_from_block): Same.
1435         (copy_bb_and_scalar_dependences): Same.
1436         (outermost_loop_in_sese_1): Use an sese_l.
1437         (outermost_loop_in_sese): Same.
1438         (if_region_set_false_region): Use an sese_info_p.
1439         (move_sese_in_condition): Same.
1440         (scalar_evolution_in_region): Use an sese_l.
1441         * sese.h (struct sese_l): ... here.
1442         (SESE_ENTRY): Remove.
1443         (SESE_ENTRY_BB): Remove.
1444         (SESE_EXIT): Remove.
1445         (SESE_EXIT_BB): Remove.
1446         (sese_contains_loop): Use an sese_info_p.
1447         (sese_nb_params): Same.
1448         (bb_in_sese_p): Use an sese_l.
1449         (stmt_in_sese_p): Same.
1450         (defined_in_sese_p): Same.
1451         (loop_in_sese_p): Same.
1452         (sese_loop_depth): Same.
1453         (struct ifsese_s): Use an sese_info_p.
1454         (gbb_loop_at_index): Use an sese_l.
1455         (nb_common_loops): Same.
1456         (scev_analyzable_p): Same.
1458 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1460         * config/i386/i386.c (ix86_conditional_register_usage): Use
1461         CALL_USED_REGISTERS_MASK.
1462         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
1464 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1466         PR bootstrap/67385
1467         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
1468         * configure: Regenerated.
1470 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
1472         PR target/67850
1473         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
1474         (ix86_set_current_function): This.
1475         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
1477 2015-10-07  Richard Biener  <rguenther@suse.de>
1479         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
1480         (vinfo_for_stmt): Adjust.
1481         (set_vinfo_for_stmt): Likewise.
1482         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
1483         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
1484         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
1485         of inner loop.
1486         (vect_analyze_loop_1): Remove.
1487         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
1488         inner loop when vectorizing an outer loop by splitting out from ...
1489         (vect_analyze_loop_form): ... here.
1491 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1493         PR c/65345
1494         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
1495         Use create_tmp_var_raw instead of create_tmp_var.
1497 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
1499         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
1500         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
1501         * real.c (CACHED_FRACTION): New helper macro.
1502         (dconst_third_ptr): Use it.
1503         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
1504         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
1505         dconst_sixth.
1506         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
1508 2015-10-06  Jeff Law  <law@redhat.com>
1510         PR tree-optimization/67816
1511         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
1512         from remove_jump_threads_starting_at.  Accept an edge rather than
1513         a basic block.
1514         * tree-ssa-threadupdate.c (removed_edges): New hash table.
1515         (remove_jump_threads_including): Note edges that get removed from
1516         the CFG for later pruning of jump threading paths including them.
1517         (thread_through_all_blocks): Remove paths which include edges that
1518         have been removed.
1519         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
1520         on each outgoing edges when optimizing away a control statement.
1522 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1524         * reorg.c (emit_delay_sequence): Store list of delay slot insns
1525         in a vector instead of rtx_insn_list.
1526         (add_to_delay_list): Likewise.
1527         (delete_from_delay_slot): Likewise.
1528         (optimize_skip): Likewise.
1529         (redirect_with_delay_list_safe_p): Likewise.
1530         (check_annul_list_true_false): Likewise.
1531         (steal_delay_list_from_target): Likewise.
1532         (steal_delay_list_from_fallthrough): Likewise.
1533         (redundant_insn): Likewise.
1534         (fill_simple_delay_slots): Likewise.
1535         (fill_slots_from_thread): Likewise.
1536         (fill_eager_delay_slots): Likewise.
1537         (relax_delay_slots): Likewise.
1539 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
1541         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
1542         For -mgpopt=local, also exclude unintialized common symbols.
1543         * doc/invoke.texi (Nios II Options): Document the change.
1545 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1547         * config/aarch64/iterators.md (vwcore): Add missing cases for
1548          V4HF/V8HF modes.
1550 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
1551             Sebastian Pop  <s.pop@samsung.com>
1553         * graphite-poly.c (new_scop): Initialize drs.
1554         * graphite-poly.h (struct dr_info): New.
1555         (struct scop): Add drs.
1556         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
1557         (pdr_add_memory_accesses): Same.
1558         (build_poly_dr): Same.
1559         (build_alias_set): Same.
1560         (build_scop_drs): Same.
1561         (build_pbb_drs): Remove.
1562         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
1563         * tree-data-ref.h (data_reference): Remove alias_set.
1565 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
1566             Sebastian Pop  <s.pop@samsung.com>
1568         * graphite-poly.c (free_data_refs_aux): Remove.
1569         (free_gimple_poly_bb): Do not call free_data_refs_aux.
1570         * graphite-poly.h (struct base_alias_pair): Remove.
1571         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
1572         base_alias_pair and dr->aux.
1573         (build_alias_set): Same.
1574         * tree-data-ref.c (create_data_ref): Initialize alias_set.
1575         * tree-data-ref.h (data_reference): Add alias_set.
1577 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
1578             Sebastian Pop  <s.pop@samsung.com>
1580         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
1581         Do not set PDR_BASE_OBJECT_SET.
1582         * graphite-poly.h (poly_dr): Same.
1583         (PDR_BASE_OBJECT_SET): Remove.
1584         (new_poly_dr): Update decl.
1585         * graphite-sese-to-poly.c (build_poly_dr): Update call to
1586         new_poly_dr.
1587         (write_alias_graph_to_ascii_dimacs): Remove.
1588         (write_alias_graph_to_ascii_dot): Remove.
1589         (write_alias_graph_to_ascii_ecc): Remove.
1590         (dr_same_base_object_p): Remove.
1591         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
1592         code.
1593         (build_base_obj_set_for_drs): Remove.
1594         (dump_alias_graphs): Remove.
1595         (build_scop_drs): Remove dead code.
1597 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1598             Peter Bergner  <bergner@vnet.ibm.com>
1600         PR target/67808
1601         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
1602         allow registers, but provide insns for the combiner to create for
1603         loads from memory. Separate VSX code from non-VSX code. For
1604         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
1605         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
1606         so that registers come before memory operations. Drop support from
1607         converting DFmode to TFmode, if the DFmode value is in a GPR
1608         register.
1609         (extenddftf2_fprs): Likewise.
1610         (extenddftf2_internal): Likewise.
1611         (extenddftf2_vsx): Likewise.
1612         (extendsftf2): In the expander, only allow registers, but provide
1613         insns for the combiner to create for stores and loads.
1615 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1617         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
1618         from the decl parameter.
1620 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
1622         PR 67861
1623         * gimple-fold.c (gimple_fold_builtin): Add break after
1624         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
1626 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1628         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
1629         to scop->isl_context.
1631 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1633         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
1634         (output_probe_stack_range): Rotate the loop and simplify.
1635         (thumb1_expand_prologue): Tweak sorry message.
1636         * config/arm/arm.md (probe_stack): Use bare string.
1638 2015-10-06  Nick Clifton  <nickc@redhat.com>
1640         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
1642 2015-10-06  Nick Clifton  <nickc@redhat.com>
1644         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
1645         (ATTR_PERSIST): New constant.
1646         (msp430_data_attr): New function - verifies an attribute that only
1647         applies to variables.
1648         (msp430_attributes): Add noinit and persistent attributes.
1649         (noinit_section): New variable.
1650         (presis_section): New variable.
1651         (TARGET_ASM_INIT_SECTIONS): Define.
1652         (msp430_init_sections): New function - initialises the noinit and
1653         persist section variables.
1654         (msp430_select_section): Add support for noinit and persist
1655         attributes.
1656         (msp430_section_type_flags): Likewise.
1657         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
1658         and persistent attributes.
1660 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1661             Sebastian Pop  <s.pop@samsung.com>
1663         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
1664         (no_violations): Remove.
1665         (subtract_commutative_associative_deps): Remove.
1666         (compute_deps): Do not call subtract_commutative_associative_deps.
1667         (transform_is_safe): Remove.
1668         (graphite_legal_transform): Remove.
1669         * graphite-poly.h (graphite_legal_transform): Remove.
1671 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
1673         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
1674         which are in this region are passed so gcc_assert and remove redundant
1675         computation.
1676         * sese.c (sese_build_liveouts): Pass only those bbs which are not
1677         in region.
1678         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
1679         gcc_assert on that and remove unnecessary computation.
1680         (sese_build_liveouts_use): Same.
1682 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1684         * graphite-dependences.c (scop_get_reads): Renamed scop->context
1685         to scop->param_context.
1686         (scop_get_must_writes): Same.
1687         (scop_get_may_writes): Same.
1688         (scop_get_original_schedule): Same.
1689         (scop_get_transformed_schedule): Same.
1690         (subtract_commutative_associative_deps): Same.
1691         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
1692         (generate_isl_context): Same.
1693         (generate_isl_schedule): Same.
1694         (scop_to_isl_ast): Same.
1695         (graphite_regenerate_ast_isl): Same.
1696         * graphite-optimize-isl.c (scop_get_domains): Same.
1697         (optimize_isl): Renamed scop->context to scop->param_context.
1698         * graphite-poly.c (new_poly_bb): Change the type of argument to
1699         gimple_poly_bb_p.
1700         (new_scop): Renamed scop->context to scop->param_context.
1701         (free_scop): Same.
1702         (print_scop_context): Same.
1703         * graphite-poly.h (new_poly_dr): Change the type of argument from
1704         void* to data_reference_p.
1705         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
1706         (new_poly_bb): Change the type of argument from void* to
1707         gimple_poly_bb_p.
1708         (pbb_set_black_box): Same.
1709         (struct scop): Rename context to param_context, ctx to isl_context.
1710         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
1711         Move declarations closer to assignment.
1712         (find_params_in_bb): Same.
1713         (find_scop_parameters): Same.
1714         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
1715         Global to be used for statement IDs.
1716         (isl_id_for_pbb): Use ssa_name_version_typesize.
1717         (simple_copy_phi_p): Move declarations closer to assignment.
1718         (build_pbb_scattering_polyhedrons): Same.
1719         (build_scop_scattering): Same.
1720         (isl_id_for_ssa_name): Same.
1721         (extract_affine_name): Same.
1722         (extract_affine_int): Same.
1723         (extract_affine): Same.
1724         (set_scop_parameter_dim): Use renamed member.
1725         (build_loop_iteration_domains): Same.
1726         (add_param_constraints): Same.
1727         (build_scop_iteration_domain): Same.
1728         (pdr_add_data_dimensions): Same.
1729         (build_poly_dr): Same.
1730         (build_scop_drs): Move declarations closer to assignment.
1731         (analyze_drs_in_stmts): Same.
1732         (insert_out_of_ssa_copy): Same.
1733         (insert_out_of_ssa_copy_on_edge): Same.
1734         (propagate_expr_outside_region): Same.
1735         (rewrite_phi_out_of_ssa): Same.
1736         (rewrite_degenerate_phi): Same.
1737         (rewrite_reductions_out_of_ssa): Same.
1738         (rewrite_cross_bb_scalar_dependence): Same.
1739         (handle_scalar_deps_crossing_scop_limits): Same.
1740         (rewrite_cross_bb_scalar_deps): Same.
1741         * graphite.c (graphite_transform_loops): Use renamed member.
1743 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
1745         PR c/65345
1746         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
1747         create_tmp_var_raw instead of create_tmp_var.
1749 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1751         PR c/65345
1752         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
1753         Use create_tmp_var_raw instead of create_tmp_var.
1755 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
1757         PR target/67849
1758         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
1759         split for upper-bank registers when target does not support
1760         AVX512VL.
1761         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
1762         split when target does not support AVX512VL.
1764 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
1766         PR c/65345
1767         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
1768         Adjust to use create_tmp_var_raw instead of create_tmp_var.
1770 2015-10-06  Nick Clifton  <nickc@redhat.com>
1772         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
1773         multiplication.
1775 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
1777         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
1778         (case ${target}): Add znver1.
1779         * config/i386/cpuid.h(bit_CLZERO):  Define.
1780         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1781         -march=native recognize znver1 processors.
1782         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1783         znver1, clzero def_and_undef.
1784         * config/i386/i386.c (struct processor_costs znver1_cost): New.
1785         (m_znver1): New definition.
1786         (m_AMD_MULTIPLE): Includes m_znver1.
1787         (processor_target_table): Add znver1 entry.
1788         (ix86_target_string) : Add clzero entry.
1789         (static const char *const cpu_names): Add znver1 entry.
1790         (ix86_option_override_internal): Add znver1 instruction sets.
1791         (PTA_CLZERO) :  New definition.
1792         (ix86_option_override_internal): Handle new clzerooption.
1793         (ix86_issue_rate): Add znver1.
1794         (ix86_adjust_cost): Add znver1.
1795         (ia32_multipass_dfa_lookahead): Add znver1.
1796         (has_dispatch): Add znver1.
1797         * config/i386/i386.h (TARGET_znver1): New definition.
1798         (TARGET_CLZERO): Define.
1799         (TARGET_CLZERO_P): Define.
1800         (struct ix86_size_cost): Add TARGET_ZNVER1.
1801         (enum processor_type): Add PROCESSOR_znver1.
1802         * config/i386/i386.md (define_attr "cpu"): Add znver1.
1803         (set_attr znver1_decode): New definitions for znver1.
1804         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
1805         (mclzero): New.
1806         * config/i386/mmx.md (set_attr znver1_decode): New definitions
1807         for znver1.
1808         * config/i386/sse.md (set_attr znver1_decode): Likewise.
1809         * config/i386/x86-tune.def:  Add znver1 tunings.
1810         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
1811         * gcc/doc/invoke.texi: Add details about znver1
1813 2015-10-06  Richard Biener  <rguenther@suse.de>
1815         PR tree-optimization/67859
1816         * tree-ssa-pre.c (create_expression_by_pieces): Properly
1817         discard not inserted stmts.
1819 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
1821         * doc/extend.texi (Template Instantiation): Reorder options and
1822         de-emphasize -frepo.
1823         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
1824         example instead of -frepo.
1826 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1828         PR c/65345
1829         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
1830         use create_tmp_var_raw rather than create_tmp_var.
1832 2015-10-06  Richard Biener  <rguenther@suse.de>
1834         * tree-vectorizer.h (vec_info): New base class for...
1835         (_loop_vec_info): ... this and ...
1836         (_bb_vec_info): ... this.
1837         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
1838         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1839         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1840         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
1841         vect_destroy_datarefs): Adjust interface to take a vec_info *
1842         rather than both a loop_vec_info and a bb_vec_info argument.
1843         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
1844         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
1845         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
1846         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
1847         accordingly.
1848         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
1849         (destroy_loop_vec_info, vect_analyze_loop_2,
1850         vect_is_simple_reduction_1, get_initial_def_for_induction,
1851         vect_create_epilog_for_reduction, vectorizable_reduction,
1852         vectorizable_live_operation, vect_transform_loop): Adjust.
1853         * tree-vect-patterns.c (type_conversion_p,
1854         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
1855         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
1856         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
1857         check_bool_pattern, vect_recog_bool_pattern,
1858         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
1859         * tree-vect-slp.c (vect_get_and_check_slp_defs,
1860         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
1861         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
1862         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
1863         (new_bb_vec_info): Initialize base classs.
1864         * tree-vect-stmts.c (record_stmt_cost, process_use,
1865         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
1866         vectorizable_mask_load_store, vectorizable_call,
1867         vectorizable_simd_clone_call, vectorizable_conversion,
1868         vectorizable_assignment, vectorizable_shift,
1869         vectorizable_operation, vectorizable_store,
1870         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
1871         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
1872         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
1874 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1876         PR c/65345
1877         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
1878         create_tmp_var_raw rather than create_tmp_var.
1880 2015-10-05  Marek Polacek  <polacek@redhat.com>
1882         * tree-ssa-loop-im.c
1883         (move_computations_dom_walker::before_dom_children): Don't set
1884         SSA_NAME_ANTI_RANGE_P.
1885         * tree-ssa-phiopt.c (value_replacement): Likewise.
1887 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1888             Sebastian Pop  <s.pop@samsung.com>
1890         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
1892 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1893             Sebastian Pop  <s.pop@samsung.com>
1895         * graphite-poly.c (new_gimple_poly_bb): ... here.
1896         (free_data_refs_aux): ... here.
1897         (free_gimple_poly_bb): ... here.
1898         (remove_gbbs_in_scop): ... here.
1899         (new_scop): Call new_sese.
1900         (free_scop): Call remove_gbbs_in_scop and free_sese.
1901         * graphite-poly.h (base_alias_pair): ... here.
1902         (new_gimple_poly_bb): Declare.
1903         (free_gimple_poly_bb): Declare.
1904         * graphite-scop-detection.c (parameter_index_in_region_1):
1905         (parameter_index_in_region): ... here.
1906         (scan_tree_for_params): ... here.
1907         (find_params_in_bb): ... here.
1908         (find_scop_parameters): ... here.
1909         (build_scops): Call find_scop_parameters.
1910         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
1911         (free_scops): Move...
1912         (single_pred_cond_non_loop_exit): Move...
1913         (sese_dom_walker::before_dom_children): Move...
1914         (sese_dom_walker::after_dom_children): Move...
1915         (build_poly_scop): Move...
1916         * graphite-sese-to-poly.h (base_alias_pair): Move...
1917         * graphite.c (free_scops): ... here.
1919 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
1920             Sebastian Pop  <s.pop@samsung.com>
1922         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
1923         (trivially_empty_bb_p): Move...
1924         (same_close_phi_node): Move...
1925         (new_gimple_poly_bb): Move...
1926         (compare_bb_depths): Move...
1927         (graphite_sort_dominated_info): Move...
1928         (remove_duplicate_close_phi): Move...
1929         (make_close_phi_nodes_unique): Move...
1930         (canonicalize_loop_closed_ssa): Move...
1931         (canonicalize_loop_closed_ssa_form): Move...
1932         (loop_ivs_can_be_represented): Move...
1933         (single_pred_cond_non_loop_exit): Move...
1934         (graphite_can_represent_init): Move...
1935         (graphite_can_represent_scev): Move...
1936         (stmt_has_simple_data_refs_p): Move...
1937         (stmt_has_side_effects):  Move...
1938         (graphite_can_represent_stmt): Move...
1939         (scop_detection): ... here.
1940         (sese_dom_walker): ... and here.
1941         (build_scops): Call all moved functions.
1942         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
1943         (all_non_dominated_preds_marked_p): Move...
1944         (build_scop_bbs_1): Move...
1945         (build_scop_bbs): Move...
1946         (set_scop_parameter_dim): Move...
1947         (nb_pbbs_in_loops): Move...
1948         (build_poly_scop): Do not call all the moved functions.
1950 2015-10-05  Martin Jambor  <mjambor@suse.cz>
1951             Jan Hubicka  <hubicka@ucw.cz>
1953         * ipa-cp.c (ipcp_alignment_lattice): New type.
1954         (ipcp_param_lattices): Use the above to represent alignment.
1955         (ipcp_alignment_lattice::print): New function.
1956         (print_all_lattices): Use it to print alignment information.
1957         (ipcp_alignment_lattice::top_p): New function.
1958         (ipcp_alignment_lattice::bottom_p): Likewise.
1959         (ipcp_alignment_lattice::set_to_bottom): Likewise.
1960         (ipcp_alignment_lattice::meet_with_1): Likewise.
1961         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
1962         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
1963         (initialize_node_lattices): Likewise.
1964         (propagate_alignment_accross_jump_function): Work with the new class
1965         for alignment lattices.
1966         (propagate_constants_accross_call): Pass only the alignment lattice to
1967         propagate_alignment_accross_jump_function.
1968         (ipcp_store_alignment_results): Work with the new class for alignment
1969         lattices.
1971 2015-10-05  Marek Polacek  <polacek@redhat.com>
1973         PR tree-optimization/67821
1974         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
1976 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
1978         PR other/65021
1979         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
1980         function to...
1981         (mkoffload_cleanup): ... this.  Adjust all users.
1982         (maybe_unlink): Look at save_temps and verbose flags instead of
1983         debug flag.
1984         (main): Parse "-save-temps" flag.
1985         (generate_target_descr_file, generate_target_offloadend_file)
1986         (generate_host_descr_file, prepare_target_image): Pass it on.
1987         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
1988         (mkoffload_cleanup): New function.
1989         (maybe_unlink): Look at save_temps and verbose flags instead of
1990         debug flag.
1991         (main): Instead of calling utils_cleanup, register atexit handler
1992         for mkoffload_cleanup.
1993         (main): Parse "-save-temps" flag.
1994         (compile_native, main): Pass it on.
1995         * lto-wrapper.c (compile_offload_image): Likewise.
1997 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1999         * gimple.h (gimple_op_ptr): Require a non const gimple *.
2000         (gimple_assign_lhs_ptr): Likewise.
2001         (gimple_assign_rhs1_ptr): Likewise.
2002         (gimple_assign_rhs2_ptr): Likewise.
2003         (gimple_assign_rhs3_ptr): Likewise.
2004         (gimple_call_lhs_ptr): Likewise.
2005         (gimple_call_fn_ptr): Likewise.
2006         (gimple_call_chain_ptr): Likewise.
2007                 (gimple_call_arg_ptr): Likewise.
2008                 (gimple_cond_lhs_ptr): Likewise.
2009         (gimple_cond_rhs_ptr): Likewise.
2010         (gimple_switch_index_ptr): Likewise.
2011         (gimple_return_retval_ptr): Likewise.
2013 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2015         * gimple.h (gimple_asm_input_op_ptr): Remove.
2016         (gimple_asm_output_op_ptr): Likewise.
2018 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2020         * gimple.h (gimple_location_ptr): Remove.
2021         * tree-vrp.c (check_all_array_refs): Adjust.
2023 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2025         * tree-ssa-operands.c (build_uses): store tree * instead of
2026         tree.
2027         (finalize_ssa_uses): Adjust.
2028         (append_use): Likewise.
2029         (verify_ssa_operands): Likewise.
2031 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2033         * real.h (build_real_truncate): Declare.
2034         * tree.c (build_real_truncate): New function.
2035         (strip_float_extensions): Use it.
2036         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2037         (fold_builtin_hypot, fold_builtin_pow): Likewise.
2038         * match.pd: Likewise.
2040 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2041            Jiong Wang  <jiong.wang@arm.com>
2043         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2045 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2047         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2048         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2049         (aarch64_print_operand, aarch64_float_const_representable_p)
2050         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2051         instead of REAL_VALUE_FROM_CONST_DOUBLE.
2052         * config/arc/arc.c (arc_print_operand): Likewise.
2053         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2054         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2055         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2056         Likewise.
2057         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2058         (consttable_16): Likewise.
2059         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2060         * config/avr/avr.c (avr_print_operand): Likewise.
2061         * config/bfin/bfin.md: Likewise (in a define_split).
2062         * config/c6x/c6x.md: Likewise (in a define_split).
2063         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2064         (cr16_print_operand): Likewise.
2065         * config/cris/cris.c (cris_print_operand): Likewise.
2066         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2067         * config/fr30/fr30.c (fr30_print_operand): Likewise.
2068         (fr30_const_double_is_zero): Likewise.
2069         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2070         * config/frv/frv.md: Likewise (in a define_split).
2071         * config/frv/predicates.md (int_2word_operand): Likewise.
2072         * config/h8300/h8300.c (h8300_print_operand): Likewise.
2073         * config/i386/i386.c (standard_80387_constant_p): Likewise.
2074         (ix86_print_operand, ix86_split_to_parts): Likewise.
2075         * config/i386/i386.md: Likewise (in a define_split).
2076         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2077         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2078         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2079         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2080         (print_operand): Likewise.
2081         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2082         * config/mep/mep.md: Likewise (in define_split).
2083         * config/microblaze/microblaze.c (microblaze_const_double_ok)
2084         (print_operand): Likewise.
2085         * config/mips/mips.md (consttable_float): Likewise.
2086         * config/mmix/mmix.c (mmix_intval): Likewise.
2087         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2088         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2089         * config/pa/pa.c (pa_singlemove_string): Likewise.
2090         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2091         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2092         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2093         (output_toc): Likewise.
2094         * config/rs6000/rs6000.md: Likewise (in define_splits).
2095         * config/rx/rx.c (rx_print_operand): Likewise.
2096         * config/s390/s390.c (s390_output_pool_entry): Likewise.
2097         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2098         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2099         (and also in define_splits).
2100         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2101         (fp_high_losum_p): Likewise.
2102         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2103         (*movsf_high): Likewise.
2104         * config/spu/spu.c (const_double_to_hwint): Likewise.
2105         * config/v850/v850.c (const_double_split): Likewise.
2106         * config/vax/vax.c (vax_float_literal): Likewise.
2107         * config/visium/visium.c (visium_expand_copysign): Likewise.
2108         * config/visium/visium.md: Likewise (in define_split).
2109         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2110         * config/xtensa/xtensa.c (print_operand): Likewise.
2111         (xtensa_output_literal): Likewise.
2112         * cprop.c (implicit_set_cond_p): Likewise.
2113         * dwarf2out.c (insert_float): Likewise.
2114         * expmed.c (expand_mult, make_tree): Likewise.
2115         * expr.c (compress_float_constant): Likewise.
2116         * rtlanal.c (split_double): Likewise.
2117         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2118         (simplify_const_unary_operation, simplify_binary_operation_1)
2119         (simplify_const_binary_operation): Likewise.
2120         (simplify_const_relational_operation): Likewise.
2121         * varasm.c (output_constant_pool_2): Likewise.
2123 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2125         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2126         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2127         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2128         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2129         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2130         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2131         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2132         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2133         (ix86_emit_swsqrtsf): Likewise.
2134         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2135         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2136         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2137         * config/pa/pa.c (pa_expand_builtin): Likewise.
2138         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2139         (rs6000_scale_v2df): Likewise.
2140         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2141         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2142         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2143         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2144         (vec_ctul): Likewise.
2145         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2146         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2147         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2148         * cse.c (fold_rtx): Likewise.
2149         * emit-rtl.c (immed_double_const): Likewise (in comments).
2150         (init_emit_once): Likewise.
2151         * expr.c (compress_float_constant, expand_expr_real_1)
2152         (const_vector_from_tree): Likewise.
2153         * optabs.c (expand_float, expand_fix): Likewise.
2154         * reg-stack.c (reg_to_stack): Likewise.
2155         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2156         (simplify_const_unary_operation, simplify_binary_operation_1)
2157         (simplify_const_binary_operation, simplify_relational_operation)
2158         (simplify_immed_subreg): Likewise.
2160 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2162         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2163         * doc/tm.texi: Regenerate.
2164         * real.h (REAL_ARITHMETIC): Delete.
2165         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2166         (ix86_expand_round_sse4): Use real_arithmetic instead of
2167         REAL_ARITHMETIC.
2168         * config/i386/sse.md (round<mode>2): Likewise.
2169         * rtl.h (rtx_to_tree_code): Likewise (in comment).
2170         * explow.c (rtx_to_tree_code): Likewise (in comment).
2171         * match.pd: Likewise.
2172         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2173         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2174         (expand_pow_as_sqrts): Likewise.
2175         * tree-pretty-print.c (dump_generic_node): Remove code that
2176         was conditional on REAL_ARITHMETIC being undefined.
2178 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2180         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2181         * doc/tm.texi: Regenerate.
2182         * real.h (real_less): Declare.
2183         (REAL_VALUES_LESS): Delete.
2184         * real.c (real_less): New function.
2185         (real_compare): Use it.
2186         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2187         of REAL_VALUES_LESS.
2188         * config/microblaze/microblaze.c (microblaze_const_double_ok):
2189         Likewise.
2190         * fold-const.c (fold_convert_const_int_from_real): Likewise.
2191         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2192         (simplify_const_relational_operation): Likewise.
2193         * tree-call-cdce.c (check_pow): Likewise.
2194         (gen_conditions_for_pow_cst_base): Likewise.
2196 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2198         * real.h (REAL_VALUES_IDENTICAL): Delete.
2199         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2200         instead of REAL_VALUES_IDENTICAL.
2201         * fold-const.c (operand_equal_p): Likewise.
2202         * ipa-icf.c (sem_variable::equals): Likewise.
2203         * tree-complex.c (some_nonzerop): Likewise.
2204         (expand_complex_multiplication): Likewise.
2205         * tree.c (simple_cst_equal): Likewise.
2206         * varasm.c (compare_constant): Likewise.
2208 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2210         * real.h (real_equal): Declare.
2211         (REAL_VALUES_EQUAL): Delete.
2212         * real.c (real_equal): New function.
2213         (real_compare): Use it.
2214         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2215         * doc/tm.texi: Regenerate.
2216         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2217         real_equal instead of REAL_VALUES_EQUAL.
2218         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2219         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2220         (fp_const_from_val): Likewise.
2221         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2222         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2223         (floating_exact_log2): Likewise.
2224         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2225         * config/vax/vax.c (vax_float_literal): Likewise.
2226         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2227         * cprop.c (implicit_set_cond_p): Likewise.
2228         * expmed.c (expand_mult): Likewise.
2229         * fold-const.c (const_binop): Likewise.
2230         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2231         (simplify_const_binary_operation): Likewise.
2232         (simplify_const_relational_operation): Likewise.
2233         * tree-call-cdce.c (check_pow): Likewise.
2234         (gen_conditions_for_pow_cst_base): Likewise.
2235         * tree-inline.c (estimate_num_insns): Likewise.
2236         * tree-ssa-dom.c (record_equality): Likewise.
2237         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2238         (gimple_expand_builtin_pow): Likewise.
2239         (pass_optimize_widening_mul::execute): Likewise.
2240         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2241         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2242         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2244 2015-10-05  Richard Biener  <rguenther@suse.de>
2246         PR ipa/67783
2247         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2248         consider loop header PHI defs as IVs.
2250 2015-10-05  Richard Biener  <rguenther@suse.de>
2252         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2253         call handling ...
2254         (create_expression_by_pieces): ... here and build GIMPLE
2255         calls directly.  Use gimple_build API and avoid force_gimple_operand.
2256         (insert_into_preds_of_block): Simplify.
2257         (do_regular_insertion): Add comment.
2259 2015-10-04  Jason Merrill  <jason@redhat.com>
2261         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2263 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
2265         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2266         check for general register.
2267         (ix86_emit_save_regs): Ditto.
2268         (ix86_emit_save_regs_using_mov): Ditto.
2269         (ix86_emit_restore_regs_using_pop): Ditto.
2270         (ix86_emit_restore_regs_using_mov): Ditto.
2272 2015-10-03  Marek Polacek  <polacek@redhat.com>
2274         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2275         (insn-dfatab.o): Likewise.
2277 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
2279         * config.gcc (xtensa*-*-uclinux*): New configuration.
2280         * config/xtensa/uclinux.h: New file.
2281         * config/xtensa/uclinux.opt: New file.
2283 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
2285         * doc/cpp.texi (Standard Predefined Macros): Document value of
2286         __cplusplus for C++14.
2288 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
2290         * gcc.c (process_command): Use spec_machine rather than
2291         spec_host_machine to build tooldir_prefix2.
2293 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
2294             Bernd Schmidt  <bernds@codesourcery.com>
2296         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2297         (Token, Stmt): Remove structs.
2298         (decls, vars, fns): Remove variables.
2299         (alloc_comment, append_stmt, is_keyword): Remove macros.
2300         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2301         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2302         (parse_init, parse_file): Remove functions.
2303         (read_file): Accept a pointer to a length and store into it.
2304         (process): Don't try to parse the input file, just write it out as
2305         a string, but looking for maps.  Also write out the length.
2306         (main): Don't use "-S" to compile PTX code.
2308 2015-10-02  Jeff Law  <law@redhat.com>
2310         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2311         fixups.
2313 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
2315         PR target/67822
2316         * config/nvptx/mkoffload.c (main): Scan the argument vector for
2317         -fopenmp, and skip generating an offloading image if specified.
2319 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
2321         * system.h (ROUND_UP): New macro definition.
2322         (ROUND_DOWN): Ditto.
2323         * ggc-page.c (ROUND_UP): Remove local macro definition.
2324         (PAGE_ALIGN): Implement using ROUND_UP macro.
2326         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2327         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2328         to align values.
2329         (ix86_compute_frame_layout): Ditto.
2330         (ix86_expand_prologue): Ditto.
2331         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2332         to round down values.
2333         (expand_set_or_movmem_via_rep): Ditto.
2335 2015-10-02  Marek Polacek  <polacek@redhat.com>
2337         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2339 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
2341         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2342         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2343         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2344         (free_gimple_bb): Renamed free_gimple_poly_bb.
2345         (try_generate_gimple_bb): Hoist loop invariant code.
2346         (analyze_drs_in_stmts): Same.
2347         (build_scop_drs): Call renamed functions.
2348         (new_pbb_from_pbb): Same.
2349         (scop_ivs_can_be_represented): Delete as functionality now moved to
2350         graphite-scop-detection.c
2351         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2353 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
2355         * graphite-scop-detection.c (stmt_has_side_effects): New function
2356           outlined from stmt_simple_for_scop_p.
2357         (graphite_can_represent_stmt): Same.
2358         (stmt_simple_for_scop_p): Moved code out of this function for better
2359         readability.
2361 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2363         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2364         F_AVX512IFMA.
2365         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2367 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2369         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2371 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
2373         PR rtl-optimization/67756
2374         * lra-constraints.c (match_reload): Add a new parameter.  Use it
2375         for creating a pseudo with the same value.
2376         (curr_insn_transform): Pass a new argument to match_reload.
2378 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2380         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2381         (expand_vec_perm_even_odd_1): Handle V64QImode.
2382         (ix86_expand_vec_perm_const_1): Try expansion with
2383         expand_vec_perm_even_odd_trunc as well.
2384         * config/i386/sse.md (VI124_AVX512F): Rename to ...
2385         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2386         to V54QI.
2387         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2388         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2389         to V32HI and V16SI.
2390         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2391         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2392         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2393         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2394         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2395         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2397 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2399         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2400         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2402 2015-10-02  Jason Merrill  <jason@redhat.com>
2404         PR c/59218
2405         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2406         (diagnose_tm_1_op): Also diagnose volatile accesses in
2407         transaction_safe function.
2409 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
2411         * system.h (malloc.h): Don't include obsolete header.
2413 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2415         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2416         (TLS_SECTION_ASM_FLAG): Delete.
2418 2015-10-02  Marek Polacek  <polacek@redhat.com>
2420         PR c/64249
2421         * doc/invoke.texi: Document -Wduplicated-cond.
2422         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2423         (insn-dfatab.o): Likewise.
2424         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2425         warning.
2427 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
2429         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2430         sequences.
2432 2015-10-02  Renlin Li  <renlin.li@arm.com>
2434         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
2436 2015-10-02  Renlin Li  <renlin.li@arm.com>
2438         PR target/66776
2439         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
2441 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2443         PR rtl-optimization/67786
2444         PR rtl-optimization/67787
2445         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
2446         it modifies a reg used in the condition calculation.
2448 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
2450         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
2451         alternatives for reads from memory and moves from general-purpose
2452         registers.
2453         (*aarch64_combinez_be<mode>): Likewise.
2455 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
2457         PR target/51726
2458         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
2459         selectany within this function without need to keep attribute.
2460         (i386_pe_encode_section_info): Remove selectany-code.
2462 2015-10-02  Richard Biener  <rguenther@suse.de>
2464         * tree-ssa-sccvn.c (has_VN_INFO): New function.
2465         (free_scc_vn): Use it.
2466         (visit_use): Remove dead code and refactor to use gassign
2467         and use less indentation.
2469 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2471         PR target/67788
2472         PR target/67789
2473         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
2474         (rs6000_cannot_copy_insn_p): New function.
2475         * config/rs6000/rs6000.md (cannot_copy): New attribute.
2476         (load_toc_v4_PIC_1_normal): Set cannot_copy.
2477         (load_toc_v4_PIC_1_476): Ditto.
2479 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
2481         * graphite-scop-detection.c (struct sese_l): New conversion constructor
2482         so that this type can be pushed into a vec.
2483         (class scop_builder): use sese_l to collect scops.
2484         (get_scops): New getter function.
2485         (remove_intersecting_scops): Use sese_l instead of scops_p.
2486         (intersects): Same.
2487         (add_scop): Same.
2488         (subsumes): Same.
2489         (remove_subscops): Same.
2490         (build_scops): Add scops to vec<scops_p> once all the scops have been
2491         detected.
2493 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
2495         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2496         Renamed type from gimple_bb_p to gimple_poly_bb_p.
2497         (translate_isl_ast_node_user): Same.
2498         * graphite-poly.c (new_poly_bb): Same.
2499         * graphite-poly.h (gbb_from_bb): Same.
2500         * sese.h: Same.
2501         * graphite-sese-to-poly.c (new_gimple_bb):
2502         gimple_bb_p -> gimple_poly_bb_p
2503         (build_scop_scattering): Same.
2504         (find_params_in_bb): Same.
2505         (add_conditions_to_domain): Same.
2506         (sese_dom_walker::before_dom_children): Same.
2507         (analyze_drs_in_stmts): Same.
2508         (new_pbb_from_pbb): Same.
2509         (free_data_refs_aux): New pointer to type base_alias_pair.
2510         * graphite-sese-to-poly.h: Same.
2511         * sese.c (if_region_set_false_region): Fixed Indentation.
2512         (move_sese_in_condition): Same.
2514 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
2515             Aditya Kumar  <aditya.k7@samsung.com>
2517         PR tree-optimization/66980
2518         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
2519         when data reference analysis has failed.
2521 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
2522             Aditya Kumar  <aditya.k7@samsung.com>
2524         PR tree-optimization/67754
2525         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
2526         scev analysis on the same loop nest as analyze_drs_in_stmts.
2527         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
2528         renamed...
2529         (try_generate_gimple_bb): Call outermost_loop_in_sese.
2530         (analyze_drs_in_stmts): Same.
2531         * sese.c (outermost_loop_in_sese): ...here.
2533 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
2534             Aditya Kumar  <aditya.k7@samsung.com>
2536         PR tree-optimization/67754
2537         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
2538         recursion on the inner loops.
2540 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2542         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
2543         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
2544         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
2545         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
2546         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
2548 2015-10-01  Marek Polacek  <polacek@redhat.com>
2550         PR c/65345
2551         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
2552         create_tmp_var_raw rather than create_tmp_var.
2554 2015-10-01  Marek Polacek  <polacek@redhat.com>
2556         PR tree-optimization/67769
2557         * tree-ssa-phiopt.c (conditional_replacement): Call
2558         reset_flow_sensitive_info_in_bb.
2559         (minmax_replacement): Likewise.
2560         (abs_replacement): Likewise.
2562 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
2564         * builtins.c: Don't include gomp-constants.h.
2565         (fold_builtin_1): Don't fold acc_on_device here.
2566         * gimple-fold.c: Include gomp-constants.h.
2567         (gimple_fold_builtin_acc_on_device): New.
2568         (gimple_fold_builtin): Call it.
2570 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2572         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
2573         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
2575 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
2577         * config/arm/aarch-common-protos.h
2578         (aarch_accumulator_forwarding): New.
2579         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2580         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
2581         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2582         * config/arm/cortex-a53.md: Rewrite.
2584 2015-10-01  Richard Biener  <rguenther@suse.de>
2586         * gimple-match.h (mprts_hook): Declare.
2587         * gimple-match.head.c (mprts_hook): Define.
2588         (maybe_push_res_to_seq): Use new hook.
2589         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2590         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
2591         (vn_ssa_aux::has_constants): Remove.
2592         * tree-ssa-sccvn.c: Include gimple-match.h.
2593         (VN_INFO_GET): Assert we don't re-use SSA names.
2594         (vn_get_expr_for): Remove.
2595         (expr_has_constants): Likewise.
2596         (stmt_has_constants): Likewise.
2597         (simplify_binary_expression): Likewise.
2598         (simplify_unary_expression): Likewise.
2599         (vn_lookup_simplify_result): New hook.
2600         (visit_copy): Adjust.
2601         (visit_reference_op_call): Likewise.
2602         (visit_phi): Likewise.
2603         (visit_use): Likewise.
2604         (process_scc): Likewise.
2605         (init_scc_vn): Likewise.
2606         (visit_reference_op_load): Likewise.  Use match-and-simplify and
2607         a gimple seq for inserted expressions.
2608         (try_to_simplify): Remove GENERIC stmt combining code.
2609         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
2610         * tree-ssa-pre.c (eliminate_insert): Adjust.
2611         (eliminate_dom_walker::before_dom_children): Likewise.
2613 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2615         * doc/invoke.texi (Optimization Options): Add
2616         -freorder-blocks-algorithm=.
2617         (Optimize Options) <-O>: Add -freorder-blocks.
2618         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
2619         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
2620         <-freorder-blocks>: Also enabled at levels -O and -Os.
2621         <-freorder-blocks-algorithm=>: Document new option.
2623 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2625         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
2626         with flag_reorder_blocks_algorithm.
2627         * common.opt (freorder-blocks-algorithm=): New flag.
2628         (reorder_blocks_algorithm): New enum.
2629         * flag-types.h (reorder_blocks_algorithm): New enum.
2630         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
2631         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
2633 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2635         * bb-reorder.c: Add intro comment.
2636         (reorder_basic_blocks_software_trace_cache): Print a header to
2637         the dump file.
2638         (edge_order): New function.
2639         (reorder_basic_blocks_simple): New function.
2640         (reorder_basic_blocks): Choose between the STC and the simple
2641         algorithms (always choose the former).
2643 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2645         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
2646         function, factored out from ...
2647         (reorder_basic_blocks): ... here.
2649 2015-10-01  Tom de Vries  <tom@codesourcery.com>
2651         * tree-cfg.c (dump_function_to_file): Dump function attributes using
2652         __attribute__(()) string.  Move dumping of function attributes to before
2653         function name.
2655 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
2657         PR target/66870
2658         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2659         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
2660         based on gold linker version.
2661         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
2662         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
2663         * configure, config.in: Regenerate.
2665 2015-10-01  Alan Modra  <amodra@gmail.com>
2667         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
2668         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
2669         (rs6000_output_mi_thunk): Likewise.
2671 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
2673         * config/nvptx/mkoffload.c (process): Change offload data format.
2675 2015-09-30  Jeff Law  <law@redhat.com>
2677         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
2678         with constant conditions.
2679         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
2680         (remove_ctrl_stmt_and_useless_edges): No longer static.
2681         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
2682         (remove_ctrl_stmt_and_useless_edges): Likewise.
2684 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
2685             Cesar Philippidis  <cesar@codesourcery.com>
2687         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
2688         (TARGET_GOACC_VALIDATE_DIMS): Override.
2689         * target.def (TARGET_GOACC): New target hook prefix.
2690         (validate_dims): New hook.
2691         * targhooks.h (default_goacc_validate_dims): New.
2692         * omp-low.c (oacc_validate_dims): New.
2693         (execute_oacc_device_lower): New.
2694         (default_goacc_validate_dims): New.
2695         (pass_data_oacc_device_lower): New.
2696         (pass_oacc_device_lower): New pass.
2697         (make_pass_oacc_device_lower): New.
2698         * tree-pass.h (make_pass_oacc_device_lower): Declare.
2699         * passes.def (pass_oacc_device_lower): Add it.
2700         * doc/tm.texi: Rebuilt.
2701         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
2702         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
2704 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2706         PR rtl-optimization/67037
2707         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
2709 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
2711         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
2712         * passes.c: Include tree-ssanames.h.
2713         (execute_function_todo): Flush the pending free SSA_NAMEs after
2714         eliminating unreachable basic blocks.
2715         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
2716         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
2717         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
2718         (flush_ssanames_freelist): New function.
2719         (release_ssaname_fn): Put released names on the queue.
2720         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
2721         * tree-ssanames.h (flush_ssanames_freelist): Declare.
2723 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
2725         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
2726         (generate_target_descr_file, generate_target_offloadend_file)
2727         (generate_host_descr_file, prepare_target_image): Pass it on.
2728         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
2729         (compile_native, main): Pass it on.
2730         * lto-wrapper.c (compile_offload_image): Likewise.
2732 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
2733             Ilya Verbin  <ilya.verbin@intel.com>
2734             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2736         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
2737         (prepare_target_image, main): Refactor argv building to use
2738         obstacks.
2740 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2742         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
2743         * config/spu/spu.c (spu_expand_atomic_op): New function.
2744         * config/spu/spu.md (AINT): New mode iterator.
2745         (ATOMIC): New code iterator.
2746         (atomic_name, atomic_pred): New code predicates.
2747         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
2748         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
2749         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
2750         "atomic_<atomic_name>_fetch<mode>"): Likewise.
2752 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
2754         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
2755         debug insns.
2756         (scalar_chain::convert_reg): Likewise.
2758 2015-09-30  Richard Biener  <rguenther@suse.de>
2760         * builtins.c: Add comment that no new simplifications should
2761         be added here.
2763 2015-09-30  Marek Polacek  <polacek@redhat.com>
2765         PR tree-optimization/67690
2766         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
2767         reset_flow_sensitive_info_in_bb.
2768         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
2769         * tree-ssanames.c: Include "gimple-iterator.h".
2770         (reset_flow_sensitive_info_in_bb): New function.
2771         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
2773 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
2775         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
2776         variable, replacing it with...
2777         (offload_abi): ... this new variable.  Adjust all users.
2778         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
2780 2015-09-30  Matthias Klose  <doko@ubuntu.com>
2782         * configure.ac: Remove extraneous ;;.
2783         * configure: Regenerate.
2785 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
2787         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
2788         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
2789         predicate, disallow register for operand 2.
2791 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
2793         * graphite-dependences.c (scop_get_dependences): Moved in down
2794         in order to be visible to its caller.
2795         * graphite-poly.h: Removed compute_deps, and extend_schedule.
2797 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
2798             Aditya Kumar  <aditya.k7@samsung.com>
2800         PR tree-optimization/67754
2801         * graphite-optimize-isl.c (optimize_isl): Call
2802         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
2804 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
2806         * builtins.c (expand_builtin_acc_on_device): Delete.
2807         (expand_builtin): Don't call it.
2808         (fold_builtin_1): Fold acc_on_device.
2810 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2812         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
2813         (ix86_nsaved_sseregs): Likewise.
2815 2015-09-29  Jeff Law  <law@redhat.com>
2817         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
2818         computation of unused value.
2820         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
2821         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
2822         inline macro expansion.
2824         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
2826         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
2827         (gen_shl_sext): Likewise.
2828         * config/sh/sh.md (divsi3): Likewise.
2829         (imm->ext_dest_operand splitter): Likewise.
2831 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
2832             Aditya Kumar  <aditya.k7@samsung.com>
2834         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
2835         (nb_data_writes_in_bb): Remove.
2836         (split_pbb): Remove.
2837         (split_reduction_stmt): Remove.
2838         (is_reduction_operation_p): Remove.
2839         (phi_contains_arg): Remove.
2840         (follow_ssa_with_commutative_ops): Remove.
2841         (detect_commutative_reduction_arg): Remove.
2842         (detect_commutative_reduction_assign): Remove.
2843         (follow_inital_value_to_phi): Remove.
2844         (edge_initial_value_for_loop_phi): Remove.
2845         (initial_value_for_loop_phi): Remove.
2846         (used_outside_reduction): Remove.
2847         (detect_commutative_reduction): Remove.
2848         (translate_scalar_reduction_to_array_for_stmt): Remove.
2849         (remove_phi): Remove.
2850         (dr_indices_valid_in_loop): Remove.
2851         (close_phi_written_to_memory): Remove.
2852         (translate_scalar_reduction_to_array): Remove.
2853         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
2854         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
2855         (rewrite_commutative_reductions_out_of_ssa): Remove.
2856         (build_poly_scop): Remove call to
2857         rewrite_commutative_reductions_out_of_ssa.
2859 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
2861         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
2862         Add new insn types for vector load and store pairs.
2863         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
2864         types "neon_ldp{,_q}".
2865         * config/arm/cortex-a57.md (neon_load_c): Add insn types
2866         "neon_ldp{,_q}".
2867         (neon_store_complex): Add insn types "neon_stp{,_q}".
2868         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
2869         "neon_{ldp,stp}_q".
2871 2015-09-29  Jeff Law  <law@redhat.com>
2873         * config/rx/constraints.md (Int08): Fix undefined left shift
2874         behaviour.
2875         (Sint08, Sint16, Sint24): Likewise.
2876         * config/rx/rx.c (rx_get_stack_layout): Likewise.
2878         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
2879         behaviour.
2881         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
2882         left shift behaviour.
2883         * config/msp430/constraints.md ('L' constraint): Similarly.
2884         ('Ys' constraint): Similarly.
2886 2015-09-29  Richard Biener  <rguenther@suse.de>
2888         PR tree-optimization/67170
2889         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
2890         the translate function pointer parameter to get the
2891         bool whether to disambiguate only by reference.
2892         (walk_non_aliased_vuses): Likewise.
2893         * tree-ssa-alias.c (maybe_skip_until): Adjust.
2894         (get_continuation_for_phi_1): Likewise.
2895         (get_continuation_for_phi): Likewise.
2896         (walk_non_aliased_vuses): Likewise.
2897         * tree-ssa-sccvn.c (const_parms): New bitmap.
2898         (vn_reference_lookup_3): Adjust for interface change.
2899         Disambiguate parameters pointing to readonly memory.
2900         (free_scc_vn): Free const_parms.
2901         (run_scc_vn): Initialize const_parms from a fn spec attribute.
2903 2015-09-29  Richard Biener  <rguenther@suse.de>
2905         PR tree-optimization/67741
2906         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
2907         builtin calls with correct signature.
2909 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
2911         PR target/65105
2912         * config/i386/i386.c: Include dbgcnt.h.
2913         (has_non_address_hard_reg): New.
2914         (convertible_comparison_p): New.
2915         (scalar_to_vector_candidate_p): New.
2916         (remove_non_convertible_regs): New.
2917         (scalar_chain): New.
2918         (scalar_chain::scalar_chain): New.
2919         (scalar_chain::~scalar_chain): New.
2920         (scalar_chain::add_to_queue): New.
2921         (scalar_chain::mark_dual_mode_def): New.
2922         (scalar_chain::analyze_register_chain): New.
2923         (scalar_chain::add_insn): New.
2924         (scalar_chain::build): New.
2925         (scalar_chain::compute_convert_gain): New.
2926         (scalar_chain::replace_with_subreg): New.
2927         (scalar_chain::replace_with_subreg_in_insn): New.
2928         (scalar_chain::emit_conversion_insns): New.
2929         (scalar_chain::make_vector_copies): New.
2930         (scalar_chain::convert_reg): New.
2931         (scalar_chain::convert_op): New.
2932         (scalar_chain::convert_insn): New.
2933         (scalar_chain::convert): New.
2934         (convert_scalars_to_vector): New.
2935         (pass_data_stv): New.
2936         (pass_stv): New.
2937         (make_pass_stv): New.
2938         (ix86_option_override): Created and register stv pass.
2939         (flag_opts): Add -mstv.
2940         (ix86_option_override_internal): Likewise.
2941         * config/i386/i386.md (SWIM1248x): New.
2942         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
2943         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
2944         (*anddi3_doubleword): New.
2945         (*zext<mode>_doubleword): New.
2946         (*zextsi_doubleword): New.
2947         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
2948         (*<code>di3_doubleword): New.
2949         * config/i386/i386.opt (mstv): New.
2950         * dbgcnt.def (stv_conversion): New.
2952 2015-09-29  Tom de Vries  <tom@codesourcery.com>
2954         * tree-cfg.c (dump_function_to_file): Dump function attributes.
2956 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2958         PR target/67716
2959         * config/sh/sh.c (sh_override_options_after_change): New.
2960         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2961         (sh_option_override): Move align_loops, align_jumps and
2962         align_functions handling into sh_override_options_after_change.
2964 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
2966         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
2967         (nvptx_record_offload_symbol): Record function execution geometry.
2968         * config/nvptx/mkoffload.c (process): Include launch geometry in
2969         function data.
2970         * omp-low.c (oacc_launch_pack): New.
2971         (replace_oacc_fn_attrib): New.
2972         (set_oacc_fn_attrib): New.
2973         (get_oacc_fn_attrib): New.
2974         (expand_omp_target): Create keyed varargs for GOACC_parallel call
2975         generation.
2976         * omp-low.h (get_oacc_fn_attrib): Declare.
2977         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
2978         (DEF_FUNCTION_TYPE_VAR_11): Delete.
2979         * tree.h (OMP_CLAUSE_EXPR): New.
2980         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
2982 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
2983             Sebastian Pop  <s.pop@samsung.com>
2985         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
2987 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
2988             Sebastian Pop  <s.pop@samsung.com>
2990         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
2991         * graphite-scop-detection.c (struct sese_l): New type.
2992         (get_entry_bb): API for getting entry bb of SESE.
2993         (get_exit_bb): API for getting exit bb of SESE.
2994         (class debug_printer): New type.  Simple printer in debug mode.
2995         (trivially_empty_bb_p): New.  Return true when BB is empty or
2996         contains only debug instructions.
2997         (graphite_can_represent_expr): Call scalar_evoution_in_region
2998         instead of analyze_scalar_evolution.  Pass in scop instead of only
2999         the scop entry.
3000         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3001         scop entry.
3002         (stmt_simple_for_scop_p): Same.
3003         (harmful_stmt_in_bb): Same.
3004         (graphite_can_represent_loop): Deleted.
3005         (struct scopdet_info): Deleted.
3006         (scopdet_basic_block_info): Deleted.
3007         (build_scops_1): Deleted.
3008         (bb_in_sd_region): Deleted.
3009         (find_single_entry_edge): Deleted.
3010         (find_single_exit_edge): Deleted.
3011         (create_single_entry_edge): Deleted.
3012         (sd_region_without_exit): Deleted.
3013         (create_single_exit_edge): Deleted.
3014         (unmark_exit_edges): Deleted.
3015         (mark_exit_edges): Deleted.
3016         (create_sese_edges): Deleted.
3017         (build_graphite_scops): Deleted.
3018         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3019         (build_scops): Use the new scop_builder to build scops.
3020         (dot_all_scops_1): Use the new pretty printer.  Print loop father
3021         as well.
3022         (loop_body_is_valid_scop): New.  Return true if loop body is a
3023         valid scop.
3024         (class scop_builder): New.  Builds SCoPs for polyhedral
3025         optimizations.
3026         (scop_builder): New constructor.
3027         (static sese_l invalid_sese): sese_l with invalid edges.
3028         (get_sese): Get an sese (from a loop) if possible, invalid_sese
3029         otherwise.
3030         (get_nearest_dom_with_single_entry): Get nearest dominator of a
3031         basic_block with single entry.  Return NULL if we get to the
3032         beginning of a function.
3033         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3034         a basic_block with single exit.  Return NULL if we get to the
3035         beginning of a function.
3036         (print_sese): Pretty-print SESE.
3037         (merge_sese): Merge two SESEs if possible and return the new SESE.
3038         (build_scop_depth): Start building the SCoP within a loop nest.
3039         (build_scop_breadth): Start building the SCoP at a single loop
3040         depth.  Merge adjacent SESEs if valid.
3041         (can_represent_loop_1): Returns true if Graphite can represent
3042         loop inside SCoP.  Helper for can_represent_loop.
3043         (can_represent_loop): Returns true if Graphite can represent LOOP
3044         and all its nested loops in SCoP.
3045         (loop_is_valid_scop): Returns true if LOOP and all its nests
3046         constitute a valid SCoP.
3047         (region_has_one_loop): Returns true of a region has only one loop.
3048         (add_scop): Add SCoP to the list of valid scops.  Removes an
3049         already existing scop if it intersects with or subsumed by this one.
3050         (harmful_stmt_in_region): Returns true if SCoP has any statment
3051         which cannot be represented by Graphite.
3052         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3053         (remove_subscops): Remove any SCoP from the list of already found
3054         SCoPs, if subsumed by S1.
3055         (intersects): Return true if region bounded by SCoPs S1 and S2
3056         intersect.
3057         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3058         * graphite.c (print_graphite_scop_statistics):
3059         (print_graphite_statistics): Print SCoP info while debugging.
3060         (graphite_initialize): Early exit in case number of loops in a
3061         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3062         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3063         (graphite_finalize):
3064         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3065         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3066         (recompute_all_dominators): Recalculate POST_DOMINATORS.
3067         * tree-cfg.c (print_loops): Print the function name while printing
3068         loops.
3070 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3071             Sebastian Pop  <s.pop@samsung.com>
3073         PR tree-optimization/67700
3074         * graphite-sese-to-poly.c (parameter_index_in_region): Call
3075         invariant_in_sese_p_rec.
3076         (extract_affine): Same.
3077         (rewrite_cross_bb_scalar_deps): Call update_ssa.
3078         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
3079         * sese.h (invariant_in_sese_p_rec): Declare.
3081 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
3083         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3085 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
3087         Revert:
3088         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3089                     Jiong Wang  <jiong.wang@arm.com>
3091         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3092         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3093         (REG_CLASS_NAMES): Likewise.
3094         (REG_CLASS_CONTENTS): Likewise.
3095         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3096         (aarch64_register_move_cost): Likewise.
3097         (aarch64_load_symref_appropriately): Invoke the new added pattern if
3098         possible.
3099         * config/aarch64/constraints.md (Uc0): New constraint.
3101 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
3103         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3105 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
3107         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3108         SECTION_EXCLUDE in XO mapping class.
3110 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
3112         PR target/54236
3113         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3114         and handle ne and eq codes.
3115         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3116         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
3117         CONST_INT_P.  Use reverse_condition.
3118         (sh_split_treg_set_expr): Likewise.
3120 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
3122         * config/arm/types.md (type): Add rotate_imm.
3123         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3124         ROR immediate case.
3125         (*rorsi3_insn_uxtw): Likewise.
3126         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3127         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3128         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3130 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3132         PR rtl-optimization/67481
3133         * ifcvt.c (contains_ccmode_rtx_p): New function.
3134         (insn_valid_noce_process_p): Use it.
3136 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3138         PR rtl-optimization/67456
3139         PR rtl-optimization/67464
3140         PR rtl-optimization/67465
3141         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3142         move in the mode of x.  Handle combination of complex and simple
3143         block pairs as well as the case when one is empty.
3145 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3147         * doc/gimple.texi: Update references to gimple_statement_base.
3148         * gdbhooks.py: Likewise.
3149         * gimple.h: Likewise.
3151 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3153         * config/sparc/driver-sparc.c: map LEON to leon3
3155 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3157         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3158           and make it inverse to change default
3159         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3160           supervisor mode
3161         * doc/invoke.texi: Document change of default
3163 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3165         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3166         true on %f0 for a target without FPU.
3167         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3168         without FPU.
3169         (untyped_return): Do not load %f0 for a target without FPU.
3171 2015-09-28  Andrew Pinski  <apinski@cavium.com>
3173         * config/aarch64/aarch64.md (prefetch):
3174         Change the predicate of operand 0 to register_operand.
3176 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
3178         * config/i386/predicates.md (register_sse4nonimm_operand): New
3179         predicate.
3180         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3181         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3182         Use register_sse4nonimm_operand as operand 0 predicate.
3183         (*vec_extractv8hi_sse2): Remove insn pattern.
3184         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3185         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3187 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
3188             Kaz Kojima  <kkojima@gcc.gnu.org>
3190         PR target/67391
3191         * config/sh/sh-protos.h (sh_lra_p): Declare.
3192         * config/sh/sh.c (sh_lra_p): Make non-static.
3193         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3194         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
3195         Expand into addsi3_scr if operands[2] if needed.
3196         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
3197         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
3198         (addsi3_scr, *addsi3): New insn_and_split patterns.
3200 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
3202         PR rtl-optimization/64164
3203         PR tree-optimization/67312
3204         PR middle-end/67340
3205         PR middle-end/67490
3206         PR bootstrap/67597
3207         * cfgexpand.c (parm_in_stack_slot_p): Remove.
3208         (ssa_default_def_partition): Remove.
3209         (get_rtl_for_parm_ssa_default_def): Remove.
3210         (set_rtl): Check that RTL assignments match expectations.
3211         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
3212         default def location for params and results.  Record SSA names
3213         or types in REG and MEM attrs, respectively.
3214         (set_parm_rtl): New.
3215         (expand_one_ssa_partition): Drop logic that assigned MEMs with
3216         unassigned addresses.
3217         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3218         deferred stack alloc vars.
3219         (expand_used_vars): Skip partitions holding parm default defs.
3220         Move adjust_one_expanded_partition_var loop...
3221         (pass_expand::execute): ... here.  Drop redundant assert.
3222         Adjust comments before the final loop over all ssa names.
3223         Require assigned rtl of parms and results to match exactly.
3224         Reset its attributes to match them, not any other variables in
3225         the same partition.
3226         (expand_debug_expr): Use entry value for PARM's default defs
3227         only iff they have zero nondebug uses.
3228         * cfgexpand.h (parm_in_stack_slot_p): Remove.
3229         (get_rtl_for_parm_ssa_default_def): Remove.
3230         (set_parm_rtl): Declare.
3231         * doc/invoke.texi: Improve wording.
3232         * explow.c (promote_decl_mode): Fix promote_function_mode for
3233         result decls not by reference.
3234         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3235         bypass TYPE_MODE to get the actual vector mode.
3236         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
3237         2015-08-19's changes as follows.  Drop include of
3238         basic-block.h and df.h.
3239         (rtl_for_parm): Remove.
3240         (maybe_reset_rtl_for_parm): Remove.
3241         (parm_in_unassigned_mem_p): Remove.
3242         (use_register_for_decl): Add logic for RESULT_DECLs matching
3243         assign_parms' behavior.
3244         (split_complex_args): Revert.
3245         (assign_parms_augmented_arg_list): Revert.  Add comment
3246         referencing the logic above.
3247         (assign_parm_adjust_stack_rtl): Revert.
3248         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
3249         of SET_DECL_RTL.  Set up a REG if the parm demands so.
3250         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
3251         calls into a single set_parm_rtl.  Set up a temporary RTL
3252         temporarily for expand_assignment.
3253         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
3254         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
3255         (assign_bounds): Revert.
3256         (assign_parms): Revert.  Use set_parm_rtl.
3257         (allocate_struct_function): Relayout result and parms of
3258         non-abstruct functions.
3259         (expand_function_start): Revert.  Use set_parm_rtl.  If the
3260         result is not a hard reg, create a pseudo from the promoted
3261         mode of the default def.  Promote static chain mode.
3262         * tree-outof-ssa.c (remove_ssa_form): Drop unused
3263         partition_has_default_def.  Set up
3264         partitions_for_parm_default_defs.
3265         (finish_out_of_ssa): Remove partition_has_default_def.
3266         Release partitions_for_parm_default_defs.
3267         * tree-outof-ssa.h (struct ssaexpand): Remove
3268         partition_has_default_def.  Add
3269         partitions_for_parm_default_defs.
3270         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3271         stor-layout.h.
3272         (build_ssa_conflict_graph): Fix conflict-detection of default
3273         defs of even unused default defs of params and results.
3274         (for_all_parms): New.
3275         (create_default_def): New.
3276         (register_default_def): New.
3277         (coalesce_with_default): New.
3278         (create_outofssa_var_map): Create default defs for all parms
3279         and results, and register their partitions.  Add GIMPLE_RETURN
3280         operands as coalesce candidates with results.  Add default
3281         defs of each parm or result as coalesce candidates with its
3282         other defs.  Mark each result def, and each default def of
3283         parms, as used_in_copy.
3284         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
3285         with the ssa names, even anonymous ones.  Drop
3286         parm_in_stack_slot_p calls.  Require same signedness and
3287         alignment.
3288         (coalesce_ssa_name): Add coalesce candidates for all defs of
3289         each parm and result, even unused ones.
3290         (parm_default_def_partition_arg): New type.
3291         (set_parm_default_def_partition): New.
3292         (get_parm_default_def_partitions): New.
3293         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3294         * tree-ssa-live.c (partition_view_init): Regard unused defs of
3295         parms and results as used.
3296         (verify_live_on_entry): Don't error out just because they're
3297         not live.
3299 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
3301         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3302         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3303         (output_fde): Don't output length for debug_frame on AIX.
3304         (output_call_frame_info): Don't output length for debug_frame on AIX.
3305         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3306         HAVE_XCOFF_DWARF_EXTRAS.
3307         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3308         HAVE_XCOFF_DWARF_EXTRAS.
3309         (output_compilation_unit_header): Don't output length on AIX.
3310         (output_pubnames): Don't output length on AIX.
3311         (output_aranges): Delete argument. Compute length locally. Don't
3312         output length on AIX.
3313         (output_line_info): Don't output length on AIX.
3314         (dwarf2out_finish): Don't compute aranges_length.
3315         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3316         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3317         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3318         symbol decoration for AIX.
3319         (rs6000_xcoff_debug_unwind_info): New.
3320         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3321         for SECTION_DEBUG.
3322         (rs6000_xcoff_declare_function_name): Emit different
3323         .function pseudo-op when DWARF2_DEBUG. Don't call
3324         xcoffout_declare_function for DWARF2_DEBUG.
3325         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3326         Redefine.
3327         * config/rs6000/aix71.h: New.
3328         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3329         locations support.
3330         * configure: Regenerate.
3331         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3332         DWARF support.
3334 2015-09-26  Jeff Law  <law@redhat.com>
3336         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3337         behaviour.
3338         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3339         behaviour.
3341         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3342         behaviour
3344         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3345         undefined behaviour.
3347         * config/cris/cris.md (asrandb): Fix left shift undefined
3348         behaviour.
3349         (asrandw): Likewise.
3351 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3353         PR target/61578
3354         * lra-constarints.c (match_reload): Check presence of the input pseudo
3355         in the output operand.
3357 2015-09-25  Tobias Burnus  <burnus@net-b.de>
3359         * doc/invoke.texi (-fsanitize): Minor wording tweak.
3361 2015-09-25  Tobias Burnus  <burnus@net-b.de>
3363         * doc/invoke.texi (-fsanitize): Update URLs.
3365 2015-09-25  Teresa Johnson  <tejohnson@google.com>
3367         * opts.c (finish_options): Unset -freorder-blocks-and-partition
3368         if not using profile.
3370 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3372         PR pretty-print/67567
3373         * pretty-print.c (pp_string): Add gcc_checking_assert.
3374         * pretty-print.h (output_buffer_append_r): Likewise.
3376 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3378         PR target/67675
3379         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3380         addr2 individually.  Don't emit logical or insn if one is known to
3381         be aligned approriately.
3382         (sh_expand_cmpnstr): Likewise.
3384 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
3386         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3387         __builtin_aarch64_fp[sc]r arguments into a register.
3389 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
3391         * config.gcc (x86_archs): Replace lakemount with lakemont.
3392         (with_cpu): Likewise.
3393         (with_arch): Likewise.
3394         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3395         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
3396         __tune_lakemount__ with __tune_lakemont__.
3397         * config/i386/i386.c (lakemount_cost): Renamed to ...
3398         (lakemont_cost): This.
3399         (m_LAKEMOUNT): Renamed to ...
3400         (m_LAKEMONT): This.
3401         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3402         (processor_target_table): Replace "lakemount" with "lakemont".
3403         (processor_alias_table): Likewise.
3404         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3405         PROCESSOR_LAKEMONT.
3406         (ix86_adjust_cost): Likewise.
3407         (ia32_multipass_dfa_lookahead): Likewise.
3408         * config/i386/i386.h (processor_type): Likewise.
3409         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3410         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
3411         Lakemount with Lakemont.
3413 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3415         * config.gcc (x86_archs): Replace iamcu with lakemount.
3416         (with_cpu): Likewise.
3417         (with_arch): Likewise.
3418         * doc/invoke.texi: Likewise.
3419         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3420         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
3421         __tune_iamcu__ with __tune_lakemount__.
3422         * config/i386/i386.c (iamcu_cost): Renamed to ...
3423         (lakemount_cost): This.
3424         (m_IAMCU): Renamed to ...
3425         (m_LAKEMOUNT): This.
3426         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3427         (processor_target_table): Replace "iamcu" with "lakemount".
3428         (processor_alias_table): Likewise.
3429         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3430         PROCESSOR_LAKEMOUNT.
3431         (ix86_adjust_cost): Likewise.
3432         (ia32_multipass_dfa_lookahead): Likewise.
3433         * config/i386/i386.h (processor_type): Likewise.
3434         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
3436 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
3438         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
3439         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
3440         Declare.
3441         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
3442         (pa_expand_compare_and_swap_loop): New.
3443         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
3444         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
3445         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
3446         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
3447         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
3448         Revise.
3450 2015-09-24  Michael Collison  <michael.collison@linaro.org>
3452         PR other/57195
3453         * read-md.c (read_name): Allow mode iterators inside angle
3454         brackets in rtl expressions.
3456 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
3458         PR target/61578
3459         * ira-color.c (update_allocno_cost): Add parameter.
3460         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
3461         parameter.
3463 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3465         PR driver/67640
3466         * opts-common.c (prune_options): Discard all -fdiagnostics-color
3467         but the last one, which is moved to the front to be processed
3468         first.
3469         * opts.c (enable_warning_as_error): Reject options that do not
3470         control warnings.
3472 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
3474         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
3476 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
3478         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
3479         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
3480         (aarch64_cannot_force_const_mem): Likewise.
3481         (aarch64_classify_address): Likewise.
3482         (aarch64_classify_symbolic_expression): Likewise.
3483         (aarch64_print_operand): Likewise.
3484         (aarch64_classify_symbol): Likewise.
3485         (aarch64_mov_operand_p): Likewise.
3486         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
3487         (aarch64_mov_operand): Likewise.
3489 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
3491         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
3492         for info->spe_gp_size.
3494 2015-09-24  Richard Biener  <rguenther@suse.de>
3496         PR lto/67699
3497         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
3498         abstract origins.
3500 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
3502         * tree-object-size.c (plus_stmt_object_size)
3503         (cond_expr_object_size): Change the formal parameters from gimple
3504         to gimple *.
3505         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
3506         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
3507         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
3509 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3511         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
3512         Check for ld -type pie on Solaris 11.x and 12.
3513         * configure: Regenerate.
3514         * config.in: Regenerate.
3516         * gcc.c (LD_PIE_SPEC): Allow redefinition.
3518         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
3519         (STARTFILE_SPEC): Use it.
3520         (ENDFILE_CRTEND_SPEC): Define.
3521         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
3522         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
3523         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
3524         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
3525         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
3526         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
3527         (ENDFILE_ARCH_SPEC): Define.
3528         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
3530 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3532         * configure.ac (gcc_cv_solaris_crts): New test.
3533         * configure. Regenerate.
3534         * config.in: Regenerate.
3535         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
3536         HAVE_SOLARIS_CRTS variant.
3538 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3540         * tree-inline.h (count_insns_seq): Delete prototype.
3541         (estimate_num_insns_seq): Define prototype.
3542         * tree-inline.c (count_insns_seq): Delete.
3543         (estimate_num_insns_seq): Remove static qualifier.
3544         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
3545         with estimate_num_insns_seq.
3547 2015-09-24  Richard Biener  <rguenther@suse.de>
3549         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
3550         members.
3551         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
3552         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
3553         offset.
3554         (ao_ref_init_from_vn_reference): Record clique and base in the
3555         built base.
3556         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
3558 2015-09-24  Richard Biener  <rguenther@suse.de>
3560         PR tree-optimization/48885
3561         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
3562         as not including any restrict tags from other pointers.
3564 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3566         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
3567         character when appending to offload_targets.
3569         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
3570         offload targets by commas, not colons.
3571         * config.in: Regenerate.
3572         * configure: Likewise.
3573         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
3574         instead of setting up the default offload targets here...
3575         (process_command): ..., do it here.
3576         libgomp/
3577         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
3578         targets are separated by commas.
3579         * config.h.in: Regenerate.
3581 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3582             Nathan Sidwell  <nathan@codesourcery.com>
3584         * omp-low.h (omp_reduction_init_op): Declare.
3585         * omp-low.c (omp_reduction_init_op): New, broken out of ...
3586         (omp_reduction_init): ... here.  Call it.
3587         * tree-parloops.c (initialize_reductions): Use
3588         omp_reduction_init_op.
3590 2015-09-23   Richard Biener  <rguenther@suse.de>
3592         PR middle-end/67662
3593         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
3594         undefined overflow unless they will cancel out.
3596 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3598         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
3599         insn emit.
3601 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3603         PR c/49655
3604         * opts.h (write_langs): Declare.
3605         * opts-global.c (write_langs): Make it extern.
3607 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
3609         PR target/67391
3610         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
3611         overlapping regs when matching the pattern.
3613 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
3615         * config/aarch64/aarch64-simd.md
3616         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
3617         (aarch64_float_truncate_hi_v4sf_le): New.
3618         (aarch64_float_truncate_hi_v4sf_be): Likewise.
3620 2015-09-23  Richard Biener  <rguenther@suse.de>
3622         * tree-ssa-structalias.c (intra_create_variable_infos): Build
3623         representatives for all restrict qualified pointer destinations.
3625 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3627         * config/i386/i386.md (define_code_attr mshift): New.
3628         (define_mode_iterator SWI1248_AVX512BW): Rename ...
3629         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
3630         only.
3631         (define_insn "*k<logic><mode>"): Use new iterator name.
3632         (define_insn "*<mshift><mode>3"): New.
3634 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
3636         PR middle-end/67649
3637         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
3638         mark the block as accessible.
3640 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
3642         * function.c (thread_prologue_and_epilogue_insns): Delete
3643         orig_entry_edge argument to try_shrink_wrapping.
3644         * shrink-wrap.c (can_get_prologue): New function.
3645         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
3646         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
3647         can_get_prologue where needed.  Remove code that finds a single
3648         edge for the prologue.  Remove code that tests if any reg clobbered
3649         by the prologue is live on the prologue edge.  Remove code that finds
3650         the new prologue edge after duplicating blocks.  Make a new prologue
3651         block and edge.
3652         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
3654 2015-09-22  Jeff Law  <law@redhat.com>
3656         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
3657         behavior.
3659 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3661         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
3662         -Wtemplates, -Wnamespaces): Document.
3664 2015-09-22  Tom de Vries  <tom@codesourcery.com>
3666         PR tree-optimization/67671
3667         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
3668         pointer references as restrict.
3670 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
3672         * config/nios2/nios2.c (nios2_legitimize_address): When handling
3673         'reg + reloc' cases, allow first operand to be non-REG, and use
3674         force_reg() to enforce address pattern.
3676 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
3678         PR target/67480
3679         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
3680         (define_mode_iterator VI12_AVX_AVX512F): New.
3681         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
3682         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
3683         (define_insn "*<code><mode>3"): ... Into new pattern using
3684         VI12_AVX_AVX512F iterators without masking.
3686 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3688         * config.gcc: Support "skylake-avx512".
3689         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3690         PROCESSOR_SKYLAKE_AVX512.
3691         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
3692         (processor_target_table): Add "skylake-avx512".
3693         (PTA_SKYLAKE_AVX512): Define.
3694         (ix86_option_override_internal): Add "skylake_avx512".
3695         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
3696         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
3697         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
3698         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
3699         * doc/invoke.texi (skylake-avx512): New.
3701 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3703         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
3704         operand in pattern.
3705         (define_insn "kunpcksi"): Ditto.
3706         (define_insn "kunpckdi"): Ditto.
3708 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3710         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
3711         iterator instead of fixed modes.
3713 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3715         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3716         Adjust declaration.
3717         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
3718         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
3719         out_result.  Update to support update-fetch operations.
3720         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
3721         Adjust for change to aarch64_gen_atomic_ldop.
3722         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
3723         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
3724         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
3725         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
3726         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
3728 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3730         * config/aarch64/aarch64-protos.h
3731         (aarch64_atomic_ldop_supported_p): Declare.
3732         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
3733         (enum aarch64_atomic_load_op_code): New.
3734         (aarch64_emit_atomic_load_op): New.
3735         (aarch64_gen_atomic_ldop): Update to support load-operate
3736         patterns.
3737         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
3738         to an expander.
3739         (aarch64_atomic_<atomic_optab><mode>): New.
3740         (aarch64_atomic_<atomic_optab><mode>_lse): New.
3741         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
3742         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
3743         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
3745 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3747         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
3748         (UNSPECV_ATOMIC_LDOP_OR): New.
3749         (UNSPECV_ATOMIC_LDOP_BIC): New.
3750         (UNSPECV_ATOMIC_LDOP_XOR): New.
3751         (UNSPECV_ATOMIC_LDOP_PLUS): New.
3752         (ATOMIC_LDOP): New.
3753         (atomic_ldop): New.
3754         (aarch64_atomic_load<atomic_ldop><mode>): New.
3756 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3758         * config/aarch64/aarch64.md
3759         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
3760         pattern.
3762 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
3764         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3765         Declare.
3766         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
3767         (aarch64_gen_atomic_ldop): New.
3768         (aarch64_split_atomic_op): Fix whitespace and add a comment.
3769         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
3770         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
3771         (atomic_exchange<mode>): Replace with an expander.
3772         (aarch64_atomic_exchange<mode>): New.
3773         (aarch64_atomic_exchange<mode>_lse): New.
3774         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
3775         (aarch64_atomic_swp<mode>): New.
3777 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3779         * tree-inline.c (expand_call_inline): Use inform for extra note.
3780         Do not give a note with UNKNOWN_LOCATION.
3781         Replace input_location with gimple_location (stmt).
3782         Use true/false instead of TRUE/FALSE.
3784 2015-09-22  Tom de Vries  <tom@codesourcery.com>
3786         PR tree-optimization/67666
3787         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
3788         with single field non-conservative.
3790 2015-09-21  David S. Miller  <davem@davemloft.net>
3792         PR/67622
3793         Revert:
3794         2015-09-11  David S. Miller  <davem@davemloft.net>
3796         * config/sparc/constraints.md: Make "U" constraint a real register
3797         constraint.
3798         * config/sparc/sparc.c (TARGET_LRA_P): Define.
3799         (D_MODES, DF_MODES): Add missing cast.
3800         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3801         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3802         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3803         cost to 8.
3804         * config/sparc/sparc.h (PROMOTE_MODE): Define.
3805         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3806         provide these insn when flag_pic.
3808         2015-09-17  David S. Miller  <davem@davemloft.net>
3810         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
3811         Declare.
3812         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
3813         function.
3814         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3815         (HARD_REGNO_CALLER_SAVE_MODE): Define.
3816         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3817         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3818         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3819         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3820         provide when flag_pic.
3822 2015-09-21  Jeff Law  <law@redhat.com>
3824         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
3825         behavior.
3827 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3829         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
3831 2015-09-21  Richard Biener  <rguenther@suse.de>
3833         * passes.c (rest_of_decl_compilation): Do not call
3834         dwarf2out_early_global_decl for aliases.
3836 2015-09-21  Richard Biener  <rguenther@suse.de>
3838         PR debug/67664
3839         * dwarf2out.c (add_location_or_const_value_attribute): Remove
3840         attribute parameter.  Early exit if either DW_AT_const_value
3841         or DW_AT_location are present already.
3842         (gen_variable_die): Adjust caller.
3843         (dwarf2out_late_global_decl): Likewise.
3845 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
3847         PR target/67657
3848         * config/sh/sh.c (sh_remove_overlapping_post_inc,
3849         sh_peephole_emit_move_insn): Add new functions.
3850         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
3851         sh_peephole_emit_move_insn): Declere them.
3852         * config/sh/sh.md: Use them in various peephole2 patterns.
3854 2015-09-21  Richard Biener  <rguenther@suse.de>
3856         PR middle-end/67651
3857         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
3858         address with -fno-delete-null-pointer-checks.
3860 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
3862         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
3863         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
3864         (reduc_uplus_v16qi): Remove.
3866         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
3867         (reduc_<VEC_reduc_name>_v2df): Remove.
3868         (reduc_<VEC_reduc_name>_v4sf): Remove.
3869         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
3871         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
3872         gen_ function by removing * prefix.
3873         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
3875 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3877         PR middle-end/60832
3878         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3879         Print i_bound without converting it to a tree.
3881 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
3883         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
3884         operands[4] operands[5] swap with std::swap, removed tmp variable.
3885         (arm_evpc_neon_vzip): Replaced in0/in1 and
3886         out0/out1 swaps with std::swap, removed x variable.
3887         (arm_evpc_neon_vtrn): Replaced in0/int1 and
3888         out0/out1 swaos with std::swap, removed x variable.
3889         (arm_expand_vec_perm_const_1): Replaced
3890         d->op0/d->op1 swap with std::swap, removed x variable.
3891         (arm_evpc_neon_vuzp): Replaced in0/in1 and
3892         out0/out1 swaps with std::swap, removed x variable.
3894 2015-09-21  Jonathan Yong  <10walls@gmail.com>
3896         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3897         sysroot/usr/lib/32api for additional win32 libraries,
3898         fixes failing Cygwin bootstrapping.
3900 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
3902         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
3904 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
3906         PR target/67126
3907         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
3908         (*mov_t_msb_neg): Rewrite negc pattern.
3910 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3912         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
3913         immediate generation code.
3915 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3917         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
3918         redundant immediate generation code.
3920 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3922         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
3923         (AARCH64_NUM_BITMASKS): Remove.
3924         (aarch64_bitmasks_cmp): Remove.
3925         (aarch64_build_bitmask_table): Remove.
3927 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3929         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
3930         slow immediate matching loops with a faster algorithm.
3932 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
3934         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
3935         faster algorithm.
3937 2015-09-20  Jeff Law  <law@redhat.com>
3939         PR tree-optimization/47679
3940         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
3941         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
3942         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
3943         (thread_through_normal_block): Use record_temporary_equivalences.
3945 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
3947         * coretypes.h (gimple): Change typedef to be a forward declaration.
3948         * gimple.h (gimple_statement_base): rename to gimple.
3949         * (all functions and types using gimple): Adjust.
3950         * *.[ch]: Likewise.
3952 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
3953             David Edelsohn  <dje.gcc@gmail.com>
3955         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
3956         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3957         (EH_FRAME_THROUGH_COLLECT2): Define.
3958         (EH_TABLES_CAN_BE_READ_ONLY): Define.
3959         (ASM_OUTPUT_DWARF_PCREL): Define.
3960         (ASM_OUTPUT_DWARF_DATAREL): Define.
3962 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
3964         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
3965         of TARGET_ELF32.
3967 2015-09-18  Jeff Law  <law@redhat.com>
3969         PR tree-optimization/47679
3970         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
3971         it here ...
3972         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
3973         object.  Update constructor.
3974         (pass_dominator::execute):  Corresponding chagnes to declaration
3975         and initialization of avail_exprs_stack.  Update constructor call
3976         for dom_opt_dom_walker object.
3977         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
3978         it down to children as needed.
3979         (record_equivalences_from_incoming_edge): Likewise.
3980         (eliminate_redundant_computations): Likewise.
3981         (record_equivalences_from_stmt): Likewise.
3982         (simplify_stmt_for_jump_threading): Likewise.
3983         (record_temporary_equivalences): Likewise.
3984         (optimize_stmt): Likewise.
3985         (dom_opt_dom_walker::thread_across_edge): Update access to
3986         avail_exprs_stack object and pass it to children as needed.
3987         (dom_opt_dom_walker::before_dom_children): Similarly.
3988         (dom_opt_dom_walker::after_dom_children): Similarly.
3989         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
3990         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
3991         Add avail_expr_stack argument.  Pass it to children as needed.
3992         (dummy_simplify): Likewise.
3993         (simplify_control_stmt_condition): Likewise.
3994         (thread_around_empty_blocks): Likewise.
3995         (thread_through_normal_block): Likewise.
3996         (thread_across_edge): Likewise.
3997         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3998         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4000         PR tree-optimization/47679
4001         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
4002         it here ...
4003         (dom_opt_dom_walker): New private member holding the const_and_copies
4004         object.  Update constructor.
4005         (pass_dominator::execute): Corresponding changes to declaration
4006         and initialization of const_and_copies.  Update constructor call
4007         for the dom_opt_dom_walker object.
4008         (record_temporary_equivalences): Accept const_and_copies argument
4009         pass it down to children as needed.
4010         (record_equality): Likewise.
4011         (record_equivalences_from_incoming_edge): Likewise.
4012         (cprop_into_successor_phis, optimize_stmt): Likewise.
4013         (eliminate_redundant_computations): Likewise.
4014         (dom_opt_dom_walker::thread_across_edge): Update access to
4015         const_and_copies object and pass it to children as needed.
4016         (dom_opt_dom_walker::before_dom_children): Similarly.
4017         (dom_opt_dom_walker::after_dom_children): Similarly.
4019         PR tree-optimization/47679
4020         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
4021         it into the avail_exprs_stack class.
4022         (pass_dominator::execute): Corresponding changes to declaration
4023         and initialization of avail_exprs.  Pass avail_exprs to
4024         dump_dominator_optimization_stats.
4025         (record_cond): Extract avail_exprs from avail_exprs_stack.
4026         (lookup_avail_expr): Similarly.
4027         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
4028         position in file.
4029         (dump_dominator_optimization_stats): Make static and prototype.
4030         Add argument for the hash table to dump.
4031         (debug_dominator_optimization_stats): Remove.
4032         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4033         prototype.
4034         (debug_dominator_optimization_stats): Similarly.
4035         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4036         "void" in prototype for pop_to_marker method.  Add accessor method
4037         for the underlying avail_exprs table.
4039         * tree-ssa-threadedge.c: Remove trailing whitespace.
4041 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
4043         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4044         unsigned.
4045         (pa_ldil_cint_p): Likewise.
4046         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4047         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4048         Update callers.
4049         * config/pa/pa.md: Likewise.
4051 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
4053         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4054         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4055         (diagnostic_show_locus): Likewise.
4056         (diagnostic_print_caret_line): Likewise.
4057         * diagnostic-show-locus.c: New file.
4059 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
4061         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4062         "back" parameter. Declare label in #if block.
4064 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
4066         PR middle-end/67619
4067         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4068         the address to a register.
4070 2015-09-18  Jeff Law  <law@redhat.com>
4072         PR tree-optimization/47679
4073         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4074         * tree-ssa-dom.c: Remove unnecessary header includes.
4075         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4076         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4077         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4078         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4079         (pass_phi_only_cprop::execute): Likewise.
4080         (make_pass_phi_only_cprop): Likewise.
4081         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
4082         uses of file scoped statics by passing the required objects
4083         as parameters wherever needed.
4085 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
4086             David Edelsohn  <dje.gcc@gmail.com>
4088         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4089         EH_FRAME_THROUGH_COLLECT2.
4090         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4091         DW_EH_PE_datarel.
4092         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4093         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
4094         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4095         * except.c (switch_to_exception_section): Use a read-only section
4096         even if EH_FRAME_SECTION_NAME is undefined.
4097         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4098         * collect2.c (write_c_file_stat): Provide dbase on AIX.
4099         (scan_prog_file): Don't export __dso_handle nor
4100         __gcc_unwind_dbase.
4101         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4102         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4103         (ASM_OUTPUT_DWARF_PCREL): Define.
4104         (ASM_OUTPUT_DWARF_DATAREL): Define.
4105         (EH_FRAME_THROUGH_COLLECT2): Define.
4106         (EH_FRAME_IN_DATA_SECTION): Delete.
4107         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4108         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4109         Declare.
4110         (rs6000_asm_output_dwarf_datarel): Declare.
4111         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4112         (rs6000_aix_asm_output_dwarf_datarel): New.
4113         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4114         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4115         (EH_FRAME_THROUGH_COLLECT2): Define.
4116         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4117         (EH_FRAME_THROUGH_COLLECT2): Define.
4118         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4119         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4120         (EH_FRAME_THROUGH_COLLECT2): New.
4121         (ASM_OUTPUT_DWARF_DATAREL): New.
4122         * doc/tm.texi: Regenerate.
4124 2015-09-18  Richard Biener  <rguenther@suse.de>
4126         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4127         we're in early phase.
4128         (schedule_generic_params_dies_gen): Likewise.
4129         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4130         work as possible, retaining unhandled cases.
4131         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4132         clear out generic_type_instances at the end.
4133         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4134         (dwarf2out_early_finish): ... here.  Do most of
4135         gen_remaining_tmpl_value_param_die_attribute here.
4137 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
4139         PR tree-optimization/67283
4140         * tree-sra.c (type_consists_of_records_p): Rename to...
4141         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4142         (completely_scalarize_record): Rename to...
4143         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4144         (scalarize_elem): New.
4145         (analyze_all_variable_accesses): Follow renamings.
4147 2015-09-18  Richard Biener  <rguenther@suse.de>
4149         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4150         in early-dwarf.
4152 2015-09-18  Richard Biener  <rguenther@suse.de>
4154         PR tree-optimization/66142
4155         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4156         treat MEM[&x] and x the same.
4157         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4158         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4159         when we simplified sth.
4160         (vn_reference_maybe_forwprop_address): Likewise.
4161         (valueize_refs_1): When we simplified through
4162         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4163         set valueized_anything to true.
4164         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4165         one ref kills the other instead of just a offset-based test.
4166         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4167         for the operand_equal_p test to compare bases and also compare
4168         sizes.
4170 2015-09-17  Christian Bruel  <christian.bruel@st.com>
4172         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4174 2015-09-17  Richard Henderson  <rth@redhat.com>
4176         PR libstdc++/65913
4177         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4178         pointers that encode the alignment of the object.
4180 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4182         PR rtl-optimization/66790
4183         * df-problems.c (LIVE): Amend documentation.
4185 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
4187         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4188         and optabs-tree.o.
4189         (GTFILES): Replace optabs.c with optabs-libfunc.c.
4190         * genopinit.c (main): Add an include guard to insn-opinit.h.
4191         Protect the rtx_code parts with NUM_RTX_CODE.
4192         * optabs.h: Split parts out to...
4193         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4194         * optabs.c: Split parts out to...
4195         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4196         * cilk-common.c: Include optabs-query.h rather than optabs.h.
4197         * fold-const.c: Likewise.
4198         * target-globals.c: Likewise.
4199         * tree-if-conv.c: Likewise.
4200         * tree-ssa-forwprop.c: Likewise.
4201         * tree-ssa-loop-prefetch.c: Likewise.
4202         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4203         Remove unncessary include files.
4204         * tree-ssa-phiopt.c: Likewise.
4205         * tree-ssa-reassoc.c: Likewise.
4206         * tree-switch-conversion.c: Likewise.
4207         * tree-vect-data-refs.c: Likewise.
4208         * tree-vect-generic.c: Likewise.
4209         * tree-vect-loop.c: Likewise.
4210         * tree-vect-patterns.c: Likewise.
4211         * tree-vect-slp.c: Likewise.
4212         * tree-vect-stmts.c: Likewise.
4213         * tree-vrp.c: Likewise.
4214         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4215         rather than optabs.h.
4216         * expr.c: Include optabs-tree.h.
4217         * function.c: Likewise.
4219 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4221         PR middle-end/65958
4222         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4223         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4224         * config/arm/arm.c: Include common/common-target.h.
4225         (use_return_insn): Return 0 if the static chain register was saved
4226         above a non-APCS frame.
4227         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4228         (struct scratch_reg): New.
4229         (get_scratch_register_on_entry): New function.
4230         (release_scratch_register_on_entry): Likewise.
4231         (arm_emit_probe_stack_range): Likewise.
4232         (output_probe_stack_range): Likewise.
4233         (arm_expand_prologue): Factor out code dealing with the IP register
4234         for nested function and adjust it for stack checking.
4235         Invoke arm_emit_probe_stack_range if static builtin stack checking
4236         is enabled.
4237         (thumb1_expand_prologue): Sorry out if static builtin stack checking
4238         is enabled.
4239         (arm_expand_epilogue): Add the saved static chain register, if any, to
4240         the amount of pre-pushed registers to pop.
4241         (arm_frame_pointer_required): Return true if static stack checking is
4242         enabled and we want to catch the exception with the EABI unwinder.
4243         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4244         (UNSPEC_PROBE_STACK_RANGE): Likewise.
4245         * config/arm/arm.md (probe_stack): New insn.
4246         (probe_stack_range): Likewise.
4248 2015-09-17  Richard Biener  <rguenther@suse.de>
4250         * genmatch.c (parser::parse_expr): Improve error message
4251         for mis-placed flags.
4253 2015-09-17  Richard Biener  <rguenther@suse.de>
4255         * passes.c (rest_of_decl_compilation): Always call early_global_decl
4256         debug hook when we created a varpool node.
4257         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4258         dwarf2out_early_global_decl, when not just add location or
4259         value attributes to existing DIEs.
4261 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
4263         * config/aarch64/aarch64.md (copysigndf3): New.
4264         (copysignsf3): Likewise.
4266 2015-09-17  David S. Miller  <davem@davemloft.net>
4268         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4269         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4270         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4271         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4272         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4273         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4274         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4275         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4276         provide when flag_pic.
4278 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4280         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4281         object_allocator change.
4283 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
4285         PR tree-optimization/66388
4286         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4287         (dump_iv): Dump no_overflow information.
4288         (alloc_iv): Initialize new field for struct iv.
4289         (mark_bivs): Count number of no_overflow bivs.
4290         (find_deriving_biv_for_expr, record_biv_for_address_use): New
4291         functions.
4292         (idx_find_step): Call new functions above.
4293         (add_candidate_1, add_candidate): New paramter.
4294         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4295         (get_computation_aff): Simplify convertion of cand for BIV.
4296         (get_computation_cost_at): Step cand's base if necessary.
4298 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
4300         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4301         parameter.
4302         (tree_simplify_using_condition): Ditto.
4303         (simplify_using_initial_conditions): Ditto.
4304         (loop_exits_before_overflow): Pass new argument to function
4305         simplify_using_initial_conditions.  Remove case for type conversions
4306         simplification.
4307         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4308         parameter.
4309         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4310         in iv base using loop initial conditions.
4312 2015-09-16  Jeff Law  <law@redhat.com>
4314         PR tree-optimization/47679
4315         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4316         (free_all_edge_infos): Use it.
4317         (allocate_edge_info): Free preexisting edge info data.
4318         (pass_dominator::execute): Set up initial edge info structures.
4319         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4320         thread_across_edge.
4321         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4322         If non-null, then push/pop markers appropriately.
4323         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4324         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4325         thread-across_edge.
4327 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
4329         * config/ft32/ft32.c: Fix the memory address space predicate.
4331 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
4333         PR target/67573
4334         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4335         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4337 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4339         * toplev.h (check_global_declaration): Remove declaration.
4340         * toplev.c (check_global_declaration): Move to ...
4341         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4342         (analyze_functions): Update call.
4344 2015-09-16  David S. Miller  <davem@davemloft.net>
4346         * lra-constraints.c (simplify_operand_subreg): Do not assume that
4347         lowpart of a SUBREG has offset zero.
4349 2015-09-16  Jeff Law  <law@redhat.com>
4351         PR tree-optimization/47679
4352         * tree-ssa-dom.c (enum expr_kind): Moved from here to
4353         tree-ssa-scopedtables.h.
4354         (struct hashable_expr, class expr_hash_elt): Likewise.
4355         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4356         Move associated methods into tree-ssa-scopedtables.c.
4357         (avail_expr_hash, initialize_expr_from_cond): Similarly.
4358         (hashable_expr_equal_p, add_expr_commutative): Likewise.
4359         (add_hashable_expr): Likewise.
4360         (record_cond): Delete element directly.
4361         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4362         private copy ctor and assignment operator methods.
4363         (expr_elt_hasher): Inline trivial methods.
4364         (initialize_expr_from_cond): Prototype.
4365         * tree-ssa-scopedtables.c: Add necessary includes, functions and
4366         methods that were previously in tree-ssa-dom.c.  Improve various
4367         comments.
4369 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
4371         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4373 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
4375         PR bootstrap/67587
4376         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4377         fixup_partitions.
4379 2015-09-16  Richard Biener  <rguenther@suse.de>
4381         PR middle-end/67253
4382         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4383         location of possibly shared trees.
4385 2015-09-16  Richard Biener  <rguenther@suse.de>
4387         PR middle-end/67271
4388         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4390 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
4392         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4393         offset and size computations instead of HOST_WIDE_INT.
4395 2015-09-16  Richard Biener  <rguenther@suse.de>
4397         PR middle-end/67442
4398         * fold-const.c (extract_muldiv_1): Properly extend multiplication
4399         result before builting a tree via wide_int_to_tree.
4401 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
4403         * Makefile.in: Add memory-block.cc
4404         (pool_allocator::initialize): Use fixed block size.
4405         (pool_allocator::release): Use memory_block_pool.
4406         (pool_allocator::allocate): Likewise.
4407         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4408         object pools.
4409         * cfg.c (initialize_original_copy_tables): Likewise.
4410         * cselib.c (elt_list_pool, elt_loc_list_pool,
4411         cselib_val_pool): Likewise.
4412         * df-problems.c (df_chain_alloc): Likewise.
4413         * df-scan.c (df_scan_alloc): Likewise.
4414         * dse.c (cse_store_info_pool, rtx_store_info_pool,
4415         read_info_type_pool, insn_info_type_pool, bb_info_pool,
4416         group_info_pool, deferred_change_pool): Likewise.
4417         * et-forest.c (et_nodes, et_occurrences): Likewise.
4418         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4419         ipcp_agg_lattice_pool): Likewise.
4420         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4421         * ipa-profile.c (histogram_pool): Likewise.
4422         * ipa-prop.c (ipa_refdesc_pool): Likewise.
4423         * ira-build.c (live_range_pool, allocno_pool, object_pool,
4424         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4425         * ira-color.c (update_cost_record_pool): Likewise.
4426         * lra-lives.c (lra_live_range_pool): Likewise.
4427         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4428         * memory-block.cc: New file.
4429         * memory-block.h: New file.
4430         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4431         * sched-deps.c (sched_deps_init): Likewise.
4432         * sel-sched-ir.c (sched_lists_pool): Likewise.
4433         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4434         * tree-sra.c (access_pool): Likewise.
4435         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4436         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
4437         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
4438         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4439         * tree-ssa-strlen.c (strinfo_pool): Likewise.
4440         * tree-ssa-structalias.c (variable_info_pool): Likewise.
4441         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
4442         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
4444 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
4446         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
4447         definition.
4448         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
4449         call0 ABI.
4451 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
4453         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
4454         to pass TLS call argument, according to current ABI.
4455         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
4456         callx0 for TLS call, according to current ABI.
4458 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4460         * tree-eh.c (lower_try_finally_dup_block): Clear location information
4461         on stack restore statements.
4462         (decide_copy_try_finally): Do not consider a stack restore statement as
4463         coming from sources.
4465 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
4467         * config/alpha/alpha.c (alpha_expand_block_clear): Use
4468         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
4470 2015-09-15  Jeff Law  <law@redhat.com>
4472         PR tree-optimization/47679
4473         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
4474         methods and private members.
4475         (avail_exprs_stack): Similarly.  Change type of global
4476         from a pair of expr_hash_elt_t to the new class.
4477         (expr_elt_hasher::hash): Corresponding changes.
4478         (expr_elt_hasher::equal): Similarly.
4479         (avail_expr_hash): Similarly.
4480         (pass_dominator::execute): Similarly.
4481         (dom_opt_dom_walker::thread_across_edge): Similarly.
4482         (record_cond): Similarly.
4483         (dom_opt_dom_walker::before_dom_children): Similarly.
4484         (dom_opt_dom_walker::after_dom_children): Similarly.
4485         (lookup_avail_expr): Likewise.
4486         (initialize_hash_element): Now a expr_hash_elt constructor.
4487         (initialize_hash_element_from_expr): Similarly.
4488         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
4489         (free_expr_hash_elt): Call dtor for the element.
4490         (remove_local_expressions_from_table): Now the "pop_to_marker"
4491         method in the available_exprs_stack class.
4492         (avail_expr_stack::record_expr): Method factored out.
4493         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
4494         Fix formatting.
4495         (hashable_expr_equal_p): Fix formatting.
4497 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
4499         * input.h (location_get_source_line): Drop "expanded_location"
4500         param in favor of a file and line number.
4501         * input.c (location_get_source_line): Likewise.
4502         (dump_location_info): Update for change in signature of
4503         location_get_source_line.
4504         * diagnostic.c (diagnostic_print_caret_line): Likewise.
4506 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4508         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
4509         Bump to 4KB for SJLJ exceptions.
4510         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
4511         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
4512         * doc/tm.texi: Regenerate.
4514 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4516         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
4517         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
4518         Update prototype.
4520 2015-09-15  Richard Biener  <rguenther@suse.de>
4522         PR tree-optimization/67470
4523         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
4524         structure for PHI hoisting by inserting a forwarder block
4525         if appropriate.
4527 2015-09-15  Christian Bruel  <christian.bruel@st.com>
4529         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
4530         (arm_option_print): New function.
4532 2015-09-15  Christian Bruel  <christian.bruel@st.com>
4534         PR target/52144
4535         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
4536         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
4537         Remove flags parameter.
4538         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
4539         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
4540         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
4541         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
4542         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
4543         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
4544         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
4545         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
4547 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4549         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
4551         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
4552         AARCH64_VALID_SIMD_DREG_MODE.
4554 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4556         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
4557         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
4558         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
4559         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
4560         aarch64_ld4_lane<mode>): Combine together, making...
4561         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4562         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4563         aarch64_st4_lane<mode>): Combine together, making...
4564         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4565         * config/aarch64/iterators.md (nregs): Add comment.
4567 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4569         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
4570         Change operand mode from <V_TWO_ELEM> to BLK.
4571         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
4572         (aarch64_vec_store_lanesoi_lane<mode): Likewise
4573         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4574         (aarch64_ld2_lane<mode>): Likewise.
4575         (aarch64_st2_lane<VQ:mode>): Likewise.
4576         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
4578 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4580         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
4581         Change operand mode from <V_FOUR_ELEM> to BLK.
4582         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
4583         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
4584         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4585         (aarch64_ld4_lane<mode>): Likewise.
4586         (aarch64_st4_lane<mode>): Likewise.
4587         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
4589 2015-09-15  Richard Biener  <rguenther@suse.de>
4591         PR middle-end/67563
4592         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4593         transfer EH info from old to new stmt.
4594         (replace_call_with_value): Likewise.
4595         (replace_call_with_call_and_fold): Likewise.
4596         (gimple_fold_builtin_memory_op): Likewise.
4597         (gimple_fold_builtin_memset): Likewise.
4598         (gimple_fold_builtin_stpcpy): Likewise.
4599         (gimple_fold_call): Likewise.
4601 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4603         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
4604         comment.
4605         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
4606         (aarch64_simd_intEI_type_node): Likewise.
4607         (aarch64_simd_builtin_std_type): Remove EImode case.
4608         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
4609         * config/aarch64/aarch64-modes.def: Remove EImode.
4611 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4613         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
4614         Change operand mode from <V_THREE_ELEM> to BLK.
4615         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
4616         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
4617         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4618         (aarch64_ld3_lane<mode>): Likewise.
4619         (aarch64_st3_lane<mode>): Likewise.
4620         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
4622 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4624         * config/aarch64/aarch64-simd.md
4625         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
4626         Change all TImode operands to BLKmode.
4627         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
4628         Change all EImode operands to BLKmode.
4629         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
4630         Change all OImode operands to BLKmode.
4632         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
4633         and call set_mem_size.
4634         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
4636         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
4638 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
4640         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
4641         to...
4642         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
4644         (vec_store_lanesci_lane<mode>): Rename to...
4645         (aarch64_vec_store_lanesci_lane<mode>): ...this.
4647         (vec_store_lanesxi_lane<mode>): Rename to...
4648         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
4650         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4651         aarch64_st4_lane<mode>): Follow renaming.
4653 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4655         * config/s390/s390.c (s390_const_operand_ok): Add missing
4656         brackets.
4658 2015-09-15  Richard Biener  <rguenther@suse.de>
4660         PR lto/67568
4661         * lto-streamer.h (lto_location_cache::current_sysp): Properly
4662         initialize.
4663         * lto-streamer-out.c (clear_line_info): Likewise.
4665 2015-09-15  Richard Biener  <rguenther@suse.de>
4667         * doc/match-and-simplify.texi: Fix wording.
4669 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
4671         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
4672         unnecessary type conversion in op1.
4674 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
4676         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
4677         (dup_block_and_redirect): Delete function.
4678         (can_dup_for_shrink_wrapping): New function.
4679         (fix_fake_fallthrough_edge): New function.
4680         (try_shrink_wrapping): Rewrite function.
4681         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
4683 2015-09-14  Rich Felker  <dalias@libc.org>
4685         * configure.ac: Change target pattern for sh TLS support
4686         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
4687         * configure: Regenerate.
4689 2015-09-14  Jeff Law  <law@redhat.com>
4691         PR tree-optimization/47679
4692         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
4693         type rather than void *.
4695 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4697         PR fortran/67460
4698         * diagnostic.c (diagnostic_initialize): Do not set
4699         some_warnings_are_errors.
4700         (diagnostic_finish): Use DK_WERROR count instead.
4701         (diagnostic_report_diagnostic): Do not set
4702         some_warnings_are_errors.
4703         * diagnostic.h (struct diagnostic_context): Remove
4704         some_warnings_are_errors.
4706 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
4708         * config/sparc/predicates.md (const_all_ones_operand): Use
4709         CONSTM1_RTX to simplify definition.
4711 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
4713         PR target/67061
4714         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
4715         Handle call insns.
4717 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
4719         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
4720         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
4721         OPT_fshow_column to handled saved option cases.
4722         (append_compiler_options): Do not skip the above added options.
4724 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4726         PR target/63304
4727         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
4728         nopcrelative_literal_loads.
4729         (aarch64_classify_address): Likewise.
4730         (aarch64_constant_pool_reload_icode): Define.
4731         (aarch64_secondary_reload): Handle secondary reloads for
4732         literal pools.
4733         (aarch64_override_options): Handle nopcrelative_literal_loads.
4734         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
4735         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4736         Define.
4737         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4738         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
4739         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
4740         predicate.
4741         * doc/invoke.texi (mpc-relative-literal-loads): Document.
4743 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
4745         PR middle-end/67401
4746         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
4747         sync_compare_and_swap_optab libcall to target_oval.
4749 2015-09-14  Marek Polacek  <polacek@redhat.com>
4751         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
4752         value.
4753         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
4755 2015-09-11  Mark Wielaard  <mjw@redhat.com>
4757         PR c/28901
4758         * toplev.c (check_global_declaration): Check and use
4759         warn_unused_const_variable.
4760         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
4761         (-Wunused-variable): Remove non-constant. For C implies
4762         -Wunused-const-variable.
4763         (-Wunused-const-variable): New.
4765 2015-09-14  Richard Biener  <rguenther@suse.de>
4767         * doc/match-and-simplify.texi: Update for changed syntax
4768         of inner ifs and the new switch expression.
4770 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
4772         * config/i386/haswell.md: New file describing Haswell pipeline.
4773         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
4774         haswell-like processors.
4775         (ix86_reassociation_width): Increase reassociation width for 64-bit
4776         Haswell processor family.
4777         * config/i386/i386.md: Introduce haswell cpu and include new md file.
4779 2015-09-14  Richard Biener  <rguenther@suse.de>
4781         * doc/match-and-simplify.texi: Fixup some formatting issues
4782         and document the 's' flag.
4784 2015-09-13  Olivier Hainque  <hainque@adacore.com>
4785             Eric Botcazou  <ebotcazou@adacore.com>
4787         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
4788         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
4789         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
4790         (TARGET_CPU_gr5): Likewise.
4791         (TARGET_CPU_gr6): Likewise.
4792         (MULTILIB_DEFAULTS): Likewise.
4793         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
4794         for mcpu=gr5 and mcpu=gr6.
4795         (MULTILIB_DIRNAMES): Adjust accordingly.
4797 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4799         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
4800         (mem_ref_p): Likewise.
4801         (outermost_indep_loop): Adjust.
4802         (mem_ref_in_stmt): Likewise.
4803         (determine_max_movement): Likewise.
4804         (mem_ref_alloc): Likewise.
4805         (record_mem_ref_loc): Likewise.
4806         (set_ref_stored_in_loop): Likewise.
4807         (mark_ref_stored): Likewise.
4808         (gather_mem_refs_stmt): Likewise.
4809         (mem_refs_may_alias_p): Likewise.
4810         (for_all_locs_in_loop): Likewise.
4811         (struct rewrite_mem_ref_loc): Likewise.
4812         (rewrite_mem_refs): Likewise.
4813         (struct first_mem_ref_loc_1): Likewise.
4814         (first_mem_ref_loc): Likewise.
4815         (struct sm_set_flag_if_changed): Likewise.
4816         (execute_sm_if_changed_flag_set): Likewise.
4817         (execute_sm): Likewise.
4818         (hoist_memory_references):
4819         (struct ref_always_accessed): Likewise.
4820         (ref_always_accessed_p): Likewise.
4821         (refs_independent_p): Likewise.
4822         (record_dep_loop): Likewise.
4823         (ref_indep_loop_p_1): Likewise.
4824         (ref_indep_loop_p_2): Likewise.
4825         (ref_indep_loop_p): Likewise.
4826         (can_sm_ref_p): Likewise.
4827         (find_refs_for_sm): Likewise.
4828         (tree_ssa_lim_finalize): Likewise.
4830 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4832         * dwarf2out.c (dw_attr_ref): Remove typedef.
4833         (dw_line_info_ref): Likewise.
4834         (pubname_ref): Likewise.
4835         (dw_ranges_ref): Likewise.
4836         (dw_ranges_by_label_ref): Likewise.
4837         (comdat_type_node_ref): Likewise.
4838         (get_AT): Adjust.
4839         (get_AT_low_pc): Likewise.
4840         (get_AT_hi_pc): Likewise.
4841         (get_AT_string): Likewise.
4842         (get_AT_flag): Likewise.
4843         (get_AT_unsigned): Likewise.
4844         (get_AT_ref): Likewise.
4845         (get_AT_file): Likewise.
4846         (remove_AT): Likewise.
4847         (print_die): Likewise.
4848         (check_die): Likewise.
4849         (die_checksum): Likewise.
4850         (attr_checksum_ordered): Likewise.
4851         (struct checksum_attributes): Likewise.
4852         (collect_checksum_attributes): Likewise.
4853         (die_checksum_ordered): Likewise.
4854         (same_die_p): Likewise.
4855         (is_declaration_die): Likewise.
4856         (clone_die): Likewise.
4857         (clone_as_declaration): Likewise.
4858         (copy_declaration_context): Likewise.
4859         (break_out_comdat_types): Likewise.
4860         (copy_decls_walk): Likewise.
4861         (output_location_lists): Likewise.
4862         (external_ref_hasher::hash): Likewise.
4863         (optimize_external_refs_1): Likewise.
4864         (build_abbrev_table): Likewise.
4865         (size_of_die): Likewise.
4866         (unmark_all_dies): Likewise.
4867         (size_of_pubnames): Likewise.
4868         (output_die_abbrevs): Likewise.
4869         (output_die): Likewise.
4870         (output_pubnames): Likewise.
4871         (add_ranges_num): Likewise.
4872         (add_ranges_by_labels): Likewise.
4873         (add_high_low_attributes): Likewise.
4874         (gen_producer_string): Likewise.
4875         (dwarf2out_set_name): Likewise.
4876         (new_line_info_table): Likewise.
4877         (prune_unused_types_walk_attribs): Likewise.
4878         (prune_unused_types_update_strings): Likewise.
4879         (prune_unused_types): Likewise.
4880         (resolve_addr): Likewise.
4881         (optimize_location_lists_1): Likewise.
4882         (index_location_lists): Likewise.
4883         (dwarf2out_finish): Likewise.
4885 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4887         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
4889 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4891         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
4892         (dump_asserts_for): Adjust.
4893         (register_new_assert_for): Likewise.
4894         (process_assert_insertions): Likewise.
4895         (insert_range_assertions): Likewise.
4897 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4899         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
4900         and remove typedef.
4901         (new_temp_expr_table): Adjust.
4902         (free_temp_expr_table): Likewise.
4903         (version_to_be_replaced_p): Likewise.
4904         (make_dependent_on_partition): Likewise.
4905         (add_to_partition_kill_list): Likewise.
4906         (remove_from_partition_kill_list): Likewise.
4907         (add_dependence): Likewise.
4908         (finished_with_expr): Likewise.
4909         (process_replaceable): Likewise.
4910         (kill_expr): Likewise.
4911         (kill_virtual_exprs): Likewise.
4912         (mark_replaceable): Likewise.
4913         (find_replaceable_in_bb): Likewise.
4914         (find_replaceable_exprs): Likewise.
4915         (debug_ter): Likewise.
4917 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4919         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
4920         (struct btr_user): Rename from btr_user_s.
4921         (struct btr_def): Rename from btr_def_s.
4922         (find_btr_def_group): Adjust.
4923         (add_btr_def): Likewise.
4924         (new_btr_user): Likewise.
4925         (note_other_use_this_block): Likewise.
4926         (compute_defs_uses_and_gen): Likewise.
4927         (link_btr_uses): Likewise.
4928         (build_btr_def_use_webs): Likewise.
4929         (block_at_edge_of_live_range_p): Likewise.
4930         (btr_def_live_range): Likewise.
4931         (combine_btr_defs): Likewise.
4932         (move_btr_def): Likewise.
4933         (migrate_btr_def): Likewise.
4934         (migrate_btr_defs): Likewise.
4936 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4938         * var-tracking.c (shared_hash_def): Rename to shared_hash.
4939         (shared_hash): Remove typedef.
4940         (struct dataflow_set): Adjust.
4941         (shared_hash_unshare): Likewise.
4942         (dataflow_set_merge): Likewise.
4943         (vt_initialize): Likewise.
4944         (vt_finalize): Likewise.
4946 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4948         * var-tracking.c (struct location_chain): Rename from
4949         location_chain_def.
4950         (struct variable_part): Adjust.
4951         (variable_htab_free): Likewise.
4952         (unshare_variable): Likewise.
4953         (get_init_value): Likewise.
4954         (get_addr_from_local_cache): Likewise.
4955         (drop_overlapping_mem_locs): Likewise.
4956         (val_reset): Likewise.
4957         (struct variable_union_info): Likewise.
4958         (variable_union): Likewise.
4959         (find_loc_in_1pdv): Likewise.
4960         (insert_into_intersection): Likewise.
4961         (intersect_loc_chains): Likewise.
4962         (canonicalize_loc_order_check): Likewise.
4963         (canonicalize_values_mark): Likewise.
4964         (canonicalize_values_star): Likewise.
4965         (canonicalize_vars_star): Likewise.
4966         (variable_merge_over_cur): Likewise.
4967         (remove_duplicate_values): Likewise.
4968         (variable_post_merge_new_vals): Likewise.
4969         (variable_post_merge_perm_vals): Likewise.
4970         (find_mem_expr_in_1pdv): Likewise.
4971         (dataflow_set_preserve_mem_locs): Likewise.
4972         (dataflow_set_remove_mem_locs): Likewise.
4973         (variable_part_different_p): Likewise.
4974         (onepart_variable_different_p): Likewise.
4975         (find_src_set_src): Likewise.
4976         (dump_var): Likewise.
4977         (set_slot_part): Likewise.
4978         (clobber_slot_part): Likewise.
4979         (delete_slot_part): Likewise.
4980         (vt_expand_var_loc_chain): Likewise.
4981         (emit_note_insn_var_location): Likewise.
4982         (vt_finalize): Likewise.
4984 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4986         * dse.c (store_info_t): Remove typedef.
4987         (group_info_t): Likewise.
4988         (const_group_info_t): Likewise.
4989         (deferred_change_t): Likewise.
4990         (get_group_info): Adjust.
4991         (free_store_info): Likewise.
4992         (canon_address): Likewise.
4993         (clear_rhs_from_active_local_stores): Likewise.
4994         (record_store): Likewise.
4995         (replace_read): Likewise.
4996         (check_mem_read_rtx): Likewise.
4997         (scan_insn): Likewise.
4998         (remove_useless_values): Likewise.
4999         (dse_step1): Likewise.
5000         (dse_step2_init): Likewise.
5001         (dse_step2_nospill): Likewise.
5002         (scan_stores_nospill): Likewise.
5003         (scan_reads_nospill): Likewise.
5004         (dse_step3_exit_block_scan): Likewise.
5005         (dse_step3): Likewise.
5006         (dse_step5_nospill): Likewise.
5007         (dse_step6): Likewise.
5009 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5011         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5012         (alias_set_entry): Remove typedef.
5013         (alias_set_subset_of): Adjust.
5014         (alias_sets_conflict_p): Likewise.
5015         (init_alias_set_entry): Likewise.
5016         (get_alias_set): Likewise.
5017         (new_alias_set): Likewise.
5018         (record_alias_subset): Likewise.
5020 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
5022         * doc/install.texi (Downloading the source): Mark up
5023         contrib/download_prerequisites properly and drop leading "./".
5025 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5027         * config/arc/arc.h: Remove define of STRUCT_VALUE.
5028         * config/lm32/lm32.h: Likewise.
5029         * config/mep/mep.h: Likewise.
5030         * config/visium/visium.h: Likewise.
5031         * system.h: Poison STRUCT_VALUE macro.
5033 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
5035         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5036         CONSTANT_P operands.
5038 2015-09-11  David S. Miller  <davem@davemloft.net>
5040         * config/sparc/constraints.md: Make "U" constraint a real register
5041         constraint.
5042         * config/sparc/sparc.c (TARGET_LRA_P): Define.
5043         (D_MODES, DF_MODES): Add missing cast.
5044         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5045         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5046         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5047         cost to 8.
5048         * config/sparc/sparc.h (PROMOTE_MODE): Define.
5049         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5050         provide these insn when flag_pic.
5052 2015-09-11  Jeff Law  <law@redhat.com>
5054         PR tree-optimization/47679
5055         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5056         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5057         member with m_.  Update inline member functions as necessary.  Add
5058         toplevel comment.
5059         * tree-ssa-scopedtables.c: Update const_and_copies's member
5060         functions to use m_ prefix to access the stack.
5062 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5064         * graphite-optimize-isl.c (disable_tiling): Remove.
5065         (get_schedule_for_band): Do not use disable_tiling.
5066         (get_prevector_map): Delete function.
5067         (enable_polly_vector): Remove.
5068         (get_schedule_for_band_list): Remove dead code.
5070 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5072         * graphite-optimize-isl.c (get_tile_map): Refactor.
5073         (get_schedule_for_band): Same.
5074         (getScheduleForBand): Same.
5075         (get_prevector_map): Same.
5076         (get_schedule_for_band_list): Same.
5077         (get_schedule_map): Same.
5078         (get_single_map): Same.
5079         (apply_schedule_map_to_scop): Same.
5080         (optimize_isl): Same.
5082 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5084         PR target/63304
5085         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5086         (movtf): Delete.
5087         * config/aarch64/iterators.md (GPF_TF_F16): New.
5088         (GPF_F16): Delete.
5090 2015-09-10  Nathan Sidwell  <nathan@acm.org>
5092         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5093         (nvptx_reorg): Adjust comments.
5095 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
5097         PR bootstrap/67363
5098         * configure.ac: Check if setenv and unsetenv are declared.
5099         * configure: Rebuild.
5100         * config.in: Rebuild.
5101         * system.h: Declare setenv and unsetenv if not declared.
5103 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5105         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5106         commentary to simplify permute mask adjustment equation.
5107         (special_handling_values): Add SH_VPERM.
5108         (const_load_sequence_p): New function.
5109         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5110         the mask loaded from the constant pool.
5111         (adjust_vperm): New function.
5112         (handle_special_swappables): Call adjust_vperm.
5113         (dump_swap_insn_table): Handle SH_VPERM.
5115 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5117         * shrink-wrap.c (requires_stack_frame_p): Remove static.
5118         * shrink-wrap.h (requires_stack_frame_p): Put back.
5120 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
5122         * reload1.c (elimination_costs_in_insn): Locally turn
5123         -Wmaybe-uninitialized into a warning.
5125 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
5127         * shrink-wrap.c (requires_stack_frame_p): Make static.
5128         (prepare_shrink_wrap): Likewise.
5129         (dup_block_and_redirect): Likewise.
5130         * shrink-wrap.h: Remove declarations of those functions.
5132 2015-09-10  Mark Wielaard  <mjw@redhat.com>
5134         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5136 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
5138         PR target/67506
5139         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5140         missing simplify_gen_subreg.
5142 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5144         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5145         the vector element is bigger than 64 bit.
5147 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5149         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5150         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5152 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5154         * config/s390/s390.c: Add V1TImode to constant pool modes.
5156 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5158         PR target/67439
5159         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5160         predicate.  Set predicable_short_it attr to "no".
5162 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
5164         PR rtl-optimization/67421
5165         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5166         left wide shift tranformation.
5168 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
5170         * common/config/arc/arc-common.c: Remove references to A5.
5171         * config/arc/arc-opts.h: Likewise.
5172         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5173         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5174         * config/arc/t-arc-newlib: Likewise.
5176 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
5178         * config/arc/arc.md (length): Fix attribute length for conditional
5179         executed instructions with long immediate.
5181 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5183         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5184         type for second alternative.
5186 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
5188         * doc/invoke.texi (Downloading GCC): Mention
5189         contrib/download_prerequisites script.
5191 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
5193         PR c++/67523
5194         * gimplify.c (gimplify_omp_for): If inner stmt is not found
5195         for combined loop, assert seen_error () and return GS_ERROR.
5197         PR middle-end/67521
5198         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5199         if decl is already in outer->variables.
5201         PR middle-end/67517
5202         * gimplify.c (gimplify_scan_omp_clauses): Instead of
5203         asserting that decl is not specified in octx->variables,
5204         break out of the loop if it is.
5206         PR c++/67514
5207         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5208         iterator is not explicitly determined, but is defined inside
5209         of the combined workshare region, handle it like if it has
5210         DECL_EXPR in OMP_FOR_PRE_BODY.
5212 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5214         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5215         (*cmp<mode>): Add assembler spacing.
5216         (setcc_int<mode>, set_cc_float<mode>): Likewise.
5217         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5218         level.
5219         (write_func_decl_from_insn): Refactor argument loops & comma emission.
5220         (nvptx_expand_call): Likewise.
5221         (nvptx_output_call_insn): Likewise.
5222         (nvptx_reorg_subreg): Add spacing.
5224 2015-09-09  Marek Polacek  <polacek@redhat.com>
5226         PR middle-end/67512
5227         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5228         for comparisons.
5230 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5232         PR c++/53184
5233         * doc/invoke.texi ([Wsubobject-linkage]): Document.
5235 2015-09-09  Tom de Vries  <tom@codesourcery.com>
5237         * params-list.h: Add missing copyright notice.
5239 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5241         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5242         sel_truesi, not andsi.
5244 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5246         * config/arm/arm.md (*subsi3_compare0): Rename to...
5247         (subsi3_compare0): ... This.
5248         (modsi3): New define_expand.
5249         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5250         when operand is power of 2.
5252 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5254         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5255         (*neg<mode>2_compare0): Rename to...
5256         (neg<mode>2_compare0): ... This.
5257         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5258         Move check for speed inside the if-then-elses.  Reflect
5259         CSNEG sequence in MOD by power of 2 case.
5261 2015-09-09  Alan Modra  <amodra@gmail.com>
5263         PR target/67378
5264         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5265         reload replacement for PRE_MODIFY address reg.
5267 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
5269         PR tree-optimization/53852
5270         * config.in: Regenerate.
5271         * configure: Regenerate.
5272         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5273         * graphite-optimize-isl.c (optimize_isl): Stop computation when
5274         PARAM_MAX_ISL_OPERATIONS is reached.
5275         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5276         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5277         result equal to isl_stat_ok as the status now can be isl_error_quota.
5278         (subtract_commutative_associative_deps): Same.
5279         (compute_deps): Same.
5281 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
5282             Sebastian Pop  <s.pop@samsung.com>
5284         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5285         Return the parameter if it was saved in corresponding
5286         parameter_rename_map of the region.
5287         (copy_def): Copy def from sese region to the newly created region.
5288         (copy_internal_parameters): Copy all the internal parameters defined
5289         within a region to the newly created region.
5290         (graphite_regenerate_ast_isl): Copy parameters to the new region before
5291         translating isl to gimple.
5292         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5293         the loop-nest does not have any data-references.
5294         (build_graphite_scops): Create a scop only when there is at least one
5295         loop inside it.
5296         (contains_only_close_phi_nodes): Deleted.
5297         (print_graphite_scop_statistics): Deleted
5298         (print_graphite_statistics): Deleted
5299         (limit_scops): Deleted.
5300         (build_scops): Removed call to limit_scops.
5301         * sese.c (new_sese): Construct.
5302         (free_sese): Destruct.
5303         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5304         added.
5305         (set_rename): Pass sese region so that parameters inside the region can
5306         be added to its parameter_rename_map.
5307         (rename_uses): Pass sese region.
5308         (graphite_copy_stmts_from_block): Do not copy parameters that have been
5309         generated in the header of the scop. For each SSA_NAME in the
5310         parameter_rename_map rename its usage.
5311         (invariant_in_sese_p_rec): Return false if tree t is defined outside
5312         sese region.
5313         (scalar_evolution_in_region): If the tree t is invariant just return t.
5314         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5315         struct sese to keep track of all the parameters which need renaming.
5316         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5317         any data-refs.
5318         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5320 2015-09-08  Tom de Vries  <tom@codesourcery.com>
5322         * Makefile.in (generated_files): Add params.list.
5323         (params.list, s-params.list): Add rule.
5324         * params.h (enum compiler_param): Include params-list.h.  Move define
5325         DEFPARAM, include params.def and undef DEFPARAM ...
5326         * params-list.h: ... here.  New file.
5328 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
5330         * pretty-print.h (printer_fn): Fix typo in comment.
5332 2015-09-07  Jeff Law  <law@redhat.com>
5334         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5336 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5338         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5339         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5340         (arm_neon_fp16_hw): New.
5342 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5344         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5345         UNITS_PER_WORD >= 4.
5347 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5349         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5350         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5351         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5352         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5353         (aarch64_float_extend_lo_v2df): Rename to...
5354         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5356         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5357         (float_extend_lo): Add v4sf.
5359         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5360         * config/aarch64/iterators.md (VQ_HSF): New iterator.
5361         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5362         (Vwide): New mode_attr.
5364 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5366         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5367         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5368         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5369         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5370         V4HF and V8HF variants to iterator.
5372         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5374         * config/aarch64/iterators.md (VDQF_F16): New.
5375         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5377 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5379         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5380         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5381         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5382         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5383         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5384         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5385         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5386         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5387         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5388         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5389         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5390         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5391         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5392         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5393         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5394         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5395         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5396         vld1q_dup_f16): New.
5398 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5400         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5401         Reparameterize to...
5402         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5403         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5404         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5406         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5407         v8hf variant.
5408         (float_truncate_lo_): Use BUILTIN_VDF iterator.
5410         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5412         * config/aarch64/iterators.md (VDF, Vdtype): New.
5413         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5415 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5417         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5418         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5419         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5420         Add __builtin_aarch64_simd_hf.
5421         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5422         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5423         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5424         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5425         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5426         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5427         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5428         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5429         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5431         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5432         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5433         (VDC, Vdbl): Add V4HF.
5435 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5437         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
5438         V4HFmode and V8HFmode.
5439         (aarch64_split_simd_move): Add case for V8HFmode.
5440         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
5441         (aarch64_simd_builtin_std_type): Handle HFmode.
5442         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
5444         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
5445         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
5446         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
5448         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
5449         Float16x8_t.
5451         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
5452         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
5453         New typedefs.
5454         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
5455         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
5456         vst1q_lane_f16): New.
5457         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
5458         (VALLDI_F16, VALL_F16): New.
5459         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
5460         Add cases for V4HF and V8HF.
5461         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
5463 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5465         * config/arm/arm-builtins.c (VAR11, VAR12): New.
5466         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
5467         vld4_dup): Add v4hf variant.
5468         (vget_high, vget_low): Add v8hf variant.
5469         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
5470         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
5471         v4hf and v8hf variants.
5473         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
5474         (VDX): Add V4HF.
5475         (V_DOUBLE): Add case for V4HF.
5476         (VQX): Add V8HF.
5477         (V_HALF): Add case for V8HF.
5478         (VDQX): Add V4HF, V8HF.
5479         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
5480         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
5482         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
5483         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
5484         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
5485         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
5486         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
5487         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
5488         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
5489         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
5490         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
5492         (neon_vcreate, neon_vreinterpretv8qi<mode>,
5493         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5494         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
5495         Change VDX to VD_RE.
5497         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
5498         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
5499         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
5501         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
5502         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
5503         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
5504         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
5505         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
5506         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
5507         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
5508         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
5509         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
5511 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5513         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
5514         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
5515         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
5516         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
5517         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5518         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
5519         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
5520         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
5521         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
5522         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
5523         New.
5525 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5527         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
5529         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
5531         * config/arm/arm-builtins.c (v8hf_UP): New.
5532         (arm_init_simd_builtin_types): Initialise Float16x8_t.
5534         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
5536         * config/arm/arm_neon.h (float16x8_t): New typedef.
5538 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5540         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
5541         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
5542         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
5543         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
5544         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5545         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
5546         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
5547         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
5548         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5549         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
5551 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
5553         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
5554         non-alphanumeric characters in the symbol name.
5556 2015-09-07  Marek Polacek  <polacek@redhat.com>
5558         PR inline-asm/67448
5559         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
5560         a memory input.
5562 2015-09-07  Marek Polacek  <polacek@redhat.com>
5564         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
5566 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
5568         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
5569         not warn.
5571 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
5573         PR middle-end/67452
5574         * tree-ssa-live.c: Include cfgloop.h.
5575         (remove_unused_locals): Clear loop->simduid if simduid is about
5576         to be removed from cfun->local_decls.
5578 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5580         PR target/65210
5581         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
5582         attribute as well.
5584 2015-09-04  Tom de Vries  <tom@codesourcery.com>
5586         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
5588 2015-09-04  Jeff Law  <law@redhat.com>
5590         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
5591         unnecessary constructor.  It's now trivial and implemented inside...
5592         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
5593         constructor.  Add comments to various methods.  Remove unused
5594         private fields.
5595         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
5596         * tree-vrp.c (identify_jump_threads): Likewise.
5597         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
5598         indentation issues.
5599         (thread_across_edge): Similarly.
5600         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
5601         arguments in constructor call.
5603 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
5605         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
5606         temp path contains a '-'.
5608 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
5609             Petr Murzin  <petr.murzin@intel.com>
5610             Kirill Yukhin  <kirill.yukhin@intel.com>
5612         * config/i386/i386-builtin-types.def
5613         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
5614         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
5615         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
5616         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
5617         * config/i386/i386.c
5618         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
5619         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5620         IX86_BUILTIN_SCATTERALTDIV16SI.
5621         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
5622         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
5623         __builtin_ia32_scatteraltdiv8si.
5624         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
5625         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5626         IX86_BUILTIN_SCATTERALTDIV16SI.
5627         (ix86_vectorize_builtin_scatter): New.
5628         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
5629         ix86_vectorize_builtin_scatter.
5631 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
5632             Petr Murzin  <petr.murzin@intel.com>
5633             Kirill Yukhin  <kirill.yukhin@intel.com>
5635         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
5636         * doc/tm.texi: Regenerate.
5637         * target.def: Add scatter builtin.
5638         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
5639         for loads/stores in case of gather/scatter accordingly.
5640         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5641         STMT_VINFO_GATHER_P(S).
5642         (vect_check_gather): Rename to ...
5643         (vect_check_gather_scatter): this.
5644         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
5645         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
5646         (vect_check_gather_scatter): Use it instead of vect_check_gather.
5647         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
5648         variable and new checkings for it accordingly.
5649         * tree-vect-stmts.c
5650         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5651         STMT_VINFO_GATHER_P(S).
5652         (vect_check_gather_scatter): Use it instead of vect_check_gather.
5653         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
5655 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5657         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
5658         define_insn.
5659         (mulv16qi3): New define_expand.
5661 2015-09-03  Martin Sebor  <msebor@redhat.com>
5663         PR c/66516
5664         * doc/extend.texi (Other Builtins): Document when the address
5665         of a built-in function can be taken.
5667 2015-09-03  Richard Biener  <rguenther@suse.de>
5669         * dwarf2out.c (flush_limbo_die_list): Split out from ...
5670         (dwarf2out_early_finish): ... here.
5671         (dwarf2out_finish): Do not call dwarf2out_early_finish but
5672         flush_limbo_die_list.  Assert we have no deferred asm names.
5674 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5676         * optabs.c (expand_binop): Don't create a broadcast vector with a
5677         source element wider than the inner mode.
5679 2015-09-03  Richard Biener  <rguenther@suse.de>
5681         * varasm.c (output_constant): Use fold_convert instead of
5682         wide_int_to_tree.
5684 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5686         PR tree-optimization/65637
5687         * omp-low.c (expand_omp_for_static_chunk): Handle case that
5688         fin_bb has 2 predecessors.
5690 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5692         PR tree-optimization/65637
5693         * omp-low.c (find_phi_with_arg_on_edge): New function.
5694         (expand_omp_for_static_chunk): Fix inner loop phi.
5696 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5698         PR tree-optimization/65637
5699         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
5700         that head is NULL.
5702 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5704         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
5706 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5708         * doc/invoke.texi (parloops-chunk-size): Add item.
5709         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
5710         * tree-parloops.c: Include params.h.
5711         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
5712         param parloops-chunk-size is used.
5714 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5716         PR middle-end/67351
5717         * fold-const.c (fold_binary_loc) : Move
5718         Transform (x >> c) << c into x & (-1<<c) or
5719         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
5720         types using simplify and match.
5721         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
5722         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
5724 2015-09-03  Richard Biener  <rguenther@suse.de>
5726         PR ipa/66705
5727         * tree-ssa-structalias.c (ctor_for_analysis): New function.
5728         (create_variable_info_for_1): Use ctor_for_analysis instead
5729         of get_constructor.
5730         (create_variable_info_for): Likewise.
5732 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
5734         PR ipa/67280
5735         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
5736         in new callgraph edge.
5738 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
5740         PR target/59810
5741         PR target/63652
5742         PR target/63653
5743         * config/aarch64/aarch64-simd.md
5744         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
5745         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
5746         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
5747         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
5749 2015-09-02  Alan Modra  <amodra@gmail.com>
5751         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
5752         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
5753         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
5755 2015-09-02  Alan Modra  <amodra@gmail.com>
5757         PR target/67417
5758         * config/rs6000/predicates.md (current_file_function_operand): Don't
5759         return true for weak symbols.
5760         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
5762 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
5763             Andrew Bennett  <andrew.bennett@imgtec.com>
5765         * config/mips/mips-opts.h (mips_cb_setting): New enum.
5766         * config/mips/mips-protos.h: Add definitions for
5767         mips_output_jump and mips_output_equal_conditional_branch
5768         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
5769         JIC instruction.
5770         (mips_emit_compare): Add support for the MIPS R6 conditional
5771         compact branches.
5772         (mips_process_sync_loop): Likewise.
5773         (mips_output_order_conditional_branch): Likewise.
5774         (mips16_build_call_stub): Change MIPS_CALL to
5775         mips_output_jump.
5776         (mips_print_operand_punctuation): Update 's' case to only
5777         apply to micromips r2.
5778         (mips_adjust_insn_length): Add support for forbidden slot
5779         hazards.
5780         (mips_avoid_hazard): Likewise.
5781         (mips_reorg_process_insns): Likewise.
5782         (mips_output_jump): New function.
5783         (mips_output_equal_conditional_branch): Likewise.
5784         (mips_output_conditional_branch): Use jrc/bc if compact
5785         branch support is enabled.  Ensure the forbidden slots
5786         between the two branch instructions is filled with a nop.
5787         (mips_option_override): Add support to process the compact
5788         branch option and set the correct defaults.  Prevent
5789         non-explict relocs being using for MIPS R6.
5790         (mips_trampoline_init): Add compact branch support.
5791         (mips_mult_zero_zero_cost): Allow zero initialisation of
5792         accumulators with TARGET_DSP.
5793         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
5794         (TARGET_CB_MAYBE): New define.
5795         (TARGET_CB_ALWAYS): New define.
5796         (ISA_HAS_DELAY_SLOTS): New define.
5797         (ISA_HAS_COMPACT_BRANCHES): New define.
5798         (ISA_HAS_JRC): New define.
5799         (MIPS_BRANCH_C): New define.
5800         (MIPS_CALL): Removed.
5801         (MICROMIPS_J): Removed.
5802         * config/mips/mips.md (compact_form): New attr.
5803         (hazard): Add support for forbidden slots.
5804         (define_delay): Add support for compact branches.
5805         (*branch_order<mode>): Likewise.
5806         (*branch_order<mode>_inverted): Likewise.
5807         (*branch_equality<mode>): Likewise.
5808         (*branch_equality<mode>_inverted): Likewise.
5809         (*jump_absolute): Likewise.
5810         (*jump_pic): Likewise.
5811         (indirect_jump): Use mips_output_jump to produce assembly output.
5812         (tablejump_<mode>"): Likewise.
5813         (*<optab>"): Likewise.
5814         (<optab>_internal): Likewise.
5815         (sibcall_internal): Likewise.
5816         (sibcall_value_internal): Likewise.
5817         (sibcall_value_multiple_internal): Likewise.
5818         (call_internal): Likewise.
5819         (call_split): Likewise.
5820         (call_internal_direct): Likewise.
5821         (call_direct_split): Likewise.
5822         (call_value_internal): Likewise.
5823         (call_value_split): Likewise.
5824         (call_value_internal_direct): Likewise.
5825         (call_value_direct_split): Likewise.
5826         (call_value_multiple_internal): Likewise.
5827         (call_value_multiple_split): Likewise.
5828         (mips_get_fcsr_mips16_<mode>): Likewise.
5829         (mips_set_fcsr_mips16_<mode>): Likewise.
5830         (tls_get_tp_mips16_<mode>): Likewise.
5831         * config/mips/mips.opt: Add -mcompact-branches option.
5832         * config/mips/predicates.md (order_operator): Ensure the
5833         conditional compact branches are only used if the ISA them.
5834         * doc/invoke.texi: Document -mcompact-branches option.
5836 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
5838         PR target/61578
5839         * lra-lives.c (process_bb_lives): Process move pseudos with the
5840         same value for copies and preferences
5841         * lra-constraints.c (match_reload): Create match reload pseudo
5842         with the same value from single dying input pseudo.
5844 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
5846         PR target/67405
5847         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
5849 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
5851         * trans-mem.c: Add contributed-by.
5852         * trans-mem.h: Same.
5854 2015-09-01  Richard Biener  <rguenther@suse.de>
5856         * expr.c (expand_expr_real_1): For expanding TERed defs
5857         set the current location to that of the def if not UNKNOWN.
5859 2015-09-01  David Sherwood  <david.sherwood@arm.com>
5861         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
5863 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5865         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
5866         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
5867         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
5868         Include rtl-iter.h.
5869         (noce_simple_bbs): New function.
5870         (noce_try_move): Bail if basic blocks are not simple.
5871         (noce_try_store_flag): Likewise.
5872         (noce_try_store_flag_constants): Likewise.
5873         (noce_try_addcc): Likewise.
5874         (noce_try_store_flag_mask): Likewise.
5875         (noce_try_cmove): Likewise.
5876         (noce_try_minmax): Likewise.
5877         (noce_try_abs): Likewise.
5878         (noce_try_sign_mask): Likewise.
5879         (noce_try_bitop): Likewise.
5880         (bbs_ok_for_cmove_arith): New function.
5881         (noce_emit_all_but_last): Likewise.
5882         (noce_emit_insn): Likewise.
5883         (noce_emit_bb): Likewise.
5884         (noce_try_cmove_arith): Handle non-simple basic blocks.
5885         (insn_valid_noce_process_p): New function.
5886         (contains_mem_rtx_p): Likewise.
5887         (bb_valid_for_noce_process_p): Likewise.
5888         (noce_process_if_block): Allow non-simple basic blocks
5889         where appropriate.
5891 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
5893         * tree-ssa-dom.c (record_equivalences_from_phis,
5894         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
5895         (lookup_avail_expr): Likewise, and remove comment and unused temp.
5897 2015-09-01  Nick Clifton  <nickc@redhat.com>
5899         * config/msp430/msp430.opt (mcpu): Fix typo.
5901 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5903         * config/aarch64/aarch64.c (aarch64_set_current_function):
5904         Re-layout any vector parameters have non-simd layout.
5905         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
5906         Delete.
5907         (aarch64_simd_expand_args): Delete call to the above.
5909 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
5911         * doc/invoke.texi (asan-stack): Add space before option.
5913 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
5915         * tree.h (zerop): New function.
5916         * tree.c (zerop): Likewise.
5917         (element_precision): Handle expressions.
5918         * match.pd (define_predicates): Add zerop.
5919         (x <= +Inf): Fix comment.
5920         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
5921         * fold-const.c (fold_binary_loc): ... here. Remove.
5923 2015-08-31  Richard Biener  <rguenther@suse.de>
5925         PR middle-end/67381
5926         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
5928 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
5930         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
5931         (CEXPI): New operator list.
5932         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
5933         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
5934         Converted from ...
5935         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
5937 2015-08-31  Tom de Vries  <tom@codesourcery.com>
5939         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
5940         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
5941         parameter.
5942         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
5943         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
5944         (rewrite_into_loop_closed_ssa): ... here.
5945         (replace_uses_in_dominated_bbs): Remove function.
5946         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
5947         rewrite_into_loop_closed_ssa_1.
5949 2015-08-31  Michael Matz  <matz@suse.de>
5951         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
5952         enter entry and exit blocks for reverse post order.
5954 2015-08-31  Richard Biener  <rguenther@suse.de>
5956         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
5957         (lto_location_cache::current_sysp): Likewise.
5958         (output_block::current_sysp): Likewise.
5959         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
5960         (lto_location_cache::apply_location_cache): Properly record
5961         system header locations.
5962         (lto_location_cache::input_location): Input whether a file
5963         is a system header.
5964         * lto-streamer-out.c (lto_output_location): Stream whether a file
5965         is a system header.
5967 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5969         PR bootstrap/67363
5970         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
5972 2015-08-31  Tom de Vries  <tom@codesourcery.com>
5974         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
5975         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
5976         Improve function header comments.
5978 2015-08-30  Michael Collison  <michael.collison@linaro.org>
5980         PR other/67320
5981         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
5982         standard names
5984 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5986         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
5987         special_handling bitfield.
5988         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
5989         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
5990         that represents a general xxpermdi.
5991         (insn_is_swappable_p): Add handling for vec_concat of two
5992         doublewords, which maps to a specific xxpermdi.
5993         (adjust_xxpermdi): New function.
5994         (adjust_concat): Likewise.
5995         (handle_special_swappables): Call adjust_xxpermdi and
5996         adjust_concat.
5997         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
5999 2015-08-30  Rich Felker <dalias@libc.org>
6001         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6002         case instead of sh[123456ble]-*-*.
6004 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6006         * ira.c (print_unform_and_important_classes,
6007         print_translated_classes): Remove reg_class_names static array.
6008         (print_unform_and_important_classes): Rename to ...
6009         (print_uniform_and_important_classes): ... this.
6010         (ira_debug_allocno_classes): Update accordingly.
6012 2015-08-29  Tom de Vries  <tom@codesourcery.com>
6014         PR tree-optimization/46193
6015         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6016         clause.
6018 2015-08-28  Jeff Law  <law@redhat.com>
6020         PR lto/66752
6021         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6022         unable to find X NE 0 in the tables, return X as the simplified
6023         condition.
6024         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6025         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6026         to VISISTED_BBS.
6027         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6028         after removing the control flow statement and unnecessary edges.
6030 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
6032         Revert:
6033         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6035         PR tree-optimization/67283
6036         * tree-sra.c (type_consists_of_records_p): Rename to...
6037         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6039         (completely_scalarize_record): Rename to...
6040         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6041         code to:
6042         (scalarize_elem): New.
6044 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
6046         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6047         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6048         (aarch64_symbol_type): Likewise.
6049         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6050         Likewise.
6051         (aarch64_expand_mov_immediate): Likewise.
6052         (aarch64_print_operand): Likewise.
6053         (aarch64_classify_tls_symbol): Likewise.
6055 2015-08-28  Richard Biener  <rguenther@suse.de>
6057         * cgraphunit.c (symbol_table::compile): Move early debug generation
6058         and finish...
6059         (symbol_table::finalize_compilation_unit): ... back here and
6060         add a !seen_error () guard.
6062 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6064         * toplev.c (process_options): Do not use flag_loop_block,
6065         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
6066         flag_loop_optimize_isl.
6068 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6070         * Makefile.in (OBJS): Remove graphite-blocking.o and
6071         graphite-interchange.o.
6072         * common.opt (floop-strip-mine, floop-interchange, floop-block):
6073         Alias of floop-nest-optimize.
6074         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6075         Document as alias of -floop-nest-optimize.
6076         * graphite-blocking.c: Remove.
6077         * graphite-interchange.c: Remove.
6078         * graphite-optimize-isl.c: Include dumpfile.h.
6079         (getScheduleForBand): Add dump for tiled loops.  Use
6080         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6081         * graphite-poly.c (scop_max_loop_depth): Remove.
6082         (print_scattering_function_1): Remove.
6083         (print_scattering_function): Remove.
6084         (print_scattering_functions): Remove.
6085         (debug_scattering_function): Remove.
6086         (debug_scattering_functions): Remove.
6087         (apply_poly_transforms): Remove use of flag_loop_block,
6088         flag_loop_strip_mine, and flag_loop_interchange.
6089         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6090         PBB_ORIGINAL.
6091         (print_pdr_access_layout): Remove.
6092         (print_pdr): Print ISL representation.
6093         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6094         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6095         (free_scop): Same.
6096         (openscop_print_pbb_domain): Remove.
6097         (print_pbb): Remove call to print_scattering_function.
6098         (openscop_print_scop_context): Remove.
6099         (print_scop_context): Do not print matrices anymore.
6100         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6101         SCOP_TRANSFORMED_SCHEDULE.
6102         (print_isl_set): Add printing of a new line.
6103         (print_isl_map): Same.
6104         (print_isl_aff): Same.
6105         (print_isl_constraint): Same.
6106         (loop_to_lst): Remove.
6107         (scop_to_lst): Remove.
6108         (lst_indent_to): Remove.
6109         (print_lst): Remove.
6110         (debug_lst): Remove.
6111         (dot_lst_1): Remove.
6112         (dot_lst): Remove.
6113         (reverse_loop_at_level): Remove.
6114         (reverse_loop_for_pbbs): Remove.
6115         * graphite-poly.h (pdr_dim_iter_domain): Remove.
6116         (pdr_nb_params): Remove.
6117         (pdr_alias_set_dim): Remove.
6118         (pdr_subscript_dim): Remove.
6119         (pdr_iterator_dim): Remove.
6120         (pdr_parameter_dim): Remove.
6121         (same_pdr_p): Remove.
6122         (struct poly_scattering): Remove.
6123         (struct poly_bb): Remove _original, _transformed, _saved.
6124         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6125         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6126         (PBB_NB_LOCAL_VARIABLES): Remove.
6127         (PBB_NB_SCATTERING_TRANSFORM): Remove.
6128         (schedule_to_scattering): Remove.
6129         (number_of_write_pdrs): Remove.
6130         (pbb_dim_iter_domain): Remove.
6131         (pbb_nb_params): Remove.
6132         (pbb_nb_scattering_orig): Remove.
6133         (pbb_nb_scattering_transform): Remove.
6134         (pbb_nb_dynamic_scattering_transform): Remove.
6135         (pbb_nb_local_vars): Remove.
6136         (pbb_iterator_dim): Remove.
6137         (pbb_parameter_dim): Remove.
6138         (psco_scattering_dim): Remove.
6139         (psct_scattering_dim): Remove.
6140         (psct_local_var_dim): Remove.
6141         (psco_iterator_dim): Remove.
6142         (psct_iterator_dim): Remove.
6143         (psco_parameter_dim): Remove.
6144         (psct_parameter_dim): Remove.
6145         (psct_dynamic_dim): Remove.
6146         (psct_static_dim): Remove.
6147         (psct_add_local_variable): Remove.
6148         (new_lst_loop): Remove.
6149         (new_lst_stmt): Remove.
6150         (free_lst): Remove.
6151         (copy_lst): Remove.
6152         (lst_add_loop_under_loop): Remove.
6153         (lst_depth): Remove.
6154         (lst_dewey_number): Remove.
6155         (lst_dewey_number_at_depth): Remove.
6156         (lst_pred): Remove.
6157         (lst_succ): Remove.
6158         (lst_find_pbb): Remove.
6159         (find_lst_loop): Remove.
6160         (lst_find_first_pbb): Remove.
6161         (lst_empty_p): Remove.
6162         (lst_find_last_pbb): Remove.
6163         (lst_contains_p): Remove.
6164         (lst_contains_pbb): Remove.
6165         (lst_create_nest): Remove.
6166         (lst_remove_from_sequence): Remove.
6167         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6168         (lst_niter_for_loop): Remove.
6169         (pbb_update_scattering): Remove.
6170         (lst_update_scattering_under): Remove.
6171         (lst_update_scattering): Remove.
6172         (lst_insert_in_sequence): Remove.
6173         (lst_replace): Remove.
6174         (lst_substitute_3): Remove.
6175         (lst_distribute_lst): Remove.
6176         (lst_remove_all_before_including_pbb): Remove.
6177         (lst_remove_all_before_excluding_pbb): Remove.
6178         (struct scop): Remove original_schedule, transformed_schedule, and
6179         saved_schedule.
6180         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6181         (SCOP_SAVED_SCHEDULE): Remove.
6182         (poly_scattering_new): Remove.
6183         (poly_scattering_free): Remove.
6184         (poly_scattering_copy): Remove.
6185         (store_scattering_pbb): Remove.
6186         (store_lst_schedule): Remove.
6187         (restore_lst_schedule): Remove.
6188         (store_scattering): Remove.
6189         (restore_scattering_pbb): Remove.
6190         (restore_scattering): Remove.
6191         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6192         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
6193         compute the scattering polyhedron dimension from the dimension of
6194         pbb->domain.
6195         (build_scop_scattering): Update call to
6196         build_pbb_scattering_polyhedrons.
6197         (build_poly_scop): Remove call to scop_to_lst.
6198         * graphite.c (graphite_transform_loops): Add call to print_scop.
6199         (gate_graphite_transforms): Remove use of flag_loop_block,
6200         flag_loop_interchange, and flag_loop_strip_mine.
6202 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6204         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6205         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6206         -floop-nest-optimize.
6207         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6208         (generate_luj_sepclass): Remove.
6209         (generate_luj_options): Remove.
6210         (set_options): Remove opt_luj.
6211         (scop_to_isl_ast): Remove opt_luj.
6212         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6213         flag_loop_unroll_jam.
6214         (getPrevectorMap_full): Remove.
6215         (getScheduleForBandList): Remove map_sepcl.
6216         (getScheduleMap): Same.
6217         (apply_schedule_map_to_scop): Remove sepcl.
6218         (optimize_isl): Same.
6219         * graphite-poly.c (apply_poly_transforms): Remove check for
6220         flag_loop_unroll_jam.
6221         (new_poly_bb): Remove map_sepclass.
6222         * graphite-poly.h (struct poly_bb): Same.
6223         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6224         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6225         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6226         * toplev.c (process_options): Remove flag_loop_unroll_jam.
6228 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
6230         PR target/67317
6231         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6232         (addqi3_cc): Ditto.
6233         (UNSPEC_ADD_CARRY): Remove.
6234         (addqi3_cconly_overflow): New expander.
6235         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6236         Adjust for changed add<mode>3_carry.
6237         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6238         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6239         (<plusminus_insn><mode>3_carry): Remove expander.
6240         (*<plusminus_insn><mode>3_carry): Split insn pattern to
6241         add<mode>3_carry and sub<mode>3_carry.
6242         (plusminus_carry_mnemonic): Remove code attribute.
6243         (add<mode>3_carry): Canonicalize insn pattern.
6244         (*addsi3_carry_zext): Ditto.
6245         (sub<mode>3_carry): Ditto.
6246         (*subsi3_carry_zext): Ditto.
6247         (adcx<mode>3): Remove insn pattern.
6248         (addcarry<mode>): New insn pattern.
6249         (subborrow<mode>): Ditto.
6250         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6251         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6252         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6253         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6254         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6255         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6256         Rewrite expander to not clobber carry flag chains.
6258 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
6260         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6261         instead of a rotate.
6263 2015-08-27  Marek Polacek  <polacek@redhat.com>
6265         PR middle-end/67005
6266         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6267         an entry into an irreducible region.
6269 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6271         * configure: Regenerate.
6273 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6275         PR tree-optimization/67283
6276         * tree-sra.c (type_consists_of_records_p): Rename to...
6277         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6279         (completely_scalarize_record): Rename to...
6280         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6281         (scalarize_elem): New.
6283 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6285         * tree-sra.c (completely_scalarize_var): Rename to...
6286         (create_total_scalarization_access): ... Here. Drop call to
6287         completely_scalarize_record.
6289         (analyze_all_variable_accesses): Replace completely_scalarize_var
6290         with create_total_scalarization_access and completely_scalarize_record.
6292 2015-08-27  Alan Modra  <amodra@gmail.com>
6294         PR target/67356
6295         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6296         for operand 1.
6298 2015-08-27  Richard Biener  <rguenther@suse.de>
6300         * passes.c (rest_of_decl_compilation): Guard early_global_decl
6301         call with !seen_error ().
6302         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6303         early debug generation and finish...
6304         (symbol_table::compile): ... here to put it after a !seen_error ()
6305         guard.
6307 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6309         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6310         Solaris 12+.
6312 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6313             Andre Vieira  <andre.simoesdiasvieira@arm.com>
6315         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6316         (*cb<optab><mode>1): Likewise.
6317         (*tb<optab><mode>1): Likewise.
6318         (*cb<optab><mode>1): Likewise.
6319         * config/aarch64/iterators.md (inv_cb): New code attribute.
6320         (inv_tb): Likewise.
6321         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6322         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6324 2015-08-27  Richard Biener  <rguenther@suse.de>
6326         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6328 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6330         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6331         trap to fix ICE.
6333 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6335         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6336         Add declaration.
6338         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6339         comment.
6340         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6341         floating point in VSX registers.
6342         (rs6000_output_move_128bit): Always print out the set insn if we
6343         can't generate an appropriate 128-bit move.
6344         (rs6000_generate_compare): Add support for IEEE 128-bit floating
6345         point in VSX registers comparisons.
6346         (rs6000_expand_float128_convert): Likewise.
6348         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6349         predicate for only GPR hard registers.
6351         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6352         modes to iterators. Add new iterators for moving 128-bit values in
6353         scalar FPR registers and VSX registers.
6354         (FMOVE128): Likewise.
6355         (FMOVE128_FPR): Likewise.
6356         (FMOVE128_GPR): Likewise.
6357         (FMOVE128_VSX): Likewise.
6358         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6359         in VSX registers.
6360         (IFKF): Likewise.
6361         (IBM128): Likewise.
6362         (TFIFKF): Likewise.
6363         (RELOAD): Add IEEE 128-bit floating point modes.
6364         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6365         floating point in VSX registers modes.
6366         (signbit<mode>2, IBM128 iterator): Likewise.
6367         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6368         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6369         (negtf2): Likewise.
6370         (neg<mode>2, TFIFKF iterator): Likewise.
6371         (negtf2_internal): Likewise.
6372         (abstf2): Likewise.
6373         (abs<mode>2, TFIFKF iterator): Likewise.
6374         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6375         VSX insn support for negate, absolute value, and negative absolute
6376         value.
6377         (ieee_128bit_vsx_neg<mode>2): Likewise.
6378         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6379         (ieee_128bit_vsx_abs<mode>2): Likewise.
6380         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6381         (ieee_128bit_vsx_nabs<mode>2): Likewise.
6382         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6383         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6384         floating point in VSX registers.
6385         (unpack<mode>_dm): Likewise.
6386         (unpack<mode>_nodm): Likewise.
6387         (pack<mode>): Likewise.
6388         (unpackv1ti): Likewise.
6389         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6390         (packv1ti): Likewise.
6391         (pack<mode>, FMOVE128_VSX iterator): Likewise.
6392         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6393         registers.
6394         (extenddftf2_internal): Likewise.
6395         (trunctfdf2): Likewise.
6396         (trunctfdf2_internal2): Likewise.
6397         (fix_trunc_helper): Likewise.
6398         (fix_trunctfdi2"): Likewise.
6399         (floatditf2): Likewise.
6400         (floatuns<mode>tf2): Likewise.
6401         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6402         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6403         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6404         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6405         (float<SDI:mode><IFKF:mode>2): Likewise.
6406         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6408 2015-08-26  Renlin Li  <renlin.li@arm.com>
6410         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6412 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6413             Jiong Wang  <jiong.wang@arm.com>
6415         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6416         (tlsie_tiny_<mode>): New define_insn.
6417         (tlsie_tiny_sidi): Likewise.
6418         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6419         SYMBOL_TINY_TLSIE.
6420         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6421         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6422         SYMBOL_TINY_TLSIE.
6423         (aarch64_expand_mov_immediate): Likewise.
6424         (aarch64_print_operand): Likewise.
6425         (arch64_classify_tls_symbol): Likewise.
6427 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6429         * config/arm/arm-arches.def: Replace single value flags with
6430         an initializer built from ARM_FSET_MAKE_CPU1.
6431         * config/arm/arm-cores.def: Likewise.
6432         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6433         derivation from the ARM_CORE macro definition, use the given value
6434         instead.
6435         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
6436         ARM_ARCH macro definition, use the given value instead.
6438 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6440         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
6441         feature set.
6442         (struct builtin_description): Replace field mask with field
6443         features.
6444         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
6445         (IWMMXT2_BUILTIN): Likewise.
6446         (IWMMXT2_BUILTIN2): Likewise.
6447         (FP_BUILTIN): Likewise.
6448         (CRC32_BUILTIN): Likewise.
6449         (CRYPTO_BUILTIN): Likewise.
6450         (iwmmx_mbuiltin): Likewise.
6451         (iwmmx2_mbuiltin): Likewise.
6452         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
6453         struct builtin_description.
6455 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6457         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
6458         (struct builtin_description): Change type of mask to unsigned
6459         long.
6460         * config/arm/arm-protos.h (insn_flags): Declare as type
6461         arm_feature_set.
6462         (tune_flags): Likewise.
6463         * config/arm/arm.c (feature_count): New.
6464         (insn_flags): Define as type arm_feature_set.
6465         (tune_flags): Likewise.
6466         (struct processors): Define field flags as type arm_feature_set.
6467         (all_cores): Update for change to struct processors.
6468         (all_architectures): Likewise.
6469         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
6470         macros.
6471         (arm_option_override_internal): Likewise.
6472         (arm_option_override): Likewise.
6474 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6475             Jiong Wang  <jiong.wang@arm.com>
6477         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
6478         tls size for tiny, small, large memory model.
6479         (aarch64_load_symref_appropriately): Support new symbol types.
6480         (aarch64_expand_mov_immediate): Likewise.
6481         (aarch64_print_operand): Likewise.
6482         (aarch64_classify_tls_symbol): Likewise.
6483         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
6484         (aarch64_symbol_type): Likewise.
6485         * config/aarch64/aarch64.md (tlsle): Deleted.
6486         (tlsle12_<mode>): New define_insn.
6487         (tlsle24_<mode>): Likewise.
6488         (tlsle32_<mode>): Likewise.
6489         (tlsle48_<mode>): Likewise.
6490         * doc/sourcebuild.texi (AArch64-specific attributes): Document
6491         "aarch64_tlsle32".
6493 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6495         * config/arm/arm-protos.h (FL_NONE): New.
6496         (FL_ANY): New.
6497         (arm_feature_set): New.
6498         (ARM_FSET_MAKE): New.
6499         (ARM_FSET_MAKE_CPU1): New.
6500         (ARM_FSET_MAKE_CPU2): New.
6501         (ARM_FSET_CPU1): New.
6502         (ARM_FSET_CPU2): New.
6503         (ARM_FSET_EMPTY): New.
6504         (ARM_FSET_ANY): New.
6505         (ARM_FSET_HAS_CPU1): New.
6506         (ARM_FSET_HAS_CPU2): New.
6507         (ARM_FSET_HAS_CPU): New.
6508         (ARM_FSET_ADD_CPU1): New.
6509         (ARM_FSET_ADD_CPU2): New.
6510         (ARM_FSET_DEL_CPU1): New.
6511         (ARM_FSET_DEL_CPU2): New.
6512         (ARM_FSET_UNION): New.
6513         (ARM_FSET_INTER): New.
6514         (ARM_FSET_XOR): New.
6515         (ARM_FSET_EXCLUDE): New.
6516         (AFM_FSET_IS_EMPTY): New.
6517         (ARM_FSET_CPU_SUBSET): New.
6519 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
6521         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6522         SYMBOL_TLSLE to SYMBOL_TLSLE24.
6523         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6524         Likewise.
6525         (aarch64_expand_mov_immediate): Likewise.
6526         (aarch64_print_operand): Likewise.
6527         (aarch64_classify_symbol): Likewise.
6529 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
6531         * config/aarch64/aarch64.opt (mtls-size): New entry.
6532         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
6533         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
6534         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
6536 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6538         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
6539         ARM_CORE entry.  Fix some white-space.
6540         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
6541         ARM_CORE definition.
6543 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6545         * fold-const.c (fold_binary_loc) : Move Optimize
6546         root(x)*root(y) as root(x*y) to match.pd.
6547         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
6548         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
6549         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
6550         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
6551         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
6552         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
6553         (mult (exps:s @0) (exps:s @1)) : New simplifier.
6554         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
6555         (rdiv @0 (exps:s @1)) : New simplifier.
6557 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
6559         * gcc.c (driver::finalize): Only assign to extra_specs if
6560         [EXTRA_SPECS].
6562 2015-08-25  Marek Polacek  <polacek@redhat.com>
6564         PR middle-end/67330
6565         * varasm.c (declare_weak): Return after giving an error.
6567 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
6569         * gcc-main.c (main): Add params to driver ctor.
6570         * gcc.c (class env_manager): New.
6571         (env): New global.
6572         (env_manager::init): New.
6573         (env_manager::get): New.
6574         (env_manager::xput): New.
6575         (env_manager::restore): New.
6576         Poison getenv and putenv.
6577         (DEFAULT_TARGET_SYSTEM_ROOT): New.
6578         (target_system_root): Update initialization to use
6579         DEFAULT_TARGET_SYSTEM_ROOT.
6580         (struct spec_list): Add field "default_ptr".
6581         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
6582         (init_spec): Likewise.
6583         (set_spec): Clear field "default_ptr".
6584         (read_specs): Free "spec" and "buffer".
6585         (xputenv): Reimplement in terms of env_manager.
6586         (process_command): Replace ::getenv calls with calls to the
6587         env_manager singleton.
6588         (process_brace_body): Free string in three places.
6589         (driver::driver): New.
6590         (driver::~driver): New.
6591         (used_arg): Convert from a function to...
6592         (class used_arg_t): ...this class, and...
6593         (used_arg): ...this new global instance.
6594         (used_arg_t::finalize): New function.
6595         (getenv_spec_function): Add "const" to local "value".  Replace
6596         ::getenv call with call to the env_manager singleton.
6597         (path_prefix_reset): New function.
6598         (driver::finalize): New function.
6599         * gcc.h (driver::driver): New.
6600         (driver::~driver): New.
6601         (driver::finalize): New.
6603 2015-08-25  Nathan Sidwell  <nathan@acm.org>
6605         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
6606         target doesn't have one.
6608 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
6610         PR target/67346
6611         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
6613 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
6615         PR target/67344
6616         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
6617         a define_insn, remove second alternative.
6619 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
6620             Joseph Myers  <joseph@codesourcery.com>
6622         * gcc.c (struct switchstr): Expand comment.
6624 2015-08-25  Nathan Sidwell  <nathan@acm.org>
6626         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
6627         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
6629 2015-08-25  Richard Biener  <rguenther@suse.de>
6631         PR middle-end/67306
6632         * genmatch.c (expr::gen_transform): Verify the result of
6633         builtin_decl_implicit.
6634         (dt_simplify::gen_1): Likewise.
6636 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6638         * config/arm/constraints.md: Also list Cs and US ARM-specific
6639         constraints as used.
6641 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6643         PR target/66609
6644         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
6645         UNSPEC_PCREL.
6646         (nonpic_symbol_mentioned_p): Likewise.
6647         (sh_delegitimize_address): Likewise.
6648         (sh_function_ok_for_sibcall): Take into account weak symbols.
6649         (sh_expand_sym_label2reg): New.
6650         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
6651         * config/sh/sh.md (UNSPEC_PCREL): New enum.
6652         (call_pcrel): Use sh_expand_sym_label2reg.
6653         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6654         (symPCREL_label2reg) New expand.
6656 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
6658         * graphite-poly.c: Change type of region from void* to sese.
6659         * graphite-poly.h (struct scop): Changing the type of scop::region
6660         from void* to sese. Change accessor macro accordingly.
6661         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
6663 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
6665         * graphite-scop-detection.c (stmt_simple_for_scop_p):
6666         Constrain only on INTEGER_TYPE.
6668 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6670         PR target/67211
6671         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
6672         -mefficient-unaligned-vsx on ISA 2.7.
6674         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
6675         option to a masked option.
6677         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
6678         logic for -mefficient-unaligned-vsx so that it is set via an arch
6679         ISA option, instead of being set if -mtune=power8 is set. Move
6680         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
6681         near other default option handling.
6683 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6685         * genflags.c (gen_macro): Delete.
6686         (gen_proto): Don't create GEN.*CALL.* macros.
6687         * gensupport.h (get_file_location): Declare.
6688         * gensupport.c (rtx_locs): New variable.
6689         (read_md_rtx): Record rtx locations.
6690         (get_file_location): New function.
6691         * target-insns.def (call, call_pop, call_value, call_value_pop)
6692         (sibcall, sibcall_value): New patterns.
6693         * gentarget-def.c (parse_argument): New function.
6694         (def_target_insn): Use it.  Handle optional operands.  Raise an
6695         error if an .md pattern has the wrong number of operands for the
6696         pattern name.  Remove the names of unused operands from the prototype.
6697         * builtins.c (expand_builtin_apply): Use targetm functions
6698         instead of HAVE_call_value and GEN_CALL_VALUE.
6699         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
6700         and sibcall_value_pop.
6701         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
6702         of GEN_CALL.
6703         * config/alpha/alpha.md (untyped_call): Likewise.
6704         * config/iq2000/iq2000.md (untyped_call): Likewise.
6705         * config/m68k/m68k.md (untyped_call): Likewise.
6706         * config/mips/mips.md (untyped_call): Likewise.
6707         * config/pa/pa.md (untyped_call): Likewise.
6708         * config/rs6000/rs6000.md (untyped_call): Likewise.
6709         * config/sparc/sparc.md (untyped_call): Likewise.
6710         * config/tilegx/tilegx.md (untyped_call): Likewise.
6711         * config/tilepro/tilepro.md (untyped_call): Likewise.
6712         * config/visium/visium.md (untyped_call): Likewise.
6713         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
6714         gen_call_value instead of GEN_CALL_VALUE.
6715         * config/arm/arm.md (untyped_call): Likewise.
6716         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
6717         GEN_CALL.
6719 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6721         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
6722         (have_cbranchcc4): New variable.
6723         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
6724         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
6725         (if_convert): Initialize have_cbranchcc4.
6727 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6729         * builtins.c (expand_cmpstrn): Rename to...
6730         (expand_cmpstrn_or_cmpmem): ...this.
6731         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
6732         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
6733         Remove mode argument.
6734         (expand_builtin): Update accordingly.
6736 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6738         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
6739         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
6740         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
6741         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
6742         Add predicates for operands 0 and 3.
6743         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
6744         operand.
6745         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
6746         immediate_operand to nonmemory_operand.
6748 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6750         * df-scan.c (df_insn_info_init_fields): New function, split out
6751         from...
6752         (df_insn_create_insn_record): ...here.
6753         (df_insn_info_free_fields): New function, split out from...
6754         (df_insn_info_delete): ...here.
6755         (df_insn_rescan): Use the new functions instead of freeing and
6756         reallocating the df_insn_info.
6758 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6760         * doc/install.texi (Binaries): Remove links no longer valid.
6762 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6764         * config/nvptx/mkoffload.c (process): Replace
6765         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
6767 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
6769         PR target/67329
6770         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
6772 2015-08-24  Renlin Li  <renlin.li@arm.com>
6774         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
6775         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
6776         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
6777         * config/arm/constraints.md ("j"): Add check for high code.
6779 2015-08-24  Tom de Vries  <tom@codesourcery.com>
6781         PR tree-optimization/65468
6782         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
6783         chunk_size is one.
6785 2015-08-24  Nathan Sidwell  <nathan@acm.org>
6787         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
6788         change to nvptx_type_from_mode call. Use arg_promotion for both
6789         split and non-split args.
6791 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6793         * target-insns.def (movstr): New pattern.
6794         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
6795         (expand_movstr): Use targetm rather than HAVE_movstr/
6796         CODE_FOR_movstr.
6798 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
6800         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
6801         cast syntax.
6803 2015-08-24  Andrew Pinski  <apinski@cavium.com>
6805         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
6806         AARCH64_EXTRA_TUNING_OPTION.
6807         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
6808         New enum.
6809         (aarch64_extra_tuning_flags): Base the shifted value on the index
6810         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
6811         * config/aarch64/aarch64.c: Remove the last argument to
6812         AARCH64_EXTRA_TUNING_OPTION.
6814 2015-08-23  Nathan Sidwell  <nathan@acm.org>
6816         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
6817         decls.
6818         (nvptx_declare_function_name): Insert formatting tabs for
6819         consistency.
6821 2015-08-23  Tom de Vries  <tom@codesourcery.com>
6823         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
6824         parm_decl, rather than generating a dummy default def in cfun.
6825         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
6826         ssa_name from cfun and child_fn do not share a stmt as def stmt.
6827         (move_stmt_op): Handle PARM_DECl.
6828         (gather_ssa_name_hash_map_from): New function.
6829         (move_sese_region_to_fn): Add default defs for function params, and add
6830         them to vars_map.  Release copied ssa names.
6831         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
6833 2015-08-23  Tom de Vries  <tom@codesourcery.com>
6835         * doc/sourcebuild.texi: Rename vect_no_int_max with
6836         vect_no_int_min_max.  Update description.
6838 2015-08-22  Andrew Pinski  <apinski@cavium.com>
6840          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
6841         * config/aarch64/aarch64-protos.h
6842         (aarch64_fusion_pairs_index): New enum.
6843         (aarch64_fusion_pairs): Base the shifted value on the index instead
6844         Rewrite AARCH64_FUSE_ALL to be based on the end index.
6845         of the argument to AARCH64_FUSION_PAIR.
6846         * config/aarch64/aarch64.c: Remove the last argument to
6847         AARCH64_FUSION_PAIR.
6849 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
6851         * dominance.c (new_zero_array): Define.
6852         (dom_info): Redefine as class with proper encapsulation.
6853         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
6854         Add new members.
6855         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
6856         allocations/deallocations.  Pass function as parameter (instead of
6857         using cfun).
6858         (dom_info::get_idom): Define accessor method.
6859         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
6860         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
6861         (calculate_dominance_info): Adjust to use dom_info class.
6862         (verify_dominators): Likewise.
6864 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
6866         * print-rtl.c (print_rtx): Check the correct range for
6867         flag_dump_unnumbered_links to behave as documented.
6869         PR rtl-optimization/67227
6870         PR rtl-optimization/64164
6871         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
6872         (nonoverlapping_memrefs_p): Test offsets and sizes when given
6873         identical gimple_reg exprs.
6875 2015-08-21  Nathan Sidwell  <nathan@acm.org>
6877         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
6878         expansion.
6879         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
6880         crtl->stack_alignment_needed to determine alignment.
6881         (nvptx_get_drap_rtx): New.
6882         (TARGET_GET_DRAP_RTX): Override.
6883         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
6885 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6887         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
6889 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6891         * configure.ac: Remove uwin* cases.
6892         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
6893         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
6894         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
6895         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
6896         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
6897         i[34567]86-*-uwin*, powerpc-*-beos*.
6899 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
6901         * gencodes.c (gencodes): Print the comma for the preceding
6902         enum value rather than the current one.  Use aliased enum values
6903         rather than #defines for compiled-out patterns.
6904         (main): Update accordingly.  Replace LAST_INSN_CODE with
6905         NUM_INSN_CODES.
6906         * lra.c (insn_code_data): Update accordingly.
6907         (finish_insn_code_data_once, get_static_insn_data): Likewise.
6908         * recog.h (target_recog): Likewise.
6909         (preprocess_insn_constraints): Change parameter to unsigned int.
6910         * recog.c (preprocess_insn_constraints): Likewise.
6911         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
6912         * tree-vect-stmts.c (vectorizable_operation): Simplify.
6914 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
6916         PR rtl-optimization/61657
6917         * loop-iv.c (iv_number_of_iterations): Declare up and down as
6918         unsigned.  Remove superflous uint64_t cast.
6920 2014-08-21  Felix Yang  <felix.yang@huawei.com>
6921             Jiji Jiang  <jiangjiji@huawei.com>
6923         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
6924         argument and get builtin function code directly from CALL.
6925         (gimple_stringop_fixed_value): Modified accordingly.
6926         (gimple_stringops_transform, gimple_stringops_values_to_profile):
6927         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
6929 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6931         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
6933 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6935         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
6936         to match.pd.
6937         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
6938         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
6939         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
6940         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
6941         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
6942         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
6943         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
6944         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
6945         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
6946         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
6948         * match.pd (SIN ) : New Operator.
6949         (TAN) : New Operator.
6950         (mult (SQRT@1 @0) @1) : New simplifier.
6951         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
6952         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6953         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6954         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
6955         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
6956         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
6957         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
6958         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
6959         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
6960         (rdiv @0 (POW:s @1 @2)) : New simplifier.
6962 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
6964         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
6965         loop if EXPR is simplified to const value.
6967 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
6969         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6970         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
6972 2015-08-21  Richard Biener  <rguenther@suse.de>
6974         PR middle-end/67285
6975         * gimple-fold.c (replace_stmt_with_simplification): Assert
6976         seq is empty when replacing a call with itself but different
6977         arguments.
6978         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
6979         a call require that it is const.
6981 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6983         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
6984         * builtins.c (get_object_alignment_2): Adjust.
6985         * varasm.c (align_variable): Likewise.
6986         (get_variable_align): Likewise.
6987         (build_constant_desc): Likewise.
6988         (force_const_mem): Likewise.
6989         * doc/tm.texi.in: Likewise.
6990         * doc/tm.texi: Regenerate.
6992 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6994         * genconfig.c (main): Always define HAVE_cc0.
6995         * recog.c (rest_of_handle_peephole2): Adjust.
6997 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6999         * reorg.c (relax_delay_slots): Don't use #if to check value of
7000         HAVE_cc0.
7002 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7004         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7005         * targhooks.c (default_have_conditional_execution): Adjust.
7007 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7009         * rtl.h (rtvec_all_equal_p): Declare.
7010         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7011         * rtl.c (rtvec_all_equal_p): New function.
7012         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7013         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7014         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7015         * config/arm/arm.c (neon_vdup_constant): Likewise.
7016         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7017         * config/tilegx/constraints.md (W, Y): Likewise.
7018         * config/tilepro/constraints.md (W, Y): Likewise.
7019         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7020         (classify_immediate): Use unwrap_const_vec_duplicate.
7021         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7022         (reg_or_v2s8bit_operand): Likewise.
7023         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7024         (reg_or_v4s8bit_operand): Likewise.
7026 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7028         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7029         (vec_shasigma_be): New #define.
7030         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7031         (VPMSUMH): Likewise.
7032         (VPMSUMW): Likewise.
7033         (VPMSUMD): Likewise.
7034         (VPMSUM): New BU_P8V_OVERLOAD_2.
7035         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7036         entries for VEC_MADD and VEC_VPMSUM.
7038 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
7040         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7041         Multiply argument avr_n_flash by 64 to match unit of "KiB".
7042         (avr_pgm_check_var_decl): Same.
7044 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
7046         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7047         initialization of HFmode scalar type (float16_t) to...
7048         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7049         code.
7051         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7053         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7054         having an -mfp16-format.
7056 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7058         * config/i386/predicates.md (vector_all_ones_operand): Use
7059         CONSTM1_RTX to simplify definition.
7061 2015-08-20  Richard Biener  <rguenther@suse.de>
7063         * toplev.c (compile_file): Remove loop calling late_global_decl
7064         on all symbols.
7065         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7066         on decls we assembled.
7068 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
7070         * common/config/aarch64/aarch64-common.c
7071         (AARCH64_CPU_NAME_LENGTH): Delete.
7072         (aarch64_option_extension): New.
7073         (all_extensions): Likewise.
7074         (processor_name_to_arch): Likewise.
7075         (arch_to_arch_name): Likewise.
7076         (all_cores): New.
7077         (all_architectures): Likewise.
7078         (aarch64_get_extension_string_for_isa_flags): Likewise.
7079         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7080         architecture names.
7081         * config/aarch64/aarch64-protos.h
7082         (aarch64_get_extension_string_for_isa_flags): New.
7083         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7084         (aarch64_option_print): Get the string to print from
7085         aarch64_get_extension_string_for_isa_flags.
7086         (aarch64_declare_function_name): Likewise.
7087         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7088         (MCPU_TO_MARCH_SPEC): This.
7089         (ASM_CPU_SPEC): Use it.
7090         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7091         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7092         (EXTRA_SPEC_FUNCTIONS): Use it.
7094 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
7096         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7097         expansion when !ISA_HAS_LWL_LWR.
7098         (mips_block_move_straight): Update the size of elements copied to
7099         account for alignment when !ISA_HAS_LWL_LWR.
7100         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7102 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7104         * expr.c (expand_expr_real_2): Check gimple statement during
7105         LSHIFT_EXPR expand.
7107 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
7109         * common.opt (fstack-protector): Initialize to -1.
7110         (fstack-protector-all): Likewise.
7111         (fstack-protector-strong): Likewise.
7112         (fstack-protector-explicit): Likewise.
7113         * configure.ac: Add --enable-default-ssp.
7114         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
7115         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7116         -1.
7117         * doc/install.texi: Document --enable-default-ssp.
7118         * config.in: Regenerated.
7119         * configure: Likewise.
7121 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
7123         PR rtl-optimization/64164
7124         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7125         (parm_in_stack_slot_p): ... this.  Disregard mode, what
7126         matters is whether the parm will live in a pseudo or a stack
7127         slot.
7128         (expand_one_ssa_partition): Deal with params without a default
7129         def.  Disregard mode.
7130         * cfgexpand.h: Renamed function declaration.
7131         * tree-ssa-coalesce.c: Adjust.
7132         * function.c (split_complex_args): Allocate stack slot for
7133         unassigned parms before splitting.
7134         (parm_in_unassigned_mem_p): New.  Use it instead of
7135         parm_maybe_byref_p throughout this file.
7136         (assign_parm_setup_block): Use it.  Accept pseudos in the
7137         expand-assigned rtl.
7138         (assign_parm_setup_reg): Drop BLKmode requirement.
7139         (assign_parm_setup_stack): Allocate and fill in the address of
7140         unassigned MEM parms.
7142 2015-08-19  David Sherwood  <david.sherwood@arm.com>
7144         * genmodes.c (emit_mode_unit_size_inline): New function.
7145         (emit_mode_unit_precision_inline): New function.
7146         (emit_insn_modes_h): Emit new #define.  Emit new functions.
7147         (emit_mode_unit_size): New function.
7148         (emit_mode_unit_precision): New function.
7149         (emit_mode_adjustments): Add mode_unit_size adjustments.
7150         (emit_insn_modes_c): Emit new arrays.
7151         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7152         use new inline methods.
7154 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7156         * config/aarch64/aarch64.c (bit_count): Delete prototype
7157         and definition.
7158         (aarch64_print_operand): Use popcount_hwi instead of the above.
7160 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7162         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7163         comment.
7165 2015-08-19  Marek Polacek  <polacek@redhat.com>
7167         PR middle-end/67133
7168         * gimple-ssa-isolate-paths.c
7169         (insert_trap_and_remove_trailing_statements): Rename to ...
7170         (insert_trap): ... this.  Don't remove trailing statements; split
7171         block instead.
7172         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7174 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
7176         PR other/67042
7177         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7178         conditionalize the whole on __GNUC__.  Add fallback code
7179         depending neither on undefined nor implementation-defined behaviour.
7181 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7183         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7184         whitespaces with tab.
7186 2015-08-19  Florian Weimer  <fweimer@redhat.com>
7188         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7189         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7190         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7191         Move Name_Ids instantiation to the Prj.Proc package, to avoid
7192         trampolines.
7194 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7196         * config/arm/arm.c (bounds_check): Use %wd print format
7197         for HOST_WIDE_INT arguments.
7199 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
7201         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7202         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7203         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7204         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7205         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7206         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7207         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7208         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7209         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7210         typedefs.
7212 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
7214         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7215         function.c, graphite-scop-detection.c, haifa-sched.c,
7216         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7217         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7218         varasm.c: Remove typedefs of structs.
7220 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7222         * config/rs6000/altivec.h (vec_adde): New define.
7223         (vec_addec): Likewise.
7224         (vec_double): Likewise.
7225         (vec_bperm): Likewise.
7226         (vec_gb): Likewise.
7227         * config/rs6000/rs6000-builtin.def (ADDE): New
7228         BU_ALTIVEC_OVERLOAD_3.
7229         (ADDEC): Likewise.
7230         (DOUBLE): New BU_VSX_OVERLOAD_1.
7231         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7232         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7233         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7234         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7235         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7236         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7237         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7238         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7239         and P8V_BUILTIN_VEC_VBPERMQ.
7241 2015-08-18  Jason Merrill  <jason@redhat.com>
7243         * print-tree.c (print_node): Handle TREE_BINFO.
7245 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7247         PR middle-end/36757
7248         * builtins.c (expand_builtin_signbit): Add asserts to make sure
7249         we can expand BUILT_IN_SIGNBIT inline.
7250         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7251         * doc/extend.texi: Document the type-generic __builtin_signbit.
7253 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
7255         PR rtl-optimization/67218
7256         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7257         (simplify_unary_operation_1): Use it.
7259 2015-08-18  Marek Polacek  <polacek@redhat.com>
7261         PR middle-end/67222
7262         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7263         if the call isn't valid.
7264         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7265         gimple_call_builtin_p.
7266         (call_may_clobber_ref_p_1): Likewise.
7267         (stmt_kills_ref_p): Likewise.
7269 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7271         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7272         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7273         (mips_hard_regno_scratch_ok): Likewise.
7274         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7275         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7277 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
7279         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7280         (determine_value_range): Call refine_value_range_using_guard for
7281         each loop initial condition to improve value range.
7283 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
7285         * config/i386/i386.c: Remove include of fibheap.h.
7287 2015-08-17  Richard Biener  <rguenther@suse.de>
7289         PR tree-optimization/67221
7290         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7291         (sccvn_dom_walker::before_dom_children): Mark backedges of
7292         non-executable blocks as not executable.
7294 2015-08-17  David Sherwood  <david.sherwood@arm.com>
7296         * config/arm/arm.c (neon_element_bits): Replace call to
7297         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7298         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7299         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7300         (neon_vdup_lane<mode>): Likewise.
7301         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7302         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7303         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7304         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7305         * config/spu/spu.c (arith_immediate_p): Likewise.
7306         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7307         * expr.c (expand_expr_real_2): Likewise.
7308         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7309         * simplify-rtx.c (simplify_immed_subreg): Likewise.
7310         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7311         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7312         New variable.
7313         * fold-const.c (fold_binary_loc): Replace call to
7314         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7315         GET_MODE_UNIT_PRECISION (m).
7317 2015-08-17  Mike Stump  <mikestump@comcast.net>
7319         * config/arm/arm.c (arm_block_move_unaligned_straight):
7320         Emit normal move instead of unaligned load when source or destination
7321         are appropriately aligned.
7323 2015-08-17  Richard Biener  <rguenther@suse.de>
7324             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7326         PR middle-end/16107
7327         * match.pd (div (coss (op @0) : New simplifier.
7329 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
7331         PR rtl-optimization/64164
7332         PR bootstrap/66978
7333         PR middle-end/66983
7334         PR rtl-optimization/67000
7335         PR middle-end/67034
7336         PR middle-end/67035
7337         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7338         * tree-ssa-copyrename.c: Removed.
7339         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7340         -ftree-coalesce-vars.
7341         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7342         * common.opt (ftree-copyrename): Ignore.
7343         (ftree-coalesce-inlined-vars): Likewise.
7344         * doc/invoke.texi: Remove the ignored options above.
7345         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7346         * tree-ssa-coalesce.h: ... here.
7347         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7348         headers required by it.
7349         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7350         across variables when flag_tree_coalesce_vars.  Check register
7351         use and promoted modes to allow coalescing.  Do not coalesce
7352         maybe-byref parms with SSA_NAMEs of other variables, or
7353         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
7354         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7355         with its member functions to tree-ssa-coalesce.c.
7356         (var_map_base_init): Likewise.  Renamed to
7357         compute_samebase_partition_bases.
7358         (partition_view_normal): Drop want_bases parameter.
7359         (partition_view_bitmap): Likewise.
7360         * tree-ssa-live.h: Adjust declarations.
7361         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7362         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7363         default defs at the entry point.
7364         (dump_part_var_map): New.
7365         (compute_optimized_partition_bases): New, called by...
7366         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7367         of compute_samebase_partition_bases.  Adjust.
7368         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7369         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7370         (ssa_default_def_partition): New.
7371         (get_rtl_for_parm_ssa_default_def): New.
7372         (align_local_variable, add_stack_var): Support anonymous SSA
7373         names.
7374         (defer_stack_allocation): Likewise.  Declare earlier.
7375         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7376         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7377         Do no record deferred-allocation marker in
7378         SA.partition_to_pseudo.
7379         (expand_stack_vars): Adjust check for the marker in it.
7380         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7381         redundant MEM attr setting.
7382         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7383         from...
7384         (expand_one_stack_var): ... this.  New wrapper to check and
7385         skip already expanded SSA partitions.
7386         (record_alignment_for_reg_var): New, factored out of...
7387         (expand_one_var): ... this.
7388         (expand_one_ssa_partition): New.
7389         (adjust_one_expanded_partition_var): New.
7390         (expand_one_register_var): Check and skip already expanded SSA
7391         partitions.
7392         (expand_used_vars): Don't create DECLs for anonymous SSA
7393         names.  Expand all SSA partitions, then adjust all SSA names.
7394         (pass::execute): Replace the loops that set
7395         SA.partition_to_pseudo from partition leaders and cleared
7396         DECL_RTL for multi-location variables, and that which used to
7397         rename vars and set attrs, with one that clears DECL_RTL and
7398         checks that PARMs and RESULTs default_defs match DECL_RTL.
7399         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7400         * emit-rtl.c: Include stor-layout.h.
7401         (set_reg_attrs_for_parm): Handle NULL decl.
7402         (set_reg_attrs_for_decl_rtl): Take mode from expression if
7403         it's not a DECL.
7404         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7405         rather than its possibly-NULL DECL.
7406         * explow.c (promote_ssa_mode): New.
7407         * explow.h (promote_ssa_mode): Declare.
7408         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7409         (read_complex_part): Export.
7410         * expr.h (read_complex_part): Declare.
7411         * cfgexpand.h (parm_maybe_byref_p): Declare.
7412         * function.c: Include cfgexpand.h.
7413         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7414         (use_register_for_parm_decl): Wrapper for the above to
7415         special-case the result_ptr.
7416         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7417         (split_complex_args): Take assign_parm_data_all argument.
7418         Pass it to rtl_for_parm.  Set up rtl and context for split
7419         args.  Reset complex parm before fetching its default decl
7420         rtl.
7421         (assign_parms_unsplit_complex): Use the default-def complex
7422         parm rtl if it matches the components.
7423         (assign_parms_augmented_arg_list): Adjust.
7424         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7425         multiple locations.  Recognize split complex args.
7426         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7427         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7428         (assign_parm_setup_block): Prefer SSA-assigned location, and
7429         fill in its address if the memory location of a maybe-byref
7430         parm was not assigned by cfgexpand.
7431         (assign_parm_setup_reg): Likewise.  Adjust its mode as
7432         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
7433         sure passed_pointer parms don't need conversion.  Copy address
7434         or value as needed.
7435         (assign_parm_setup_stack): Prefer SSA-assigned location.
7436         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7437         rtl before testing for pointer bounds.  Special-case result_ptr.
7438         (expand_function_start): Maybe reset DECL_RTL of result.
7439         Prefer SSA-assigned location for result and static chain.
7440         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
7441         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
7442         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7443         anonymous SSA names.  Use promote_ssa_mode.
7444         (get_temp_reg): Likewise.
7445         (remove_ssa_form): Adjust.
7446         * stor-layout.c (layout_decl): Don't set mem attributes of
7447         non-MEMs.
7448         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7449         and get its reg_usage for reg invalidation.
7450         (compute_bb_dataflow): Pass it insn.
7451         (emit_notes_in_bb): Likewise.
7453 2015-08-14  Marek Polacek  <polacek@redhat.com>
7455         * tree-core.h (tree_base): Fix typo.
7457 2015-08-14  Marek Polacek  <polacek@redhat.com>
7459         PR middle-end/67133
7460         * gimple.c (infer_nonnull_range_by_attribute): Check that the
7461         nonnull argument position is not outside function arguments.
7463 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
7465         PR target/67143
7466         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
7467         'lconst_atomic' with 'const_atomic'.
7468         (atomic_fetch_<optab><mode>): Likewise.
7469         (atomic_<optab>_fetch<mode>): Likewise.
7470         * config/aarch64/iterators.md (lconst-atomic): Move below
7471         'const_atomic'.
7472         (const_atomic): New.
7474 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
7475             Bernd Schmidt  <bernds@codesourcery.com>
7477         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
7478         debug options.
7479         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
7480         (DWARF2_DEBUGGING_INFO): Don't define.
7481         * debug.h (dwarf2_lineno_debug_hooks): Declare.
7482         * toplev.c (process_options): Add a case for it.
7483         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
7484         (dwarf2out_init): Skip most initializations if
7485         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
7486         case.
7487         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
7488         DWARF2_LINENO_DEBUGGING_INFO.
7489         * opts.c (set_debug_level): Likewise.
7491 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
7493         * config/arm/types.md (is_neon_type): Add missing types.
7495 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
7497         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
7498         for skylake.
7499         * config/i386/i386.c (PTA_SKYLAKE): New macros.
7500         (processor_alias_table): Add skylake description.
7501         (enum processor_model): Add skylake processor.
7502         (arch_names_table): Add skylake record.
7503         * doc/invoke.texi: Add skylake item.
7505 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
7507         * ira-int.h: Include recog.h.
7508         * ira-build.c: Don't include recog.h.
7509         * ira-color.c: Likewise.
7510         * ira-conflicts.c: Likewise.
7511         * ira-costs.c: Likewise.
7512         * ira-emit.c: Likewise.
7513         * ira-lives.c: Likewise.
7514         * ira.c: Likewise.
7515         * sched-deps.c: Likewise.
7516         * sel-sched.c: Likewise.
7517         * target-globals.c: Likewise.
7519 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7521         PR bootstrap/55035
7522         * reload1.c (elimination_costs_in_insn): Make it obvious to the
7523         compiler that the n_dups and n_operands loop bounds are invariant.
7525 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7527         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
7528         expressions in A and B.
7530 2015-08-13  Richard Biener  <rguenther@suse.de>
7532         * tree.c (nonnull_arg_p): Move from ...
7533         * tree-vrp.c (nonnull_arg_p): ... here.
7534         * tree.h (nonnull_arg_p): Declare.
7535         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
7536         here, register ptr != 0 for nonnull_arg_p pointer arguments.
7537         Properly initialize static chain and by-reference result pointer.
7538         (run_scc_vn): Adjust.
7540 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
7542         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
7543         TUNE_I6400.
7545 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
7547         * config/aarch64/aarch64-protos.h
7548         (aarch64_gen_atomic_cas): Declare.
7549         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
7550         Choose appropriate instruction pattern for the target.
7551         (aarch64_gen_atomic_cas): New.
7552         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
7553         (atomic_compare_and_swap<mode>_1): Rename to
7554         aarch64_compare_and_swap<mode>.  Fix some indentation.
7555         (aarch64_compare_and_swap<mode>_lse): New.
7556         (aarch64_atomic_cas<mode>): New.
7558 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
7560         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
7561         (TARGET_LSE): New.
7563 2015-08-13  Richard Biener  <rguenther@suse.de>
7565         PR tree-optimization/67191
7566         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
7567         assert we value-numbered last stmts operand because it can validly
7568         trigger for unreachable code.
7570 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7572         PR rtl-optimization/67103
7573         * ifcvt.c (noce_try_store_flag_constants): Move
7574         x = (-(test != 0) & (b - a)) + a transformation to...
7575         (noce_try_cmove): ... Here.  Try it if normal conditional
7576         move fails.
7578 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
7580         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
7581         pseudo-processors.
7582         * config/mips/mips.md (processor): Remove w32 and w64.
7584 2015-08-13  Richard Biener  <rguenther@suse.de>
7586         PR tree-optimization/66502
7587         PR tree-optimization/67167
7588         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
7589         backedge arguments.
7590         (vn_phi_lookup): Adjust.
7591         (vn_phi_insert): Likewise.
7592         (visit_phi): Prefer to value-number to another PHI node
7593         over value-numbering to a PHI argument.
7594         (init_scc_vn): Mark DFS back edges.
7596 2015-08-13  Richard Biener  <rguenther@suse.de>
7598         * gimple.h (gcall::code_): New constant static member.
7599         (gcond::code_): Likewise.
7600         * gimple.c (gcall::code_): Define.
7601         (gcond::code_): Likewise.
7602         (is_a_helper <const gcond *>): Add.
7603         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
7604         and forward to a new gcall overload with less checking and a
7605         cheaper way to access the operand.
7606         (gimple_call_lhs_ptr): Likewise.
7607         (gimple_call_set_lhs): Likewise.
7608         (gimple_call_internal_p): Likewise.
7609         (gimple_call_with_bounds_p): Likewise.
7610         (gimple_call_set_with_bounds): Likewise.
7611         (gimple_call_internal_fn): Likewise.
7612         (gimple_call_set_ctrl_altering): Likewise.
7613         (gimple_call_ctrl_altering_p): Likewise.
7614         (gimple_call_fntype): Likewise.
7615         (gimple_call_fn): Likewise.
7616         (gimple_call_fn_ptr): Likewise.
7617         (gimple_call_set_fndecl): Likewise.
7618         (gimple_call_fndecl): Likewise.
7619         (gimple_call_chain): Likewise.
7620         (gimple_call_num_args): Likewise.
7621         (gimple_call_arg): Likewise.
7622         (gimple_call_arg_ptr): Likewise.
7623         (gimple_call_set_arg): Likewise.
7624         (gimple_call_noreturn_p): Likewise.
7625         (gimple_cond_code): Likewise.
7626         (gimple_cond_lhs): Likewise.
7627         (gimple_cond_rhs): Likewise.
7628         (gimple_has_lhs): Reduce checking.
7630 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7632         PR middle-end/25529
7633         * match.pd (div (mult @0 @1) @1) : New simplifier.
7635 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7637         PR target/67071
7638         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
7639         predicate to allow construction of vector constants using the
7640         VSLDOI vector shift instruction.
7642         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
7643         declaration.
7645         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
7646         the number of bytes to be shifted left and filled in with either
7647         all zero or all one bits.
7648         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
7649         methods exist.
7650         (output_vec_const_move): On power8, generate XXLORC to generate
7651         a vector constant with all 1's. Do a split if we need to use a
7652         VSLDOI instruction.
7654         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
7655         properly test for the MSB.
7657         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
7658         vector constants that can be created with VSLDOI.
7660 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
7662         revert:
7663         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7664         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7665         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7666         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7667         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7668         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7669         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7670         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7671         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7673 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
7675         * config/xtensa/constraints.md (define_constraint "Y"): New
7676         constraint.
7677         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
7678         * config/xtensa/linux.h (ASM_SPEC): Likewise.
7679         * config/xtensa/predicates.md (move_operand): Match constants
7680         and symbols in the presence of TARGET_AUTO_LITPOOLS.
7681         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
7682         immediate references to TLS data.
7683         (xtensa_emit_move_sequence): Don't force constants to memory in
7684         the presence of TARGET_AUTO_LITPOOLS.
7685         (print_operand): Add 'y' format, same as default, but capable of
7686         printing SF mode constants as well.
7687         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
7688         (movsf_internal): Add movi pattern that loads literal.
7689         (movsf, movdf): Don't force constants to memory in the presence
7690         of TARGET_AUTO_LITPOOLS.
7691         (movdf_internal): Add 'Y' constraint.
7692         * config/xtensa/xtensa.opt (mauto-litpools): New option.
7693         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
7695 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
7697         * config/arm/arm-fpus.def: Replace booleans with feature flags.
7698         Update comment.
7699         * config/arm/arm.c (ARM_FPU): Update macro.
7700         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
7701         (TARGET_FP16): Likewise.
7702         (TARGET_CRYPTO): Likewise.
7703         (TARGET_NEON): Likewise.
7704         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
7705         field features.
7707 2015-08-12  Tom de Vries  <tom@codesourcery.com>
7709         PR other/67092
7710         PR other/67098
7711         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
7712         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
7713         accordingly.  Mention default for --with-stage1-ldflags.
7715 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
7717         * config/arm/arm.h (arm_fpu_feature_set): New.
7718         (ARM_FPU_FSET_HAS): New.
7719         (FPU_FL_NONE): New.
7720         (FPU_FL_NEON): New.
7721         (FPU_FL_FP16): New.
7722         (FPU_FL_CRYPTO): New.
7724 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7726         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
7727         after -mcmodel=large -fPIC sorry.
7729 2015-08-12  Richard Biener  <rguenther@suse.de>
7731         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
7732         comparison operand order and commutative ternary op operand order.
7733         (sccvn_dom_walker::cond_stack): New state to track temporary
7734         expressions.
7735         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
7736         no longer valid.
7737         (sccvn_dom_walker::record_cond): Add a single temporary conditional
7738         expression.
7739         (sccvn_dom_walker::record_conds): Add a temporary conditional
7740         expressions and all related expressions also true/false.
7741         (sccvn_dom_walker::before_dom_children): Record temporary
7742         expressions based on the controlling condition of a single
7743         predecessor.  When trying to simplify a conditional statement
7744         lookup expressions we might have inserted earlier.
7746 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
7748         PR target/67127
7749         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
7750         to ARM core registers.
7752 2015-08-12  Nathan Sidwell  <nathan@acm.org>
7754         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
7755         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
7757 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
7759         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
7760         line with comments.
7761         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
7763 2015-08-12  Richard Biener  <rguenther@suse.de>
7765         * gimple.h (remove_pointer): New trait.
7766         (GIMPLE_CHECK2): New inline template function.
7767         (gassign::code_): New constant static member.
7768         (is_a_helper<const gassign *>): Add.
7769         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
7770         and forward to a new gassign overload with less checking and a
7771         cheaper way to access the operand.
7772         (gimple_assign_lhs_ptr): Likewise.
7773         (gimple_assign_set_lhs): Likewise.
7774         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
7775         Likewise.
7776         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
7777         Likewise.
7778         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
7779         Likewise.
7780         (gimple_assign_rhs_code): Likewise.
7781         * gimple.c (gassign::code_): Define.
7783 2015-08-12  Richard Biener  <rguenther@suse.de>
7785         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7786         Eliminate edges marked as not executable by SCCVN.
7787         * tree-ssa-sccvn.c: Include gimple-iterator.h.
7788         (cond_dom_walker): Rename to sccvn_dom_walker.
7789         (sccvn_dom_walker::before_dom_children): Value-number defs
7790         of all stmts.
7791         (run_scc_vn): Remove loop value-numbering all SSA names.
7792         Drop not visited SSA names to varying.
7794 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
7796         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7797         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7798         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7799         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7800         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7801         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7802         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7803         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7804         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7806 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
7808         PR target/66954
7809         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
7810         to enum feature_priority and feature_list.
7811         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
7812         and isa_names_table.
7814 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
7816         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
7817         vect_induction_def.
7819 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7821         PR c/66098
7822         PR c/66711
7823         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
7824         account when deciding what was the command-line status.
7826 2015-08-11  Nathan Sidwell  <nathan@acm.org>
7828         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
7830         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
7831         we're not the only contributor to target phi.
7833 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
7835         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
7836         FIXED_REG0.
7838 2015-08-11  Tom de Vries  <tom@codesourcery.com>
7840         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
7842 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7844         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
7845         with CPU_SLM.
7846         * config/i386/i386.md (cpu): Remove knl.
7848 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7850         PR libgomp/65742
7851         PR middle-end/66332
7852         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
7853         open-coded sequence.
7854         * omp-low.c (oacc_process_reduction_data): Remove handline of
7855         GOMP_DEVICE_HOST_NONSHM.
7857         * lto-streamer-in.c (lto_input_mode_table): Adjust to
7858         GET_MODE_INNER changes.
7860 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7861             Ilya Verbin  <ilya.verbin@intel.com>
7863         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
7865 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7867         * doc/options.texi (EnabledBy): Document that the argument must be
7868         a Common option.
7869         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
7870         Not enabled by -Wall.
7871         * optc-gen.awk: Give nicer error messages. Detect if the argument
7872         of EnabledBy is not a Common option.
7873         * common.opt (Wnull-dereference): Not enabled by -Wall.
7874         * opt-functions.awk (lang_enabled_by): Nicer error messages.
7876 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7878         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
7879         model == 0x4f as Broadwell.
7881 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
7883         PR rtl-optimization/67028
7884         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
7885         Add test to see if a const_int fits in the new mode.
7887 2015-08-07  DJ Delorie  <dj@redhat.com>
7889         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
7891 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
7893         PR rtl-optimization/67029
7894         * ira-color.c: Include "recog.h" before including "ira-int.h".
7895         * target-globals.c: Likewise.
7896         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
7897         adds an alternative_mask argument and use it instead of
7898         preferred_alternatives.
7899         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
7900         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
7901         * sched-deps.c: Include "ira-int.h" after including "ira.h".
7902         (sched_analyze_insn): Update call to
7903         ira_implicitly_set_insn_hard_regs.
7904         * sel-sched.c: Include "ira-int.h" after including "ira.h".
7905         (implicit_clobber_conflict_p): Update call to
7906         ira_implicitly_set_insn_hard_regs.
7908 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
7910         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
7912 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7914         PR target/67002
7915         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
7916         currently_expanding_to_rtl is set.
7918 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
7920         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
7921         * configure: Regenerate.
7923 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7924             Jiong Wang  <jiong.wang@arm.com>
7926         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7927         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7928         (REG_CLASS_NAMES): Likewise.
7929         (REG_CLASS_CONTENTS): Likewise.
7930         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7931         (aarch64_register_move_cost): Likewise.
7932         (aarch64_load_symref_appropriately): Invoke the new added pattern if
7933         possible.
7934         * config/aarch64/constraints.md (Uc0): New constraint.
7936 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
7938         * config/aarch64/constraints.md (Usf): Add the test of
7939         aarch64_is_noplt_call_p.
7941 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
7943         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
7944         declaration.
7945         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
7946         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
7947         (call_symbol): Likewise.
7949 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7951         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
7952         for vectorizing multiplication patterns.
7953         * tree-vectorizer.h: Adjust the number of patterns.
7955 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
7957         * config/i386/sse.md (*vec_concatv2df): Declare added
7958         alternatives as sselog type.
7960 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7962         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
7963         all GPRs.
7965 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7967         * config/s390/s390.c (s390_expand_tbegin): Expand either
7968         tbegin_1_z13 or tbegin_1 depending on VX flag.
7969         * config/s390/s390.md ("tbegin_1_z13"): New expander.
7971 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7973         * config/s390/s390.opt: Clarify description for -mzvector
7974         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
7975         -mzvector.
7977 2015-08-06  Richard Biener  <rguenther@suse.de>
7979         * gimple.h (gimple_call_set_fn): Access op member directly.
7980         (gimple_call_chain_ptr): Likewise.
7981         (gimple_call_set_chain): Likewise.
7982         (gimple_cond_lhs_ptr): Likewise.
7983         (gimple_cond_set_lhs): Likewise.
7984         (gimple_cond_rhs_ptr): Likewise.
7985         (gimple_cond_set_rhs): Likewise.
7986         (gimple_cond_true_label): Likewise.
7987         (gimple_cond_set_true_label): Likewise.
7988         (gimple_cond_set_false_label): Likewise.
7989         (gimple_cond_false_label): Likewise.
7990         (gimple_label_label): Likewise.
7991         (gimple_label_set_label): Likewise.
7992         (gimple_goto_set_dest): Likewise.
7993         (gimple_asm_input_op): Likewise.
7994         (gimple_asm_input_op_ptr): Likewise.
7995         (gimple_asm_set_input_op): Likewise.
7996         (gimple_asm_output_op): Likewise.
7997         (gimple_asm_output_op_ptr): Likewise.
7998         (gimple_asm_set_output_op): Likewise.
7999         (gimple_asm_clobber_op): Likewise.
8000         (gimple_asm_set_clobber_op): Likewise.
8001         (gimple_asm_label_op): Likewise.
8002         (gimple_asm_set_label_op): Likewise.
8003         (gimple_switch_index): Likewise.
8004         (gimple_switch_index_ptr): Likewise.
8005         (gimple_return_retval_ptr): Likewise.
8006         (gimple_return_retval): Likewise.
8007         (gimple_return_set_retval): Likewise.
8008         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
8009         (gimple_switch_label): Likewise.
8010         (gimple_switch_set_label): Likewise.
8012 2015-08-06  Richard Biener  <rguenther@suse.de>
8014         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8015         bool comparison canonicalization and restrict to integers.
8017 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
8019         * coretypes.h (enum symbol_visibility): Relocate here.
8020         * flag-types.h (enum symbol_visibility): Remove.
8021         * tree-core.h (enum symbol_visibility): Remove.
8023 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
8025         PR target/66870
8026         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8027         for no_split_stack function attribute along with
8028         flag_split_stack.
8029         (rs6000_expand_split_stack_prologue): Likewise.
8031 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8032             Jeff Law  <law@redhat.com>
8034         PR c/16351
8035         * doc/invoke.texi (Wnull-dereference): New.
8036         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8037         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8038         Warn for potential NULL dereferences.
8039         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8040         * ubsan.c (instrument_nonnull_arg): Call
8041         infer_nonnull_range_by_attribute.
8042         (instrument_nonnull_return): Likewise.
8043         * common.opt (Wnull-dereference); New.
8044         * gimple.c (infer_nonnull_range): Remove bool arguments.
8045         (infer_nonnull_range_by_dereference): New.
8046         (infer_nonnull_range_by_attribute): New.
8047         * gimple.h: Update declarations.
8049 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8051         * gensupport.c (sequence_num): Replace with...
8052         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8053         ...these new variables.
8054         (init_rtx_reader_args_cb): Update accordingly.
8055         (get_num_code_insns): Likewise.
8056         (read_md_rtx): Rework to use a while loop and get_c_test.
8057         Use the new counters.  Remove redundant DEFINE_SUBST case.
8058         * genoutput.c (gen_split): Delete.
8059         (main): Don't call it.
8061 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8063         * gensupport.h (get_c_test): Declare.
8064         * gensupport.c (get_c_test): New function.
8065         * genconditions.c (main): Use it.
8066         * genrecog.c (validate_pattern): Likewise.
8067         (match_pattern_1): Likewise.  Remove c_test argument.
8068         (match_pattern): Update accordingly and remove c_test argument.
8069         (main): Update accordingly.
8071 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8073         * gensupport.h (get_num_insn_codes): Declare.
8074         * gensupport.c (get_num_insn_codes): New function.
8075         * genattrtab.c (optimize_attrs): Rename max_insn_code to
8076         num_insn_codes.
8077         (main): Likewise.  Use get_num_insn_codes.
8078         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8080 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8082         PR middle-end/66311
8083         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8084         is zero- rather than sign-extended.
8086 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8088         * target-insns.def (can_extend): Delete.
8090 2015-08-05  Richard Biener  <rguenther@suse.de>
8092         PR tree-optimization/67121
8093         * tree-if-conv.c (combine_blocks): Clear range-info produced
8094         by stmts no longer executed conditionally.
8096 2015-08-05  Nick Clifton  <nickc@redhat.com>
8098         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8099         to allow identical far pointers to remain.
8101 2015-08-05  Richard Biener  <rguenther@suse.de>
8103         PR middle-end/67120
8104         * match.pd: Compare address bases with == if they are decls
8105         or SSA names, not operand_equal_p.  Otherwise fail.
8107 2015-08-05  Richard Biener  <rguenther@suse.de>
8109         PR tree-optimization/67055
8110         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8111         NULL gimple_block.
8113         * g++.dg/torture/pr67055.C: New testcase.
8115 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8117         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8118         noavx512vl.
8119         (define_attr "enabled"): Handle avx521vl and noavx512vl.
8120         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8121         AVX-512 alternative out of SSE.
8122         (define_insn "*vec_concatv2df"): Ditto.
8124 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8126         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8127         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8128         CODE_FOR_avx_ptestv4di.
8129         * config/i386/sse.md (define_mode_iterator V_AVX): New.
8130         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8131         (define_insn "avx_ptest256"): Merge this ...
8132         (define_insn "sse4_1_ptest"): And this ...
8133         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8135 2015-08-05  Richard Biener  <rguenther@suse.de>
8137         PR tree-optimization/67109
8138         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8139         against too big groups.  Print whether this is a load or store
8140         group.  Rename from ...
8141         (vect_analyze_group_access): ... this which is now a wrapper
8142         dissolving an invalid group.
8143         (vect_analyze_data_ref_accesses): Print whether this is a load
8144         or store group.
8146 2015-08-05  Richard Biener  <rguenther@suse.de>
8148         PR middle-end/67107
8149         * match.pd: Guard const_binop result checking against NULL_TREE
8150         result.
8152 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
8154         * cse.c (cse_insn): Restoring old behaviour for src_eqv
8155          when dest and value in the REG_EQUAL are same and dest
8156          is STRICT_LOW_PART.
8158 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
8160         * config/moxie/moxie.h (PRINT_OPERAND,
8161           PRINT_OPERAND_ADDRESS): Remove macros.
8162         * config/moxie/moxie-protos.h (moxie_print_operand,
8163           moxie_print_operand_address): Remove declaration.
8164         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8165           TARGET_PRINT_OPERAND_ADDRESS): Define.
8166           (moxie_print_operand, moxie_print_operand_address): Make static.
8168 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8170         PR target/66731
8171         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8172         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8174 2015-08-04  Richard Biener  <rguenther@suse.de>
8176         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8177         generated code.
8178         (dt_operand::gen_gimple_expr): Adjust.
8180 2015-08-04  Richard Biener  <rguenther@suse.de>
8182         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8183         bool compares on RHS.
8184         * match.pd: Add X ==/!= !X is false/true pattern.
8186 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
8188         * config/aarch64/aarch64.c: Change inner loop statement cost
8189         to be consistent with other targets.
8191 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
8193         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8194         targets.
8196 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8198         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8199         (machine_function): Remove pseudos field.
8201 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8203         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8204         Exit early and use target_option_current_node if processing current
8205         pragma.
8207 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8209         * doc/extend.texi (AArch64 Function Attributes): New node.
8210         (AArch64 Pragmas): Likewise.
8212 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8214         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8215         Initialize simd builtins if TARGET_SIMD.
8216         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8217         Make sure that the builtins are initialized only once no matter how
8218         many times the function is called.
8219         (aarch64_init_builtins): Unconditionally initialize crc builtins.
8220         (aarch64_relayout_simd_param): New function.
8221         (aarch64_simd_expand_args): Use above during argument expansion.
8222         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8223         simd builtins if TARGET_SIMD.
8224         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8225         prototype.
8226         (aarch64_relayout_simd_types): Likewise.
8228 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8230         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8231         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8232         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8233         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8234         static keyword.
8235         (aarch64_reset_previous_fndecl): New function.
8236         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8237         the string.
8238         * config/aarch64/aarch64-c.c: New file.
8239         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8240         Push and pop options at beginning and end.  Remove ifdef
8241         __ARM_FEATURE_CRC32.
8242         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8243         Add pragma +nothing+simd and +nothing+crypto where appropriate.
8244         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8245         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8246         Define prototype.
8247         (aarch64_register_pragmas): Likewise.
8248         (aarch64_reset_previous_fndecl): Likewise.
8249         (aarch64_process_target_attr): Likewise.
8250         (aarch64_override_options_internal): Likewise.
8252 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8254         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8255         New function.
8256         (aarch64_can_inline_p): Likewise.
8257         (TARGET_CAN_INLINE_P): Define.
8259 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8261         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8262         Remove static.  Handle OPT_mgeneral_regs_only,
8263         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8264         OPT_momit_leaf_frame_pointer.
8265         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8266         (aarch64_attr_opt_type): New enum.
8267         (aarch64_attribute_info): New struct.
8268         (aarch64_handle_attr_arch): New function.
8269         (aarch64_handle_attr_cpu): Likewise.
8270         (aarch64_handle_attr_tune): Likewise.
8271         (aarch64_handle_attr_isa_flags): Likewise.
8272         (aarch64_attributes): New table.
8273         (aarch64_process_one_target_attr): New function.
8274         (num_occurences_in_str): Likewise.
8275         (aarch64_process_target_attr): Likewise.
8276         (aarch64_option_valid_attribute_p): Likewise.
8277         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8278         * config/aarch64/aarch64-protos.h: Include input.h
8279         (aarch64_handle_option): Declare prototype.
8281 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8283         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8284         * config/aarch64/aarch64.c: Include target-globals.h
8285         (aarch64_previous_fndecl): New variable.
8286         (aarch64_set_current_function): New function.
8287         (TARGET_SET_CURRENT_FUNCTION): Define.
8289 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8291         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8292         (explicit_arch): Likewise.
8293         (x_aarch64_isa_flags): Likewise.
8294         (mgeneral-regs-only): Mark as Save.
8295         (mfix-cortex-a53-835769): Likewise.
8296         (mcmodel=): Likewise.
8297         (mstrict-align): Likewise.
8298         (momit-leaf-frame-pointer): Likewise.
8299         (mtls-dialect): Likewise.
8300         (master=): Likewise.
8301         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8302         (aarch64_isa_flags): Remove extern declaration.
8303         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8304         to indicate success or failure.
8305         (aarch64_validate_march): Likewise.
8306         (aarch64_validate_mtune): Likewise.
8307         (aarch64_isa_flags): Delete.
8308         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8309         instead of aarch64_isa_flags.
8310         (aarch64_get_tune_cpu): New function.
8311         (aarch64_get_arch): Likewise.
8312         (aarch64_override_options): Use above and set up explicit_tune_core
8313         and explicit_arch.
8314         (aarch64_print_extension): Move earlier in file.  Add isa_flags
8315         argument and use that instead of the global aarch64_isa_flags.
8316         (aarch64_option_save): New function.
8317         (aarch64_option_restore): Likewise.
8318         (aarch64_option_print): Likewise.
8319         (aarch64_declare_function_name): Likewise.
8320         (aarch64_start_file): Delete.
8321         (TARGET_ASM_FILE_START): Do not define.
8322         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8323         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8324         Declare prototype.
8326 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8328         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8329         flag_omit_leaf_frame_pointer to 2.
8331 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8333         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8334         define to 0 or 1.
8335         (TARGET_FIX_ERR_A53_835769): New macro.
8336         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8337         handling of opts->x_aarch64_fix_a53_err835769.
8338         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8339         than aarch64_fix_a53_err835769.
8340         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8341         * config/aarch64/aarch64-linux.h: Likewise.
8343 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
8345         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8346         ix86_expand_int_movcc as boolean.
8348 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8350         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8351         (aarch64_cpu_string): Likewise.
8352         (aarch64_tune_string): Likewise.
8353         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8354         (aarch64_parse_extension): Return aarch64_parse_opt_result.
8355         Add extra argument to put result into.
8356         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
8357         (aarch64_parse_cpu): Add arguments to put results into. Return
8358         aarch64_parse_opt_result.
8359         (aarch64_parse_tune): Likewise.
8360         (aarch64_override_options_after_change_1): New function.
8361         (aarch64_override_options_internal): New function.
8362         (aarch64_validate_mcpu): Likewise.
8363         (aarch64_validate_march): Likewise.
8364         (aarch64_validate_mtune): Likewise.
8365         (aarch64_override_options): Update to reflect above changes.
8366         Move some logic into aarch64_override_options_internal.
8367         Initialize target_option_default_node and target_option_current_node.
8368         (aarch64_override_options_after_change): Move logic into
8369         aarch64_override_options_after_change_1 and call it with global_options.
8370         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8371         flag values from that.
8373 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8375         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8376         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8377         * config/aarch64/aarch64.c (struct processor): Add arch field.
8378         (all_architectures): Handle above, move above all_cores.
8379         (all_cores): Handle above.
8380         (aarch64_parse_arch): Handle above changes.
8381         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8382         above.  Update comments.
8383         (armv8.1-a): Likewise.
8384         * config/aarch64/aarch64-cores.def: Update according to above.
8385         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8386         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8387         aarch64_arch_driver_info.
8389 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8391         * config/aarch64/aarch64.c (struct processor): Add ident field.
8392         Rename core sched_core.
8393         (all_cores): Handle above changes.
8394         (all_architectures): Likewise.
8395         (aarch64_parse_arch): Likewise.
8396         (aarch64_override_options): Likewise.
8398 2015-08-04  Richard Biener  <rguenther@suse.de>
8400         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8401         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8402         comparisons embedded in [VEC_]COND_EXPRs.
8404 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
8406         * tree-if-conv.c: Fix various typos in comments.
8407         * tree-vect-stmts.c: Likewise.
8409 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8411         PR tree-optimization/67043
8412         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8413         preheader after hoisting invariant in it.
8414         (find_defs): Force recomputation of all luids.
8416 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
8418         * config/rs6000/htm.md (tabort.): Restrict the source operand to
8419         using a base register.
8421 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
8423         * main.c (main): Pass in NULL for toplev's external_timer.
8424         * timevar.c: Include coretypes.h.
8425         (class timer::named_items): New.
8426         (timer::named_items::named_items): New.
8427         (timer::named_items::~named_items): New.
8428         (timer::named_items::push): New.
8429         (timer::named_items::pop): New.
8430         (timer::named_items::print): New.
8431         (timer::timer): Initialize field "m_jit_client_items".
8432         (timer::~timer): New.
8433         (timer::push): Move bulk of implementation to...
8434         (timer::push_internal): ...here.  New function.
8435         (timer::pop): Move bulk of implementation to...
8436         (timer::pop_internal): ...here.  New function.
8437         (timer::push_client_item): New.
8438         (timer::pop_client_item): New.
8439         (timer::print_row): New function, taken from timer::print.
8440         (timer::print): Print "GCC items" header if we also have client
8441         items.  Move row-printing to timer::print_row.  Print any client
8442         items.
8443         (timer::get_topmost_item_name): New method.
8444         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
8445         (TV_JIT_CLIENT_CODE): New.
8446         * timevar.h (timer::push_client_item): New declaration.
8447         (timer::pop_client_item): New declaration.
8448         (timer::get_topmost_item_name): New method.
8449         (timer::push_internal): New declaration.
8450         (timer::pop_internal): New declaration.
8451         (timer::print_row): New declaration.
8452         (timer::named_items): New declaration.
8453         (timer::m_jit_client_items): New field.
8454         (timer): Add friend class named_items.
8455         (auto_timevar::auto_timevar): Add timer param.
8456         (auto_timevar::~auto_timevar): Use field "m_timer".
8457         (auto_timevar::m_timer): New field.
8458         * toplev.c (initialize_rtl): Add g_timer as param when
8459         constructing auto_timevar instance.
8460         (toplev::toplev): Add "external_timer" param, and use it to
8461         initialize the "g_timer" global if non-NULL.
8462         (toplev::~toplev): If this created "g_timer", delete it.
8463         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
8464         with "external_timer" timer *.
8466 2015-08-03  Alexander Basov <coohpt@gmail.com>
8468         PR middle-end/64744
8469         PR middle-end/48470
8470         PR middle-end/43404
8471         * cfgexpand.c (expand_one_var): Add check if stack is going to
8472         be used in naked function.
8473         * expr.c (expand_expr_addr_expr_1): Remove excess checking
8474         whether expression should not reside in MEM.
8475         * function.c (use_register_for_decl): Do not use registers for
8476         non-register things (volatile, float, BLKMode) in naked functions.
8478 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
8480         PR target/67060
8481         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
8482         Adjust splits to match new pattern.
8484 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8486         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
8487         (VEC_M): Likewise.
8488         (VEC_N): Likewise.
8489         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
8490         point in VSX registers.
8492         * config/rs6000/constraints.md (wb constraint): Document unused
8493         w<x> constraint.
8494         (we constraint): Likewise.
8495         (wo constraint): Likewise.
8496         (wp constraint): New constraint for IEEE 128-bit floating point in
8497         VSX registers.
8498         (wq constraint): Likewise.
8500         * config/rs6000/predicates.md (easy_fp_constant): Add support for
8501         IEEE 128-bit floating point in VSX registers.
8502         (easy_scalar_constant): Likewise.
8504         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
8505         constraints (wp, wq) for IEEE 128-bit floating point in VSX
8506         registers.
8507         (rs6000_init_hard_regno_mode_ok): Likewise.
8509         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
8510         floating point in VSX registers.
8511         (VSX_L): Likewise.
8512         (VSX_M): Likewise.
8513         (VSX_M2): Likewise.
8514         (VSm): Likewise.
8515         (VSs): Likewise.
8516         (VSr): Likewise.
8517         (VSa): Likewise.
8518         (VSv): Likewise.
8519         (vsx_le_permute_<mode>): Add support to properly swap bytes for
8520         IEEE 128-bit floating point in VSX registers on little endian.
8521         (vsx_le_undo_permute_<mode>): Likewise.
8522         (vsx_le_perm_load_<mode>): Likewise.
8523         (vsx_le_perm_store_<mode>): Likewise.
8524         (splitters for IEEE 128-bit fp moves): Likewise.
8526         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
8527         wq constraints.
8529         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
8530         floating point in VSX registers.
8531         (VM2): Likewise.
8533         * doc/md.text (Machine Constraints): Document wp and wq
8534         constraints on PowerPC.
8536 2015-08-03  Jeff Law  <law@redhat.com>
8538         PR middle-end/66314
8539         PR gcov-profile/66899
8540         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
8541         iterate over the jump threading paths when an element in the
8542         jump threading paths array is eliminated.
8544 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
8546         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
8548 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
8550         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
8551         is_use_properly_guarded the variable def_preds.  Free its
8552         contents before returning.
8553         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
8554         (is_use_properly_guarded): Replace local variable def_preds with
8555         a parameter.  Adjust accordingly.  Only update *def_preds if it's
8556         the empty vector.
8558 2015-08-03  Richard Biener  <rguenther@suse.de>
8560         * genmatch.c (simplify::for_subst_vec): New member.
8561         (binary_ok): New helper for for lowering.
8562         (lower_for): Delay substituting operators into result expressions
8563         if we can merge the results eventually again.
8564         (capture_info::walk_result): Adjust for user_id appearing as
8565         result expression operator.
8566         (expr::gen_transform): Likewise.
8567         (dt_simplify::gen_1): Likewise.
8568         (dt_simplify::gen): Pass not substituted operators to tail
8569         functions or initialize local variable with it.
8570         (decision_tree::gen): Adjust function signature.
8571         * match.pd: Fix tests against global code and add default
8572         cases to switch stmts.
8574 2015-08-03  Richard Biener  <rguenther@suse.de>
8576         * genmatch.c (dt_simplify::gen): Create captures array
8577         with an initializer.
8579 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8581         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
8582         the host compiler is affected by placement new aliasing bug.
8583         * configure: Regenerate.
8584         * Makefile.in (ALIASING_FLAGS): New variable.
8585         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
8587 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8589         PR target/66731
8590         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
8591         (negmulsf3_vfp): Likewise.
8592         (muldf3negdf_vfp): Disable for -frounding-math.
8593         (mulsf3negsf_vfp): Likewise.
8594         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
8595         fix MULT cost with -frounding-math.
8597 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8599         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
8600         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
8601         explicit.  Prefer to add the flag whenever possible.
8602         (noce_process_if_block): Try noce_try_store_flag_constants before
8603         noce_try_cmove.
8605 2015-08-03  Richard Biener  <rguenther@suse.de>
8607         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
8608         New hash-map to record equivalent transforms.
8609         (dt_node::analyze): Populate the equivalent transforms hash-map.
8610         (dt_simplify::info): Add reference to hash-map entry.
8611         (dt_simplify::gen): If we have split out a function for the
8612         transform, generate a call to it.
8613         (sinfo_hashmap_traits::hash): New function.
8614         (compare_op): New helper function for ...
8615         (sinfo_hashmap_traits::equal_keys): ... this new function.
8616         (decision_tree::gen): Split out common equivalent transforms
8617         into functions.
8619 2015-08-03  Richard Biener  <rguenther@suse.de>
8621         * gimple-fold.c (fold_gimple_assign): Remove folding of
8622         the comparison in COND_EXPRs.
8624 2015-08-03  Richard Biener  <rguenther@suse.de>
8626         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
8627         on the rhs of assignments first simplify the embedded
8628         GENERIC condition.
8630 2015-08-03  Richard Biener  <rguenther@suse.de>
8632         PR tree-optimization/66917
8633         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
8634         field.
8635         (DR_VECT_AUX): New macro.
8636         (set_dr_misalignment): Adjust.
8637         (dr_misalignment): Likewise.
8638         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8639         Compute whether the base is at least element aligned.
8640         * tree-vect-stmts.c (ensure_base_align): Adjust.
8641         (vectorizable_store): If the base is not element aligned
8642         preserve alignment of the original access if misalignment is unknown.
8643         (vectorizable_load): Likewise.
8645 2015-08-02  Martin Sebor  <msebor@redhat.com>
8647         * c-family/c.opt (-Wframe-address): New warning option.
8648         * doc/invoke.texi (Wframe-address): Document it.
8649         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
8650         Clarify possible effects of calling the functions with non-zero
8651         arguments and mention -Wframe-address.
8652         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
8654 2015-08-01  Michael Collison  <michael.collison@linaro.org
8655             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8657         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
8658         (*arm_umin_cmp): Likewise.
8660 2015-08-01  Caroline Tice  <cmtice@google.com>
8662         PR 66521
8663         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
8664         global variables.
8665         (vtbl_find_mangled_name):  New function.
8666         (vtbl_register_mangled_name):  New function.
8667         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
8668         mangled name in mangled name vectors.
8669         (find_or_create_vtbl_map_node):  Ditto.
8670         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
8671         update recursion_depth on function entry; pass it to every recursive
8672         call; automatically exit if depth > 25 (give up looking at that point).
8673         (verify_bb_vtables):  Initialize recursion_depth and pass it to
8674         var_is_used_for_virtual_call_p.
8675         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
8676         global variable decls.
8677         (vtbl_register_mangled_name): New extern function decl.
8679 2015-08-01  Tom de Vries  <tom@codesourcery.com>
8681         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
8682         function.
8683         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
8684         Declare.
8685         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
8686         operation_no_trapping_overflow.  Allow non-overflow operations.
8687         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
8688         operations.
8690 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8692         PR target/67049
8693         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
8695 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8697         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
8698         Enable for TARGET_32BIT.
8699         (*if_move_neg): Likewise.
8701 2015-07-31  Nick Clifton  <nickc@redhat.com>
8703         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
8704         Returns true for __model__.
8705         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8707 2015-07-31  Alan Modra  <amodra@gmail.com>
8709         PR target/66870
8710         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
8711         (rs6000_emit_prologue): Set it.
8712         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
8714 2015-07-31  Richard Biener  <rguenther@suse.de>
8716         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
8717         -> X == (C1 ^ C2) which is already implemented in match.pd.
8718         Remove redundant dispatching to fold_relational_const.
8719         Move unordered self and NaN compares ...
8720         * match.pd: ... as patterns here.  Remove some stray captures
8721         and add a comment.
8723 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
8725         * config/i386/i386.c
8726         (bdesc_special_args): Convert mask type from signed to unsigned for
8727         masked builtins.
8728         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
8729         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
8730         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
8731         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
8732         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
8733         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
8734         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
8735         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
8736         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
8737         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
8738         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
8739         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
8740         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
8741         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
8742         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
8743         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
8744         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
8745         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
8746         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
8747         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
8748         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
8749         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
8750         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
8751         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
8752         * config/i386/i386-builtin-types.def
8753         (V16QI_FTYPE_V16SI): Remove.
8754         (V8DF_FTYPE_V8SI): Ditto.
8755         (V8HI_FTYPE_V8DI): Ditto.
8756         (V8SI_FTYPE_V8DI): Ditto.
8757         (V8SF_FTYPE_V8DF): Ditto.
8758         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
8759         (V16HI_FTYPE_V16SI): Ditto.
8760         (V16SF_FTYPE_V16HI): Ditto.
8761         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8762         (V16SF_FTYPE_V16SI): Ditto.
8763         (V4DI_FTYPE_V4DI): Ditto.
8764         (V16SI_FTYPE_V16SF): Ditto.
8765         (V16SF_FTYPE_FLOAT): Ditto.
8766         (V8DF_FTYPE_DOUBLE): Ditto.
8767         (V8DI_FTYPE_INT64): Ditto.
8768         (V8DI_FTYPE_V4DI): Ditto.
8769         (V16QI_FTYPE_V8DI): Ditto.
8770         (UINT_FTYPE_V4SF): Ditto.
8771         (UINT64_FTYPE_V4SF): Ditto.
8772         (UINT_FTYPE_V2DF): Ditto.
8773         (UINT64_FTYPE_V2DF): Ditto.
8774         (V16SI_FTYPE_V16SI): Ditto.
8775         (V8DI_FTYPE_V8DI): Ditto.
8776         (V16SI_FTYPE_PV4SI): Ditto.
8777         (V16SF_FTYPE_PV4SF): Ditto.
8778         (V8DI_FTYPE_PV2DI): Ditto.
8779         (V8DF_FTYPE_PV2DF): Ditto.
8780         (V4DI_FTYPE_PV2DI): Ditto.
8781         (V4DF_FTYPE_PV2DF): Ditto.
8782         (V16SI_FTYPE_PV2SI): Ditto.
8783         (V16SF_FTYPE_PV2SF): Ditto.
8784         (V8DI_FTYPE_PV4DI): Ditto.
8785         (V8DF_FTYPE_PV4DF): Ditto.
8786         (V8SF_FTYPE_FLOAT): Ditto.
8787         (V4SF_FTYPE_FLOAT): Ditto.
8788         (V4DF_FTYPE_DOUBLE): Ditto.
8789         (V8SF_FTYPE_PV4SF): Ditto.
8790         (V8SI_FTYPE_PV4SI): Ditto.
8791         (V4SI_FTYPE_PV2SI): Ditto.
8792         (V8SF_FTYPE_PV2SF): Ditto.
8793         (V8SI_FTYPE_PV2SI): Ditto.
8794         (V16SF_FTYPE_PV8SF): Ditto.
8795         (V16SI_FTYPE_PV8SI): Ditto.
8796         (V8DI_FTYPE_V8SF): Ditto.
8797         (V4DI_FTYPE_V4SF): Ditto.
8798         (V2DI_FTYPE_V4SF): Ditto.
8799         (V64QI_FTYPE_QI): Ditto.
8800         (V32HI_FTYPE_HI): Ditto.
8801         (V8UHI_FTYPE_V8UHI): Ditto.
8802         (V16UHI_FTYPE_V16UHI): Ditto.
8803         (V32UHI_FTYPE_V32UHI): Ditto.
8804         (V2UDI_FTYPE_V2UDI): Ditto.
8805         (V4UDI_FTYPE_V4UDI): Ditto.
8806         (V8UDI_FTYPE_V8UDI): Ditto.
8807         (V4USI_FTYPE_V4USI): Ditto.
8808         (V8USI_FTYPE_V8USI): Ditto.
8809         (V16USI_FTYPE_V16USI): Ditto.
8810         (V2DF_FTYPE_V2DF_UINT64): Ditto.
8811         (V2DI_FTYPE_V2DF_V2DF): Ditto.
8812         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
8813         (V8DF_FTYPE_V8DF_V8DI): Ditto.
8814         (V4SF_FTYPE_V4SF_UINT64): Ditto.
8815         (V4SI_FTYPE_V4SF_V4SF): Ditto.
8816         (V16SF_FTYPE_V16SF_V16SI): Ditto.
8817         (V64QI_FTYPE_V32HI_V32HI): Ditto.
8818         (V32HI_FTYPE_V16SI_V16SI): Ditto.
8819         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8820         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
8821         (V32HI_FTYPE_V64QI_V64QI): Ditto.
8822         (V32HI_FTYPE_V32HI_V32HI): Ditto.
8823         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
8824         (V16SI_FTYPE_V16SI_V4SI): Ditto.
8825         (V16SI_FTYPE_V16SI_V16SI): Ditto.
8826         (V16SI_FTYPE_V32HI_V32HI): Ditto.
8827         (V16SI_FTYPE_V16SI_SI): Ditto.
8828         (V8DI_FTYPE_V8DI_V8DI): Ditto.
8829         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
8830         (V8DI_FTYPE_V16SI_V16SI): Ditto.
8831         (V8DI_FTYPE_V8DI_V2DI): Ditto.
8832         (QI_FTYPE_QI): Ditto.
8833         (SI_FTYPE_SI): Ditto.
8834         (DI_FTYPE_DI): Ditto.
8835         (QI_FTYPE_QI_QI): Ditto.
8836         (QI_FTYPE_QI_INT): Ditto.
8837         (HI_FTYPE_HI_INT): Ditto.
8838         (SI_FTYPE_SI_INT): Ditto.
8839         (DI_FTYPE_DI_INT): Ditto.
8840         (HI_FTYPE_V16QI_V16QI): Ditto.
8841         (SI_FTYPE_V32QI_V32QI): Ditto.
8842         (DI_FTYPE_V64QI_V64QI): Ditto.
8843         (QI_FTYPE_V8HI_V8HI): Ditto.
8844         (HI_FTYPE_V16HI_V16HI): Ditto.
8845         (SI_FTYPE_V32HI_V32HI): Ditto.
8846         (QI_FTYPE_V4SI_V4SI): Ditto.
8847         (QI_FTYPE_V8SI_V8SI): Ditto.
8848         (QI_FTYPE_V2DI_V2DI): Ditto.
8849         (QI_FTYPE_V4DI_V4DI): Ditto.
8850         (QI_FTYPE_V8DI_V8DI): Ditto.
8851         (HI_FTYPE_V16SI_V16SI): Ditto.
8852         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
8853         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
8854         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
8855         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8856         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8857         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
8858         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
8859         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
8860         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8861         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
8862         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
8863         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
8864         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
8865         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
8866         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8867         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8868         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8869         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8870         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8871         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8872         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8873         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8874         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8875         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8876         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8877         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8878         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8879         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8880         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8881         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8882         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8883         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
8884         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
8885         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
8886         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8887         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8888         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8889         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
8890         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
8891         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
8892         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
8893         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
8894         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
8895         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
8896         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
8897         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
8898         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
8899         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8900         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8901         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
8902         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8903         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8904         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
8905         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
8906         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
8907         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
8908         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8909         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8910         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8911         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
8912         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
8913         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8914         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8915         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8916         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
8917         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8918         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8919         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8920         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8921         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8922         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8923         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8924         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8925         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8926         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
8927         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8928         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
8929         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
8930         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
8931         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8932         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8933         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
8934         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
8935         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
8936         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8937         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
8938         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
8939         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8940         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8941         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8942         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
8943         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8944         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
8945         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
8946         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8947         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8948         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8949         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8950         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
8951         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
8952         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
8953         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8954         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8955         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8956         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8957         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
8958         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
8959         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
8960         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
8961         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8962         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8963         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8964         (HI_FTYPE_HI): Ditto.
8965         (HI_FTYPE_V16QI): Ditto.
8966         (SI_FTYPE_V32QI): Ditto.
8967         (DI_FTYPE_V64QI): Ditto.
8968         (QI_FTYPE_V8HI): Ditto.
8969         (HI_FTYPE_V16HI): Ditto.
8970         (SI_FTYPE_V32HI): Ditto.
8971         (QI_FTYPE_V4SI): Ditto.
8972         (QI_FTYPE_V8SI): Ditto.
8973         (HI_FTYPE_V16SI): Ditto.
8974         (QI_FTYPE_V2DI): Ditto.
8975         (QI_FTYPE_V4DI): Ditto.
8976         (QI_FTYPE_V8DI): Ditto.
8977         (V16QI_FTYPE_HI): Ditto.
8978         (V32QI_FTYPE_SI): Ditto.
8979         (V64QI_FTYPE_DI): Ditto.
8980         (V8HI_FTYPE_QI): Ditto.
8981         (V16HI_FTYPE_HI): Ditto.
8982         (V32HI_FTYPE_SI): Ditto.
8983         (V4SI_FTYPE_QI): Ditto.
8984         (V4SI_FTYPE_HI): Ditto.
8985         (V8SI_FTYPE_QI): Ditto.
8986         (V8SI_FTYPE_HI): Ditto.
8987         (V2DI_FTYPE_QI): Ditto.
8988         (V4DI_FTYPE_QI): Ditto.
8989         (HI_FTYPE_HI_HI): Ditto.
8990         (SI_FTYPE_SI_SI): Ditto.
8991         (DI_FTYPE_DI_DI): Ditto.
8992         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8993         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8994         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8995         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8996         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8997         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8998         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8999         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9000         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9001         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9002         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9003         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9004         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9005         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9006         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9007         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9008         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9009         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9010         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9011         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9012         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9013         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9014         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9015         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9016         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9017         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9018         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9019         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9020         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9021         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9022         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9023         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9024         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9025         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9026         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9027         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9028         (V16SI_FTYPE_HI): Ditto.
9029         (V8DI_FTYPE_QI): Ditto.
9030         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9031         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9032         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9033         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9034         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9035         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9036         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9037         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9038         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9039         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9040         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9041         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9042         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9043         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9044         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9045         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9046         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9047         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9048         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9049         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9050         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9051         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9052         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9053         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9054         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9055         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9056         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9057         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9058         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9059         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9060         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9061         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9062         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9063         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9064         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9065         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9066         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9067         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9068         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9069         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9070         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9071         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9072         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9073         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9074         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9075         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9076         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9077         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9078         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9079         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9080         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9081         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9082         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9083         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9084         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9085         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9086         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9087         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9088         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9089         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9090         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9091         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9092         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9093         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9094         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9095         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9096         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9097         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9098         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9099         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9100         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9101         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9102         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9103         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9104         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9105         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9106         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9107         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9108         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9109         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9110         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9111         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9112         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9113         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9114         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9115         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9116         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9117         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9118         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9119         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9120         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9121         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9122         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9123         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9124         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9125         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9126         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9127         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9128         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9129         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9130         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9131         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9132         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9133         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9134         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9135         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9136         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9137         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9138         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9139         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9140         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9141         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9142         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9143         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9144         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9145         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9146         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9147         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9148         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9149         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9150         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9151         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9152         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9153         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9154         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9155         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9156         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9157         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9158         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9159         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9160         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9161         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9162         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9163         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9164         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9165         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9166         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9167         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9168         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9169         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9170         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9171         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9172         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9173         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9174         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9175         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9176         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9177         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9178         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9179         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9180         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9181         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9182         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9183         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9184         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9185         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9186         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9187         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9188         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9189         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9190         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9191         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9192         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9193         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9194         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9195         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9196         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9197         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9198         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9199         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9200         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9201         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9202         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9203         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9204         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9205         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9206         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9207         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9208         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9209         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9210         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9211         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9212         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9213         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9214         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9215         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9216         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9217         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9218         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9219         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9220         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9221         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9222         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9223         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9224         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9225         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9226         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9227         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9228         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9229         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9230         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9231         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9232         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9233         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9234         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9235         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9236         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9237         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9238         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9239         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9240         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9241         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9242         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9243         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9244         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9245         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9246         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9247         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9248         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9249         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9250         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9251         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9252         (QI_FTYPE_V8DF_INT_QI): Ditto.
9253         (QI_FTYPE_V4DF_INT_QI): Ditto.
9254         (QI_FTYPE_V2DF_INT_QI): Ditto.
9255         (HI_FTYPE_V16SF_INT_HI): Ditto.
9256         (QI_FTYPE_V8SF_INT_QI): Ditto.
9257         (QI_FTYPE_V4SF_INT_QI): Ditto.
9258         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9260 2015-07-31  Richard Biener  <rguenther@suse.de>
9262         * gimple-fold.c (fold_gimple_assign): Remove folding of
9263         GIMPLE_BINARY_RHS.
9265 2015-07-31  Tom de Vries  <tom@codesourcery.com>
9267         PR tree-optimization/66846
9268         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9269         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9270         (expand_omp_target) [ENABLE_CHECKING]: Same.
9271         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9272         cfun if !LOOPS_NEED_FIXUP.
9273         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
9274         that omp_for already has its own loop struct.
9275         * tree-parloops.c (create_phi_for_local_result)
9276         (create_call_for_reduction): Handle simple latch bb.
9277         (create_parallel_loop): Add simple latch bb to preserve
9278         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
9279         (gen_parallel_loop): Remove call to cancel_loop_tree.
9280         (parallelize_loops): Skip loops that are inner loops of parallelized
9281         loops.
9282         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9283         verify_loop_structure.
9285 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
9287         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9288         * config/v850/v850.md (RV_REGNUM): New constants.
9289         * config/v850/v850.c (v850_libcall_value): New functions.
9290         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9291         (TARGET_LIBCALL_VALUE): Define.
9293 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
9295         * rtl.h (lowpart_subreg): Move in file.
9296         * loop-iv.c (lowpart_subreg): Move to...
9297         * simplify-rtx.c (lowpart_subreg): ...here.
9298           (simplify_binary_operation_1): Use lowpart_subreg instead of
9299           simplify_gen_subreg.
9300         * expr.c (expand_expr_real_2): Ditto.
9301         * emit-rtl.c (gen_lowpart_common): Ditto.
9302         * combine.c (gen_lowpart_for_combine): Ditto.
9303         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9304           expand_debug_source_expr): Ditto.
9306 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
9308         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9309         (expand_builtin_atomic_clear): Remove support for atomic_clear
9310         pattern.
9312 2015-07-30  Richard Biener  <rguenther@suse.de>
9314         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9315         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9316         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
9317         redundant operand canonicalization.
9319 2015-07-30  David Sherwood  <david.sherwood@arm.com>
9321         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9322         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9323         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9324         * config/arm/arm.c (neon_valid_immediate): Likewise.
9325         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9326         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9327         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9328         (expand_vec_perm_vpshufb2_vpermq): Likewise.
9329         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9330         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9331         * config/i386/sse.md
9332         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9333         (*ssse3_palignr<mode>_perm): Likewise.
9334         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9335         * config/spu/spu.c (arith_immediate_p): Likewise.
9336         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9337         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9339 2015-07-30  Richard Biener  <rguenther@suse.de>
9341         * genmatch.c (decision_tree::gen_gimple): Merge with ...
9342         (decision_tree::gen_generic): ... this into ...
9343         (decision_tree::gen): ... this.
9344         (main): Adjust callers.
9346 2015-07-30  Richard Biener  <rguenther@suse.de>
9348         * genmatch.c (verbose): New global.
9349         (warning_at): Add overload with source_location.
9350         (capture_info::capture_info): Add bool whether generating gimple
9351         or generic.  Add gimple member.
9352         (capture_info::cinfo): Add capture member.
9353         (capture_info::walk_match): Record capture.  Warn on
9354         non-captured leafs.
9355         (capture_info::walk_c_expr): Add more fragments captures cannot
9356         escape through.  Warn on escaped captures.
9357         (dt_simplify::gen_1): Warn on operands we force to have no
9358         side-effects.
9359         (main): Initialize verbose.
9360         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9362 2015-07-30  Richard Biener  <rguenther@suse.de>
9364         PR middle-end/67053
9365         * match.pd: Allow both operands to independently have conversion
9366         when simplifying compares of addresses.
9368 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
9370         PR target/66217
9371         PR target/67045
9372         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9373         around those cases that need one.
9375 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
9377         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9379 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
9381         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9382         New.  Copied from config/i386/gnu-user.h.
9383         (ASM_COMMENT_START): Likewise.
9384         (DBX_REGISTER_NUMBER): Likewise.
9386 2015-07-29  Richard Biener  <rguenther@suse.de>
9388         * gimple-fold.c (fold_gimple_cond): Remove.
9389         (fold_stmt_1): Do not call it.
9391 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
9393         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9394         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9396         * config/aarch64/aarch64-modes.def: Add HFmode.
9398         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9399         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9401         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9402         aarch64_promoted_type): New.
9404         (aarch64_float_const_representable_p): Disable HFmode.
9405         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9406         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9407         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9409         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9410         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9412         * config/aarch64/iterators.md (GPF_F16): New.
9414 2015-07-29  Richard Biener  <rguenther@suse.de>
9416         * match.pd: Merge address comparison patterns and make them
9417         handle some more cases.
9419 2015-07-29  Richard Biener  <rguenther@suse.de>
9421         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9422         (parser::parse_capture): Add bool argument on whether to reject
9423         unknown captures.
9424         (parser::parse_expr): Adjust.
9425         (parser::parse_op): Likewise.
9426         (parser::parse_pattern): Likewise.
9428 2015-07-29  Richard Biener  <rguenther@suse.de>
9430         * gimple-fold.c (has_use_on_stmt): New function.
9431         (replace_stmt_with_simplification): Use it to allow
9432         abnormals originally referenced in the stmt.
9433         (fold_stmt_1): Canonicalize operand order.
9435 2015-07-28  David Sherwood  <david.sherwood@arm.com>
9437         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
9438         GET_MODE_INNER unconditionally.
9439         * config/spu/spu.c (arith_immediate_p): Likewise.
9440         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
9441         * expmed.c (synth_mult): Remove check for VOIDmode result from
9442         GET_MODE_INNER.
9443         (expand_mult_const): Likewise.
9444         * fold-const.c (fold_binary_loc): Replace call to element_precision
9445         with call to GET_MODE_PRECISION.
9446         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
9447         m->name.
9448         (emit_mode_inner): Likewise.
9449         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
9450         result check.
9451         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
9452         (GET_MODE_UNIT_PRECISION): Likewise.
9453         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
9454         * simplify-rtx.c (simplify_immed_subreg): Likewise.
9455         * stor-layout.c (bitwise_type_for_mode): Update assert.
9456         (element_precision): Remove.
9458 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9460         * target-insns.def (reload_load_address): New targetm instruction
9461         pattern.
9462         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
9464 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9466         * target-insns.def (atomic_test_and_set): New targetm instruction
9467         pattern.
9468         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
9469         HAVE_*/gen_* interface.
9471 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9473         * target-insns.def (can_extend, ptr_extend): New targetm instruction
9474         patterns.
9475         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
9476         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9477         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9478         * rtlanal.c (nonzero_bits1): Likewise.
9479         (num_sign_bit_copies1): Likewise.
9481 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9483         * target-insns.def (eh_return): New targetm instruction pattern.
9484         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
9485         interface.
9486         * function.c (thread_prologue_and_epilogue_insns): Remove
9487         preprocessor condition.
9489 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9491         * target-insns.def (indirect_jump): New targetm instruction pattern.
9492         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
9493         interface.
9495 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
9497         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
9498         instead of nonimmediate_operand.  Remove C condiition.
9500 2015-07-28  Richard Biener  <rguenther@suse.de>
9502         * match.pd: Add more simplification of address comparisons.
9504 2015-07-28  Richard Biener  <rguenther@suse.de>
9506         * match.pd: Re-order two cases in comparison with max/min
9507         value simplification to make it apply for bools.
9509 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9511         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
9512         Handle simple SIGN_EXTEND or ZERO_EXTEND.
9513         (aarch64_rtx_costs): Properly strip extend or extract before
9514         passing down to rtx costs again.
9516 2015-07-28  Nick Clifton  <nickc@redhat.com>
9518         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
9519         Optimizes the case where -mes0 is active and a constant symbolic
9520         address is used.
9521         * config/rl78/rl78-protos.h: Prototype the new function.
9522         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
9524 2015-07-28  Tom de Vries  <tom@codesourcery.com>
9526         * tree-parloops.c (reduc_stmt_res): New function.
9527         (initialize_reductions, add_field_for_reduction)
9528         (create_phi_for_local_result, create_loads_for_reductions)
9529         (create_stores_for_reduction, build_new_reduction): Handle case that
9530         reduc_stmt is a phi.
9531         (gather_scalar_reductions): Allow double_reduc reductions.
9533 2015-07-28  Richard Biener  <rguenther@suse.de>
9535         * fold-const.c (fold_comparison): Remove equality folding
9536         of decl addresses ...
9537         * match.pd: ... here and merge with existing pattern.
9539 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9541         PR tree-optimization/66828
9542         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
9543         from int64_t to uint64_t.
9545 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9547         * opts-common.c (read_cmdline_option): List DriverOnly enum values
9548         as valid only in the error message of the driver, not in the
9549         messages of the language compilers.
9551 2015-07-27  Tom de Vries  <tom@codesourcery.com>
9553         * tree-parloops.c (gather_scalar_reductions): Simplify function
9554         structure.
9556 2015-07-27  Marek Polacek  <polacek@redhat.com>
9558         * ipa-devirt.c (types_same_for_odr): Fix typo.
9560 2015-07-27  Jason Merrill  <jason@redhat.com>
9562         PR debug/66468
9563         * dwarf2out.c (gen_inlined_subroutine_die): Check
9564         cgraph_function_possibly_inlined_p.
9566 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
9568         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
9569         Place integer variant first.
9570         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9572 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
9574         PR/63870
9575         * config/arm/arm-builtins.c (enum arm_builtins):
9576         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
9577         (ARM_BUILTIN_NEON_BASE): Rename macro to....
9578         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
9579         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
9580         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
9582 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
9584         PR/63870
9585         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
9586         Add qualifier_lane_index.
9587         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
9588         (arm_getlane_qualifiers): Use qualifier_lane_index.
9589         (arm_lanemac_qualifiers): Rename to...
9590         (arm_mac_n_qualifiers): ...this.
9591         (LANEMAC_QUALIFIERS): Rename to...
9592         (MAC_N_QUALIFIERS): ...this.
9593         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
9594         (arm_setlane_qualifiers): Use qualifier_lane_index.
9595         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
9596         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
9597         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
9598         (arm_expand_neon_builtin): Handle qualifier_lane_index.
9600         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
9601         * config/arm/arm.c (bounds_check): Likewise, improve error message.
9602         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
9603         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
9604         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
9605         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
9606         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
9607         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
9608         qualifiers to TERNOP_IMM.
9609         (vdup_lane): Change qualifiers to GETLANE.
9610         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
9611         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
9612         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
9613         vqdmlsl_n): Change qualifiers to MAC_N.
9615         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
9616         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
9617         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
9618         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
9619         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
9620         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
9621         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
9622         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
9623         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
9624         Remove call to neon_lane_bounds.
9626 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
9628         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9629         Place integer variant first.
9631 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
9633         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
9634         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
9635         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
9636         for armv6kz targets.
9637         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
9638         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
9639         (FL_FOR_ARCH6ZK): Remove.
9640         (FL_FOR_ARCH6KZ): New.
9641         (arm_arch6zk): New declaration.
9642         * config/arm/arm-tables.opt: Regenerate.
9643         * config/arm/arm.c (arm_arch6kz): New.
9644         (arm_option_override): Set arm_arch6kz.
9645         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
9646         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
9647         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
9649 2015-07-27  Marek Polacek  <polacek@redhat.com>
9651         PR c++/66555
9652         PR c/54979
9653         * doc/invoke.texi: Document -Wtautological-compare.
9655 2015-07-27  Richard Biener  <rguenther@suse.de>
9657         * genmatch.c (decision_tree::gen_gimple): Split out large
9658         subtrees into separate functions.
9659         (decision_tree::gen_generic): Likewise.
9661 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
9663         * config/alpha/alpha.c: Use SUBREG_P predicate.
9664         * config/alpha/predicates.md: Ditto.
9666 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9668         * config.host (s390*-*-*): Include driver-native.c only when
9669         building with s390* as host *and* target.
9671 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
9673         PR target/66930
9674         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
9675         T bit register modified_between_p check.
9677 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9679         * config/i386/i386.c: Use SUBREG_P predicate.
9680         * config/i386/i386.md: Ditto.
9681         * config/i386/sse.md: Ditto.
9682         * config/i386/predicates.md: Ditto.
9684 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9686         PR target/67004
9687         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
9688         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
9690 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
9692         * Makefile.in: Remove use of TREEBROWSER.
9693         * config.in: Regenerated.
9694         * configure: Regenerated.
9695         * configure.ac: Remove definition of TREEBROWSER.
9696         * tree-browser.c: Removed.
9697         * tree-browser.def: Removed.
9699 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
9701         * graphite-scop-detection.c: Include gimple-pretty-print.h.
9702         (stmt_simple_for_scop_p): Print when a stmt is not handled in
9703         Graphite.
9704         (scopdet_basic_block_info): Print when a loop or bb cannot be
9705         represented in Graphite.
9707 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9709         PR target/66648
9710         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
9711         execution guard when min_size is less than size_needed.
9713 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
9715         * doc/install.texi: Document supported versions of ISL.
9717 2015-07-25  Jeff Law  <law@redhat.com>
9719         Revert:
9720         PR lto/66752
9721         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9722         unable to find X NE 0 in the tables, return X as the simplified
9723         condition.
9724         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9725         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
9726         to VISISTED_BBS.  */
9727         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9728         after removing the control flow statement and unnecessary edges.
9730 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
9732         Revert:
9733         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
9735         PR rtl-optimization/64164
9736         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9737         * tree-ssa-copyrename.c: Removed.
9738         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
9739         -ftree-coalesce-vars.
9740         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9741         * common.opt (ftree-copyrename): Ignore.
9742         (ftree-coalesce-inlined-vars): Likewise.
9743         * doc/invoke.texi: Remove the ignored options above.
9744         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9745         * tree-ssa-coalesce.h: ... here.
9746         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9747         headers required by it.
9748         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9749         across variables when flag_tree_coalesce_vars.  Check register
9750         use and promoted modes to allow coalescing.  Moved to
9751         tree-ssa-coalesce.c.
9752         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9753         with its member functions to tree-ssa-coalesce.c.
9754         (var_map_base_init): Likewise.  Renamed to
9755         compute_samebase_partition_bases.
9756         (partition_view_normal): Drop want_bases parameter.
9757         (partition_view_bitmap): Likewise.
9758         * tree-ssa-live.h: Adjust declarations.
9759         * tree-ssa-coalesce.c: Include explow.h.
9760         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9761         default defs at the entry point.
9762         (dump_part_var_map): New.
9763         (compute_optimized_partition_bases): New, called by...
9764         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9765         of compute_samebase_partition_bases.  Adjust.
9766         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9767         * cfgexpand.c (leader_merge): New.
9768         (get_rtl_for_parm_ssa_default_def): New.
9769         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9770         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9771         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
9772         redundant MEM attr setting.
9773         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
9774         from...
9775         (expand_one_stack_var): ... this.  New wrapper to check and
9776         skip already expanded SSA partitions.
9777         (record_alignment_for_reg_var): New, factored out of...
9778         (expand_one_var): ... this.
9779         (expand_one_ssa_partition): New.
9780         (adjust_one_expanded_partition_var): New.
9781         (expand_one_register_var): Check and skip already expanded SSA
9782         partitions.
9783         (expand_used_vars): Don't create DECLs for anonymous SSA
9784         names.  Expand all SSA partitions, then adjust all SSA names.
9785         (pass::execute): Replace the loops that set
9786         SA.partition_to_pseudo from partition leaders and cleared
9787         DECL_RTL for multi-location variables, and that which used to
9788         rename vars and set attrs, with one that clears DECL_RTL and
9789         checks that PARMs and RESULTs default_defs match DECL_RTL.
9790         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9791         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9792         * explow.c (promote_ssa_mode): New.
9793         * explow.h (promote_ssa_mode): Declare.
9794         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9795         * function.c: Include cfgexpand.h.
9796         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9797         (use_register_for_parm_decl): Wrapper for the above to
9798         special-case the result_ptr.
9799         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9800         (split_complex_args): Take assign_parm_data_all argument.
9801         Pass it to rtl_for_parm.  Set up rtl and context for split
9802         args.
9803         (assign_parms_augmented_arg_list): Adjust.
9804         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9805         multiple locations.  Recognize split complex args.
9806         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9807         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
9808         (assign_parm_setup_block): Prefer SSA-assigned location.
9809         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
9810         if stack_parm is NULL.
9811         (assign_parm_setup_stack): Prefer SSA-assigned location.
9812         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
9813         rtl before testing for pointer bounds.  Special-case result_ptr.
9814         (expand_function_start): Maybe reset DECL_RTL of result.
9815         Prefer SSA-assigned location for result and static chain.
9816         Factor out DECL_RESULT and SET_DECL_RTL.
9817         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9818         anonymous SSA names.  Use promote_ssa_mode.
9819         (get_temp_reg): Likewise.
9820         (remove_ssa_form): Adjust.
9821         * stor-layout.c (layout_decl): Don't set mem attributes of
9822         non-MEMs.
9823         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9824         and get its reg_usage for reg invalidation.
9825         (compute_bb_dataflow): Pass it insn.
9826         (emit_notes_in_bb): Likewise.
9828 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
9830         * config/i386/i386.c (ix86_va_start): Remove
9831         unneeded !TARGET_64BIT check.
9832         (ix86_gimplify_va_arg): Ditto.
9834 2015-07-24  Tom de Vries  <tom@codesourcery.com>
9836         * graphite-sese-to-poly.c (build_poly_scop): Always call
9837         rewrite_commutative_reductions_out_of_ssa.
9839 2015-07-24  Tom de Vries  <tom@codesourcery.com>
9841         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
9842         flag_associative_math to FLOAT_TYPE_P.  Honour
9843         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
9845 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9847         PR c++/64079
9848         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
9849         and "%qD" in warning_at instead of "%q+D" in warning.
9851 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
9853         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
9854         (ix86_function_abi): Cleanup.
9856 2015-07-24  Michael Darling  <darlingm@gmail.com>
9858         PR other/66259
9859         * acinclude.m4: Reflects renaming of configure.in to configure.ac
9860         * configure: Likewise
9861         * configure.ac: Likewise
9862         * doc/install.texi: Likewise
9863         * doc/tm.texi: Likewise
9864         * doc/tm.texi.in: Likewise
9866 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9868         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
9869         manually swapping values.
9870         * cse.c (fold_rtx): Likewise.
9871         * lra-eliminations.c (form_sum): Likewise.
9873 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
9875         PR target/64003
9876         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
9877         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
9878         (*jcc_1, *jcc_2, jump, simple_return_internal)
9879         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
9880         Set length_nobnd attribute instead of length attribute.
9881         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
9882         (length_nobnd): Remove attribute.
9883         (length): Remove length_nobnd processing.
9885 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
9887         * gimplify.c (omp_default_clause): New function.  Reorganize flow
9888         for clarity. Broken out of ...
9889         (omp_notice_variable): ... here.
9891 2015-07-24  Gary Funck  <gary@intrepid.com>
9893         PR middle-end/66984
9894         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
9895         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
9897 2015-07-24  Tom de Vries  <tom@codesourcery.com>
9899         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
9900         exit-first loop transform.
9902 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
9904         PR 66714
9905         * tree-cfg.c (struct replace_decls_d): New struct.
9906         (replace_block_vars_by_duplicates_1): New function.
9907         (replace_block_vars_by_duplicates): Use it to replace the decls
9908         in the value exprs by duplicates.
9910 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9912         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
9913         -shared, -symbolic, -rdynamic.
9915 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9917         PR target/65711
9918         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
9919         -dynamic-linker within %{!static %{!shared, and -rdynamic within
9920         %{!static.
9922 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9924         PR ipa/66566
9925         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
9926         edge summary is available.
9928 2015-07-24  Richard Biener  <rguenther@suse.de>
9930         * genmatch.c (struct dt_node): Add statistic fields.
9931         (dt_node::analyze): New method.
9932         (decision_tree::gen_gimple): Call analyze on the root node
9933         and print statistics to stderr.
9934         (decision_tree::gen_generic): Likewise.
9936 2015-07-24  Richard Biener  <rguenther@suse.de>
9938         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
9939         against the highest or lowest possible integer ...
9940         * match.pd: ... as patterns here.
9942 2015-07-24  Richard Biener  <rguenther@suse.de>
9944         * genmatch.c (struct capture_info): Add same_as field.
9945         (capture_info::capture_info): Initialize same_as.
9946         (capture_info::walk_match): Compute same_as.
9947         (capture_info::walk_result): Compute stuff for the leader.
9948         (capture_info::walk_c_expr): Likewise.
9949         (dt_simplify::gen_1): Only look at leaders when deciding
9950         to force no side-effects or emit side-effects of omitted operands.
9952 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9954         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
9955         reg note to the GPR -> FPR save instructions.
9957 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9959         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
9960         cheaper.
9961         (s390_expand_insv): Don't generate risbg pattern for constant zero
9962         sources.
9963         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
9964         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
9965         splitters.
9967 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9969         * config/s390/s390.c (s390_reorg): Clean up handling of processors
9970         with
9971         -mtune=
9972         (s390_issue_rate): Likewise.
9973         (s390_sched_reorder): Likewise.
9974         (s390_sched_variable_issue): Likewise.
9975         (s390_loop_unroll_adjust): Likewise.
9976         (s390_option_override):  Likewise.
9978 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9980         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
9981         processor capabilities with -march=native.
9982         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
9983         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
9984         (S390_TARGET_BITS_STRING): Macro to simplify specs.
9986 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9988         * config/s390/s390.c (s390_issue_rate): Handle
9989         PROCESSOR_2094_Z9_EC.
9990         (s390_option_override): Likewise.
9991         (s390_adjust_priority): Likewise.
9993 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9995         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
9996         when cross compiling.
9998 2015-07-24  Richard Biener  <rguenther@suse.de>
10000         * fold-const.c (maybe_canonicalize_comparison_1): Move
10001         A code CST canonicalization ...
10002         * match.pd: ... to a pattern here.
10004 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
10006         Revert:
10007         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10008         PR target/63521
10009         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10010         (HONOR_REG_ALLOC_ORDER): Define.
10012 2015-07-24  Richard Biener  <rguenther@suse.de>
10014         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10015         * fold-const.c (fold_comparison): Move parameter does not
10016         alias &local simplification ...
10017         * match.pd: ... as a pattern here.
10019 2015-07-24  Richard Biener  <rguenther@suse.de>
10021         * gimple-fold.c (replace_stmt_with_simplification): Special-case
10022         valueizing call operands.
10023         * gimple-match-head.c (maybe_push_res_to_seq): Take
10024         number of call arguments from ops array.
10025         (do_valueize): New function.
10026         (gimple_simplify): Return true if valueization changed
10027         any operand even if the result didn't simplify further.
10029 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10031         PR middle-end/25530
10032         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10034 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10036         PR middle-end/25529
10037         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10039 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10041         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10042         instruction.
10044 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10046         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10047         clean up.
10049 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
10051         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10052         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
10053         targets here.
10054         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10055         ms_va_list_type_node initialization.
10057 2015-07-23  Jeff Law  <law@redhat.com>
10059         PR lto/66752
10060         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10061         unable to find X NE 0 in the tables, return X as the simplified
10062         condition.
10063         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10064         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10065         to VISISTED_BBS.  */
10066         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10067         after removing the control flow statement and unnecessary edges.
10069 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10071         * tree-pass.h (get_current_pass_name): Removed.
10073 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10075         PR rtl-optimization/64164
10076         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10077         * tree-ssa-copyrename.c: Removed.
10078         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10079         -ftree-coalesce-vars.
10080         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10081         * common.opt (ftree-copyrename): Ignore.
10082         (ftree-coalesce-inlined-vars): Likewise.
10083         * doc/invoke.texi: Remove the ignored options above.
10084         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10085         * tree-ssa-coalesce.h: ... here.
10086         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10087         headers required by it.
10088         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10089         across variables when flag_tree_coalesce_vars.  Check register
10090         use and promoted modes to allow coalescing.  Moved to
10091         tree-ssa-coalesce.c.
10092         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10093         with its member functions to tree-ssa-coalesce.c.
10094         (var_map_base_init): Likewise.  Renamed to
10095         compute_samebase_partition_bases.
10096         (partition_view_normal): Drop want_bases parameter.
10097         (partition_view_bitmap): Likewise.
10098         * tree-ssa-live.h: Adjust declarations.
10099         * tree-ssa-coalesce.c: Include explow.h.
10100         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10101         default defs at the entry point.
10102         (dump_part_var_map): New.
10103         (compute_optimized_partition_bases): New, called by...
10104         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10105         of compute_samebase_partition_bases.  Adjust.
10106         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10107         * cfgexpand.c (leader_merge): New.
10108         (get_rtl_for_parm_ssa_default_def): New.
10109         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10110         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10111         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10112         redundant MEM attr setting.
10113         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10114         from...
10115         (expand_one_stack_var): ... this.  New wrapper to check and
10116         skip already expanded SSA partitions.
10117         (record_alignment_for_reg_var): New, factored out of...
10118         (expand_one_var): ... this.
10119         (expand_one_ssa_partition): New.
10120         (adjust_one_expanded_partition_var): New.
10121         (expand_one_register_var): Check and skip already expanded SSA
10122         partitions.
10123         (expand_used_vars): Don't create DECLs for anonymous SSA
10124         names.  Expand all SSA partitions, then adjust all SSA names.
10125         (pass::execute): Replace the loops that set
10126         SA.partition_to_pseudo from partition leaders and cleared
10127         DECL_RTL for multi-location variables, and that which used to
10128         rename vars and set attrs, with one that clears DECL_RTL and
10129         checks that PARMs and RESULTs default_defs match DECL_RTL.
10130         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10131         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10132         * explow.c (promote_ssa_mode): New.
10133         * explow.h (promote_ssa_mode): Declare.
10134         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10135         * function.c: Include cfgexpand.h.
10136         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10137         (use_register_for_parm_decl): Wrapper for the above to
10138         special-case the result_ptr.
10139         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10140         (split_complex_args): Take assign_parm_data_all argument.
10141         Pass it to rtl_for_parm.  Set up rtl and context for split
10142         args.
10143         (assign_parms_augmented_arg_list): Adjust.
10144         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10145         multiple locations.  Recognize split complex args.
10146         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10147         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10148         (assign_parm_setup_block): Prefer SSA-assigned location.
10149         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10150         if stack_parm is NULL.
10151         (assign_parm_setup_stack): Prefer SSA-assigned location.
10152         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10153         rtl before testing for pointer bounds.  Special-case result_ptr.
10154         (expand_function_start): Maybe reset DECL_RTL of result.
10155         Prefer SSA-assigned location for result and static chain.
10156         Factor out DECL_RESULT and SET_DECL_RTL.
10157         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10158         anonymous SSA names.  Use promote_ssa_mode.
10159         (get_temp_reg): Likewise.
10160         (remove_ssa_form): Adjust.
10161         * stor-layout.c (layout_decl): Don't set mem attributes of
10162         non-MEMs.
10163         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10164         and get its reg_usage for reg invalidation.
10165         (compute_bb_dataflow): Pass it insn.
10166         (emit_notes_in_bb): Likewise.
10168 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
10170         PR target/66217
10171         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10172         prototype.
10173         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10174         (rs6000_emit_2insn_and): Handle dot forms.
10175         * config/rs6000/rs6000.md (and<mode>3): Adjust.
10176         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
10177         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10179 2015-07-23  Richard Biener  <rguenther@suse.de>
10181         * generic-match-head.c: Include cgraph.h.
10182         * gimple-match-head.c: Likewise.
10183         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10184         SSA names.
10185         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10186         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
10187         pattern.
10189 2015-07-23  Richard Biener  <rguenther@suse.de>
10191         * gimple-fold.c (fold_gimple_cond): Do not require folding
10192         results to pass valid_gimple_rhs_p.
10193         * tree-cfg.h (fold_cond_expr_cond): Remove.
10194         * tree-cfg.c (fold_cond_expr_cond): Likewise.
10195         (make_edges): Do not call it.
10196         * tree-inline.c (tree_function_versioning): Likewise.
10198 2015-07-23  Tom de Vries  <tom@codesourcery.com>
10200         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10201         vect_force_simple_reduction.
10202         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10203         (vect_is_simple_reduction_1): Add and handle
10204         need_wrapping_integral_overflow parameter.
10205         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10206         need_wrapping_integral_overflow parameter.
10207         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10208         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10209         decl.
10211 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
10213         PR tree-optimization/66926,66951
10214         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10215         INNER_LOOP and fix up condition for renaming virtual operands.
10217 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10219         * combine.c (try_combine): Use std::swap instead of manually
10220         swapping.
10222 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
10224         * config/mips/i6400.md: New file.
10225         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10226         (mips64r6): Likewise.
10227         (i6400): Define.
10228         * config/mips/mips-tables.opt: Regenerate.
10229         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10230         (mips_issue_rate): Add support for i6400.
10231         (mips_multipass_dfa_lookahead): Likewise.
10232         * config/mips/mips.h (TUNE_I6400): Define.
10233         * config/mips/mips.md: Include i6400.md.
10234         (processor): Add i6400.
10235         * doc/invoke.texi (-march=@var{arch}): Add i6400.
10237 2015-07-23  Richard Biener  <rguenther@suse.de>
10239         PR middle-end/66916
10240         * match.pd: Guard widen and sign-change comparison simplification
10241         with single_use.
10243 2015-07-23  Richard Biener  <rguenther@suse.de>
10245         PR tree-optimization/66945
10246         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10247         ::before_dom_children): Force the propagators idea of
10248         non-executable edges to materialize, not what the folder
10249         chooses.
10251 2015-07-23  Richard Biener  <rguenther@suse.de>
10253         * gimple.h (gimple_cond_make_false): Use 0 != 0.
10254         (gimple_cond_make_true): Use 1 != 0.
10256 2015-07-22  DJ Delorie  <dj@redhat.com>
10258         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10259         slashes.
10261         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10262         (ashrhi3): Likewise.
10263         (lshrhi3): Likewise.
10264         (movhi): Take advantage of zero-extend to load small constants.
10265         (movpsi): Likewise.
10266         (and<mode>3): Likewise.
10267         (zero_extendqihi2): Likewise.
10268         (zero_extendqisi2): New.
10269         * config/msp430/constraints.md (N,O): New.
10270         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10272 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
10274         PR target/66954
10275         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10276         to enum feature_priority and feature_list.
10277         (fold_builtin_cpu): Add F_AES to enum processor_features
10278         and isa_names_table.
10280 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
10282         PR driver/66737
10283         * config/i386/linux-common.h (MPX_SPEC): Use linker option
10284         for 64bit target only.
10286 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
10288         * config/nvptx/nvptx.c: Expand some comments.
10290 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
10292         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10293         (cortex_a53_advsimd): ...This.
10295 2015-07-22  Richard Biener  <rguenther@suse.de>
10297         * genmatch.c (expr::gen_transform): Clarify error message
10298         and display location.
10300 2015-07-22  Richard Biener  <rguenther@suse.de>
10302         * genmatch.c (struct operand): Add location member.
10303         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10304         constructors.
10305         (struct simplify): Remove match_location and result_location
10306         members.
10307         (elsehwere): Adjust.
10309 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
10311         * config/mips/m5100.md: New file.
10312         * config/mips/mips-cpus.def (m5100, m5101): Define.
10313         * config/mips/mips-tables.opt: Regenerate.
10314         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10315         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10316         -march=m5101 to -mips32r5.
10317         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10318         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10319         !-msoft-float.
10320         * config/mips/mips.md: Include m5100.md.
10321         (processor): Add m5100.
10322         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10324 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
10326         * config/mips/mips-cpus.def (interaptiv): Define.
10327         * config/mips/mips-tables.opt: Regenerate.
10328         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10329         -mips32r2.
10330         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10331         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10333 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10335         PR target/63521
10336         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10337         (HONOR_REG_ALLOC_ORDER): Define.
10339 2015-07-22  Richard Biener  <rguenther@suse.de>
10341         PR tree-optimization/66952
10342         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10343         blocks we end up executing unconditionally reset all SSA
10344         info such as range and alignment.
10345         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10346         * tree-ssanames.c (reset_flow_sensitive_info): New function.
10348 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
10350         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10351         typo in attribute.
10353 2015-07-22  Richard Biener  <rguenther@suse.de>
10355         * genmatch.c (parser::parse_result): Properly handle
10356         match with result operands and conditions.
10358 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
10360         PR target/63870
10361         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10362         Add qualifier_struct_load_store_lane_index.
10363         (aarch64_types_loadstruct_lane_qualifiers): Use
10364         qualifier_struct_load_store_lane_index for lane index argument for
10365         last argument.
10366         (aarch64_types_storestruct_lane_qualifiers): Ditto.
10367         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10368         (aarch64_simd_expand_args): Add new argument describing mode of
10369         builtin. Check lane bounds for arguments with
10370         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10371         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10372         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10373         (aarch64_simd_expand_builtin): Handle arguments with
10374         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10375         aarch64_simd_expand_args.
10376         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10377         vst[234]_lane with BUILTIN_VALLDIF.
10378         * config/aarch64/aarch64-simd.md:
10379         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10380         endianness reversal on lane index.
10381         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10382         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10383         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10384         (vec_store_lanesci_lane<mode>): Ditto.
10385         (vec_store_lanesxi_lane<mode>): Ditto.
10386         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10387         reversal of lane index.
10388         (aarch64_ld3_lane<mode>): Ditto.
10389         (aarch64_ld4_lane<mode>): Ditto.
10390         (aarch64_st2_lane<mode>): Ditto.
10391         (aarch64_st3_lane<mode>): Ditto.
10392         (aarch64_st4_lane<mode>): Ditto.
10393         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10394         to qmode. Add new mode parameter. Update uses.
10395         (__LD3_LANE_FUNC): Ditto.
10396         (__LD4_LANE_FUNC): Ditto.
10397         (__ST2_LANE_FUNC): Ditto.
10398         (__ST3_LANE_FUNC): Ditto.
10399         (__ST4_LANE_FUNC): Ditto.
10401 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
10403         * doc/invoke.texi (Language Independent Options): Rename node to
10404         Diagnostic Message Formatting Options.
10406 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
10408         PR ipa/66424.
10409         * lra-remat.c (operand_to_remat): Prevent using insns with input
10410         subregs processed separately by IRA.
10412 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
10414         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10415         straight loops.
10416         (single_imm_use): Check for iterator node.
10417         (num_imm_uses): Likewise.
10418         * tree-ssa-operands.c (has_zero_uses_1): Delete.
10419         (single_imm_use_1): Check for iterator node.
10421 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
10422             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10424         * configure.ac: Add check for new options in isl-0.15.
10425         * config.in, configure: Rebuilt.
10426         * graphite-blocking.c: Include <isl/constraint.h>
10427         * graphite-interchange.c,  graphite-poly.c: Likewise.
10428         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10429         * graphite.c: Likewise.
10430         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10431         <isl/union_set.h>.
10432         * graphite-dependences.c: Include <isl/constraint.h>.
10433         (max_number_of_out_dimensions): Returns isl_stat.
10434         (extend_schedule_1): Likewise
10435         (extend_schedule): Corresponding changes.
10436         * graphite-optimize-isl.c: Include <isl/constraint.h> and
10437         <isl/union_set.h>.
10438         (getSingleMap): Change return type of isl_stat.
10439         (optimize_isl): Conditionally use
10440         isl_options_set_schedule_serialize_sccs.
10441         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
10442         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
10444 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
10446         PR target/66956
10447         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
10448         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
10450 2015-07-21  Richard Biener  <rguenther@suse.de>
10452         PR tree-optimization/66948
10453         * genmatch.c (capture_info::walk_match): Also recurse to
10454         captures.  Properly compute expr state from captures of
10455         captures.
10456         * match.pd: Add single-use guards to
10457         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
10459 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10461         * config/nvptx/mkoffload.c (process): Add static destructor call.
10463 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10465         PR middle-end/66915
10466         * match.pd (A - B -> A + (-B)): Don't allow folding
10467         when type if a fixed-point type.
10469 2015-07-20  DJ Delorie  <dj@redhat.com>
10471         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
10472         (iorqi3_real): Likewise for set1.
10474 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
10476         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
10477         for !TARGET_64BIT.
10479 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
10481         * graphite-isl-ast-to-gimple.c:
10482         Refactor so that each function can access 'region'. This will help
10483         maintain a parameter rename_map within a region.
10485 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10487         * config/rs6000/rs6000.md (*lt0_disi): New.
10489 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10491         PR target/66217
10492         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
10493         "available letters" comment.
10494         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
10495         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
10496         and_2rld_operand):  Delete.
10497         (and_operand): Adjust.
10498         (rotate_mask_operator): New.
10499         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
10500         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
10501         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
10502         extract_ME): Delete.
10503         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10504         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
10505         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
10506         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10507         rs6000_emit_2insn_and): New.
10508         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
10509         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
10510         includes_rldic_lshift_p, includes_rldicr_lshift_p,
10511         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
10512         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10513         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
10514         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
10515         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10516         rs6000_emit_2insn_and): New.
10517         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
10518         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
10519         handling.
10520         <NOT>: Don't fall through to next case.
10521         <AND>: Handle the various rotate-and-mask cases directly.
10522         <IOR>: Always cost as one insn.
10523         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
10524         (and<mode>3): Adjust expander for the new patterns.
10525         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
10526         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
10527         (*and<mode>3_imm_dot_shifted): New.
10528         (*and<mode>3_mask): Delete, rewrite as ...
10529         (and<mode>3_mask): ... New.
10530         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
10531         (andsi3_internal0_nomc): Delete.
10532         (*andsi3_internal6): Delete.
10533         (*and<mode>3_2insn): New.
10534         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10535         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10536         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
10537         *insvdi_internal3): Delete.
10538         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
10539         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
10540         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
10541         *ior<mode>_mask): New.
10542         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
10543         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10544         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10545         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10546         Delete.
10547         (ashr<mode>3): Delete expander.
10548         (*ashr<mode>3): Rename to ...
10549         (ashr<mode>3): ... This.
10550         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
10551         (*rotldi3_internal4, *rotldi3_internal5 and split,
10552         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
10553         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
10554         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
10555         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
10556         (splitter for loading a mask): Adjust.
10557         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
10559 2015-07-20  Marek Polacek  <polacek@redhat.com>
10561         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
10562         output_add_clobbers, output_added_clobbers_hard_reg_p,
10563         gen_rtx_scratch): Remove declarations.
10565 2015-07-20  Marek Polacek  <polacek@redhat.com>
10567         PR c++/55095
10568         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
10570 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10572         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
10573         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
10575 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10577         * combine.c (combine_simplify_rtx): Move simplification step
10578         before various transformations/substitutions.
10580 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
10582         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
10583         (struct int_traits): Likewise.
10585 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10587         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
10588         function to vmsdbgout_function_decl.
10590 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
10592         PR target/66922
10593         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
10594         from misaligned positions.
10595         (ix86_expand_pinsr): Reject insertions to misaligned positions.
10597 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
10599         PR middle-end/46851
10600         PR middle-end/60340
10601         * Makefile.in: Removed omega.o.
10602         * common.opt: Document flag fcheck-data-deps as deprecated.
10603         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
10604         its associated params: omega-max-vars, omega-max-geqs,
10605         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
10606         omega-max-keys, omega-eliminate-redundant-constraints.
10607         * doc/loop.texi: Remove all the section on Omega.
10608         * graphite-blocking.c: Include missing params.h: it used to be
10609         included through tree-data-ref.h and omega.h.
10610         * graphite-isl-ast-to-gimple.c: Same.
10611         * graphite-optimize-isl.c: Same.
10612         * graphite-sese-to-poly.c: Same.
10613         * graphite.c: Same.
10614         * omega.c: Remove.
10615         * omega.h: Remove.
10616         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10617         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10618         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
10619         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
10620         * passes.def: Remove pass_check_data_deps.
10621         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
10622         (dump_conflict_function): Same.
10623         (dump_subscript): Same.
10624         (print_direction_vector): Same.
10625         (print_dir_vectors): Same.
10626         (print_lambda_vector): Same.
10627         (print_dist_vectors): Same.
10628         (dump_data_dependence_relation): Same.
10629         (dump_data_dependence_relations): Same.
10630         (dump_dist_dir_vectors): Same.
10631         (dump_ddrs): Same.
10632         (init_omega_eq_with_af): Removed.
10633         (omega_extract_distance_vectors): Removed.
10634         (omega_setup_subscript): Removed.
10635         (init_omega_for_ddr_1): Removed.
10636         (init_omega_for_ddr): Removed.
10637         (ddr_consistent_p): Removed.
10638         (compute_affine_dependence): Do not use omega to check data
10639         dependences.
10640         (compute_data_dependences_for_bb): Removed.
10641         (analyze_all_data_dependences): Removed.
10642         (tree_check_data_deps): Removed.
10643         * tree-data-ref.h: Do not include omega.h.
10644         (compute_data_dependences_for_bb): Removed.
10645         (tree_check_data_deps): Removed.
10646         * tree-ssa-loop.c (pass_check_data_deps): Removed.
10647         (make_pass_check_data_deps): Removed.
10648         * tree-ssa-phiopt.c: Include params.h.
10649         * tree-vect-data-refs.c: Same.
10650         * tree-vect-slp.c: Same.
10652 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
10654         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
10655         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
10656         (mem->fpreg splitters): Ditto.
10657         (general_operand->nonimmediate_operand splitter): Use explicit modes.
10658         Disable DFmode for TARGET_64BIT.
10660 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
10662         PR target/66906
10663         * config/i386/i386.c (ix86_expand_prologue): Replicate static
10664         chain on the stack.
10666 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10668         * config/nvptx/mkoffload.c (process): Constify host data.
10669         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10670         Constify host data.
10671         (generate_host_descr_file): Likewise.
10673 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
10674             Sebastian Pop  <s.pop@samsung.com>
10676         PR middle-end/61929
10677         * graphite-dependences.c (add_pdr_constraints): Renamed
10678         pdr->extent to pdr->subscript_sizes.
10679         * graphite-interchange.c (build_linearized_memory_access): Add
10680         back all gcc_assert's that the "isl_int to isl_val conversion"
10681         patch has removed.  Refactored.
10682         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
10683         * graphite-poly.c (new_poly_dr): Same.
10684         (free_poly_dr): Same.
10685         * graphite-poly.h (struct poly_dr): Same.
10686         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
10687         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
10688         * graphite-scop-detection.h: Fix space.
10689         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
10690         back all gcc_assert's removed by a previous patch.
10691         (wrap): Remove the_isl_ctx global variable that the same patch has
10692         added.
10693         (build_loop_iteration_domains): Same.
10694         (add_param_constraints): Same.
10695         (pdr_add_data_dimensions): Same.  Refactored.
10696         (build_poly_dr): Renamed extent to subscript_sizes.
10698 2015-07-17  Marek Polacek  <polacek@redhat.com>
10700         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
10701         * match.pd: ... here.
10703 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10705         * config/nvptx/mkoffload.c (process): Constify target data.
10706         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10707         Constify target data.
10708         (generate_target_offloadend_file): Likewise.
10710 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
10712         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
10713         to allow renaming of PHI arguments on edges incoming from outer
10714         loop header, add corresponding check before start PHI iterator.
10715         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
10716         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
10717         with true force_vectorize.  Set-up dominator for outer loop too.
10718         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
10719         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
10720         was marked with force_vectorize and has restricted cfg.
10721         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
10722         inner loop.
10723         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
10724         do peeling for outer loops.
10726 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
10727             Matthias Klose  <doko@ubuntu.com>
10729         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
10730         build-sysroot, sysroot from the `Miscenalleous configure options' to
10731         the `Directories' section and strip trailing `/' from with_sysroot.
10732         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
10733         * configure: Regenerated.
10735 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
10737         PR target/66824
10738         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
10739         (TARGET_HARD_DF_REGS): Ditto.
10740         (TARGET_HARD_XF_REGS): Ditto.
10741         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
10742         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
10743         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
10744         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
10745         (*movsf_internal): Add alternatives 16 and 17. Enable
10746         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
10748 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
10750         PR rtl-optimization/66891
10751         * calls.c (expand_call): Wrap precompute_register_parameters with
10752         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
10754 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10756         * config/nvptx/mkoffload.c (process): Constify mapping variables.
10757         Define target data struct and initialize it.
10759 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
10761         PR rtl-optimization/66626
10762         * ira.h (emit-rtl.h): Include.
10763         (non_spilled_static_chain_regno_p): New.
10764         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
10765         unless it is non spilled static chain pseudo.
10766         (assign_hard_rego): Spill memory profitable allocno unless it is
10767         non spilled static chain pseudo.
10768         (allocno_spill_priority_compare): Put non spilled static chain
10769         pseudo at the end of sorted array.
10770         (improve_allocation): Do nothing if we have static chain and
10771         non-local goto.
10772         (allocno__priority_compare_func): Put non spilled static chain
10773         pseudo at the beginning of sorted array.
10774         (move_spill_restore): Ignore non spilled static chain pseudo.
10775         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
10776         to non spilled static chain pseudo.
10777         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
10778         pseudo at the beginning of sorted array.
10779         (spill_for): Spill non spilled static chain pseudo last.
10780         * lra-constraints.c (lra_constraints): Remove static chain pseudo
10781         check for equivalence.
10783 2015-07-16  Martin Liska  <mliska@suse.cz>
10785         PR ipa/66896.
10786         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
10787         dst_ctx if it does not exist.
10789 2015-07-16  Martin Liska  <mliska@suse.cz>
10791         * hash-set.h (remove): New function.
10792         (iterator): New iteration class for hash_set.
10794 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10796         * genattrtab.c (make_canonical): Add a file_location parameter.
10797         Use fatal_at rather than fatal.
10798         (get_attr_value): Likewise.  Update call to make_canonical.
10799         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
10800         (make_internal_attr): Update calls accordingly.
10802 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10804         * read-md.h (message_with_line, error_with_line): Delete.
10805         * read-md.c (message_with_line, error_with_line): Delete.
10806         * gensupport.h: Include read-md.h.
10807         (md_rtx_info): New structure.
10808         (read_md_rtx): Use it.  Return a bool success value.
10809         * gensupport.c (read_md_rtx): Likewise.
10810         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
10811         (main): Update after interface changes.
10812         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
10813         (main): Update after interface changes.
10814         * genattrtab.c (insn_code_number): Delete.
10815         (optimize_attrs): Add a max_insn_code parameter and use it instead
10816         of insn_code_number.
10817         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
10818         Use *_at rather than *_with_line functions.
10819         (gen_insn): Likewise.
10820         (gen_delay): Likewise.
10821         (gen_insn_reserv): Likewise.
10822         (gen_bypass): Take an md_rtx_info rather than an rtx.
10823         (main): Update after interface changes.  Use a local max_insn_code
10824         variable instead of insn_code_number.
10825         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
10826         an rtx.  Use fatal_at rather than fatal.
10827         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
10828         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
10829         (gen_absence_set, gen_final_absence_set, gen_automaton)
10830         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
10831         (main): Update after interface changes.
10832         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
10833         and code number.
10834         (main): Update after interface changes.
10835         * genconditions.c (main): Use new read_md_rtx interface.
10836         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
10837         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
10838         (main): Update after interface changes.
10839         * genemit.c (insn_code_number, insn_index_number): Delete.
10840         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10841         Use fatal_at rather than fatal.
10842         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
10843         rather than fatal.
10844         (gen_split): Likewise.
10845         (main): Update after interface changes.
10846         * genextract.c (line_no): Delete.
10847         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10848         Update call to walk_rtx.
10849         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
10850         rather than message_with_line.
10851         (walk_rtx): Add an md_rtx_info argument.  Update call to
10852         VEC_safe_set_locstr.
10853         (main): Update after interface changes.
10854         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
10855         and lineno.  Use error_at rather than separate message_with_line
10856         calls and have_error assignments.
10857         (main): Update after interface changes.
10858         * genmddump.c (main): Use new read_md_rtx interface.
10859         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
10860         (main): Update after interface changes.
10861         * genoutput.c (next_code_number): Delete.
10862         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10863         (gen_peephole, gen_expand, gen_split): Likewise.
10864         (note_constraint): Likewise.  Use *_at rather than *_with_line
10865         functions.
10866         (main): Update after interface changes.
10867         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
10868         rtx and lineno.
10869         (main): Update after interface changes.
10870         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
10871         than an rtx and lineno.
10872         (process_define_constraint): Likewise.
10873         (process_define_register_constraint): Likewise.
10874         (main): Update after interface changes.
10875         * genrecog.c (next_insn_code, pattern_lineno): Delete.
10876         (validate_pattern): Replace top-level rtx with an md_rtx_info.
10877         Use *_at rather than *_with_line functions.
10878         (match_pattern_2): Likewise.
10879         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
10880         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
10881         Use *_at rather than *_with_line functions.
10882         * gentarget-def.c (add_insn): New function.
10883         (main): Use it.  Use new read_md_rtx interface.
10885 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10887         * gensupport.h (compute_test_codes): Take a file_location rather
10888         than a line number.
10889         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
10890         rather than *_with_line functions.
10891         (process_define_predicate): Update call to compute_test_codes.
10892         * genpreds.c (validate_exp): Take a file_location rather than a
10893         line number.  Use *_at functions rather than *_with_line functions.
10894         (process_define_predicate): Update call to validate_exp.
10895         (constraint_data): Replace lineno field with a file_location.
10896         (add_constraint): Take a file_location rather than a line number.
10897         Use *_at functions rather than *_with_line functions.  Fix error
10898         message for address constraints.  Update after changes to
10899         validate_exp, constraint_data and compute_test_codes.
10900         (process_define_constraint): Update accordingly.
10901         (process_define_register_constraint): Likewise.
10903 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10905         * genoutput.c (data): Use a file_location to record the source
10906         position.
10907         (nothing): Delete.
10908         (idata, idata_end): Remove initialization.
10909         (constraint_data): Replace lineno with a file_location.
10910         (output_insn_data): Update after changes to data.
10911         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
10912         (scan_operands): Likewise, using *_at rather than *_with_line
10913         functions.
10914         (process_template): Likewise.
10915         (validate_insn_alternatives): Likewise.
10916         (validate_insn_operands): Likewise.
10917         (validate_optab_operands): Likewise.
10918         (init_insn_for_nothing): Initialize idata and idata_end.
10919         (note_constraint): Update after changes to constraint_data,
10920         using at rather than with_line functions.
10921         (mdep_constraint_len): Take a file_location rather than a
10922         line number.  Use at rather than with_line functions.
10924 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10926         * read-md.h (fatal_at): Declare.
10927         * read-md.c (fatal_at): New function.
10928         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
10929         to record the source position.
10930         (check_attr_test): Take a file_location instead of a line number.
10931         Use fatal_at instead of fatal.
10932         (check_attr_value): Update after above changes, using "at"
10933         rather than "with_line" reporting functions.
10934         (convert_set_attr_alternative): Likewise.
10935         (gen_attr): Likewise.
10936         (check_defs): Likewise.  Don't assign to read_md_filename.
10937         (gen_insn): Update initialization after above changes.
10938         (gen_delay): Likewise.
10939         (write_insn_cases): Print the filename for a define_peephole.
10940         (gen_insn_reserv): Take a line number as argument and update
10941         the call to check_attr_test.
10942         (main): Pass a line number to gen_insn_reserv.
10944 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10946         * read-md.h (file_location): New structure.
10947         (directive_handler_t): Take a file_location rather than a line number.
10948         (message_at, error_at): Declare.
10949         (read_skip_construct): Delete.
10950         * read-md.c (message_with_line_1): Replace with...
10951         (message_at_1): ...this new function.
10952         (message_at, error_at): New functions.
10953         (message_with_line, error_with_line): Update to use message_at_1.
10954         (handle_enum): Take a file_location rather than a line number
10955         and use error_at for error reporting.
10956         (handle_include): Likewise.
10957         (read_skip_construct): Likewise.  Make static.
10958         (handle_file): Update after above changes.  Pass a file_location
10959         rather than a line number to handle_directive.
10960         * gensupport.c (queue_elem): Replace separate filename and lineno
10961         with a file_location.
10962         (queue_pattern): Replace filename and lineno arguments with a
10963         file_location.  Update after change to queue_elem.
10964         (process_define_predicate): Replace lineno argument with a
10965         file_location and use error_at for error reporting.  Update
10966         after above changes.
10967         (process_rtx): Likewise.
10968         (subst_pattern_match): Likewise.
10969         (get_alternatives_number): Likewise.
10970         (alter_predicate_for_insn): Likewise.
10971         (rtx_handle_directive): Likewise.
10972         (is_predicable): Update after above changes, using error_at rather
10973         than error_with_line.
10974         (has_subst_attribute): Likewise.
10975         (identify_predicable_attribute): Likewise.
10976         (alter_attrs_for_subst_insn): Likewise.
10977         (process_one_cond_exec): Likewise.
10978         (process_substs_on_one_elem): Likewise.
10979         (process_define_subst): Likewise.
10980         (check_define_attr_duplicates): Likewise.
10981         (read_md_rtx): Update after change to queue_elem.
10983 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10985         * genoutput.c (next_index_number): Delete.
10986         (data): Remove index_number.
10987         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
10988         (main): Remove manipulation of next_index_number.
10990 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10992         * genattrtab.c (check_attr_value): Remove handling of null attrs.
10993         (make_canonical): Likewise.
10995 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
10997         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
10998         instead of adjust_address_nv.
10999         (restore_stack_nonlocal): Likewise.
11000         (nonlocal_goto): Likewise.
11002 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11004         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11005         not have a corresponding loop header phi.
11007 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11009         * tree-parloops.c (create_loads_for_reductions): Handle case that
11010         reduction is unused.
11012 2015-07-16  Richard Biener  <rguenther@suse.de>
11014         PR tree-optimization/66894
11015         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11016         about deriving NE_EXPR from truncated values.
11018 2015-07-16  Martin Liska  <mliska@suse.cz>
11020         * alloc-pool.h
11021         (object_allocator): Add new class.
11022         (pool_allocator::initialize): Use the underlying class.
11023         (pool_allocator::allocate): Likewise.
11024         (pool_allocator::remove): Likewise.
11025         (operator new): A new generic allocator.
11026         * asan.c (struct asan_mem_ref): Remove unused members.
11027         (asan_mem_ref_new): Replace new operator with
11028         object_allocator::allocate.
11029         (free_mem_ref_resources): Change deallocation.
11030         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11031         with object_allocator.
11032         * config/sh/sh.c (add_constant): Replace new operator with
11033         object_allocator::allocate.
11034         (sh_reorg): Change call to a release method.
11035         * cselib.c (struct elt_list): Remove unused members.
11036         (new_elt_list): Replace new operator with
11037         object_allocator::allocate.
11038         (new_elt_loc_list): Likewise.
11039         (new_cselib_val): Likewise.
11040         (unchain_one_elt_list): Change delete operator with remove method.
11041         (unchain_one_elt_loc_list): Likewise.
11042         (unchain_one_value): Likewise.
11043         (cselib_finish): Release newly added static allocators.
11044         * cselib.h (struct cselib_val): Remove unused members.
11045         (struct elt_loc_list): Likewise.
11046         * df-problems.c (df_chain_alloc): Replace pool_allocator with
11047         object_allocator.
11048         * df-scan.c (struct df_scan_problem_data): Likewise.
11049         (df_scan_alloc): Likewise.
11050         * df.h (struct dataflow): Likewise.
11051         * dse.c (struct read_info_type): Likewise.
11052         (struct insn_info_type): Likewise.
11053         (struct dse_bb_info_type): Likewise.
11054         (struct group_info): Likewise.
11055         (struct deferred_change): Likewise.
11056         (get_group_info): Likewise.
11057         (delete_dead_store_insn): Likewise.
11058         (free_read_records): Likewise.
11059         (replace_read): Likewise.
11060         (check_mem_read_rtx): Likewise.
11061         (scan_insn): Likewise.
11062         (dse_step1): Likewise.
11063         (dse_step7): Likewise.
11064         * et-forest.c (struct et_occ): Remove unused members.
11065         (et_new_occ): Use allocate instead of new operator.
11066         (et_new_tree): Likewise.
11067         (et_free_tree): Call release method explicitly.
11068         (et_free_tree_force): Likewise.
11069         (et_free_pools): Likewise.
11070         (et_split): Use remove instead of delete operator.
11071         * et-forest.h (struct et_node): Remove unused members.
11072         * ipa-cp.c: Change pool_allocator to object_allocator.
11073         * ipa-inline-analysis.c: Likewise.
11074         * ipa-profile.c: Likewise.
11075         * ipa-prop.c: Likewise.
11076         * ipa-prop.h: Likewise.
11077         * ira-build.c (initiate_cost_vectors): Cast return value.
11078         (ira_allocate_cost_vector): Likewise.
11079         * ira-color.c (struct update_cost_record): Remove unused members.
11080         * lra-int.h (struct lra_live_range): Likewise.
11081         (struct lra_copy): Likewise.
11082         (struct lra_insn_reg): Likewise.
11083         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11084         * lra.c (new_insn_reg): Replace new operator with allocate method.
11085         (free_insn_regs): Same for operator delete.
11086         (finish_insn_regs): Release new static allocator.
11087         (finish_insn_recog_data): Likewise.
11088         (lra_free_copies): Replace delete operator with remove method.
11089         (lra_create_copy): Replace operator new with allocate method.
11090         (invalidate_insn_data_regno_info): Same for remove method.
11091         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11092         (free_debug_insn_changes): Replace delete operator with remove method.
11093         (replace_oldest_value_reg): Replace operator new with allocate method.
11094         (pass_cprop_hardreg::execute): Release new static variable.
11095         * sched-deps.c (sched_deps_init): Change pool_allocator to
11096         object_allocator.
11097         * sel-sched-ir.c: Likewise.
11098         * sel-sched-ir.h: Likewise.
11099         * stmt.c (expand_case): Likewise.
11100         (expand_sjlj_dispatch_table): Likewise.
11101         * tree-sra.c (struct access): Remove unused members.
11102         (struct assign_link): Likewise.
11103         (sra_deinitialize): Release newly added static pools.
11104         (create_access_1):Replace operator new with allocate method.
11105         (build_accesses_from_assign): Likewise.
11106         (create_artificial_child_access): Likewise.
11107         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11108         pool_allocator to object_allocator.
11109         * tree-ssa-pre.c: Likewise.
11110         * tree-ssa-reassoc.c: Likewise.
11111         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11112         * tree-ssa-strlen.c: Likewise.
11113         * tree-ssa-structalias.c: Likewise.
11114         * var-tracking.c (onepart_pool_allocate): New function.
11115         (unshare_variable): Use the newly added function.
11116         (variable_merge_over_cur): Likewise.
11117         (variable_from_dropped): Likewise.
11118         (variable_was_changed): Likewise.
11119         (set_slot_part): Likewise.
11120         (emit_notes_for_differences_1): Likewise.
11121         (vt_finalize): Release newly added static pools.
11123 2015-07-16  Martin Jambor  <mjambor@suse.cz>
11125         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
11126         all uses.  Fix two typos in its general comment.
11127         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
11129 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
11131         * config/i386/linux-common.h (LINK_MPX): New.
11132         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11133         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11134         indicating '-z bndplt' support by linker.
11135         * configure: Regenerate.
11136         * config.in: Regenerate.
11138 2015-07-16  Richard Biener  <rguenther@suse.de>
11140         * fold-const.c (fold_widened_comparison): Remove.
11141         (fold_sign_changed_comparison): Likewise.
11142         (fold_comparison): Move widened and sign-changed comparison
11143         simplification ...
11144         * match.pd: ... to patterns here.
11145         * generic-match-head.c: Include target.h.
11146         * gimple-match-head.c: Likewise.
11148 2015-07-16  Richard Biener  <rguenther@suse.de>
11150         * tree-ssa-dom.c (dom_valueize): New function.
11151         (record_temporary_equivalences): Also record equivalences
11152         for dominating stmts that have uses of equivalences we are
11153         about to record.
11155 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
11157         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11158         add_autoinc_candidates.
11159         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11160         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11161         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11162         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11163         Call new function.
11164         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11165         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11166         Remove parameter struct iv*.  Call add_autoinc_candidates here.
11167         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11168         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11169         Call new function.
11170         (find_iv_candidates): Call new functions.
11172 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
11174         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11175         uninitialized-variable warning.
11177 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11179         PR target/65249
11180         * config/sh/sh.md (movdi): Split simple reg move to two movsi
11181         when the destination is R0.
11183 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
11185         PR target/66866
11186         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11187         * config/i386/i386.c (ix86_expand_pextr): New function.
11188         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
11189         for non-lowpart subregs.
11190         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11191         (insv<mode>): Use SWI248 mode iterator.
11192         (insv<mode>_1): Ditto.
11194 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11195             Sebastian Pop  <s.pop@samsung.com>
11197         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11198         iterator to use_stmt.
11200 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11201             Sebastian Pop <s.pop@samsung.com>
11203         * graphite-scop-detection.c (build_scops_1): Discard scops for
11204         which entry==exit.
11206 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11207             Sebastian Pop <s.pop@samsung.com>
11209         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11210         case of a return statement in scop.
11212 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11213             Sebastian Pop <s.pop@samsung.com>
11215         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11216         INTEGER_TYPE parameters.
11217         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11218         VECTOR_CST in scan_tree_for_params.
11219         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11221 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11223         * gimple-pretty-print.h: Don't include pretty-print.h.
11224         * tree-streamer.h: Don't include lto-streamer.h.
11225         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11226         * gimple-streamer-in.c: Remove redundant includes.
11227         * gimple-streamer-out.c: Likewise.
11228         * ipa-devirt.c: Likewise.
11229         * ipa-icf.c: Likewise.
11230         * ipa-inline-analysis.c: Likewise.
11231         * ipa-polymorphic-call.c: Likewise.
11232         * ipa-profile.c: Likewise.
11233         * ipa-prop.c: Likewise.
11234         * ipa-pure-const.c: Likewise.
11235         * lto-cgraph.c: Likewise.
11236         * lto-streamer-in.c: Likewise.
11237         * lto-streamer-out.c: Likewise.
11238         * lto-streamer.c: Likewise.
11239         * tree-streamer-in.c: Likewise.
11240         * tree-streamer-out.c: Likewise.
11241         * tree-streamer.c: Likewise.
11243 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11245         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11246         include input.h.
11247         * opts.c: Remove multiline #include comment.
11249 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11251         * config/nvptx/mkoffload.c (process): Add C++ protection to
11252         emitted code.
11254 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11256         PR target/66854
11257         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11258         null before IEEE 128-bit floating point support patch.
11260 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11262         * simplify-rtx.c (simplify_ternary_operation): Add simplification
11263         for (!c) != {0,...,0} ? a : b for vector modes.
11265 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
11266             Martin Jambor  <mjambor@suse.cz>
11268         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11269         struct func_body_info* instead of struct ipa_node_params*, expecting
11270         fbi->info to be filled in.  Replace throughout.  Adjust call to
11271         ipa_load_from_parm_agg.
11272         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11273         instead of struct ipa_node_params*.  Adjust calls to other functions
11274         so that they pass either fbi or fbi->info.
11275         (set_switch_stmt_execution_predicate): Likewise.
11276         (will_be_nonconstant_predicate): Likewise.
11277         (compute_bb_predicates): Likewise.
11278         (estimate_function_body_sizes): Move asserts earlier.  Fill in
11279         struct func_body_info, replace parms_info with fbi.info.  Adjust
11280         calls to functions that now accept struct func_body_info.
11281         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11282         (struct func_body_info): Likewise.
11283         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11284         remove static.  Adjust callers.
11285         (ipa_load_from_parm_agg): Remove.
11286         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11287         (func_body_info): Likewise.
11288         (ipa_load_from_parm_agg): Adjust prototype.
11290 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11292         * gensupport.c (rtx_handle_directive): Adjust.
11293         * read-rtl.c (apply_iterators): Take vector to add rtxs to
11294         instead of expr list rtx.
11295         (add_define_attr_for_define_subst): Likewise.
11296         (add_define_subst_attr): Likewise.
11297         (read_subst_mapping): Likewise.
11298         (read_rtx): Likewise.
11299         * rtl.h (read_rtx): Adjust.
11301 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11303         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11305 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11307         PR target/58066
11308         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11309         (*tls_local_dynamic_base_64_<mode>): Ditto.
11310         (*tls_local_dynamic_base_64_largepic): Ditto.
11311         (tls_global_dynamic_64_<mode>): Update expander pattern.
11312         (tls_local_dynamic_base_64_<mode>): Ditto.
11314 2015-07-15  Richard Biener  <rguenther@suse.de>
11316         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11317         and bool_var == 1 -> bool_var simplifications ...
11318         * match.pd: ... to patterns here.  Factor out negate_expr_p
11319         cases from the A - B -> A + (-B) patterns as negate_expr_p
11320         predicate and add a -(A + B) -> (-B) - A pattern.
11322 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
11324         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11326 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
11327             Robert Suchanek  <robert.suchanek@imgtec.com>
11329         * config/mips/mips.c (mips_int_mask): New enum.
11330         (mips_shadow_set): Likewise.
11331         (int_mask): New variable.
11332         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11333         (machine_function): Add int_mask and use_shadow_register_set.
11334         (mips_attribute_table): Add attribute handlers for interrupt and
11335         use_shadow_register_set.
11336         (mips_interrupt_mask): New static function.
11337         (mips_handle_interrupt_attr): Likewise.
11338         (mips_handle_use_shadow_register_set_attr): Likewise.
11339         (mips_use_shadow_register_set): Change return type to enum
11340         mips_shadow_set.  Add argument handling for use_shadow_register_set
11341         attribute.
11342         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11343         compare with mips_shadow_set enum.
11344         (mips_compute_frame_info): Add interrupt mask and
11345         use_shadow_register_set to per-function information structure.
11346         Add a stack slot for EPC unconditionally.
11347         (mips_expand_prologue): Compare use_shadow_register_set value
11348         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
11349         masked interrupt register but in EIC mode use K0 and save Cause in K0.
11350         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
11351         copying the stack pointer from the shadow register set.
11352         * config/mips/mips.h (SR_IM0): New define.
11353         * config/mips/mips.md (mips_rdpgpr): Rename to...
11354         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
11355         * doc/extend.texi (Declaring Attributes of Functions): Document
11356         optional arguments for interrupt and use_shadow_register_set
11357         attributes.
11359 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
11361         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11362         interrupt attribute.
11363         (mips_expand_prologue): Disable the floating point unit in an ISR.
11364         * config/mips/mips.h (SR_COP1): New define.
11366 2015-07-15  Richard Biener  <rguenther@suse.de>
11368         * genmatch.c (parser::peek, parser::peek_ident): Add argument
11369         to tell how many tokens to peek ahead (default 1).
11370         (parser::eat_token, parser::eat_ident): Return token consumed.
11371         (parser::parse_result): Parse new switch statement.
11372         * match.pd: Use case statements where appropriate.
11374 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11376         PR rtl-optimization/58066
11377         * calls.c (expand_call): Precompute register parameters before stack
11378         alignment is performed.
11380 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11382         PR rtl-optimization/66838
11383         * postreload.c (reload_cse_move2add): Also process
11384         CALL_INSN_FUNCTION_USAGE when resetting information of
11385         call-clobbered registers.
11387 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11388             Cesar Philippidis  <cesar@codesourcery.com>
11389             Chung-Lin Tang  <cltang@codesourcery.com>
11391         * config/nios2/constraints.md (U, v): New constraints.
11392         * config/nios2/predicates.md (rdprs_dcache_operand): New.
11393         (ldstex_memory_operand): New.
11394         * config/nios2/sync.md: New file.
11395         * config/nios2/nios2.md (unspecv): Add new builtin function
11396         UNSPECV codes.
11397         (rdprs, flushd, flushda, wrpie, eni): New patterns.
11398         (top-level): Include sync.md.
11399         * config/nios2/nios2.c (N2_FTYPES): Add function types for
11400         new builtins.
11401         (N2_BUILTINS): Add arch field setting, add new builtins.
11402         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11403         for arch field.
11404         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11405         Also handle ldex/stex/ldsex/stsex builtins.
11406         (nios2_expand_rdprs_builtin): New function.
11407         (nios2_expand_cache_builtin): New function.
11408         (nios2_expand_wrpie_builtin): New function.
11409         (nios2_expand_eni_builtin): New function.
11410         (nios2_expand_builtin): Add arch field handling and new builtin
11411         cases.
11412         * doc/extend.texi (Altera Nios II Built-in Functions): Document
11413         new builtins.
11414         * doc/md.texi (Machine Constraints): Document U and v constraints.
11416 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11417             Cesar Philippidis  <cesar@codesourcery.com>
11418             Chung-Lin Tang  <cltang@codesourcery.com>
11420         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11421         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11422         callee_save_reg_size and uses_anonymous_args fields.
11423         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11424         (nios2_create_cfa_notes): New function.
11425         (nios2_adjust_stack): New function for adjusting stack.
11426         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11427         Use nios2_adjust_stack.
11428         (nios2_expand_epilogue): Likewise.
11429         (nios2_expand_return): New function.
11430         (nios2_can_use_return_insn): Update for CDX pop.n usage.
11431         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11432         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11433         * config/nios2/nios2.md (return): Use nios2_expand_return.
11435 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11436             Cesar Philippidis  <cesar@codesourcery.com>
11437             Chung-Lin Tang  <cltang@codesourcery.com>
11439         * config/nios2/predicates.md (pop_operation): New.
11440         (ldwm_operation, stwm_operation): New.
11441         (nios2_hard_register_operand): New.
11442         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
11443         (ldstwm_operation_p): Declare.
11444         (gen_ldstwm_peep): Declare.
11445         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
11446         (base_reg_adjustment_p): New.
11447         (pop_operation_p): New.
11448         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
11449         (nios2_ldstwm_regset_p): New.
11450         (ldstwm_operation_p): New.
11451         (gen_ldst): New.
11452         (nios2_ldst_parallel): New.
11453         (struct ldswm_operand): Declare.
11454         (compare_ldstwm_operands): New.
11455         (can_use_cdx_ldstw): New.
11456         (gen_ldstwm_peep): New.
11457         * config/nios2/nios2-ldstwm.sml: New.
11458         * config/nios2/nios2.md: Include ldstwm.md.
11459         * config/nios2/ldstwm.md: Generated.
11461 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11462             Cesar Philippidis  <cesar@codesourcery.com>
11463             Chung-Lin Tang  <cltang@codesourcery.com>
11465         * config/nios2/nios2.h (LABEL_ALIGN): Define.
11466         (REG_ALLOC_ORDER): Define.
11467         (ADJUST_REG_ALLOC_ORDER): Define.
11468         (HONOR_REG_ALLOC_ORDER): Define.
11469         (CDX_REG_P): Define.
11470         (ANDCLEAR_INT): Define.
11471         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
11472         (nios2_label_align): Declare.
11473         (nios2_cdx_narrow_form_p): Declare.
11474         (nios2_adjust_reg_alloc_order): Declare.
11475         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
11476         operation.
11477         (nios2_large_unspec_reloc_p): New function, split from...
11478         (nios2_legitimate_pic_operand_p): ...here.
11479         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
11480         (nios2_print_operand_punct_valid_p): New.
11481         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
11482         (split_mem_address): New.
11483         (split_alu_insn): New.
11484         (cdxreg): New.
11485         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
11486         (enum nios2_add_insn_kind): New.
11487         (nios2_add_insn_names, nios2_add_insn_narrow): New.
11488         (nios2_add_insn_classify): New.
11489         (nios2_add_insn_asm): New.
11490         (nios2_cdx_narrow_form_p): New.
11491         (label_align, min_labelno, max_labelno): New.
11492         (nios2_reorg): New.
11493         (nios2_label_align): New.
11494         (nios2_adjust_reg_alloc_order): New.
11495         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11496         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11497         * config/nios2/constraints.md (P): New constraint.
11498         * config/nios2/predicates.md (const_and_operand): New.
11499         (and_operand): New.
11500         (stack_memory_operand): New.
11501         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
11502         (length): Update to use nios2_cdx_narrow_form_p().
11503         (type): Add new insn type values.
11504         (control, alu, st, ld, shift): Update insn reservations with
11505         new insn type values.
11506         (*high, *lo_sum): Define new insn patterns for constant generation.
11507         (movqi_internal, movhi_internal, movsi_internal): Reduce
11508         alternatives, update asm template to handle CDX variants, update
11509         type attributes.
11510         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
11511         template, update type attributes.
11512         (extendhisi2, extendqi<mode>2): Likewise.
11513         (addsi3): Change to use function for asm string.
11514         (subsi3): Add CDX notation to asm template, update type attributes.
11515         (negsi3, one_cmplsi3): Likewise.
11516         (andsi3): New pattern, specialized from logical patterns.
11517         (<code>si3): Remove and case, combine alternatives, update asm
11518         template.
11519         (<shift_op>si3): Add CDX notation, update type attributes.
11520         (rotrsi3): Update type attribute.
11521         (*merge, extzv, insv): New insn patterns.
11522         (return): Change to define_expand.
11523         (simple_return): Add CDX notation, update type attributes.
11524         (indirect_jump): Add CDX notation.
11525         (jump): Update asm cases, update length attribute expression.
11526         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
11527         (nios2_cbranch): Update asm cases and length attribute expression
11528         to handle CDX variants.
11529         (nios2_cmp<code>): Update asm template.
11530         (nop): Add CDX notation, update type attributes.
11531         (trap): Add CDX notation.
11532         (ctrapsi4): Update asm cases and length attribute expression to
11533         handle CDX variant.
11534         * doc/md.texi (Machine Constraints): Document P constraint.
11536 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11537             Cesar Philippidis  <cesar@codesourcery.com>
11538             Chung-Lin Tang  <cltang@codesourcery.com>
11540         * config/nios2/nios2.h (SMALL_INT12): New macro.
11541         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
11542         (nios2_valid_addr_expr_p): Use it.
11543         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
11544         with implicit "io" instructions on R2.
11545         * config/nios2/constraints.md (w): New constraint.
11546         * config/nios2/predicates.md (ldstio_memory_operand): New.
11547         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
11548         operand predicate and constraint.
11549         (ld<bh>io_signed, st<bhw>io>): Likewise.
11550         * doc/md.texi (Machine Constraints): Document w constraint.
11552 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11553             Cesar Philippidis  <cesar@codesourcery.com>
11554             Chung-Lin Tang  <cltang@codesourcery.com>
11556         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
11557         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
11558         Nios II architecture level.
11559         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
11560         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
11561         (OPTION_DEFAULT_SPECS): Define.
11562         (ASM_SPEC): Add -march= spec strings.
11563         * config/nios2/nios2.c (nios2_option_override): Check for
11564         conflicts involving new options.
11565         * config.gcc (nios2*-*-*): Support --with-arch=.
11566         * doc/invoke.texi (Option Summary, Nios II Options): Document
11567         -march=, -mbmx, and -mcdx.
11569 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
11571         PR rtl-optimization/66626
11572         * lra-constraints.c (lra_constraints): Prevent equivalence
11573         substitution for static chain pseudo in functions with nonlocal
11574         goto.
11576 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11578         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
11579         (nios2_emit_stack_limit_check): Add size parameter.  Handle
11580         -fstack-limit-symbol as well as -fstack-limit-register.
11581         (nios2_expand_prologue): Emit only a single stack limit check,
11582         even if multiple stack adjustments are required.
11583         (nios2_option_override): Diagnose unsupported combination of -fpic
11584         and -stack-limit-symbol.
11586 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
11588         * Makefile.in (top_srcdir): New.
11589         * configure.ac: Use AM_ZLIB.
11590         * configure: Regeneated.
11592 2015-07-14  Matthias Klose  <doko@ubuntu.com>
11594         PR target/66840
11595         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
11597 2015-07-14  Richard Biener  <rguenther@suse.de>
11599         PR tree-optimization/66863
11600         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
11601         what we record for conversion use stmt lhs inequalities.
11603 2015-07-14  Richard Biener  <rguenther@suse.de>
11605         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
11606         (decision_tree::gen_gimple): Likewise.
11608 2015-07-14  Tom de Vries  <tom@codesourcery.com>
11610         * gcc.c (greater_than_spec_func): Declare forward.
11611         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
11612         -ftree-parallelize-loops={0,1}.
11613         (static_spec_functions): Add greater_than_spec_func function with name
11614         "gt".
11615         (greater_than_spec_func): New function.
11617 2015-07-14  Richard Biener  <rguenther@suse.de>
11619         * tree-ssa-dom.c (record_temporary_equivalences): Merge
11620         wideing type conversion case from record_equivalences_from_incoming_edge
11621         and use record_equality to record equivalences.
11622         (record_equivalences_from_incoming_edge): Call
11623         record_temporary_equivalences.
11625 2015-07-14  Richard Biener  <rguenther@suse.de>
11627         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
11628         (struct if_expr): New.
11629         (struct with_expr): Likewise.
11630         (is_a_helper): Add helpers for if_expr and with_expr.
11631         (struct simplify): Add simplify_kind enum and member.  Remove
11632         ifexpr_vec member.
11633         (simplify::simplify): Adjust.
11634         (lower_commutative): Adjust.
11635         (lower_opt_convert): Likewise.
11636         (lower_cond): Likewise.
11637         (replace_id): Handle with_expr and if_expr.
11638         (lower_for): Adjust.
11639         (dt_simplify::gen_1): New recursive worker, split out from ...
11640         (dt_simplify::gen): ... here.  Deal with if and with expansion
11641         recursively.
11642         (capture_info::capture_info): Take context argument
11643         (capture_info::walk_result): Only analyze specific result.
11644         (parser::parse_result): New function.
11645         (parser::parse_simplify): Adjust to parse ifs with then end
11646         else case.
11647         (parser::parse_if): Simplify.
11648         (parser::parse_pattern): Pass down simplify kind.
11649         * match.pd: Convert if structure to new syntax.
11651 2015-07-13  Marek Polacek  <polacek@redhat.com>
11653         * rtl.c (rtx_equal_p_cb): Fix typo.
11655 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
11657         * omega.h: Don't include config.h, don't include params.h again if
11658         omega.h has already been included.
11659         * graphite-poly.h: Include sese.h.
11660         * graphite.c: Don't include sese.h, remove needless includes and
11661         minimize includes outside #ifdef HAVE_isl block.
11662         * graphite-blocking.c: Don't include sese.h, remove needless includes,
11663         and wrap entire file in #ifdef HAVE_isl
11664         * graphite-dependences.c: Likewise.
11665         * graphite-interchange.c: Likewise.
11666         * graphite-isl-ast-to-gimple.c: Likewise.
11667         * graphite-optimize-isl.c: Likewise.
11668         * graphite-poly.c: Likewise.
11669         * graphite-scop-detection.c: Likewise.
11670         * graphite-sese-to-poly.c: Likewise.
11672 2015-07-13  Tom de Vries  <tom@codesourcery.com>
11674         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
11676 2015-07-13  Renlin Li  <renlin.li@arm.com>
11678         PR rtl/66556
11679         * simplify-rtx.c (simplify_const_relational_operation): Add
11680         side_effects_p checks.
11682 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
11684         * bitmap.h: Fix double word typos.
11685         * builtins.c: Same.
11686         * calls.c: Same.
11687         * cfgloopmanip.c: Same.
11688         * cgraph.c: Same.
11689         * cgraph.h: Same.
11690         * cgraphclones.c: Same.
11691         * combine.c: Same.
11692         * config/aarch64/aarch64-protos.h: Same.
11693         * config/aarch64/aarch64.c: Same.
11694         * config/aarch64/aarch64.md: Same.
11695         * config/arm/arm.md: Same.
11696         * config/arm/arm1020e.md: Same.
11697         * config/arm/arm1026ejs.md: Same.
11698         * config/arm/arm926ejs.md: Same.
11699         * config/arm/fa526.md: Same.
11700         * config/arm/fa606te.md: Same.
11701         * config/arm/fa626te.md: Same.
11702         * config/arm/fa726te.md: Same.
11703         * config/arm/fmp626.md: Same.
11704         * config/darwin.c: Same.
11705         * config/epiphany/epiphany.c: Same.
11706         * config/frv/frv.c: Same.
11707         * config/ft32/ft32.c: Same.
11708         * config/gnu-user.h: Same.
11709         * config/h8300/constraints.md: Same.
11710         * config/i386/i386.c: Same.
11711         * config/i386/i386.md: Same.
11712         * config/iq2000/iq2000.md: Same.
11713         * config/mips/mips.c: Same.
11714         * config/mmix/mmix.md: Same.
11715         * config/moxie/moxie.c: Same.
11716         * config/nds32/nds32.md: Same.
11717         * config/pa/pa.h: Same.
11718         * config/rs6000/aix.h: Same.
11719         * config/rs6000/rs6000.h: Same.
11720         * config/sh/sh.c: Same.
11721         * config/tilegx/tilegx.md: Same.
11722         * config/tilepro/gen-mul-tables.cc: Same.
11723         * cse.c: Same.
11724         * dbxout.c: Same.
11725         * doc/invoke.texi: Same.
11726         * dse.c: Same.
11727         * dwarf2out.c: Same.
11728         * final.c: Same.
11729         * gcc.c: Same.
11730         * genmatch.c: Same.
11731         * gimplify.c: Same.
11732         * hash-table.h: Same.
11733         * internal-fn.c: Same.
11734         * ipa-cp.c: Same.
11735         * ipa-devirt.c: Same.
11736         * ipa-icf.c: Same.
11737         * ipa-icf.h: Same.
11738         * ipa-profile.c: Same.
11739         * ipa-prop.c: Same.
11740         * ipa-prop.h: Same.
11741         * ira.c: Same.
11742         * omp-low.c: Same.
11743         * reg-stack.c: Same.
11744         * regcprop.c: Same.
11745         * reorg.c: Same.
11746         * rtl.h: Same.
11747         * sbitmap.h: Same.
11748         * tree-eh.c: Same.
11749         * tree-inline.c: Same.
11750         * tree-sra.c: Same.
11751         * tree-ssa-dom.c: Same.
11752         * tree-ssa-loop-ivopts.c: Same.
11753         * tree-ssa-structalias.c: Same.
11754         * tree-ssa-tail-merge.c: Same.
11755         * tree-ssa-ter.c: Same.
11756         * tree-ssa-threadupdate.c: Same.
11757         * tree-ssa-uninit.c: Same.
11758         * tree-ssanames.c: Same.
11759         * tree-vect-loop-manip.c: Same.
11760         * tree-vrp.c: Same.
11761         * tree.c: Same.
11762         * valtrack.c: Same.
11763         * vec.h: Same.
11765 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11767         PR middle-end/66726
11768         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
11769         tree_ssa_phiopt_worker): Call it.
11771 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11773         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
11774         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
11775         REG_EQUAL note.
11777 2015-07-11  Marek Polacek  <polacek@redhat.com>
11779         PR middle-end/66353
11780         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
11781         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
11782         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
11783         rather than bb_has_abnormal_call_pred.
11784         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
11785         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
11786         rather than bb_has_abnormal_call_pred.
11788 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
11790         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11791         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
11792         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11793         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
11794         v850_legitimate_address_p): New functions.
11795         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11797 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11799         PR target/66819
11800         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11801         indirect sibcall with register arguments if register available
11802         for argument passing.
11803         (init_cumulative_args): Set cfun->machine->arg_reg_available
11804         to (cum->nregs > 0) or to true if function has a variable
11805         argument list.
11806         (function_arg_advance_32): Set cfun->machine->arg_reg_available
11807         to false if cum->nregs <= 0.
11808         * config/i386/i386.h (machine_function): Add arg_reg_available.
11810 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
11812         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
11813         and gen_higpart instead of gen_rtx_SUBREG.
11814         * config/i386/i386.md
11815         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
11816         (read-modify peephole2): Use gen_lowpart instead of
11817         gen_rtx_SUBREG for operand 5.
11819 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
11821         * config/tilepro/gen-mul-tables.cc (main): Change include list for
11822         generated files.
11823         * config/tilepro/mul-tables.c: Regenerate.
11824         * config/tilegx/mul-tables.c: Regenerate.
11826 2015-07-10  Richard Biener  <rguenther@suse.de>
11828         * fold-const.c (distribute_bit_expr): Remove.
11829         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
11830         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
11831         to A & (B | C) and simplifying A << C1 << C2 to ...
11832         * match.pd: ... patterns here.
11834 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
11836         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11837         Mark mem as READONLY and NOTRAP for PIC symbol.
11839 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
11841         * gimple-predict.h: New file.
11842         (gimple_predict_predictor, gimple_predict_set_predictor,
11843         gimple_predict_outcome, gimple_predict_set_outcome,
11844         gimple_build_predict): Relocate here.
11845         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
11846         gimple_predict_outcome, gimple_predict_set_outcome): Move to
11847         gimple-predict.h.
11848         * gimple.c (gimple_build_predict): Move to gimple-predict.h
11849         * basic-block.h: Don't include cfghooks.h.
11850         * backend.h: Don't include predict.h.
11851         * cfghooks.h: Include predict.h.
11852         * gimple-pretty-print.c: Include gimple-predict.h.
11853         * gimplify.c: Likwise.
11854         * predict.c: Adjust includes.
11855         * tree-inline.c: Likewise.
11856         * asan.c: Likewise.
11857         * auto-inc-dec.c: Likewise.
11858         * auto-profile.c: Likewise.
11859         * bb-reorder.c: Likewise.
11860         * builtins.c: Likewise.
11861         * caller-save.c: Likewise.
11862         * calls.c: Likewise.
11863         * cfganal.c: Likewise.
11864         * cfgbuild.c: Likewise.
11865         * cfg.c: Likewise.
11866         * cfgcleanup.c: Likewise.
11867         * cfgexpand.c: Likewise.
11868         * cfghooks.c: Likewise.
11869         * cfgloopanal.c: Likewise.
11870         * cfgloop.c: Likewise.
11871         * cfgloopmanip.c: Likewise.
11872         * cfgrtl.c: Likewise.
11873         * cgraph.c: Likewise.
11874         * cgraphunit.c: Likewise.
11875         * combine.c: Likewise.
11876         * cprop.c: Likewise.
11877         * cse.c: Likewise.
11878         * dce.c: Likewise.
11879         * dojump.c: Likewise.
11880         * dse.c: Likewise.
11881         * except.c: Likewise.
11882         * expmed.c: Likewise.
11883         * expr.c: Likewise.
11884         * final.c: Likewise.
11885         * fold-const.c: Likewise.
11886         * function.c: Likewise.
11887         * fwprop.c: Likewise.
11888         * gcc-plugin.h: Likewise.
11889         * gcse.c: Likewise.
11890         * genattrtab.c: Likewise.
11891         * genemit.c: Likewise.
11892         * gengtype.c: Likewise.
11893         * genopinit.c: Likewise.
11894         * genoutput.c: Likewise.
11895         * genpreds.c: Likewise.
11896         * genrecog.c: Likewise.
11897         * gimple-fold.c: Likewise.
11898         * gimple-iterator.c: Likewise.
11899         * gimple-ssa-isolate-paths.c: Likewise.
11900         * gimple-ssa-strength-reduction.c: Likewise.
11901         * graph.c: Likewise.
11902         * graphite-blocking.c: Likewise.
11903         * graphite.c: Likewise.
11904         * graphite-dependences.c: Likewise.
11905         * graphite-interchange.c: Likewise.
11906         * graphite-isl-ast-to-gimple.c: Likewise.
11907         * graphite-optimize-isl.c: Likewise.
11908         * graphite-poly.c: Likewise.
11909         * graphite-scop-detection.c: Likewise.
11910         * graphite-sese-to-poly.c: Likewise.
11911         * haifa-sched.c: Likewise.
11912         * ifcvt.c: Likewise.
11913         * internal-fn.c: Likewise.
11914         * ipa-cp.c: Likewise.
11915         * ipa-profile.c: Likewise.
11916         * ipa-split.c: Likewise.
11917         * ipa-utils.c: Likewise.
11918         * ira-build.c: Likewise.
11919         * ira-color.c: Likewise.
11920         * ira-conflicts.c: Likewise.
11921         * ira-costs.c: Likewise.
11922         * ira-emit.c: Likewise.
11923         * ira-lives.c: Likewise.
11924         * jump.c: Likewise.
11925         * loop-doloop.c: Likewise.
11926         * loop-init.c: Likewise.
11927         * loop-invariant.c: Likewise.
11928         * loop-unroll.c: Likewise.
11929         * lower-subreg.c: Likewise.
11930         * lra-assigns.c: Likewise.
11931         * lra.c: Likewise.
11932         * lra-coalesce.c: Likewise.
11933         * lra-constraints.c: Likewise.
11934         * lra-lives.c: Likewise.
11935         * lto-cgraph.c: Likewise.
11936         * lto-streamer-in.c: Likewise.
11937         * mode-switching.c: Likewise.
11938         * modulo-sched.c: Likewise.
11939         * omp-low.c: Likewise.
11940         * optabs.c: Likewise.
11941         * passes.c: Likewise.
11942         * postreload.c: Likewise.
11943         * postreload-gcse.c: Likewise.
11944         * profile.c: Likewise.
11945         * recog.c: Likewise.
11946         * regstat.c: Likewise.
11947         * reload1.c: Likewise.
11948         * reorg.c: Likewise.
11949         * rtlanal.c: Likewise.
11950         * sched-ebb.c: Likewise.
11951         * sel-sched-ir.c: Likewise.
11952         * sese.c: Likewise.
11953         * shrink-wrap.c: Likewise.
11954         * simplify-rtx.c: Likewise.
11955         * stmt.c: Likewise.
11956         * store-motion.c: Likewise.
11957         * tracer.c: Likewise.
11958         * trans-mem.c: Likewise.
11959         * tree-call-cdce.c: Likewise.
11960         * tree-cfg.c: Likewise.
11961         * tree-cfgcleanup.c: Likewise.
11962         * tree-chkp.c: Likewise.
11963         * tree-complex.c: Likewise.
11964         * tree-eh.c: Likewise.
11965         * tree-if-conv.c: Likewise.
11966         * tree-loop-distribution.c: Likewise.
11967         * tree-outof-ssa.c: Likewise.
11968         * tree-parloops.c: Likewise.
11969         * tree-predcom.c: Likewise.
11970         * tree-pretty-print.c: Likewise.
11971         * tree-profile.c: Likewise.
11972         * tree-sra.c: Likewise.
11973         * tree-ssa.c: Likewise.
11974         * tree-ssa-coalesce.c: Likewise.
11975         * tree-ssa-dce.c: Likewise.
11976         * tree-ssa-dom.c: Likewise.
11977         * tree-ssa-forwprop.c: Likewise.
11978         * tree-ssa-ifcombine.c: Likewise.
11979         * tree-ssa-loop-ch.c: Likewise.
11980         * tree-ssa-loop-im.c: Likewise.
11981         * tree-ssa-loop-ivcanon.c: Likewise.
11982         * tree-ssa-loop-ivopts.c: Likewise.
11983         * tree-ssa-loop-manip.c: Likewise.
11984         * tree-ssa-loop-prefetch.c: Likewise.
11985         * tree-ssa-loop-unswitch.c: Likewise.
11986         * tree-ssa-math-opts.c: Likewise.
11987         * tree-ssa-phiopt.c: Likewise.
11988         * tree-ssa-pre.c: Likewise.
11989         * tree-ssa-reassoc.c: Likewise.
11990         * tree-ssa-sink.c: Likewise.
11991         * tree-ssa-tail-merge.c: Likewise.
11992         * tree-ssa-threadedge.c: Likewise.
11993         * tree-ssa-threadupdate.c: Likewise.
11994         * tree-switch-conversion.c: Likewise.
11995         * tree-tailcall.c: Likewise.
11996         * tree-vect-data-refs.c: Likewise.
11997         * tree-vect-loop.c: Likewise.
11998         * tree-vect-loop-manip.c: Likewise.
11999         * tree-vectorizer.c: Likewise.
12000         * tree-vrp.c: Likewise.
12001         * ubsan.c: Likewise.
12002         * value-prof.c: Likewise.
12003         * varasm.c: Likewise.
12004         * var-tracking.c: Likewise.
12005         * config/aarch64/aarch64-builtins.c: Likewise.
12006         * config/aarch64/aarch64.c: Likewise.
12007         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12008         * config/alpha/alpha.c: Likewise.
12009         * config/arc/arc.c: Likewise.
12010         * config/arm/arm.c: Likewise.
12011         * config/avr/avr.c: Likewise.
12012         * config/bfin/bfin.c: Likewise.
12013         * config/c6x/c6x.c: Likewise.
12014         * config/cr16/cr16.c: Likewise.
12015         * config/cris/cris.c: Likewise.
12016         * config/darwin.c: Likewise.
12017         * config/darwin-c.c: Likewise.
12018         * config/epiphany/epiphany.c: Likewise.
12019         * config/epiphany/mode-switch-use.c: Likewise.
12020         * config/epiphany/resolve-sw-modes.c: Likewise.
12021         * config/fr30/fr30.c: Likewise.
12022         * config/frv/frv.c: Likewise.
12023         * config/ft32/ft32.c: Likewise.
12024         * config/h8300/h8300.c: Likewise.
12025         * config/i386/i386.c: Likewise.
12026         * config/i386/winnt.c: Likewise.
12027         * config/ia64/ia64.c: Likewise.
12028         * config/iq2000/iq2000.c: Likewise.
12029         * config/lm32/lm32.c: Likewise.
12030         * config/m32c/m32c.c: Likewise.
12031         * config/m32r/m32r.c: Likewise.
12032         * config/m68k/m68k.c: Likewise.
12033         * config/mcore/mcore.c: Likewise.
12034         * config/mep/mep.c: Likewise.
12035         * config/microblaze/microblaze.c: Likewise.
12036         * config/mips/mips.c: Likewise.
12037         * config/mmix/mmix.c: Likewise.
12038         * config/mn10300/mn10300.c: Likewise.
12039         * config/moxie/moxie.c: Likewise.
12040         * config/msp430/msp430.c: Likewise.
12041         * config/nds32/nds32.c: Likewise.
12042         * config/nds32/nds32-cost.c: Likewise.
12043         * config/nds32/nds32-fp-as-gp.c: Likewise.
12044         * config/nds32/nds32-intrinsic.c: Likewise.
12045         * config/nds32/nds32-isr.c: Likewise.
12046         * config/nds32/nds32-md-auxiliary.c: Likewise.
12047         * config/nds32/nds32-memory-manipulation.c: Likewise.
12048         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12049         * config/nds32/nds32-predicates.c: Likewise.
12050         * config/nios2/nios2.c: Likewise.
12051         * config/nvptx/nvptx.c: Likewise.
12052         * config/pa/pa.c: Likewise.
12053         * config/pdp11/pdp11.c: Likewise.
12054         * config/rl78/rl78.c: Likewise.
12055         * config/rs6000/rs6000.c: Likewise.
12056         * config/rx/rx.c: Likewise.
12057         * config/s390/s390.c: Likewise.
12058         * config/sh/sh.c: Likewise.
12059         * config/sh/sh-mem.cc: Likewise.
12060         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12061         * config/sh/sh_treg_combine.cc: Likewise.
12062         * config/sparc/sparc.c: Likewise.
12063         * config/spu/spu.c: Likewise.
12064         * config/stormy16/stormy16.c: Likewise.
12065         * config/tilegx/tilegx.c: Likewise.
12066         * config/tilepro/tilepro.c: Likewise.
12067         * config/v850/v850.c: Likewise.
12068         * config/vax/vax.c: Likewise.
12069         * config/visium/visium.c: Likewise.
12070         * config/xtensa/xtensa.c: Likewise.
12072 2015-07-10  Richard Biener  <rguenther@suse.de>
12074         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12075         (decision_tree::gen_gimple): Likewise.
12076         (decision_tree::gen_generic): Likewise.
12078 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12080         PR target/66813
12081         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12082         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12084 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
12086         PR middle-end/66820
12087         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12088         or ORT_TASK contexts.
12089         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12090         is non-zero.
12092 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12094         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12095         above function.
12097 2015-07-10  Tom de Vries  <tom@codesourcery.com>
12099         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12100         insert nit + 1 bound.
12102 2015-07-10  Richard Biener  <rguenther@suse.de>
12104         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12105         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12106         (if_convertible_loop_p_1): For this always compute bb predicates.
12107         (if_convertible_loop_p): And free them.
12109 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12111         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12112         in dump message.
12114 2015-07-10  Richard Biener  <rguenther@suse.de>
12116         PR tree-optimization/66823
12117         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12118         inverted predicate.
12120 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
12122         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12123         to handle mips[32|64]r3 and mips[32|64]r5.
12125 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
12127         PR middle-end/66633
12128         * tree-nested.c (get_static_chain): Or in a flag into
12129         info->static_chain_added.
12130         (get_frame_field, get_nonlocal_debug_decl): Likewise.
12131         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12132         2015-07-01 changes.
12133         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12134         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12135         add it to clauses.
12137         PR tree-optimization/66718
12138         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12139         field.
12140         (vect_simd_lane_linear): New function.
12141         (vectorizable_simd_clone_call): Support using linear arguments for
12142         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12144 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12146         PR target/66821
12147         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12149 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12151         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12152         Use machine mode, not enum machine_mode in the prototype.
12154         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12155         classify 128-bit floating point support.
12156         (FLOAT128_IBM_P): Likewise.
12157         (FLOAT128_VECTOR_P): Likewise.
12158         (FLOAT128_2REG_P): Likewise.
12159         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12160         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12161         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12162         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12164         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12165         tests against TFmode/TDmode, since those modes do not use VSX
12166         addresses.
12167         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12168         support.
12169         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12170         tests against TFmode, etc.
12171         (invalid_e500_subreg): Add tests against IFmode/KFmode.
12172         (reg_offset_addressing_ok_p): Likewise.
12173         (rs6000_legitimate_offset_address_p): Likewise.
12174         (rs6000_legitimize_address): Likewise.
12175         (rs6000_legitimize_reload_address): Likewise.
12176         (rs6000_legitimate_address_p): Clean up tests against TFmode and
12177         TDmode to use the new helper macros, which will include IFmode and
12178         KFmode.
12179         (rs6000_emit_move): Likewise.
12180         (rs6000_darwin64_record_arg_recurse): Likewise.
12181         (print_operand): Likewise.
12182         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12183         that uses a single vector register as a vector and not as a
12184         floating point register in terms of the calling sequence.
12185         (rs6000_discover_homogeneous_aggregate): Likewise.
12186         (rs6000_return_in_memory): Likewise.
12187         (init_cumulative_args): Likewise.
12188         (rs6000_function_arg_boundary): Likewise.
12189         (rs6000_function_arg_advance_1): Likewise.
12190         (rs6000_function_arg): Likewise.
12191         (rs6000_pass_by_reference): Likewise.
12192         (rs6000_gimplify_va_arg): Likewise.
12193         (rs6000_secondary_reload_memory): Use machine_mode not enum
12194         machine mode.
12195         (rs6000_split_multireg_move): Use new helper macros.
12196         (spe_func_has_64bit_regs_p): Likewise.
12197         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12198         (output_toc): Use new helper macros.
12199         (rs6000_register_move_cost): Likewise.
12200         (rs6000_function_value): Add IEEE 128-bit floating point calling
12201         sequence support.
12202         (rs6000_libcall_value): Likewise.
12203         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12204         floating point support.
12205         (rs6000_vector_mode_supported_p): Likewise.
12207 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
12209         PR rtl-optimization/66782
12210         * lra-int.h (struct lra_insn_recog_data): Add comment about
12211         clobbered hard regs for arg_hard_regs.
12212         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12213         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12214         Add condition for processing used hard regs.
12215         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12216         Process clobbered hard regs.
12218 2015-07-09  Michael Matz  <matz@suse.de>
12220         * genmatch.c (fprintf_indent): New function.
12221         (operand::gen_transform): Add indent parameter.
12222         (expr::gen_transform, c_expr::gen_transform,
12223         capture::gen_transform): Ditto and use fprintf_indent.
12224         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12225         (dt_operand::gen, dt_operand::gen_predicate,
12226         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12227         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12228         (decision_tree::gen_gimple): Adjust calls and indent generated
12229         code.
12230         (decision_tree::gen_generic): Ditto.
12231         (write_predicate): Ditto.
12233 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12235         PR target/66814
12236         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12237         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12238         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12239         {GENERAL,SSE,MMX}_REG_P where appropriate.
12241 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12243         * lto-streamer.h: Don't include target.h and alloc-pool.h.
12244         * builtins.c: Adjust includes.
12245         * gimple.c: Likewise.
12246         * ipa-icf.c: Likewise.
12247         * lto-opts.c: Likewise.
12248         * ipa-reference.c: Likewise.
12249         * lto-section-out.c: Likewise.
12250         * lto-streamer-in.c: Likewise.
12251         * lto-streamer-out.c: Likewise.
12252         * opts-global.c: Likewise.
12253         * symtab.c: Likewise.
12254         * tree-chkp.c: Likewise.
12255         * tree-ssa-live.c: Likewise.
12256         * tree-streamer-in.c: Likewise.
12257         * tree-streamer-out.c: Likewise.
12258         * config/darwin.c: Likewise.
12259         * config/i386/winnt.c: Likewise.
12261 2015-07-09  Richard Biener  <rguenther@suse.de>
12263         * genmatch.c (struct expr): Add force_single_use flag.
12264         (expr::expr): Add copy constructor.
12265         (capture_info::walk_match): Gather force_single_use captures.
12266         (expr::gen_transform): Use possibly NULLified sequence.
12267         (dt_simplify::gen): Apply single-use restrictions by NULLifying
12268         seq if any constrained expr is not single-use.
12269         (parser::parse_expr): Refactor to allow multiple flags.  Handle
12270         's' flag to force an expression have a single-use if the pattern
12271         simplifies to more than one statement.
12272         * match.pd: Convert most single_use conditionals to :s flags.
12274 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12276         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12277         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12278         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12280 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12282         * flags.h: Don't include flag-types.h or options.h.
12283         * opts-common.c: Adjust includes.
12284         * opts-global.c: Likewise.
12285         * common/config/epiphany/epiphany-common.c: Likewise.
12287 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12289         PR target/66818
12290         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12291         for IA MCU.
12293 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12295         PR target/66817
12296         * config/i386/i386.c (ix86_return_in_memory): Return true
12297         if int_size_in_bytes returns negative for IA MCU.
12299 2015-07-09  Marek Polacek  <polacek@redhat.com>
12301         PR tree-optimization/66718
12302         * Makefile.in (OBJS): Add gimple-laddress.o.
12303         * passes.def: Schedule pass_laddress.
12304         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12305         * tree-pass.h (make_pass_laddress): Declare.
12306         * gimple-laddress.c: New file.
12308 2015-07-09  Richard Biener  <rguenther@suse.de>
12310         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12312 2015-07-09  Richard Biener  <rguenther@suse.de>
12314         PR tree-optimization/66807
12315         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12317 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
12319         * function.c (stack_protect_epilogue): Use if rather than switch for
12320         check targetm.have_stack_protect_test.
12322 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12324         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12325         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12326         * config/arc/arc.h: Likewise.
12327         * config/arm/arm.h: Likewise.
12328         * config/bfin/bfin.h: Likewise.
12329         * config/epiphany/epiphany.h: Likewise.
12330         * config/frv/frv.h: Likewise.
12331         * config/ia64/ia64.h: Likewise.
12332         * config/iq2000/iq2000.h: Likewise.
12333         * config/lm32/lm32.h: Likewise.
12334         * config/m32r/m32r.h: Likewise.
12335         * config/mcore/mcore.h: Likewise.
12336         * config/mep/mep.h: Likewise.
12337         * config/microblaze/microblaze.h: Likewise.
12338         * config/mips/mips.h: Likewise.
12339         * config/mmix/mmix.h: Likewise.
12340         * config/mn10300/mn10300.h: Likewise.
12341         * config/nds32/nds32.h: Likewise.
12342         * config/nios2/nios2.h: Likewise.
12343         * config/pa/pa.h: Likewise.
12344         * config/rl78/rl78.h: Likewise.
12345         * config/sh/sh.h: Likewise.
12346         * config/sparc/sparc.h: Likewise.
12347         * config/stormy16/stormy16.h: Likewise.
12348         * config/tilegx/tilegx.h: Likewise.
12349         * config/tilepro/tilepro.h: Likewise.
12350         * config/v850/v850.h: Likewise.
12351         * config/xtensa/xtensa.h: Likewise.
12352         * doc/tm.texi: Regenerate.
12353         * doc/tm.texi.in: Adjust.
12354         * combine.c (simplify_set): Likewise.
12355         (simplify_comparison): Likewise.
12356         * expr.c (store_constructor): Likewise.
12357         * internal-fn.c (expand_arith_overflow): Likewise.
12358         * reload.c (push_reload): Likewise.
12359         (find_reloads): Likewise.
12360         (find_reloads_subreg_address): Likewise.
12361         * reload1.c (eliminate_regs_1): Likewise.
12362         * rtlanal.c (nonzero_bits1): Likewise.
12363         (num_sign_bit_copies1): Likewise.
12364         * simplify-rtx.c (simplify_truncation): Likewise.
12366 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12368         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12369         of AUTO_INC_DEC with the preprocessor.
12370         * combine.c (combine_instructions): Likewise.
12371         (can_combine_p): Likewise.
12372         (try_combine): Likewise.
12373         * emit-rtl.c (try_split): Likewise.
12374         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12375         * lower-subreg.c (resolve_simple_move): Likewise.
12376         * lra.c (update_inc_notes): Likewise.
12377         * recog.c (asm_operand_ok): Likewise.
12378         (constrain_operands): Likewise.
12379         * regrename.c (scan_rtx_address): Likewise.
12380         * reload.c (update_auto_inc_notes): Likewise.
12381         (reg_inc_found_and_valid_p): Likewise.
12382         * reload1.c (reload): Likewise.
12383         (emit_input_reload_insns): Likewise.
12384         (delete_output_reload): Likewise.
12385         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12386         * valtrack.c (cleanup_auto_inc_dec): Likewise.
12388 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12390         * rtl.h: Always define AUTO_INC_DEC.
12391         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12392         * combine.c (combine_instructions): Likewise.
12393         (can_combine_p): Likewise.
12394         (try_combine): Likewise.
12395         * emit-rtl.c (try_split): Likewise.
12396         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12397         * lower-subreg.c (resolve_simple_move): Likewise.
12398         * lra.c (update_inc_notes): Likewise.
12399         * recog.c (asm_operand_ok): Likewise.
12400         (constrain_operands): Likewise.
12401         * regrename.c (scan_rtx_address): Likewise.
12402         * reload.c (update_auto_inc_notes): Likewise.
12403         (find_equiv_reg): Likewise.
12404         * reload1.c (reload): Likewise.
12405         (reload_as_needed): Likewise.
12406         (choose_reload_regs): Likewise.
12407         (emit_input_reload_insns): Likewise.
12408         (delete_output_reload): Likewise.
12409         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12410         * valtrack.c (cleanup_auto_inc_dec): Likewise.
12412 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12414         * combine.c (can_combine_def_p): Don't check the value of
12415         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12416         (combinable_i3pat): Likewise.
12417         (mark_used_regs_combine): Likewise.
12418         * regrename.c (rename_chains): Likewise.
12419         * reload.c (find_reloads_address): Likewise.
12420         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12422 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12424         * combine.c (update_rsp_from_reg_equal): Don't check if
12425         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12426         (reg_nonzero_bits_for_combine): Likewise.
12427         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12428         1.
12429         * config/frv/frv.h: Likewise.
12430         * config/lm32/lm32.h: Likewise.
12431         * config/mep/mep.h: Likewise.
12432         * config/mips/mips.h: Likewise.
12433         * config/rs6000/rs6000.h: Likewise.
12434         * config/sh/sh.h: Likewise.
12435         * config/tilegx/tilegx.h (enum reg_class): Likewise.
12436         * config/tilepro/tilepro.h: Likewise.
12437         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
12438         * doc/tm.texi: Regenerate.
12439         * doc/tm.texi.in: Adjust.
12440         * rtlanal.c (nonzero_bits1): Likewise.
12442 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12444         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
12445         with the preprocessor.
12446         (combine_instructions): Likewise.
12447         (try_combine): Likewise.
12448         (subst): Likewise.
12449         (distribute_notes): Likewise.
12451 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12453         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
12454         defined.
12455         (simplify_set): Likewise.
12456         * cse.c (cse_insn): Likewise.
12457         * fold-const.c (fold_single_bit_test): Likewise.
12458         (fold_unary_loc): Likewise.
12459         * postreload.c (reload_cse_simplify_set): Likewise.
12460         (reload_cse_simplify_operands): Likewise.
12462 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
12464         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
12465         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
12467 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
12469         PR target/66746
12470         * config/i386/x86intrin.h: Include <adxintrin.h> even if
12471         __iamcu__ is defined.
12473 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12475         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
12477 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
12479         PR target/66523
12480         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
12481         names from preservation.
12483 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
12485         PR target/66806
12486         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
12487         change for IAMCU.
12488         (function_arg_advance_32): Don't pass vectors in registers for
12489         IAMCU.
12490         (function_arg_32): Likewise.
12491         (ix86_return_in_memory): Don't return vectors in registers for
12492         IAMCU.
12494 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
12496         PR middle-end/66334
12497         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
12498         hard regno live at the start of BB with incoming abnormal edges.
12499         * lra-lives.c (process_bb_lives): Ditto.
12501 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
12503         PR libgomp/65099
12504         * config/nvptx/mkoffload.c (main): Create an offload image only in
12505         64-bit configurations.
12507 2015-07-08  Martin Liska  <mliska@suse.cz>
12509         PR bootstrap/66744
12510         * tree-sra.c (create_access_1): Call ctor without brackets.
12511         (create_artificial_child_access): Likewise.
12513 2015-07-08  Richard Biener  <rguenther@suse.de>
12515         PR tree-optimization/66793
12516         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
12517         Properly split the block after stmts ending it.
12519 2015-07-08  Richard Biener  <rguenther@suse.de>
12521         PR tree-optimization/66794
12522         * passes.c (execute_function_todo): Assert that post-dominators
12523         are not computed.
12524         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
12525         Free post-dominators.
12527 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12529         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
12530         with early exit.
12532 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12534         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
12535         more than or equal 8 and less than 32 when optimizing for size.
12537 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12539         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
12540         COSTS_N_INSNS (1) and increment it appropriately throughout the
12541         function.
12543 2015-07-08  Richard Biener  <rguenther@suse.de>
12545         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
12547 2015-07-08  Alan Modra  <amodra@gmail.com>
12549         * target.def (rtx_costs): Remove "code" param, add "mode".
12550         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
12551         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
12552         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
12553         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
12554         call.  Track mode when given in rtx.
12555         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
12556         (default_address_cost): Pass Pmode to rtx_cost.
12557         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
12558         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
12559         with NULL set.
12560         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
12561         (notreg_cost): Add mode param.  Use it.
12562         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
12563         mode param and pass to set_src_cost.  Update all calls.
12564         (hash_scan_set): Formatting.
12565         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
12566         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
12567         * hooks.h: Ditto.
12568         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
12569         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
12570         emit_store_flag): Update set_src_cost and rtx_cost calls.
12571         * auto-inc-dec.c (attempt_change): Likewise.
12572         * calls.c (precompute_register_parameters): Likewise.
12573         * combine.c (expand_compound_operation, make_extraction,
12574         force_to_mode, distribute_and_simplify_rtx): Likewise.
12575         * dojump.c (prefer_and_bit_test): Likewise.
12576         * dse.c (find_shift_sequence): Likewise.
12577         * expr.c (compress_float_constant): Likewise.
12578         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
12579         * ifcvt.c (noce_try_sign_mask): Likewise.
12580         * loop-doloop.c (doloop_optimize): Likewise.
12581         * loop-invariant.c (create_new_invariant): Likewise.
12582         * lower-subreg.c (shift_cost, compute_costs): Likewise.
12583         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
12584         lshift_cheap_p): Likewise.
12585         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
12586         try_replace_in_use, reload_cse_move2add): Likewise.
12587         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
12588         Likewise.
12589         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12590         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12591         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
12592         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12593         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
12594         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
12595         to rtx_cost calls.
12596         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
12597         * config/arc/arc.c (arc_rtx_costs): Likewise.
12598         * config/arm/arm.c (arm_rtx_costs): Likewise.
12599         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
12600         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
12601         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
12602         * config/cris/cris.c (cris_rtx_costs): Likewise.
12603         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
12604         * config/frv/frv.c (frv_rtx_costs): Likewise.
12605         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
12606         * config/i386/i386.c (ix86_rtx_costs): Likewise.
12607         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
12608         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
12609         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
12610         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
12611         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
12612         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
12613         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
12614         * config/mep/mep.c (mep_rtx_cost): Likewise.
12615         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
12616         * config/mips/mips.c (mips_rtx_costs): Likewise.
12617         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
12618         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
12619         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
12620         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
12621         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
12622         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
12623         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
12624         * config/pa/pa.c (hppa_rtx_costs): Likewise.
12625         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
12626         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
12627         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
12628         * config/s390/s390.c (s390_rtx_costs): Likewise.
12629         * config/sh/sh.c (sh_rtx_costs): Likewise.
12630         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
12631         * config/spu/spu.c (spu_rtx_costs): Likewise.
12632         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
12633         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
12634         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
12635         * config/v850/v850.c (v850_rtx_costs): Likewise.
12636         * config/vax/vax.c (vax_rtx_costs): Likewise.
12637         * config/visium/visium.c (visium_rtx_costs): Likewise.
12638         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
12639         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
12640         "code" param, and pass as outer_code to first rtx_cost call.  Pass
12641         mode to rtx_cost calls.
12642         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
12643         calls.
12644         (aarch64_rtx_costs_wrapper): Update.
12645         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
12646         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
12647         rtx_cost calls.
12648         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
12649         and rtx_cost calls.
12650         (avr_operand_rtx_cost): Similarly.
12651         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
12652         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
12653         * config/mips/mips.c (mips_stack_address_p): Comment typo.
12654         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
12655         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
12656         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
12657         rtx_cost.
12658         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
12659         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
12660         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
12661         * doc/tm.texi: Regenerate.
12663 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
12665         * tree-core.h: Include symtab.h.
12666         * rtl.h: Include hard-reg-set.h but not flags.h.
12667         (HARD_CONST): Remove condition compilation involving HARD_CONST since
12668         hard-reg-set.h is always included.
12669         * regs.h: Don't include hard-reg-set.h or rtl.h.
12670         * cfg.h: Include dominance.h.
12671         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
12672         * backend.h: New.  Aggregate commonly used backend header files.
12673         * gimple-ssa.h: Don't include tree-hasher.h.
12674         * ssa.h: New.  Aggregate commonly used SSA header files.
12675         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
12676         * sel-sched-ir.h: Flatten includes.
12677         * lra-int.h: Flatten completely.
12678         * sel-sched-dump.h: Flatten includes.
12679         * ira-int.h: Flatten includes.
12680         * gimple-streamer.h: Remove all includes.
12681         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
12682         * resource.h: Flatten hard-reg-set.h and df.h.
12683         * sched-int.h: Flatten insn-arrt.h and df.h.
12684         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
12685         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
12686         * genattrtab.c (write_header): Adjust generated includes.
12687         * genautomata.c (main): Likewise.
12688         * genconditions.c (write-header): Likewise.
12689         * genemit.c (main): Likewise.
12690         * gengtype.c (open_base_files): Likewise.
12691         * genopinit.c (main): Likewise.
12692         * genoutput.c (output_prologue): Likewise.
12693         * genpeep.c (main): Likewise.
12694         * genpreds.c (write_insn_preds_c): Likewise.
12695         * genrecog.c (write_header): Likewise.
12696         * alias.c: Adjust includes.
12697         * asan.c: Likewise.
12698         * attribs.c: Likewise.
12699         * auto-inc-dec.c: Likewise.
12700         * auto-profile.c: Likewise.
12701         * bb-reorder.c: Likewise.
12702         * bt-load.c: Likewise.
12703         * builtins.c: Likewise.
12704         * caller-save.c: Likewise.
12705         * calls.c: Likewise.
12706         * ccmp.c: Likewise.
12707         * cfg.c: Likewise.
12708         * cfganal.c: Likewise.
12709         * cfgbuild.c: Likewise.
12710         * cfgcleanup.c: Likewise.
12711         * cfgexpand.c: Likewise.
12712         * cfghooks.c: Likewise.
12713         * cfgloop.c: Likewise.
12714         * cfgloopanal.c: Likewise.
12715         * cfgloopmanip.c: Likewise.
12716         * cfgrtl.c: Likewise.
12717         * cgraph.c: Likewise.
12718         * cgraphbuild.c: Likewise.
12719         * cgraphclones.c: Likewise.
12720         * cgraphunit.c: Likewise.
12721         * cilk-common.c: Likewise.
12722         * combine-stack-adj.c: Likewise.
12723         * combine.c: Likewise.
12724         * compare-elim.c: Likewise.
12725         * convert.c: Likewise.
12726         * coverage.c: Likewise.
12727         * cppbuiltin.c: Likewise.
12728         * cprop.c: Likewise.
12729         * cse.c: Likewise.
12730         * cselib.c: Likewise.
12731         * data-streamer-in.c: Likewise.
12732         * data-streamer-out.c: Likewise.
12733         * data-streamer.c: Likewise.
12734         * dbxout.c: Likewise.
12735         * dce.c: Likewise.
12736         * ddg.c: Likewise.
12737         * debug.c: Likewise.
12738         * df-core.c: Likewise.
12739         * df-problems.c: Likewise.
12740         * df-scan.c: Likewise.
12741         * dfp.c: Likewise.
12742         * dojump.c: Likewise.
12743         * dominance.c: Likewise.
12744         * domwalk.c: Likewise.
12745         * double-int.c: Likewise.
12746         * dse.c: Likewise.
12747         * dumpfile.c: Likewise.
12748         * dwarf2asm.c: Likewise.
12749         * dwarf2cfi.c: Likewise.
12750         * dwarf2out.c: Likewise.
12751         * emit-rtl.c: Likewise.
12752         * et-forest.c: Likewise.
12753         * except.c: Likewise.
12754         * explow.c: Likewise.
12755         * expmed.c: Likewise.
12756         * expr.c: Likewise.
12757         * final.c: Likewise.
12758         * fixed-value.c: Likewise.
12759         * fold-const.c: Likewise.
12760         * function.c: Likewise.
12761         * fwprop.c: Likewise.
12762         * gcc-plugin.h: Likewise.
12763         * gcse-common.c: Likewise.
12764         * gcse.c: Likewise.
12765         * generic-match-head.c: Likewise.
12766         * ggc-page.c: Likewise.
12767         * gimple-builder.c: Likewise.
12768         * gimple-expr.c: Likewise.
12769         * gimple-fold.c: Likewise.
12770         * gimple-iterator.c: Likewise.
12771         * gimple-low.c: Likewise.
12772         * gimple-match-head.c: Likewise.
12773         * gimple-pretty-print.c: Likewise.
12774         * gimple-ssa-isolate-paths.c: Likewise.
12775         * gimple-ssa-strength-reduction.c: Likewise.
12776         * gimple-streamer-in.c: Likewise.
12777         * gimple-streamer-out.c: Likewise.
12778         * gimple-walk.c: Likewise.
12779         * gimple.c: Likewise.
12780         * gimplify-me.c: Likewise.
12781         * gimplify.c: Likewise.
12782         * godump.c: Likewise.
12783         * graph.c: Likewise.
12784         * graphite-blocking.c: Likewise.
12785         * graphite-dependences.c: Likewise.
12786         * graphite-interchange.c: Likewise.
12787         * graphite-isl-ast-to-gimple.c: Likewise.
12788         * graphite-optimize-isl.c: Likewise.
12789         * graphite-poly.c: Likewise.
12790         * graphite-scop-detection.c: Likewise.
12791         * graphite-sese-to-poly.c: Likewise.
12792         * graphite.c: Likewise.
12793         * haifa-sched.c: Likewise.
12794         * hw-doloop.c: Likewise.
12795         * ifcvt.c: Likewise.
12796         * init-regs.c: Likewise.
12797         * internal-fn.c: Likewise.
12798         * ipa-chkp.c: Likewise.
12799         * ipa-comdats.c: Likewise.
12800         * ipa-cp.c: Likewise.
12801         * ipa-devirt.c: Likewise.
12802         * ipa-icf-gimple.c: Likewise.
12803         * ipa-icf.c: Likewise.
12804         * ipa-inline-analysis.c: Likewise.
12805         * ipa-inline-transform.c: Likewise.
12806         * ipa-inline.c: Likewise.
12807         * ipa-polymorphic-call.c: Likewise.
12808         * ipa-profile.c: Likewise.
12809         * ipa-prop.c: Likewise.
12810         * ipa-pure-const.c: Likewise.
12811         * ipa-ref.c: Likewise.
12812         * ipa-reference.c: Likewise.
12813         * ipa-split.c: Likewise.
12814         * ipa-utils.c: Likewise.
12815         * ipa-visibility.c: Likewise.
12816         * ipa.c: Likewise.
12817         * ira-build.c: Likewise.
12818         * ira-color.c: Likewise.
12819         * ira-conflicts.c: Likewise.
12820         * ira-costs.c: Likewise.
12821         * ira-emit.c: Likewise.
12822         * ira-lives.c: Likewise.
12823         * ira.c: Likewise.
12824         * jump.c: Likewise.
12825         * langhooks.c: Likewise.
12826         * lcm.c: Likewise.
12827         * loop-doloop.c: Likewise.
12828         * loop-init.c: Likewise.
12829         * loop-invariant.c: Likewise.
12830         * loop-iv.c: Likewise.
12831         * loop-unroll.c: Likewise.
12832         * lower-subreg.c: Likewise.
12833         * lra-assigns.c: Likewise.
12834         * lra-coalesce.c: Likewise.
12835         * lra-constraints.c: Likewise.
12836         * lra-eliminations.c: Likewise.
12837         * lra-lives.c: Likewise.
12838         * lra-remat.c: Likewise.
12839         * lra-spills.c: Likewise.
12840         * lra.c: Likewise.
12841         * lto-cgraph.c: Likewise.
12842         * lto-compress.c: Likewise.
12843         * lto-opts.c: Likewise.
12844         * lto-section-in.c: Likewise.
12845         * lto-section-out.c: Likewise.
12846         * lto-streamer-in.c: Likewise.
12847         * lto-streamer-out.c: Likewise.
12848         * lto-streamer.c: Likewise.
12849         * mcf.c: Likewise.
12850         * mode-switching.c: Likewise.
12851         * modulo-sched.c: Likewise.
12852         * omega.c: Likewise.
12853         * omp-low.c: Likewise.
12854         * optabs.c: Likewise.
12855         * opts-global.c: Likewise.
12856         * passes.c: Likewise.
12857         * plugin.c: Likewise.
12858         * postreload-gcse.c: Likewise.
12859         * postreload.c: Likewise.
12860         * predict.c: Likewise.
12861         * print-rtl.c: Likewise.
12862         * print-tree.c: Likewise.
12863         * profile.c: Likewise.
12864         * real.c: Likewise.
12865         * realmpfr.c: Likewise.
12866         * recog.c: Likewise.
12867         * ree.c: Likewise.
12868         * reg-stack.c: Likewise.
12869         * regcprop.c: Likewise.
12870         * reginfo.c: Likewise.
12871         * regrename.c: Likewise.
12872         * regstat.c: Likewise.
12873         * reload.c: Likewise.
12874         * reload1.c: Likewise.
12875         * reorg.c: Likewise.
12876         * resource.c: Likewise.
12877         * rtl-chkp.c: Likewise.
12878         * rtlanal.c: Likewise.
12879         * rtlhooks.c: Likewise.
12880         * sanopt.c: Likewise.
12881         * sched-deps.c: Likewise.
12882         * sched-ebb.c: Likewise.
12883         * sched-rgn.c: Likewise.
12884         * sched-vis.c: Likewise.
12885         * sdbout.c: Likewise.
12886         * sel-sched-dump.c: Likewise.
12887         * sel-sched-ir.c: Likewise.
12888         * sel-sched.c: Likewise.
12889         * sese.c: Likewise.
12890         * shrink-wrap.c: Likewise.
12891         * simplify-rtx.c: Likewise.
12892         * stack-ptr-mod.c: Likewise.
12893         * stmt.c: Likewise.
12894         * stor-layout.c: Likewise.
12895         * store-motion.c: Likewise.
12896         * stringpool.c: Likewise.
12897         * symtab.c: Likewise.
12898         * target-globals.c: Likewise.
12899         * targhooks.c: Likewise.
12900         * toplev.c: Likewise.
12901         * tracer.c: Likewise.
12902         * trans-mem.c: Likewise.
12903         * tree-affine.c: Likewise.
12904         * tree-browser.c: Likewise.
12905         * tree-call-cdce.c: Likewise.
12906         * tree-cfg.c: Likewise.
12907         * tree-cfgcleanup.c: Likewise.
12908         * tree-chkp-opt.c: Likewise.
12909         * tree-chkp.c: Likewise.
12910         * tree-chrec.c: Likewise.
12911         * tree-complex.c: Likewise.
12912         * tree-data-ref.c: Likewise.
12913         * tree-dfa.c: Likewise.
12914         * tree-diagnostic.c: Likewise.
12915         * tree-dump.c: Likewise.
12916         * tree-eh.c: Likewise.
12917         * tree-emutls.c: Likewise.
12918         * tree-if-conv.c: Likewise.
12919         * tree-inline.c: Likewise.
12920         * tree-into-ssa.c: Likewise.
12921         * tree-iterator.c: Likewise.
12922         * tree-loop-distribution.c: Likewise.
12923         * tree-nested.c: Likewise.
12924         * tree-nrv.c: Likewise.
12925         * tree-object-size.c: Likewise.
12926         * tree-outof-ssa.c: Likewise.
12927         * tree-parloops.c: Likewise.
12928         * tree-phinodes.c: Likewise.
12929         * tree-predcom.c: Likewise.
12930         * tree-pretty-print.c: Likewise.
12931         * tree-profile.c: Likewise.
12932         * tree-scalar-evolution.c: Likewise.
12933         * tree-sra.c: Likewise.
12934         * tree-ssa-address.c: Likewise.
12935         * tree-ssa-alias.c: Likewise.
12936         * tree-ssa-ccp.c: Likewise.
12937         * tree-ssa-coalesce.c: Likewise.
12938         * tree-ssa-copy.c: Likewise.
12939         * tree-ssa-copyrename.c: Likewise.
12940         * tree-ssa-dce.c: Likewise.
12941         * tree-ssa-dom.c: Likewise.
12942         * tree-ssa-dse.c: Likewise.
12943         * tree-ssa-forwprop.c: Likewise.
12944         * tree-ssa-ifcombine.c: Likewise.
12945         * tree-ssa-live.c: Likewise.
12946         * tree-ssa-loop-ch.c: Likewise.
12947         * tree-ssa-loop-im.c: Likewise.
12948         * tree-ssa-loop-ivcanon.c: Likewise.
12949         * tree-ssa-loop-ivopts.c: Likewise.
12950         * tree-ssa-loop-manip.c: Likewise.
12951         * tree-ssa-loop-niter.c: Likewise.
12952         * tree-ssa-loop-prefetch.c: Likewise.
12953         * tree-ssa-loop-unswitch.c: Likewise.
12954         * tree-ssa-loop.c: Likewise.
12955         * tree-ssa-math-opts.c: Likewise.
12956         * tree-ssa-operands.c: Likewise.
12957         * tree-ssa-phiopt.c: Likewise.
12958         * tree-ssa-phiprop.c: Likewise.
12959         * tree-ssa-pre.c: Likewise.
12960         * tree-ssa-propagate.c: Likewise.
12961         * tree-ssa-reassoc.c: Likewise.
12962         * tree-ssa-sccvn.c: Likewise.
12963         * tree-ssa-scopedtables.c: Likewise.
12964         * tree-ssa-sink.c: Likewise.
12965         * tree-ssa-strlen.c: Likewise.
12966         * tree-ssa-structalias.c: Likewise.
12967         * tree-ssa-tail-merge.c: Likewise.
12968         * tree-ssa-ter.c: Likewise.
12969         * tree-ssa-threadedge.c: Likewise.
12970         * tree-ssa-threadupdate.c: Likewise.
12971         * tree-ssa-uncprop.c: Likewise.
12972         * tree-ssa-uninit.c: Likewise.
12973         * tree-ssa.c: Likewise.
12974         * tree-ssanames.c: Likewise.
12975         * tree-stdarg.c: Likewise.
12976         * tree-streamer-in.c: Likewise.
12977         * tree-streamer-out.c: Likewise.
12978         * tree-streamer.c: Likewise.
12979         * tree-switch-conversion.c: Likewise.
12980         * tree-tailcall.c: Likewise.
12981         * tree-vect-data-refs.c: Likewise.
12982         * tree-vect-generic.c: Likewise.
12983         * tree-vect-loop-manip.c: Likewise.
12984         * tree-vect-loop.c: Likewise.
12985         * tree-vect-patterns.c: Likewise.
12986         * tree-vect-slp.c: Likewise.
12987         * tree-vect-stmts.c: Likewise.
12988         * tree-vectorizer.c: Likewise.
12989         * tree-vrp.c: Likewise.
12990         * tree.c: Likewise.
12991         * tsan.c: Likewise.
12992         * ubsan.c: Likewise.
12993         * valtrack.c: Likewise.
12994         * value-prof.c: Likewise.
12995         * var-tracking.c: Likewise.
12996         * varasm.c: Likewise.
12997         * varpool.c: Likewise.
12998         * vmsdbgout.c: Likewise.
12999         * vtable-verify.c: Likewise.
13000         * web.c: Likewise.
13001         * wide-int.cc: Likewise.
13002         * xcoffout.c: Likewise.
13003         * config/aarch64/aarch64-builtins.c: Likewise.
13004         * config/aarch64/aarch64.c: Likewise.
13005         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13006         * config/alpha/alpha.c: Likewise.
13007         * config/arc/arc.c: Likewise.
13008         * config/arm/aarch-common.c: Likewise.
13009         * config/arm/arm-builtins.c: Likewise.
13010         * config/arm/arm-c.c: Likewise.
13011         * config/arm/arm.c: Likewise.
13012         * config/avr/avr-c.c: Likewise.
13013         * config/avr/avr-log.c: Likewise.
13014         * config/avr/avr.c: Likewise.
13015         * config/bfin/bfin.c: Likewise.
13016         * config/c6x/c6x.c: Likewise.
13017         * config/cr16/cr16.c: Likewise.
13018         * config/cris/cris.c: Likewise.
13019         * config/darwin-c.c: Likewise.
13020         * config/darwin.c: Likewise.
13021         * config/epiphany/epiphany.c: Likewise.
13022         * config/epiphany/mode-switch-use.c: Likewise.
13023         * config/epiphany/resolve-sw-modes.c: Likewise.
13024         * config/fr30/fr30.c: Likewise.
13025         * config/frv/frv.c: Likewise.
13026         * config/ft32/ft32.c: Likewise.
13027         * config/h8300/h8300.c: Likewise.
13028         * config/i386/i386-c.c: Likewise.
13029         * config/i386/i386.c: Likewise.
13030         * config/i386/msformat-c.c: Likewise.
13031         * config/i386/winnt-cxx.c: Likewise.
13032         * config/i386/winnt-stubs.c: Likewise.
13033         * config/i386/winnt.c: Likewise.
13034         * config/ia64/ia64-c.c: Likewise.
13035         * config/ia64/ia64.c: Likewise.
13036         * config/iq2000/iq2000.c: Likewise.
13037         * config/lm32/lm32.c: Likewise.
13038         * config/m32c/m32c-pragma.c: Likewise.
13039         * config/m32c/m32c.c: Likewise.
13040         * config/m32r/m32r.c: Likewise.
13041         * config/m68k/m68k.c: Likewise.
13042         * config/mcore/mcore.c: Likewise.
13043         * config/mep/mep-pragma.c: Likewise.
13044         * config/mep/mep.c: Likewise.
13045         * config/microblaze/microblaze-c.c: Likewise.
13046         * config/microblaze/microblaze.c: Likewise.
13047         * config/mips/mips.c: Likewise.
13048         * config/mmix/mmix.c: Likewise.
13049         * config/mn10300/mn10300.c: Likewise.
13050         * config/moxie/moxie.c: Likewise.
13051         * config/msp430/msp430-c.c: Likewise.
13052         * config/msp430/msp430.c: Likewise.
13053         * config/nds32/nds32-cost.c: Likewise.
13054         * config/nds32/nds32-fp-as-gp.c: Likewise.
13055         * config/nds32/nds32-intrinsic.c: Likewise.
13056         * config/nds32/nds32-isr.c: Likewise.
13057         * config/nds32/nds32-md-auxiliary.c: Likewise.
13058         * config/nds32/nds32-memory-manipulation.c: Likewise.
13059         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13060         * config/nds32/nds32-predicates.c: Likewise.
13061         * config/nds32/nds32.c: Likewise.
13062         * config/nios2/nios2.c: Likewise.
13063         * config/nvptx/nvptx.c: Likewise.
13064         * config/pa/pa.c: Likewise.
13065         * config/pdp11/pdp11.c: Likewise.
13066         * config/rl78/rl78-c.c: Likewise.
13067         * config/rl78/rl78.c: Likewise.
13068         * config/rs6000/rs6000-c.c: Likewise.
13069         * config/rs6000/rs6000.c: Likewise.
13070         * config/rx/rx.c: Likewise.
13071         * config/s390/s390-c.c: Likewise.
13072         * config/s390/s390.c: Likewise.
13073         * config/sh/sh-c.c: Likewise.
13074         * config/sh/sh-mem.cc: Likewise.
13075         * config/sh/sh.c: Likewise.
13076         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13077         * config/sh/sh_treg_combine.cc: Likewise.
13078         * config/sol2-c.c: Likewise.
13079         * config/sol2-cxx.c: Likewise.
13080         * config/sol2-stubs.c: Likewise.
13081         * config/sol2.c: Likewise.
13082         * config/sparc/sparc-c.c: Likewise.
13083         * config/sparc/sparc.c: Likewise.
13084         * config/spu/spu-c.c: Likewise.
13085         * config/spu/spu.c: Likewise.
13086         * config/stormy16/stormy16.c: Likewise.
13087         * config/tilegx/mul-tables.c: Likewise.
13088         * config/tilegx/tilegx-c.c: Likewise.
13089         * config/tilegx/tilegx.c: Likewise.
13090         * config/tilepro/mul-tables.c: Likewise.
13091         * config/tilepro/tilepro-c.c: Likewise.
13092         * config/tilepro/tilepro.c: Likewise.
13093         * config/v850/v850-c.c: Likewise.
13094         * config/v850/v850.c: Likewise.
13095         * config/vax/vax.c: Likewise.
13096         * config/visium/visium.c: Likewise.
13097         * config/vms/vms-c.c: Likewise.
13098         * config/vms/vms.c: Likewise.
13099         * config/vxworks.c: Likewise.
13100         * config/xtensa/xtensa.c: Likewise.
13102 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
13104         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13105         Remove operand constraints.  Change operand 2 predicate to
13106         nonmemory operand.  Limit const_int values to mode bitsize.  Only
13107         allow const_int values less than 32 when optimizing for size.
13108         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13109         Remove operand constraints.
13110         (*bt<mode>): Use SImode for const_int values less than 32.
13111         (regmode): Remove mode attribute.
13113 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
13115         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13116         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13117           moxie_legitimate_address_p): New functions.
13118           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13120 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13122         PR tree-optimization/66642
13123         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13124         header comment.  Rename split_edge variable to edge_at_split.  Split
13125         exit edge to create new loop exit bb.  Insert loop exit phis in new
13126         loop exit bb.
13128 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13130         * tree-cfg.c (get_virtual_phi): New function.
13131         * tree-cfg.h (get_virtual_phi): Declare.
13132         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13133         (rewrite_virtuals_into_loop_closed_ssa): New function.
13134         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13135         Declare.
13136         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13137         (transform_to_exit_first_loop_alt): Use
13138         rewrite_virtuals_into_loop_closed_ssa.
13140 2015-07-07  Richard Biener  <rguenther@suse.de>
13142         * fold-const.c (fold_binary_loc): Move
13143         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13144         * match.pd: ... here.
13145         Add (X * C1) % C2 -> 0 simplification pattern derived from
13146         extract_muldiv_1.
13148 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13150         PR target/66780
13151         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13152         change for target/65249.
13154 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
13156         * symtab.c (address_matters_1): Fix typo in comment above.
13157         (can_increase_alignment_p): Likewise.
13159 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13161         * function.c (free_after_compilation): Clear PROP_cfg in
13162         f->curr_properties.
13164 2015-07-07  Richard Biener  <rguenther@suse.de>
13166         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13167         add which use to.
13168         (add_control_edge): Remove excessive vertical space in dumping.
13169         (process_ssa_edge_worklist): Simulate at most one statement and
13170         return whether we did.  Do not simulate PHIs if they are in a
13171         BB not yet simulated.
13172         (ssa_propagate): Adjust to always drain the BB worklist whenever
13173         a BB is available there, likewise the VARYING edges list before
13174         the interesting edge list.
13176 2015-07-07  Christian Bruel  <christian.bruel@st.com>
13178         PR target/52144
13179         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13181 2015-07-07  Richard Biener  <rguenther@suse.de>
13183         PR middle-end/66739
13184         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13185         A - B.
13187 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13189         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
13190         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
13191         Copy operand 0 to a temporary if !ext_register_operand.  Remove
13192         ancient extract_bit_field workaround.
13193         (insv<mode>_1): Rename from mov<mode>_insv_1.
13194         (*insvqi): Rename from *movqi_insv_2.
13195         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13196         for renamed insvsi_1.
13197         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13199 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13201         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
13202         call to nvptx_reorg_subreg.
13204 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
13206         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13207         * graphite-dependencies.c, graphite-interchange.c,
13208         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13209         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13210         Likewise.
13212 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
13214         * match.pd: Remove element_mode inside HONOR_*.
13215         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13216         (~X | X -> -1, ~X ^ X -> -1): Merge.
13217         * tree.c (build_each_one_cst): New function.
13218         * tree.h (build_each_one_cst): Likewise.
13220 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13222         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13223         PROCESSOR_IAMCU.
13225 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
13227         * config.gcc <mips*-*-*>: Add fused-madd.opt.
13228         * config/mips/mips.opt (mfused-madd): Remove.
13229         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13230         * config/mips/mips.h (TARGET_MIPS8000): New.
13231         (ISA_HAS_FP_MADD4_MSUB4): Remove.
13232         (ISA_HAS_FP_MADDF_MSUBF): Remove.
13233         (ISA_HAS_FP_MADD3_MSUB3): Remove.
13234         (ISA_HAS_NMADD4_NMSUB4): Remove.
13235         (ISA_HAS_NMADD3_NMSUB3): Remove.
13236         (ISA_HAS_FUSED_MADD4): New.
13237         (ISA_HAS_UNFUSED_MADD4): New.
13238         (ISA_HAS_FUSED_MADDF): New.
13239         (ISA_HAS_FUSED_MADD3): New.
13240         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13241         (*fma<mode>4_madd3) New.
13242         (*fma<mode>4_madd4) New.
13243         (*fma<mode>4_maddf) New.
13244         (fms<mode>4) New.
13245         (*fms<mode>4_msub3) New.
13246         (*fms<mode>4_msub4) New.
13247         (fnma<mode>4) New.
13248         (*fnma<mode>4_nmadd3) New.
13249         (*fnma<mode>4_nmadd4) New.
13250         (fnms<mode>4) New.
13251         (*fnms<mode>4_nmsub3) New.
13252         (*fnms<mode>4_nmsub4) New.
13253         (*madd4<mode>) Modify to be unfused only.
13254         (*msub4<mode>) Modify to be unfused only.
13255         (*nmadd4<mode>) Modify to be unfused only.
13256         (*nmsub4<mode>) Modify to be unfused only.
13257         (*madd3<mode>) Remove.
13258         (*msub3<mode>) Remove.
13259         (*nmadd3<mode>) Remove.
13260         (*nmsub3<mode>) Remove.
13261         (*nmadd3<mode>_fastmath) Remove.
13262         (*nmsub3<mode>_fastmath) Remove.
13263         (*nmadd4<mode>_fastmath) Update condition.
13264         (*nmsub4<mode>_fastmath) Update condition.
13266 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
13268         PR target/65956
13269         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13270         alignment attribute, exploring one level down for records and arrays.
13272 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13274         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
13275         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
13276         Copy operand 1 to a temporary if !ext_register_operand.  Remove
13277         ancient extract_bit_field workaround.
13278         (*extv<mode>): Rename from *mov<mode>_extv_1.
13279         (*extvqi): Rename from *movqi_extv_1.
13280         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
13281         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
13282         to a temporary if !ext_register_operand.  Remove ancient
13283         extract_bit_field workaround.
13284         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13285         (*extzvqi): Rename from *movqi_extzv_2.
13286         (*testqi_ext_3): Remove modes from const_int_operand predicated
13287         operands.  Add "n" constraint.
13288         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13289         operand.  Add "J" constraint.
13290         (*btsq, *btrq, *btcq peephole2s): Remove mode from
13291         const_0_to_63 predicated operand.
13292         (regmode): New insn attribute.
13293         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
13294         to nonmemory_operand.  Use regmode insn attribute.
13295         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13296         (*jcc_bt<mode>_mask): Remove mode from operand 3.
13297         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13298         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13299         operands.  Use "N" constraint instead of "n".
13301 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
13303         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13305 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13307         PR target/66749
13308         * config/i386/i386.c (iamcu_cost): New.
13309         (m_IAMCU): Likewise.
13310         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13311         (processor_target_table): Add an entry for "iamcu".
13312         (processor_alias_table): Likewise.
13313         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13314         (ix86_adjust_cost): Likewise.
13315         (ia32_multipass_dfa_lookahead): Likewise.
13316         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13317         * config/i386/x86-tune.def: Updated for m_IAMCU.
13319 2015-07-06  Richard Biener  <rguenther@suse.de>
13321         PR tree-optimization/66772
13322         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13323         values are available in the PHI node BB when there are
13324         still unexecutable edges.
13326 2015-07-06  Richard Biener  <rguenther@suse.de>
13328         PR tree-optimization/66767
13329         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13330         Make sure to build the alignment test on a SSA name without
13331         final alignment info valid only if the alignment test
13332         evaluates to true.
13334 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
13336         PR target/66620
13337         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13338         loop start when inserting LSETUP.
13340 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13342         PR target/53383
13343         * config/i386/i386.c (ix86_option_override_internal): Allow
13344         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13346 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13348         * read-md.c (decimal_string): Rename to ...
13349         (md_decimal_string): ... this.
13350         (handle_enum): Reflect this.
13352 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13354         PR target/66731
13355         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13357 2015-07-06  Richard Biener  <rguenther@suse.de>
13359         PR middle-end/66759
13360         * match.pd: Add missing constraint of y to REAL_CST in
13361         REAL_CST - x CMP y to y - CST CMP x simplification.
13363 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
13365         PR tree-optimization/66757
13366         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13368 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
13369             Sandra Loosemore <sandra@codesourcery.com>
13371         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13372         Delete extern declaration.
13373         (gprel_constant_p): Add extern declaration.
13374         * config/nios2/constraints.md ("S"): Use gprel_constant_p
13375         instead of nios2_symbol_ref_in_small_data_p.
13376         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13377         (nios2_symbol_ref_in_small_data_p): Make static.
13378         (gprel_constant_p): Make non-static.
13380 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
13382         * doc/fragments.texi (Target Fragment): Convert debian.org
13383         link to use https.
13384         * doc/install.texi (Configuration): Ditto.
13386 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
13388         PR tree-optimization/66718
13389         * tree-vect-stmts.c (vectorizable_call): Replace uses of
13390         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13392         PR tree-optimization/66718
13393         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13394         vectorizable_load, vectorizable_condition): Move vectype,
13395         nunits, ncopies computation after checking what kind of statement
13396         stmt is.
13398 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13400         * target-insns.def (extv, extzv, insv): New targetm instruction
13401         patterns.
13402         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13403         interface.
13404         * recog.c (simplify_while_replacing): Likewise.
13406 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13408         * target-insns.def (doloop_begin, doloop_end): New targetm
13409         instruction patterns.
13410         * loop-init.c: Include target.h.
13411         (pass_loop2::gate): Use the new targetm patterns instead of
13412         HAVE_*/gen_* interface.
13413         (pass_rtl_doloop::gate): Likewise.
13414         (pass_rtl_doloop::execute): Remove preprocessor condition.
13415         * hw-doloop.c: Build unconditionally.
13416         * loop-doloop.c: Likewise.
13417         (doloop_optimize): Use the new targetm patterns instead of
13418         HAVE_*/gen_* interface.
13419         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13420         * modulo-sched.c (doloop_register_get): Likewise.
13422 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13424         * target-insns.def (clear_cache): New targetm instruction pattern.
13425         * builtins.c (expand_builtin___clear_cache): Use it instead of
13426         HAVE_*/gen_* interface.
13428 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13430         * target-insns.def (allocate_stack, check_stack, probe_stack)
13431         (probe_stack_address, split_stack_prologue, split_stack_space_check):
13432         New targetm instruction patterns.
13433         * explow.c (allocate_dynamic_stack_space): Use them instead of
13434         HAVE_*/gen_* interface.
13435         (emit_stack_probe): Likewise.
13436         (probe_stack_range): Likewise.
13437         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13439 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13441         * target-insns.def (stack_protect_set, stack_protect_test): New
13442         targetm instruction patterns.
13443         * cfgexpand.c (stack_protect_prologue): Use them instead of
13444         HAVE_*/gen_* interface.
13445         * function.c (stack_protect_epilogue): Likewise.
13447 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13449         * expr.h (gen_move_insn_uncast): Delete.
13450         * expr.c (gen_move_insn_uncast): Delete.
13452 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13454         * target-insns.def (restore_stack_block, restore_stack_function)
13455         (restore_stack_nonlocal, save_stack_block, save_stack_function)
13456         (save_stack_nonlocal): New targetm instruction patterns.
13457         * builtins.c (expand_builtin_apply): Use them instead of
13458         HAVE_*/gen_* interface.
13459         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
13461 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13463         * target-insns.def (trap): New targetm instruction pattern.
13464         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
13465         interface.
13466         * explow.c (allocate_dynamic_stack_space): Likewise.
13467         * ifcvt.c (find_if_header): Likewise.
13469 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13471         * target-insns.def (prefetch): New targetm instruction pattern.
13472         * tree-ssa-loop-prefetch.c: Include targeth.
13473         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
13474         of HAVE_*/gen_* interface.
13475         * builtins.c (expand_builtin_prefetch): Likewise.
13476         * toplev.c (process_options): Likewise.
13478 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13480         * target-insns.def (untyped_call, untyped_return): New targetm
13481         instruction patterns.
13482         * builtins.c (expand_builtin_apply): Use them instead of
13483         HAVE_*/gen_* interface.
13484         (result_vector): Define unconditionally.
13486 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13488         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
13489         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
13490         (nonlocal_goto_receiver): New targetm instruction patterns.
13491         * builtins.c (expand_builtin_setjmp_setup): Use them instead
13492         of HAVE_*/gen_* interface.
13493         (expand_builtin_setjmp_receiver): Likewise.
13494         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13495         * except.c (expand_dw2_landing_pad_for_region): Likewise.
13497 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13499         * target.def: Add code_for_* hooks.
13500         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
13501         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
13502         * target-insns.def (casesi, tablejump): New targetm instruction
13503         patterns.
13504         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
13505         (do_tablejump): Likewise.
13506         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
13507         (expand_sjlj_dispatch_table): Likewise.
13508         * targhooks.c (default_case_values_threshold): Likewise.
13510 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
13512         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
13513         Use rtx_insn * instead of rtx.
13514         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
13515         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
13516         (nios2_call_tls_get_addr): Likewise.
13517         (nios2_emit_expensive_div): Likewise.
13518         (nios2_emit_move_sequence): Change return type to bool.
13519         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
13520         Change return type to bool.
13522 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13524         PR target/66747
13525         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
13527 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
13529         PR target/66114
13530         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
13531         of register_operand.  Remove constraint.
13533 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
13535         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
13536         the first argument.
13538 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
13540         * attribs.c (decl_attributes): Guard inform with the return value
13541         of the preceding warning.
13543 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
13545         * doc/invoke.texi (moverride): Move to correct section.
13547 2015-07-03  Richard Biener  <rguenther@suse.de>
13549         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
13550         Copy from tree.c
13551         (dt_operand::gen_gimple_expr): After valueizing operands
13552         re-canonicalize operand order for commutative tree codes.
13554 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
13556         PR target/66746.
13557         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
13558         is defined.
13559         (__crc32w): Likewise.
13560         (__crc32d): Likewise.
13561         (__rdpmc): Likewise.
13562         (__rdtscp): Likewise.
13563         (_rdpmc): Likewise.
13564         (_rdtscp): Likewise.
13565         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
13566         is defined.
13568 2015-07-03  Richard Biener  <rguenther@suse.de>
13570         * fold-const.c (fold_mathfn_compare): Remove.
13571         (fold_inf_compare): Likewise.
13572         (fold_comparison): Move floating point comparison simplifications...
13573         * match.pd: ... to patterns here.  Introduce simple_comparisons
13574         operator list and use it for patterns formerly in fold_comparison.
13576 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
13578         PR tree-optimization/66119
13579         * toplev.c (process_options): Don't set up default values for
13580         the sra_max_scalarization_size_{speed,size} parameters.
13581         * tree-sra (analyze_all_variable_accesses): If no values
13582         have been set for the sra_max_scalarization_size_{speed,size}
13583         parameters, call get_move_ratio to get target defaults.
13585 2015-07-03  Richard Biener  <rguenther@suse.de>
13587         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
13588         * match.pd: ... here.
13590 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
13592         PR target/37072
13593         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
13594         is not actually the default on FreeBSD.
13596 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13598         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
13599         definition.
13600         (CMPGE_8HI): Likewise.
13601         (CMPGE_4SI): Likewise.
13602         (CMPGE_2DI): Likewise.
13603         (CMPGE_U16QI): Likewise.
13604         (CMPGE_U8HI): Likewise.
13605         (CMPGE_U4SI): Likewise.
13606         (CMPGE_U2DI): Likewise.
13607         (CMPLE_16QI): Likewise.
13608         (CMPLE_8HI): Likewise.
13609         (CMPLE_4SI): Likewise.
13610         (CMPLE_2DI): Likewise.
13611         (CMPLE_U16QI): Likewise.
13612         (CMPLE_U8HI): Likewise.
13613         (CMPLE_U4SI): Likewise.
13614         (CMPLE_U2DI): Likewise.
13615         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13616         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
13617         ALTIVEC_BUILTIN_VEC_CMPLE.
13618         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
13619         floating-point vector modes.
13620         (vector_nlt<mode>): New define_expand.
13621         (vector_nltu<mode>): Likewise.
13622         (vector_ngt<mode>): Likewise.
13623         (vector_ngtu<mode>): Likewise.
13625 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
13627         PR rtl-optimization/66706
13628         * combine.c (make_compound_operation): If an AND of SUBREG of
13629         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
13631 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
13633         * tree-pass.h (make_pass_ch_vect): New.
13634         * passes.def: Add pass_ch_vect just before pass_if_conversion.
13636         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
13637         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
13638         make_pass_ch_vect): New.
13639         (pass_ch): Extend ch_base.
13641         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
13642         (ch_base::copy_headers): ...here.
13644 2015-07-02  Richard Biener  <rguenther@suse.de>
13646         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
13647         * fold-const.c (get_pointer_modulus_and_residue): Remove.
13648         (fold_binary_loc): Implement (T)ptr & CST in terms of
13649         get_pointer_alignment_1.
13650         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13651         Make sure to build the alignment test on a SSA name without
13652         final alignment info valid only after the prologue.
13654 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
13656         * config/cris/cris.md ("epilogue"): Remove condition.
13657         ("prologue"): Ditto.
13659 2015-07-02  Richard Biener  <rguenther@suse.de>
13661         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
13662         parameter to record a condition that is false.
13663         (record_conditions): When recording an extra NE_EXPR that is
13664         true also record a EQ_EXPR that is false.
13666 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
13668         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
13669         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
13670         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
13671         (set_iv, find_interesting_uses_address, add_candidate_1): New
13672         argument to alloc_iv.
13673         (find_interesting_uses_op, find_interesting_uses_cond): Don't
13674         duplicate struct iv.
13675         (free_loop_data): Don't free struct iv explicitly.
13676         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
13678 2015-07-01  DJ Delorie  <dj@redhat.com>
13680         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
13681         (LIB_SPEC): Add.
13682         (SUPPORTS_DISCRIMINATOR): Define.
13684 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13686         PR bootstrap/66685
13687         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
13688         there are no CALLs in the same pattern.
13690 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13692         PR rtl-optimization/61047
13693         * rtlanal.c (get_initial_register_offset): New function.
13694         (rtx_addr_can_trap_p_1): Check offsets of stack references.
13696 2015-07-01  Richard Biener  <rguenther@suse.de>
13698         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
13699         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
13700         ~X CMP C -> X CMP' ~C to ...
13701         * match.pd: ... patterns here.
13703 2015-07-01  Nick Clifton  <nickc@redhat.com>
13705         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
13706         a 16-bit value into a 20-bit memory slot.
13708 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
13710         * doc/sourcebuild.texi (AArch64-specific attributes): Document
13711         "aarch64_tiny", "aarch64_small", "aarch64_large",
13712         "aarch64_little_endian", "aarch64_big_endian".
13714 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
13716         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
13717         Document "aarch64_small_fpic".
13719 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
13721         * configure.ac: Add check for aarch64 assembler -fpic relocation
13722         modifier support.
13723         * configure: Regenerate.
13724         * config.in: Regenerate.
13725         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
13726         to -fPIC if not support of -fpic relocation modifier in assembler.
13728 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13730         PR bootstrap/66685
13731         * rtl.c (classify_insn): Handle returns in PARALLELs.
13733 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
13735         PR middle-end/66633
13736         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
13737         to true if the function is nested and if not optimizing.
13738         (convert_local_omp_clauses): Initialize need_frame to true if the
13739         function contains nested functions and if not optimizing.
13741 2015-07-01  Richard Biener  <rguenther@suse.de>
13743         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
13744         (X & Y) ^ Y -> ~X & Y transforms to ...
13745         * match.pd: ... here.
13747 2015-07-01  Richard Biener <rguenther@suse.de>
13749         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
13750         of converts to avoid uninteresting noise from the conversion
13751         simplifying patterns.
13753 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
13755         * config/c6x/c6x.c (try_rename_operands): Do not depend on
13756         gcc_assert evaluating its argument for side-effect.
13758 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
13760         PR target/64833
13761         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
13762         flag_pic is set.
13764 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13766         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
13767         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
13768         (hash_scc): Add this_ref_p and ref_p parameters and pass them
13769         to the inner DFS walk.
13771 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13773         * target-insns.def (jump): New targetm instruction pattern.
13774         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
13775         instead of gen_jump.
13776         (fix_up_crossing_landing_pad): Likewise.
13777         (add_labels_and_missing_jumps): Likewise.
13778         (fix_crossing_conditional_branches): Likewise.
13779         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13780         (force_nonfallthru_and_redirect): Likewise.
13781         * cse.c (cse_insn): Likewise.
13782         * expmed.c (expand_divmod): Likewise.
13783         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
13784         * haifa-sched.c (init_before_recovery): Likewise.
13785         (sched_create_recovery_edges): Likewise.
13786         * ifcvt.c (find_cond_trap): Likewise.
13787         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
13788         (expand_float, expand_fix): Likewise.
13789         * stmt.c (emit_jump): Likewise.
13791 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13793         * defaults.h (HAVE_load_multiple, gen_load_multiple)
13794         (HAVE_store_multiple, gen_store_multiple): Delete.
13795         * target-insns.def (load_multiple, store_multiple): New targetm
13796         instruction patterns.
13797         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
13798         of HAVE_*/gen_* interface.
13800 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13802         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
13803         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
13804         (gen_mem_signal_fence): Delete.
13805         * target-insns.def (mem_signal_fence, mem_thread_fence)
13806         (memory_barrier): New targetm instruction patterns.
13807         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
13808         interface.
13809         (expand_mem_signal_fence): Likewise.
13811 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
13813         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
13814         * target-insns.def (epilogue, prologue, sibcall_prologue): New
13815         targetm instruction patterns.
13816         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
13817         interface.
13818         * calls.c (expand_call): Likewise.
13819         * cfgrtl.c (cfg_layout_finalize): Likewise.
13820         * df-scan.c (df_get_entry_block_def_set): Likewise.
13821         (df_get_exit_block_use_set): Likewise.
13822         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
13823         * final.c (final_start_function): Likewise.
13824         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13825         (reposition_prologue_and_epilogue_notes): Likewise.
13826         * reorg.c (find_end_label): Likewise.
13827         * toplev.c (process_options): Likewise.
13829 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
13831         * typed-splay-tree.h: New file.
13833 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
13835         PR debug/66691
13836         * lra-int.h (lra_substitute_pseudo): Add a parameter.
13837         (lra_substitute_pseudo_within_insn): Ditto.
13838         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
13839         of constant.
13840         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
13841         to lra_substitute_pseudo.
13842         * lra-lives.c (process_bb_lives): Add an argument to
13843         lra_substitute_pseudo_within_insn call.
13844         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
13845         argument to lra_substitute_pseudo and
13846         lra_substitute_pseudo_within_insn calls.
13847         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
13849 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13851         * configure: Regenerated.
13853 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13855         * config.gcc: Support i[34567]86-*-elfiamcu target.
13856         * config/i386/iamcu.h: New.
13857         * config/i386/i386.opt: Add -miamcu.
13858         * doc/invoke.texi: Document -miamcu.
13859         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
13860         off x87/MMX/SSE/AVX codegen for -miamcu.
13861         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13862         __iamcu/__iamcu__ for -miamcu.
13863         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
13864         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
13865         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
13866         * config/i386/i386.c (ix86_option_override_internal): Ignore and
13867         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
13868         MCU by default.  Default long double to 64-bit for Intel MCU.
13869         Turn on -freg-struct-return for Intel MCU.  Issue an error when
13870         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
13871         AVX is turned on.
13872         (function_arg_advance_32): Pass value whose size is no larger
13873         than 8 bytes in registers for Intel MCU.
13874         (function_arg_32): Likewise.
13875         (ix86_return_in_memory): Return value whose size is no larger
13876         than 8 bytes in registers for Intel MCU.
13877         (iamcu_alignment): New function.
13878         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
13879         true.
13880         (ix86_local_alignment): Don't increase alignment for Intel MCU.
13881         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
13882         true.
13884 2015-06-30  Marek Polacek  <polacek@redhat.com>
13886         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
13887         both operands of the resulting expression.
13889         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
13890         the final expression with the operand's type and then convert
13891         it to the type of the expression.
13893 2015-06-30  Richard Biener  <rguenther@suse.de>
13895         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
13896         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
13897         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
13898         * match.pd: ... to patterns here.
13900 2015-06-30  Richard Biener  <rguenther@suse.de>
13902         PR tree-optimization/66704
13903         * tree-vect-data-refs.c (vect_setup_realignment): Use
13904         make_ssa_name for non-SSA name source.
13906 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
13908         PR middle-end/66702
13909         * omp-low.c (simd_clone_adjust): Handle addressable linear
13910         or uniform parameters or non-gimple type uniform parameters.
13912 2015-06-30  Richard Biener  <rguenther@suse.de>
13914         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
13915         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
13916         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
13917         * match.pd: ... here.
13918         Add a few cases of A - B -> A + (-B) when B "easily" negates.
13919         Move (x & y) | x -> x and friends before
13920         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
13922 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13924         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
13925         -mfix-ut699 is not specified.
13926         (leon3_load): Rename into...
13927         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
13928         is specified.
13930 2015-06-30  Marek Polacek  <polacek@redhat.com>
13932         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
13933         * match.pd: ... here.
13935 2015-06-30  Richard Biener  <rguenther@suse.de>
13937         * target-insns.def (canonicalize_funcptr_for_compare): Add.
13938         * fold-const.c (build_range_check): Replace uses of
13939         HAVE_canonicalize_funcptr_for_compare.
13940         (fold_widened_comparison): Likewise.
13941         (fold_sign_changed_comparison): Likewise.
13942         * dojump.c: Include "target.h".
13943         (do_compare_and_jump): Replace uses of
13944         HAVE_canonicalize_funcptr_for_compare and
13945         gen_canonicalize_funcptr_for_compare.
13946         * expr.c (do_store_flag): Likewise.
13948 2015-06-30  Tom de Vries  <tom@codesourcery.com>
13950         PR tree-optimization/66652
13951         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13952         max_loop_iterations to determine if nit + 1 overflows.
13954 2015-06-30  Richard Biener  <rguenther@suse.de>
13956         * tree-vrp.c (register_edge_assert_for_2): Also register
13957         asserts for dominating conversion results.
13959 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
13961         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
13962         field in struct iv.
13964 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
13966         PR target/66509
13967         * configure.ac: Fix filds and fildq test for 64-bit.
13968         * configure: Regenerated.
13970 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
13972         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
13973         (nvptx_reorg): Here.  Keep the non-subreg pieces.
13975 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13977         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
13978         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13980 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
13982         * config/i386/i386.md (*jcc_1): Use %! in asm template.
13983         Set attribute "length_nobnd" instead of "length".
13984         (*jcc_2): Ditto.
13985         (jump): Ditto.
13986         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
13988 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
13990         * config/nios2/nios2.c (nios2_delegitimize_address): Make
13991         assert less restrictive.
13993 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13995         PR fortran/66605
13996         * cgraphunit.c (cgraph_node::finalize_function): Do not call
13997         do_warn_unused_parameter.
13998         * function.c (do_warn_unused_parameter): Move from here.
13999         * function.h (do_warn_unused_parameter): Do not declare.
14001 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14003         PR target/65697
14004         * gcc.target/arm/armv-sync-comp-swap.c: New.
14005         * gcc.target/arm/armv-sync-op-acquire.c: New.
14006         * gcc.target/arm/armv-sync-op-full.c: New.
14007         * gcc.target/arm/armv-sync-op-release.c: New.
14009 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14011         PR target/65697
14012         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14013         initial acquire barrier with final barrier.
14015 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14017         PR target/65697
14018         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14019         initial acquire barrier with final barrier.
14021 2015-06-29  Richard Henderson  <rth@redhat.com>
14023         * config/i386/constraints.md (Bf): New constraint.
14024         * config/i386/i386-c.c (ix86_target_macros): Define
14025         __GCC_ASM_FLAG_OUTPUTS__.
14026         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14027         as flags outputs.
14028         * doc/extend.texi (FlagOutputOperands): Document them.
14030 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
14032         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14033         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14034         unspec name.
14035         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14036         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14037         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14038         (aarch64_symbol_context): Ditto.
14039         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14040         and use new pattern name.
14041         (aarch64_expand_mov_immediate): Ditto.
14042         (aarch64_print_operand): Ditto.
14043         (aarch64_classify_tls_symbol): Ditto.
14045 2015-06-29  Marek Polacek  <polacek@redhat.com>
14046             Marc Glisse  <marc.glisse@inria.fr>
14048         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14049         * match.pd: ... pattern here.
14051 2015-06-29  Tom de Vries  <tom@codesourcery.com>
14053         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14054         function structure.
14056 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14058         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14059         feature description, split out the native option, add a link to
14060         the feature documentation, rearrange and slightly rewrite text.
14061         (Aarch64 options, -mcpu): Likewise.
14062         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
14063         +rdma implies Adv. SIMD.
14065 2015-06-29  Marek Polacek  <polacek@redhat.com>
14067         PR c/66322
14068         * function.c (stack_protect_epilogue): Remove a cast to int.
14069         * doc/invoke.texi: Update -Wswitch-bool description.
14071 2015-06-29  Richard Biener  <rguenther@suse.de>
14073         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14074         * fold-const.c (fold_binary_loc): Move &A - &B simplification
14075         via ptr_difference_const ...
14076         * match.pd: ... here.
14077         When matching (X ^ Y) == Y also match with swapped operands.
14079 2015-06-29  Richard Biener  <rguenther@suse.de>
14081         * lto-streamer.h (LTO_major_version): Bump to 5.
14083 2015-06-29  Richard Biener  <rguenther@suse.de>
14085         PR tree-optimization/66677
14086         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14087         STMT_VINFO_VEC_STMT clobbering less strict.
14089 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
14091         PR middle-end/64130
14092         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14093         division, compute max and min when value ranges for dividend and
14094         divisor are available.
14096 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
14097             Sandra Loosemore <sandra@codesourcery.com>
14099         * regrename.h (regrename_do_replace): Change to return bool.
14100         * regrename.c (rename_chains): Check return value of
14101         regname_do_replace.
14102         (regrename_do_replace): Re-validate the modified insns and
14103         return bool status.
14104         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14105         Update to match rename_chains changes.
14106         * config/c6x/c6x.c (try_rename_operands): Assert that
14107         regrename_do_replace returns true.
14109 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
14111         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14112         operand 2 here.  Use copy_addr_to_reg to copy non-index
14113         register operand 2 to a temporary.
14114         (<mode>_stx): Ditto for operand 1.
14115         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14116         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14117         (ix86_store_bounds): Ditto.
14119 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
14121         * print-tree.c (print_node) [TREE_VEC]: Print its length.
14123 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
14125         * gimple.c (gimple_call_set_fndecl): Remove.
14126         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14127         build1_loc directly instead of build_fold_addr_expr_loc.
14129 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14131         * hash-map.h (hash_map::traverse): Use the definition of the
14132         Key typedef rather than the typedef itself.
14134 2015-06-26  Martin Jambor  <mjambor@suse.cz>
14136         PR debug/66301
14137         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14138         NULL instead of calling dump_enabled_p.
14140 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14142         * config/aarch64/aarch64.opt: (override): New.
14143         * doc/invoke.texi (override): Document.
14144         * config/aarch64/aarch64.c (aarch64_flag_desc): New
14145         (aarch64_fusible_pairs): Likewise.
14146         (aarch64_tuning_flags): Likewise.
14147         (aarch64_tuning_override_function): Likewise.
14148         (aarch64_tuning_override_functions): Likewise.
14149         (aarch64_parse_one_option_token): Likewise.
14150         (aarch64_parse_boolean_options): Likewise.
14151         (aarch64_parse_fuse_string): Likewise.
14152         (aarch64_parse_tune_string): Likewise.
14153         (aarch64_parse_one_override_token): Likewise.
14154         (aarch64_parse_override_string): Likewise.
14155         (aarch64_override_options): Parse the -override string if it
14156         is present.
14158 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14160         * config/aarch64/aarch64-protos.h (tune_params): Remove
14161         const from members.
14162         (aarch64_tune_params): Remove const, change to no longer be
14163         a pointer.
14164         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14165         change to no longer be a pointer, initialize to generic_tunings.
14166         (aarch64_min_divisions_for_recip_mul): Change dereference of
14167         aarch64_tune_params to member access.
14168         (aarch64_reassociation_width): Likewise.
14169         (aarch64_rtx_mult_cost): Likewise.
14170         (aarch64_address_cost): Likewise.
14171         (aarch64_branch_cost): Likewise.
14172         (aarch64_rtx_costs): Likewise.
14173         (aarch64_register_move_cost): Likewise.
14174         (aarch64_memory_move_cost): Likewise.
14175         (aarch64_sched_issue_rate): Likewise.
14176         (aarch64_builtin_vectorization_cost): Likewise.
14177         (aarch64_override_options): Take a copy of the selected tuning
14178         struct in to aarch64_tune_params, rather than just setting
14179         a pointer, change dereferences of aarch64_tune_params to member
14180         accesses.
14181         (aarch64_override_options_after_change): Change dereferences of
14182         aarch64_tune_params to member access.
14183         (aarch64_macro_fusion_p): Likewise.
14184         (aarch_macro_fusion_pair_p): Likewise.
14185         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14187 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14189         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14190         (aarch64_tune_flags): Likewise.
14191         (AARCH64_TUNE_FMA_STEERING): Likewise.
14192         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14193         to AARCH64_FL_USE_FMA_STEERING_PASS.
14194         (cortex-a57.cortex-a53): Likewise.
14195         (cortex-a72): Use cortexa72_tunings.
14196         (cortex-a72.cortex-a53): Likewise.
14197         (exynos-m1): Likewise.
14198         * config/aarch64/aarch64-protos.h (tune_params): Add
14199         a field: extra_tuning_flags.
14200         * config/aarch64/aarch64-tuning-flags.def: New.
14201         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14202         (aarch64_extra_tuning_flags): Likewise.
14203         (aarch64_tune_params): Declare here.
14204         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14205         (cortexa53_tunings): Likewise.
14206         (cortexa57_tunings): Likewise.
14207         (thunderx_tunings): Likewise.
14208         (xgene1_tunings): Likewise.
14209         (cortexa72_tunings): New.
14210         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14211          (gate): Check against aarch64_tune_params.
14212         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14213         aarch64-protos.h.
14215 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14217         * config/aarch64/aarch64-fusion-pairs.def: New.
14218         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14219         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14220         aarch64_fusion_pairs.
14221         (AARCH64_FUSE_MOV_MOVK): Likewise.
14222         (AARCH64_FUSE_ADRP_ADD): Likewise.
14223         (AARCH64_FUSE_MOVK_MOVK): Likewise.
14224         (AARCH64_FUSE_ADRP_LDR): Likewise.
14225         (AARCH64_FUSE_CMP_BRANCH): Likewise.
14227 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14229         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14230         SYMBOL_SMALL_GOT_28K.
14231         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14232         relocation modifiers.
14233         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14234         (ldr_got_small_28k_<mode>): New.
14235         (ldr_got_small_28k_sidi): New.
14236         * config/aarch64/iterators.md (got_modifier): New mode iterator.
14237         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14238         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14239         SYMBOL_SMALL_GOT_28K.
14240         (aarch64_rtx_costs): Add costs for new instruction sequences.
14241         (initialize_aarch64_code_model): Initialize new model.
14242         (aarch64_classify_symbol): Recognize new model and new symbol classification.
14243         (aarch64_asm_preferred_eh_data_format): Support new model.
14244         (aarch64_load_symref_appropriately): Generate new instruction
14245         sequences for -fpic.
14246         (TARGET_USE_PSEUDO_PIC_REG): New definition.
14247         (aarch64_use_pseudo_pic_reg): New function.
14249 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14251         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14252         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14253         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14254         (aarch64_expand_mov_immediate): Ditto.
14255         (aarch64_print_operand): Ditto.
14256         (aarch64_classify_symbol): Ditto.
14258 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
14260         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14262 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
14264         PR bootstrap/66638
14265         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14266         assertion failed.  Remove assertion itself.
14268 2015-06-26  Richard Biener  <rguenther@suse.de>
14270         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14271         and -A CMP CST -> A CMP -CST which is redundant with a pattern
14272         in match.pd.
14273         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14274         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14275         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14276         * match.pd: ... patterns here.
14278 2015-06-26  Marek Polacek  <polacek@redhat.com>
14280         * match.pd ((x | y) & ~(x & y) -> x ^ y,
14281         (x | y) & (~x ^ y) -> x & y): New patterns.
14283 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14285         * rtl.h (emit): Add an optional boolean parameter to control
14286         whether barriers are emitted.
14287         * emit-rtl.c (emit): Likewise.
14288         * gensupport.c (get_emit_function): Return null rather than "emit".
14289         * genemit.c (gen_emit_seq): Handle the null return value.
14290         Don't emit barriers after the final instruction in the sequence.
14291         * gentarget-def.c (main): Don't emit barriers after the instruction.
14293 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14295         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14296         TARGET_UNIFIED_ASM.
14298 2015-06-26  Richard Biener  <rguenther@suse.de>
14300         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14302 2015-06-26  Richard Biener  <rguenther@suse.de>
14304         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14305         irrespective on whether the inner operation has a single use
14306         of both off are constant.
14308 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
14309             Segher Boessenkool  <segher@kernel.crashing.org>
14311         PR target/66412
14312         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14313         before doing PUT_MODE or PUT_CODE on operands to avoid
14314         in-place RTX modification.
14316 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14318         * gentarget-def.c (def_target_insn): Cast return of strtol to
14319         unsigned int.
14321 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14323         * gimple.h (gimple_call_set_fn): Move inline function.
14324         * gimple.c (gimple_call_set_fn): Relocate here.
14326 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
14328         PR target/65979
14329         PR target/66611
14330         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14331         the replacement insn will work.
14333 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14335         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14336         by default.
14338 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14340         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14341         * cgraph.h: Include ipa-ref.h and plugin-api.h.
14342         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14343         (symtab_node::address_can_be_compared_p): Move function.
14344         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14345         definition here.
14346         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14347         * auto-profile.c: Likewise.
14348         * bb-reorder.c: Likewise.
14349         * builtins.c: Likewise.
14350         * calls.c: Likewise.
14351         * cfgexpand.c: Likewise.
14352         * cgraphbuild.c: Likewise.
14353         * cgraphclones.c: Likewise.
14354         * cgraphunit.c: Likewise.
14355         * combine.c: Likewise.
14356         * coverage.c: Likewise.
14357         * data-streamer-in.c: Likewise.
14358         * data-streamer-out.c: Likewise.
14359         * data-streamer.c: Likewise.
14360         * dbxout.c: Likewise.
14361         * dwarf2out.c: Likewise.
14362         * except.c: Likewise.
14363         * expr.c: Likewise.
14364         * final.c: Likewise.
14365         * fold-const.c: Likewise.
14366         * ggc-page.c: Likewise.
14367         * gimple-fold.c: Likewise.
14368         * gimple-iterator.c: Likewise.
14369         * gimple-pretty-print.c: Likewise.
14370         * gimple-streamer-in.c: Likewise.
14371         * gimple-streamer-out.c: Likewise.
14372         * gimple.c: Likewise.
14373         * gimplify.c: Likewise.
14374         * ipa-chkp.c: Likewise.
14375         * ipa-comdats.c: Likewise.
14376         * ipa-cp.c: Likewise.
14377         * ipa-devirt.c: Likewise.
14378         * ipa-icf-gimple.c: Likewise.
14379         * ipa-icf.c: Likewise.
14380         * ipa-inline-analysis.c: Likewise.
14381         * ipa-inline-transform.c: Likewise.
14382         * ipa-inline.c: Likewise.
14383         * ipa-polymorphic-call.c: Likewise.
14384         * ipa-profile.c: Likewise.
14385         * ipa-prop.c: Likewise.
14386         * ipa-pure-const.c: Likewise.
14387         * ipa-ref.c: Likewise.
14388         * ipa-reference.c: Likewise.
14389         * ipa-split.c: Likewise.
14390         * ipa-utils.c: Likewise.
14391         * ipa-visibility.c: Likewise.
14392         * ipa.c: Likewise.
14393         * langhooks.c: Likewise.
14394         * lto-cgraph.c: Likewise.
14395         * lto-compress.c: Likewise.
14396         * lto-opts.c: Likewise.
14397         * lto-section-in.c: Likewise.
14398         * lto-section-out.c: Likewise.
14399         * lto-streamer-in.c: Likewise.
14400         * lto-streamer-out.c: Likewise.
14401         * lto-streamer.c: Likewise.
14402         * omp-low.c: Likewise.
14403         * opts-global.c: Likewise.
14404         * passes.c: Likewise.
14405         * predict.c: Likewise.
14406         * print-tree.c: Likewise.
14407         * profile.c: Likewise.
14408         * ree.c: Likewise.
14409         * sanopt.c: Likewise.
14410         * stor-layout.c: Likewise.
14411         * symtab.c: Likewise.
14412         * toplev.c: Likewise.
14413         * trans-mem.c: Likewise.
14414         * tree-cfg.c: Likewise.
14415         * tree-chkp.c: Likewise.
14416         * tree-eh.c: Likewise.
14417         * tree-emutls.c: Likewise.
14418         * tree-inline.c: Likewise.
14419         * tree-nested.c: Likewise.
14420         * tree-parloops.c: Likewise.
14421         * tree-pretty-print.c: Likewise.
14422         * tree-profile.c: Likewise.
14423         * tree-sra.c: Likewise.
14424         * tree-ssa-alias.c: Likewise.
14425         * tree-ssa-live.c: Likewise.
14426         * tree-ssa-loop-ivcanon.c: Likewise.
14427         * tree-ssa-loop-ivopts.c: Likewise.
14428         * tree-ssa-pre.c: Likewise.
14429         * tree-ssa-sccvn.c: Likewise.
14430         * tree-ssa-strlen.c: Likewise.
14431         * tree-ssa-structalias.c: Likewise.
14432         * tree-streamer-in.c: Likewise.
14433         * tree-streamer-out.c: Likewise.
14434         * tree-streamer.c: Likewise.
14435         * tree-switch-conversion.c: Likewise.
14436         * tree-tailcall.c: Likewise.
14437         * tree-vect-data-refs.c: Likewise.
14438         * tree-vect-stmts.c: Likewise.
14439         * tree-vectorizer.c: Likewise.
14440         * tree.c: Likewise.
14441         * tsan.c: Likewise.
14442         * ubsan.c: Likewise.
14443         * value-prof.c: Likewise.
14444         * varasm.c: Likewise.
14445         * varpool.c: Likewise.
14446         * config/arm/arm.c: Likewise.
14447         * config/bfin/bfin.c: Likewise.
14448         * config/c6x/c6x.c: Likewise.
14449         * config/cris/cris.c: Likewise.
14450         * config/darwin-c.c: Likewise.
14451         * config/darwin.c: Likewise.
14452         * config/i386/i386.c: Likewise.
14453         * config/i386/winnt.c: Likewise.
14454         * config/microblaze/microblaze.c: Likewise.
14455         * config/mips/mips.c: Likewise.
14456         * config/rs6000/rs6000.c: Likewise.
14457         * config/rx/rx.c: Likewise.
14458         * config/s390/s390.c: Likewise.
14459         * config/tilegx/mul-tables.c: Likewise.
14461 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14463         * config/aarch64/aarch64.c, config/alpha/alpha.c,
14464         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
14465         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
14466         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
14467         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14468         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14469         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14470         config/microblaze/microblaze.c, config/mips/mips.c,
14471         config/mmix/mmix.c, config/mn10300/mn10300.c,
14472         config/moxie/moxie.c, config/msp430/msp430.c,
14473         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14474         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14475         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14476         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14477         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14478         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14479         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
14480         target-def.h include.
14481         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
14483 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14485         * Makefile.in (TARGET_DEF): Add target-insns.def.
14486         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
14487         (build/gentarget-def.o): New rule.
14488         (genprogrtl): Add target-def.
14489         * target-insns.def, gentarget-def.c: New files.
14490         * target.def: Add targetm.have_* and targetm.gen_* hooks,
14491         based on the contents of target-insns.def.
14492         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
14493         (HAVE_return, gen_return): Delete.
14494         * target-def.h: Include insn-target-def.h.
14495         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
14496         instead of direct calls.  Rely on them to do the appropriate assertions.
14497         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
14498         (convert_jumps_to_returns): Use targetm interface instead of
14499         direct calls.
14500         (thread_prologue_and_epilogue_insns): Likewise.
14501         * reorg.c (find_end_label, dbr_schedule): Likewise.
14502         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
14503         * shrink-wrap.c (convert_to_simple_return): Likewise.
14504         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
14506 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14508         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
14509         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14510         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
14511         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
14512         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14513         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14514         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14515         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
14516         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
14517         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14518         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14519         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14520         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14521         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14522         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14523         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
14524         includes to end.
14526 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14528         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
14529         (unbounded_int_hashmap_traits::key_type): Likewise.
14530         * hash-map.h (hash_map): Get the key type from the traits.
14531         * hash-traits.h (default_hash_traits): By default, inherit from the
14532         template parameter.
14533         * alias.c (alias_set_traits): Delete.
14534         (alias_set_entry_d::children): Use alias_set_hash as the first
14535         template parameter.
14536         (record_alias_subset): Update accordingly.
14537         * except.c (tree_hash_traits): Delete.
14538         (type_to_runtime_map): Use tree_hash as the first template parameter.
14539         (init_eh): Update accordingly.
14540         * genmatch.c (capture_id_map_hasher): Delete.
14541         (cid_map_t): Use nofree_string_hash as first template parameter.
14542         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
14543         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14544         Use symbol_compare_hash as the first template parameter in
14545         subdivide_hash_map.
14546         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
14547         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
14548         template parameter.
14549         * passes.c (pass_registry_hasher): Delete.
14550         (name_to_pass_map): Use nofree_string_hash as the first template
14551         parameter.
14552         (register_pass_name): Update accordingly.
14553         * sanopt.c (sanopt_tree_map_traits): Delete.
14554         (sanopt_tree_triplet_map_traits): Delete.
14555         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
14556         template parameter.
14557         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
14558         the first template parameter.
14559         * sese.c (rename_map_hasher): Delete.
14560         (rename_map_type): Use tree_ssa_name_hash as the first template
14561         parameter.
14562         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
14563         (function_summary::m_map): Use map_hash as the first template
14564         parameter.
14565         (function_summary::release): Update accordingly.
14566         * tree-if-conv.c (phi_args_hash_traits): Delete.
14567         (predicate_scalar_phi): Use tree_operand_hash as the first template
14568         parameter to phi_arg_map.
14569         * tree-inline.h (dependence_hasher): Delete.
14570         (copy_body_data::dependence_map): Use dependence_hash as the first
14571         template parameter.
14572         * tree-inline.c (remap_dependence_clique): Update accordingly.
14573         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
14574         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
14575         parameter.
14576         (addr_stridxptr): Update accordingly.
14577         * value-prof.c (profile_id_traits): Delete.
14578         (cgraph_node_map): Use profile_id_hash as the first template
14579         parameter.
14580         (init_node_map): Update accordingly.
14581         * config/alpha/alpha.c (string_traits): Delete.
14582         (machine_function::links): Use nofree_string_hash as the first
14583         template parameter.
14584         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
14585         * config/m32c/m32c.c (pragma_traits): Delete.
14586         (pragma_htab): Use nofree_string_hash as the first template parameter.
14587         (m32c_note_pragma_address): Update accordingly.
14588         * config/mep/mep.c (pragma_traits): Delete.
14589         (pragma_htab): Use nofree_string_hash as the first template parameter.
14590         (mep_note_pragma_flag): Update accordingly.
14591         * config/mips/mips.c (mips16_flip_traits): Delete.
14592         (mflip_mips16_htab): Use nofree_string_hash as the first template
14593         parameter.
14594         (mflip_mips16_use_mips16_p): Update accordingly.
14595         (local_alias_traits): Delete.
14596         (mips16_local_aliases): Use nofree_string_hash as the first template
14597         parameter.
14598         (mips16_local_alias): Update accordingly.
14600 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14602         * hash-map-traits.h (default_hashmap_traits): Delete.
14604 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14606         * hash-map-traits.h (unbounded_hashmap_traits): New class.
14607         (unbounded_int_hashmap_traits): Likewise.
14608         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
14610 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14612         * ipa-icf.h (symbol_compare_hash): New class.
14613         (symbol_compare_hashmap_traits): Use it.
14614         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
14615         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
14616         (mem_alloc_description::reverse_mem_map_t): Remove redundant
14617         default_hashmap_traits.
14618         * sanopt.c (sanopt_tree_triplet_hash): New class.
14619         (sanopt_tree_triplet_map_traits): Use it.
14621 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14623         * gengtype-parse.c (require_template_declaration): Allow '+' in
14624         template parameters.  Consolidate cases.
14625         * hash-traits.h (int_hash): New class.
14626         * alias.c (alias_set_hash): New structure.
14627         (alias_set_traits): Use it.
14628         * symbol-summary.h (function_summary::map_hash): New class.
14629         (function_summary::summary_hashmap_traits): Use it.
14630         * tree-inline.h (dependence_hash): New class.
14631         (dependence_hasher): Use it.
14632         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
14633         * value-prof.c (profile_id_hash): New class.
14634         (profile_id_traits): Use it.
14636 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14638         * config/mips/mips.c (mips16_flip_traits): Use it.
14639         (local_alias_traits, mips16_local_aliases): Convert from a map of
14640         rtxes to a map of symbol names.
14641         (mips16_local_alias): Update accordingly.
14643 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14645         * hash-traits.h (string_hash, nofree_string_hash): New classes.
14646         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
14647         * passes.c (pass_registry_hasher): Likewise.
14648         * config/alpha/alpha.c (string_traits): Likewise.
14649         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
14650         * config/m32c/m32c.c (pragma_traits): Likewise.
14651         * config/mep/mep.c (pragma_traits): Likewise.
14653 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14655         * tree-hash-traits.h (tree_hash): New class.
14656         * except.c: Include tree-hash-traits.h.
14657         (tree_hash_traits): Use tree_hash.
14659 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14661         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
14662         * sese.c: Include tree-hash-traits.h.
14663         (rename_map_hasher): Use tree_ssa_name_hasher.
14665 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14667         * tree-hash-traits.h (tree_decl_hash): New class.
14668         * tree-ssa-strlen.c: Include tree-hash-traits.h.
14669         (stridxlist_hash_traits): Use tree_decl_hash.
14671 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14673         * tree-hash-traits.h: New file.
14674         (tree_operand_hash): New class.
14675         * sanopt.c: Include tree-hash-traits.h.
14676         (sanopt_tree_map_traits): Use tree_operand_hash.
14677         * tree-if-conv.c: Include tree-hash-traits.h.
14678         (phi_args_hash_traits): Use tree_operand_hash.
14679         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
14680         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
14682 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14684         * hash-map-traits.h: Include hash-traits.h.
14685         (simple_hashmap_traits): New class.
14686         * mem-stats.h (hash_map): Change the default traits to
14687         simple_hashmap_traits<default_hash_traits<Key> >.
14689 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14691         * hash-table.h: Update comments.
14693 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14695         * hash-traits.h (default_hash_traits): New structure.
14696         * hash-set.h (default_hashset_traits): Delete.
14697         (hash_set): Use default_hash_traits<Key> instead of
14698         default_hashset_traits.  Delete hash_entry type and use Key directly.
14699         * ipa-devirt.c (pair_traits): Delete.
14700         (default_hash_traits <type_pair>): Override.
14701         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
14702         (odr_types_equivalent_p, add_type_duplicate): Likewise.
14704 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14706         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
14708 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14710         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
14711         (has_is_empty, is_empty_helper): Delete.
14712         (has_mark_deleted, mark_deleted_helper): Delete.
14713         (has_mark_empty, mark_empty_helper): Delete.
14714         (hash_table::is_deleted): Call the Descriptor unconditionally.
14715         (hash_table::is_empty): Likewise.
14716         (hash_table::mark_deleted): Likewise.
14717         (hash_table::mark_empty): Likewise.
14719 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14721         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
14722         redundant typedefs and members.
14723         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
14724         redundant typedefs.
14725         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
14726         * ipa-devirt.c (odr_name_hasher): Likewise.
14727         (polymorphic_call_target_hasher): Likewise.
14728         * ira-costs.c (cost_classes_hasher): Likewise.
14729         * statistics.c (stats_counter_hasher): Likewise.
14730         * trans-mem.c (log_entry_hasher): Likewise.
14731         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14732         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
14733         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
14734         * var-tracking.c (variable_hasher): Likewise.
14735         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
14736         Remove redundant typedefs and members.
14738 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14740         * hash-traits.h (ggc_cache_hasher): Rename to...
14741         (ggc_cache_remove): ...this and remove typedefs.
14742         (ggc_cache_ptr_hash): New class.
14743         * hash-table.h: Update commentary.
14744         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
14745         rather than ggc_cache_hasher.
14746         (const_wide_int_hasher, reg_attr_hasher): Likewise.
14747         (const_double_hasher, const_fixed_hasher): Likewise.
14748         * function.c (insn_cache_hasher): Likewise.
14749         * trans-mem.c (tm_wrapper_hasher): Likewise.
14750         * tree.h (tree_decl_map_cache_hasher): Likewise.
14751         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
14752         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
14753         * ubsan.c (tree_type_map_cache_hasher): Likewise.
14754         * varasm.c (tm_clone_hasher): Likewise.
14755         * config/i386/i386.c (dllimport_hasher): Likewise.
14756         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
14757         (tree_hasher): Likewise.
14759 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14761         * hash-traits.h (ggc_hasher): Rename to...
14762         (ggc_remover): ...this and remove typedefs.
14763         (ggc_cache_hasher): Update accordingly.  Add typedefs.
14764         (ggc_ptr_hash): New class.
14765         * hash-table.h: Update comment.
14766         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
14767         ggc_hasher.
14768         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
14769         (tree_descriptor_hasher): Likewise.
14770         * cgraph.c (function_version_hasher): Likewise.
14771         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
14772         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
14773         (dw_loc_list_hasher, addr_hasher): Likewise.
14774         * function.h (used_type_hasher): Likewise.
14775         * function.c (temp_address_hasher): Likewise.
14776         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
14777         * libfuncs.h (libfunc_hasher): Likewise.
14778         * lto-streamer.h (decl_state_hasher): Likewise.
14779         * optabs.c (libfunc_decl_hasher): Likewise.
14780         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
14781         * varasm.c (section_hasher, object_block_hasher): Likewise.
14782         (const_rtx_desc_hasher): Likewise.
14783         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
14784         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
14786 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14788         * hash-traits.h (free_ptr_hash): New class.
14789         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
14790         rather than typed_free_remove.  Remove redudant typedefs.
14791         (external_ref_hasher): Likewise.
14792         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
14793         (ehspec_hasher): Likewise.
14794         * ggc-common.c (saving_hasher): Likewise.
14795         * gimplify.c (gimplify_hasher): Likewise.
14796         * haifa-sched.c (delay_i2_hasher): Likewise.
14797         * loop-invariant.c (invariant_expr_hasher): Likewise.
14798         * loop-iv.c (biv_entry_hasher): Likewise.
14799         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
14800         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
14801         * tree-cfg.c (locus_discrim_hasher): Likewise.
14802         * tree-eh.c (finally_tree_hasher): Likewise.
14803         * tree-into-ssa.c (var_info_hasher): Likewise.
14804         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
14805         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
14806         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
14807         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
14808         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
14809         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
14810         (shared_bitmap_hasher): Likewise.
14811         * tree-ssa-threadupdate.c (redirection_data): Likewise.
14812         * tree-vectorizer.h (peel_info_hasher): Likewise.
14813         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
14814         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
14816 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14818         * hash-table.h: Update comments.
14819         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
14820         (nofree_ptr_hash): New class.
14821         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
14822         than typed_noop_remove.  Remove redudant typedefs.
14823         * attribs.c (attribute_hasher): Likewise.
14824         * cfg.c (bb_copy_hasher): Likewise.
14825         * cselib.c (cselib_hasher): Likewise.
14826         * dse.c (invariant_group_base_hasher): Likewise.
14827         * dwarf2cfi.c (trace_info_hasher): Likewise.
14828         * dwarf2out.c (macinfo_entry_hasher): Likewise.
14829         (comdat_type_hasher, loc_list_hasher): Likewise.
14830         * gcse.c (pre_ldst_expr_hasher): Likewise.
14831         * genmatch.c (id_base): Likewise.
14832         * genrecog.c (test_pattern_hasher): Likewise.
14833         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
14834         * haifa-sched.c (delay_i1_hasher): Likewise.
14835         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
14836         * ipa-icf.h (congruence_class_group_hash): Likewise.
14837         * ipa-profile.c (histogram_hash): Likewise.
14838         * ira-color.c (allocno_hard_regs_hasher): Likewise.
14839         * lto-streamer.h (string_slot_hasher): Likewise.
14840         * lto-streamer.c (tree_entry_hasher): Likewise.
14841         * plugin.c (event_hasher): Likewise.
14842         * postreload-gcse.c (expr_hasher): Likewise.
14843         * store-motion.c (st_expr_hasher): Likewise.
14844         * tree-sra.c (uid_decl_hasher): Likewise.
14845         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
14846         (ssa_name_var_hash): Likewise.
14847         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
14848         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
14849         * tree-ssa-pre.c (pre_expr_d): Likewise.
14850         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
14851         * vtable-verify.h (registration_hasher): Likewise.
14852         * vtable-verify.c (vtbl_map_hasher): Likewise.
14853         * config/arm/arm.c (libcall_hasher): Likewise.
14854         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
14855         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
14856         * config/sol2.c (comdat_entry_hasher): Likewise.
14857         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
14858         (print_fold_checksum, fold_checksum_tree): Likewise.
14859         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
14860         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
14861         (fold_build_call_array_loc): Likewise.
14862         * tree-ssa-ccp.c (gimple_htab): Likewise.
14863         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
14864         rather than pointer_type.
14866 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14868         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
14869         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
14871 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14873         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
14874         (ggc_hasher::ggc_mx): Likewise.
14875         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
14876         that duplicate ggc_hasher ones.
14878 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14880         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
14881         (gt_cleare_cache): Check here for deleted and empty entries.
14882         Replace handle_cache_entry with a call to keep_cache_entry.
14883         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
14884         (ggc_cache_hasher::keep_cache_entry): New function.
14885         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
14886         (tm_wrapper_hasher::keep_cache_entry): New function.
14887         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
14888         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14889         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
14890         (type_cache_hasher::keep_cache_entry): New function.
14891         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
14892         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14893         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
14894         (tree_type_map_cache_hasher::keep_cache_entry): New function.
14895         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
14896         (tm_clone_hasher::keep_cache_entry): New function.
14897         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
14898         (dllimport_hasher::keep_cache_entry): New function.
14900 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14902         * hash-table.h: Include hash-traits.h.
14903         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
14904         (ggc_cache_hasher): Move to...
14905         * hash-traits.h: ...this new file.
14907 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14909         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
14910         struct cl_optimization.
14911         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
14912         * tree.c (make_node_stat): Allocate cl_optimization struct.
14913         (copy_node_stat): Allocate and copy cl_optimization struct.
14915 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14917         * function.h (struct incoming_args): Move struct.
14918         (pass_by_reference, reference_callee_copied): Remove prototypes.
14919         * emit-rtl.h (struct incoming_args): Relocate struct here.
14920         * calls.h (pass_by_reference, reference_callee_copied): Relocate
14921         prototypes here.
14922         * function.c (pass_by_reference, reference_callee_copied): Move.
14923         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
14924         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
14925         * ipa-chkp.c: Include calls.h.
14927 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
14929         * alias.h (alias_set_type): Move typedef.
14930         * coretypes.h (alias_set_type): Relocate typedef here.
14931         * rtl.h: Don't include alias.h.
14933 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14935         * cgraph.h (cgraph_rtl_info): Move to rtl.h
14936         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
14937         and instance.
14938         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
14939         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
14940         doesn't exist.
14941         * calls.c: Include hard-reg-set.h before rtl.h.
14942         * ira.c: Likewise.
14944 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14945             Vladimir Makarov  <vmakarov@redhat.com>
14947         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
14948         Add assert.
14950 2015-06-25  Richard Biener  <rguenther@suse.de>
14952         * fold-const.c (fold_binary_loc): Move simplification of
14953         (X <<>> C1) & C2 ...
14954         * match.pd: ... here.
14956 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
14958         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
14960 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
14962         * match.pd: Add patterns for vec_conds between 1 and 0.
14964 2015-06-25  Richard Biener  <rguenther@suse.de>
14966         * tree-vect-stmts.c (vectorizable_conversion): Do not set
14967         STMT_VINFO_VEC_STMT for SLP.
14968         (vectorizable_store): Likewise.
14969         (vectorizable_load): Likewise.
14970         (vect_transform_stmt): Catch SLP vectorization clobbering
14971         STMT_VINFO_VEC_STMT.
14973 2015-06-25  Richard Biener  <rguenther@suse.de>
14975         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
14976         dumping.
14977         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
14978         cleanup resulting dead code and parameters.
14979         (vect_transform_slp_perm_load): Adjust.
14981 2015-06-25  Nick Clifton  <nickc@redhat.com>
14983         * config/bfin/bfin.c (bfin_expand_prologue): Set
14984         current_function_static_stack_size if flag_stack_usage_info is set.
14985         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14986         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
14987         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14988         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
14990 2015-06-25  Tom de Vries  <tom@codesourcery.com>
14992         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
14993         comment that the generated IV is unsigned.
14995 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14997         PR target/29693
14998         * config/arm/arm.c (arm_dbx_register_number): Return
14999         DWARF_FRAME_REGISTERS by default.
15001 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15003         * dominance.c (calculate_dominance_info): Fix verify_dominators call
15004         argument.  Call verify_dominator when reusing dominator info.
15006 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15008         PR target/66563
15009         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15010         an additional element of the unspec vector.  Modify indices
15011         of operands.
15012         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15013         * config/sh/sh.c (prepare_move_operands): Pass incremented
15014         const_int to gen_GOTaddr2picreg.
15015         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15017 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15019         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15020         Condition on TARGET_FLOAT.
15022 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15024         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15025         and (no)crypto.
15027 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15029         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15031         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15032         aarch64_err_no_fpadvsimd.
15034         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15035         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15036         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15037         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15038         Turn error into assert, test TARGET_FLOAT.
15039         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15040         TARGET_FLOAT.
15042 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
15044         PR debug/66482
15045         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15047 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15049         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15051 2015-06-24  Renlin Li <renlin.li@arm.com>
15053         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15054         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15056 2015-06-24  Richard Biener  <rguenther@suse.de>
15058         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15059         (main): Likewise.
15060         (lower_opt_convert): Support lowering of conditional view_convert.
15061         (parser::parse_operation): Likewise.
15062         (parser::parse_for): Likewise.
15064 2015-06-24  Renlin Li  <renlin.li@arm.com>
15066         * varasm.c (emit_local): Use unsigned int for align variable.
15068 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15070         PR target/63408
15071         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15072         for negative numbers.
15074 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15076         PR rtl-optimization/66306
15077         * reload.c (find_reloads): Swap the match_dup info for
15078         commutative operands.
15080 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15082         * config/s390/vx-builtins.md
15083         ("vec_scatter_element<mode>_<non_vec_int>")
15084         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15085         attribute with bhfgq.
15087 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15089         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15091 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15093         * config/s390/s390-builtin-types.def: Add flag to indicate the
15094         options under which the function type is needed.
15095         * config/s390/s390-builtins.def: Add flag to indicate the options
15096         under which the builtin is enabled.
15097         * config/s390/s390-builtins.h: Add flags parameter to macro
15098         definitions.
15099         (bflags_for_builtin): New function.
15100         (flags_for_builtin): Renamed to ...
15101         (opflags_for_builtin): ... this.
15102         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15103         flags_for_builtin to bflags_for_builtin and
15104         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15105         * config/s390/s390.c: Add initialization of bflags_builtin and
15106         opflags_builtin arrays.
15107         Remove code for flags_builtin.
15108         (s390_init_builtins): Only create builtin function types if one of
15109         their flags is active.
15110         Only create builtins if all of their flags are active.
15111         (s390_expand_builtin): Rename flags_for_builtin to
15112         opflags_for_builtin.
15114 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15116         * config/s390/vecintrin.h: Remove internal builtins.
15118 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15120         * config/s390/s390.c (s390_secondary_reload): Fix check for
15121         GENERAL_REGS register class.
15123 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15125         * config/s390/s390.c (s390_support_vector_misalignment): Call
15126         default implementation for !TARGET_VX.
15128 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15130         * config/s390/s390.c (s390_legitimate_constant_p): Add
15131         TARGET_VX check.
15133 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15135         * config/s390/s390.c (s390_vector_abi): New variable definition.
15136         (s390_check_type_for_vector_abi): New function.
15137         (TARGET_ASM_FILE_END): New macro definition.
15138         (s390_asm_file_end): New function.
15139         (s390_function_arg): Call s390_check_type_for_vector_abi.
15140         (s390_gimplify_va_arg): Likewise.
15141         * configure: Regenerate.
15142         * configure.ac: Check for .gnu_attribute Binutils feature.
15144 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
15146         PR target/65803
15147         * config/bfin/bfin.c (hwloop_optimize): Initialize
15148         JUMP_LABEL for newly created jump.
15150 2015-06-23  Tristan Gingold  <gingold@adacore.com>
15152         * collect-utils.c (collect_wait): Unlink the response file here
15153         instead of...
15154         (do_wait): ...here.
15155         (utils_cleanup): ...and here.
15157 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
15159         * df-scan.c: Don't include target-def.h.
15160         * targhooks.c: Likewise.
15161         * config/arm/arm-c.c: Likewise.
15162         * config/i386/i386-c.c: Likewise.
15163         * config/nds32/nds32-cost.c: Likewise.
15164         * config/nds32/nds32-fp-as-gp.c: Likewise.
15165         * config/nds32/nds32-intrinsic.c: Likewise.
15166         * config/nds32/nds32-isr.c: Likewise.
15167         * config/nds32/nds32-md-auxiliary.c: Likewise.
15168         * config/nds32/nds32-memory-manipulation.c: Likewise.
15169         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15170         * config/nds32/nds32-predicates.c: Likewise.
15172 2015-06-23  Richard Biener  <rguenther@suse.de>
15174         PR tree-optimization/66636
15175         * tree-vect-stmts.c (vectorizable_store): Properly compute the
15176         def type for further defs for strided stores.
15178 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
15180         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15181         conditional selects.
15182         (setcc_int<mode>, setcc_float<mode>): Reformat.
15184 2015-06-23  Marek Polacek  <polacek@redhat.com>
15186         * match.pd ((x + y) - (x | y) -> x & y,
15187         (x + y) - (x & y) -> x | y): New patterns.
15189 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
15191         PR 65711
15192         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15193         '-dynamic-linker' within %{!shared: ...}.
15195 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
15197         PR target/66560
15198         * config/i386/predicates.md (addsub_vm_operator): New predicate.
15199         (addsub_vs_operator): Ditto.
15200         (addsub_vs_parallel): Ditto.
15201         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15202         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15203         Put minus RTX before plus and adjust vec_merge selector.
15204         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15205         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15206         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15207         (addsub vec_merge splitters): New combiner splitters.
15208         (addsub vec_select/vec_concat splitters): Ditto.
15210 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
15212         PR tree-optimization/66449
15213         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15214         POINTER_PLUS_EXPR for pointers.
15216 2015-06-23  Alan Modra  <amodra@gmail.com>
15218         * rtlanal.c (commutative_operand_precedence): Correct comments.
15219         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15220         declaration.  Return an int.  Distinguish REG,REG return from
15221         others.
15222         (struct simplify_plus_minus_op_data): Make local to function.
15223         (simplify_plus_minus): Don't set canonicalized if merely sorting
15224         registers.  Avoid packing ops if nothing changes.  White space fixes.
15226 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
15228         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15229         -fdump-ada-spec is passed but not if -fsyntax-only is.
15231 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
15233         PR bootstrap/63740
15234         * lra-lives.c (process_bb_lives): Check insn copying the same
15235         reload pseudo and don't create a copy for it.
15237 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15239         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15240         for cond_stmt.
15242 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15244         * builtins.def (DEF_GOMP_BUILTIN): Test
15245         'flag_tree_parallelize_loops > 1' instead of
15246         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
15248 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15250         * dominance.c (calculate_dominance_info): Verify dominators if
15251         early-out.
15253 2015-06-22  Marek Polacek  <polacek@redhat.com>
15255         * match.pd ((x ^ y) ^ (x | y) -> x & y,
15256         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15257         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15258         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15260 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
15262         PR target/65871
15263         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15264         cost of embedded comparison.
15266 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15268         PR target/65914
15269         * config/rs6000/predicates.md (altivec_register_operand): Permit
15270         virtual stack registers.
15271         (vsx_register_operand): Likewise.
15272         (vfloat_operand): Likewise.
15273         (vint_operand): Likewise.
15274         (vlogical_operand): Likewise.
15276 2015-06-22  Richard Biener  <rguenther@suse.de>
15278         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15279         and single_scalar_iteration_cost members.
15280         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15281         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15282         (vect_get_single_scalar_iteration_cost): Remove.
15283         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15284         Use LOOP_VINFO_SCALAR_ITERATION_COST.
15285         * tree-vect-loop.c (destroy_loop_vec_info): Free
15286         scalar_cost_vec.
15287         (vect_get_single_scalar_iteration_cost): Compute result into
15288         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15289         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
15290         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15291         (vect_estimate_min_profitable_iters): Use them.
15293 2015-06-22  Christian Bruel  <christian.bruel@st.com>
15295         PR target/52144
15296         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15297         (TARGET_INSERT_ATTRIBUTES): Define.
15298         (thumb_flipper): New var.
15299         * config/arm/arm.opt (-mflip-thumb): New switch.
15301 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
15302             Martin Liska  <mliska@suse.cz>
15304         PR ipa/65908
15305         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15306         construction of arg_types.
15307         (sem_function::sem_function): Likewise.
15308         (sem_function::~sem_function): Remove destruction of arg_types.
15309         (sem_function::compatible_parm_types_p): New function.
15310         (sem_function::equals_wpa): Reorg matching of return values
15311         and parameter types.
15312         (sem_function::equals_private): Reorg mathcing of argument types.
15313         (sem_function::parse_tree_args): Remove.
15314         * ipa-icf.h (init_wpa): Do not call it.
15315         (parse_tree_args): Remove.
15316         (compatible_parm_types_p): Declare.
15317         (result_type): Remove.
15318         (arg_types): Remove.
15320 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
15322         PR ipa/66351
15323         * ipa-polymorphic-call.c
15324         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15325         initializing alias oracle; fix formating; set base_alias_set if it
15326         is known.
15328 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
15330         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15331         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15332         (find_inc): Likewise.
15333         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15334         swapping.
15335         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15336         * df-scan.c (df_swap_refs): Remove.
15337         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15338         * dominance.c (link_roots): Use std::swap instead of manually swapping.
15339         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15340         * fold-const.c (fold_relational_const): Likewise.
15341         * genattrtab.c (simplify_test_exp): Likewise.
15342         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15343         gimple_simplify): Likewise.
15344         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15345         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15346         * ipa-devirt.c (add_type_duplicate): Likewise.
15347         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15348         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15349         * lra.c (lra_create_copy): Likewise.
15350         * lto-streamer-out.c (DFS::DFS): Likewise.
15351         * modulo-sched.c (get_sched_window): Likewise.
15352         * omega.c (omega_pretty_print_problem): Likewise.
15353         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15354         * reload1.c (reloads_unique_chain_p): Likewise.
15355         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15356         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15357         use std::swap.
15358         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15359         manually swapping.
15360         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15361         predicate_mem_writes): Likewise.
15362         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15363         * tree-predcom.c (combine_chains): Likewise.
15364         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15365         refs_may_alias_p_1): Likewise.
15366         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15367         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15368         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15369         number_of_iterations_cond): Likewise.
15370         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15371         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15372         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15373         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15374         * tree-vrp.c (extract_range_from_binary_expr_1,
15375         extract_range_from_unary_expr_1): Likewise.
15377 2015-06-20  Marek Polacek  <polacek@redhat.com>
15379         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15381 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
15383         PR target/66591
15384         * config/sh/sh.c (prepare_move_operands): Replace subreg
15385         index term with R0 for base and index addressing.
15387 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
15389         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15390         op1 is an fp zero.
15391         (movsf_aarch64): Change condition from register_operand to
15392         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
15393         load1.  Change type for alternative 7 to store1.
15394         (movdf_aarch64): Likewise.
15396 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
15398         * config/vax/vax.md: Adjust sign/zero extend patterns to
15399         handle SUBREGs in operands[1].
15401 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15403         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15404         of manually swapping.
15405         (expand_vec_perm_interleave2): Likewise.
15407 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
15409         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15410         reuse bounds created for abnormal ssa names.
15412 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
15414         * config/nvptx/nvptx.md (allocate_stack): Rename to...
15415         (allocate_stack_<mode>): ... this, and add :P on both
15416         match_operand and unspec.
15417         (allocate_stack): New expander.
15419 2015-06-19  Christian Bruel  <christian.bruel@st.com>
15421         PR target/66541
15422         PR target/52144
15423         * config/arm/arm.c (arm_set_current_function): Handle
15424         explicit default options.
15426 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
15428         * config/i386/i386.md (*movsicc_noc_zext): New insn.
15429         (zero-extended cmove with mem peephole2): New pattern.
15430         (cmove with mem peephole2): Merge patterns.
15432 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
15434         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
15436 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
15438         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
15439         * config/mips/mips.md (*madd4<mode>): Ditto.
15440         (*nmadd3<mode>) Ditto.
15441         (*nmadd4<mode>_fastmath): Ditto.
15442         (*nmadd3<mode>_fastmath): Ditto.
15443         (*nmsub4<mode>): Ditto.
15444         (*nmsub3<mode>): Ditto.
15445         (*nmsub4<mode>_fastmath): Ditto.
15446         (*nmsub3<mode>_fastmath): Ditto.
15448 2015-06-18  Michael Matz  <matz@suse.de>
15450         PR middle-end/66253
15451         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
15452         grouped strided stores.
15453         (vectorizable_load): Don't use the DR from first_stmt in
15454         the non-SLP grouped strided case.
15456 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15458         PR target/66569
15459         * function.c (assign_bounds): Add arguments assign_regs,
15460         assign_special, assign_bt.
15461         (assign_parms): For vararg functions handle bounds in BT
15462         and special slots after incoming vararg bounds.
15464 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15466         PR middle-end/66568
15467         * cfgexpand.c (expand_return): Handle missing bounds.
15468         (expand_gimple_stmt_1): Likewise.
15469         * tree-chkp.c (chkp_expand_zero_bounds): New.
15470         * tree-chkp.h (chkp_expand_zero_bounds): New.
15472 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15474         PR middle-end/66567
15475         * ipa-chkp.c (chkp_maybe_create_clone): Require
15476         functions to be instrumentable.
15477         * tree-chkp.c (chkp_replace_function_pointer): Use
15478         chkp_instrumentable_p instead of attribute check.
15480 2015-06-18  Richard Biener  <rguenther@suse.de>
15482         PR tree-optimization/66510
15483         * tree-vect-stmts.c (vectorizable_load): Properly compute the
15484         number of vector loads for SLP permuted loads.
15485         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
15486         check the stride for loop vectorization.
15487         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
15488         vectorization factor.
15489         (vect_analyze_group_access): If the group size is not a power
15490         of two require a epilogue loop.
15491         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
15492         compute and optimizing and alias test pruning after final
15493         vectorization factor computation.
15494         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
15495         vector alignment.
15496         (vect_transform_slp_perm_load): Properly compute the original
15497         number of vector load stmts.
15499 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
15501         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
15502         "unlikely character , in @var" warning.
15504 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
15506         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
15507         (ix86_function_arg_advance): Ditto.
15508         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
15510 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
15512         * function.h (struct rtl_data): Remove struct and accessor macros.
15513         * emit-rtl.h (struct rtl_data): Relocate to here.
15514         * Makefile.in (GTFILES): Add emit-rtl.h.
15515         * df-core.c: Include emit-rtl.h.
15516         * genattrtab.c: Likewise.
15517         * genconditions.c: Likewise.
15518         * genpreds.c: Likewise.
15519         * genrecog.c: Likewise.
15520         * regcprop.c: Likewise.
15521         * resource.c: Likewise.
15522         * sched-rgn.c: Likewise.
15523         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15524         * config/i386/winnt.c: Likewise.
15526 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
15528         PR middle-end/66429
15529         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
15530         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
15531         and has_force_vectorize_loops flags from cfun into
15532         child_cfun.
15533         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
15534         if simduid is non-NULL.
15535         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
15536         * passes.def (pass_simduid_cleanup): Add new pass after loop
15537         passes.
15538         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
15539         indirection from htab argument's type.
15540         (shrink_simd_arrays): New function.
15541         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
15542         Don't call adjust_simduid_builtins if there are no loops.
15543         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
15544         (pass_simduid_cleanup::execute): New method.
15545         (make_pass_simduid_cleanup): New function.
15547 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
15549         * tree-core.h (tree_target_option): Make opts field a pointer to a
15550         cl_target_option instead of an instance of the struct.
15551         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
15552         the structure.
15553         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
15554         TARGET_OPTION_NODE.
15555         (copy_node_stat): Allocate and copy struct cl_target_option.
15557 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
15559         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
15560         Remove conditional exposure of prototypes.
15561         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
15562         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
15563         definitions in tree.h with functions.
15564         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
15565         anon_aggrname_p.
15566         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
15568 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
15570         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
15571         (*cmp<mode>_signed): ... this.
15572         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
15573         (*cmp<mode>_unsigned): ... this.  Remove %b.
15575 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
15577         * coretypes.h: Include input.h and as-a.h.
15578         * rtl.h: Include input.h and as-a.h for generator files.
15579         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
15580         * vec.c: Don't include diagnostic-core.h.
15581         * alias.c: Do not include input.h, line-map.h or is-a.h.
15582         * asan.c: Likewise.
15583         * attribs.c: Likewise.
15584         * auto-inc-dec.c: Likewise.
15585         * auto-profile.c: Likewise.
15586         * bb-reorder.c: Likewise.
15587         * bt-load.c: Likewise.
15588         * builtins.c: Likewise.
15589         * caller-save.c: Likewise.
15590         * calls.c: Likewise.
15591         * ccmp.c: Likewise.
15592         * cfg.c: Likewise.
15593         * cfganal.c: Likewise.
15594         * cfgbuild.c: Likewise.
15595         * cfgcleanup.c: Likewise.
15596         * cfgexpand.c: Likewise.
15597         * cfghooks.c: Likewise.
15598         * cfgloop.c: Likewise.
15599         * cfgloop.h: Likewise.
15600         * cfgloopanal.c: Likewise.
15601         * cfgloopmanip.c: Likewise.
15602         * cfgrtl.c: Likewise.
15603         * cgraph.c: Likewise.
15604         * cgraphbuild.c: Likewise.
15605         * cgraphclones.c: Likewise.
15606         * cgraphunit.c: Likewise.
15607         * cilk-common.c: Likewise.
15608         * combine-stack-adj.c: Likewise.
15609         * combine.c: Likewise.
15610         * compare-elim.c: Likewise.
15611         * convert.c: Likewise.
15612         * coverage.c: Likewise.
15613         * cppbuiltin.c: Likewise.
15614         * cprop.c: Likewise.
15615         * cse.c: Likewise.
15616         * cselib.c: Likewise.
15617         * data-streamer-in.c: Likewise.
15618         * data-streamer-out.c: Likewise.
15619         * data-streamer.c: Likewise.
15620         * dbxout.c: Likewise.
15621         * dce.c: Likewise.
15622         * ddg.c: Likewise.
15623         * debug.c: Likewise.
15624         * df-core.c: Likewise.
15625         * df-problems.c: Likewise.
15626         * df-scan.c: Likewise.
15627         * df.h: Likewise.
15628         * dfp.c: Likewise.
15629         * diagnostic-core.h: Likewise.
15630         * diagnostic.c: Likewise.
15631         * dojump.c: Likewise.
15632         * dominance.c: Likewise.
15633         * domwalk.c: Likewise.
15634         * double-int.c: Likewise.
15635         * dse.c: Likewise.
15636         * dumpfile.c: Likewise.
15637         * dumpfile.h: Likewise.
15638         * dwarf2asm.c: Likewise.
15639         * dwarf2cfi.c: Likewise.
15640         * dwarf2out.c: Likewise.
15641         * emit-rtl.c: Likewise.
15642         * et-forest.c: Likewise.
15643         * except.c: Likewise.
15644         * explow.c: Likewise.
15645         * expmed.c: Likewise.
15646         * expr.c: Likewise.
15647         * final.c: Likewise.
15648         * fixed-value.c: Likewise.
15649         * fold-const.c: Likewise.
15650         * function.c: Likewise.
15651         * fwprop.c: Likewise.
15652         * gcc-plugin.h: Likewise.
15653         * gcse.c: Likewise.
15654         * generic-match-head.c: Likewise.
15655         * ggc-page.c: Likewise.
15656         * gimple-builder.c: Likewise.
15657         * gimple-expr.c: Likewise.
15658         * gimple-fold.c: Likewise.
15659         * gimple-iterator.c: Likewise.
15660         * gimple-low.c: Likewise.
15661         * gimple-match-head.c: Likewise.
15662         * gimple-pretty-print.c: Likewise.
15663         * gimple-ssa-isolate-paths.c: Likewise.
15664         * gimple-ssa-strength-reduction.c: Likewise.
15665         * gimple-streamer-in.c: Likewise.
15666         * gimple-streamer-out.c: Likewise.
15667         * gimple-streamer.h: Likewise.
15668         * gimple-walk.c: Likewise.
15669         * gimple.c: Likewise.
15670         * gimplify-me.c: Likewise.
15671         * gimplify.c: Likewise.
15672         * godump.c: Likewise.
15673         * graph.c: Likewise.
15674         * graphite-blocking.c: Likewise.
15675         * graphite-dependences.c: Likewise.
15676         * graphite-interchange.c: Likewise.
15677         * graphite-isl-ast-to-gimple.c: Likewise.
15678         * graphite-optimize-isl.c: Likewise.
15679         * graphite-poly.c: Likewise.
15680         * graphite-scop-detection.c: Likewise.
15681         * graphite-sese-to-poly.c: Likewise.
15682         * graphite.c: Likewise.
15683         * haifa-sched.c: Likewise.
15684         * hw-doloop.c: Likewise.
15685         * ifcvt.c: Likewise.
15686         * init-regs.c: Likewise.
15687         * input.c: Likewise.
15688         * internal-fn.c: Likewise.
15689         * ipa-chkp.c: Likewise.
15690         * ipa-comdats.c: Likewise.
15691         * ipa-cp.c: Likewise.
15692         * ipa-devirt.c: Likewise.
15693         * ipa-icf-gimple.c: Likewise.
15694         * ipa-icf.c: Likewise.
15695         * ipa-inline-analysis.c: Likewise.
15696         * ipa-inline-transform.c: Likewise.
15697         * ipa-inline.c: Likewise.
15698         * ipa-polymorphic-call.c: Likewise.
15699         * ipa-profile.c: Likewise.
15700         * ipa-prop.c: Likewise.
15701         * ipa-pure-const.c: Likewise.
15702         * ipa-ref.c: Likewise.
15703         * ipa-reference.c: Likewise.
15704         * ipa-split.c: Likewise.
15705         * ipa-utils.c: Likewise.
15706         * ipa-visibility.c: Likewise.
15707         * ipa.c: Likewise.
15708         * ira-build.c: Likewise.
15709         * ira-color.c: Likewise.
15710         * ira-conflicts.c: Likewise.
15711         * ira-costs.c: Likewise.
15712         * ira-emit.c: Likewise.
15713         * ira-lives.c: Likewise.
15714         * ira.c: Likewise.
15715         * jump.c: Likewise.
15716         * langhooks.c: Likewise.
15717         * lcm.c: Likewise.
15718         * loop-doloop.c: Likewise.
15719         * loop-init.c: Likewise.
15720         * loop-invariant.c: Likewise.
15721         * loop-iv.c: Likewise.
15722         * loop-unroll.c: Likewise.
15723         * lower-subreg.c: Likewise.
15724         * lra-assigns.c: Likewise.
15725         * lra-coalesce.c: Likewise.
15726         * lra-constraints.c: Likewise.
15727         * lra-eliminations.c: Likewise.
15728         * lra-lives.c: Likewise.
15729         * lra-remat.c: Likewise.
15730         * lra-spills.c: Likewise.
15731         * lra.c: Likewise.
15732         * lto-cgraph.c: Likewise.
15733         * lto-compress.c: Likewise.
15734         * lto-opts.c: Likewise.
15735         * lto-section-in.c: Likewise.
15736         * lto-section-out.c: Likewise.
15737         * lto-streamer-in.c: Likewise.
15738         * lto-streamer-out.c: Likewise.
15739         * lto-streamer.c: Likewise.
15740         * mcf.c: Likewise.
15741         * mode-switching.c: Likewise.
15742         * modulo-sched.c: Likewise.
15743         * omega.c: Likewise.
15744         * omp-low.c: Likewise.
15745         * optabs.c: Likewise.
15746         * opts-global.c: Likewise.
15747         * opts.h: Likewise.
15748         * passes.c: Likewise.
15749         * plugin.c: Likewise.
15750         * postreload-gcse.c: Likewise.
15751         * postreload.c: Likewise.
15752         * predict.c: Likewise.
15753         * pretty-print.h: Likewise.
15754         * print-rtl.c: Likewise.
15755         * print-tree.c: Likewise.
15756         * profile.c: Likewise.
15757         * real.c: Likewise.
15758         * realmpfr.c: Likewise.
15759         * recog.c: Likewise.
15760         * ree.c: Likewise.
15761         * reg-stack.c: Likewise.
15762         * regcprop.c: Likewise.
15763         * reginfo.c: Likewise.
15764         * regrename.c: Likewise.
15765         * regstat.c: Likewise.
15766         * reload.c: Likewise.
15767         * reload1.c: Likewise.
15768         * reorg.c: Likewise.
15769         * resource.c: Likewise.
15770         * rtl-chkp.c: Likewise.
15771         * rtl-error.c: Likewise.
15772         * rtlanal.c: Likewise.
15773         * rtlhooks.c: Likewise.
15774         * sanopt.c: Likewise.
15775         * sched-deps.c: Likewise.
15776         * sched-ebb.c: Likewise.
15777         * sched-rgn.c: Likewise.
15778         * sched-vis.c: Likewise.
15779         * sdbout.c: Likewise.
15780         * sel-sched-dump.c: Likewise.
15781         * sel-sched-ir.c: Likewise.
15782         * sel-sched.c: Likewise.
15783         * sese.c: Likewise.
15784         * shrink-wrap.c: Likewise.
15785         * simplify-rtx.c: Likewise.
15786         * stack-ptr-mod.c: Likewise.
15787         * statistics.c: Likewise.
15788         * stmt.c: Likewise.
15789         * stor-layout.c: Likewise.
15790         * store-motion.c: Likewise.
15791         * streamer-hooks.c: Likewise.
15792         * stringpool.c: Likewise.
15793         * symtab.c: Likewise.
15794         * target-globals.c: Likewise.
15795         * targhooks.c: Likewise.
15796         * toplev.c: Likewise.
15797         * tracer.c: Likewise.
15798         * trans-mem.c: Likewise.
15799         * tree-affine.c: Likewise.
15800         * tree-browser.c: Likewise.
15801         * tree-call-cdce.c: Likewise.
15802         * tree-cfg.c: Likewise.
15803         * tree-cfgcleanup.c: Likewise.
15804         * tree-chkp-opt.c: Likewise.
15805         * tree-chkp.c: Likewise.
15806         * tree-chrec.c: Likewise.
15807         * tree-complex.c: Likewise.
15808         * tree-data-ref.c: Likewise.
15809         * tree-dfa.c: Likewise.
15810         * tree-diagnostic.c: Likewise.
15811         * tree-dump.c: Likewise.
15812         * tree-eh.c: Likewise.
15813         * tree-emutls.c: Likewise.
15814         * tree-if-conv.c: Likewise.
15815         * tree-inline.c: Likewise.
15816         * tree-into-ssa.c: Likewise.
15817         * tree-iterator.c: Likewise.
15818         * tree-loop-distribution.c: Likewise.
15819         * tree-nested.c: Likewise.
15820         * tree-nrv.c: Likewise.
15821         * tree-object-size.c: Likewise.
15822         * tree-outof-ssa.c: Likewise.
15823         * tree-parloops.c: Likewise.
15824         * tree-phinodes.c: Likewise.
15825         * tree-predcom.c: Likewise.
15826         * tree-pretty-print.c: Likewise.
15827         * tree-profile.c: Likewise.
15828         * tree-scalar-evolution.c: Likewise.
15829         * tree-sra.c: Likewise.
15830         * tree-ssa-address.c: Likewise.
15831         * tree-ssa-alias.c: Likewise.
15832         * tree-ssa-ccp.c: Likewise.
15833         * tree-ssa-coalesce.c: Likewise.
15834         * tree-ssa-copy.c: Likewise.
15835         * tree-ssa-copyrename.c: Likewise.
15836         * tree-ssa-dce.c: Likewise.
15837         * tree-ssa-dom.c: Likewise.
15838         * tree-ssa-dse.c: Likewise.
15839         * tree-ssa-forwprop.c: Likewise.
15840         * tree-ssa-ifcombine.c: Likewise.
15841         * tree-ssa-live.c: Likewise.
15842         * tree-ssa-loop-ch.c: Likewise.
15843         * tree-ssa-loop-im.c: Likewise.
15844         * tree-ssa-loop-ivcanon.c: Likewise.
15845         * tree-ssa-loop-ivopts.c: Likewise.
15846         * tree-ssa-loop-manip.c: Likewise.
15847         * tree-ssa-loop-niter.c: Likewise.
15848         * tree-ssa-loop-prefetch.c: Likewise.
15849         * tree-ssa-loop-unswitch.c: Likewise.
15850         * tree-ssa-loop.c: Likewise.
15851         * tree-ssa-math-opts.c: Likewise.
15852         * tree-ssa-operands.c: Likewise.
15853         * tree-ssa-phiopt.c: Likewise.
15854         * tree-ssa-phiprop.c: Likewise.
15855         * tree-ssa-pre.c: Likewise.
15856         * tree-ssa-propagate.c: Likewise.
15857         * tree-ssa-reassoc.c: Likewise.
15858         * tree-ssa-sccvn.c: Likewise.
15859         * tree-ssa-scopedtables.c: Likewise.
15860         * tree-ssa-sink.c: Likewise.
15861         * tree-ssa-strlen.c: Likewise.
15862         * tree-ssa-structalias.c: Likewise.
15863         * tree-ssa-tail-merge.c: Likewise.
15864         * tree-ssa-ter.c: Likewise.
15865         * tree-ssa-threadedge.c: Likewise.
15866         * tree-ssa-threadupdate.c: Likewise.
15867         * tree-ssa-uncprop.c: Likewise.
15868         * tree-ssa-uninit.c: Likewise.
15869         * tree-ssa.c: Likewise.
15870         * tree-ssanames.c: Likewise.
15871         * tree-stdarg.c: Likewise.
15872         * tree-streamer-in.c: Likewise.
15873         * tree-streamer-out.c: Likewise.
15874         * tree-streamer.c: Likewise.
15875         * tree-switch-conversion.c: Likewise.
15876         * tree-tailcall.c: Likewise.
15877         * tree-vect-data-refs.c: Likewise.
15878         * tree-vect-generic.c: Likewise.
15879         * tree-vect-loop-manip.c: Likewise.
15880         * tree-vect-loop.c: Likewise.
15881         * tree-vect-patterns.c: Likewise.
15882         * tree-vect-slp.c: Likewise.
15883         * tree-vect-stmts.c: Likewise.
15884         * tree-vectorizer.c: Likewise.
15885         * tree-vrp.c: Likewise.
15886         * tree.c: Likewise.
15887         * tsan.c: Likewise.
15888         * ubsan.c: Likewise.
15889         * valtrack.c: Likewise.
15890         * value-prof.c: Likewise.
15891         * var-tracking.c: Likewise.
15892         * varasm.c: Likewise.
15893         * varpool.c: Likewise.
15894         * vmsdbgout.c: Likewise.
15895         * vtable-verify.c: Likewise.
15896         * web.c: Likewise.
15897         * wide-int.cc: Likewise.
15898         * xcoffout.c: Likewise.
15899         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
15900         * common/common-targhooks.c: Likewise.
15901         * config/aarch64/aarch64-builtins.c: Likewise.
15902         * config/aarch64/aarch64.c: Likewise.
15903         * config/alpha/alpha.c: Likewise.
15904         * config/arc/arc.c: Likewise.
15905         * config/arm/aarch-common.c: Likewise.
15906         * config/arm/arm-builtins.c: Likewise.
15907         * config/arm/arm-c.c: Likewise.
15908         * config/arm/arm.c: Likewise.
15909         * config/avr/avr-c.c: Likewise.
15910         * config/avr/avr-log.c: Likewise.
15911         * config/avr/avr.c: Likewise.
15912         * config/bfin/bfin.c: Likewise.
15913         * config/c6x/c6x.c: Likewise.
15914         * config/cr16/cr16.c: Likewise.
15915         * config/cris/cris.c: Likewise.
15916         * config/darwin-c.c: Likewise.
15917         * config/darwin.c: Likewise.
15918         * config/default-c.c: Likewise.
15919         * config/epiphany/epiphany.c: Likewise.
15920         * config/epiphany/mode-switch-use.c: Likewise.
15921         * config/epiphany/resolve-sw-modes.c: Likewise.
15922         * config/fr30/fr30.c: Likewise.
15923         * config/frv/frv.c: Likewise.
15924         * config/ft32/ft32.c: Likewise.
15925         * config/glibc-c.c: Likewise.
15926         * config/h8300/h8300.c: Likewise.
15927         * config/i386/i386-c.c: Likewise.
15928         * config/i386/i386.c: Likewise.
15929         * config/i386/msformat-c.c: Likewise.
15930         * config/i386/winnt-cxx.c: Likewise.
15931         * config/i386/winnt-stubs.c: Likewise.
15932         * config/i386/winnt.c: Likewise.
15933         * config/ia64/ia64-c.c: Likewise.
15934         * config/ia64/ia64.c: Likewise.
15935         * config/iq2000/iq2000.c: Likewise.
15936         * config/lm32/lm32.c: Likewise.
15937         * config/m32c/m32c-pragma.c: Likewise.
15938         * config/m32c/m32c.c: Likewise.
15939         * config/m32r/m32r.c: Likewise.
15940         * config/m68k/m68k.c: Likewise.
15941         * config/mcore/mcore.c: Likewise.
15942         * config/mep/mep-pragma.c: Likewise.
15943         * config/mep/mep.c: Likewise.
15944         * config/microblaze/microblaze-c.c: Likewise.
15945         * config/microblaze/microblaze.c: Likewise.
15946         * config/mips/mips.c: Likewise.
15947         * config/mmix/mmix.c: Likewise.
15948         * config/mn10300/mn10300.c: Likewise.
15949         * config/moxie/moxie.c: Likewise.
15950         * config/msp430/msp430-c.c: Likewise.
15951         * config/msp430/msp430.c: Likewise.
15952         * config/nds32/nds32-cost.c: Likewise.
15953         * config/nds32/nds32-fp-as-gp.c: Likewise.
15954         * config/nds32/nds32-intrinsic.c: Likewise.
15955         * config/nds32/nds32-isr.c: Likewise.
15956         * config/nds32/nds32-md-auxiliary.c: Likewise.
15957         * config/nds32/nds32-memory-manipulation.c: Likewise.
15958         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15959         * config/nds32/nds32-predicates.c: Likewise.
15960         * config/nds32/nds32.c: Likewise.
15961         * config/nios2/nios2.c: Likewise.
15962         * config/nvptx/nvptx.c: Likewise.
15963         * config/pa/pa.c: Likewise.
15964         * config/pdp11/pdp11.c: Likewise.
15965         * config/rl78/rl78-c.c: Likewise.
15966         * config/rl78/rl78.c: Likewise.
15967         * config/rs6000/rs6000-c.c: Likewise.
15968         * config/rs6000/rs6000.c: Likewise.
15969         * config/rx/rx.c: Likewise.
15970         * config/s390/s390-c.c: Likewise.
15971         * config/s390/s390.c: Likewise.
15972         * config/sh/sh-c.c: Likewise.
15973         * config/sh/sh-mem.cc: Likewise.
15974         * config/sh/sh.c: Likewise.
15975         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15976         * config/sh/sh_treg_combine.cc: Likewise.
15977         * config/sol2-c.c: Likewise.
15978         * config/sol2-cxx.c: Likewise.
15979         * config/sol2-stubs.c: Likewise.
15980         * config/sol2.c: Likewise.
15981         * config/sparc/sparc-c.c: Likewise.
15982         * config/sparc/sparc.c: Likewise.
15983         * config/spu/spu-c.c: Likewise.
15984         * config/spu/spu.c: Likewise.
15985         * config/stormy16/stormy16.c: Likewise.
15986         * config/tilegx/mul-tables.c: Likewise.
15987         * config/tilegx/tilegx-c.c: Likewise.
15988         * config/tilegx/tilegx.c: Likewise.
15989         * config/tilepro/mul-tables.c: Likewise.
15990         * config/tilepro/tilepro-c.c: Likewise.
15991         * config/tilepro/tilepro.c: Likewise.
15992         * config/v850/v850-c.c: Likewise.
15993         * config/v850/v850.c: Likewise.
15994         * config/vax/vax.c: Likewise.
15995         * config/visium/visium.c: Likewise.
15996         * config/vms/vms-c.c: Likewise.
15997         * config/vms/vms.c: Likewise.
15998         * config/vxworks.c: Likewise.
15999         * config/winnt-c.c: Likewise.
16000         * config/xtensa/xtensa.c: Likewise.
16002 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
16004         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16005         function.
16006         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16008 2015-06-17  Richard Biener  <rguenther@suse.de>
16010         PR tree-optimization/66251
16011         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16012         stmts for SLP strided stores.
16014         Revert
16015         2015-05-22  Richard Biener  <rguenther@suse.de>
16017         PR tree-optimization/66251
16018         * tree-vect-stmts.c (vectorizable_conversion): Properly
16019         set STMT_VINFO_VEC_STMT even for the SLP case.
16021         2015-05-26  Michael Matz  <matz@suse.de>
16023         PR middle-end/66251
16024         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16025         STMT_VINFO_VEC_STMT, also with SLP.
16027 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
16029         PR target/56766
16030         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16031         (*avx_addsubv4df3_1s): Ditto.
16032         (*sse3_addsubv2df3_1): Ditto.
16033         (*sse3_addsubv2df3_1s): Ditto.
16034         (*avx_addsubv8sf3_1): Ditto.
16035         (*avx_addsubv8sf3_1s): Ditto.
16036         (*sse3_addsubv4sf3_1): Ditto.
16037         (*sse3_addsubv4sf3_1s): Ditto.
16039 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
16041         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16042         (SYSROOT_SUFFIX_SPEC): Update.
16043         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16044         (STARTFILE_PREFIX_SPEC): Update.
16045         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16046         (MULTILIB_REQUIRED): New.
16047         (MULTILIB_OSDIRNAMES): New.
16048         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16049         (MULTILIB_REQUIRED): New.
16050         (MULTILIB_OSDIRNAMES): New.
16052 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
16054         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16055         * config/aarch64/aarch64-options-extensions.def: Update "fP",
16056         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
16057         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16058         (AARCH64_FL_PAN): New.
16059         (AARCH64_FL_LOR): New.
16060         (AARCH64_FL_RDMA): New.
16061         (AARCH64_FL_FOR_ARCH8_1): New.
16062         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16063         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16065 2015-06-16  Martin Liska  <mliska@suse.cz>
16067         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16068         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16069         guard.
16071 2015-06-16  Richard Biener  <rguenther@suse.de>
16073         * tree-vect-stmts.c (vectorizable_store): Adjust.
16074         (vectorizable_load): Likewise.
16075         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16076         Simplify.
16077         (vect_create_data_ref_ptr): Likewise.
16078         (bump_vector_ptr): Adjust.
16080 2015-06-16  Richard Biener  <rguenther@suse.de>
16082         * tree-vect-stmts.c (vectorizable_load): Properly start loads
16083         with the first element if this is grouped loads.
16085 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
16087         * config/arm/arm-protos.h (struct tune_params): Rename
16088         log_op_non_sc to log_op_non_short_circuit, and rename enum
16089         values to expand SC to SHORT_CIRCUIT.
16090         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16091         to LOG_OP_NON_SHORT_CIRCUIT.
16092         (arm_fastmul_tune):Likewise
16093         (arm_strongarm_tune): Likewise.
16094         (arm_xscale_tune): Likewise.
16095         (arm_9e_tune): Likewise.
16096         (arm_marvell_pj4_tune): Likewise.
16097         (arm_v6t2_tune): Likewise.
16098         (arm_cortex_tune): Likewise.
16099         (arm_cortex_a8_tune): Likewise.
16100         (arm_cortex_a7_tune): Likewise.
16101         (arm_cortex_a15_tune): Likewise.
16102         (arm_cortex_a53_tune): Likewise.
16103         (arm_cortex_a57_tune): Likewise.
16104         (arm_xgene1_tune): Likewise.
16105         (arm_cortex_a5_tune): Likewise.
16106         (arm_cortex_a9_tune): Likewise.
16107         (arm_cortex_a12_tune): Likewise.
16108         (arm_v7m_tune): Likewise.
16109         (arm_cortex_m7_tune): Likewise.
16110         (arm_v6m_tune): Likewise.
16111         (arm_fa726te_tune): Likewise.
16113 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
16115         * altivec.md: Delete UNSPEC_VMLADDUHM.
16116         (mulv4si3_p8): New pattern.
16117         (mulv4si3): Use it for POWER8.
16118         (mulv8hi3): Use vmladduhm with zero addend.
16119         (altivec_vmladduhm): Descriptive RTL.
16121 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
16123         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16124         to use neon_move instead of mov_imm.
16125         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16126         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16128         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16129         aarch64_float_const_zero_rtx_p check before TFmode check.
16130         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16131         an fp zero.
16132         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
16133         code and attributes to match.  Change condition from register_operand
16134         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
16135         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
16136         to store2.
16138 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
16140         PR debug/66535
16141         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16142         there is no parent.
16144 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
16146         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16147         HOST_WIDE_INT parameter.
16149 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
16151         PR ipa/66181
16152         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16153         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16154         TYPE_NO_FORCE_BLK.
16155         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16157 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
16159         * rtl.h (classify_insn): Declare.
16160         * emit-rtl.c (classify_insn): Move to...
16161         * rtl.c: ...here and add generator support.
16162         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16163         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16164         * genemit.c (gen_emit_seq): New function.
16165         (gen_expand, gen_split): Use it.
16167 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
16169         * tree.c (make_vector_stat): Fix comment to state that the
16170         function returns a VECTOR_CST.
16172 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
16174         * gensupport.h (add_implicit_parallel): Declare.
16175         * genrecog.c (add_implicit_parallel): Move to...
16176         * gensupport.c (add_implicit_parallel): ...here.
16177         (process_one_cond_exec): Use it.
16178         * genemit.c (gen_insn): Likewise.
16180 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
16182         PR bootstrap/66448
16183         * passes.c (rest_of_decl_compilation): Do not register globals for
16184         early debug if they are declared in built-ins.
16186 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
16188         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16190 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16192         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16193         manually swapping.
16194         (noce_try_cmove_arith): Likewise.
16195         (noce_get_alt_condition): Likewise.
16197 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16199         * common/config/i386/i386-common.c
16200         (OPTION_MASK_ISA_MWAITX_SET): New.
16201         (ix86_handle_option): Handle mwaitx.
16202         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16203         (x86_64-*-*): Likewise.
16204         * config/i386/mwaitxintrin.h: New header.
16205         * config/i386/cpuid.h (bit_MWAITX):  Define.
16206         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16207         MWAITX support.
16208         * config/i386/i386.opt (mwaitx): New.
16209         * config/i386/i386-builtin-types.def
16210         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16211         * config/i386/i386-c.c: Define __MWAITX__ if needed.
16212         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16213         (PTA_MWAITX): New.
16214         (ix86_option_override_internal): Handle new option.
16215         (processor_alias_table): Added PTA_MWAITX.
16216         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16217         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16218         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16219         IX86_BUILTIN_MONITORX  built-ins.
16220         * config/i386/i386.h (TARGET_MWAITX): New.
16221         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16222         UNSPEC_MONITORX.
16223         (mwaitx):  New pattern.
16224         (monitorx_<mode>): New pattern.
16225         * config/i386/x86intrin.h: Include mwaitxintrin.h.
16226         * doc/extend.texi: Document monitorx and mwaitx builtins.
16227         * doc/invoke.texi: Document -mmwaitx option.
16229 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
16231         * emit-rtl.c (need_atomic_barrier_p): Mask model with
16232         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
16234 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16236         * dbxout.c (xcoff_debug_hooks): Provide a function for
16237         register_main_translation_unit hook.
16239 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16241         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16242         variants cases from switch.
16243         (rs6000_post_atomic_barrier): Same.
16244         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16245         (rs6000_expand_atomic_exchange): Same.
16246         (rs6000_expand_atomic_op): Same.
16247         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16248         SYNC variants cases from switch.
16249         (atomic_load): Same.
16250         (atomic_store): Same.
16252 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
16254         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16255         CONST_INT for goto.
16257 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
16259         PR bootstrap/66448
16260         * dwarf2out.c (check_die): Check for common duplicate attributes.
16261         (add_location_or_const_value_attribute): Do not add duplicate
16262         attributes.
16263         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16264         time around.
16265         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16266         (gen_type_die_with_usage): Call check_die.
16267         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16269 2015-06-11  Jason Merrill  <jason@redhat.com>
16271         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16272         dies.
16274 2015-06-11  Marek Polacek  <polacek@redhat.com>
16276         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16278 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
16280         PR bootstrap/66252
16281         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16282         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16283         (*addx_extend_sp32): Fix pasto.
16284         (*subx_extend): Rename into...
16285         (*subx_extend_sp32): ...this.
16286         (*adddi3_extend_sp32): Add earlyclobber.
16287         (*subdi3_insn_sp32): Likewise.
16288         (*subdi3_extend_sp32): Likewise.
16289         (*and_not_di_sp32): Likewise.
16290         (*or_not_di_sp32): Likewise.
16291         (*xor_not_di_sp32): Likewise.
16292         (*negdi2_sp32): Likewise.
16293         (*one_cmpldi2_sp32): Likewise.
16295 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
16297         * debug.h (struct gcc_debug_hooks): Add a
16298         register_main_translation_unit hook.
16299         * debug.c (do_nothing_debug_hooks): Provide a function for this
16300         new hook.
16301         * dbxout.c (dbx_debug_hooks): Likewise.
16302         * sdbout.c (sdb_debug_hooks): Likewise.
16303         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16304         * dwarf2out.c (main_translation_unit): New global variable.
16305         (dwarf2out_register_main_translation_unit): New function
16306         implementing the new hook.
16307         (dwarf2_debug_hooks): Assign
16308         dwarf2out_register_main_translation_unit to this new hook.
16309         (dwarf2out_init): Associate any main translation unit to
16310         comp_unit_die ().
16312 2015-06-11  Marek Polacek  <polacek@redhat.com>
16314         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16316 2015-06-11  Marek Polacek  <polacek@redhat.com>
16318         * match.pd: Use single_use throughout.
16320 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16322         * config/arm/arm.c (arm_option_params_internal): When optimising
16323         for speed set max_insns_skipped when arm_restrict_it.
16325 2015-06-11  Christian Bruel  <christian.bruel@st.com>
16327         PR target/52144
16328         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16329          macros in ...
16330         (arm_cpu_builtins): New function.
16331         (arm_pragma_target_parse): Call arm_cpu_builtins.
16332         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16333         (arm_register_target_pragmas): Likewise.
16334         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16335          Call arm_register_target_pragmas.
16336         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16337         (arm_pragma_target_parse): Likewise.
16339 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16341         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16342         of the second operand.
16344 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
16346         PR target/66473
16347         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16348         to prepare mask operand for AVX512 modes.
16350 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16352         PR target/66474
16353         * doc/md.texi (Machine Constraints): Document that on the PowerPC
16354         if you use a constraint that targets a VSX register, you must use
16355         %x<n> in the template.
16357 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
16359         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16360         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16361         (define_insn "trap"): New definition.
16363 2015-06-10  Richard Biener  <rguenther@suse.de>
16365         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16366         out from ...
16367         (vect_supported_load_permutation_p): ... here.  Handle
16368         supportable permutations in reductions.
16369         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16370         for vectorizing strided group loads.
16372 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
16374         PR target/66470
16375         * config/i386/i386.c (ix86_split_long_move): For collisions
16376         involving direct tls segment refs, move the UNSPEC_TP possibly
16377         wrapped in ZERO_EXTEND out of the address for lea, to each of
16378         the memory loads.
16380 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16382         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16383         dmb sy. Adjust tabs.
16385 2015-06-10  Tom de Vries  <tom@codesourcery.com>
16387         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16389 2015-06-10  Martin Liska  <mliska@suse.cz>
16391         PR bootstrap/66471
16392         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16393         all enum values in mem_alloc_origin.
16394         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16395         name.
16396         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16397         * bitmap.c (bitmap_register): Likewise.
16398         (dump_bitmap_statistics): Likewise.
16399         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16400         (ggc_record_overhead): Likewise.
16401         * hash-map.h: Likewise.
16402         * hash-set.h: Likewise.
16403         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16404         * hash-table.h: Likewise.
16405         * vec.c (vec_prefix::register_overhead): Likewise.
16406         (vec_prefix::release_overhead): Likewise.
16407         (dump_vec_loc_statistics): Likewise.
16409 2015-06-09  Christian Bruel  <christian.bruel@st.com>
16411         PR target/52144
16412         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16413         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16414         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16415         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16416         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16417         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16418         (arm_valid_target_attribute_p): Likewise.
16419         (arm_set_current_function, arm_can_inline_p): Likewise.
16420         (arm_valid_target_attribute_rec): Likewise.
16421         (arm_previous_fndecl): New variable.
16422         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16423         (TARGET_CAN_INLINE_P): Define.
16424         (arm_asm_trampoline_template): Emit mode.
16425         (arm_file_start): Don't set unified syntax.
16426         (arm_declare_function_name): Set unified syntax and mode.
16427         (arm_option_override): Init target_option_default_node.
16428         and target_option_current_node.
16429         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16430         (*call_symbol): Likewise.
16431         * doc/extend.texi: Document ARM/Thumb target attribute.
16432         * doc/invoke.texi: Likewise.
16434 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16436         Revert:
16437         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16438         PR rtl-optimization/64164
16439         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16440         * tree-ssa-copyrename.c: Removed.
16441         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16442         -ftree-coalesce-vars.
16443         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16444         * common.opt (ftree-copyrename): Ignore.
16445         (ftree-coalesce-inlined-vars): Likewise.
16446         * doc/invoke.texi: Remove the ignored options above.
16447         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16448         * tree-ssa-coalesce.h: ... here.
16449         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16450         headers required by it.
16451         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16452         across variables when flag_tree_coalesce_vars.  Check register
16453         use and promoted modes to allow coalescing.  Moved to
16454         tree-ssa-coalesce.c.
16455         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16456         with its member functions to tree-ssa-coalesce.c.
16457         (var_map_base_init): Likewise.  Renamed to
16458         compute_samebase_partition_bases.
16459         (partition_view_normal): Drop want_bases parameter.
16460         (partition_view_bitmap): Likewise.
16461         * tree-ssa-live.h: Adjust declarations.
16462         * tree-ssa-coalesce.c: Include explow.h.
16463         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16464         default defs at the entry point.
16465         (dump_part_var_map): New.
16466         (compute_optimized_partition_bases): New, called by...
16467         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16468         of compute_samebase_partition_bases.  Adjust.
16469         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16470         * cfgexpand.c (leader_merge): New.
16471         (get_rtl_for_parm_ssa_default_def): New.
16472         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16473         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16474         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16475         redundant MEM attr setting.
16476         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16477         from...
16478         (expand_one_stack_var): ... this.  New wrapper to check and
16479         skip already expanded SSA partitions.
16480         (record_alignment_for_reg_var): New, factored out of...
16481         (expand_one_var): ... this.
16482         (expand_one_ssa_partition): New.
16483         (adjust_one_expanded_partition_var): New.
16484         (expand_one_register_var): Check and skip already expanded SSA
16485         partitions.
16486         (expand_used_vars): Don't create DECLs for anonymous SSA
16487         names.  Expand all SSA partitions, then adjust all SSA names.
16488         (pass::execute): Replace the loops that set
16489         SA.partition_to_pseudo from partition leaders and cleared
16490         DECL_RTL for multi-location variables, and that which used to
16491         rename vars and set attrs, with one that clears DECL_RTL and
16492         checks that PARMs and RESULTs default_defs match DECL_RTL.
16493         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16494         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16495         * explow.c (promote_ssa_mode): New.
16496         * explow.h (promote_ssa_mode): Declare.
16497         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16498         * function.c: Include cfgexpand.h.
16499         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16500         (use_register_for_parm_decl): Wrapper for the above to
16501         special-case the result_ptr.
16502         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16503         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16504         multiple locations.
16505         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16506         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16507         (assign_parm_setup_block): Prefer SSA-assigned location.
16508         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16509         if stack_parm is NULL.
16510         (assign_parm_setup_stack): Prefer SSA-assigned location.
16511         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16512         rtl before testing for pointer bounds.  Special-case result_ptr.
16513         (expand_function_start): Maybe reset DECL_RTL of result.
16514         Prefer SSA-assigned location for result and static chain.
16515         Factor out DECL_RESULT and SET_DECL_RTL.
16516         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16517         anonymous SSA names.  Use promote_ssa_mode.
16518         (get_temp_reg): Likewise.
16519         (remove_ssa_form): Adjust.
16520         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16521         and get its reg_usage for reg invalidation.
16522         (compute_bb_dataflow): Pass it insn.
16523         (emit_notes_in_bb): Likewise.
16524         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16525         fail assert on conversion between unsigned types.
16527 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16529         PR tree-optimization/65460
16530         * omp-low.c (expand_omp_target): Set parallelized_function on
16531         cgraph_node for child_fn.
16533 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16535         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
16536         parallelized_function before add_new_function.
16538 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
16540         * gcc-plugin.h: Move decls to plugin.h and include it.
16541         * plugin.h: Relocate decls from gcc-plugin.h
16542         * ggc-page.c: Include required header files.
16543         * passes.c: Likewise.
16544         * cgraphunit.c: Likewise.
16546 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16548         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
16550 2015-06-09  Jason Merrill  <jason@redhat.com>
16552         PR bootstrap/66448
16553         * toplev.c (check_global_declaration): Don't warn about a clone.
16555 2015-06-09  Marek Polacek  <polacek@redhat.com>
16557         PR tree-optimization/66299
16558         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
16559         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
16560         patterns.
16562 2015-06-09  Richard Biener  <rguenther@suse.de>
16564         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
16565         (vect_analyze_slp_instance): Instead do not falsely drop
16566         load permutations.
16568 2015-06-09  Richard Biener  <rguenther@suse.de>
16570         PR middle-end/66423
16571         * match.pd: Handle A % (unsigned)(1 << B).
16573 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
16575         * varasm.c (output_object_block_htab): Remove.
16576         (output_object_block_compare): New.
16577         (output_object_blocks): Sort named object_blocks before outputting
16578         them.
16580 2015-06-09  Richard Biener  <rguenther@suse.de>
16582         PR tree-optimization/66419
16583         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
16584         consider GROUP_GAP when detecting a perfect subchain.
16586 2015-06-09  Nick Clifton  <nickc@redhat.com>
16588         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
16589         place read only data in the .frodata section.
16591 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
16593         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
16594         (atomic_store<mode>): Likewise.
16596 2015-06-09  Richard Biener  <rguenther@suse.de>
16598         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
16600 2015-06-09  Richard Biener  <rguenther@suse.de>
16602         PR middle-end/66413
16603         * tree-inline.c (insert_init_debug_bind): Unshare value.
16605 2015-06-09  Richard Biener  <rguenther@suse.de>
16607         PR tree-optimization/66396
16608         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
16609         Rename virtual operands.
16611 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16613         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
16614         always return false.
16616 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16618         PR rtl-optimization/64164
16619         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16620         * tree-ssa-copyrename.c: Removed.
16621         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16622         -ftree-coalesce-vars.
16623         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16624         * common.opt (ftree-copyrename): Ignore.
16625         (ftree-coalesce-inlined-vars): Likewise.
16626         * doc/invoke.texi: Remove the ignored options above.
16627         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16628         * tree-ssa-coalesce.h: ... here.
16629         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16630         headers required by it.
16631         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16632         across variables when flag_tree_coalesce_vars.  Check register
16633         use and promoted modes to allow coalescing.  Moved to
16634         tree-ssa-coalesce.c.
16635         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16636         with its member functions to tree-ssa-coalesce.c.
16637         (var_map_base_init): Likewise.  Renamed to
16638         compute_samebase_partition_bases.
16639         (partition_view_normal): Drop want_bases parameter.
16640         (partition_view_bitmap): Likewise.
16641         * tree-ssa-live.h: Adjust declarations.
16642         * tree-ssa-coalesce.c: Include explow.h.
16643         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16644         default defs at the entry point.
16645         (dump_part_var_map): New.
16646         (compute_optimized_partition_bases): New, called by...
16647         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16648         of compute_samebase_partition_bases.  Adjust.
16649         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16650         * cfgexpand.c (leader_merge): New.
16651         (get_rtl_for_parm_ssa_default_def): New.
16652         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16653         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16654         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16655         redundant MEM attr setting.
16656         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16657         from...
16658         (expand_one_stack_var): ... this.  New wrapper to check and
16659         skip already expanded SSA partitions.
16660         (record_alignment_for_reg_var): New, factored out of...
16661         (expand_one_var): ... this.
16662         (expand_one_ssa_partition): New.
16663         (adjust_one_expanded_partition_var): New.
16664         (expand_one_register_var): Check and skip already expanded SSA
16665         partitions.
16666         (expand_used_vars): Don't create DECLs for anonymous SSA
16667         names.  Expand all SSA partitions, then adjust all SSA names.
16668         (pass::execute): Replace the loops that set
16669         SA.partition_to_pseudo from partition leaders and cleared
16670         DECL_RTL for multi-location variables, and that which used to
16671         rename vars and set attrs, with one that clears DECL_RTL and
16672         checks that PARMs and RESULTs default_defs match DECL_RTL.
16673         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16674         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16675         * explow.c (promote_ssa_mode): New.
16676         * explow.h (promote_ssa_mode): Declare.
16677         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16678         * function.c: Include cfgexpand.h.
16679         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16680         (use_register_for_parm_decl): Wrapper for the above to
16681         special-case the result_ptr.
16682         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16683         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16684         multiple locations.
16685         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16686         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16687         (assign_parm_setup_block): Prefer SSA-assigned location.
16688         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
16689         if stack_parm is NULL.
16690         (assign_parm_setup_stack): Prefer SSA-assigned location.
16691         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16692         rtl before testing for pointer bounds.  Special-case result_ptr.
16693         (expand_function_start): Maybe reset DECL_RTL of result.
16694         Prefer SSA-assigned location for result and static chain.
16695         Factor out DECL_RESULT and SET_DECL_RTL.
16696         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16697         anonymous SSA names.  Use promote_ssa_mode.
16698         (get_temp_reg): Likewise.
16699         (remove_ssa_form): Adjust.
16700         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16701         and get its reg_usage for reg invalidation.
16702         (compute_bb_dataflow): Pass it insn.
16703         (emit_notes_in_bb): Likewise.
16704         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16705         fail assert on conversion between unsigned types.
16707 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
16709         PR debug/58315
16710         * tree-inline.c (reset_debug_binding): New.
16711         (reset_debug_bindings): Likewise.
16712         (expand_call_inline): Call it.
16714 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
16716         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
16717         TYPE_STRING_FLAG.
16719 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
16721         * lto-streamer-out.c (lto_output_location): Stream
16722         reserved locations correctly.
16723         * lto-streamer-in.c (lto_output_location): Likewise.
16725 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
16727         * coretypes.h: Include hash-table.h and hash-set.h for host files.
16728         * ggc.h: Don't include statistics.h>
16729         * hash-map.h: Remove all includes.
16730         * hash-set.h: Likewise.
16731         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
16732         the include list. Remove <new>.
16733         * inchash.h: Remove all includes.
16734         * mem-stats.h: Likewise.
16735         * vec.h: No special processing for generators or ggc.
16736         * alias.c : Adjust include files.
16737         * alloc-pool.c : Likewise.
16738         * alloc-pool.h : Likewise.
16739         * asan.c : Likewise.
16740         * attribs.c : Likewise.
16741         * auto-inc-dec.c : Likewise.
16742         * auto-profile.c : Likewise.
16743         * bb-reorder.c : Likewise.
16744         * bitmap.c : Likewise.
16745         * bitmap.h : Likewise.
16746         * bt-load.c : Likewise.
16747         * builtins.c : Likewise.
16748         * caller-save.c : Likewise.
16749         * calls.c : Likewise.
16750         * ccmp.c : Likewise.
16751         * cfg.c : Likewise.
16752         * cfganal.c : Likewise.
16753         * cfgbuild.c : Likewise.
16754         * cfgcleanup.c : Likewise.
16755         * cfgexpand.c : Likewise.
16756         * cfghooks.c : Likewise.
16757         * cfgloop.c : Likewise.
16758         * cfgloop.h : Likewise.
16759         * cfgloopanal.c : Likewise.
16760         * cfgloopmanip.c : Likewise.
16761         * cfgrtl.c : Likewise.
16762         * cgraph.c : Likewise.
16763         * cgraphbuild.c : Likewise.
16764         * cgraphclones.c : Likewise.
16765         * cgraphunit.c : Likewise.
16766         * cilk-common.c : Likewise.
16767         * combine-stack-adj.c : Likewise.
16768         * combine.c : Likewise.
16769         * compare-elim.c : Likewise.
16770         * context.c : Likewise.
16771         * convert.c : Likewise.
16772         * coverage.c : Likewise.
16773         * cppbuiltin.c : Likewise.
16774         * cprop.c : Likewise.
16775         * cse.c : Likewise.
16776         * cselib.c : Likewise.
16777         * data-streamer-in.c : Likewise.
16778         * data-streamer-out.c : Likewise.
16779         * data-streamer.c : Likewise.
16780         * data-streamer.h : Likewise.
16781         * dbxout.c : Likewise.
16782         * dce.c : Likewise.
16783         * ddg.c : Likewise.
16784         * debug.c : Likewise.
16785         * df-core.c : Likewise.
16786         * df-problems.c : Likewise.
16787         * df-scan.c : Likewise.
16788         * df.h : Likewise.
16789         * dfp.c : Likewise.
16790         * dojump.c : Likewise.
16791         * dominance.c : Likewise.
16792         * domwalk.c : Likewise.
16793         * double-int.c : Likewise.
16794         * dse.c : Likewise.
16795         * dumpfile.c : Likewise.
16796         * dwarf2asm.c : Likewise.
16797         * dwarf2cfi.c : Likewise.
16798         * dwarf2out.c : Likewise.
16799         * emit-rtl.c : Likewise.
16800         * et-forest.c : Likewise.
16801         * except.c : Likewise.
16802         * except.h : Likewise.
16803         * explow.c : Likewise.
16804         * expmed.c : Likewise.
16805         * expr.c : Likewise.
16806         * final.c : Likewise.
16807         * fixed-value.c : Likewise.
16808         * fold-const.c : Likewise.
16809         * function.c : Likewise.
16810         * fwprop.c : Likewise.
16811         * gcc-plugin.h : Likewise.
16812         * gcc.c : Likewise.
16813         * gcse-common.c : Likewise.
16814         * gcse.c : Likewise.
16815         * genattrtab.c : Likewise.
16816         * genautomata.c : Likewise.
16817         * genconditions.c : Likewise.
16818         * genemit.c : Likewise.
16819         * generic-match-head.c : Likewise.
16820         * genextract.c : Likewise.
16821         * gengtype-state.c : Likewise.
16822         * gengtype.c : Likewise.
16823         * genhooks.c : Likewise.
16824         * genmatch.c : Likewise.
16825         * genmodes.c : Likewise.
16826         * genrecog.c : Likewise.
16827         * gensupport.c : Likewise.
16828         * ggc-common.c : Likewise.
16829         * ggc-internal.h : Likewise.
16830         * ggc-none.c : Likewise.
16831         * ggc-page.c : Likewise.
16832         * gimple-builder.c : Likewise.
16833         * gimple-expr.c : Likewise.
16834         * gimple-fold.c : Likewise.
16835         * gimple-iterator.c : Likewise.
16836         * gimple-low.c : Likewise.
16837         * gimple-match-head.c : Likewise.
16838         * gimple-pretty-print.c : Likewise.
16839         * gimple-ssa-isolate-paths.c : Likewise.
16840         * gimple-ssa-strength-reduction.c : Likewise.
16841         * gimple-ssa.h : Likewise.
16842         * gimple-streamer-in.c : Likewise.
16843         * gimple-streamer-out.c : Likewise.
16844         * gimple-streamer.h : Likewise.
16845         * gimple-walk.c : Likewise.
16846         * gimple.c : Likewise.
16847         * gimplify-me.c : Likewise.
16848         * gimplify.c : Likewise.
16849         * godump.c : Likewise.
16850         * graph.c : Likewise.
16851         * graphds.c : Likewise.
16852         * graphite-blocking.c : Likewise.
16853         * graphite-dependences.c : Likewise.
16854         * graphite-interchange.c : Likewise.
16855         * graphite-isl-ast-to-gimple.c : Likewise.
16856         * graphite-optimize-isl.c : Likewise.
16857         * graphite-poly.c : Likewise.
16858         * graphite-scop-detection.c : Likewise.
16859         * graphite-sese-to-poly.c : Likewise.
16860         * graphite.c : Likewise.
16861         * haifa-sched.c : Likewise.
16862         * hard-reg-set.h : Likewise.
16863         * hw-doloop.c : Likewise.
16864         * ifcvt.c : Likewise.
16865         * inchash.c : Likewise.
16866         * incpath.c : Likewise.
16867         * init-regs.c : Likewise.
16868         * input.c : Likewise.
16869         * internal-fn.c : Likewise.
16870         * ipa-chkp.c : Likewise.
16871         * ipa-comdats.c : Likewise.
16872         * ipa-cp.c : Likewise.
16873         * ipa-devirt.c : Likewise.
16874         * ipa-icf-gimple.c : Likewise.
16875         * ipa-icf.c : Likewise.
16876         * ipa-inline-analysis.c : Likewise.
16877         * ipa-inline-transform.c : Likewise.
16878         * ipa-inline.c : Likewise.
16879         * ipa-polymorphic-call.c : Likewise.
16880         * ipa-profile.c : Likewise.
16881         * ipa-prop.c : Likewise.
16882         * ipa-pure-const.c : Likewise.
16883         * ipa-ref.c : Likewise.
16884         * ipa-reference.c : Likewise.
16885         * ipa-split.c : Likewise.
16886         * ipa-utils.c : Likewise.
16887         * ipa-visibility.c : Likewise.
16888         * ipa.c : Likewise.
16889         * ira-build.c : Likewise.
16890         * ira-color.c : Likewise.
16891         * ira-conflicts.c : Likewise.
16892         * ira-costs.c : Likewise.
16893         * ira-emit.c : Likewise.
16894         * ira-lives.c : Likewise.
16895         * ira.c : Likewise.
16896         * jump.c : Likewise.
16897         * langhooks.c : Likewise.
16898         * lcm.c : Likewise.
16899         * libfuncs.h : Likewise.
16900         * lists.c : Likewise.
16901         * loop-doloop.c : Likewise.
16902         * loop-init.c : Likewise.
16903         * loop-invariant.c : Likewise.
16904         * loop-iv.c : Likewise.
16905         * loop-unroll.c : Likewise.
16906         * lower-subreg.c : Likewise.
16907         * lra-assigns.c : Likewise.
16908         * lra-coalesce.c : Likewise.
16909         * lra-constraints.c : Likewise.
16910         * lra-eliminations.c : Likewise.
16911         * lra-lives.c : Likewise.
16912         * lra-remat.c : Likewise.
16913         * lra-spills.c : Likewise.
16914         * lra.c : Likewise.
16915         * lto-cgraph.c : Likewise.
16916         * lto-compress.c : Likewise.
16917         * lto-opts.c : Likewise.
16918         * lto-section-in.c : Likewise.
16919         * lto-section-out.c : Likewise.
16920         * lto-streamer-in.c : Likewise.
16921         * lto-streamer-out.c : Likewise.
16922         * lto-streamer.c : Likewise.
16923         * lto-streamer.h : Likewise.
16924         * mcf.c : Likewise.
16925         * mode-switching.c : Likewise.
16926         * modulo-sched.c : Likewise.
16927         * omega.c : Likewise.
16928         * omp-low.c : Likewise.
16929         * optabs.c : Likewise.
16930         * opts-global.c : Likewise.
16931         * opts.h : Likewise.
16932         * passes.c : Likewise.
16933         * plugin.c : Likewise.
16934         * postreload-gcse.c : Likewise.
16935         * postreload.c : Likewise.
16936         * predict.c : Likewise.
16937         * print-rtl.c : Likewise.
16938         * print-tree.c : Likewise.
16939         * profile.c : Likewise.
16940         * read-md.c : Likewise.
16941         * read-md.h : Likewise.
16942         * read-rtl.c : Likewise.
16943         * real.c : Likewise.
16944         * realmpfr.c : Likewise.
16945         * recog.c : Likewise.
16946         * ree.c : Likewise.
16947         * reg-stack.c : Likewise.
16948         * regcprop.c : Likewise.
16949         * reginfo.c : Likewise.
16950         * regrename.c : Likewise.
16951         * regstat.c : Likewise.
16952         * reload.c : Likewise.
16953         * reload1.c : Likewise.
16954         * reorg.c : Likewise.
16955         * resource.c : Likewise.
16956         * rtl-chkp.c : Likewise.
16957         * rtl.c : Likewise.
16958         * rtl.h : Likewise.
16959         * rtlanal.c : Likewise.
16960         * rtlhash.c : Likewise.
16961         * rtlhash.h : Likewise.
16962         * rtlhooks.c : Likewise.
16963         * sanopt.c : Likewise.
16964         * sched-deps.c : Likewise.
16965         * sched-ebb.c : Likewise.
16966         * sched-rgn.c : Likewise.
16967         * sched-vis.c : Likewise.
16968         * sdbout.c : Likewise.
16969         * sel-sched-dump.c : Likewise.
16970         * sel-sched-ir.c : Likewise.
16971         * sel-sched-ir.h : Likewise.
16972         * sel-sched.c : Likewise.
16973         * sese.c : Likewise.
16974         * shrink-wrap.c : Likewise.
16975         * shrink-wrap.h : Likewise.
16976         * simplify-rtx.c : Likewise.
16977         * stack-ptr-mod.c : Likewise.
16978         * statistics.c : Likewise.
16979         * stmt.c : Likewise.
16980         * stor-layout.c : Likewise.
16981         * store-motion.c : Likewise.
16982         * stringpool.c : Likewise.
16983         * symtab.c : Likewise.
16984         * target-globals.c : Likewise.
16985         * targhooks.c : Likewise.
16986         * tlink.c : Likewise.
16987         * toplev.c : Likewise.
16988         * tracer.c : Likewise.
16989         * trans-mem.c : Likewise.
16990         * tree-affine.c : Likewise.
16991         * tree-affine.h : Likewise.
16992         * tree-browser.c : Likewise.
16993         * tree-call-cdce.c : Likewise.
16994         * tree-cfg.c : Likewise.
16995         * tree-cfgcleanup.c : Likewise.
16996         * tree-chkp-opt.c : Likewise.
16997         * tree-chkp.c : Likewise.
16998         * tree-chrec.c : Likewise.
16999         * tree-complex.c : Likewise.
17000         * tree-data-ref.c : Likewise.
17001         * tree-dfa.c : Likewise.
17002         * tree-diagnostic.c : Likewise.
17003         * tree-dump.c : Likewise.
17004         * tree-eh.c : Likewise.
17005         * tree-eh.h : Likewise.
17006         * tree-emutls.c : Likewise.
17007         * tree-hasher.h : Likewise.
17008         * tree-if-conv.c : Likewise.
17009         * tree-inline.c : Likewise.
17010         * tree-inline.h : Likewise.
17011         * tree-into-ssa.c : Likewise.
17012         * tree-iterator.c : Likewise.
17013         * tree-loop-distribution.c : Likewise.
17014         * tree-nested.c : Likewise.
17015         * tree-nrv.c : Likewise.
17016         * tree-object-size.c : Likewise.
17017         * tree-outof-ssa.c : Likewise.
17018         * tree-parloops.c : Likewise.
17019         * tree-phinodes.c : Likewise.
17020         * tree-predcom.c : Likewise.
17021         * tree-pretty-print.c : Likewise.
17022         * tree-profile.c : Likewise.
17023         * tree-scalar-evolution.c : Likewise.
17024         * tree-sra.c : Likewise.
17025         * tree-ssa-address.c : Likewise.
17026         * tree-ssa-alias.c : Likewise.
17027         * tree-ssa-ccp.c : Likewise.
17028         * tree-ssa-coalesce.c : Likewise.
17029         * tree-ssa-copy.c : Likewise.
17030         * tree-ssa-copyrename.c : Likewise.
17031         * tree-ssa-dce.c : Likewise.
17032         * tree-ssa-dom.c : Likewise.
17033         * tree-ssa-dse.c : Likewise.
17034         * tree-ssa-forwprop.c : Likewise.
17035         * tree-ssa-ifcombine.c : Likewise.
17036         * tree-ssa-live.c : Likewise.
17037         * tree-ssa-loop-ch.c : Likewise.
17038         * tree-ssa-loop-im.c : Likewise.
17039         * tree-ssa-loop-ivcanon.c : Likewise.
17040         * tree-ssa-loop-ivopts.c : Likewise.
17041         * tree-ssa-loop-manip.c : Likewise.
17042         * tree-ssa-loop-niter.c : Likewise.
17043         * tree-ssa-loop-prefetch.c : Likewise.
17044         * tree-ssa-loop-unswitch.c : Likewise.
17045         * tree-ssa-loop.c : Likewise.
17046         * tree-ssa-math-opts.c : Likewise.
17047         * tree-ssa-operands.c : Likewise.
17048         * tree-ssa-phiopt.c : Likewise.
17049         * tree-ssa-phiprop.c : Likewise.
17050         * tree-ssa-pre.c : Likewise.
17051         * tree-ssa-propagate.c : Likewise.
17052         * tree-ssa-reassoc.c : Likewise.
17053         * tree-ssa-sccvn.c : Likewise.
17054         * tree-ssa-scopedtables.c : Likewise.
17055         * tree-ssa-sink.c : Likewise.
17056         * tree-ssa-strlen.c : Likewise.
17057         * tree-ssa-structalias.c : Likewise.
17058         * tree-ssa-tail-merge.c : Likewise.
17059         * tree-ssa-ter.c : Likewise.
17060         * tree-ssa-threadedge.c : Likewise.
17061         * tree-ssa-threadupdate.c : Likewise.
17062         * tree-ssa-uncprop.c : Likewise.
17063         * tree-ssa-uninit.c : Likewise.
17064         * tree-ssa.c : Likewise.
17065         * tree-ssanames.c : Likewise.
17066         * tree-stdarg.c : Likewise.
17067         * tree-streamer-in.c : Likewise.
17068         * tree-streamer-out.c : Likewise.
17069         * tree-streamer.c : Likewise.
17070         * tree-streamer.h : Likewise.
17071         * tree-switch-conversion.c : Likewise.
17072         * tree-tailcall.c : Likewise.
17073         * tree-vect-data-refs.c : Likewise.
17074         * tree-vect-generic.c : Likewise.
17075         * tree-vect-loop-manip.c : Likewise.
17076         * tree-vect-loop.c : Likewise.
17077         * tree-vect-patterns.c : Likewise.
17078         * tree-vect-slp.c : Likewise.
17079         * tree-vect-stmts.c : Likewise.
17080         * tree-vectorizer.c : Likewise.
17081         * tree-vectorizer.h : Likewise.
17082         * tree-vrp.c : Likewise.
17083         * tree.c : Likewise.
17084         * tsan.c : Likewise.
17085         * ubsan.c : Likewise.
17086         * valtrack.c : Likewise.
17087         * valtrack.h : Likewise.
17088         * value-prof.c : Likewise.
17089         * var-tracking.c : Likewise.
17090         * varasm.c : Likewise.
17091         * varpool.c : Likewise.
17092         * vec.c: Likewise.
17093         * vmsdbgout.c : Likewise.
17094         * vtable-verify.c : Likewise.
17095         * vtable-verify.h : Likewise.
17096         * web.c : Likewise.
17097         * wide-int.cc : Likewise.
17098         * xcoffout.c : Likewise.
17099         * config/aarch64/aarch64-builtins.c : Likewise.
17100         * config/aarch64/aarch64.c : Likewise.
17101         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17102         * config/alpha/alpha.c : Likewise.
17103         * config/arc/arc.c : Likewise.
17104         * config/arm/aarch-common.c : Likewise.
17105         * config/arm/arm-builtins.c : Likewise.
17106         * config/arm/arm-c.c : Likewise.
17107         * config/arm/arm.c : Likewise.
17108         * config/avr/avr-c.c : Likewise.
17109         * config/avr/avr-log.c : Likewise.
17110         * config/avr/avr.c : Likewise.
17111         * config/bfin/bfin.c : Likewise.
17112         * config/c6x/c6x.c : Likewise.
17113         * config/cr16/cr16.c : Likewise.
17114         * config/cris/cris.c : Likewise.
17115         * config/darwin-c.c : Likewise.
17116         * config/darwin.c : Likewise.
17117         * config/default-c.c : Likewise.
17118         * config/epiphany/epiphany.c : Likewise.
17119         * config/epiphany/mode-switch-use.c : Likewise.
17120         * config/epiphany/resolve-sw-modes.c : Likewise.
17121         * config/fr30/fr30.c : Likewise.
17122         * config/frv/frv.c : Likewise.
17123         * config/ft32/ft32.c : Likewise.
17124         * config/glibc-c.c : Likewise.
17125         * config/h8300/h8300.c : Likewise.
17126         * config/i386/i386-c.c : Likewise.
17127         * config/i386/i386.c : Likewise.
17128         * config/i386/msformat-c.c : Likewise.
17129         * config/i386/winnt-cxx.c : Likewise.
17130         * config/i386/winnt-stubs.c : Likewise.
17131         * config/i386/winnt.c : Likewise.
17132         * config/ia64/ia64-c.c : Likewise.
17133         * config/ia64/ia64.c : Likewise.
17134         * config/iq2000/iq2000.c : Likewise.
17135         * config/lm32/lm32.c : Likewise.
17136         * config/m32c/m32c-pragma.c : Likewise.
17137         * config/m32c/m32c.c : Likewise.
17138         * config/m32r/m32r.c : Likewise.
17139         * config/m68k/m68k.c : Likewise.
17140         * config/mcore/mcore.c : Likewise.
17141         * config/mep/mep-pragma.c : Likewise.
17142         * config/mep/mep.c : Likewise.
17143         * config/microblaze/microblaze-c.c : Likewise.
17144         * config/microblaze/microblaze.c : Likewise.
17145         * config/mips/mips.c : Likewise.
17146         * config/mmix/mmix.c : Likewise.
17147         * config/mn10300/mn10300.c : Likewise.
17148         * config/moxie/moxie.c : Likewise.
17149         * config/msp430/msp430-c.c : Likewise.
17150         * config/msp430/msp430.c : Likewise.
17151         * config/nds32/nds32-cost.c : Likewise.
17152         * config/nds32/nds32-fp-as-gp.c : Likewise.
17153         * config/nds32/nds32-intrinsic.c : Likewise.
17154         * config/nds32/nds32-isr.c : Likewise.
17155         * config/nds32/nds32-md-auxiliary.c : Likewise.
17156         * config/nds32/nds32-memory-manipulation.c : Likewise.
17157         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17158         * config/nds32/nds32-predicates.c : Likewise.
17159         * config/nds32/nds32.c : Likewise.
17160         * config/nios2/nios2.c : Likewise.
17161         * config/nvptx/nvptx.c : Likewise.
17162         * config/pa/pa.c : Likewise.
17163         * config/pdp11/pdp11.c : Likewise.
17164         * config/rl78/rl78-c.c : Likewise.
17165         * config/rl78/rl78.c : Likewise.
17166         * config/rs6000/rs6000-c.c : Likewise.
17167         * config/rs6000/rs6000.c : Likewise.
17168         * config/rx/rx.c : Likewise.
17169         * config/s390/s390-c.c : Likewise.
17170         * config/s390/s390.c : Likewise.
17171         * config/sh/sh-c.c : Likewise.
17172         * config/sh/sh-mem.cc : Likewise.
17173         * config/sh/sh.c : Likewise.
17174         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17175         * config/sh/sh_treg_combine.cc : Likewise.
17176         * config/sol2-c.c : Likewise.
17177         * config/sol2-cxx.c : Likewise.
17178         * config/sol2-stubs.c : Likewise.
17179         * config/sol2.c : Likewise.
17180         * config/sparc/sparc-c.c : Likewise.
17181         * config/sparc/sparc.c : Likewise.
17182         * config/spu/spu-c.c : Likewise.
17183         * config/spu/spu.c : Likewise.
17184         * config/stormy16/stormy16.c : Likewise.
17185         * config/tilegx/mul-tables.c : Likewise.
17186         * config/tilegx/tilegx-c.c : Likewise.
17187         * config/tilegx/tilegx.c : Likewise.
17188         * config/tilepro/mul-tables.c : Likewise.
17189         * config/tilepro/tilepro-c.c : Likewise.
17190         * config/tilepro/tilepro.c : Likewise.
17191         * config/v850/v850-c.c : Likewise.
17192         * config/v850/v850.c : Likewise.
17193         * config/vax/vax.c : Likewise.
17194         * config/visium/visium.c : Likewise.
17195         * config/vms/vms-c.c : Likewise.
17196         * config/vms/vms.c : Likewise.
17197         * config/vxworks.c : Likewise.
17198         * config/winnt-c.c : Likewise.
17199         * config/xtensa/xtensa.c : Likewise.
17201 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17203         PR lto/65378
17204         * ipa-utils.h (warn_types_mismatch): Update prototype.
17205         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17206         parameters.
17207         (type_mismatch_p): New function.
17208         (warn_types_mismatch): Reorg to work better on non-C++ types.
17209         (odr_types_equivalent_p): Add loc1/loc2 parameters.
17210         (add_type_duplicate): Update.
17212 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17214         PR rtl-optimization/66444
17215         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17216         call_used_regs.
17218 2015-06-08  Richard Biener  <rguenther@suse.de>
17220         PR tree-optimization/66422
17221         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17222         block after inserted gcc_unreachable.
17224 2015-06-08  Nick Clifton  <nickc@redhat.com>
17226         * config/rx/rx.c (rx_function_value): Do not promote vector types.
17227         (rx_promote_function_mode): Likewise.
17228         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17230 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
17232         * genattrtab.c (insn_alternatives): Change type from int *
17233         to uint64_t *.
17234         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17235         (get_attr_value): Change type of num_alt to uint64_t.
17236         (compute_alternative_mask): Change return type from
17237         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17238         (make_alternative_compare, mk_attr_alt): Change argument type
17239         from int to uint64_t.
17240         (simplify_test_exp): Change type of i from int to uint64_t.
17241         Shift ((uint64_t) 1) instead of 1 up.
17242         (main): Adjust oballocvec first argument from int to uint64_t.
17243         Shift ((uint64_t) 1) instead of 1 up.
17245 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
17247         PR other/65366
17248         * gdbhooks.py: Import sys.
17249         (intptr): New function.  Replace int(...) by intptr(...).
17251 2015-06-08  Richard Biener  <rguenther@suse.de>
17253         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17254         adjustment for gaps at the end of a SLP load group properly.
17255         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17256         all permutations we can generate.
17257         (vect_transform_slp_perm_load): Use the correct group-size.
17259 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
17261         * genmatch.c (expr::gen_transform): For conditions, guess the type
17262         from the second operand.
17264 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17266         PR tree-optimization/66442
17267         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17268         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17269         if the loop latch is not a singleton.  Use
17270         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17272 2015-06-08  Marek Polacek  <polacek@redhat.com>
17274         PR sanitizer/66452
17275         * toplev.c (check_global_declaration): Don't warn about artificial
17276         decls.
17278 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17280         PR tree-optimization/66436
17281         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17282         dump file.
17283         * gimplify.c: Add tree-dump.h include.
17284         (gimplify_function_tree): Dump function to gimple dump file.
17285         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17286         dump file.
17288 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17290         PR tree-optimization/66435
17291         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17292         function.
17294 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
17296         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17297         of ptr_type_node to not be ptr_to_node.
17298         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17299         TREE_TYPE of pointers.
17300         * gimple-expr.c (useless_type_conversion): Reorder the check for
17301         function pointers and TYPE_CANONICAL.
17303 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
17305         PR bootstrap/66319
17306         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17307         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17308         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17309         later.
17310         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17311         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17312         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17313         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17314         and non iso if unix2003.
17316 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
17318         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17320 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
17322         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17323         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17324         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17325         except.c, final.c, function.c, gcse-common.c, genemit.c,
17326         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17327         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17328         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17329         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17330         more derived ones.
17332 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
17334         * combine.c (combine_split_insns): Remove cast.
17335         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17336         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17337         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17338         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17339         * genemit.c (gen_split): Change return type of generated functions to
17340         rtx_insn.
17341         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17342         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17343         gen_peephole2_* functions.
17344         (print_subroutine, main): Likewise.
17345         * recog.c (peephole2_optimize): Remove cast.
17346         (peep2_next_insn): Promote return type to rtx_insn.
17347         * recog.h (peep2_next_insn): Fix prototype.
17348         * rtl.h (try_split, split_insns): Likewise.
17350 2015-06-06  DJ Delorie  <dj@redhat.com>
17352         * config/msp430/msp430.c (msp430_asm_integer): Support addition
17353         and subtraction too.
17355 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
17357         PR target/66410
17358         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17359         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17360         instead of Snd.  Disparage Sid/z alternative with '^'.
17362 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
17364         * dwarf2out.c: Remove deferred_locations*.
17365         (dwarf2_debug_hooks): Add early_finish hook.
17366         Remove global_decl hook.
17367         Add early_global_decl and late_global_decl hook.
17368         New global early_dwarf.
17369         New structure set_early_dwarf.
17370         (output_die): Indicate whether a DIE was generated early
17371         when generating assembly with -dA.
17372         (struct limbo_die_struct): Document created_for field.
17373         Remove file_table_last_lookup.
17374         (remove_AT): Return TRUE if successful.
17375         (remove_child_TAG): Clear die_parent.
17376         (reparent_child): New function abstracted from...
17377         (splice_child_die): ...here.
17378         (new_die): ICE if a DIE ends up in limbo too late.
17379         (check_die): New.
17380         (defer_location): Remove.
17381         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17382         (fill_variable_array_bounds): New.
17383         (decl_start_label): Call fill_variable_array_bounds.
17384         (gen_formal_parameter_die): Rewrite to reuse previously generated
17385         DIEs.
17386         (gen_subprogram_die): Same.
17387         (gen_variable_die): Same.
17388         (gen_const_die): Same.
17389         (gen_label_die): Same.
17390         (gen_lexical_block_die): Same.
17391         (decl_will_get_specification_p): New.
17392         (local_function_static): New.
17393         (gen_struct_or_union_type_die): Fill in variable-length fields.
17394         (gen_typedef_die): Fill in variable-length typedefs.
17395         (gen_tagged_type_die): Gracefully return on error_mark_node.
17396         Handle re-entrancy.
17397         (gen_type_die_with_usage): Handle variable-length types.
17398         Remove duplicate code for ARRAY_TYPE case.
17399         (process_scope_var): Only process imported modules during early
17400         dwarf.
17401         (dwarf2out_early_global_decl): New.
17402         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17403         (dwarf2out_type_decl): Set early_dwarf while calling
17404         dwarf2out_decl.
17405         (dwarf2out_decl): Verify that we did not recreate a previously
17406         generated DIE.
17407         Do not return on DECL_EXTERNALs in VAR_DECLs.
17408         Abstract some code to local_function_static.
17409         (lookup_filename): Remove use of file_table_last_lookup.
17410         Gracefully exit on missing file_name.
17411         (dwarf2out_finish): Verify limbo list.
17412         Remove deferred_locations_list use.
17413         Move deferred_asm_name and limbo flushing to...
17414         (dwarf2out_early_finish): ...here.  New.
17415         (dwarf2out_c_finalize): Remove set of deferred_location_list,
17416         deferred_asm_name, and file_table_last_lookup.
17417         * cgraph.h (referred_to_p): Add default argument.
17418         * cgraphunit.c (referred_to_p): Add and handle include_self
17419         argument.
17420         (analyze_functions): Add first_time argument.
17421         Call check_global_declaration for all symbols.
17422         Call late_global_decl for nodes for moribund nodes.
17423         (finalize_compilation_unit): Add new argument to
17424         analyze_functions.
17425         Call early_global_decl for functions.
17426         Call early_finish debug hook.
17427         * dbxout.c (dbxout_early_global_decl): New.
17428         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
17429         (dbx_debug_hooks): Add new hooks.
17430         (xcoff_debug_hooks): Same.
17431         * debug.c (do_nothing_debug_hooks): Add early_finish field.
17432         Add early and late debug hooks.
17433         Remove global_decl hook.
17434         * debug.h (struct gcc_debug_hooks): Add early_finish,
17435         early_global_decl, and late_global_decl fields.
17436         Remove global_decl field.
17437         Document gcc_debug_hooks.
17438         * gengtype.c (output_typename): Remove.
17439         * godump.c (go_early_global_decl): New.
17440         (go_late_global_decl): New.
17441         (go_global_decl): Remove.
17442         (dump_go_spec_init): Remove global_decl.  Add
17443         {early,late}_global_decl.
17444         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
17445         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
17446         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
17447         (write_global_declarations): Remove.
17448         (global_decl_processing): New.
17449         * langhooks.h (struct lang_hooks_for_decls): Remove
17450         final_write_globals field.
17451         Add post_compilation_parsing_cleanups field.
17452         * passes.c (rest_of_decl_compilation): Call early_global_decl.
17453         * sdbout.c: Add early and late_global_decl hooks.  Remove
17454         sdbout_global_decl hook.
17455         Add early_finish field for sdb_debug_hooks.
17456         (sdbout_global_decl): Remove.
17457         (sdbout_early_global_decl): New.
17458         (sdbout_late_global_decl): New.
17459         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
17460         * toplev.c (check_global_declaration): Rename from
17461         check_global_declaration_1.
17462         Adapt to use symtab infrastructure.
17463         (check_global_declarations): Remove.
17464         (emit_debug_global_declarations): Remove.
17465         (compile_file): Remove call to final_write_globals langhook.
17466         Run the actual compilation process.
17467         Perform any post compilation parser cleanups.
17468         Generate late debug info.
17469         * toplev.h (check_global_declaration): New.
17470         (check_global_declaration_1): Remove.
17471         (check_global_declarations): Remove.
17472         (write_global_declarations): Remove.
17473         (emit_debug_global_declarations): Remove.
17474         (global_decl_processing): New.
17475         * tree-core.h (struct tree_block): Add DIE field.
17476         * tree.h (BLOCK_DIE): New.
17477         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
17478         throughout.
17479         (vmsdbgout_early_global_decl): New.
17480         (vmsdbgout_late_global_decl): New.
17481         Add early_finish debug hook field to vmsdbg_debug_hooks.
17482         Remove vmsdbgout_decl to vmsdbgout_function_decl.
17483         Add early and late_global_decl debug hooks.
17485 2015-06-05  Julian Brown  <julian@codesourcery.com>
17486             Sandra Loosemore  <sandra@codesourcery.com>
17488         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
17489         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
17490         to print-sysroot-suffix.sh script.
17492 2015-06-05  Tom de Vries  <tom@codesourcery.com>
17494         merge from gomp4 branch:
17495         2015-05-28  Tom de Vries  <tom@codesourcery.com>
17497         PR tree-optimization/65443
17498         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
17499         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
17500         (try_transform_to_exit_first_loop_alt): New function.
17501         (transform_to_exit_first_loop): Use
17502         try_transform_to_exit_first_loop_alt.
17504 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
17506         * builtins.c (expand_builtin_atomic_compare_exchange): Call
17507         emit_cmp_and_jump_insns with the mode of target.
17509 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17511         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
17513 2015-06-04  DJ Delorie  <dj@redhat.com>
17515         * config/msp430/msp430.md (movsi_s): New.  Special case for
17516         storing a 20-bit symbol into a 32-bit register.
17517         * config/msp430/msp430.c (msp430_subreg): Add support for it.
17518         * config/msp430/predicates.md (msp430_symbol_operand): New.
17520 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
17522         * c-family/c-common.c (noplt): New attribute.
17523         (handle_noplt_attribute): New handler.
17524         * calls.c (prepare_call_address): Check for noplt
17525         attribute.
17526         * config/i386/i386.c (ix86_expand_call): Check
17527         for noplt attribute.
17528         (ix86_nopic_noplt_attribute_p): New function.
17529         (ix86_output_call_insn): Output indirect call for non-pic
17530         no plt calls.
17531         * doc/extend.texi (noplt): Document new attribute.
17532         * doc/invoke.texi: Document new attribute.
17534 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
17536         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
17537         real.h, and fixed-value.h when included in host source files.
17538         * double-int.h: Remove redundant #includes listed above.
17539         * fixed-value.h: Likewise.
17540         * real.h: Likewise.
17541         * wide-int.h: Likewise.
17542         * inchash.h: Likewise.
17543         * rtl.h: Add some include files When included from a generator file.
17544         * target.h: Remove wide-int.h and insn-modes.h from the include list.
17545         * internal-fn.h: Don't include coretypes.h.
17546         * alias.c: Adjust includes for restructured coretypes.h.
17547         * asan.c: Likewise.
17548         * attribs.c: Likewise.
17549         * auto-inc-dec.c: Likewise.
17550         * auto-profile.c: Likewise.
17551         * bb-reorder.c: Likewise.
17552         * bt-load.c: Likewise.
17553         * builtins.c: Likewise.
17554         * caller-save.c: Likewise.
17555         * calls.c: Likewise.
17556         * ccmp.c: Likewise.
17557         * cfg.c: Likewise.
17558         * cfganal.c: Likewise.
17559         * cfgbuild.c: Likewise.
17560         * cfgcleanup.c: Likewise.
17561         * cfgexpand.c: Likewise.
17562         * cfghooks.c: Likewise.
17563         * cfgloop.c: Likewise.
17564         * cfgloop.h: Likewise.
17565         * cfgloopanal.c: Likewise.
17566         * cfgloopmanip.c: Likewise.
17567         * cfgrtl.c: Likewise.
17568         * cgraph.c: Likewise.
17569         * cgraphbuild.c: Likewise.
17570         * cgraphclones.c: Likewise.
17571         * cgraphunit.c: Likewise.
17572         * cilk-common.c: Likewise.
17573         * combine-stack-adj.c: Likewise.
17574         * combine.c: Likewise.
17575         * compare-elim.c: Likewise.
17576         * convert.c: Likewise.
17577         * coverage.c: Likewise.
17578         * cppbuiltin.c: Likewise.
17579         * cprop.c: Likewise.
17580         * cse.c: Likewise.
17581         * cselib.c: Likewise.
17582         * data-streamer-in.c: Likewise.
17583         * data-streamer-out.c: Likewise.
17584         * data-streamer.c: Likewise.
17585         * dbxout.c: Likewise.
17586         * dce.c: Likewise.
17587         * ddg.c: Likewise.
17588         * debug.c: Likewise.
17589         * df-core.c: Likewise.
17590         * df-problems.c: Likewise.
17591         * df-scan.c: Likewise.
17592         * df.h: Likewise.
17593         * dfp.c: Likewise.
17594         * dojump.c: Likewise.
17595         * dominance.c: Likewise.
17596         * domwalk.c: Likewise.
17597         * double-int.c: Likewise.
17598         * dse.c: Likewise.
17599         * dumpfile.c: Likewise.
17600         * dwarf2asm.c: Likewise.
17601         * dwarf2cfi.c: Likewise.
17602         * dwarf2out.c: Likewise.
17603         * dwarf2out.h: Likewise.
17604         * emit-rtl.c: Likewise.
17605         * et-forest.c: Likewise.
17606         * except.c: Likewise.
17607         * explow.c: Likewise.
17608         * expmed.c: Likewise.
17609         * expr.c: Likewise.
17610         * final.c: Likewise.
17611         * fixed-value.c: Likewise.
17612         * fold-const.c: Likewise.
17613         * function.c: Likewise.
17614         * fwprop.c: Likewise.
17615         * gcc-plugin.h: Likewise.
17616         * gcse.c: Likewise.
17617         * generic-match-head.c: Likewise.
17618         * ggc-page.c: Likewise.
17619         * gimple-builder.c: Likewise.
17620         * gimple-expr.c: Likewise.
17621         * gimple-fold.c: Likewise.
17622         * gimple-iterator.c: Likewise.
17623         * gimple-low.c: Likewise.
17624         * gimple-match-head.c: Likewise.
17625         * gimple-pretty-print.c: Likewise.
17626         * gimple-ssa-isolate-paths.c: Likewise.
17627         * gimple-ssa-strength-reduction.c: Likewise.
17628         * gimple-streamer-in.c: Likewise.
17629         * gimple-streamer-out.c: Likewise.
17630         * gimple-streamer.h: Likewise.
17631         * gimple-walk.c: Likewise.
17632         * gimple.c: Likewise.
17633         * gimplify-me.c: Likewise.
17634         * gimplify.c: Likewise.
17635         * godump.c: Likewise.
17636         * graph.c: Likewise.
17637         * graphite-blocking.c: Likewise.
17638         * graphite-dependences.c: Likewise.
17639         * graphite-interchange.c: Likewise.
17640         * graphite-isl-ast-to-gimple.c: Likewise.
17641         * graphite-optimize-isl.c: Likewise.
17642         * graphite-poly.c: Likewise.
17643         * graphite-scop-detection.c: Likewise.
17644         * graphite-sese-to-poly.c: Likewise.
17645         * graphite.c: Likewise.
17646         * haifa-sched.c: Likewise.
17647         * hooks.h: Likewise.
17648         * hw-doloop.c: Likewise.
17649         * ifcvt.c: Likewise.
17650         * incpath.c: Likewise.
17651         * init-regs.c: Likewise.
17652         * internal-fn.c: Likewise.
17653         * ipa-chkp.c: Likewise.
17654         * ipa-comdats.c: Likewise.
17655         * ipa-cp.c: Likewise.
17656         * ipa-devirt.c: Likewise.
17657         * ipa-icf-gimple.c: Likewise.
17658         * ipa-icf.c: Likewise.
17659         * ipa-inline-analysis.c: Likewise.
17660         * ipa-inline-transform.c: Likewise.
17661         * ipa-inline.c: Likewise.
17662         * ipa-polymorphic-call.c: Likewise.
17663         * ipa-profile.c: Likewise.
17664         * ipa-prop.c: Likewise.
17665         * ipa-pure-const.c: Likewise.
17666         * ipa-ref.c: Likewise.
17667         * ipa-reference.c: Likewise.
17668         * ipa-split.c: Likewise.
17669         * ipa-utils.c: Likewise.
17670         * ipa-visibility.c: Likewise.
17671         * ipa.c: Likewise.
17672         * ira-build.c: Likewise.
17673         * ira-color.c: Likewise.
17674         * ira-conflicts.c: Likewise.
17675         * ira-costs.c: Likewise.
17676         * ira-emit.c: Likewise.
17677         * ira-lives.c: Likewise.
17678         * ira.c: Likewise.
17679         * jump.c: Likewise.
17680         * langhooks.c: Likewise.
17681         * lcm.c: Likewise.
17682         * loop-doloop.c: Likewise.
17683         * loop-init.c: Likewise.
17684         * loop-invariant.c: Likewise.
17685         * loop-iv.c: Likewise.
17686         * loop-unroll.c: Likewise.
17687         * lower-subreg.c: Likewise.
17688         * lra-assigns.c: Likewise.
17689         * lra-coalesce.c: Likewise.
17690         * lra-constraints.c: Likewise.
17691         * lra-eliminations.c: Likewise.
17692         * lra-lives.c: Likewise.
17693         * lra-remat.c: Likewise.
17694         * lra-spills.c: Likewise.
17695         * lra.c: Likewise.
17696         * lto-cgraph.c: Likewise.
17697         * lto-compress.c: Likewise.
17698         * lto-opts.c: Likewise.
17699         * lto-section-in.c: Likewise.
17700         * lto-section-out.c: Likewise.
17701         * lto-streamer-in.c: Likewise.
17702         * lto-streamer-out.c: Likewise.
17703         * lto-streamer.c: Likewise.
17704         * mcf.c: Likewise.
17705         * mode-switching.c: Likewise.
17706         * modulo-sched.c: Likewise.
17707         * omega.c: Likewise.
17708         * omp-low.c: Likewise.
17709         * optabs.c: Likewise.
17710         * opts-global.c: Likewise.
17711         * passes.c: Likewise.
17712         * plugin.c: Likewise.
17713         * postreload-gcse.c: Likewise.
17714         * postreload.c: Likewise.
17715         * predict.c: Likewise.
17716         * print-rtl.c: Likewise.
17717         * print-tree.c: Likewise.
17718         * profile.c: Likewise.
17719         * real.c: Likewise.
17720         * realmpfr.c: Likewise.
17721         * realmpfr.h: Likewise.
17722         * recog.c: Likewise.
17723         * ree.c: Likewise.
17724         * reg-stack.c: Likewise.
17725         * regcprop.c: Likewise.
17726         * reginfo.c: Likewise.
17727         * regrename.c: Likewise.
17728         * regs.h: Likewise.
17729         * regstat.c: Likewise.
17730         * reload.c: Likewise.
17731         * reload1.c: Likewise.
17732         * reorg.c: Likewise.
17733         * resource.c: Likewise.
17734         * rtl-chkp.c: Likewise.
17735         * rtlanal.c: Likewise.
17736         * rtlhooks.c: Likewise.
17737         * sanopt.c: Likewise.
17738         * sched-deps.c: Likewise.
17739         * sched-ebb.c: Likewise.
17740         * sched-rgn.c: Likewise.
17741         * sched-vis.c: Likewise.
17742         * sdbout.c: Likewise.
17743         * sel-sched-dump.c: Likewise.
17744         * sel-sched-ir.c: Likewise.
17745         * sel-sched.c: Likewise.
17746         * sese.c: Likewise.
17747         * shrink-wrap.c: Likewise.
17748         * shrink-wrap.h: Likewise.
17749         * simplify-rtx.c: Likewise.
17750         * stack-ptr-mod.c: Likewise.
17751         * statistics.c: Likewise.
17752         * stmt.c: Likewise.
17753         * stor-layout.c: Likewise.
17754         * store-motion.c: Likewise.
17755         * stringpool.c: Likewise.
17756         * symtab.c: Likewise.
17757         * target-globals.c: Likewise.
17758         * targhooks.c: Likewise.
17759         * toplev.c: Likewise.
17760         * tracer.c: Likewise.
17761         * trans-mem.c: Likewise.
17762         * tree-affine.c: Likewise.
17763         * tree-affine.h: Likewise.
17764         * tree-browser.c: Likewise.
17765         * tree-call-cdce.c: Likewise.
17766         * tree-cfg.c: Likewise.
17767         * tree-cfgcleanup.c: Likewise.
17768         * tree-chkp-opt.c: Likewise.
17769         * tree-chkp.c: Likewise.
17770         * tree-chrec.c: Likewise.
17771         * tree-complex.c: Likewise.
17772         * tree-data-ref.c: Likewise.
17773         * tree-dfa.c: Likewise.
17774         * tree-diagnostic.c: Likewise.
17775         * tree-dump.c: Likewise.
17776         * tree-eh.c: Likewise.
17777         * tree-emutls.c: Likewise.
17778         * tree-if-conv.c: Likewise.
17779         * tree-inline.c: Likewise.
17780         * tree-into-ssa.c: Likewise.
17781         * tree-iterator.c: Likewise.
17782         * tree-loop-distribution.c: Likewise.
17783         * tree-nested.c: Likewise.
17784         * tree-nrv.c: Likewise.
17785         * tree-object-size.c: Likewise.
17786         * tree-outof-ssa.c: Likewise.
17787         * tree-parloops.c: Likewise.
17788         * tree-phinodes.c: Likewise.
17789         * tree-predcom.c: Likewise.
17790         * tree-pretty-print.c: Likewise.
17791         * tree-pretty-print.h: Likewise.
17792         * tree-profile.c: Likewise.
17793         * tree-scalar-evolution.c: Likewise.
17794         * tree-sra.c: Likewise.
17795         * tree-ssa-address.c: Likewise.
17796         * tree-ssa-alias.c: Likewise.
17797         * tree-ssa-ccp.c: Likewise.
17798         * tree-ssa-coalesce.c: Likewise.
17799         * tree-ssa-copy.c: Likewise.
17800         * tree-ssa-copyrename.c: Likewise.
17801         * tree-ssa-dce.c: Likewise.
17802         * tree-ssa-dom.c: Likewise.
17803         * tree-ssa-dse.c: Likewise.
17804         * tree-ssa-forwprop.c: Likewise.
17805         * tree-ssa-ifcombine.c: Likewise.
17806         * tree-ssa-live.c: Likewise.
17807         * tree-ssa-loop-ch.c: Likewise.
17808         * tree-ssa-loop-im.c: Likewise.
17809         * tree-ssa-loop-ivcanon.c: Likewise.
17810         * tree-ssa-loop-ivopts.c: Likewise.
17811         * tree-ssa-loop-manip.c: Likewise.
17812         * tree-ssa-loop-niter.c: Likewise.
17813         * tree-ssa-loop-prefetch.c: Likewise.
17814         * tree-ssa-loop-unswitch.c: Likewise.
17815         * tree-ssa-loop.c: Likewise.
17816         * tree-ssa-loop.h: Likewise.
17817         * tree-ssa-math-opts.c: Likewise.
17818         * tree-ssa-operands.c: Likewise.
17819         * tree-ssa-phiopt.c: Likewise.
17820         * tree-ssa-phiprop.c: Likewise.
17821         * tree-ssa-pre.c: Likewise.
17822         * tree-ssa-propagate.c: Likewise.
17823         * tree-ssa-reassoc.c: Likewise.
17824         * tree-ssa-sccvn.c: Likewise.
17825         * tree-ssa-scopedtables.c: Likewise.
17826         * tree-ssa-sink.c: Likewise.
17827         * tree-ssa-strlen.c: Likewise.
17828         * tree-ssa-structalias.c: Likewise.
17829         * tree-ssa-tail-merge.c: Likewise.
17830         * tree-ssa-ter.c: Likewise.
17831         * tree-ssa-threadedge.c: Likewise.
17832         * tree-ssa-threadupdate.c: Likewise.
17833         * tree-ssa-uncprop.c: Likewise.
17834         * tree-ssa-uninit.c: Likewise.
17835         * tree-ssa.c: Likewise.
17836         * tree-ssanames.c: Likewise.
17837         * tree-stdarg.c: Likewise.
17838         * tree-streamer-in.c: Likewise.
17839         * tree-streamer-out.c: Likewise.
17840         * tree-streamer.c: Likewise.
17841         * tree-switch-conversion.c: Likewise.
17842         * tree-tailcall.c: Likewise.
17843         * tree-vect-data-refs.c: Likewise.
17844         * tree-vect-generic.c: Likewise.
17845         * tree-vect-loop-manip.c: Likewise.
17846         * tree-vect-loop.c: Likewise.
17847         * tree-vect-patterns.c: Likewise.
17848         * tree-vect-slp.c: Likewise.
17849         * tree-vect-stmts.c: Likewise.
17850         * tree-vectorizer.c: Likewise.
17851         * tree-vrp.c: Likewise.
17852         * tree.c: Likewise.
17853         * tsan.c: Likewise.
17854         * ubsan.c: Likewise.
17855         * valtrack.c: Likewise.
17856         * value-prof.c: Likewise.
17857         * var-tracking.c: Likewise.
17858         * varasm.c: Likewise.
17859         * varpool.c: Likewise.
17860         * vmsdbgout.c: Likewise.
17861         * vtable-verify.c: Likewise.
17862         * web.c: Likewise.
17863         * wide-int-print.cc: Likewise.
17864         * wide-int-print.h: Likewise.
17865         * wide-int.cc: Likewise.
17866         * xcoffout.c: Likewise.
17867         * config/aarch64/aarch64-builtins.c: Likewise.
17868         * config/aarch64/aarch64.c: Likewise.
17869         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17870         * config/alpha/alpha.c: Likewise.
17871         * config/arc/arc.c: Likewise.
17872         * config/arm/aarch-common.c: Likewise.
17873         * config/arm/arm-builtins.c: Likewise.
17874         * config/arm/arm-c.c: Likewise.
17875         * config/arm/arm.c: Likewise.
17876         * config/avr/avr-c.c: Likewise.
17877         * config/avr/avr-log.c: Likewise.
17878         * config/avr/avr.c: Likewise.
17879         * config/bfin/bfin.c: Likewise.
17880         * config/c6x/c6x.c: Likewise.
17881         * config/cr16/cr16.c: Likewise.
17882         * config/cris/cris.c: Likewise.
17883         * config/darwin-c.c: Likewise.
17884         * config/darwin.c: Likewise.
17885         * config/default-c.c: Likewise.
17886         * config/epiphany/epiphany.c: Likewise.
17887         * config/epiphany/mode-switch-use.c: Likewise.
17888         * config/epiphany/resolve-sw-modes.c: Likewise.
17889         * config/fr30/fr30.c: Likewise.
17890         * config/frv/frv.c: Likewise.
17891         * config/ft32/ft32.c: Likewise.
17892         * config/glibc-c.c: Likewise.
17893         * config/h8300/h8300.c: Likewise.
17894         * config/i386/i386-c.c: Likewise.
17895         * config/i386/i386.c: Likewise.
17896         * config/i386/msformat-c.c: Likewise.
17897         * config/i386/winnt-cxx.c: Likewise.
17898         * config/i386/winnt-stubs.c: Likewise.
17899         * config/i386/winnt.c: Likewise.
17900         * config/ia64/ia64-c.c: Likewise.
17901         * config/ia64/ia64.c: Likewise.
17902         * config/iq2000/iq2000.c: Likewise.
17903         * config/lm32/lm32.c: Likewise.
17904         * config/m32c/m32c-pragma.c: Likewise.
17905         * config/m32c/m32c.c: Likewise.
17906         * config/m32r/m32r.c: Likewise.
17907         * config/m68k/m68k.c: Likewise.
17908         * config/mcore/mcore.c: Likewise.
17909         * config/mep/mep-pragma.c: Likewise.
17910         * config/mep/mep.c: Likewise.
17911         * config/microblaze/microblaze-c.c: Likewise.
17912         * config/microblaze/microblaze.c: Likewise.
17913         * config/mips/mips.c: Likewise.
17914         * config/mmix/mmix.c: Likewise.
17915         * config/mn10300/mn10300.c: Likewise.
17916         * config/moxie/moxie.c: Likewise.
17917         * config/msp430/msp430-c.c: Likewise.
17918         * config/msp430/msp430.c: Likewise.
17919         * config/nds32/nds32-cost.c: Likewise.
17920         * config/nds32/nds32-fp-as-gp.c: Likewise.
17921         * config/nds32/nds32-intrinsic.c: Likewise.
17922         * config/nds32/nds32-isr.c: Likewise.
17923         * config/nds32/nds32-md-auxiliary.c: Likewise.
17924         * config/nds32/nds32-memory-manipulation.c: Likewise.
17925         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17926         * config/nds32/nds32-predicates.c: Likewise.
17927         * config/nds32/nds32.c: Likewise.
17928         * config/nios2/nios2.c: Likewise.
17929         * config/nvptx/nvptx.c: Likewise.
17930         * config/pa/pa.c: Likewise.
17931         * config/pdp11/pdp11.c: Likewise.
17932         * config/rl78/rl78-c.c: Likewise.
17933         * config/rl78/rl78.c: Likewise.
17934         * config/rs6000/rs6000-c.c: Likewise.
17935         * config/rs6000/rs6000.c: Likewise.
17936         * config/rx/rx.c: Likewise.
17937         * config/s390/s390-c.c: Likewise.
17938         * config/s390/s390.c: Likewise.
17939         * config/sh/sh-c.c: Likewise.
17940         * config/sh/sh-mem.cc: Likewise.
17941         * config/sh/sh.c: Likewise.
17942         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17943         * config/sh/sh_treg_combine.cc: Likewise.
17944         * config/sol2-c.c: Likewise.
17945         * config/sol2-cxx.c: Likewise.
17946         * config/sol2-stubs.c: Likewise.
17947         * config/sol2.c: Likewise.
17948         * config/sparc/sparc-c.c: Likewise.
17949         * config/sparc/sparc.c: Likewise.
17950         * config/spu/spu-c.c: Likewise.
17951         * config/spu/spu.c: Likewise.
17952         * config/stormy16/stormy16.c: Likewise.
17953         * config/tilegx/mul-tables.c: Likewise.
17954         * config/tilegx/tilegx-c.c: Likewise.
17955         * config/tilegx/tilegx.c: Likewise.
17956         * config/tilepro/mul-tables.c: Likewise.
17957         * config/tilepro/tilepro-c.c: Likewise.
17958         * config/tilepro/tilepro.c: Likewise.
17959         * config/v850/v850-c.c: Likewise.
17960         * config/v850/v850.c: Likewise.
17961         * config/vax/vax.c: Likewise.
17962         * config/visium/visium.c: Likewise.
17963         * config/vms/vms-c.c: Likewise.
17964         * config/vms/vms.c: Likewise.
17965         * config/vxworks.c: Likewise.
17966         * config/winnt-c.c: Likewise.
17967         * config/xtensa/xtensa.c: Likewise.
17968         * common/config/bfin/bfin-common.c: Likewise.
17970 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
17972         * tree.h (tree_code_for_canonical_type_merging): New function.
17973         * tree.c (gimple_canonical_types_compatible_p): Use
17974         tree_code_for_canonical_type_merging..
17976 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17978         PR c++/66192
17979         PR target/66200
17980         * doc/tm.texi: Regenerate.
17981         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
17982         * target.def (TARGET_RELAXED_ORDERING): Likewise.
17983         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
17984         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
17985         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
17986         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
17987         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
17988         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
17989         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
17991 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17993         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
17994         register fma steering pass.
17995         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
17996         AARCH64_TUNE_FMA_STEERING.
17998 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
18000         * tree.c (verify_type_variant): Verify that type and variant is
18001         compatible.
18002         (gimple_canonical_types_compatible_p): Look for main variants.
18004 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18006         * config.gcc (powerpc*-*-*): Add support for a new configure
18007         option --with-advance-toolchain=<xxx> which overrides using the
18008         default header files, libraries and dynamic linker.
18010         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18011         specs to support the configure --with-advance-toolchain=<xxx>
18012         option.
18013         (INCLUDE_EXTRA_SPEC): Likewise.
18014         (LINK_OS_EXTRA_SPEC32): Likewise.
18015         (LINK_OK_EXTRA_SPEC64): Likewise.
18016         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18017         (DYNAMIC_LINKER_PREFIX): Likewise.
18018         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18019         toolchain support.
18020         (GLIBC_DYNAMIC_LINKER32): Likewise.
18021         (GLIBC_DYNAMIC_LINKER64): Likewise.
18022         (LINK_OS_LINUX_SPEC32): Likewise.
18023         (LINK_OS_LINUX_SPEC64): Likewise.
18025         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18026         configuration option.
18028 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
18030         PR target/66275
18031         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18032         to determine current function ABI.
18033         (ix86_function_value_regno_p): Ditto.
18035 2015-06-03  Martin Liska  <mliska@suse.cz>
18037         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18038         * bitmap.h (struct bitmap_usage): Likewise.
18039         * ggc-common.c (struct ggc_usage): Likewise.
18040         * mem-stats.h (struct mem_location): Likewise.
18041         (struct mem_usage): Likewise.
18042         * vec.c (struct vec_usage): Likewise.
18044 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
18046         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18047         -Bsymbolic.
18049 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
18051         * doc/plugins.texi (enum plugin_event): New event.
18052         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18053         and PLUGIN_FINISH_FUNCTION.
18054         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18055         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18057 2015-06-03  Richard Biener  <rguenther@suse.de>
18059         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18060         compute GROUP_GAP for the first element.
18061         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18062         on in-group gaps.
18064 2015-06-03  Nick Clifton  <nickc@redhat.com>
18066         * config/rl78/rl78-real.md: Add peepholes to avoid a register
18067         copy when calling a function.
18068         * config/rl78/rl78.c (need_to_save): Do not push the frame
18069         pointer in an interrupt handler prologue if it is never used.
18071 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18073         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18075 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18077         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18078         reference when cloning alias node.
18080 2015-06-03  Martin Liska  <mliska@suse.cz>
18082         * alloc-pool.h (struct pool_usage): Correct space padding.
18083         * ggc-page.c (ggc_print_statistics): Align columns in a report.
18084         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18085         * tree.c (dump_tree_statistics): Align columns in a report.
18087 2015-06-03  Martin Liska  <mliska@suse.cz>
18089         * alloc-pool.c (allocate_pool_descriptor): Remove.
18090         (struct pool_output_info): Likewise.
18091         (print_alloc_pool_statistics): Likewise.
18092         (dump_alloc_pool_statistics): Likewise.
18093         * alloc-pool.h (struct pool_usage): New struct.
18094         (pool_allocator::initialize): Change usage of memory statistics
18095         to a new interface.
18096         (pool_allocator::release): Likewise.
18097         (pool_allocator::allocate): Likewise.
18098         (pool_allocator::remove): Likewise.
18099         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18100         for a pool allocator.
18101         * mem-stats.h (struct mem_location): Add new ctor.
18102         (struct mem_usage): Add counter for number of
18103         instances.
18104         (mem_alloc_description::register_descriptor): New overload of
18105         * mem-stats.h (mem_location::to_string): New function.
18106         * bitmap.h (struct bitmap_usage): Use this new function.
18107         * ggc-common.c (struct ggc_usage): Likewise.
18108         the function.
18110 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18112         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18113         of GCC_INSN_FLAGS_H block.
18115 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18117         * explow.c (plus_constant): Update check after force_const_mem call
18118         to see if the value returned is not a NULL_RTX.
18120 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18122         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18123         remove instumentation thunks calling reachable functions.
18124         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18125         * lto/lto-partition.c (privatize_symbol_name_1): New.
18126         (privatize_symbol_name): Privatize both decl and orig_decl
18127         names for instrumented functions.
18128         * cgraph.c (cgraph_node::verify_node): Add transparent
18129         alias chain check for instrumented node.
18131 2015-06-03  Marek Polacek  <polacek@redhat.com>
18133         PR c/64223
18134         PR c/29358
18135         * tree.c (attribute_value_equal): Handle attribute format.
18136         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18138 2015-06-03  Richard Biener  <rguenther@suse.de>
18140         PR tree-optimization/63916
18141         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18142         Forward-propagate non-invariant addresses by splicing their
18143         reference ops if the result isn't going to be used by PRE.
18144         (vn_reference_lookup_3): Remove pointless assert.
18146 2015-06-03  Richard Biener  <rguenther@suse.de>
18148         PR tree-optimization/66375
18149         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18150         add to the evolution before following SSA edges.
18152 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
18154         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18155         (dump_use, dump_cand, find_induction_variables): Pass new argument
18156         to dump_iv.
18157         (record_use): Preserve the ssa name information in IV.
18159 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18161         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18162         NO_MODE_TEST.
18163         (add_mode_tests): Don't add mode tests if the predicate only
18164         accepts scalar constant integers.  Otherwise, allow the mode
18165         of "op" to be VOIDmode if the predicate does accept such integers.
18167 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
18169         PR target/66258
18170         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18171         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18172         (aarch64_secondary_reload): Likewise
18173         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18174         to !TARGET_FLOAT.
18175         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18176         Likewise.
18178 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
18179             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18181         PR target/65768
18182         * cprop.c (try_replace_reg): Check cost of constants before propagating.
18184 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18186         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18187         provide access to the IBM extended double floating point mode if
18188         long double is IEEE 128-bit floating point.
18189         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18190         point if long double is the IBM extended double type.
18192         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18193         enable adding IEEE 128-bit floating point support.
18194         (-mfloat128-software): Likewise.
18195         (-mfloat128-sw): Likewise.
18197         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18198         128-bit floating point types to occupy any register if
18199         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
18200         -mfloat128-software is enabled.
18201         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18202         support.
18203         (rs6000_option_override_internal): Add -mfloat128-* support.
18204         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18206         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18207         and float128 type nodes.
18208         (ieee128_float_type_node): Likewise.
18209         (ibm128_float_type_node): Likewise.
18211 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18213         PR target/66136
18214         * config/aarch64/geniterators.sh: Rewrite in awk.
18216 2015-06-02  Martin Liska  <mliska@suse.cz>
18218         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18219         values to avoid -Wmaybe-uninitialized errors.
18221 2015-06-02  Richard Biener  <rguenther@suse.de>
18223         PR debug/65549
18224         * dwarf2out.c (lookup_context_die): New function.
18225         (resolve_addr): Avoid forcing a full DIE for the
18226         target of a DW_TAG_GNU_call_site during late compilation.
18227         Instead create a stub DIE without a type if we have a
18228         context DIE present.
18230 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
18232         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18234 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18236         PR tree-optimization/48052
18237         * cfgloop.h (struct control_iv): New.
18238         (struct loop): New field control_ivs.
18239         * tree-ssa-loop-niter.c : Include "stor-layout.h".
18240         (number_of_iterations_lt): Set no_overflow information.
18241         (number_of_iterations_exit): Init control iv in niter struct.
18242         (record_control_iv): New.
18243         (estimate_numbers_of_iterations_loop): Call record_control_iv.
18244         (loop_exits_before_overflow): New.  Interface factored out of
18245         scev_probably_wraps_p.
18246         (scev_probably_wraps_p): Factor loop niter related code into
18247         loop_exits_before_overflow.
18248         (free_numbers_of_iterations_estimates_loop): Free control ivs.
18249         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18251 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18253         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18254         the target doesn't belong to the current function.
18256 2015-06-02  Marek Polacek  <polacek@redhat.com>
18258         PR middle-end/66345
18259         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18260         get_maxval_strlen does not produce an INTEGER_CST.
18262 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
18264         * config/arc/constraints.md: Use lower-case names in match_code.
18265         * config/mmix/constraints.md: Likewise.
18267 2015-06-02  Richard Biener  <rguenther@suse.de>
18269         PR tree-optimization/65961
18270         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18271         check and clarify dump message.
18272         (vect_build_slp_tree): If all children are built up from scalars
18273         build up the parent from scalars instead.
18274         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18276 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
18278         PR other/65366
18279         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
18280         instead of print ... .
18282 2015-06-02  Alan Modra  <amodra@gmail.com>
18284         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18285         2014-08-11 change.
18287 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18289         PR tree-optimization/52563
18290         PR tree-optimization/62173
18291         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
18292         (alloc_iv, set_iv): New parameter.
18293         (determine_biv_step): Delete.
18294         (find_bivs): Inline original determine_biv_step.  Pass new
18295         argument to set_iv.
18296         (idx_find_step): Use no_overflow information for conversion.
18297         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18298         resolve_mixers handle folded_casts.
18299         (instantiate_scev_name): Change bool parameter to bool pointer.
18300         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18301         (instantiate_array_ref, instantiate_scev_not): Ditto.
18302         (instantiate_scev_3, instantiate_scev_2): Ditto.
18303         (instantiate_scev_1, instantiate_scev_r): Ditto.
18304         (instantiate_scev_convert, ): Change parameter.  Pass argument
18305         to chrec_convert_aggressive.
18306         (instantiate_scev): Change argument.
18307         (resolve_mixers): New parameter and set it.
18308         (scev_const_prop): New argument.
18309         * tree-scalar-evolution.h (resolve_mixers): New parameter.
18310         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18311         of chrec_conert_1.
18312         (chrec_convert): New parameter.  Move definition below.
18313         (chrec_convert_aggressive): New parameter and set it.  Call
18314         convert_affine_scev.
18315         * tree-chrec.h (chrec_convert): New parameter.
18316         (chrec_convert_aggressive): Ditto.
18318 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18320         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18321         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18322         the LHS of a no-return call if its type has variable size.
18323         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18324         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18326 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
18328         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18329         * config.in: Regenerate.
18331 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
18333         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18334         consecutive accesses within outer-loop with force_vectorize
18335         for references with zero step in inner-loop.
18337 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
18339         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18340         rather than from gcc/build directory.
18342 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
18344         PR target/65697
18345         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18346         for __sync memory models, emit initial loads and final barriers as
18347         appropriate.
18349 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
18351         PR target/65697
18352         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18353         (aarch64_split_atomic_op): Check for __sync memory models, emit
18354         appropriate initial loads and final barriers.
18356 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
18358         * Makefile.in: Fix gcov dependencies that should
18359         not point to a build folder.
18361 2015-06-01  Richard Biener  <rguenther@suse.de>
18363         Revert
18364         2015-05-29  Richard Biener  <rguenther@suse.de>
18366         PR tree-optimization/66314
18367         * tree-ssa-threadupdate.c (create_block_for_threading): Add
18368         parameter that says which loop the new block belongs to.
18369         (ssa_create_duplicates): Blocks duplicated for the threaded
18370         path belong to the loop of the thread destination.
18372 2015-06-01  Martin Liska  <mliska@suse.cz>
18374         * sched-deps.c: Include pool-alloc.h before
18375         cselib.h header file is included.
18377 2015-06-01  Richard Biener  <rguenther@suse.de>
18379         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18380         functions.
18382 2015-06-01  Martin Liska  <mliska@suse.cz>
18384         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18385         a function local variable.
18387 2015-06-01  Martin Liska  <mliska@suse.cz>
18389         * alloc-pool.c (create_alloc_pool): Remove.
18390         (empty_alloc_pool): Likewise.
18391         (free_alloc_pool): Likewise.
18392         (free_alloc_pool_if_empty): Likewise.
18393         (pool_alloc): Likewise.
18394         (pool_free): Likewise.
18395         * alloc-pool.h: Remove old declarations.
18397 2015-06-01  Martin Liska  <mliska@suse.cz>
18399         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18400         (ira_create_object): Likewise.
18401         (ira_create_allocno): Likewise.
18402         (ira_create_live_range): Likewise.
18403         (copy_live_range): Likewise.
18404         (ira_finish_live_range): Likewise.
18405         (ira_free_allocno_costs): Likewise.
18406         (finish_allocno): Likewise.
18407         (finish_allocnos): Likewise.
18408         (initiate_prefs): Likewise.
18409         (ira_create_pref): Likewise.
18410         (finish_pref): Likewise.
18411         (finish_prefs): Likewise.
18412         (initiate_copies): Likewise.
18413         (ira_create_copy): Likewise.
18414         (finish_copy): Likewise.
18415         (finish_copies): Likewise.
18416         (finish_prefs): Likewise.
18418 2015-06-01  Martin Liska  <mliska@suse.cz>
18420         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18421         (allocate_and_init_ipcp_value): Likewise.
18422         (ipcp_lattice::add_value): Likewise.
18423         (merge_agg_lats_step): Likewise.
18424         (ipcp_driver): Likewise.
18425         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18426         (ipa_free_all_structures_after_iinln): Likewise.
18427         * ipa-prop.h: Likewise.
18429 2015-06-01  Martin Liska  <mliska@suse.cz>
18431         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18432         pool allocator.
18433         (set_hint_predicate): Likewise.
18434         (inline_summary_alloc): Likewise.
18435         (reset_inline_edge_summary): Likewise.
18436         (reset_inline_summary): Likewise.
18437         (set_cond_stmt_execution_predicate): Likewise.
18438         (set_switch_stmt_execution_predicate): Likewise.
18439         (compute_bb_predicates): Likewise.
18440         (estimate_function_body_sizes): Likewise.
18441         (inline_free_summary): Likewise.
18443 2015-06-01  Martin Liska  <mliska@suse.cz>
18445         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
18446         (ipa_edge_duplication_hook): Likewise.
18447         (ipa_free_all_structures_after_ipa_cp): Likewise.
18448         (ipa_free_all_structures_after_iinln): Likewise.
18450 2015-06-01  Martin Liska  <mliska@suse.cz>
18452         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
18453         (ipa_profile_generate_summary): Likewise.
18454         (ipa_profile_read_summary): Likewise.
18455         (ipa_profile): Likewise.
18457 2015-06-01  Martin Liska  <mliska@suse.cz>
18459         * tree-ssa-structalias.c (new_var_info): Use new type-based
18460         pool allocator.
18461         (new_constraint): Likewise.
18462         (init_alias_vars): Likewise.
18463         (delete_points_to_sets): Likewise.
18465 2015-06-01  Martin Liska  <mliska@suse.cz>
18467         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
18468         (free_strinfo): Likewise.
18469         (pass_strlen::execute): Likewise.
18471 2015-06-01  Martin Liska  <mliska@suse.cz>
18473         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
18474         pool allocator.
18475         (vn_reference_insert_pieces): Likewise.
18476         (vn_phi_insert): Likewise.
18477         (visit_reference_op_call): Likewise.
18478         (copy_phi): Likewise.
18479         (copy_reference): Likewise.
18480         (process_scc): Likewise.
18481         (allocate_vn_table): Likewise.
18482         (free_vn_table): Likewise.
18484 2015-06-01  Martin Liska  <mliska@suse.cz>
18486         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
18487         pool allocator.
18488         (add_repeat_to_ops_vec): Likewise.
18489         (get_ops): Likewise.
18490         (maybe_optimize_range_tests): Likewise.
18491         (init_reassoc): Likewise.
18492         (fini_reassoc): Likewise.
18494 2015-06-01  Martin Liska  <mliska@suse.cz>
18496         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
18497         pool allocator.
18498         (bitmap_set_new): Likewise.
18499         (get_or_alloc_expr_for_constant): Likewise.
18500         (get_or_alloc_expr_for): Likewise.
18501         (phi_translate_1): Likewise.
18502         (compute_avail): Likewise.
18503         (init_pre): Likewise.
18504         (fini_pre): Likewise.
18506 2015-06-01  Martin Liska  <mliska@suse.cz>
18508         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
18509         (delete_dep_node): Likewise.
18510         (create_deps_list): Likewise.
18511         (free_deps_list): Likewise.
18512         (sched_deps_init): Likewise.
18513         (sched_deps_finish): Likewise.
18515 2015-06-01  Martin Liska  <mliska@suse.cz>
18517         * regcprop.c (free_debug_insn_changes): Use new type-based
18518         pool allocator.
18519         (replace_oldest_value_reg): Likewise.
18520         (pass_cprop_hardreg::execute): Likewise.
18522 2015-06-01  Martin Liska  <mliska@suse.cz>
18524         * ira-build.c (initiate_cost_vectors): Use new type-based
18525         pool allocator.
18526         (ira_allocate_cost_vector): Likewise.
18527         (ira_free_cost_vector): Likewise.
18528         (finish_cost_vectors): Likewise.
18530 2015-06-01  Martin Liska  <mliska@suse.cz>
18532         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
18533         pool allocator.
18534         (free_sched_pools): Likewise.
18535         * sel-sched-ir.h (_list_alloc): Likewise.
18536         (_list_remove): Likewise.
18538 2015-06-01  Martin Liska  <mliska@suse.cz>
18540         * stmt.c (add_case_node): Use new type-based pool allocator.
18541         (expand_case): Likewise.
18542         (expand_sjlj_dispatch_table): Likewise.
18544 2015-06-01  Martin Liska  <mliska@suse.cz>
18546         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
18547         (free_bb): Likewise.
18548         (pass_cse_reciprocals::execute): Likewise.
18550 2015-06-01  Martin Liska  <mliska@suse.cz>
18552         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
18553         (sra_deinitialize) Likewise.
18554         (create_access_1) Likewise.
18555         (build_accesses_from_assign) Likewise.
18556         (create_artificial_child_access) Likewise.
18558 2015-06-01  Martin Liska  <mliska@suse.cz>
18560         * dse.c (get_group_info):Use new type-based pool allocator.
18561         (dse_step0) Likewise.
18562         (free_store_info) Likewise.
18563         (delete_dead_store_insn) Likewise.
18564         (free_read_records) Likewise.
18565         (record_store) Likewise.
18566         (replace_read) Likewise.
18567         (check_mem_read_rtx) Likewise.
18568         (scan_insn) Likewise.
18569         (dse_step1) Likewise.
18570         (dse_step7) Likewise.
18572 2015-06-01  Martin Liska  <mliska@suse.cz>
18574         * df-scan.c (struct df_scan_problem_data):Use new type-based
18575         pool allocator.
18576         (df_scan_free_internal) Likewise.
18577         (df_scan_alloc) Likewise.
18578         (df_grow_reg_info) Likewise.
18579         (df_free_ref) Likewise.
18580         (df_insn_create_insn_record) Likewise.
18581         (df_mw_hardreg_chain_delete) Likewise.
18582         (df_insn_info_delete) Likewise.
18583         (df_free_collection_rec) Likewise.
18584         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
18585         (df_sort_and_compress_mws) Likewise.
18586         (df_ref_create_structure) Likewise.
18587         (df_ref_record) Likewise.
18589 2015-06-01  Martin Liska  <mliska@suse.cz>
18591         * df-problems.c (df_chain_create):Use new type-based pool allocator.
18592         (df_chain_unlink_1) Likewise.
18593         (df_chain_unlink) Likewise.
18594         (df_chain_remove_problem) Likewise.
18595         (df_chain_alloc) Likewise.
18596         (df_chain_free) Likewise.
18597         * df.h (struct dataflow) Likewise.
18599 2015-06-01  Martin Liska  <mliska@suse.cz>
18601         * cselib.c (new_elt_list):Use new type-based pool allocator.
18602         (new_elt_loc_list) Likewise.
18603         (unchain_one_elt_list) Likewise.
18604         (unchain_one_elt_loc_list) Likewise.
18605         (unchain_one_value) Likewise.
18606         (new_cselib_val) Likewise.
18607         (cselib_init) Likewise.
18608         (cselib_finish) Likewise.
18610 2015-06-01  Martin Liska  <mliska@suse.cz>
18612         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
18613         (sh_reorg) Likewise.
18615 2015-06-01  Martin Liska  <mliska@suse.cz>
18617         * cfg.c (initialize_original_copy_tables):Use new type-based
18618         pool allocator.
18619         (free_original_copy_tables) Likewise.
18620         (copy_original_table_clear) Likewise.
18621         (copy_original_table_set) Likewise.
18623 2015-06-01  Martin Liska  <mliska@suse.cz>
18625         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
18626         pool allocator.
18627         (asan_mem_ref_new) Likewise.
18628         (free_mem_ref_resources) Likewise.
18630 2015-06-01  Martin Liska  <mliska@suse.cz>
18632         * var-tracking.c (variable_htab_free):Use new type-based
18633         pool allocator.
18634         (attrs_list_clear) Likewise.
18635         (attrs_list_insert) Likewise.
18636         (attrs_list_copy) Likewise.
18637         (shared_hash_unshare) Likewise.
18638         (shared_hash_destroy) Likewise.
18639         (unshare_variable) Likewise.
18640         (var_reg_delete_and_set) Likewise.
18641         (var_reg_delete) Likewise.
18642         (var_regno_delete) Likewise.
18643         (drop_overlapping_mem_locs) Likewise.
18644         (variable_union) Likewise.
18645         (insert_into_intersection) Likewise.
18646         (canonicalize_values_star) Likewise.
18647         (variable_merge_over_cur) Likewise.
18648         (dataflow_set_merge) Likewise.
18649         (remove_duplicate_values) Likewise.
18650         (variable_post_merge_new_vals) Likewise.
18651         (dataflow_set_preserve_mem_locs) Likewise.
18652         (dataflow_set_remove_mem_locs) Likewise.
18653         (variable_from_dropped) Likewise.
18654         (variable_was_changed) Likewise.
18655         (set_slot_part) Likewise.
18656         (clobber_slot_part) Likewise.
18657         (delete_slot_part) Likewise.
18658         (loc_exp_insert_dep) Likewise.
18659         (notify_dependents_of_changed_value) Likewise.
18660         (emit_notes_for_differences_1) Likewise.
18661         (vt_emit_notes) Likewise.
18662         (vt_initialize) Likewise.
18663         (vt_finalize) Likewise.
18665 2015-06-01  Martin Liska  <mliska@suse.cz>
18667         * ira-color.c (init_update_cost_records):Use new type-based
18668         pool allocator.
18669         (get_update_cost_record) Likewise.
18670         (free_update_cost_record_list) Likewise.
18671         (finish_update_cost_records) Likewise.
18672         (initiate_cost_update) Likewise.
18674 2015-06-01  Martin Liska  <mliska@suse.cz>
18676         * lra.c (init_insn_regs): Use new type-based pool allocator.
18677         (new_insn_reg) Likewise.
18678         (free_insn_reg) Likewise.
18679         (free_insn_regs) Likewise.
18680         (finish_insn_regs) Likewise.
18681         (init_insn_recog_data) Likewise.
18682         (init_reg_info) Likewise.
18683         (finish_reg_info) Likewise.
18684         (lra_free_copies) Likewise.
18685         (lra_create_copy) Likewise.
18686         (invalidate_insn_data_regno_info) Likewise.
18688 2015-06-01  Martin Liska  <mliska@suse.cz>
18690         * lra-lives.c (free_live_range): Use new type-based pool allocator.
18691         (free_live_range_list) Likewise.
18692         (create_live_range) Likewise.
18693         (copy_live_range) Likewise.
18694         (lra_merge_live_ranges) Likewise.
18695         (remove_some_program_points_and_update_live_ranges) Likewise.
18696         (lra_live_ranges_init) Likewise.
18697         (lra_live_ranges_finish) Likewise.
18699 2015-06-01  Martin Liska  <mliska@suse.cz>
18701         * et-forest.c (et_new_occ): Use new type-based pool allocator.
18702         (et_new_tree): Likewise.
18703         (et_free_tree): Likewise.
18704         (et_free_tree_force): Likewise.
18705         (et_free_pools): Likewise.
18706         (et_split): Likewise.
18708 2015-06-01  Martin Liska  <mliska@suse.cz>
18710         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
18711         to header file.
18712         * alloc-pool.h (pool_allocator::pool_allocator): New function.
18713         (pool_allocator::release): Likewise.
18714         (inline pool_allocator::release_if_empty): Likewise.
18715         (inline pool_allocator::~pool_allocator): Likewise.
18716         (pool_allocator::allocate): Likewise.
18717         (pool_allocator::remove): Likewise.
18719 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
18721         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
18722         in comment.
18724 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
18726         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
18727         to fusible_ops.
18728         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
18729         (arm_macro_fusion_p): Likewise.
18730         (arm_macro_fusion_pair_p): Likewise.
18732 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
18734         * config/aarch64/aarch64-protos.h (tune_params): Rename
18735         fuseable_ops to fusible_ops.
18736         * config/aarch64/aarch64.c (generic_tunings): Rename
18737         fuseable_ops to fusible_ops.
18738         (cortexa53_tunings): Likewise.
18739         (cortexa57_tunings): Likewise.
18740         (thunderx_tunings): Likewise.
18741         (xgene1_tunings): Likewise.
18742         (aarch64_macro_fusion_p): Likewise.
18743         (aarch64_macro_fusion_pair_p): Likewise.
18745 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18747         * config/s390/driver-native.c: New file.
18748         * config/s390/x-native: New file.
18749         * config.host: Add new files for s390.
18750         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
18751         and -march=native
18752         * config.gcc: Likewise.
18753         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
18754         * config/s390/s390-opts.h (enum processor_type): Ditto.
18755         * config/s390/s390.c (s390_option_override): Catch unhandled
18756         PROCESSOR_NATIVE
18758 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
18760         PR target/65527
18761         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
18762         redirection for instrumented calls.
18763         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
18764         (append_compiler_options): Append -fcheck-pointer-bounds.
18765         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
18766         (chkp_redirect_edge): New.
18767         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
18768         (chkp_redirect_edge): New.
18770 2015-06-01  Richard Biener  <rguenther@suse.de>
18772         PR tree-optimization/66280
18773         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
18774         def-use walking.
18776 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18778         * config/aarch64/aarch64.md
18779         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
18780         logic_shift_imm.
18782 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18784         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
18785         Remove obsolete kludge.
18787 2015-06-01  Richard Biener  <rguenther@suse.de>
18789         * tree-ssa-reassoc.c (get_rank): Simplify.
18791 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18793         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
18794         * configure: Regenerated.
18796 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
18798         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18799         issue (add space between string literal and macro).
18800         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
18802 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18804         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
18805         implict or explicit -fPIE or -fpie.
18807 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
18809         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
18811 2015-05-28  DJ Delorie  <dj@redhat.com>
18813         * expmed.c (extract_bit_field_1): Avoid clobbering a
18814         yet-to-be-used base/index register.
18816 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
18818         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
18819         (alias_stats): Add num_universal.
18820         (alias_set_subset_of): Special case pointers; be ready for NULL
18821         children.
18822         (alias_sets_conflict_p): Special case pointers; be ready for NULL
18823         children.
18824         (init_alias_set_entry): Break out from ...
18825         (record_alias_subset): ... here; propagate new fields;
18826         allocate children only when really needed.
18827         (get_alias_set): Do less generous pointer globbing.
18828         (dump_alias_stats_in_alias_c): Update statistics.
18830 2015-05-30  Alan Modra  <amodra@gmail.com>
18832         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
18833         correct block for use of r12.
18834         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
18836 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18838         PR target/66215
18839         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
18840         with -mhotpatch=.
18842 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
18844         PR tree-optimization/66142
18845         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
18846         virtual phis that feed themselves.
18848 2015-05-29  Richard Biener  <rguenther@suse.de>
18850         PR tree-optimization/66314
18851         * tree-ssa-threadupdate.c (create_block_for_threading): Add
18852         parameter that says which loop the new block belongs to.
18853         (ssa_create_duplicates): Blocks duplicated for the threaded
18854         path belong to the loop of the thread destination.
18856 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18858         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
18859         to cleanup-saved-temps.
18860         * doc/sourcebuild.texi (Clean up generated test files): Expand
18861         introduction.
18862         (dg-keep-saved-temps): Document new proc.
18863         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
18864         cleanup-saved-temps): Remove.
18866 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
18868         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
18869         gcc_AC_CHECK_DECLS.
18870         * configure: Regenerate.
18872 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
18874         * config/nios2/linux.h (CPP_SPEC): Define.
18876 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
18878         * config/microblaze/linux.h (CPP_SPEC): Define.
18880 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
18882         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
18883         -pthread is specified.
18885 2015-05-28  Richard Biener  <rguenther@suse.de>
18887         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
18888         (vect_fixup_scalar_cycles_with_patterns): Likewise.
18889         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
18890         after pattern recog.
18891         (vect_create_epilog_for_reduction): Properly handle reductions
18892         with patterns.
18893         (vectorizable_reduction): Likewise.
18894         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
18895         reduction chains.
18896         (vect_get_constant_vectors): Create the correct number of
18897         initial values for reductions.
18898         (vect_schedule_slp_instance): Handle reduction chains that are
18899         type changing properly.
18900         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
18902 2015-05-28  Richard Biener  <rguenther@suse.de>
18904         PR tree-optimization/66142
18905         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
18906         values better in memcpy destination handling.  Handle non-aliasing
18907         we discover here.
18909 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
18911         PR target/63810
18912         * config/darwin-c.c (version_components): New global enum.
18913         (parse_version, version_as_legacy_macro)
18914         (version_as_modern_macro, macosx_version_as_macro): New functions.
18915         (version_as_macro): Remove.
18916         (darwin_cpp_builtins): Use new function.
18918 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
18920         * builtins.c (expand_builtin_acc_on_device): Mark parameters
18921         with ATTRIBUTE_UNUSED.
18923 2015-05-28  Julian Brown  <julian@codesourcery.com>
18925         PR libgomp/65742
18927         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
18928         sequence for !ACCEL_COMPILER.
18930 2015-05-28  Nick Clifton  <nickc@redhat.com>
18932         * config/rx/rx.c (push_regs): New function.  Extracts code from...
18933         (rx_expand_prologue): ... here.  Use push_regs to push even small
18934         spans of registers.
18935         (pop_regs): New function.
18936         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
18937         registers.
18939 2015-05-28  Richard Biener  <rguenther@suse.de>
18941         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
18942         member.
18943         (SLP_INSTANCE_BODY_COST_VEC): Remove.
18944         (vect_update_slp_costs_according_to_vf): Likewise.
18945         (vect_slp_analyze_operations): Update prototype.
18946         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
18947         vect_update_slp_costs_according_to_vf, adjust.
18948         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
18949         (vect_analyze_slp_cost_1): Likewise.
18950         (vect_analyze_slp_cost): Likewise.  Properly deal with
18951         widening reduction ops.  Commit body costs.
18952         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
18953         cost for loops from here.
18954         (vect_slp_analyze_operations): But do it from here when
18955         the vectorization factor is known and stmts are analyzed.
18956         (vect_bb_vectorization_profitable_p): Simplify.
18957         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
18958         (vect_update_slp_costs_according_to_vf): Remove.
18960 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
18961             H.J. Lu  <hongjiu.lu@intel.com>
18963         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
18964         (BUILD_CFLAGS): Likewise.
18965         (BUILD_CXXFLAGS): Likewise.
18966         (LINKER): Add @NO_PIE_FLAG@.
18967         (BUILD_LDFLAGS): Likewise.
18968         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
18969         --enable-default-pie.
18970         * common.opt (fPIE): Initialize to -1.
18971         (fpie): Likewise.
18972         (no-pie): New option.
18973         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
18974         * configure.ac: Add --enable-default-pie.
18975         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
18976         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
18977         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
18978         * gcc.c (NO_PIE_SPEC): New.
18979         (PIE_SPEC): Likewise.
18980         (NO_FPIE1_SPEC): Likewise.
18981         (FPIE1_SPEC): Likewise.
18982         (NO_FPIE2_SPEC): Likewise.
18983         (FPIE2_SPEC): Likewise.
18984         (NO_FPIE2_SPEC): Likewise.
18985         (FPIE_SPEC): Likewise.
18986         (NO_FPIE_SPEC): Likewise.
18987         (NO_FPIC1_SPEC): Likewise.
18988         (FPIC1_SPEC): Likewise.
18989         (NO_FPIC2_SPEC): Likewise.
18990         (FPIC2_SPEC): Likewise.
18991         (NO_FPIC2_SPEC): Likewise.
18992         (FPIC_SPEC): Likewise.
18993         (NO_FPIC_SPEC): Likewise.
18994         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
18995         (FPIE1_OR_FPIC1_SPEC): Likewise.
18996         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
18997         (FPIE2_OR_FPIC2_SPEC): Likewise.
18998         (NO_FPIE_AND_FPIC_SPEC): Likewise.
18999         (FPIE_OR_FPIC_SPEC): Likewise.
19000         (LD_PIE_SPEC): Likewise.
19001         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
19002         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19003         * config/darwin.h (PIE_SPEC): Renamed to ...
19004         (DARWIN_PIE_SPEC): This.
19005         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19006         * config/darwin9.h (PIE_SPEC): Renamed to ...
19007         (DARWIN_PIE_SPEC): This.
19008         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19009         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19010         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19011         FPIE2_OR_FPIC2_SPEC.
19012         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19013         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19014         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19015         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19016         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19017         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19018         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19019         * config/m32r/m32r.h (ASM_SPEC): Likewise.
19020         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19021         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19022         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19023         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19024         * config/sparc/linux.h (ASM_SPEC): Likewise.
19025         * config/sparc/linux64.h (ASM_SPEC): Likewise.
19026         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19027         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19028         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19029         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19030         * config/sparc/sparc.h (ASM_SPEC): Likewise.
19031         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19032         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19033         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19034         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19035         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19036         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19037         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19038         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19039         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19040         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19041         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19042         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19043         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19044         * config/vax/linux.h (ASM_SPEC): Likewise.
19045         * doc/install.texi: Document --enable-default-pie.
19046         * doc/invoke.texi: Document -no-pie.
19047         * config.in: Regenerated.
19048         * configure: Likewise.
19050 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19052         PR rtl-optimization/66168
19053         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19054         can_move_invariant_reg.
19056 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
19058         PR target/66148
19059         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19060         REG_EQUAL note when doing insert.
19062         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19063         instead of "%d" for 'o' operand.
19065 2015-05-27  Nathan Sidwell  <nathan@acm.org>
19067         PR c++/66270
19068         * tree.c (build_pointer_type_for_mode): Canonical type does not
19069         inherit can_alias_all.
19070         (build_reference_type_for_mode): Likewise.
19072 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19074         * expr.h (array_at_struct_end_p): Move to...
19075         (array_ref_element_size): Likewise.
19076         (component_ref_field_offset): Likewise.
19077         * tree.h (array_ref_element_size): ...here.
19078         (array_at_struct_end_p): Likewise.
19079         (component_ref_field_offset): Likewise.
19080         * expr.c (array_ref_element_size): Move to...
19081         (array_ref_low_bound): Likewise.
19082         (array_at_struct_end_p): Likewise.
19083         (array_ref_up_bound): Likewise.
19084         (component_ref_field_offset): Likewise.
19085         * tree.c (array_ref_element_size): ...here.
19086         (array_ref_low_bound): Likewise.
19087         (array_ref_up_bound): Likewise.
19088         (array_at_struct_end_p): Likewise.
19089         (component_ref_field_offset): Likewise.
19091 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19092             Szabolcs Nagy  <szabolcs.nagy@arm.com>
19094         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19096 2015-05-27  Jason Merrill  <jason@redhat.com>
19098         PR bootstrap/66304
19099         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19100         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19101         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19103 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
19105         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19106         is true.
19108         * statistics.c (statistics_fini_pass): Print pass name.
19110 2015-05-27  Richard Biener  <rguenther@suse.de>
19112         PR tree-optimization/66272
19113         Revert parts of
19114         2014-08-15  Richard Biener  <rguenther@suse.de>
19116         PR tree-optimization/62031
19117         * tree-data-ref.c (dr_analyze_indices): Do not set
19118         DR_UNCONSTRAINED_BASE.
19119         (dr_may_alias_p): All indirect accesses have to go the
19120         formerly DR_UNCONSTRAINED_BASE path.
19121         * tree-data-ref.h (struct indices): Remove
19122         unconstrained_base member.
19123         (DR_UNCONSTRAINED_BASE): Remove.
19125 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
19127         * dwarf2out.c: Remove block_map.
19128         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19129         (gen_lexical_block_die): Same.
19130         (dwarf2out_function_decl): Remove block_map use.
19131         (dwarf2out_c_finalize): Same.
19132         * tree-core.h (struct tree_block): Add die field.
19133         * tree.h (BLOCK_DIE): New.
19135 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19137         PR target/65358
19138         * expr.c (memory_load_overlap): New function.
19139         (emit_push_insn): When pushing partial args to the stack would
19140         clobber the register part load the overlapping part into a pseudo
19141         and put it into the hard reg after pushing.  Change return type
19142         to bool.  Add bool argument.
19143         * expr.h (emit_push_insn): Change return type to bool.
19144         Add bool argument.
19145         * calls.c (expand_call): Cancel sibcall optimization when encountering
19146         partial argument on targets with ARGS_GROW_DOWNWARD and
19147         !STACK_GROWS_DOWNWARD.
19148         (emit_library_call_value_1): Update callsite of emit_push_insn.
19149         (store_one_arg): Likewise.
19151 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19153         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19155 2015-05-27  Martin Liska  <mliska@suse.cz>
19157         * Makefile.in: Add additional dependencies related to memory report
19158         enhancement.
19159         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19160         * bitmap.c (struct bitmap_descriptor_d): Remove.
19161         (struct loc): Likewise.
19162         (struct bitmap_desc_hasher): Likewise.
19163         (bitmap_desc_hasher::hash): Likewise.
19164         (bitmap_desc_hasher::equal): Likewise.
19165         (get_bitmap_descriptor): Likewise.
19166         (bitmap_register): User new memory descriptor API.
19167         (register_overhead): Likewise.
19168         (bitmap_find_bit): Register nsearches and search_iter statistics.
19169         (struct bitmap_output_info): Remove.
19170         (print_statistics): Likewise.
19171         (dump_bitmap_statistics): Use new memory descriptor.
19172         * bitmap.h (struct bitmap_usage): New class.
19173         * genmatch.c: Extend header file inclusion.
19174         * genpreds.c: Likewise.
19175         * ggc-common.c (struct ggc_usage): New class.
19176         (struct ggc_loc_desc_hasher): Remove.
19177         (ggc_loc_desc_hasher::hash): Likewise.
19178         (ggc_loc_desc_hasher::equal): Likewise.
19179         (struct ggc_ptr_hash_entry): Likewise.
19180         (struct ptr_hash_hasher): Likewise.
19181         (ptr_hash_hasher::hash): Likewise.
19182         (ptr_hash_hasher::equal): Likewise.
19183         (make_loc_descriptor): Likewise.
19184         (ggc_prune_ptr): Likewise.
19185         (dump_ggc_loc_statistics): Use new memory descriptor.
19186         (ggc_record_overhead): Likewise.
19187         (ggc_free_overhead): Likewise.
19188         (final_cmp_statistic): Remove.
19189         (cmp_statistic): Likewise.
19190         (ggc_add_statistics): Liekwise.
19191         (ggc_prune_overhead_list): Likewise.
19192         * hash-map-traits.h: New file.
19193         * hash-map.h (struct default_hashmap_traits): Move the traits to a
19194         separate header file.
19195         * hash-set.h: Pass memory statistics info to ctor.
19196         * hash-table.c (void dump_hash_table_loc_statistics): New function.
19197         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19198         (hash_table::~hash_table): Register memory release operation.
19199         (hash_table::alloc_entries): Handle memory allocation operation.
19200         (hash_table::expand): Likewise.
19201         * inchash.c (iterative_hash_hashval_t): Move implementation to header
19202         file.
19203         (iterative_hash_host_wide_int): Likewise.
19204         * inchash.h (class hash): Likewise.
19205         * mem-stats-traits.h: New file.
19206         * mem-stats.h: New file.
19207         (mem_location): Add new class.
19208         (mem_usage): Likewise.
19209         (mem_alloc_description): Likewise.
19210         * sese.c: Add new header file inclusision.
19211         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19212         and hash_set.
19213         * tree-sra.c: Add new header file inclusision.
19214         * vec.c (struct vec_descriptor): Remove.
19215         (hash_descriptor): Likewise.
19216         (struct vec_usage): Likewise.
19217         (struct ptr_hash_entry): Likewise.
19218         (hash_ptr): Likewise.
19219         (eq_ptr): Likewise.
19220         (vec_prefix::register_overhead): Use new memory descriptor API.
19221         (vec_prefix::release_overhead): Likewise.
19222         (add_statistics): Remove.
19223         (dump_vec_loc_statistics): Use new memory descriptor API.
19224         * vec.h (struct vec_prefix): Likewise.
19225         (va_heap::reserve): Likewise.
19226         (va_heap::release): Likewise.
19227         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19229 2015-05-27  Richard Biener  <rguenther@suse.de>
19231         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19232         earlier and remove ??? comment.
19233         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19234         and got called from loop analysis bail out.  Always pass the SLP
19235         node to the vectorizable_* functions.
19236         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19237         the premature SLP check here.
19238         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19239         detected SLP stmts.
19240         (vect_detect_hybrid_slp_1): Likewise.
19242 2015-05-26  Jeff Law  <law@redhat.com>
19244         * combine.c (find_split_point): Verify that the shift count is a
19245         constant when choosing (plus (ashift ...)) as a split point.
19247         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19248         No functional changes.
19250 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
19252         * ipa-polymorphic-call.c
19253         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19254         case when call target is already known.
19256 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
19258         PR target/65979
19259         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19260         take into account the case that operands[1] and operands[2]
19261         are the same register.
19263 2015-05-26  Michael Matz  <matz@suse.de>
19265         PR middle-end/66251
19267         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19268         stores.
19269         (vect_create_vectorized_demotion_stmts): Always set
19270         STMT_VINFO_VEC_STMT, also with SLP.
19271         (vectorizable_store): Handle strided group stores.
19273 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19275         PR target/66049
19276         * config/aarch64/aarch64.md
19277         (*adds_shift_imm_<mode>):  New pattern.
19278         (*subs_shift_imm_<mode>):  Likewise.
19279         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
19280         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19281         (*add_uxt<mode>_shift2): Likewise.
19282         (*add_uxtsi_shift2_uxtw): Likewise.
19283         (*sub_uxt<mode>_shift2): Likewise.
19284         (*sub_uxtsi_shift2_uxtw): Likewise.
19286 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
19288         * config/rs6000/constraints.md (Y, U): Use match_test.
19290 2015-05-26  Christian Bruel  <christian.bruel@st.com>
19292         PR target/52144
19293         * config/arm/arm.c (arm_option_check_internal)
19294         (arm_option_params_internal): Check opts->target_flags to set macros.
19295         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19296         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19297         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19298         (builtin_define): Replaced with def_or_undef_macro.
19299         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19300         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19301         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19302         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19303         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19304         (TARGET_ARM_FEATURE_LDREX_P)
19305         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19306         * config/arm/arm-c.c (def_or_undef_macro): New function.
19307         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19309 2015-05-26  Christian Bruel  <christian.bruel@st.com>
19311         * c-common.h (builtin_define_with_int_value)
19312         (builtin_define_type_sizeof): Declare.
19313         * c-cppbuiltin.c (builtin_define_with_int_value)
19314         (builtin_define_type_sizeof): Externalize.
19315         (builtin_define_std): Cleanup declaration.
19316         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19317         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19318         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19319         (builtin_define, builtin_assert): New macros.
19321 2015-05-26  Richard Biener  <rguenther@suse.de>
19323         PR tree-optimization/66142
19324         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19325         MEM_REFs for the same base address.
19327 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19329         PR ipa/66181
19330         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19332 2015-05-26  Jason Merrill  <jason@redhat.com>
19334         * configure.ac: Set CXXFLAGS for ISL test.
19335         * configure: Regenerate.
19337         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
19338         strstr and basename.
19339         * configure: Regenerate.
19341 2015-05-26  Richard Biener  <rguenther@suse.de>
19343         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19344         X % C -> X & (C - 1) for C being a power-of two to ...
19345         * match.pd: ... patterns.
19347 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
19349         * match.pd (swapped_tcc_comparison): New operator list.
19350         (-A CMP -B): New simplification.
19351         * fold-const.c (fold_comparison): Remove corresponding code.
19353 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19355         * caller-save.c (init_caller_save): Base temporary register numbers
19356         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19357         * cfgloopanal.c (init_set_costs): Likewise.
19358         * dojump.c (prefer_and_bit_test): Likewise.
19359         * expr.c (init_expr_target): Likewise.
19360         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19361         * lower-subreg.c (init_lower_subreg): Likewise.
19362         * postreload.c (reload_cse_regs_1): Likewise.
19364 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19366         * gensupport.h (compute_test_codes): Declare.
19367         * gensupport.c (compute_predicate_codes): Rename to...
19368         (compute_test_codes): ...this.  Generalize error message.
19369         (process_define_predicate): Update accordingly.
19370         * genpreds.c (compute_maybe_allows): Delete.
19371         (add_constraint): Use compute_test_codes to determine whether
19372         something can accept a SUBREG, REG or MEM.
19374 2015-05-26  Torvald Riegel  <triegel@redhat.com>
19376         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19377         'memory model' to align with C++11; fix description of memory orders;
19378         fix a few typos.
19380 2015-05-26  Richard Biener  <rguenther@suse.de>
19382         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19383         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
19384         detect whether we apply SLP.  Remove call to
19385         vect_update_slp_costs_according_to_vf.
19386         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19387         vect_update_slp_costs_according_to_vf from here.  Dispatch
19388         to vect_slp_analyze_operations to analyze SLP stmts.
19389         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19390         unused bb_vec_info parameter, adjust assert.
19391         (vect_slp_analyze_operations): Pass in the slp instance tree
19392         instead of bb_vec_info.
19393         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19394         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19396 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
19398         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19399         Q_REGS.  Expand comment.
19400         (REG_CLASS_NAMES): Ditto.
19401         (REG_CLASS_CONTENTS): Ditto.
19403 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
19405         PR target/66274
19406         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19407         when LEGACY_INT_REGNO_P is processed.
19409 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
19411         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19413 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19415         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19416         register if not marked dead/unused, before return.
19418 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19420         PR lto/66180
19421         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19422         is set; check for assembler name at LTO time.
19423         (type_in_anonymous_namespace): Remove hacks, check that all
19424         anonymous types are called "<anon>"
19425         (odr_type_p): Simplify; add check for "<anon>"
19426         (odr_subtypes_equivalent): Add odr_type_p check.
19427         * tree.c (need_assembler_name_p): Even anonymous namespace needs
19428         assembler name.
19430 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19432         * ipa-utils.h (method_class_type): Remove.
19433         * cgraphunit.c (walk_polymorphic_call_targets): Use
19434         TYPE_METHOD_BASETYPE.
19435         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
19436         on main variants only.
19437         (method_class_type): Remove.
19438         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
19439         (build_type_inheritance_graph): Likewise.
19440         * ipa-icf.c (sem_function::equals_wpa): Likewise.
19441         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
19442         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
19444 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19446         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
19447         is_typedef_decl, typedef_variant_p): Constify.
19448         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
19449         is_typedef_decl, typedef_variant_p): Constify.
19451 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19453         * defaults.h (gen_tablejump): New function.
19454         (HAVE_tablejump): Add default value.
19455         * expr.c: Adjust.
19456         * stmt.c: Likewise.
19458 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19460         * defaults.h (gen_store_multiple): New function.
19461         (HAVE_store_multiple): Add default value.
19462         * expr.c (move_block_from_reg): Adjust.
19464 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19466         * defaults.h (gen_load_multiple): New function.
19467         (HAVE_load_multiple): Add default value.
19468         * expr.c (move_block_to_reg): Adjust.
19470 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19472         * defaults.h (gen_mem_signal_fence): New function.
19473         (HAVE_mem_signal_fence): Add default value.
19474         * optabs.c: Adjust.
19476 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19478         * defaults.h (gen_memory_barrier): New function.
19479         (HAVE_memory_barrier): Add default value.
19480         * optabs.c: Adjust.
19482 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19484         * defaults.h (gen_mem_thread_fence): New function.
19485         (HAVE_mem_thread_fence): Add default definition.
19486         * optabs.c: Adjust.
19488 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19490         * combine.c (find_split_point): Check the value of HAVE_lo_sum
19491         instead of if it is defined.
19492         (combine_simplify_rtx): Likewise.
19493         * lra-constraints.c (process_address_1): Likewise.
19494         * config/darwin.c: Adjust.
19495         * genconfig.c (main): Always define HAVE_lo_sum.
19497 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19499         * genmatch.c (parser::parse_operation): Reject expanding
19500         operator-list inside 'for'.
19502 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19504         * genmatch.c (parser::parse_for): Reject iterator if used as
19505         operator-list.
19507 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19509         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
19510         after end of id-list.
19512 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
19514         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
19515         we do not try to compute canonical type for type that does not need
19516         alias set.
19517         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
19518         FUNCITON_TYPE.
19519         * tree.h (type_with_alias_set_p): New.
19521 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
19523         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
19524         function attributes.
19525         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
19527 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
19529         * Makefile.in (check_gcc_parallelize): Delete.
19530         (lang_checks_parallelized): Update comment.
19532 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
19534         PR rtl-optimization/66237
19535         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
19536         location of an "as_a" cast.
19538 2015-05-22  Jeff Law  <law@redhat.com>
19540         * config/pa/pa.md (non-canonical shift-add insns): Remove.
19541         (peepholes with non-canonical RTL sources): Remove.
19542         (peepholes for indexed stores of FP regs in integer modes): Match and
19543         generate canonical RTL.
19545 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
19547         PR tree-optimization/63387
19548         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
19549         ((x ord x) & (y ord y) -> (x ord y),
19550         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
19551         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
19552         vectors like scalars.
19554 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
19556         * convert.c (convert_to_integer, convert_to_vector): Include the
19557         types in the error message.
19559 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
19561         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
19562         simplifications.
19564 2015-05-22  Jeff Law  <law@redhat.com>
19566         * config/pa/pa.md (integer_indexed_store splitters): Use
19567         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
19568         insns -- adjusting the constant 2nd operand accordingly.
19570         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
19571         (plus (ashift X log2) Y) if it is a split point.
19573         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
19574         out of hppa_legitimize_address to handle both forms of a multiply
19575         by 2, 4 or 8.
19576         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
19577         Always generate the ASHIFT variant as the result is not directly
19578         used in a MEM.  Update comments and refactor slightly to improve
19579         readability.
19581 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19583         PR target/65491
19584         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
19585         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
19586         (aarch64_composite_type_p): Return false if given type and mode are
19587         for a short vector.
19589 2015-05-22  Richard Biener  <rguenther@suse.de>
19591         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
19592         member.
19593         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
19594         patterns when determining whether SLP is pure.
19595         (vect_is_slp_reduction): Remove check for pattern stmts.
19596         (vect_is_simple_reduction_1): Remove dead code.
19597         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
19598         (vect_get_and_check_slp_defs): Pass in the stmt number.
19599         Allow the first def in a reduction to be not a pattern stmt when
19600         the rest of the stmts def are patterns.
19601         (vect_build_slp_tree_1): Allow tcc_expression codes like
19602         SAD_EXPR and DOT_PROD_EXPR.
19603         (vect_build_slp_tree): Adjust.
19604         (vect_analyze_slp): Refactor and move BB vect error message ...
19605         (vect_slp_analyze_bb_1): ... here.
19607 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
19609         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
19610         for CSWTCH temporary.
19612 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19614         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
19615         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
19616         unknown unspecs.
19618 2015-05-22  Richard Biener  <rguenther@suse.de>
19620         PR tree-optimization/66251
19621         * tree-vect-stmts.c (vectorizable_conversion): Properly
19622         set STMT_VINFO_VEC_STMT even for the SLP case.
19624 2015-05-22  Marek Polacek  <polacek@redhat.com>
19626         * doc/extend.texi: Use @pxref instead of @xref.
19628 2015-05-22  hiraditya  <hiraditya@msn.com>
19630         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
19631         redundant if.
19633 2015-05-22  Richard Biener  <rguenther@suse.de>
19635         PR tree-optimization/65701
19636         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19637         Move peeling cost models into one place.  Peel for alignment
19638         for single loads only if an aligned load is cheaper than
19639         an unaligned load.
19641 2015-05-22  Marek Polacek  <polacek@redhat.com>
19643         PR c/47043
19644         * doc/extend.texi (Enumerator Attributes): New section.
19645         Document syntax of enumerator attributes.
19647 2015-05-22  Richard Biener  <rguenther@suse.de>
19649         * tree-vect-loop.c (get_reduction_op): New function.
19650         (vect_model_reduction_cost): Use it, add reduc_index parameter.
19651         Make ready for BB reductions.
19652         (vect_create_epilog_for_reduction): Use get_reduction_op.
19653         (vectorizable_reduction): Init reduc_index to a valid value.
19654         Adjust vect_model_reduction_cost call.
19655         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
19656         operand for reduction defaults.  Add SAD_EXPR support.
19657         Assert we have a neutral op for SLP reductions.
19658         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
19659         walking pattern stmt ops only recurse to SSA names.
19661 2015-05-22  Richard Biener  <rguenther@suse.de>
19663         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
19664         assert with guard, remove check on detected reduction.
19665         (vect_recog_sad_pattern): Likewise.
19666         (vect_recog_widen_sum_pattern): Likewise.
19668 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19670         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
19671         __always_inline__ attribute.
19672         (vaesdq_u8): Likewise.
19673         (vaesmcq_u8): Likewise.
19674         (vaesimcq_u8): Likewise.
19675         (vsha1cq_u32): Likewise.
19676         (vsha1mq_u32): Likewise.
19677         (vsha1pq_u32): Likewise.
19678         (vsha1h_u32): Likewise.
19679         (vsha1su0q_u32): Likewise.
19680         (vsha1su1q_u32): Likewise.
19681         (vsha256hq_u32): Likewise.
19682         (vsha256h2q_u32): Likewise.
19683         (vsha256su0q_u32): Likewise.
19684         (vsha256su1q_u32): Likewise.
19685         (vmull_p64): Likewise.
19686         (vmull_high_p64): Likewise.
19688 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19690         * final.c (final_scan_insn): Don't check HAVE_peephole with the
19691         preprocessor.
19692         * output.h: Likewise.
19693         * genconfig.c (main): Alwways define HAVE_peephole.
19694         * genpeep.c: Don't emit checks of HAVE_peephole.
19696 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19698         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
19699         check HAVE_conditional_move with the preprocessor.
19701 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19703         * genconfig.c (main): Always define HAVE_conditional_move.
19704         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
19705         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
19706         is defined.
19708 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19710         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
19711         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
19712         and FRAME_POINTER_REGNUM with the preprocessor.
19714 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19716         * defaults.h: Add default for STACK_PUSH_CODE.
19717         * expr.c: Don't redefine STACK_PUSH_CODE.
19718         * recog.c: Likewise.
19720 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19722         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
19723         sched-deps.c: Use if instead of preprocessor checks with
19724         STACK_GROWS_DOWNWARD.
19726 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19728         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
19729         is defined.
19730         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
19731         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
19732         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
19733         * doc/tm.texi: Regenerate.
19735 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19737         PR target/66232
19738         * config/i386/constraints.md (Bg): New constraint for GOT memory
19739         operand.
19740         * config/i386/i386.md (*call_got_x32): New pattern.
19741         (*call_value_got_x32): Likewise.
19742         * config/i386/predicates.md (GOT_memory_operand): New predicate.
19744 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
19746         PR tree-optimization/66233
19747         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
19748         Simplify.
19750 2015-05-21  Jeff Law  <law@redhat.com>
19752         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
19753         than MULT for shadd sequences.
19755 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
19757         * alias.c (alias_stats): New static var.
19758         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
19759         (dump_alias_stats_in_alias_c): New function.
19760         * alias.h (dump_alias_stats_in_alias_c): Declare.
19761         * tree-ssa-alias.c (dump_alias_stats): Call it.
19763 2015-05-08  Michael Matz  <matz@suse.de>
19765         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
19766         to strided_p.
19767         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
19768         (STMT_VINFO_STRIDED_P): ... this.
19769         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
19770         (vect_verify_datarefs_alignment): Likewise.
19771         (vect_enhance_data_refs_alignment): Likewise.
19772         (vect_analyze_data_ref_access): Likewise.
19773         (vect_analyze_data_refs): Accept strided stores.
19774         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
19775         (vect_model_load_cost): Adjust for macro rename.
19776         (vectorizable_mask_load_store): Likewise.
19777         (vectorizable_load): Likewise.
19778         (vectorizable_store): Open code strided stores.
19780 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19782         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
19783         Document sqrt_insn.
19785 2015-05-21  Richard Biener  <rguenther@suse.de>
19787         PR c++/66211
19788         * match.pd: Guard pattern optimzing (int)(float)int
19789         conversions to apply only on GIMPLE.
19791 2015-05-21  Jeff Law  <law@redhat.com>
19793         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
19794         multiply-accumulate/shift-add insn generation.
19796 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
19798         PR target/54236
19799         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
19800         operands[1] are the same.
19802 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
19804         PR middle-end/66221
19805         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
19806         build_distinct_type_copy to copy bounds.
19808 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
19810         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
19811         Change to unsigned int.
19813 2015-05-20  Jeff Law  <law@redhat.com>
19815         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
19816         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
19817         (pa_shadd_constant_p): Allow constants for shadd insns rather
19818         than valid scaling constants for memory addresses.
19819         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
19820         * config/pa/predicates.md (mem_shadd_operand): New predicate.
19821         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
19822         (shift-add insns using ASHIFT): New patterns.
19824 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
19826         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
19827         feasible.
19828         (fix_up_fall_thru_edges): Likewise.
19829         (fix_crossing_conditional_branches): Likewise. Promote jump targets
19830         from to rtx_insn to rtx_code_label where feasible.
19831         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
19832         gen_move_insn (returned type changed to rtx_insn).
19833         * builtins.c (expand_errno_check): Fix arguments of
19834         do_compare_rtx_and_jump (now expects rtx_code_label).
19835         (expand_builtin_acc_on_device): Likewise.
19836         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
19837         invert_jump (now exprects rtx_jump_insn).
19838         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
19839         (construct_init_block): Use rtx_code_label.
19840         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
19841         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
19842         calling redirect_jump.
19843         (patch_jump_insn): Likewise.
19844         (redirect_branch_edge): Likewise.
19845         (force_nonfallthru_and_redirect): Likewise.
19846         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
19847         when suitable.
19848         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
19849         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
19850         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
19851         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
19852         to store the value retured by gen_label_rtx.
19853         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
19854         rtx_jump_insn.
19855         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
19856         (split_branches): Fix calls of redirect_jump.
19857         * dojump.c (jumpifnot): Promote argument type from rtx to
19858         rtx_code_label.
19859         (jumpifnot_1): Likewise.
19860         (jumpif): Likewise.
19861         (jumpif_1): Likewise.
19862         (do_jump_1): Likewise.
19863         (do_jump): Likewise. Use rtx_code_label when feasible.
19864         (do_jump_by_parts_greater_rtx): Likewise.
19865         (do_jump_by_parts_zero_rtx): Likewise.
19866         (do_jump_by_parts_equality_rtx): Likewise.
19867         (do_compare_rtx_and_jump): Likewise.
19868         * dojump.h: Update function prototypes.
19869         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
19870         returns rtx_insn).
19871         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
19872         rtx_jump_insn.
19873         (emit_label_before): Likewise.
19874         (emit_jump_insn_after_noloc): Likewise.
19875         (emit_jump_insn_after_setloc): Likewise.
19876         (emit_jump_insn_after): Likewise
19877         (emit_jump_insn_before_setloc): Likewise.
19878         (emit_jump_insn_before): Likewise.
19879         (emit_label_before): Promote return type to rtx_code_label.
19880         (emit_label): Likewise.
19881         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
19882         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
19883         gen_move_insn.
19884         (emit_stack_restore): Likewise.
19885         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
19886         (do_cmp_and_jump): Likewise.
19887         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
19888         from rtx to rtx_code_label.
19889         (gen_move_insn_uncast): New function.
19890         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
19891         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
19892         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
19893         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
19894         invert_jump_1 and redirect_jump_1.
19895         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
19896         do_compare_rtx_and_jump.
19897         (expand_addsub_overflow): Likewise.
19898         (expand_neg_overflow): Likewise.
19899         (expand_mul_overflow): Likewise.
19900         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
19901         return value of gen_move_insn.
19902         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
19903         * loop-doloop.c (add_test): Use rtx_code_label.
19904         (doloop_modify): Likewise.
19905         (doloop_optimize): Likewise.
19906         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
19907         * lra-constraints.c (emit_spill_move): Remove cast of value returned
19908         by gen_move_insn.
19909         (inherit_reload_reg): Add cast when calling dump_insn_slim.
19910         (split_reg): Likewise.
19911         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
19912         gen_move_insn.
19913         * optabs.c (expand_binop_directly): Remove casts of values returned by
19914         maybe_gen_insn.
19915         (expand_unop_direct): Likewise.
19916         (expand_abs): Likewise.
19917         (maybe_emit_unop_insn): Likewise.
19918         (maybe_gen_insn): Promote return type to rtx_insn.
19919         * optabs.h: Update prototype of maybe_gen_insn.
19920         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
19921         redundant cast.
19922         * recog.c (struct peep2_insn_data): Promote type of insn field to
19923         rtx_insn.
19924         (peep2_reinit_state): Use NULL instead of NULL_RTX.
19925         (peep2_attempt): Remove casts of insn in peep2_insn_data.
19926         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
19927         * recog.h (struct insn_gen_fn): Promote return types of function
19928         pointers and operator ().from rtx to rtx_insn.
19929         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
19930         (fill_eager_delay_slots): Likewise.
19931         (relax_delay_slots): Likewise.
19932         (make_return_insns): Likewise.
19933         (dbr_schedule): Likewise.
19934         (optimize_skips): Likewise.
19935         (reorg_redirect_jump): Likewise.
19936         (fill_slots_from_thread): Likewise.
19937         * reorg.h: Update prototypes.
19938         * resource.c (find_dead_or_set_registers): Use dyn_cast to
19939         rtx_jump_insn instead of check.  Use it's jump_target method.
19940         * rtl.h (rtx_jump_insn::jump_label): Define new method.
19941         (rtx_jump_insn::jump_target): Define new method.
19942         (rtx_jump_insn::set_jump_target): Define new method.
19943         * rtlanal.c (tablejump_p): Promote type of one local variable.
19944         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
19945         (sched_analyze_insn): Likewise.
19946         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
19947         (print_insn): Likewise.
19948         * stmt.c (label_rtx): Promote return type to rtx_insn.
19949         (force_label_rtx): Likewise.
19950         (jump_target_rtx): Define new function.
19951         (expand_label): Use it, get rid of one cast.
19952         (expand_naked_return): Promote rtx to rtx_code_label.
19953         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
19954         (expand_case): Use rtx_code_label instread of rtx where feasible.
19955         (expand_sjlj_dispatch_table): Likewise.
19956         (emit_case_nodes): Likewise.
19957         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
19958         * store-motion.c (insert_store): Make use of new return type of
19959         gen_move_insn and remove a cast.
19960         (replace_store_insn): Likewise.
19962 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
19964         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
19965         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
19967 2015-05-20  Jeff Law  <law@redhat.com>
19969         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
19970         dispose of the jump thread path when the jump threading
19971         opportunity is cancelled.
19973 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19975         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
19976         when printing the caret character.
19978 2015-05-20  Marek Polacek  <polacek@redhat.com>
19980         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
19982 2015-05-20  Marek Polacek  <polacek@redhat.com>
19984         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
19985         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
19986         * gimple-fold.c (canonicalize_bool): Likewise.
19987         (same_bool_result_p): Likewise.
19988         * tree-if-conv.c (parse_predicate): Likewise.
19990 2015-05-20  Marek Polacek  <polacek@redhat.com>
19992         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
19993         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
19995 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19997         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
19998         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
19999         values.
20001 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
20003         * config/mips/mips.h (micromips_globals): Declare.
20005 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
20007         * timevar.def (TV_INITIALIZE_RTL): New.
20008         * toplev.c (initialize_rtl): Use an auto_timevar to account this
20009         function's time to TV_INITIALIZE_RTL.
20011 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20013         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20014         gimple_build_nop calls.
20015         (chkp_find_bounds_for_elem): Likewise.
20016         (chkp_get_zero_bounds): Likewise.
20017         (chkp_get_none_bounds): Likewise.
20018         (chkp_get_bounds_by_definition): Likewise.
20019         (chkp_generate_extern_var_bounds): Likewise.
20020         (chkp_get_bounds_for_decl_addr): Likewise.
20021         (chkp_get_bounds_for_string_cst): Likewise.
20023 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
20025         PR tree-optimization/65447
20026         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20027         (dump_use, dump_uses): Support to dump sub use.
20028         (record_use): New parameters to support sub use.  Remove call to
20029         dump_use.
20030         (record_sub_use, record_group_use): New functions.
20031         (compute_max_addr_offset, split_all_small_groups): New functions.
20032         (group_address_uses, rewrite_use_address): New functions.
20033         (strip_offset): New declaration.
20034         (find_interesting_uses_address): Call record_group_use.
20035         (add_candidate): New assertion.
20036         (infinite_cost_p): Move definition forward.
20037         (add_costs): Check INFTY cost and return immediately.
20038         (get_computation_cost_at): Clear setup cost and dependent bitmap
20039         for sub uses.
20040         (determine_use_iv_cost_address): Compute cost for sub uses.
20041         (rewrite_use_address_1): Rename from old rewrite_use_address.
20042         (free_loop_data): Free sub uses.
20043         (tree_ssa_iv_optimize_loop): Call group_address_uses.
20045 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20046             Jim Wilson  <jim.wilson@linaro.org>
20048         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20049         new  fields loadv and storev.
20050         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20051         Initialize loadv and storev.
20052         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20053         (cortexa53_extra_costs): Likewise.
20054         (cortexa57_extra_costs): Likewise.
20055         (xgene1_extra_costs): Likewise.
20056         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20057         rtx_costs.
20059 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20061         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20062          storev.
20063         (cortexa8_extra_costs): Likewise.
20064         (cortexa5_extra_costs): Likewise.
20065         (cortexa7_extra_costs): Likewise.
20066         (cortexa12_extra_costs): Likewise.
20067         (cortexa15_extra_costs): Likewise.
20068         (v7m_extra_costs): Likewise.
20070 2015-05-20  Jeff Law  <law@redhat.com>
20072         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20073         instead of open-coded version.  Also delete the jump thread created
20074         within this function.
20076 2015-05-20  Alan Modra  <amodra@gmail.com>
20078         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20079         stack adjusting insn.  Formatting.
20080         (rs6000_emit_prologue): Track stack adjusting insn, and use of
20081         r12.  If possible, emit first -fsplit-stack arg pointer insn
20082         before stack adjust.  Don't use r12 to save cr if split-stack.
20084 2015-05-20  Alan Modra  <amodra@gmail.com>
20086         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20087         Define.
20088         (rs6000_supports_split_stack): New function.
20089         * gcc/config/rs6000/rs6000.c (machine_function): Add
20090         split_stack_arg_pointer.
20091         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20092         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20093         rather than virtual_incoming_args_rtx.
20094         (rs6000_va_start): Likewise.
20095         (split_stack_arg_pointer_used_p): New function.
20096         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20097         (morestack_ref): New var.
20098         (gen_add3_const, rs6000_expand_split_stack_prologue,
20099         rs6000_internal_arg_pointer, rs6000_live_on_entry,
20100         rs6000_split_stack_space_check): New functions.
20101         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20102         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20103         (UNSPECV_SPLIT_STACK_RETURN): Define.
20104         (split_stack_prologue, load_split_stack_limit,
20105         load_split_stack_limit_di, load_split_stack_limit_si,
20106         split_stack_return, split_stack_space_check): New expands and insns.
20107         * gcc/config/rs6000/rs6000-protos.h
20108         (rs6000_expand_split_stack_prologue): Declare.
20109         (rs6000_split_stack_space_check): Declare.
20111 2015-05-20  Alan Modra  <amodra@gmail.com>
20113         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20114         (direct_return): Test vrsave_size rather than vrsave_mask.
20115         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
20116         (rs6000_emit_epilogue): Likewise.
20118 2015-05-20  Alan Modra  <amodra@gmail.com>
20120         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20121         when not saving registers.
20122         (debug_stack_info): Adjust to omit printing unused offsets,
20123         as before.
20124         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20125         expression.
20127 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20129         PR c++/65835
20130         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20131         value_type to const char *.
20133 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
20135         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20136         to build a biarch toolchain again.
20138 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
20140         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20141         or implicit declarations.
20142         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20143         into it.
20144         (get_odr_type): Check type has linkage before adding bases.
20145         (register_odr_type): Check that type has linkage before adding it.
20146         (type_known_to_have_no_deriavations_p): Rename to ..
20147         (type_known_to_have_no_derivations_p): This one.
20148         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20149         (type_known_to_have_no_derivations_p): This one.
20150         * ipa-polymorphic-call.c
20151         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20152         type has linkage.
20154 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
20156         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20157         (layout_type): Use RECORD_OR_UNION_TYPE_P.
20159 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20161         * config/s390/s390.c (s390_vector_bool_type_p): New function.
20162         (s390_invalid_binary_op): New function.
20163         (TARGET_INVALID_BINARY_OP): Define macro.
20165 2015-05-19  David Sherwood  <david.sherwood@arm.com>
20167         * loop-invariant.c (create_new_invariant): Don't calculate address cost
20168         if mode is not a scalar integer.
20169         (get_inv_cost): Increase computational cost for unused invariants.
20171 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20173         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
20174         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
20175         * config/s390/s390-builtin-types.def: New file.
20176         * config/s390/s390-builtins.def: New file.
20177         * config/s390/s390-builtins.h: New file.
20178         * config/s390/s390-c.c: New file.
20179         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20180         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20181         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20182         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20183         prototypes.
20184         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20185         Include.
20186         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20187         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20188         variable definitions.
20189         (s390_const_operand_ok): New function.
20190         (s390_expand_builtin): Rewrite.
20191         (s390_init_builtins): New function.
20192         (s390_handle_vectorbool_attribute): New function.
20193         (s390_attribute_table): Add s390_vector_bool attribute.
20194         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20195         (s390_branch_condition_mask): Generate masks for new modes.
20196         (s390_expand_vec_compare_cc): New function.
20197         (s390_mangle_type): Add mangling for vector bool types.
20198         (enum s390_builtin): Remove.
20199         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20200         efpc builtins.
20201         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20202         s390_cpu_cpp_builtins.
20203         (REGISTER_TARGET_PRAGMAS): New macro.
20204         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20205         (insn_cmp mode attribute): Add new CC modes.
20206         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20207         (lcbb): New pattern definition.
20208         * config/s390/s390intrin.h: Include vecintrin.h.
20209         * config/s390/t-s390: New file.
20210         * config/s390/vecintrin.h: New file.
20211         * config/s390/vector.md: Include vx-builtins.md.
20212         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20213         support.
20215 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20217         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20218         CCVFHE.
20219         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20220         (s390_select_ccmode): Likewise.
20221         (s390_canonicalize_comparison): Swap operands if necessary.
20222         (s390_expand_vec_compare_scalar): Expand DFmode compare using
20223         single element vector instructions.
20224         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20225         (s390_branch_condition_mask): Generate CC masks for the new modes.
20226         * config/s390/s390.md (v0, vf, vd): New mode attributes.
20227         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20228         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20229         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20230         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20231         (*extend<DSF:mode><BFP:mode>2): New insn definition.
20232         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20233         (extend<DSF:mode><BFP:mode>2): Turn into expander.
20234         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20235         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20236         (sqrt<mode>2): Add vector instruction.
20238 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20240         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20241         constraints.
20242         * config/s390/predicates.md (const0_operand, constm1_operand)
20243         (constable_operand): Accept vector operands.
20244         * config/s390/s390-modes.def: Add supported vector modes.
20245         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20246         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20247         (s390_bytemask_vector_p, s390_expand_vec_strlen)
20248         (s390_expand_vec_compare, s390_expand_vcond)
20249         (s390_expand_vec_init): Add prototypes.
20250         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20251         (s390_vector_mode_supported_p): New function.
20252         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20253         (s390_contiguous_bitmask_vector_p): New function.
20254         (s390_bytemask_vector_p): New function.
20255         (s390_split_ok_p): Vector regs don't work either.
20256         (regclass_map): Add VEC_REGS.
20257         (s390_legitimate_constant_p): Handle vector constants.
20258         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20259         (legitimate_reload_vector_constant_p): New function.
20260         (s390_preferred_reload_class): Handle CONST_VECTOR.
20261         (s390_reload_symref_address):  Likewise.
20262         (s390_secondary_reload): Vector memory instructions only support
20263         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
20264         (s390_emit_ccraw_jump): New function.
20265         (s390_expand_vec_strlen): New function.
20266         (s390_expand_vec_compare): New function.
20267         (s390_expand_vcond): New function.
20268         (s390_expand_vec_init): New function.
20269         (s390_dwarf_frame_reg_mode): New function.
20270         (print_operand): Handle addresses with 'O' and 'R' constraints.
20271         (NR_C_MODES, constant_modes): Add vector modes.
20272         (s390_output_pool_entry): Handle vector constants.
20273         (s390_hard_regno_mode_ok): Handle vector registers.
20274         (s390_class_max_nregs): Likewise.
20275         (s390_cannot_change_mode_class): New function.
20276         (s390_invalid_arg_for_unprototyped_fn): New function.
20277         (s390_function_arg_vector): New function.
20278         (s390_function_arg_float): Remove size variable.
20279         (s390_pass_by_reference): Handle vector arguments.
20280         (s390_function_arg_advance): Likewise.
20281         (s390_function_arg): Likewise.
20282         (s390_return_in_memory): Vector values are returned in a VR if
20283         possible.
20284         (s390_function_and_libcall_value): Handle vector arguments.
20285         (s390_gimplify_va_arg): Likewise.
20286         (s390_call_saved_register_used): Consider the arguments named.
20287         (s390_conditional_register_usage): Disable v16-v31 for non-vec
20288         targets.
20289         (s390_preferred_simd_mode): New function.
20290         (s390_support_vector_misalignment): New function.
20291         (s390_vector_alignment): New function.
20292         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20293         (TARGET_VECTOR_MODE_SUPPORTED_P)
20294         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20295         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20296         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20297         (TARGET_VECTOR_ALIGNMENT): Define target macro.
20298         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20299         (FIRST_PSEUDO_REGISTER): Increase value.
20300         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20301         (VECTOR_REG_P): Define macros.
20302         (FIXED_REGISTERS, CALL_USED_REGISTERS)
20303         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20304         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20305         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20306         Add vector registers.
20307         (CANNOT_CHANGE_MODE_CLASS): Call C function.
20308         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20309         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20310         memory.
20311         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20312         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20313         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20314         (VR*_REGNUM): New constants.
20315         (ALL): New mode iterator.
20316         (INTALL): Remove mode iterator.
20317         Include vector.md.
20318         (movti): Implement TImode moves for VRs.
20319         Disable TImode splitter for VR targets.
20320         Implement splitting TImode GPR<->VR moves.
20321         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20322         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20323         reload<mode>_la_in, reload<mode>_la_out.
20324         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20325         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20326         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20327         (mov<mode> SF SD): Prefer lder, lde for loading.
20328         Add lrl and strl instructions.
20329         Add vector instructions.
20330         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20331         Call s390_expand_vec_strlen on z13.
20332         (*cc_to_int): Change predicate to nonimmediate_operand.
20333         (addti3): Rename to *addti3.  New expander.
20334         (subti3): Rename to *subti3.  New expander.
20335         * config/s390/vector.md: New file.
20337 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20339         * common/config/s390/s390-common.c (processor_flags_table): Add
20340         z13.
20341         * config.gcc: Add z13.
20342         * config/s390/s390-opts.h (enum processor_type): Add
20343         PROCESSOR_2964_Z13.
20344         * config/s390/s390.c (s390_adjust_priority): Check for
20345         PROCESSOR_2964_Z13.
20346         (s390_reorg): Likewise.
20347         (s390_sched_reorder): Likewise.
20348         (s390_sched_variable_issue): Likewise.
20349         (s390_loop_unroll_adjust): Likewise.
20350         (s390_option_override): Likewise. Default to -mvx when available.
20351         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20352         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20353         (TARGET_VX_ABI): Define macros.
20354         macros.
20355         (TARGET_DEFAULT): Add MASK_OPT_VX.
20356         * config/s390/s390.md ("cpu" attribute): Add z13.
20357         ("cpu_facility" attribute): Add vec.
20358         * config/s390/s390.opt (processor_type): Add z13.
20359         (mvx): New options.
20360         * doc/invoke.texi: Add z13 option for -march.
20362 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20364         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20365         mode check to make sure that only scalar integer values are
20366         accepted.
20368 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
20370         * tree.c (verify_type_variant): Fix #undef.
20371         (gimple_canonical_types_compatible_p): Move here from lto.c
20372         (verify_type): Verify TYPE_CANONICAL compatibility.
20373         * tree.h (gimple_canonical_types_compatible_p): Declare.
20375 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
20377         PR middle-end/66199
20378         * tree.h (OMP_TEAMS_COMBINED): Define.
20379         * gimplify.c (enum gimplify_omp_var_data): Add
20380         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20381         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20382         (omp_notice_variable): Accept both ORT_TEAMS
20383         and ORT_COMBINED_TEAMS.  Don't recurse if
20384         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20385         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20386         GOVD_FIRSTPRIVATE.
20387         (omp_no_lastprivate): New function.
20388         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20389         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20390         notice_outer and set appropriate bits, otherwise make
20391         sure default(none) combined constructs won't complain.
20392         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20393         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20394         omp_no_lastprivate either remove the clause or turn it
20395         into OMP_CLAUSE_PRIVATE.
20396         (gimplify_omp_for): Fix up handling of implicit
20397         lastprivate or linear iterators.
20398         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20399         ORT_COMBINED_TEAMS.
20400         * omp-low.c (lower_omp_for_lastprivate): For combined
20401         for simd use fd.loop.n2 from the for rather than simd.
20403 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20405         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20406         instead of gen_rtx_raw_REG.
20407         (cris_expand_epilogue): Likewise.
20408         * config/microblaze/microblaze.c (microblaze_classify_address):
20409         Likewise.
20410         * config/sparc/sparc.md: Likewise.
20412 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
20414         * config/alpha/alpha.c (alpha_legitimize_reload_address)
20415         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20416         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20417         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20418         Use CASE_CONST_SCALAR_INT.
20419         (print_operand) <case 'M'>: Use mode_width_operand to check the
20420         value of the constant.
20421         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20422         * config/alpha/predicates.md (input_operand): Use general_operand
20423         instead of match_code as operand check.
20424         (symbolic_operand): Use match_code with subexpression digits.
20425         * config/alpha/constraints.md (Q): Ditto.
20427 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20429         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20431 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20433         * config/s390/s390.c (s390_secondary_reload): Fix check for
20434         load/store relative.
20436 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20438         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
20439         alternative_mask to uint64_t.
20441 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
20443         PR tree-optimization/66187
20444         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
20445         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
20446         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
20448 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
20450         * diagnostic.c (diagnostic_report_current_module): Strengthen
20451         local "new_map" from const line_map * to
20452         const line_map_ordinary *.
20453         * genmatch.c (error_cb): Likewise for local "map".
20454         (output_line_directive): Likewise for local "map".
20455         * input.c (expand_location_1): Likewise for local "map".
20456         Pass NULL rather than &map to
20457         linemap_unwind_to_first_non_reserved_loc, since the value is never
20458         read from there, and the value written back not read from here.
20459         (is_location_from_builtin_token): Strengthen local "map" from
20460         const line_map * to const line_map_ordinary *.
20461         (dump_location_info): Strengthen locals "map" from
20462         line_map *, one to const line_map_ordinary *, the other
20463         to const line_map_macro *.
20464         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
20465         const line_map * to const line_map_macro *.
20466         (maybe_unwind_expanded_macro_loc): Add a call to
20467         linemap_check_macro when writing to the "map" field of the
20468         loc_map_pair.
20469         Introduce local const line_map_ordinary * "ord_map", using it in
20470         place of "map" in the part of the function where we know we have
20471         an ordinary map.  Strengthen local "m" from const line_map * to
20472         const line_map_ordinary *.
20474 2015-05-19  Nick Clifton  <nickc@redhat.com>
20476         PR target/66156
20477         * config/msp430/msp430.md (zero_extendhisi2): Add support for
20478         separate source and destination registers.
20480 2015-05-19  Richard Biener  <rguenther@suse.de>
20482         PR tree-optimization/66165
20483         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
20484         for no load permutation.
20486         PR tree-optimization/66185
20487         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
20488         when building the SLP node from scalars.
20490 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
20491             Tristan Gingold  <gingold@adacore.com>
20493         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
20494         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
20495         (expand_stack_restore): Call record_new_stack_level.
20496         (expand_stack_save): Do not call do_pending_stack_adjust.
20497         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
20498         * calls.c (expand_call): Call record_new_stack_level for alloca.
20499         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
20500         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
20501         (update_sjlj_context): New global function.
20502         * except.h (update_sjlj_context): Declare.
20503         * explow.c (record_new_stack_level): New global function.
20504         (allocate_dynamic_stack_space): Call record_new_stack_level.
20505         * explow.h (record_new_stack_level): Declare.
20506         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
20507         * cfgrtl.c (duplicate_insn_chain): Likewise.
20509 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20511         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
20512         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
20513         STACK_GROWS_DOWNWARD as normal if.
20514         (expand_call): Likewise.
20516 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
20518         PR target/54236
20519         * config/sh/sh.md (*round_int_even): New insn_and_split and
20520         accompanying new unnamed split.
20522 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20524         * bitmap.c (bitmap_set_range): Handle count==1 specially.
20525         (bitmap_clear_range): Likewise.
20526         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
20527         bitmap_set_range unconditionally.
20528         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20529         * df-scan.c (df_mark_reg): Likewise.
20530         * haifa-sched.c (setup_ref_regs): Likewise.
20531         * sched-rgn.c (update_live_1): Likewise.
20533 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20535         * regs.h (END_HARD_REGNO): Delete.
20536         (END_REGNO): Move to...
20537         * rtl.h: ...here.
20538         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
20539         * caller-save.c (mark_set_regs): Likewise.
20540         * combine.c (move_deaths, distribute_notes): Likewise.
20541         * cse.c (invalidate, invalidate_for_call): Likewise.
20542         * df-scan.c (df_ref_record): Likewise.
20543         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
20544         (record_last_reg_set_info): Likewise.
20545         * reg-stack.c (convert_regs_exit): Likewise.
20546         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
20547         * resource.c (update_live_status): Likewise.
20548         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
20550 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20552         * rtl.h (reg_info): Add an nregs field.
20553         (REG_NREGS): Use it.
20554         (SET_REGNO_RAW): Delete.
20555         (set_regno_raw): New function.
20556         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
20557         (END_REGNO): Redefine in terms of REG_NREGS.
20558         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
20559         SET_REGNO_RAW.
20560         * emit-rtl.c (set_mode_and_regno): Likewise.
20561         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
20562         instead of SET_REGNO_RAW.
20564 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20566         * rtl.h (PUT_MODE_RAW): New macro.
20567         (PUT_REG_NOTE_KIND): Use it.
20568         (set_mode_and_regno): Declare.
20569         (gen_raw_REG): Change regno to "unsigned int".
20570         (gen_rtx_REG): Change "unsigned" to "unsigned int".
20571         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
20572         use set_mode_and_regno to change the mode of registers.
20573         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
20574         * emit-rtl.c (set_mode_and_regno): New function.
20575         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
20576         * caller-save.c (reg_save_code): Use set_mode_and_regno.
20577         * expr.c (init_expr_target): Likewise.
20578         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20579         * postreload.c (reload_cse_simplify_operands): Likewise.
20581 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20583         * caller-save.c (init_caller_save): Use word_mode and
20584         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
20585         * expr.c (init_expr_target): Likewise.
20586         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20587         * postreload.c (reload_cse_regs_1): Likewise.
20589 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20591         * rtl.def (REG): Change format to "r".
20592         * rtl.h (rtunion): Remove rt_reg.
20593         (reg_info): New structure.
20594         (rtx_def): Add reg field to main union.
20595         (X0REGATTR): Delete.
20596         (REG_CHECK): New macro.
20597         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
20598         * rtl.c (rtx_format): Document "r".
20599         (rtx_code_size): Handle REG specially.
20600         * gengenrtl.c (special_format): Return true for formats
20601         that include 'r'.
20602         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
20603         Deal with REG_ATTRS after the field loop.
20604         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
20605         * expmed.c (init_expmed): Call gen_raw_REG instead of
20606         gen_rtx_raw_REG.
20607         * expr.c (init_expr_target): Likewise.
20608         * regcprop.c (maybe_mode_change): Likewise.
20609         * varasm.c (make_decl_rtl): Likewise.
20610         * final.c (leaf_renumber_regs_insn): Return early after
20611         handling REGs.
20612         * genemit.c (gen_exp): Handle 'r' fields.
20613         * genpeep.c (match_rtx): Likewise.
20614         * gensupport.c (subst_pattern_match): Likewise.
20615         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
20616         (alter_constraints, subst_dup): Likewise.
20617         * read-rtl.c (read_rtx_code): Likewise.
20618         * print-rtl.c (print_rtx): Likewise.
20619         * genrecog.c (find_operand, find_matching_operand): Likewise.
20620         (validate_pattern, match_pattern_2): Likewise.
20621         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
20622         (rtx_test::regno_field): New function.
20623         (operator ==, safe_to_hoist_p, transition_parameter_type)
20624         (parameter_type_string, print_parameter_value)
20625         (print_nonbool_test, print_test): Handle new enum values.
20626         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
20627         * lra-constraints.c (operands_match_p): Likewise.
20629 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20631         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
20632         Change type of new_regno to unsigned int.
20633         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
20634         new_regno to unsigned int.
20635         (df_ref_change_reg_with_loc): Remove old_regno parameter.
20636         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
20637         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
20638         (SET_REGNO_RAW): Add space after ",".
20640 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20642         * rtl.h (REG_NREGS): New macro
20643         * alias.c (record_set): Use it.
20644         * cfgcleanup.c (mark_effect): Likewise.
20645         * combine.c (likely_spilled_retval_1): Likewise.
20646         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
20647         (move_deaths, distribute_notes): Likewise.
20648         * cselib.c (cselib_record_set): Likewise.
20649         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20650         * df-scan.c (df_mark_reg): Likewise.
20651         * dse.c (look_for_hardregs): Likewise.
20652         * dwarf2out.c (reg_loc_descriptor): Likewise.
20653         (multiple_reg_loc_descriptor): Likewise.
20654         * expr.c (write_complex_part, read_complex_part): Likewise.
20655         (emit_move_complex): Likewise.
20656         * haifa-sched.c (setup_ref_regs): Likewise.
20657         * ira-lives.c (mark_hard_reg_live): Likewise.
20658         * lra.c (lra_set_insn_recog_data): Likewise.
20659         * mode-switching.c (create_pre_exit): Likewise.
20660         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
20661         (reload_combine_recognize_pattern): Likewise.
20662         (reload_combine_note_use, move2add_record_mode): Likewise.
20663         (reload_cse_move2add): Likewise.
20664         * reg-stack.c (subst_stack_regs_pat): Likewise.
20665         * regcprop.c (kill_value, copy_value): Likewise.
20666         (copyprop_hardreg_forward_1): Likewise.
20667         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
20668         (build_def_use): Likewise.
20669         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
20670         (deps_analyze_insn): Likewise.
20671         * sched-rgn.c (check_live_1, update_live_1): Likewise.
20672         * sel-sched.c (count_occurrences_equiv): Likewise.
20673         * valtrack.c (dead_debug_insert_temp): Likewise.
20675 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20677         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
20678         * dse.c (note_add_store): Likewise.
20679         * ira-lives.c (mark_hard_reg_dead): Likewise.
20680         * loop-invariant.c (mark_reg_store): Likewise.
20681         (mark_reg_death): Likewise.
20682         * postreload.c (reload_combine): Likewise.
20683         (reload_combine_note_store): Likewise.
20684         (reload_combine_note_use): Likewise.
20685         * recog.c (peep2_reg_dead_p): Likewise.
20687 2015-05-19  Alan Modra  <amodra@gmail.com>
20689         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
20690         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
20691         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
20692         unused predicates.
20693         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
20694         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
20695         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
20696         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
20698 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
20700         * config/mips/mips.md (JOIN_MODE): New mode iterator.
20701         (join2_load_Store<JOIN_MODE:mode>): New pattern.
20702         (join2_loadhi): Likewise.
20703         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
20704         load-load and store-stores.
20705         * config/mips/mips.opt (mload-store-pairs): New option.
20706         (TARGET_LOAD_STORE_PAIRS): New macro.
20707         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
20708         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
20709         * config/mips/mips.c (mips_load_store_bonding_p): New function.
20711 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
20713         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
20714         explicit swaps.
20715         * dojump.c (do_compare_rtx_and_jump): Likewise.
20716         * expmed.c (emit_store_flag_1): Likewise.
20717         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
20718         * final.c (sprint_ul): Use std::reverse for reversing a string.
20719         * fold-const.c (extract_muldiv_1): Use std::swap.
20720         * genmodes.c (emit_mode_int_n): Likewise.
20721         * ifcvt.c (dead_or_predicable): Likewise.
20722         * ira-build.c (ira_merge_live_ranges): Likewise.
20723         (swap_allocno_copy_ends_if_necessary): Likewise.
20724         * ira.c (ira_setup_alts): Likewise.
20725         * loop-iv.c (iv_analyze_expr): Likewise.
20726         (implies_p): Likewise.
20727         (canon_condition): Likewise.
20728         * lra-constraints.c (swap_operands): Likewise.
20729         * lra-lives.c (lra_merge_live_ranges): Likewise.
20730         * omega.c (swap): Remove.
20731         (bswap): Remove.
20732         (omega_unprotect_1): Use std::swap.
20733         (omega_solve_geq): Likewise.
20734         * optabs.c (expand_binop_directly): Likewise.
20735         (expand_binop): Likewise.
20736         (emit_conditional_move): Likewise.
20737         (emit_conditional_add): Likewise.
20738         * postreload.c (reload_cse_simplify_operands): Likewise.
20739         * reg-stack.c (emit_swap_insn): Likewise.
20740         (swap_to_top): Likewise.
20741         (compare_for_stack_reg): Likewise.
20742         (subst_asm_stack_regs): Likewise.
20743         * reload.c (find_reloads): Likewise.
20744         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
20745         * sel-sched.c (invoke_reorder_hooks): Likewise.
20746         (create_block_for_bookkeeping): Likewise.
20747         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
20748         (lambda_matrix_right_hermite): Use std::swap.
20749         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
20750         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20751         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
20752         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
20753         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
20754         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
20755         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20756         * tree-vrp.c (compare_ranges): Likewise.
20757         * var-tracking.c (add_with_sets): Likewise.
20758         (vt_find_locations): Likewise.
20760 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
20762         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
20763         pie executables.
20764         (FBSD_ENDFILE_SPEC): Likewise.
20765         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
20766         config/freebsd-spec.h.
20767         (ENDFILE_SPEC): Likewise.
20769 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
20770             Richard Henderson  <rth@redhat.com>
20772         PR target/57032
20773         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
20774         Check for a memory location that is not a reference (using an AND)
20775         to an unaligned location here.
20776         * config/alpha/predicates.md (normal_memory_operand): Remove.
20778 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
20780         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
20781         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
20783 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20785         * config/mips/mips.c (micromips_globals): New variable.
20786         (mips_set_compression_mode): Save and reinitialize target-dependent
20787         state for microMIPS.
20789 2015-05-18  Martin Liska  <mliska@suse.cz>
20791         * dbgcnt.def: Add new counter.
20792         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
20794 2015-05-18  Martin Liska  <mliska@suse.cz>
20796         * dbgcnt.def: Sort counters.
20797         * opts.c (common_handle_option): Do not compile if
20798         -fdbg-cnt-list is enabled.
20800 2015-05-18  Tom de Vries  <tom@codesourcery.com>
20802         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
20803         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
20804         address operator to va_list operand.
20805         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
20806         unconditionally.
20807         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
20808         operand.
20809         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
20810         * config/s390/s390.c (s390_gimplify_va_arg): Same.
20811         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
20813 2015-05-18  Tom de Vries  <tom@codesourcery.com>
20815         * tree-ssa-tail-merge.c: Fix whitespace.
20817 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
20819         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
20820         cortex-a17, and cortex-a17.cortex-a7.
20822 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
20824         PR target/54236
20825         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
20827 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
20829         PR target/66174
20830         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
20831         QImode inner modes for TARGET_AVX512BW.  Force mask operand
20832         to a register for AVX512F modes.
20834 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
20836         * toplev.c (emit_debug_global_declarations): Do not output debug info
20837         when doing slim LTO objects.
20839 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
20841         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
20842         odr_types_equivalent_p): Declare.
20843         (odr_type_p): Use gcc_checking_assert.
20844         (type_in_anonymous_namespace_p) Declare.
20845         (type_with_linkage_p): Declare.
20846         * common.opt (Wlto-type-mismatch): New warning.
20847         * ipa-devirt.c (compound_type_base): New function.
20848         (odr_or_derived_type_p): New function.
20849         (odr_types_equivalent_p): New function.
20850         (add_type_duplicate): Simplify.
20851         (type_with_linkage_p): Add hack to prevent false positives on C types
20852         (type_in_anonymous_namespace_p): Likewise.
20853         * tree.c (need_assembler_name_p): Use type_with_linkage.
20854         * tree.h (type_in_anonymous_namespace_p): Remove.
20855         * doc/invoke.texi (-Wlto-type-mismatch): Document
20857 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
20859         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
20860         (verify_type): Verify STRING_FLAG.
20862 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20864         PR fortran/44054
20865         * tree-pretty-print.c (percent_K_format): Replace locus pointer
20866         with accessor function.
20867         * tree-diagnostic.c (diagnostic_report_current_function): Use
20868         diagnostic_location function.
20869         (maybe_unwind_expanded_macro_loc): Likewise.
20870         (virt_loc_aware_diagnostic_finalizer): Likewise.
20871         (default_tree_printer): Replace locus pointer with accessor function.
20872         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
20873         (diagnostic_set_info_translated): Initialize second location.
20874         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
20875         (diagnostic_show_locus): Handle two locations. Call
20876         diagnostic_print_caret_line.
20877         (diagnostic_print_caret_line): New.
20878         (default_diagnostic_starter): Use diagnostic_location function.
20879         (diagnostic_report_diagnostic): Use diagnostic_location function.
20880         (verbatim): Do not set text.locus.
20881         * diagnostic.h (struct diagnostic_info): Remove location field.
20882         (struct diagnostic_context): Make caret_chars an array of two.
20883         (diagnostic_location): New inline.
20884         (diagnostic_expand_location): Handle two locations.
20885         (diagnostic_same_line): New inline.
20886         (diagnostic_print_caret_line): Declare.
20887         (CARET_LINE_MARGIN): New constant.
20888         * pretty-print.c (pp_printf): Do not set text.locus.
20889         (pp_verbatim): Do not set text.locus.
20890         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
20891         (struct text_info): Replace locus pointer with locations
20892         array. Add accessor functions.
20894 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
20895             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20897         PR target/65768
20898         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
20899         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
20900          large constants in register instead of splitting them.
20902 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
20904         PR target/66140
20905         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
20906         replacements in memory addresses.
20907         (get_unaligned_address): Ditto.
20909 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
20911         * config/ft32/*: New files for FT32 port.
20912         * doc/install.texi: Add FT32 information.
20913         * doc/invoke.texi: Add FT32 information.
20914         * doc/md.texi: Add FT32 information.
20915         * doc/contrib.texi: Self added.
20917 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
20919         PR tree-optimization/64454
20920         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
20921         (-1 - A -> ~A): Remove unnecessary condition.
20923 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
20925         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
20926         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
20927         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
20929 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
20931         * ipa-chkp.h (chkp_wrap_function): New.
20932         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
20933         (chkp_wrap_function_name): New.
20934         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
20935         to get wrapper name.
20936         * lto-cgraph.c: Include ipa-chkp.h.
20937         (input_cgraph_1): Avoid alias chain for wrappers.
20939 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
20941         PR middle-end/66134
20942         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
20943         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
20945 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20947         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
20948         (AARCH64_FL_SLOWMUL): Delete.
20949         (AARCH64_FL_CRC): Redefine to 1<<3.
20950         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
20952 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20954         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
20955         casting.
20957 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
20959         * config/alpha/alpha.md (extendqidi2): Use general_operand
20960         instead of some_operand for operand[1] predicate.
20961         (extendhidi2): Ditto.
20962         (cbranchdi4): Use general_operand instead of some_operand
20963         for operand[1] and operands[2] predicates.
20964         (cstoredi4): Ditto.
20965         * config/alpha/predicates.md (some_operand): Remove unused predicate.
20966         (some_ni_operand): Ditto.
20968 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
20970         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
20971         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
20972         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
20973         low part of the constant using alpha_emit_set_const_1.
20974         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
20976 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
20978         * varasm.c (output_constant_pool_1): Pass down alignment from
20979         constant pool entry's descriptor to output_constant_pool_2.
20980         (output_object_block): Add comment prior to call to
20981         output_constant_pool_1.
20983 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
20985         PR rtl-optimization/65862
20986         * target.def (ira_change_pseudo_allocno_class): New hook.
20987         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
20988         value of the hook.
20989         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
20990         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
20991         hook.
20992         * ira-costs.c (find_costs_and_classes): Call the hook and change
20993         classes when it is necessary.
20994         * doc/tm.texi: Update.
20996 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
20998         * config/i386/i386.md (sibcall_memory): Check that register with
20999         callee address is not also used as one of the arguments, instead
21000         of checking that it is not live after the sibcall.
21001         (sibcall_pop_memory): Ditto.
21002         (sibcall_value_memory): Ditto.
21003         (sibcall_value_pop_memory): Ditto.
21005 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
21007         * generic-match-head.c (types_match): Handle non-types.
21008         * gimple-match-head.c (types_match): Likewise.
21009         * match.pd: Remove unnecessary TREE_TYPE for types_match.
21011 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
21013         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21014         (csneg3<mode>_insn): Enable expansion of pattern.
21016 2015-05-14  Nick Clifton  <nickc@redhat.com>
21018         * config/rl78/rl78.c (rl78_select_section): Select the correct
21019         default section based upon the category of the decl.
21021 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21023         PR rtl-optimization/30967
21024         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21025         destination mode for the cost of scc patterns.
21027 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21029         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21030         using SWIM248 mode iterator.
21031         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21032         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
21033         for operand[2] constraint.
21034         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21036 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21038         PR middle-end/66133
21039         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21040         make sure it is never noreturn, even when the task body does not
21041         return.
21042         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21043         right before GIMPLE_OMP_RETURN.
21044         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21045         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
21046         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21048 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21050         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21051         * tree-ssa-math-opts.c: Include params.h
21052         (pow_synth_sqrt_info): New struct.
21053         (representable_as_half_series_p): New function.
21054         (get_fn_chain): Likewise.
21055         (print_nested_fn): Likewise.
21056         (dump_fractional_sqrt_sequence): Likewise.
21057         (dump_integer_part): Likewise.
21058         (expand_pow_as_sqrts): Likewise.
21059         (gimple_expand_builtin_pow): Use above to attempt to expand
21060         pow as series of square roots.  Removed now unused variables.
21062 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21064         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21065         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21066         Remove *p0 and *p1 arguments.  Rewrite function.
21067         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21068         (alpha_split_const_mov): Update calls to alpha_extract_integer and
21069         alpha_emit_set_long_const.
21070         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21071         (alpha_output_mi_thunk_osf): Ditto.
21072         * config/alpha/alpha.md (movti): Do not check operands[1]
21073         for CONST_DOUBLE.
21075 2015-05-13  Richard Biener  <rguenther@suse.de>
21077         PR tree-optimization/66129
21078         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21079         commutative.
21080         (vect_schedule_slp_instance): Fix typo.
21082 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
21084         * common.opt (fdump-internal-locations): New option.
21085         * input.c: Include diagnostic-core.h.
21086         (get_end_location): New function.
21087         (write_digit): New function.
21088         (write_digit_row): New function.
21089         (dump_location_range): New function.
21090         (dump_labelled_location_range): New function.
21091         (dump_location_info): New function.
21092         * input.h (dump_location_info): New prototype.
21093         * toplev.c (compile_file): Handle flag_dump_locations.
21095 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
21097         * gimple-expr.h (is_gimple_constant): Reorder.
21098         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21100 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21102         * combine.c (simplify_set): When generating a CC set, if the
21103         source already is in the correct mode, do not wrap it in a
21104         compare.  Simplify the rest of that code.
21106 2015-05-13  Richard Biener  <rguenther@suse.de>
21108         PR tree-optimization/66123
21109         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21110         a taken edge.
21112 2015-05-13  Richard Biener  <rguenther@suse.de>
21114         PR middle-end/66110
21115         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21116         specially.
21117         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21119 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
21121         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21122         * aclocal.m4: Regenerated with automake-1.11.6.
21124 2015-05-13  Tom de Vries  <tom@codesourcery.com>
21126         PR tree-optimization/66010
21127         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21128         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21129         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
21130         and rval based on do_deref.
21132 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21134         PR target/65103
21135         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21136         link time constants into adress expressions and therefore set
21137         their cost to 0.
21139 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21141         PR target/66112
21142         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21143         Use SWI248 iterator instead of SWI.
21144         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
21145         Use eq_attr "alternative" "0" instead of match_test in
21146         length_immediate attribute computation.
21147         (*mulvhi4, *mulvhi4_1): New define_insns.
21149         PR target/66112
21150         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21151         SIGNED to get precision of non-negative value.
21153 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21155         PR target/66048
21156         * function.c (diddle_return_value_1): Process bounds first.
21157         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21158         register.
21160 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21162         PR rtl-optimization/64616
21163         * loop-invariant.c (can_move_invariant_reg): New.
21164         (move_invariant_reg): Call above new function to decide whether
21165         instruction can just be moved, skipping creation of temporary
21166         register.
21168 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21170         PR target/pr66047.c
21171         * i386.c (ix86_function_sseregparm): Only return -1 if local function
21172         with implied regparm is called from -mno-sse function.
21173         (init_cumulative_args): Output error if ix86_function_sseregparm
21174         return -1 and SSE register would be needed.
21175         (function_arg_advance_32): Likewise.
21176         (function_arg_32): Likewise.
21177         * i386.h (ix86_args): Add decl field.
21179 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21181         PR ipa/65873
21182         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21183         inlines across optimization boundary.
21185 2015-05-12  Jason Merrill  <jason@redhat.com>
21187         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21188         string literal and macro name.
21190 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
21192         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21193         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21194         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21196 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21198         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21199         (-Wmisleading-indentation): New option.
21200         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21202 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
21204         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21205         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21206         (alpha_extract_integer): Ditto.
21207         (alpha_legitimate_constant_p): Ditto.
21208         (alpha_split_tmode_pair): Ditto.
21209         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21210         (alpha_expand_mov): Ditto.
21211         (print_operand): Remove handling of 'H' modifier.
21212         <case 'm'>: Remove CONST_DOUBLE handling.
21213         (summarize_insn): Handle CONST_WIDE_INT.
21214         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21215         (anddi3): Ditto.
21216         (movti): Handle CONST_WIDE_INT.
21217         * config/alpha/constraints.md ('H'): Remove constraint definition.
21218         ('G'): Do not match MODE_FLOAT class.
21219         * config/alpha/predicates.md (const0_operand): Also match
21220         const_wide_int.
21221         (non_add_const_operand): Ditto.
21222         (non_zero_const_operand): Ditto.
21223         (some_operand): Ditto.
21224         (input_operand): Ditto.  Handle CONST_WIDE_INT.
21225         (and_operand): Do not match const_double.
21226         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21228 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
21230         PR target/65697
21231         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21232         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21233         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21234         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21235         is_mm_seq_cst, is_mm_sync): New accessor functions.
21236         * builtins.c (expand_builtin_sync_operation,
21237         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21238         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21239         (get_memmodel,  expand_builtin_atomic_compare_exchange,
21240         expand_builtin_atomic_load, expand_builtin_atomic_store,
21241         expand_builtin_atomic_clear): Use new accessor routines.
21242         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21243         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21244         (maybe_emit_sync_lock_test_and_set): Use new accessors and
21245         MEMMODEL_SYNC_ACQUIRE.
21246         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21247         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21248         expand_atomic_store): Use new accessors.
21249         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21250         * tsan.c (instrument_builtin_call): Update check for memory model beyond
21251         final enum to use MEMMODEL_LAST.
21252         * c-family/c-common.c: Use new accessor for memmodel_base.
21253         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21254         accessors.
21255         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21256         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21257         mem_thread_fence, *dmb): Likewise.
21258         * config/alpha/alpha.c (alpha_split_compare_and_swap,
21259         alpha_split_compare_and_swap_12): Likewise.
21260         * config/arm/arm.c (arm_expand_compare_and_swap,
21261         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21262         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21263         atomic_loaddi): Likewise.
21264         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21265         Likewise.
21266         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21267         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21268         use new accessors.
21269         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21270         atomic_store<mode>, atomic_compare_and_swap<mode>,
21271         atomic_exchange<mode>): Use new accessors.
21272         * config/mips/mips.c (mips_process_sync_loop): Likewise.
21273         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21274         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21275         rs6000_post_atomic_barrier): Add new cases.
21276         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21277         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21278         (atomic_load<mode>): Add new cases and use new accessors.
21279         (store_quadpti): Add new cases.
21280         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21281         accessors.
21282         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21283         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21284         model, not 8.
21286 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21288         * ipa-devirt.c (type_with_linkage_p): New function.
21289         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21290         type has linkage.
21291         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21292         (can_be_name_hashed_p): Simplify.
21293         (hash_odr_name): Check that type has linkage before checking if it is
21294         anonymous.
21295         (types_same_for_odr): Likewise.
21296         (odr_name_hasher::equal): Likewise.
21297         (odr_subtypes_equivalent_p): Likewise.
21298         (warn_types_mismatch): Likewise.
21299         (get_odr_type): Likewise.
21300         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21301         * ipa-utils.h (odr_type_p): Move offline.
21302         * tree.c (need_assembler_name_p): Fix handling of types
21303         without linkages.
21304         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21306 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21308         * timevar.c (timevar_enable): Delete in favor of...
21309         (g_timer): New global.
21310         (struct timevar_def): Move to timevar.h inside class timer.
21311         (struct timevar_stack_def): Likewise.
21312         (timevars): Delete global in favor of field "m_timevars" within
21313         class timer in timevar.h
21314         (stack): Likewise, in favor of field "m_stack".
21315         (unused_stack_instances): Likewise, in favor of field
21316         "m_unused_stack_instances".
21317         (start_time): Likewise, in favor of field "m_start_time".
21318         (get_time): Eliminate check for timevar_enable.
21319         (timer::timer): New function, built from part of timevar_init.
21320         (timevar_init): Rewrite idempotency test from using
21321         "timevar_enable" bool to using dynamic allocation of "g_timer".
21322         Move rest of implementation into timer's constructor.
21323         (timevar_push_1): Rename to...
21324         (timer::push): ...this, adding "m_" prefixes to variables that
21325         are now fields of timer.
21326         (timevar_pop_1): Likewise, rename to...
21327         (timer::pop): ...this, and add "m_" prefixes.
21328         (timevar_start): Replace test for "timevar_enable" with one for
21329         "g_timer", and move bulk of implementation to...
21330         (timer::start): ...here, adding "m_" prefixes.
21331         (timevar_stop): Likewise, from here...
21332         (timer::stop): ...to here.
21333         (timevar_cond_start): Likewise, from here...
21334         (timer::cond_start): ...to here.
21335         (timevar_cond_stop): Likewise, from here...
21336         (timer::cond_stop): ...to here.
21337         (validate_phases): Rename to...
21338         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
21339         locals "total" and "tv" const.
21340         (timevar_print): Rename to...
21341         (timer::print): ...this, and add "m_" prefixes.  Make locals
21342         "total" and "tv" const.  Eliminate test for timevar_enable.
21343         * timevar.h (timevar_enable): Eliminate.
21344         (g_timer): New declaration.
21345         (timevar_push_1): Eliminate.
21346         (timevar_pop_1): Eliminate.
21347         (timevar_print): Eliminate.
21348         (class timer): New class.
21349         (timevar_push): Rewrite to use g_timer.
21350         (timevar_pop): Likewise.
21351         * toplev.c (toplev::~toplev): Likewise.
21353 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
21355         * arm-protos.h (arm_sched_autopref): Delete.
21356         (tune_params): Re-organize, use enums for flag values.
21357         (FUSE_OPS): New macro.
21358         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21359         (ARM_PREFETCH_BENEFICIAL): Likewise.
21360         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21361         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21362         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21363         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21364         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21365         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
21366         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21367         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21368         format.
21369         (arm_option_override, thumb2_reorg, arm_print_tune_info)
21370         (aarch_macro_fusion_pair_p): Update uses of current_tune.
21371         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21373 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
21375         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21376         "break".
21378 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
21379             Sandra Loosemore <sandra@codesourcery.com>
21381         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21382         value.
21383         (REG_CLASS_NAMES): Add "IJMP_REGS".
21384         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21385         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21386         use new "c" register constraint.
21387         * config/nios2/constraint.md (c): New register constraint
21388         corresponding to IJMP_REGS.
21390 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21392         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21393         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21394         define_splits): Delete, revamp, transmogrify into ...
21395         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21396         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21397         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21398         New.
21400 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21402         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21403         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21405 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21407         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21408         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21409         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21410         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21411         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21412         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21413         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21414         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21415         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21416         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21417         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21418         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21419         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21420         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21421         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21422         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21423         and 30 corresponding splitters): Delete.
21425 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21427         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21428         zero_extract.
21430 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21432         * combine.c (recog_for_combine_1): New function, factored out
21433         from recog_for_combine.
21434         (change_zero_ext): New function.
21435         (recog_for_combine): If recog fails, try again with the pattern
21436         modified by change_zero_ext; if that still fails, restore the
21437         pattern.
21439 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21441         * combine.c (get_undo_marker): New function.
21442         (undo_to_marker): New function, largely factored out from ...
21443         (undo_all): ... this.  Adjust.
21445 2015-05-12  Richard Biener  <rguenther@suse.de>
21447         PR tree-optimization/66101
21448         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
21449         fixup if we turn a loop exit edge to a fallthru edge.
21451 2015-05-12  Richard Biener  <rguenther@suse.de>
21453         PR tree-optimization/37021
21454         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
21455         (SLP_TREE_TWO_OPERATORS): New define.
21456         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
21457         SLP_TREE_TWO_OPERATORS.
21458         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
21459         SLP node.
21460         (vect_build_slp_tree): Adjust.
21461         (vect_analyze_slp_cost_1): Likewise.
21462         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
21463         emitting two vector stmts and mixing the results.
21465 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21467         * call.c (print_z_candidates): Remove dead code.
21469 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21471         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
21472         and zEC12_simple_fp.
21473         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
21474         to 1.
21476 2015-05-12  Tom de Vries  <tom@codesourcery.com>
21478         PR tree-optimization/66010
21479         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
21480         ifn_va_arg.
21481         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
21482         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
21483         va_lists are passed, and remove corresponding handling.
21484         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
21485         do_deref argument to ifn_va_arg.
21486         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
21487         ifn_va_arg.
21489 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21491         PR target/65955
21492         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
21493         REG before taking its REGNO.
21495 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21497         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
21498         rsp->sign_bit_copies and rsp->nonzero_bits into ...
21499         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
21500         present to get more accurate information about the number of sign bit
21501         copies and non zero bits.
21503 2015-05-12  Richard Biener  <rguenther@suse.de>
21505         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
21506         do not allow unrolling.
21508 2015-05-11  Richard Henderson  <rth@redhat.com>
21510         * config/i386/i386-modes.def (CCP): New.
21511         * config/i386/i386.c (put_condition_code): Handle it.
21512         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
21514 2015-05-11  Richard Henderson  <rth@redhat.com>
21516         * target.def (md_asm_clobbers): Replace with...
21517         (md_asm_adjust): this.
21518         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
21519         (TARGET_MD_ASM_ADJUST): New.
21520         * tm.texi: Rebuild.
21521         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
21522         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
21523         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
21525         * cfgexpand.c (check_operand_nalternatives): Accept vector of
21526         constraints instead of lists of outputs and inputs.
21527         (expand_asm_stmt): Save and restore input_location around the
21528         body of the function.  Move asm data into vectors instead of
21529         building tree lists.  Generate cleanup sequences as needed,
21530         rather than waiting til the end.  Use new md_asm_adjust hook.
21532         * config/vxworks.c: Include vec.h before target.h.
21533         * gimple.c: Likewise.
21534         * incpath.c: Likewise.
21535         * mode-switching.c: Likewise.
21537         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
21538         (cris_md_asm_adjust): this.
21539         (TARGET_MD_ASM_CLOBBERS): Remove.
21540         (TARGET_MD_ASM_ADJUST): New.
21541         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
21542         (ix86_md_asm_adjust): this.
21543         (TARGET_MD_ASM_CLOBBERS): Remove.
21544         (TARGET_MD_ASM_ADJUST): New.
21545         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
21546         (mn10300_md_asm_adjust): this.
21547         (TARGET_MD_ASM_CLOBBERS): Remove.
21548         (TARGET_MD_ASM_ADJUST): New.
21549         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
21550         (rs6000_md_asm_adjust): this.
21551         (TARGET_MD_ASM_CLOBBERS): Remove.
21552         (TARGET_MD_ASM_ADJUST): New.
21553         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
21554         (visium_md_asm_adjust): this.
21555         (TARGET_MD_ASM_CLOBBERS): Remove.
21556         (TARGET_MD_ASM_ADJUST): New.
21558 2015-05-11  Richard Henderson  <rth@redhat.com>
21560         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
21561         if noutputs is zero.
21562         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
21564         * cfgexpand.c (expand_asm_operands): Merge into...
21565         (expand_asm_stmt): ... here.
21567         * cfgexpand.c (expand_asm_operands): Don't call
21568         resolve_asm_operand_names.
21569         * stmt.c (resolve_asm_operand_names): Clarify block comment.
21571 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
21573         * dwarf2out.c (gen_member_die): Sanity check that we access
21574         TYPE_MAIN_VARIANT for TYPE_METHODS.
21575         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
21576         checking TYPE_METHODS.
21577         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
21578         if non-null.
21579         (build_distinct_type_copy): Clear TYPE_METHODS.
21580         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
21581         (verify_type): Allow TYPE_METHODS to be error_mark_node.
21582         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
21584 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
21586         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
21587         (emit_pattern_before_setloc): Likewise.
21589 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
21591         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
21592         for define_peephole2s.
21593         (get_peephole2_pattern): New function.
21594         (main): Use it.  Call validate_pattern.
21596 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
21598         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
21599         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
21600         (Last callee saved reg is different for AVR_TINY architecture)
21602 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
21604         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
21605         when looking for memory references.
21607 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
21609         PR target/65753
21610         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
21611         via function pointers.
21613 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
21615         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
21616         indirect call by forcing address into a pseudo with -fno-plt.
21617         * common.opt (flag_plt): New option.
21618         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
21619         ([-fno-plt]): Document.
21621 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
21623         PR bootstrap/66105
21624         * config/rs6000/option-defaults.h: Add space between string literal
21625         and macro name.
21627 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21629         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
21630         accross ARM targets.
21632 2015-05-11  Christian Bruel  <christian.bruel@st.com>
21634         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
21635         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
21637 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
21639         PR rtl-optimization/66076
21640         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
21641         Don't grow the heap array if it is already big enough from a
21642         previous iteration.
21644 2015-05-11  Christian Bruel  <christian.bruel@st.com>
21646         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
21647         (is_called_in_ARM_mode): Remove.
21648         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
21649         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
21650         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
21651          arm_declare_function_name.
21653 2015-05-11  Christian Bruel  <christian.bruel@st.com>
21655         * config/arm/arm.c (arm_option_override): Reoganized and split into :
21656         (arm_option_params_internal); New function.
21657         (arm_option_check_internal): New function.
21658         (arm_option_override_internal): New function.
21659         (thumb_code, thumb1_code): Remove.
21660         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
21661         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
21662         (thumb_code, thumb1_code): Remove.
21663         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
21665 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
21667         * config/alpha/alpha.c (alpha_emit_set_const_1)
21668         (alpha_emit_set_long_const, alpha_extract_integer)
21669         (alpha_legitimate_constant_p, alpha_split_const_mov)
21670         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
21671         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21672         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
21673         HOST_WIDE_INT_1U.
21674         * config/alpha/predicates.md (mode_mask_operand): Do not match
21675         const_double RTX.
21676         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21677         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
21678         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
21679         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21680         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
21682 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
21684         PR target/65780
21685         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
21686         default_binds_local_p_2.
21687         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
21688         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
21690 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21692         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
21694 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21696         Patch by Richard Biener
21697         * coverage.c (coverage_obj_init): Delay building of type variant
21698         until the type is finished.
21700 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21702         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
21703         mismatch between C and C++ type; compoare correctly ARG_TYPES
21704         for non-prototypes and output correctly parameter index for METHOD_TYPE.
21705         (odr_types_equivalent_p): Fix wording of warning about attributes;
21706         it is OK to match prototype and non-prototype.
21708 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21710         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
21711         TYPE_ARG_TYPES list.
21712         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
21713         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
21715 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
21717         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
21718         * tree.h (is_lang_specific): Constify.
21720 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
21722         PR tree-optimization/64454
21723         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
21724         Rewrite.
21726 2015-05-08  Jason Merrill  <jason@redhat.com>
21728         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
21729         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
21730         config/darwin.h, config/darwin9.h, config/elfos.h,
21731         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
21732         config/microblaze/microblaze.h, config/mips/mips.h,
21733         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
21734         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
21735         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
21736         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
21737         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
21738         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
21739         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
21740         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
21741         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
21742         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
21743         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
21744         between string literal and macro name.
21746 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21748         * jump.c: Change argument types to rtx_insn *.
21749         * rtl.h: Adjust.
21751 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21753         * lra-constraints.c: Change argument type to rtx_insn *.
21755 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21757         * df-problems.c: Change argument type to rtx_insn *.
21759 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21761         * combine.c: Change argument type to rtx_insn *.
21763 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21765         * rtl.h: Adjust.
21766         * rtlanal.c: Change argument type to rtx_insn *.
21768 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21770         * sched-deps.c: Change argument types to rtx_insn *.
21771         * sched-int.h: Adjust.
21773 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21775         * dwarf2cfi.c: Change argument type to rtx_insn *.
21777 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21779         * ira.c (decrease_live_ranges_number): Changetype of local
21780         variable to rtx_insn *.
21781         * recog.c: Change argument types to rtx_insn *.
21782         * recog.h: Adjust.
21784 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21786         * reorg.c: Change argument types to rtx_insn *.
21788 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21790         * ira-color.c: Change argument types to rtx_insn *.
21791         * lra-eliminations.c: Likewise.
21792         * ira.h: Adjust.
21794 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21796         * gcse.c: Change argument types to rtx_insn *.
21798 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21800         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
21802 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21804         * emit-rtl.c (emit_debug_insn_before): Change argument type to
21805         rtx_insn *.
21806         * rtl.h: Adjust.
21808 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21810         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
21811         * rtl.h: Adjust.
21813 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21815         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
21816         * rtl.h: Adjust.
21818 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21820         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
21821         * rtl.h: Adjust.
21823 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21825         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
21826         * rtl.h: Adjust.
21828 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21830         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
21831         to rtx_insn *.
21832         * rtl.h: Adjust.
21834 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21836         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
21837         to rtx_insn *.
21838         * rtl.h: Likewise.
21840 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21842         * except.c (can_nonlocal_goto): Change type of argument to
21843         rtx_insn *.
21844         * rtl.h: Adjust.
21846 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21848         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
21849         * rtl.h: Adjust.
21851 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21853         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
21854         * cfgrtl.c (can_delete_label_p): Adjust.
21855         * rtl.h: likewise.
21857 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21859         * reorg.c (stop_search_p): Change argument to rtx_insn *.
21861 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21863         * except.c (make_reg_eh_region_note): Change argument to
21864         rtx_insn *.
21865         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
21866         * except.h: Adjust.
21868 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21870         * mode-switching.c (commit_mode_sets): Change type of local
21871         variable from rtx to rtx_insn *.
21873 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
21875         * doc/install.texi (--enable-languages): Add missing jit and lto info.
21876         Add ^ to grep command.
21877         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
21878         arg to last gimple_simplify declaration.  Add missing gimple_build
21879         declaration for built-in function case with four tree args.
21881 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
21882             Szabolcs Nagy  <szabolcs.nagy@arm.com>
21884         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
21885         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
21886         (GNU_USER_DYNAMIC_LINKERN32): Update.
21888 2015-05-08  Richard Biener  <rguenther@suse.de>
21890         PR tree-optimization/66036
21891         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21892         Handle strided group loads.
21893         (vect_verify_datarefs_alignment): Likewise.
21894         (vect_enhance_data_refs_alignment): Likewise.
21895         (vect_analyze_group_access): Likewise.
21896         (vect_analyze_data_ref_access): Likewise.
21897         (vect_analyze_data_ref_accesses): Likewise.
21898         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
21899         (vectorizable_load): Likewise.
21901 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
21903         * config/rs6000/rs6000.md: Require operand inequality in one
21904         of the peepholes.
21906 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
21907             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21909         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
21910         from (set ...).
21911         * config/rx/rx.md (movdi, movdf): Likewise.
21912         Likewise for define_peephole2s.
21914 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
21916         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
21917         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
21918         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
21919         vtst_u64): Rewrite using gcc vector extensions.
21921 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
21923         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
21924         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
21926 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
21928         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
21930 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21932         * config/glibc-stdint.h (OPTION_MUSL): Define.
21933         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
21934         Change the definition based on OPTION_MUSL for 64 bit targets.
21935         * config/linux.h (OPTION_MUSL): Redefine.
21936         * config/alpha/linux.h (OPTION_MUSL): Redefine.
21937         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
21938         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
21940 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
21941             Szabolcs Nagy  <szabolcs.nagy@arm.com>
21943         * config.gcc (LIBC_MUSL): New tm_defines macro.
21944         * config/linux.h (OPTION_MUSL): Define.
21945         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
21946         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
21947         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21948         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21949         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21950         * config/linux.opt (mmusl): New option.
21951         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
21952         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21953         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21954         * configure: Regenerate.
21956 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
21957             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21959         PR target/48904
21960         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
21961         * config/i386/knetbsd-gnu64.h: New file.
21963 2015-05-08  Marek Polacek  <polacek@redhat.com>
21965         PR c/64918
21966         * doc/invoke.texi: Document -Woverride-init-side-effects.
21968 2015-05-07  Marek Polacek  <polacek@redhat.com>
21970         PR c/65179
21971         * doc/invoke.texi: Document -Wshift-negative-value.
21973 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
21975         * gcov-tool.c (do_merge): Refactore to remove int ret.
21976         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
21977         !type == FUNC to type != FUNC.
21978         * reload.h (struct target_reload): Changee to type of
21979         x_spill_indirect_levels from bool to unsigned char.
21981 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
21983         * rtl.h (always_void_p): New function.
21984         * gengenrtl.c (always_void_p): Likewise.
21985         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
21986         with code foo are always VOIDmode.
21987         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
21988         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
21989         compare-elim.c, config/aarch64/aarch64.c,
21990         config/aarch64/aarch64.md, config/alpha/alpha.c,
21991         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
21992         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
21993         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
21994         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21995         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
21996         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
21997         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
21998         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
21999         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22000         config/ia64/vect.md, config/iq2000/iq2000.c,
22001         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22002         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22003         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22004         config/mep/mep.c, config/microblaze/microblaze.c,
22005         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22006         config/mn10300/mn10300.c, config/msp430/msp430.c,
22007         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22008         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22009         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22010         config/rs6000/altivec.md, config/rs6000/rs6000.c,
22011         config/rs6000/rs6000.md, config/rs6000/vector.md,
22012         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22013         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22014         config/sh/sh.md, config/sh/sh_treg_combine.cc,
22015         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22016         config/spu/spu.md, config/stormy16/stormy16.c,
22017         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22018         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22019         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22020         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22021         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22022         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22023         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22024         var-tracking.c: Update calls accordingly.
22026 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22028         PR middle-end/192
22029         PR middle-end/54303
22030         * varasm.c (function_mergeable_rodata_prefix): New function.
22031         (mergeable_string_section): Use it.
22032         (mergeable_constant_section): Use it.
22034 2015-05-07  Jeff Law  <law@redhat.com>
22036         PR target/39726
22037         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22038         simplifier to narrow arithmetic.
22039         * generic-match-head.c: (types_match, single_use): New functions.
22040         * gimple-match-head.c: (types_match, single_use): New functions.
22042 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22044         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22045         rtx type.
22047 2015-05-07  Richard Biener  <rguenther@suse.de>
22049         PR tree-optimization/66002
22050         * passes.def: Schedule another pass_merge_phi after ifcombine, right
22051         before phiopt.
22053 2015-05-07  Marek Polacek  <polacek@redhat.com>
22054             Martin Uecker  <uecker@eecs.berkeley.edu>
22056         * doc/invoke.texi: Document -fsanitize=bounds-strict.
22057         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22058         into SANITIZE_NONDEFAULT.
22059         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22061 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
22063         PR target/66015
22064         * config/alpha/alpha.c (alpha_override_options_after_change): New.
22065         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22066         (alpha_override_options): Move align_loops, align_jumps and
22067         align_functions handling into alpha_override_options_after_change.
22069 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
22070             Chris Jones  <chrisj@nvidia.com>
22071             Joshua Conner  <jconner@nvidia.com>
22073         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22074         linking of crtfastmath.o.
22075         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22077 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
22079         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22080         (cstore<mode>4_unsigned_imm): New expander.
22081         (cstore<mode>4): Remove empty constraint strings.  Use the new
22082         expanders.
22084 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
22086         PR target/64208
22087         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22088         alternatives.
22090 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22092         * config/aarch64/geniterators.sh: Use standard BRE in sed.
22094 2015-05-06  Alan Modra  <amodra@gmail.com>
22096         PR target/66033
22097         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22098         (UNSPEC_NOP): Define.
22099         (reload_vsx_from_gpr<mode>): Add missing DONE.
22100         (reload_gpr_from_vsx<mode>): Likewise.
22101         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22102         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22104 2015-05-06  Christian Bruel  <christian.bruel@st.com>
22106         PR target/66015
22107         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22108         align_jumps, align_functions into aarch64_override_options_after_change.
22110 2015-05-06  Richard Biener  <rguenther@suse.de>
22112         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22113         vect_transform_slp_perm_load to check if we support a permutation
22114         for basic-block vectorization.
22116 2015-05-06  Nick Clifton  <nickc@redhat.com>
22118         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22119         used, even if it is not being used as a frame pointer.
22121 2015-05-05  Jason Merrill  <jason@redhat.com>
22123         * dwarf2out.c (gen_member_die): Don't emit anything for an
22124         anonymous class constructor.
22126 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
22128         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22129         that it reflects the block structure.
22130         (afdo_propagate_edge): Likewise.
22131         (afdo_calculate_branch_prob): Likewise.
22132         (afdo_annotate_cfg): Likewise.
22133         * cfgcleanup.c (equal_different_set_p): Likewise.
22134         (try_crossjump_to_edge): Likewise.
22135         * cgraph.c (cgraph_node::verify_node): Likewise.
22136         * cgraphunit.c (expand_all_functions): Likewise.
22137         * config/i386/i386.c (ix86_expand_copysign): Likewise.
22138         (exact_dependency_1): Likewise.
22139         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22140         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22141         * gensupport.c (process_define_subst): Likewise.
22142         * lto-wrapper.c (merge_and_complain): Likewise.
22143         * tree-if-conv.c (if_convertible_bb_p): Likewise.
22144         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22145         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22146         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22147         * tree-vect-loop.c (vectorizable_reduction): Likewise.
22148         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22149         * tree-vect-stmts.c (vectorizable_shift): Likewise.
22150         * tree-vrp.c (vrp_finalize): Likewise.
22151         * tree.c (variably_modified_type_p): Likewise.
22153 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
22155         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22156         on darwin12 and later.
22157         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22158         file to pass -rdynamic on darwin12 and later.
22159         * config/darwin.opt (rdynamic): Add.
22161 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22163         * doc/extend.texi (C Extensions): Update menu for moved Variable
22164         Attributes and Type Attributes sections.
22166 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22168         PR target/65990
22169         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22170         if rep_8byte stringop strategy was specified for 32-bit target.
22172 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
22174         PR target/65915
22175         * config/i386/i386.md (vector convert to float spltiter): Check for
22176         xmm16+, when splitting scalar float conversion.
22177         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22179 2015-05-05  Nick Clifton  <nickc@redhat.com>
22181         * config/msp430/msp430-opts.h (enum msp430_regions): New.
22182         * config/msp430/msp430.c (msp430_override_options): Complain if
22183         -mcode-region or -mdata-region is used on a non MSP430X.
22184         (msp430_section_attr): New function.  Checks lower, upper and
22185         either attributes.
22186         (msp430_attribute_table): Add lower, upper and either.
22187         (gen_prefix): New function.  Generates a prefix for a section
22188         name.
22189         (msp430_select_section): New function - handles the choice of
22190         section for an object.  Takes into account memory region
22191         attributes and options.
22192         (msp430_function_section): Use gen_prefix.
22193         (TARGET_SECTION_TYPE_FLAGS): Define.
22194         (msp430_section_type_flags): New function.
22195         (TARGET_ASM_UNIQUE_SECTION): Define.
22196         (msp430_unique_section): New function.
22197         (msp430_output_aligned_decl_common): New function.
22198         (msp430_do_not_relax_short_jumps): New function.
22199         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22200         Define.
22201         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22202         * config/msp430/msp430-protos.h
22203         (msp430_do_not_relax_short_jumps): New prototype.
22204         (msp430_output_aligned_decl_common): New prototype.
22205         * config/msp430/msp430.md (length): New attribute.
22206         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22207         then use a long code sequence for short jumps.
22208         * config/msp430/msp430.opt (mcode-region): New.
22209         (mdata-region): New.
22210         * doc/invoke.texi: Document new options.
22211         * doc/extend.texi: Document new attributes.
22213 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22215         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22216         (tune_params): Add field branch_costs.
22217         (aarch64_branch_cost): Declare.
22218         * gcc/config/aarch64.c (generic_branch_cost): New.
22219         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22220         (cortexa53_tunings): Likewise.
22221         (cortexa57_tunings): Likewise.
22222         (thunderx_tunings): Likewise.
22223         (xgene1_tunings): Likewise.
22224         (aarch64_branch_cost): Define.
22225         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22227 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22229         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22230         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22231         * config/i386/i386.md: Ditto.
22232         * config/i386/winnt.c: Ditto.
22234 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22236         * doc/extend.texi (__atomic Builtins): Move implementation details
22237         to the end of the description, rewrite opening paragraphs, state
22238         difference with __sync builtins, state C11/C++11 assumptions,
22239         weaken itemized descriptions, add explanation of memory model
22240         behaviour, expand description of compare-exchange, simplify text.
22242 2015-05-05  Renlin Li  <renlin.li@arm.com>
22244         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22246 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
22248         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22249         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22250         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22251         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22252         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22253         * configure: Regenerate.
22254         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22255         * doc/install.texi (aarch64*-*-*): Document new
22256         --enable-fix-cortex-a53-843419 option.
22257         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22258         and -mno-fix-cortex-a53-843419 options.
22260 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22262         PR target/65871
22263         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22265 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
22267         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22268         fix overactive TYPE_MIN_VALUE check and add FIXME for type
22269         compatibility problems.
22271 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
22273         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22274         constraints.
22275         (cbranchsi4_reg): New.
22276         * config/microblaze/microblaze.c
22277         (microblaze_expand_conditional_branch_reg): New.
22278         * config/microblaze/microblaze-protos.h
22279         (microblaze_expand_conditional_branch_reg): New prototype.
22281 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
22283         * config/microblaze/microblaze.md (peephole2): New.
22285 2015-05-04  Jeff Law  <law@redhat.com>
22287         Revert:
22288         2015-05-04  Jeff Law  <law@redhat.com>
22290         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22291         simplifier to narrow arithmetic.
22292         * generic-match-head.c: (types_match, single_use): New functions.
22293         * gimple-match-head.c: (types_match, single_use): New functions.
22295 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
22297         PR target/65987
22298         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22299         (split_branches): Likewise.
22301 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
22303         * common.opt (fdelete-null-pointer-checks): Init to -1.
22304         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22305         override flag_delete_null_pointer_checks default.
22306         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22307         behavior re address zero.  Better document target-specific behavior.
22308         (-fisolate-errneous-paths-dereference): Mention relationship to
22309         -fdelete-null-pointer-checks.
22311 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
22313         PR tree-optimization/65984
22314         * ubsan.c: Include tree-cfg.h.
22315         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22316         stmt_could_throw_p test, rename can_throw variable to ends_bb.
22318 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
22320         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22321         to CONST_DOUBLE_P predicate.
22322         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22323         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22324         allow only operands that satisfy standard_sse_constant_p predicate.
22325         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22326         to CONST_DOUBLE_P predicate.
22328 2015-05-04  Jeff Law  <law@redhat.com>
22330         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22331         simplifier to narrow arithmetic.
22332         * generic-match-head.c: (types_match, single_use): New functions.
22333         * gimple-match-head.c: (types_match, single_use): New functions.
22335 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
22337         * config/arm/arm.c: Restore bootstrap.
22339 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
22341         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22342         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22343         as CONST_WIDE_INT, not CONST_DOUBLE.
22344         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22345         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22346         (ix86_find_base_term): Do not check for CONST_DOUBLE.
22347         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22348         (ix86_build_signbit_mask): Rewrite using wide ints.
22349         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22350         (ix86_rtx_costs): Handle CONST_WIDE_INT.
22351         (find_constant): Ditto.
22352         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22353         using gen_int_mode.
22354         * config/i386/predicates.md (x86_64_immediate_operand)
22355         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22356         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22357         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22358         (const0_operand): Also match const_wide_int.
22359         (constm1_operand): Ditto.
22360         (const1_operand): Ditto.
22362 2015-05-04  Richard Biener  <rguenther@suse.de>
22364         PR tree-optimization/65965
22365         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22366         store groups at gaps.
22368 2015-05-04  Richard Biener  <rguenther@suse.de>
22370         PR tree-optimization/65935
22371         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22372         then make sure to apply that swapping to the IL.
22374 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
22376         * Makefile.in (PATCHLEVEL_c): New variable.
22377         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22378         expand the same way as if DEVPHASE_c was non-empty.
22380 2015-05-04  Kai Tietz  <ktietz@redhat.com>
22382         PR target/65559
22383         * lto-wrapper.c (run_gcc): Open filename
22384         in binary-mode.
22386 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
22388         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
22389         sections up in file, to immediately after the Function Attributes
22390         section.
22392 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
22394         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22396 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22398         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22399         (insert_partition_copy_on_edge): Adjust.
22400         (insert_rtx_to_part_on_edge): Likewise.
22401         (insert_part_to_rtx_on_edge): Likewise.
22403 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22405         * function.c (set_return_jump_label): Change type of argument to
22406         rtx_insn *.
22407         * function.h (set_return_jump_label): Adjust.
22409 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22411         * reload.h (struct reg_equivs_t): Change type of init to
22412         rtx_insn *.
22413         * ira.c (fix_reg_equiv_init): Adjust.
22414         * reload1.c (eliminate_regs_1): Likewise.
22415         (init_eliminable_invariants): Likewise.
22417 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22419         * cselib.c (fp_setter_insn): Take a rtx_insn *.
22420         * cselib.h (fp_setter_insn): Adjust.
22422 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22424         * recog.c (struct validate_replace_src_data): Change type of
22425         insn field to rtx_insn *.
22426         (validate_replace_src_group): Change type of argument to rtx_insn *.
22427         * recog.h (validate_replace_src_group): Adjust.
22429 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22431         * haifa-sched.c: Change the type of some variables to rtx_insn *.
22432         * sched-deps.c: Likewise.
22433         * sched-int.h: Likewise.
22434         * sched-rgn.c: Likewise.
22435         * sel-sched.c: Likewise.
22437 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22439         to rtx_insn *.
22440         * config/i386/i386.c: Change the type of some arguments to
22441         rtx_insn *.
22442         * config/arm/arm.c: Likewise.
22444 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22446         * lra-constraints.c: Change type of some arguments to rtx_insn *.
22448 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22450         * regcprop.c (kill_autoinc_value): Change type of argument to
22451         rtx_insn *.
22453 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22455         * genrecog.c (print_subroutine): Adjust.
22456         * recog.c (get_bool_attr_mask_uncached): Likewise.
22457         * recog.h (struct recog_data_d): Change the type of insn to
22458         rtx_insn *.
22460 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22462         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
22464 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22466         * df-problems.c (df_set_note): Change type of argument to
22467         rtx_insn *.
22469 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22471         * builtins.c (expand_builtin_trap): Change type of local
22472         variable to rtx_insn *.
22473         (add_sched_insns_for_speculation): Likewise.
22474         (ix86_emit_save_regs): Likewise.
22475         (get_scratch_register_on_entry): Likewise.
22476         (ix86_emit_restore_reg_using_pop): Likewise.
22477         (ix86_emit_leave): Likewise.
22478         (ix86_emit_restore_regs_using_mov): Likewise.
22479         (ix86_expand_epilogue): Likewise.
22480         Likewise.
22481         (rl78_alloc_physical_registers_umul): Likewise.
22482         * cselib.c (discard_useless_locs): Likewise.
22483         (cselib_invalidate_regno): Likewise.
22484         (cselib_invalidate_mem): Likewise.
22485         * function.c (expand_function_start): Likewise.
22486         (emit_use_return_register_into_block): Likewise.
22487         * gcse.c: Likewise.
22488         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
22489         * ifcvt.c (noce_get_alt_condition): Likewise.
22490         * loop-doloop.c (doloop_condition_get): Likewise.
22491         * lra-constraints.c (inherit_in_ebb): Likewise.
22492         * modulo-sched.c (sms_schedule_by_order): Likewise.
22493         * recog.c (next_insn_tests_no_inequality): Likewise.
22494         * reorg.c (emit_delay_sequence): Likewise.
22495         (update_reg_dead_notes): Likewise.
22496         (fix_reg_dead_note): Likewise.
22497         (fill_slots_from_thread): Likewise.
22498         (delete_computation): Likewise.
22500 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
22502         * doc/extend.texi (Variable Attributes): Add menu and proper
22503         @nodes to subsections.  Move Microsoft Windows attributes to
22504         their own subsection.
22505         (Type Attributes): Reorganize introduction to remove duplicate
22506         list of attributes.  Add menu and proper @nodes to subsections.
22507         Alphabetize the main table of common attributes.
22509 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
22511         * match.pd: New simplification patterns.
22512         (x + (x & 1))  -> ((x + 1) & ~1)
22513         (x & ~(x & y)) -> ((x & ~y))
22514         (x | ~(x | y)) -> ((x | ~y))
22516 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22518         * target.def (attribute_table): Mention that struct attribute_spec
22519         is defined in tree-core.h rather than tree.h
22520         * doc/tm.texi: Regenerate.
22522 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
22524         * genrecog.c (test): Rename to rtx_test.  Update rest of file
22525         accordingly.
22527 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22529         PR translation/65959
22530         * params.h (DEFPARAM): Rename msgid to nocmsgid.
22532 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
22534         * gcc/config/aarch64/aarch64-protos.h (tune_params):
22535         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
22536         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
22537         Return value depending on target.
22538         (generic_tunings): Initialize new target settings.
22539         (cortexa53_tunings): Likewise.
22540         (cortexa57_tunings): Likewise.
22541         (thunderx_tunings): Likewise.
22542         (xgene1_tunings): Likewise.
22544 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
22546         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
22547         Make Cortex-A53 shift costs more accurate.
22549 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22551         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
22552         UNSIGNED_FLOAT.
22554 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
22556         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
22557         Calculate cost of op0 and op1 in PLUS and MINUS cases.
22559 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22561         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
22562         Add cost of op0 in the compare-with-fpzero case.
22564 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
22566         * builtins.c (fold_builtin_1): Remove spurious second
22567         semicolon.
22568         * cgraph.h (symtab_node::get_availability): Likewise.
22569         * opts.c (common_handle_option): Remove spurious second semicolon.
22570         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22571         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22573 2015-04-30  Caroline Tice  <cmtice@google.com>
22575         PR gcov-profile/65929
22576         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
22577         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
22578         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
22579         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
22580         * doc/tm.texi: Regenerate.
22581         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
22582         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
22583         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
22584         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
22586 2015-04-30  Marek Polacek  <polacek@redhat.com>
22588         * varasm.c (handle_cache_entry): Fix logic.
22590 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22592         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
22593         (*extrsi5_insn_uxtw_alt): Likewise.
22594         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
22595         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
22596         operations.
22598 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22600         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
22601         fabd in ABS case.
22603 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22605         * config/aarch64/aarch64.md
22606         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
22607         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
22608         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
22609         appropriately.  Handle alternative EON form.
22611 2015-04-30  Renlin Li  <renlin.li@arm.com>
22613         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
22614         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
22616 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
22618         PR ipa/65873
22619         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
22620         -fstrict-aliasing boundaries.
22622 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22624         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
22625         and [SU]MNEGL patterns.
22627 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22629         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
22630         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
22631         combined arithmetic-shift ops.  Properly handle all shift and extend
22632         operations that can occur in combination with PLUS/MINUS.
22633         Rename maybe_fma to compound_p.
22634         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
22635         arithmetic and shift operations.
22637 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22639         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
22640         rather than arith_shift cost when costing ADD/MINUS of an
22641         extended value.
22643 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
22645         PR lto/65948
22646         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
22647         to itself.
22649 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
22651         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
22652         are for the same position.
22654 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
22656         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
22657         vectorize_loops.
22658         (vectorize_loops): Use it.
22660 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
22662         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
22663         for aggregate types.
22664         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
22665         type to be non_ODR.
22666         * tree.c (need_assembler_name_p): Compute mangled name for
22667         non-fundamental types and integer types.
22669 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
22671         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
22672         manual swaps.
22673         * expr.c (expand_expr_real_2): Likewise.
22675 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
22677         * tree.c (build_common_builtin_nodes): Do not build
22678         __builtin_alloca_with_align as equivalent of library alloca.
22680 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
22682         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
22683         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
22684         bugus variants.
22685         * tree.c: Include print-tree.h and ipa-utils.h
22686         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
22687         (free_lang_data_in_cgraph): Call verify_type.
22688         (verify_type_variant): New function.
22689         (verify_type): New function.
22690         * tree.h (verify_type): Declare.
22692 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
22694         * config/mips/mips-cpus.def: (mips4): Change default processor
22695         from PROCESSOR_R8000 to PROCESSOR_R10000.
22697 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
22699         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
22700         la/jalr instead of jal.
22702 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
22704         PR target/65871
22705         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
22706         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
22707         (setcc+movzbl peephole2): Check also clobbered reg.
22708         (setcc+andl peephole2): Ditto.
22710 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
22712         PR libgomp/65099
22713         * config/nvptx/mkoffload.c (target_ilp32): New variable.
22714         (main): Set it depending on "-foffload-abi=[...]".
22715         (compile_native, main): Use it to pass "-m32" or "-m64" to the
22716         compiler.
22718 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22720         PR target/65770
22721         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
22722         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
22723         Flip lane index back at assembly time for bigendian.
22725 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
22727         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
22728         * gimplify.c (gimplify_omp_workshare): Use it.
22730 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22732         * Makefile.in (build/genrecog.o): Depend on inchash.h.
22733         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
22734         build/inchash.o
22735         * genrecog.c: Rewrite most of the code except for the third page.
22737 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22739         * inchash.h, inchash.c: Include bconfig.h for build objects.
22740         * Makefile.in (build/inchash.o): New rule.
22742 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
22744         PR target/65924
22745         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
22746         number in type attribute expression.
22748 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
22750         * loop-iv.c (canon_condition): Generalize to all types of integer
22751         constant.
22753 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
22755         * gimple-walk.c: Prune duplicate or unneeded includes.
22756         (walk_gimple_asm): Only call parse_input_constraint or
22757         parse_output_constraint if their findings are used.
22758         Honour parse_input_constraint and parse_output_constraint
22759         result.
22761 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
22763         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
22765 2015-04-29  Tom de Vries  <tom@codesourcery.com>
22767         PR tree-optimization/65893
22768         * passes.def (pass_all_optimizations): Move pass_stdarg to after
22769         pass_dce.
22771 2015-04-29  Richard Biener  <rguenther@suse.de>
22773         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22774         compute GROUP_SIZE for basic-block SLP.
22775         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
22776         take into account gaps.
22777         (vect_get_mask_element): Properly reject references to previous
22778         vectors.
22779         (vect_transform_slp_perm_load): Likewise.
22781 2015-04-29  Christian Bruel  <christian.bruel@st.com>
22783         PR target/64835
22784         * config/i386/i386.c (ix86_default_align): New function.
22785         (ix86_override_options_after_change): Call ix86_default_align.
22786         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
22787         (ix86_override_options_after_change): New function.
22789 2015-04-28  Jeff Law  <law@redhat.com>
22791         * tree-ssa-dom.c (record_equality); Fix comment typos.
22793 2015-04-28  Tom de Vries  <tom@codesourcery.com>
22795         PR tree-optimization/65887
22796         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
22798 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
22800         * doc/extend.texi (Declaring Attributes of Functions): Split into
22801         subsections by target.  Alphabetize the table of common attributes.
22802         Rewrite some of the introductory text to reflect the new structure.
22803         Update some cross-references to point to the new subsections.
22804         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
22805         duplicate copies in the discussion of function, label, and type
22806         attributes.
22808 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
22810         PR bootstrap/65910
22811         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
22813 2015-04-28  Jason Merrill  <jason@redhat.com>
22815         PR c++/65734
22816         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
22817         (finalize_type_size): Respect TYPE_USER_ALIGN.
22818         (layout_type) [ARRAY_TYPE]: Likewise.
22820 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
22822         * config/arm/arm.md (*arm_movt): Fix type attribute.
22823         (*cmpsi_shiftsi): Likewise.
22824         (*cmpsi_shiftsi_swp): Likewise.
22825         (*movsicc_insn): Likewise.
22826         (*cond_move): Likewise.
22827         (*if_plus_move): Likewise.
22828         (*if_move_plus): Likewise.
22829         (*if_arith_move): Likewise.
22830         (*if_move_arith): Likewise.
22831         (*if_shift_move): Likewise.
22832         (*if_move_shift): Likewise.
22833         (*arm_movtas_ze): Likewise.
22834         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
22835         redundancy and type attribute.
22836         (*thumb2_movsi_insn): Fix type attribute.
22837         (*thumb2_addsi_short): Likewise.
22838         (thumb2_addsi3_compare0): Likewise.
22839         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
22840         attributes accordingly.
22842 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
22844         PR other/65911
22845         * function.c (pad_to_arg_alignment): Add parentheses.
22847 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
22849         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
22850         libgcc/config/frv/elf-lib.h.
22852 2015-04-28  Tom de Vries  <tom@codesourcery.com>
22854         * tree-call-cdce.c: Fix example in header comment.
22856 2015-04-28  Richard Biener  <rguenther@suse.de>
22858         PR tree-optimization/62283
22859         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
22860         fails fatally and we are vectorizing a basic-block simply
22861         cause the child to be constructed piecewise.
22862         (vect_analyze_slp_cost_1): Adjust.
22863         (vect_detect_hybrid_slp_stmts): Likewise.
22864         (vect_bb_slp_scalar_cost): Likewise.
22865         (vect_get_constant_vectors): For piecewise constructed
22866         constants place them after the last def.
22867         (vect_get_slp_defs): Adjust.
22868         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
22869         externals for basic-block vectorization.
22871 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22873         PR target/63503
22874         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
22875         aarch64-*-*.
22876         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
22877         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
22878         (AARCH64_TUNE_FMA_STEERING): Likewise.
22879         * config/aarch64/aarch64-cores.def: Set
22880         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
22881         FMUL/FMADD instructions.
22882         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
22883         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
22884         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
22885         * config/aarch64/cortex-a57-fma-steering.h: New file.
22886         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22888 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
22890         * gensupport.c (std_preds): Add missing codes to address_operand entry.
22892 2015-04-28  Richard Biener  <rguenther@suse.de>
22894         PR tree-optimization/65851
22895         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
22896         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
22897         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
22898         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
22899         (ccp_visit_phi_node): Adjust.
22900         (evaluate_stmt): For simplifications to SSA names return its
22901         lattice value if that isn't VARYING.  Return immediately when
22902         simplified to a constant.
22903         (visit_assignment): Adjust.
22904         (ccp_visit_stmt): Likewise.
22906 2015-04-28  Tom de Vries  <tom@codesourcery.com>
22908         PR tree-optimization/65818
22909         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
22910         evaluated.
22912 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22914         * calls.c (save_fixed_argument_area): Don't check
22915         ARGS_GROW_DOWNWARD with the preprocessor.
22916         (restore_fixed_argument_area): Likewise.
22917         (mem_overlaps_already_clobbered_arg_p): Likewise.
22918         (check_sibcall_argument_overlap): Likewise.
22919         (expand_call): Likewise.
22920         (emit_library_call_value_1): Likewise.
22921         (store_one_arg): Likewise.
22922         * function.c (assign_parms): Likewise.
22923         (locate_and_pad_parm): Likewise.
22924         (pad_to_arg_alignment): Likewise.
22925         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22927 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22929         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
22930         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
22931         * calls.c (save_fixed_argument_area): Don't chekc if
22932         ARGS_GROW_DOWNWARD is defined.
22933         (restore_fixed_argument_area): Likewise.
22934         (mem_overlaps_already_clobbered_arg_p): Likewise.
22935         (check_sibcall_argument_overlap): Likewise.
22936         (expand_call): Likewise.
22937         (emit_library_call_value_1): Likewise.
22938         (store_one_arg): Likewise.
22939         * function.c (assign_parms): Likewise.
22940         (locate_and_pad_parm): Likewise.
22941         (pad_to_arg_alignment): Likewise.
22942         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22944 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22946         * defaults.h (gen_epilogue): New function.
22947         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
22948         defined.
22949         * cfgrtl.c (cfg_layout_finalize): Likewise.
22950         * df-scan.c: Likewise.
22951         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22952         (reposition_prologue_and_epilogue_notes): Likewise.
22953         * reorg.c (find_end_label): Likewise.
22954         * toplev.c: Likewise.
22956 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22958         * bb-reorder.c (HAVE_return): Don't check if its undefined.
22959         * defaults.h (gen_simple_return): New function.
22960         (gen_simple_return): Likewise.
22961         (HAVE_return): Add default definition to false.
22962         (HAVE_simple_return): Likewise.
22963         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
22964         HAVE_return and HAVE_simple_return are defined.
22965         * function.c (gen_return_pattern): Likewise.
22966         (convert_jumps_to_returns): Likewise.
22967         (thread_prologue_and_epilogue_insns): Likewise.
22968         * reorg.c (find_end_label): Likewise.
22969         (dbr_schedule): Likewise.
22970         * shrink-wrap.c: Likewise.
22971         * shrink-wrap.h: Likewise.
22973 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22975         * defaults.h (EPILOGUE_USES): Add default definition of false.
22976         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
22977         * resource.c (init_resource_info): Likewise.
22979 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22981         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
22982         to false.
22983         * dwarf2out.c (field_byte_offset): REmove check if
22984         PCC_BITFIELD_TYPE_MATTERS is defined.
22985         * stor-layout.c (layout_decl): Likewise.
22986         (update_alignment_for_field): Likewise.
22987         (place_field): Likewise.
22989 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22991         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
22992         true.
22993         * regrename.c (check_new_reg_p): Remove check if
22994         HARD_REGNO_RENAME_OK is defined.
22995         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
22997 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22999         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23000         * cse.c (fold_rtx): Likewise.
23001         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23002         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23003         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23004         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23005         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23006         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23007         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23008         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23009         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23010         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23011         * Likewise.
23012         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23013         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23014         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23015         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23016         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23017         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23018         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23019         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23020         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23021         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23022         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23023         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23024         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23025         * doc/tm.texi: Regenerate.
23026         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23027         either true or false.
23029 2015-04-27  Jeff Law  <law@redhat.com>
23031         PR tree-optimization/65217
23032         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23033         of them has a single use, make sure it is the LHS of the implied
23034         copy.
23036 2015-04-28  Alan Modra  <amodra@gmail.com>
23038         PR target/65810
23039         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23040         (offsettable_ok_by_alignment): Use minimum of decl and toc
23041         pointer alignment.  Replace dead code with assertion.
23042         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
23043         case if size exceeds toc pointer alignment.
23044         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23045         (rs6000_emit_move): Likewise.
23046         * configure.ac: Add linker toc pointer alignment check.
23047         * configure: Regenerate.
23048         * config.in: Regenerate.
23050 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
23052         * config.gcc: Add h8300-*-linux.
23053         * config/h8300/linux.h: New.
23054         * config/h8300/t-linux: New.
23055         * config/h8300/h8300.c (h8300_option_override): Normal mode
23056         is not supported for h8300-*-linux.
23057         (h8300_file_start): Target priority change.
23058         (get_shift_alg): Likewise.
23059         (h8300_shift_need_scratch_p): Likewise.
23060         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23061         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23063 2015-04-27  Caroline Tice  <cmtice@google.com>
23065         * final.c (final_scan_insn):  Output cold_function_name as function
23066         type.
23067         * varasm.c (cold_function_name):  Make global.
23068         (assemble_start_function):  Re-set cold_function_name.
23069         (assemble_end_function): Output cold partition size.
23070         * varasm.h (cold_function_name):  Declare global.
23072 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
23074         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23075         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23076         constraint.
23077         (*movxi_internal_avx512f): Ditto.
23078         (define_split): Check for xmm16+, when splitting scalar float_extend.
23079         (*extendsfdf2_mixed): Use "v" constraint.
23080         (define_split): Check for xmm16+, when splitting scalar float_truncate.
23081         (*truncdfsf_fast_sse): Use "v" constraint.
23082         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23083         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23084         (define_peephole2): Check for xmm16+, when converting scalar
23085         float_truncate.
23086         (define_peephole2): Check for xmm16+, when converting scalar
23087         float_extend.
23088         (*fop_<mode>_comm_mixed): Use "v" constraint.
23089         (*fop_<mode>_comm_sse): Ditto.
23090         (*fop_<mode>_1_mixed): Ditto.
23091         (*sqrt<mode>2_sse): Ditto.
23092         (*ieee_s<ieee_maxmin><mode>3): Ditto.
23094 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23096         * combine.c (simplify_if_then_else): Use std::swap instead
23097         of manually swapping.
23098         (known_cond): Likewise.
23099         (simplify_comparison): Likewise.
23101 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
23103         PR target/64579
23104         * config/rs6000/htm.md: Remove all define_expands.
23105         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23106         UNSPECV_HTM_TABORTWCI): Remove.
23107         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23108         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23109         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23110         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23111         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23112         tabortwci_internal): Remove define_insns.
23113         (tabort<wd>c, tabort<wd>ci): New define_insns.
23114         (tabort): Use gpc_reg_operand.
23115         (tcheck): Remove operand.
23116         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23117         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23118         expected value.
23119         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23120         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
23121         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23122         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23123         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23124         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23125         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23126         (tcheck): Remove builtin argument.
23127         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23128         not TARGET_64BIT.
23129         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
23130         tabortdc and tabortdci builtins when not in 64-bit mode.
23131         Modify code to handle the loss of the HTM define_expands.
23132         Emit code to copy the CR register to TARGET.
23133         (htm_init_builtins): Modify code to handle the loss of the HTM
23134         define_expands.
23135         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23136         (RS6000_BTC_64BIT): Likewise.
23137         (RS6000_BTC_CR): New macro.
23138         * doc/extend.texi: Update documentation for htm builtins.
23140 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23142         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23143         of manually swapping.
23144         (simplify_associative_operation): Likewise.
23145         (simplify_binary_operation): Likewise.
23146         (simplify_plus_minus): Likewise.
23147         (simplify_relational_operation): Likewise.
23148         (simplify_ternary_operation): Likewise.
23150 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23152         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23153         (xs_hi_nonmemory_operand): Remove error.
23154         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23155         general_operand rather than xs_hi_general_operand.
23157 2015-04-27  Richard Biener  <rguenther@suse.de>
23159         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23160         (record_equivalences_from_stmt): Valueize rhs.
23161         (record_equality): Canonicalize x and y order via
23162         tree_swap_operands_p.  Do not swap operands for same loop depth.
23164 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
23166         PR target/65296
23167         PR target/65895
23168         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23169         Add hint how to use own spec file.
23171 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
23173         PR tree-optimization/65875
23174         * tree-vrp.c (update_value_range): If in is_new case setting
23175         old_vr to VR_VARYING, also set new_vr to it.  Remove
23176         old_vr->type == VR_VARYING test.
23177         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23178         SSA_PROP_INTERESTING if update_value_range returned true,
23179         but new range is VR_VARYING.
23181 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23183         * combine.c (sign_extend_short_imm): New.
23184         (set_nonzero_bits_and_sign_copies): Use above new function for sign
23185         extension of src short immediate.
23186         (reg_nonzero_bits_for_combine): Likewise for tem.
23188 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23190         * stor-layout.c (self_referential_component_ref_p): New predicate.
23191         (copy_self_referential_tree_r): Use it.
23192         (self_referential_size): Punt for simple operations directly involving
23193         self-referential component references.
23194         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23196 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23198         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23200 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23202         * vec.h (vec): Make splice arguments const.  Update definitions
23203         accordingly.
23205 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
23207         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23208         alternatives.
23210 2015-04-26  Tom de Vries  <tom@codesourcery.com>
23212         PR tree-optimization/65826
23213         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23215 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
23217         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23218         (*madd3<mode>): Ditto.
23219         (*msub4<mode>): Ditto.
23220         (*msub3<mode>): Ditto.
23221         (*nmadd4<mode>): Ditto.
23222         (*nmadd3<mode>): Ditto.
23223         (*nmadd4<mode>_fastmath): Ditto.
23224         (*nmadd3<mode>_fastmath): Ditto.
23225         (*nmsub4<mode>): Ditto.
23226         (*nmsub3<mode>): Ditto.
23227         (*nmsub4<mode>_fastmath): Ditto.
23228         (*nmsub3<mode>_fastmath): Ditto.
23230 2015-04-24  Jason Merrill  <jason@redhat.com>
23232         PR c++/50800
23233         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23234         down when building TYPE_CANONICAL.
23235         (build_pointer_type_for_mode): Likewise.
23237 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
23239         * genrecog.c (validate_pattern): Check matching constraint refers
23240         to a lower numbered operand.
23242 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23244         PR target/65849
23245         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23246         save to independent variables use the Save attribute.  This will
23247         allow these options to be modified with the #pragma/attribute
23248         target support.
23249         (-mallow-movmisalign): Likewise.
23250         (-mallow-df-permute): Likewise.
23251         (-msched-groups): Likewise.
23252         (-malways-hint): Likewise.
23253         (-malign-branch-targets): Likewise.
23254         (-mvectorize-builtins): Likewise.
23255         (-msave-toc-indirect): Likewise.
23257         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23258         can be set via the #pragma/attribute target support.
23259         (rs6000_opt_vars): Likewise.
23260         (rs6000_inner_target_options): If VSX was set, also set
23261         -mno-avoid-indexed-addresses.
23263 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23265         * config/arm/iterators.md (shiftable_ops): Rename to...
23266         (SHIFTABLE_OPS): ... This.  Update use in comments.
23267         (ior_xor): Rename to...
23268         (IOR_XOR): ... This.
23269         (vqh_ops): Rename to...
23270         (VQH_OPS): ... This.
23271         (vqhs_ops): Rename to...
23272         (VQHS_OPS): ... This.
23273         (rshifts): Rename to...
23274         (RSHIFTS): ... This.
23275         (returns): Rename to...
23276         (RETURNS): ... This.
23277         * config/arm/arm.md: Update uses of the above.
23278         * config/arm/neon.md: Likewise.
23280 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23282         * config.host (case ${host}): Add aarch64*-*-linux case.
23283         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23284         fields to all the cores.
23285         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23286         Add MCPU_MTUNE_NATIVE_SPECS.
23287         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23288         field to all extensions.
23289         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23290         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23291         Adjust definition of AARCH64_OPT_EXTENSION.
23292         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23293         (MCPU_MTUNE_NATIVE_SPECS): Define.
23294         * config/aarch64/driver-aarch64.c: New file.
23295         * config/aarch64/x-arch64: New file.
23296         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23297         -mtune and -march.
23299 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23300             Wei Mi  <wmi@google.com>
23302         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23303         * config/i386/i386.c (extract_base_offset_in_addr): New function.
23304         (ix86_operands_ok_for_move_multiple): Ditto.
23305         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23306         (movlpd/movhpd to movupd peephole2): Ditto.
23308 2015-04-24  Marek Polacek  <polacek@redhat.com>
23310         PR c/61534
23311         * input.h (from_macro_expansion_at): Define.
23313         PR c/63357
23314         * doc/invoke.texi: Update description of -Wlogical-op.
23316 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23318         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23319         ternary operator in fprintf and harmonize spacing.
23321 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23323         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23324         Mark operand1 commutative.
23326 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23328         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23329         input operands in memory.
23330         (*vec_concatv2si_sse4_1): Ditto.
23331         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23332         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23333         register_operand.
23334         (vec_extract_hi_v32hi): Ditto.
23335         (vec_extract_hi_v64hi): Ditto.
23336         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23338 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23339             Steven Bosscher <steven@gcc.gnu.org>
23341         PR rtl-optimization/34503
23342         * cprop.c (cprop_reg_p): New.
23343         (hash_scan_set): Use above function to check if register can be
23344         propagated.
23345         (find_avail_set): Return up to two sets, one whose source is a
23346         register and one whose source is a constant.  Sets are returned in an
23347         array passed as parameter rather than as a return value.
23348         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
23349         sets returned by find_avail_set, starting with the one whose source is
23350         a constant. Use cprop_reg_p to check if register can be propagated.
23351         (do_local_cprop): Use cprop_reg_p to check if register can be
23352         propagated.
23353         (implicit_set_cond_p): Likewise.
23355 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23357         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23358         (sem_function::equals): IGNORED_NODES parameter is now unused;
23359         update call of equals_private.
23360         (sem_function::equals_private): Do not call equals_wpa; skip
23361         gimple body matching if there is no body.
23362         (sem_function::init): Add logic to hash tthunk info.
23363         (sem_function::parse): Also parse thunks.
23364         * ipa-icf.h (equals_private): Update declaration.
23366 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23368         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23369         asterisk from name so this can be generated directly.
23370         (*altivec_stvx_<mode>_internal): Likewise.
23371         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23372         that this is never called during or after reload/lra.
23373         (rs6000_frame_related): Remove split_reg
23374         argument and logic that references it.
23375         (emit_frame_save): Remove last parameter from call to
23376         rs6000_frame_related.
23377         (rs6000_emit_prologue): Remove last parameter from eight calls to
23378         rs6000_frame_related.  Force generation of stvx instruction for
23379         Altivec register saves.  Remove split_reg handling, which is no
23380         longer needed.
23381         (rs6000_emit_epilogue):  Force generation of lvx instruction for
23382         Altivec register restores.
23384 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23386         * config/rs6000/rs6000.opt (mcrypto): Change option description to
23387         match category changes in ISA 2.07B.
23389 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23391         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23392         iterators.
23393         (cmp_op, cmp_type): New code attributes.
23394         (NEON_VCMP, NEON_VACMP): New int iterators.
23395         (cmp_op_unsp): New int attribute.
23396         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23397         (neon_vceq<mode>): Delete.
23398         (neon_vc<cmp_op><mode>_insn): New pattern.
23399         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23400         (neon_vcgeu<mode>): Delete.
23401         (neon_vcle<mode>): Likewise.
23402         (neon_vclt<mode>: Likewise.
23403         (neon_vcage<mode>): Likewise.
23404         (neon_vcagt<mode>): Likewise.
23405         (neon_vca<cmp_op><mode>): New define_expand.
23406         (neon_vca<cmp_op><mode>_insn): New pattern.
23407         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23409 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23411         * tree.h (attribute_value_equal): Declare.
23412         * tree.c (attribute_value_equal): Export.
23414 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23416         * ipa-icf.c (sem_item::compare_attributes): New function.
23417         (sem_item::compare_referenced_symbol_properties): Compare variable
23418         attributes.
23419         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23420         (sem_function::param_used_p): New function.
23421         (sem_function::equals_wpa): Fix attribute comparsion; match
23422         parameter type codes; do not compare paremter flags when
23423         they are not used; compare edge flags; compare indirect calls.
23424         (sem_item::update_hash_by_addr_refs): Hash reference type.
23425         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23426         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23427         reference use type.
23428         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23429         * ipa-icf.h (compare_attributes, param_used_p): Declare.
23431 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23433         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23434         cleanup.
23435         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
23436         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
23437         (sem_item::compare_referenced_symbol_properties): New.
23438         (sem_item::hash_referenced_symbol_properties): New.
23439         (sem_item::compare_cgraph_references): Rename to ...
23440         (sem_item::compare_symbol_references): ... this one; use
23441         compare_referenced_symbol_properties.
23442         (sem_function::equals_wpa): Do not compare
23443         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
23444         DECL_IS_OPERATOR_NEW; compare pointer sizes.
23445         (sem_item::update_hash_by_addr_refs): Call
23446         hash_referenced_symbol_properties.
23447         (sem_item::update_hash_by_local_refs): Cleanup.
23448         (sem_function::merge): Do not mix up symbol properties.
23449         (sem_variable::equals_wpa): Use compare_symbol_references.
23450         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
23451         (sem_item::hash_referenced_symbol_properties): New.
23452         (sem_item::compare_symbol_references): New.
23453         (sem_item::compare_cgraph_references): Remove.
23455 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
23457         PR target/26702
23458         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
23459         Emit size of local.
23461 2015-04-23  Nick Clifton  <nickc@redhat.com>
23463         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
23464         ATTRIBUTE_UNUSED to x parameter.
23465         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
23467 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23469         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
23470         TARGET_CRYPTO to TARGET_P8_VECTOR>
23471         (crypto_vpermxor_<mode>): Likewise.
23472         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
23473         (BU_CRYPTO_3A): Likewise.
23474         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
23475         (BU_CRYPTO_OVERLOAD_3A): New #define.
23476         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
23477         (VPMSUMH): Likewise.
23478         (VPMSUMW): Likewise.
23479         (VPMSUMD): Likewise.
23480         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
23481         (VPERMXOR_V4SI): Likewise.
23482         (VPERMXOR_V8HI): Likewise.
23483         (VPERMXOR_V16QI): Likewise.
23484         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
23485         BU_CRYPTO_OVERLOAD_2A.
23486         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
23487         BU_CRYPTO_OVERLOAD_3A.
23488         * config/rs6000/rs6000.opt (mcrypto): Change description of
23489         option.
23491 2015-04-23  Richard Biener  <rguenther@suse.de>
23493         * passes.def: Remove copy propagation passes run directly after CCP.
23494         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
23495         SSA names.
23496         (ccp_visit_phi_node): Rework to handle first executable edge
23497         specially.
23499 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
23501         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23502         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23503         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23504         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
23505         (thumb_legimitimize_reload_address): Remove.
23506         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
23507         Remove.
23508         (thumb_legimitimize_reload_address): Remove.
23510 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23512         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
23514 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23516         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
23517         MAX_LDM_STM_OPS.
23518         (store_multiple): Likewise.
23520 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23522         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
23523         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
23524         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
23525         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
23526         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
23527         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
23528         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
23529         Specify issue_rate value.
23530         (arm_issue_rate): Look up issue rate from tuning structs. Remove
23531         large switch statement.
23532         (arm_marvell_pj4_tune): New struct.
23533         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
23534         struct.
23536 2015-04-23  Richard Biener  <rguenther@suse.de>
23538         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
23539         (vect_find_last_store_in_slp_instance): Rename to ...
23540         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
23541         (vect_analyze_slp_cost_1): Use vector_load for constant defs
23542         and vec_construct for external defs when estimating prologue cost.
23543         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
23544         Compute costs here only when vectorizing loops.
23545         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
23546         have been determined.
23547         (vect_schedule_slp_instance): Simplify vectorized code placement
23548         and prepare for in-BB external defs.
23549         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
23550         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
23551         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
23552         guard.
23553         (vect_model_load_cost): Likewise.
23554         (vectorizable_store): Instead add it here.
23555         (vectorizable_load): Likewise.
23556         (vect_is_simple_use): Dump def type textually.
23558 2015-04-23  Richard Biener  <rguenther@suse.de>
23560         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
23561         * cfgloop.c (verify_loop_structure): Verify the root loop node.
23562         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
23563         instead of get_eh_region_from_lp_number.
23564         * loop-init.c (fix_loop_structure): If we removed a loop, reset
23565         the SCEV cache.
23567 2015-04-23  Anton Blanchard  <anton@samba.org>
23569         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
23570         need for -mprofile-kernel to save LR to stack.
23572 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23574         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
23575         adjustments.
23576         (insn_is_swappable_p): Return 1 for a convert from double to
23577         single precision when all of its uses are splats of BE element
23578         zero.
23580 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
23582         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
23584 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23586         PR target/65456
23587         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
23588         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
23589         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
23590         option.
23591         (rs6000_builtin_mask_for_load): Return 0 for targets with
23592         efficient unaligned VSX accesses so that the vectorizer will use
23593         direct unaligned loads.
23594         (rs6000_builtin_support_vector_misalignment): Always return true
23595         for targets with efficient unaligned VSX accesses.
23596         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
23597         stores on targets with efficient unaligned VSX accesses is almost
23598         always the same as the cost of an aligned load or store, so model
23599         it that way.
23600         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
23601         unaligned vectors if we have efficient unaligned VSX accesses.
23602         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
23603         undocumented option.
23605 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23607         Revert:
23608         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
23610         * config.gcc (LIBC_MUSL): New tm_defines macro.
23611         * config/linux.h (OPTION_MUSL): Define.
23612         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23613         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23614         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23616         * config/linux.opt (mmusl): New option.
23617         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23618         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23620         * configure: Regenerate.
23622 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
23624         * config.gcc (LIBC_MUSL): New tm_defines macro.
23625         * config/linux.h (OPTION_MUSL): Define.
23626         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23627         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23628         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23630         * config/linux.opt (mmusl): New option.
23631         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23632         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23634         * configure: Regenerate.
23636 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
23638         * doc/invoke.texi (-fsanitize-sections): Update description.
23639         * asan.c (set_sanitized_sections): Parse incoming arg.
23640         (section_sanitized_p): Support wildcards.
23642 2015-04-22  Tom de Vries  <tom@codesourcery.com>
23644         PR tree-optimization/65823
23645         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
23646         equality between ap_copy and ap.
23648 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23650         PR target/47098
23651         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
23653 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23655         PR target/47122
23656         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
23658 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23660         PR target/55144
23661         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
23662         remove already contained t-files.
23664 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23666         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
23667         Remove unneeded forward declarations.
23668         (suitable_for_tail_call_opt_p): Commentary typo fix.
23670 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23672         * varasm.c (emit_bss): Remove redundant guard.
23674 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23676         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
23678 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23680         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
23682 2015-04-22  Hale Wang  <hale.wang@arm.com>
23683             Terry Guo  <terry.guo@arm.com>
23685         PR rtl-optimization/64818
23686         * combine.c (can_combine_p): Don't combine user-specified
23687         register if it is in an asm input.
23689 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
23691         PR ipa/65076
23692         * passes.def (early_optimizations): Add pass_dse.
23694 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23696         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
23697         * reorg.c (redundant_insn): Remove ifdef
23698         INSN_REFERENCES_ARE_DELAYED.
23699         * resource.c (mark_referenced_resources): Likewise.
23701 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23703         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
23704         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
23705         * resource.c (mark_set_resources): Likewise.
23707 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23709         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
23710         * cfgcleanup.c (flow_find_cross_jump): Likewise.
23711         (flow_find_head_matching_sequence): Likewise.
23712         (try_head_merge_bb): Likewise.
23713         * combine.c (can_combine_p): Likewise.
23714         (try_combine): Likewise.
23715         (distribute_notes): Likewise.
23716         * df-problems.c (can_move_insns_across): Likewise.
23717         * final.c (final): Likewise.
23718         * gcse.c (insert_insn_end_basic_block): Likewise.
23719         * ira.c (find_moveable_pseudos): Likewise.
23720         * reorg.c (try_merge_delay_insns): Likewise.
23721         (fill_simple_delay_slots): Likewise.
23722         (fill_slots_from_thread): Likewise.
23723         * sched-deps.c (sched_analyze_2): Likewise.
23725 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23727         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
23728         PIC_OFFSET_TABLE_REGNUM.
23730 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23732         * alias.c (init_alias_target): Remove ifdef
23733         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
23734         * df-scan.c (df_insn_refs_collect): Likewise.
23735         (df_get_regular_block_artificial_uses): Likewise.
23736         (df_get_eh_block_artificial_uses): Likewise.
23737         (df_get_entry_block_def_set): Likewise.
23738         (df_get_exit_block_use_set): Likewise.
23739         * emit-rtl.c (gen_rtx_REG): Likewise.
23740         * ira.c (ira_setup_eliminable_regset): Likewise.
23741         * reginfo.c (init_reg_sets_1): Likewise.
23742         * regrename.c (rename_chains): Likewise.
23743         * reload1.c (reload): Likewise.
23744         (eliminate_regs_in_insn): Likewise.
23745         * resource.c (mark_referenced_resources): Likewise.
23746         (init_resource_info): Likewise.
23748 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23750         * defaults.h (MASK_RETURN_ADDR): New definition.
23751         * except.c (expand_builtin_extract_return_addr): Remove ifdef
23752         MASK_RETURN_ADDR.
23754 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23756         * defaults.h (RETURN_ADDR_OFFSET): New definition.
23757         * except.c (expand_builtin_extract_return_addr): Remove ifdef
23758         RETURN_ADDR_OFFSET.
23759         (expand_builtin_frob_return_addr): Likewise.
23761 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23763         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
23764         (try_redirect_by_replacing_jump): Likewise.
23765         (rtl_tidy_fallthru_edge): Likewise.
23766         * combine.c (insn_a_feeds_b): Likewise.
23767         (find_split_point): Likewise.
23768         (simplify_set): Likewise.
23769         * cprop.c (cprop_jump): Likewise.
23770         * cse.c (cse_extended_basic_block): Likewise.
23771         * df-problems.c (can_move_insns_across): Likewise.
23772         * function.c (emit_use_return_register_into_block): Likewise.
23773         * haifa-sched.c (sched_init): Likewise.
23774         * ira.c (find_moveable_pseudos): Likewise.
23775         * loop-invariant.c (find_invariant_insn): Likewise.
23776         * lra-constraints.c (curr_insn_transform): Likewise.
23777         * postreload.c (reload_combine_recognize_const_pattern):
23778         * Likewise.
23779         * reload.c (find_reloads): Likewise.
23780         * reorg.c (delete_scheduled_jump): Likewise.
23781         (steal_delay_list_from_target): Likewise.
23782         (steal_delay_list_from_fallthrough): Likewise.
23783         (redundant_insn): Likewise.
23784         (fill_simple_delay_slots): Likewise.
23785         (fill_slots_from_thread): Likewise.
23786         (delete_computation): Likewise.
23787         * sched-rgn.c (add_branch_dependences): Likewise.
23789 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23791         * genconfig.c (main): Always define HAVE_cc0.
23792         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
23793         HAVE_cc0.
23794         * cfgcleanup.c (flow_find_cross_jump): Likewise.
23795         (flow_find_head_matching_sequence): Likewise.
23796         (try_head_merge_bb): Likewise.
23797         * cfgrtl.c (rtl_merge_blocks): Likewise.
23798         (try_redirect_by_replacing_jump): Likewise.
23799         (rtl_tidy_fallthru_edge): Likewise.
23800         * combine.c (do_SUBST_MODE): Likewise.
23801         (insn_a_feeds_b): Likewise.
23802         (combine_instructions): Likewise.
23803         (can_combine_p): Likewise.
23804         (try_combine): Likewise.
23805         (find_split_point): Likewise.
23806         (subst): Likewise.
23807         (simplify_set): Likewise.
23808         (distribute_notes): Likewise.
23809         * cprop.c (cprop_jump): Likewise.
23810         * cse.c (cse_extended_basic_block): Likewise.
23811         * df-problems.c (can_move_insns_across): Likewise.
23812         * final.c (final): Likewise.
23813         (final_scan_insn): Likewise.
23814         * function.c (emit_use_return_register_into_block): Likewise.
23815         * gcse.c (insert_insn_end_basic_block): Likewise.
23816         * haifa-sched.c (sched_init): Likewise.
23817         * ira.c (find_moveable_pseudos): Likewise.
23818         * loop-invariant.c (find_invariant_insn): Likewise.
23819         * lra-constraints.c (curr_insn_transform): Likewise.
23820         * optabs.c (prepare_cmp_insn): Likewise.
23821         * postreload.c (reload_combine_recognize_const_pattern):
23822         * Likewise.
23823         * reload.c (find_reloads): Likewise.
23824         (find_reloads_address_1): Likewise.
23825         * reorg.c (delete_scheduled_jump): Likewise.
23826         (steal_delay_list_from_target): Likewise.
23827         (steal_delay_list_from_fallthrough): Likewise.
23828         (try_merge_delay_insns): Likewise.
23829         (redundant_insn): Likewise.
23830         (fill_simple_delay_slots): Likewise.
23831         (fill_slots_from_thread): Likewise.
23832         (delete_computation): Likewise.
23833         (relax_delay_slots): Likewise.
23834         * sched-deps.c (sched_analyze_2): Likewise.
23835         * sched-rgn.c (add_branch_dependences): Likewise.
23837 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23839         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
23840         that is trivially ded on non cc0 targets.
23841         (simplify_set): Likewise.
23842         (mark_used_regs_combine): Likewise.
23843         * cse.c (new_basic_block): Likewise.
23844         (fold_rtx): Likewise.
23845         (cse_insn): Likewise.
23846         (cse_extended_basic_block): Likewise.
23847         (set_live_p): Likewise.
23848         * rtlanal.c (canonicalize_condition): Likewise.
23849         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23851 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23853         * conditions.h: Define macros even if HAVE_cc0 is undefined.
23854         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
23855         * final.c: Likewise.
23856         * jump.c: Likewise.
23857         * recog.c: Likewise.
23858         * recog.h: Declare functions even when HAVE_cc0 is undefined.
23859         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
23861 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23863         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
23864         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
23865         * builtins.c (expand_builtin): Remove check if
23866         EH_RETURN_DATA_REGNO is defined.
23867         * df-scan.c (df_bb_refs_collect): Likewise.
23868         (df_get_exit_block_use_set): Likewise.
23869         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
23870         * ira-lives.c (process_bb_node_lives): Likewise.
23871         * lra-lives.c (process_bb_lives): Likewise.
23873 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
23875         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
23876         FIRST_PSEUDO_REG): New.
23877         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
23878         (ARG_POINTER_REGNUM): Define to ARGP_REG.
23879         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
23880         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
23881         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
23882         (FIRST_INT_REG): New.
23883         (LAST_INT_REG): New.
23884         (FIRST_*_REG): Define using *_REG.
23885         (LAST_*_REG): Ditto.
23886         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
23887         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
23888         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
23890 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23892         * expmed.c: (synth_mult): Only assume overlapping
23893         shift with previous steps in alg_sub_t_m2 case.
23895 2015-04-21  Richard Biener  <rguenther@suse.de>
23897         PR tree-optimization/65650
23898         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
23899         transitions involving copies.
23900         (set_lattice_value): Adjust for copy lattice state.
23901         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
23902         if that doesn't dominate the merge point.
23903         (bit_value_unop): Adjust what we treat as varying mask.
23904         (bit_value_binop): Likewise.
23905         (bit_value_assume_aligned): Likewise.
23906         (evaluate_stmt): When we simplified to a SSA name record a copy
23907         instead of dropping to varying.
23908         (visit_assignment): Simplify.
23910         * gimple-match.h (gimple_simplify): Add another callback.
23911         * gimple-fold.c (fold_stmt_1): Adjust caller.
23912         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
23913         for the 2nd callback.
23914         * gimple-match-head.c (gimple_simplify): Add a callback that is
23915         used to valueize the stmt operands and use it that way.
23917 2015-04-21  Richard Biener  <rguenther@suse.de>
23919         PR tree-optimization/65788
23920         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
23922 2015-04-21  Richard Biener  <rguenther@suse.de>
23924         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
23925         vec_construct cost by vec_stmt_cost.
23927 2015-04-21  Richard Biener  <rguenther@suse.de>
23929         * cfghooks.h (create_basic_block): Replace with two overloads
23930         for RTL and GIMPLE.
23931         (split_block): Likewise.
23932         * cfghooks.c (split_block): Rename to ...
23933         (split_block_1): ... this.
23934         (split_block): Add two type-safe overloads for RTL and GIMPLE.
23935         (split_block_after_labels): Call split_block_1.
23936         (create_basic_block): Rename to ...
23937         (create_basic_block_1): ... this.
23938         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
23939         (create_empty_bb): Call create_basic_block_1.
23940         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
23941         split_block_after_labels.
23942         * omp-low.c (expand_parallel_call): Likewise.
23943         (expand_omp_target): Likewise.
23944         (simd_clone_adjust): Likewise.
23945         * tree-chkp.c (chkp_get_entry_block): Likewise.
23946         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
23947         create_basic_block overload.
23948         (cgraph_node::expand_thunk): Likewise.
23949         * tree-cfg.c (make_blocks): Likewise.
23950         (handle_abnormal_edges): Likewise.
23951         * tree-inline.c (copy_bb): Likewise.
23953 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23955         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
23956         New pattern.
23957         (*xor_one_cmplsidi3_ze): Likewise.
23959 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23961         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
23962         use df_remove_problem rather than manually removing problems, leaving
23963         holes in df->problems_in_order[].
23965 2015-04-21  Tom de Vries  <tom@codesourcery.com>
23967         PR tree-optimization/65802
23968         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
23970 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23972         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
23973         Increase to 128.
23974         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
23975         at '.'.  Assert that there's enough space for everything.
23977 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
23979         PR tree-optimization/64950
23980         Revert:
23981         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
23983         PR target/41089
23984         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
23985         as volatile.
23987 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
23989         PR rtl-optimization/64916
23990         * cfgcleanup.c (values_equal_p): New function.
23991         (can_replace_by): Use it.
23993 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
23995         PR c++/65801
23996         * doc/invoke.texi ([-Wnarrowing]): Update.
23998 2015-04-20  Jeff Law  <law@redhat.com>
24000         PR tree-optimization/65658
24001         * tree-ssa-threadupdate.c (redirection_block_p): Remove
24002         redundant test for GIMPLE_ASSIGN in last change.
24004 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
24006         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24007         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24008         (legitimize_tls_address): Ditto.
24009         (ix86_expand_move): Ditto.
24010         (ix86_expand_binary_operator): Remove reload_in_progress checks.
24011         (ix86_expand_unary_operator): Ditto.
24012         * config/i386/predicates.md (index_register_operand): Ditto.
24014 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
24016         * reorg.c (try_merge_delay_insns): Improve correctness checking
24017         for targets with multiple delay slots.
24019 2015-04-20  Jeff Law  <law@redhat.com>
24021         PR tree-optimization/65658
24022         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24023         statements too.
24025 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24027         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24028         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24029         Delete.
24031 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
24033         PR debug/65807
24034         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24036 2015-04-20  Richard Biener  <rguenther@suse.de>
24038         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24039         * gimple-fold.c (gimple_build_valueize): New function.
24040         (gimple_build): Always use gimple_build_valueize as valueize hook.
24042 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24044         PR target/64134
24045         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24046         and overwrite variable parts if <= 1/2 the elements are variable.
24048 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
24050         PR rtl-optimization/65805
24051         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24052         Don't use difference of offset and previous offset if
24053         update_sp_offset is non-zero.
24054         (eliminate_regs_in_insn): Ditto.
24055         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24056         lra_eliminate_regs_1 call.
24057         * lra-constraints.c (get_equiv_with_elimination): Ditto.
24059 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
24061         * hash-table.h: Remove version of hash_table that stored value_type *.
24062         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24063         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24064         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24065         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24066         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24067         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24068         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24069         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24070         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24071         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24072         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24073         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24074         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24075         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24076         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24077         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24079 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24080             Jakub Jelinek  <jakub@redhat.com>
24082         PR target/65787
24083         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24084         subsequent SH_NONE operand does not overwrite an existing *special
24085         value.
24086         (adjust_extract): Handle case where a vec_extract operation is
24087         wrapped in a PARALLEL.
24089 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24091         PR target/65780
24092         * config/i386/i386.c (ix86_binds_local_p): Define only if
24093         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24095 2015-04-17  Jeff Law  <law@redhat.com>
24097         PR tree-optimization/47679
24098         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24099         * tree-ssa-scopedtables.c: New file.
24100         * tree-ssa-scopedtables.h: New file.
24101         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24102         (const_and_copies): Change name/type.
24103         (record_const_or_copy): Move into tree-ssa-scopedtables.c
24104         (record_const_or_copy_1): Similarly.
24105         (restore_vars_to_original_value): Similarly.
24106         (pass_dominator::execute): Create and destroy const_and_copies table.
24107         (thread_across_edge): Update passing of const_and_copies.
24108         (record_temporary_equivalence): Use method calls rather than
24109         manipulating const_and_copies directly.
24110         (record_equality, cprop_into_successor_phis): Similarly.
24111         (dom_opt_dom_walker::before_dom_children): Similarly.
24112         (dom_opt_dom_walker::after_dom_children): Similarly.
24113         (eliminate_redundant_computations): Similarly.
24114         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24115         (record_temporary_equivalence): Likewise.
24116         (invalidate_equivalences): Likewise.
24117         (record_temporary_equivalences_from_phis): Update due to type
24118         change of const_and_copies.  Use method calls rather than
24119         manipulating the stack directly.
24120         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24121         (thread_through_normal_block, thread_across_edge): Likewise.
24122         (thread_across_edge): Likewise.
24123         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24124         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
24125         of equiv_stack.
24126         (identify_jump_threads): Update due to type change of equiv_stack.
24127         (finalize_jump_threads): Delete the equiv_stack when complete.
24129 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
24131         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24132         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24133         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24135 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
24137         PR target/65535
24138         * config.gcc: Exit with a comment when we do not have a major version
24139         number for the FreeBSD target.
24141 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24143         PR target/65689
24144         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24145         maybe_allows_mem bitfields.
24146         (maybe_allows_none_start, maybe_allows_none_end,
24147         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24148         maybe_allows_mem_end): New variables.
24149         (compute_maybe_allows): New function.
24150         (add_constraint): Use it to initialize maybe_allows_reg and
24151         maybe_allows_mem fields.
24152         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24153         is_address constraints such that those that allow neither mem nor
24154         reg come first, then those that only allow reg but not mem, then
24155         those that only allow mem but not reg, then the rest.
24156         (write_allows_reg_mem_function): New function.
24157         (write_tm_preds_h): Call it.
24158         * stmt.c (parse_output_constraint, parse_input_constraint): Use
24159         the generated insn_extra_constraint_allows_reg_mem function
24160         instead of always setting *allows_reg = true; *allows_mem = true;
24161         for unknown extra constraints.
24163 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24165         PR target/65780
24166         * output.h (default_binds_local_p_3): New.
24167         * varasm.c (default_binds_local_p_3): Make it public.  Take an
24168         argument to indicate if common symbol may be local.  If common
24169         symbol may be local, treat non-external variable as defined
24170         locally.
24171         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24172         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24173         * config/i386/i386.c (ix86_binds_local_p): New.
24174         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24175         ix86_binds_local_p.
24177 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24179         PR debug/65771
24180         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24181         trying mem_loc_descriptor on XEXP (rtl, 0).
24183 2015-04-17  Martin Liska  <mliska@suse.cz>
24185         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24186         Release symbol_compare_collection.
24187         * ipa-reference.c: Add TODO that a vector should be released.
24189 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24191         PR target/65296
24192         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24193         to new AVR-LibC file layout (bug #44574).
24194         (*avrlibc_devicelib): Same.
24195         * config/avr/avr-mcus.def: Adjust comments.
24196         * config/avr/avr.opt (nodevicelib): Adjust help.
24198 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
24200         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24202 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
24204         PR c++/64527
24205         * gimplify.c (gimplify_init_constructor): Always emit a
24206         side-effecting constructor.
24208 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24210         PR tree-optimization/64950
24211         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24212         in cfun->curr_properties.
24213         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24214         if we generate an IFN_VA_ARG.
24215         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24216         function if PROP_gimple_lva is not set in src function.
24218 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24219             Michael Matz  <matz@suse.de>
24221         PR tree-optimization/64950
24222         * gimple-iterator.c (update_modified_stmts): Remove static.
24223         * gimple-iterator.h (update_modified_stmts): Declare.
24224         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24225         (gimplify_va_arg_internal): New function.
24226         (gimplify_va_arg_expr): Use IFN_VA_ARG.
24227         * gimplify.h (gimplify_va_arg_internal): Declare.
24228         * internal-fn.c (expand_VA_ARG): New unreachable function.
24229         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24230         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24231         (expand_ifn_va_arg): New function.
24232         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24233         (pass_stdarg::execute): Call expand_ifn_va_arg.
24234         (pass_data_lower_vaarg): New pass_data.
24235         (pass_lower_vaarg): New gimple_opt_pass.
24236         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24237         (make_pass_lower_vaarg): New function.
24238         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24239         properties_required field.
24240         * passes.def (all_passes): Add pass_lower_vaarg.
24241         * tree-pass.h (PROP_gimple_lva): Add define.
24242         (make_pass_lower_vaarg): Declare.
24244 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24246         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24247         * calls.c (call_expr_flags): Same.
24249 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24251         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24252         (pass_stdarg::execute): ... here.
24254 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24255             Michael Matz  <matz@suse.de>
24257         * tree-cfg.c (make_blocks_1): Factor out of ...
24258         (make_blocks): ... here.
24259         (make_edges_bb): Factor out of ...
24260         (make_edges): ... here.
24261         (gimple_find_sub_bbs): New function.
24262         * tree-cfg.h (gimple_find_sub_bbs): Declare.
24264 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24266         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24268 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
24270         * asan.c (set_sanitized_sections): New function.
24271         (section_sanitized_p): Ditto.
24272         (asan_protect_global): Optionally sanitize user-defined
24273         sections.
24274         * asan.h (set_sanitized_sections): Declare new function.
24275         * common.opt (fsanitize-sections): New option.
24276         * doc/invoke.texi (-fsanitize-sections): Document new option.
24277         * opts-global.c (handle_common_deferred_options): Handle new
24278         option.
24280 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24282         PR debug/65771
24283         * dwarf2out.c (loc_list_from_tree): Return NULL
24284         for DEBUG_EXPR_DECL.
24286 2015-04-17  Christian Bruel  <christian.bruel@st.com>
24288         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24289         same attributes.
24291 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24293         * ira-color.c (setup_left_conflict_sizes_p): Do not process
24294         node itself when computing left conflict subnode size.
24296 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
24298         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24299         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24300         *fop_<mode>_1_sse using enabled attribute.  Use
24301         register_mixssei387nonimm_operand operand 1 predicate. Change
24302         alternative 3 constraints from "x" to "v".
24304 2015-04-16  Richard Biener  <rguenther@suse.de>
24306         PR tree-optimization/65774
24307         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24308         bit-value tracking on.
24310 2015-04-16  Richard Biener  <rguenther@suse.de>
24312         PR tree-optimization/64277
24313         * tree-vrp.c (check_array_ref): Fix anti-range handling,
24314         simplify upper bound handling.
24315         (search_for_addr_array): Simplify.
24316         (check_array_bounds): Handle ADDR_EXPRs here.
24317         (check_all_array_refs): Simplify.
24319 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
24321         * config/i386/i386.c (print_reg): Rewrite function.
24323 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24325         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24326         Invert the condition.
24328 2015-04-16  Renlin Li  <renlin.li@arm.com>
24330         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24331         simplifications for UNSIGNED_FLOAT.
24333 2015-04-16  Nick Clifton  <nickc@redhat.com>
24335         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24336         MUL_UNINIT.
24337         (enum rl78_cpu_type): New.
24338         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24339         (umulhi3_shift_virt): Remove m constraint from operand 1.
24340         (umulqihi3_virt): Likewise.
24341         * config/rl78/rl78.c (rl78_option_override): Add code to process
24342         -mcpu and -mmul options.
24343         (rl78_alloc_physical_registers): Add code to handle divhi and
24344         divsi valloc attributes.
24345         (set_origin): Likewise.
24346         * config/rl78/rl78.h (RL78_MUL_G14): Define.
24347         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24348         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24349         __RL78_Gxx__.
24350         (ASM_SPEC): Pass -mcpu on to assembler.
24351         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24352         (mulqi3_rl78): Likewise.
24353         (mulhi3_g13): Likewise.
24354         (mulhi3): Generate the G13 or G14 versions of the insn directly.
24355         (mulsi3): Likewise.
24356         (mulhi3_g14): Add clobbers of AX and BC.
24357         (mulsi3_g14): Likewise.
24358         (mulsi3_g13): Likewise.
24359         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24360         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24361         * config/rl78/rl78.opt (mmul): Initialise value to
24362         RL78_MUL_UNINIT.
24363         (mcpu): New option.
24364         (m13, m14, mrl78): New option aliases.
24365         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24366         (MULTILIB_DIRNAMES): Add g13 and g14.
24367         * doc/invoke.texi: Document -mcpu and -mmul options.
24369 2015-04-16  Richard Biener  <rguenther@suse.de>
24371         * tree-ssa-ccp.c (likely_value): See if we have operands that
24372         are marked as never simulate again and return CONSTANT in this
24373         case.
24374         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24375         not have any operands that will be simulated again as
24376         not being simulated again.
24378 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
24380         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24381         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24382         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24383         attribute.
24384         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24385         enabled attribute.
24386         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24387         *float<SWI48:mode><MODEF:mode>2_sse.
24388         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24389         enabled attribute.
24390         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24391         enabled attribute.
24393 2015-04-15  Tom de Vries  <tom@codesourcery.com>
24395         PR other/65487
24396         * function.c (push_dummy_function): New function.
24397         (init_dummy_function_start): Use push_dummy_function.
24398         (pop_dummy_function): New function.  Factored out of ...
24399         (expand_dummy_function_end): ... here.
24400         * function.h (push_dummy_function, pop_dummy_function): Declare.
24401         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24402         pop_dummy_function.
24403         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24405 2015-04-15  Jeff Law  <law@redhat.com>
24407         PR tree-optimization/47679
24408         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24409         need for forward declaration in upcoming changes.
24410         (record_conditions, record_edge_info): Likewise.
24412         PR rtl-optimization/42522
24413         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24414         SIGN_EXTRACT as a whole object rather than simplifying
24415         its operand.
24417 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
24419         PR ipa/65765
24420         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24421         and GIMPLE_PREDICT use break instead of return true. For
24422         GIMPLE_EH_DISPATCH, compare dispatch region.
24424 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
24426         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
24427         details about the implementation.  Make clear preference for
24428         __atomic builtins.  Reduce possibility of future change.
24430 2015-04-15  Nick Clifton  <nickc@redhat.com>
24432         * config/rx/rx.opt (mallow-string-insns): New option.
24433         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24434         builtin if string instructions are denied.
24435         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
24436         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
24437         appropriate.
24438         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
24439         * config/rx/rx.md (movstr): Enable pattern only if string
24440         instructions are allowed.
24441         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
24442         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
24443         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
24444         (MULTILIB_DIRNAMES): Add no-strings.
24445         * doc/invoke.texi: Document -mno-allow-string-insns.
24447 2015-04-15  Alan Modra  <amodra@gmail.com>
24449         PR target/65408
24450         PR target/58744
24451         PR middle-end/36043
24452         * calls.c (load_register_parameters): Don't load past end of
24453         mem unless suitably aligned.
24455 2015-04-15  Nick Clifton  <nickc@redhat.com>
24457         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
24458         decrement instruction as being frame related.
24459         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
24460         based addresses.
24461         If zero extending a function address enclose the operation in
24462         %code(...).
24463         (rl78_preferred_reload_class): New function.
24464         (TARGET_PREFERRED_RELOAD_CLASS): Define.
24465         * config/rl78/rl78.md: Remove useless constraints in expanders.
24466         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
24467         (mulhi3_rl78): Likewise.
24468         (mulhi3_g13): Likewise.
24469         (mulsi3_rl78): Likewise.
24470         (es_addr): Move to before the multiply patterns.
24472 2015-04-15  Alan Modra  <amodra@gmail.com>
24474         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
24475         and sequence_stack.  Add seq.
24476         (seq_stack): Delete.
24477         * function.c (prepare_function_start): Don't access x_last_insn.
24478         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
24479         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
24480         * emit_rtl.c (start_sequence, push_topmost_sequence,
24481         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
24482         sequence accessors.
24483         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
24484         remove_insn): Likewise.  Simplify.
24485         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
24486         and pop_topmost_sequence.
24487         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
24488         debug insns.
24489         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
24491 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
24493         PR target/65729
24494         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
24495         the assertiion.
24497 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
24499         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
24500         (LEGACY_INT_REGNO_P): Ditto.
24501         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
24502         (ANY_MASK_REG_P): Remove.
24503         (BND_REG_P): Rename from ANY_BND_REG_P.
24504         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
24505         legacy integer registers.  Do not handle MMX_REG_P in a special way.
24506         Merge 64byte and 32byte SSE handling.
24508 2015-04-14  Nick Clifton  <nickc@redhat.com>
24510         * expr.c (expand_assignment): Force an address offset computation
24511         into a register before changing its mode.
24512         (expand_expr_real_1): Likewise.
24514 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
24516         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
24517         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
24518         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
24519         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
24520         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
24521         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
24522         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
24523         and __aarch64_vget_lane_any.
24525 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
24527         PR rtl-optimization/65761
24528         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
24529         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
24531 2015-04-14  Richard Biener  <rguenther@suse.de>
24533         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
24534         (graphite_can_represent_scev): Use POINTER_TYPE_P.
24536 2015-04-14  Richard Biener  <rguenther@suse.de>
24538         PR tree-optimization/65758
24539         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
24540         against -1.
24541         (ccp_lattice_meet): Likewise.
24542         (bit_value_unop): Likewise.
24543         (bit_value_binop): Likewise.
24544         (bit_value_assume_aligned): Likewise.
24546 2015-04-14  Christian Bruel  <christian.bruel@st.com>
24548         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
24549         function.
24551 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
24553         PR tree-optimization/63387
24554         * match.pd ((x unord x) | (y unord y) -> (x unord y),
24555         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
24557 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
24559         * config/i386/predicates.md (any_QIreg_operand): Rename from
24560         q_regs_operand.  Do not process subregs.
24561         (QIreg_operand): Use QI_REGNO_P predicate.
24562         (ext_QIreg_operand): Ditto.
24563         (ext_register_operand): Ditto.
24564         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
24565         (AND splitters): Ditto.
24566         (AND with -65536 splitter): Add SWI48 mode for operand 0.
24567         (AND with -256 splitter): Use any_QIreg_operand predicate and
24568         SWI248 mode for operand 0.
24569         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
24570         mode for operand 0.
24571         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
24573 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
24575         * doc/plugins.texi: Rewrite first introductory paragraph.
24577 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24579         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
24580         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
24582 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24584         * ipa-profie.c (ipa_profile): Check number of parameters
24585         and possible polymorphic call targets before
24586         devirtualizing.
24588 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
24590         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
24591         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
24593 2015-04-13  Richard Biener  <rguenther@suse.de>
24595         PR tree-optimization/65204
24596         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
24597         takens for bit-CCP.
24599 2015-04-13  Richard Biener  <rguenther@suse.de>
24601         PR target/65660
24602         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
24603         and cond_not_taken_branch_cost to 4 and 2.
24604         (bdver2_cost): Likewise.
24605         (bdver3_cost): Likewise.
24606         (bdver4_cost): Likewise.
24608 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24610         * hash-table.h (hash_table constructor): Add mem stats.
24611         (alloc_entries): Likewise.
24613 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24615         * ipa-cp.c (ipcp_driver): Relase prev_edge.
24616         * passes.c (execute_one_pass): Only add transform if pass has one.
24618 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
24620         * config/i386/i386.c (ix86_option_override_internal): Don't set
24621         -fprefetch-loop-arrays if optimizing for size.
24623 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
24624             Gerald Pfeifer  <gerald@pfeifer.com>
24626         * doc/contrib.texi (Contributors): Add Martin Jambor and
24627         Michael Matz.
24629 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
24631         * BASE-VER: Set to 6.0.0.
24633         PR tree-optimization/65747
24634         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
24635         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
24637 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
24639         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
24640         sentence.  Improve grammar.
24642 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
24644         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
24646 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
24648         PR ipa/65743
24649         * ipa-inline-transform.c (speculation_removed): Remove static var.
24650         (check_speculations): New function.
24651         (clone_inlined_nodes): Do not check spculations.
24652         (inline_call): Call check_speculations.
24653         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
24654         consider non-invariants.
24656 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
24657             Martin Liska  <mliska@suse.cz>
24659         PR ipa/65722
24660         * ipa-icf.c (sem_item::compare_cgraph_references): function and
24661         variable can not match.
24662         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
24663         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
24665 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
24667         PR tree-optimization/65735
24668         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
24669         Remove visited_phis argument, add visited_bbs, avoid recursing into the
24670         same bb rather than just into the same phi node.
24671         (thread_through_normal_block): Adjust caller.
24673 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
24675         * doc/contrib.texi (Contributors): Add Ira Rosen.
24677 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
24679         * gcov.c (find_source): Fix miswording in error message.
24680         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
24681         (ix86_expand_sse_comi_round): Fix typo in error message.
24683 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
24685         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
24687 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
24689         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
24691 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
24693         PR target/65710
24694         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
24695         Print bad_spills_num and insn_pseudos_num.
24697 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24699         PR target/65694
24700         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
24701         when creating +1 values for SImode.
24703 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
24705         PR target/65729
24706         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
24707         assert.
24709 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
24710             Iain Sandoe  <iain@codesourcery.com>
24712         PR target/65351
24713         * configure: Regenerate.
24715 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
24717         PR target/65671
24718         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
24720 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
24722         * doc/contrib.texi (Contributors): Add John Marino.
24724 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
24726         PR tree-optimization/65709
24727         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
24728         TREE_TYPE (TREE_TYPE (t)).
24730 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
24732         PR target/65710
24733         * lra-int.h (lra_bad_spill_regno_start): New.
24734         * lra.c (lra_bad_spill_regno_start): New.
24735         (lra): Set up lra_bad_spill_regno_start.  Set up
24736         lra_constraint_new_regno_start unconditionally.
24737         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
24738         spill preferences.
24740 2015-04-09  Marek Polacek  <polacek@redhat.com>
24741             Jakub Jelinek  <jakub@redhat.com>
24743         PR middle-end/65554
24744         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
24745         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
24746         of STRIP_NOPS.
24748 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
24750         PR rtl-optimization/65693
24751         * combine.c (is_parallel_of_n_reg_sets): Move outside of
24752         #ifndef HAVE_cc0.
24754 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
24756         PR target/65296
24757         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
24758         device specs file if "device-specs%s" didn't resolve to a path.
24760 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
24762         PR target/65676
24763         * config/i386/i386.c (fixup_modeless_constant): New.
24764         (ix86_expand_args_builtin): Fixup modeless constant operand.
24765         (ix86_expand_round_builtin): Ditto.
24766         (ix86_expand_special_args_builtin): Ditto.
24767         (ix86_expand_builtin): Ditto.
24769 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
24771         PR target/65693
24772         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
24773         any pow2 integer in between 2 and 0x80000000U inclusive.
24775 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
24777         PR rtl-optimization/65693
24778         * combine.c (is_parallel_of_n_reg_sets): Change first argument
24779         from an rtx_insn * to an rtx.
24780         (try_combine): Adjust both callers.  Use it once more.
24782 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
24784         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
24785         (chkp_make_static_const_bounds): Search existing
24786         symbol by assembler name.  Use make_decl_one_only.
24787         (chkp_get_zero_bounds_var): Remove node search which
24788         is now performed in chkp_make_static_const_bounds.
24789         (chkp_get_none_bounds_var): Likewise.
24791 2015-04-08  Michael Witten  <mfwitten@gmail.com>
24793         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
24794         to an example.
24796 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24798         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
24800 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
24802         * doc/extend.texi (__sync Builtins): Fix grammar.
24804 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24806         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
24808 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24810         * varasm.c (emit_local): Move definition of align.
24812 2015-04-08  Julian Brown  <julian@codesourcery.com>
24814         * config/nvptx/mkoffload.c (process): Support variable mapping.
24816 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
24818         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
24819         alpha_links **.
24820         (alpha_write_one_linkage): Correct typo.
24822 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
24824         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
24826 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
24828         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
24830 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
24832         * tree-chkp.h (chkp_insert_retbnd_call): New.
24833         * tree-chkp.c (chkp_insert_retbnd_call): New.
24834         * ipa-split.c (insert_bndret_call_after): Remove.
24835         (split_function): Use chkp_insert_retbnd_call.
24836         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
24837         bounds for instrumented functions.
24839 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
24841         PR ipa/65540
24842         * calls.c (initialize_argument_information): When producing tail
24843         call also turn SSA_NAMES passed by references to original PARM_DECLs
24845 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
24847         PR target/65648
24848         * lra-remat.c (do_remat): Process input and non-input insn
24849         registers separately.
24851 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
24853         PR debug/65678
24854         * valtrack.c (debug_lowpart_subreg): New function.
24855         (dead_debug_insert_temp): Use it.
24857         PR middle-end/65680
24858         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
24859         into signed HOST_WIDE_INT the same as negative bit_offset.
24861 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
24863         * ipa-comdats.c (ipa_comdats): Visit all thunks
24864         to set proper comdat group.
24866 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24868         PR target/65489
24869         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
24870         on constants for NEON VSTRUCT modes.
24872 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
24873             Iain Sandoe  <iain@codesourcery.com>
24875         PR target/65351
24876         * configure: Regenerate.
24878 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24880         PR target/65614
24881         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
24882         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
24883         that LFD is used to load double constants instead of LFS.  Add
24884         defaults for all costs structures.  Add comments for missing
24885         initialization fields.
24886         (size32_cost): Likewise.
24887         (size64_cost): Likewise.
24888         (rs64a_cost): Likewise.
24889         (mpccore_cost): Likewise.
24890         (ppc403_cost): Likewise.
24891         (ppc405_cost): Likewise.
24892         (ppc440_cost): Likewise.
24893         (ppc476_cost): Likewise.
24894         (ppc601_cost): Likewise.
24895         (ppc603_cost): Likewise.
24896         (ppc604_cost): Likewise.
24897         (ppc604e_cost): Likewise.
24898         (ppc620_cost): Likewise.
24899         (ppc630_cost): Likewise.
24900         (ppccell_cost): Likewise.
24901         (ppc750_cost): Likewise.
24902         (ppc7450_cost): Likewise.
24903         (ppc8540_cost): Likewise.
24904         (ppce300c2c3_cost): Likewise.
24905         (ppce500mc_cost): Likewise.
24906         (ppce500mc64_cost): Likewise.
24907         (ppce5500_cost): Likewise.
24908         (ppce6500_cost): Likewise.
24909         (titan_cost): Likewise.
24910         (power4_cost): Likewise.
24911         (power6_cost): Likewise.
24912         (power7_cost): Likewise.
24913         (power8_cost): Likewise.
24914         (ppca2_cost): Likewise.
24915         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
24917         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
24918         instead of XXLOR to copy SFmode to clear out dirty bits created
24919         when SFmode denormals are generated.
24920         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
24921         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
24923 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
24925         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
24926         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
24927         * config/aarch64/aarch64-tune.md: Regenerate.
24929 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
24931         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
24932         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
24933         * config/arm/arm-cores.def (exynos-m1): New core.
24934         * config/arm/arm-tune.md: Regenerate.
24935         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
24936         * config/arm/bpabi.h: Likewise.
24938 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
24940         * ipa-cp (set_single_call_flag): Remove too
24941         restrictive assert.
24943 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
24945         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
24946         GOMP_offload_unregister from the destructor.
24948 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
24950         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
24951         flags for instrumentation thunk.
24952         (chkp_produce_thunks): Likewise.
24954 2015-04-05  Martin Liska  <mliska@suse.cz>
24956         PR ipa/65665
24957         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
24958         has computed data structure.
24959         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24961 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
24963         * invoke.texi (inline-unit-growth): Increase growth to 20%
24964         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
24966 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
24968         PR target/65647
24969         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
24970         value checking.
24971         (lra_rematerialization_iter): New.
24972         * lra.c (lra): Initialize lra_rematerialization_iter.
24973         Stop updating lra_constraint_new_regno_start after switching of
24974         inheritance and rematerialization.
24975         * lra-remat.c (lra_rematerialization_iter): New.
24976         (lra_remat): Add printing pass iteration.  Do rematerialization
24977         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
24979 2015-04-04  Richard Biener  <rguenther@suse.de>
24981         PR tree-optimization/64909
24982         PR tree-optimization/65660
24983         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
24984         to take a cost vector for scalar iteration cost.
24985         (vect_get_single_scalar_iteration_cost): Likewise.
24986         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
24987         Compute the scalar iteration cost into a cost vector.
24988         (vect_get_known_peeling_cost): Use the scalar cost vector to
24989         account for the cost of the peeled iterations.
24990         (vect_estimate_min_profitable_iters): Likewise.
24991         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24992         Likewise.
24994 2015-04-04  Alan Modra  <amodra@gmail.com>
24996         PR target/65576
24997         PR target/65240
24998         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
24999         0.0 constant unless TARGET_VSX.
25000         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25001         alternative.
25003 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25005         PR ipa/65654
25006         * ipa-inline-transform.c (inline_call): Skip sanity check to work
25007         around the ICE
25009 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25011         PR ipa/65655
25012         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25013         speculative indirect edges to avoid ordering issue.
25015 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25017         PR ipa/65076
25018         * ipa-inline.c (edge_badness): Add combined size to the denominator.
25020 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
25022         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25023         TYPE_ARTIFICIAL on the .omp_data* types.
25025 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25027         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25028         instrumentation thunks.
25030 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25032         * config/i386/i386.c (ix86_expand_call): Avoid nested
25033         PARALLEL in returned call value.
25035 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25037         * lto-cgraph.c (input_cgraph_1): Always link instrumented
25038         assembler name with original one.
25040 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25042         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25044 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25046         Revert parts of r216820.
25047         * config/i386/i386.md (movqi_internal): Correct type calculation
25048         for alternatives 3 and 5.
25050 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
25052         PR preprocessor/61977
25053         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25054         predefine __vector/__bool/__pixel macros nor context sensitive
25055         macros for CLK_ASM.
25056         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25058 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
25060         * config/pa/pa.c (pa_output_move_double): Directly handle register
25061         indexed memory operand.  Simplify handling of scaled register indexed
25062         memory operands.
25064 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25066         PR driver/65444
25067         * config/i386/linux-common.h (MPX_SPEC): New.
25068         (CHKP_SPEC): Add MPX_SPEC.
25069         * doc/invoke.texi (-fcheck-pointer-boudns): Document
25070         possible issues with '-z bndplt' support in linker.
25072 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25074         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25075         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25076         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25077         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25078         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25080 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
25082         * config/i386/sync.md (UNSPEC_MOVA): Remove.
25083         (atomic_load<mode>): Change operand 0 predicate to
25084         nonimmediate_operand and fix up the destination when needed.
25085         Use UNSPEC_LDA.
25086         (atomic_loaddi_fpu): Use UNSPEC_LDA.
25087         (atomic_store<mode>): Change operand 1 predicate to
25088         nonimmendate_operand and move the source to register when needed.
25089         Use UNSPEC_STA.
25090         (atomic_store<mode>_1): Use UNSPEC_STA.
25091         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25092         Fix moves from memory operand.  Use UNSPEC_STA.
25094 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25096         * expmed.c (strict_volatile_bitfield_p): Check that the access will
25097         not cross a MODESIZE boundary.
25098         (store_bit_field, extract_bit_field): Added assertions in the
25099         strict volatile bitfields code path.
25101 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
25103         PR target/65624
25104         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25105         Increase args array size by one to avoid buffer overflow.
25107 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25109         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25110         split_part.
25111         * ipa-inline.c (edge_badness): Add wrapper penalty.
25112         (sum_callers): Move up.
25113         (inline_small_functions): Set single_caller.
25114         * ipa-inline.h (inline_summary): Add single_caller.
25115         * ipa-split.c (split_function): Set split_part.
25116         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25117         * cgraph.h (cgraph_node): Add split_part.
25119 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
25121         PR target/58945
25122         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25123         Do not split operands 0 and operands 2 to halfmode.
25124         (atomic_compare_and_swap<mode>): Update for
25125         atomic_compare_and_swap<dwi>_doubleword changes.
25127 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25129         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25130         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25131         no caching is done.
25133 2015-03-31  Martin Liska  <mliska@suse.cz>
25135         PR ipa/65557
25136         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25137         has already filled up function summary.
25138         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25140 2015-03-31  Richard Biener  <rguenther@suse.de>
25142         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25143         of types.
25145 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25147         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25148         nested functions.
25149         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25150         (s390_asm_output_function_label): Adapt to new signature of
25151         s390_function_num_hotpatch_hw
25152         Optimise the code generating assembler output.
25153         Add comments to assembler file.
25155 2015-03-31  Richard Biener  <rguenther@suse.de>
25157         PR middle-end/65626
25158         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25159         of the noreturn call so it is last and cleanup_control_flow_bb
25160         can do the CFG part.
25162 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
25164         PR target/65531
25165         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25166         same_comdat_group for external symbols.
25167         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25168         infinite same_comdat_group traversal loop.
25170 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
25172         PR plugins/61176
25173         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25174         automatically to $headers.
25176 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
25178         PR ipa/65610
25179         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25180         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25181         function.
25182         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25183         Use it.
25184         * ipa-prop.c (param_type_may_change_p): Likewise.
25185         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25186         (remove_unused_scope_block_p): Add in_ctor_dtor_block
25187         argument.  Before inlining, preserve
25188         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25189         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
25190         recursive calls.
25191         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25193 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25195         PR ipa/65076
25196         * ipa-inline.c (edge_badness): Base denominator on callee's
25197         grwoth squared.
25199 2015-03-27  Martin Jambor  <mjambor@suse.cz>
25201         PR ipa/65478
25202         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25203         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25204         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25205         node_calling_single_call.
25206         * ipa-cp.c (count_callers): New function.
25207         (set_single_call_flag): Likewise.
25208         (initialize_node_lattices): Count callers and set single_flag_call if
25209         necessary.
25210         (incorporate_penalties): New function.
25211         (good_cloning_opportunity_p): Use it, dump new flags.
25212         (propagate_constants_topo): Set node_within_scc flag if appropriate.
25213         * doc/invoke.texi (ipa-cp-recursion-penalty,
25214         ipa-cp-single-call-pentalty): Document.
25216 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25218         PR ipa/65588
25219         * symtab.c (symtab_node::get_partitioning_class): Register vars
25220         are duplicated.
25221         * varpool.c (symbol_table::output_variables) Do not assemble unefined
25222         decls for non-symbols.
25224 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25226         PR target/65248
25227         * output.h (default_binds_local_p_2): New.
25228         * varasm.c (default_binds_local_p_2): Renamed to ...
25229         (default_binds_local_p_3): This.  Don't return true on protected
25230         data symbol if protected data may be external.
25231         (default_binds_local_p): Use default_binds_local_p_3.
25232         (default_binds_local_p_1): Likewise.
25233         (default_binds_local_p_2): New.
25234         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25235         default_binds_local_p_2 if TARGET_MACHO is undefined.
25237 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
25239         PR target/65593
25240         * config/i386/i386.c (legitimize_pic_address): If base
25241         is SYMBOL_REF or LABEL_REF using %rip addressing, force
25242         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25244 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25246         PR target/65531
25247         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25248         comdat groups.
25250 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25252         PR ipa/65600
25253         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25254         of optimized out indirect call.
25255         (redirect_to_unreachable): Always build symbol table node for
25256         BUILT_IN_UNREACHABLE
25258 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25260         PR target/65407
25261         * ira-costs.c (record_reg_classes): Process all constraint string
25262         containing 0-9.
25264 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
25266         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25267         memory_operand.
25269         PR target/65052
25270         * config/c6x/constraints.md (S3): New constraint.
25271         * config/c6x/c6x.md (real_jump): Use it.
25273 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25275         PR middle-end/65595
25276         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25277         do redirection if the call is not optimized out.
25279 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
25281         PR target/65495
25282         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25283         (fchkp-check-incomplete-type): Add LTO.
25284         (fchkp-zero-input-bounds-for-main): Likewise.
25285         (fchkp-first-field-has-own-bounds): Likewise.
25286         (fchkp-narrow-bounds): Likewise.
25287         (fchkp-narrow-to-innermost-array): Likewise.
25288         (fchkp-use-static-bounds): Likewise.
25289         (fchkp-use-static-const-bounds): Likewise.
25290         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25292 2015-03-27  Marek Polacek  <polacek@redhat.com>
25294         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25296 2015-03-27  Marek Polacek  <polacek@redhat.com>
25298         PR sanitizer/65583
25299         * ubsan.c (ubsan_create_edge): New function.
25300         (instrument_bool_enum_load): Call it.
25301         (instrument_nonnull_arg): Likewise.
25302         (instrument_nonnull_return): Likewise.
25303         (instrument_object_size): Likewise.
25305 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25307         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25308         auto_vec.
25310 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25312         PR lto/65536
25313         * lto-streamer.h (class lto_location_cache): New.
25314         (struct data_in): Add location_cache.
25315         (lto_input_location): Update prototype.
25316         (stream_input_location_now): New.
25317         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25318         pointer to location.
25319         (stream_input_location): Update.
25320         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25321         (warn_odr): Apply location cache before warning.
25322         (lto_input_location): Update prototype.
25323         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25324         Use stream_input_location_now.
25325         * lto-streamer-in.c (lto_location_cache::current_cache): New static
25326         variable.
25327         (lto_location_cache::cmp_loc): New function.
25328         (lto_location_cache::apply_location_cache): New function.
25329         (lto_location_cache::accept_location_cache): New function.
25330         (lto_location_cache::revert_location_cache): New function.
25331         (lto_location_cache::input_location): New function.
25332         (lto_input_location): Do location caching.
25333         (stream_input_location_now): New function.
25334         (input_eh_region, input_struct_function_base): Use
25335         stream_input_location_now.
25336         (lto_data_in_create): use new.
25337         (lto_data_in_delete): Use delete.
25338         * tree-streamer-in.c (unpack_ts_block_value_fields,
25339         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25340         lto_input_ts_exp_tree_pointers): Update for cached location api.
25342 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25344         PR ipa/65076
25345         * passes.def: Add pass_nothrow.
25346         * ipa-pure-const.c: (pass_data_nothrow): New.
25347         (pass_nothrow): New.
25348         (pass_nothrow::execute): New.
25349         (make_pass_nothrow): New.
25350         * tree-pass.h (make_pass_nothrow): Declare.
25352 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25354         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25355         edge to change by speculation resolution or redirection.
25356         (edge_set_predicate): Likewise.
25357         (inline_summary_t::duplicate): Likewise.
25358         (remap_edge_summaries): Likewise.
25360 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25362         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25363         New macros.
25364         (can_inline_edge_p): Relax option matching for always inline functions.
25366 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
25368         PR target/65561
25369         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25370         Check operand 4 and operand 0 for equality.
25371         (avx512f_vextract<shuffletype>32x4_1_maskm):
25372         Check operand 6 and operand 0 for equality.
25373         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25374         for equality.
25375         (vec_extract_hi_<mode>_maskm): Ditto.
25377 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25379         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25380         dead calls back to live.
25381         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25382         cross check to ...
25383         (cgraph_node::verify_node): ... here; verify only callee edges,
25384         not caller.
25385         * cif-code.def (CILK_SPAWN): New code.
25387 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25389         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25390         (edge_set_predicate): Use it to mark unreachable edges.
25391         (inline_summary_t::duplicate): Remove unnecesary code.
25392         (remap_edge_summaries): Likewise.
25393         (dump_inline_summary): Report contains_cilk_spawn.
25394         (compute_inline_parameters): Compute contains_cilk_spawn.
25395         (inline_read_section, inline_write_summary): Stream
25396         contains_cilk_spawn.
25397         * ipa-inline.c (can_inline_edge_p): Do not touch
25398         DECL_STRUCT_FUNCTION that may not be available;
25399         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25400         remove check for callee_fun->can_throw_non_call_exceptions and
25401         replace it by optimization attribute check; check for flag_exceptions.
25402         * ipa-inline-transform.c (inline_call): Maintain
25403         DECL_FUNCTION_PERSONALITY
25404         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25406 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
25408         PR tree-optimization/65551
25409         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25410         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25412 2015-03-26  Richard Biener  <rguenther@suse.de>
25414         PR middle-end/65555
25415         * tree-cfg.c (verify_gimple_call): Do not require a call to
25416         have no LHS if it wasn't recognized as control altering yet.
25418 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
25420         PR tree-optimization/64715
25421         * passes.def: Add another instance of pass_object_sizes before ccp1.
25422         * tree-object-size.c (pass_object_sizes::execute): In
25423         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25424         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25425         __bos result and the computed constant.  Remove redundant
25426         checks, obsoleted by gimple_call_builtin_p test.
25428         * var-tracking.c (variable_tracking_main_1): Don't track
25429         variables for targetm.no_register_allocation targets.
25431 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
25433         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25434         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
25436 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
25438         PR target/65569
25439         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
25440         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
25441         0.0 is correctly setup.
25442         (extenddftf2_internal): Likewise.
25444 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
25446         PR tree-optimization/65177
25447         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
25448         (bb_in_bbs): New.
25449         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
25450         edges not adjacent on the path to the original code.
25452 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
25454         PR bootstrap/65537
25455         * doc/install.texi (Building a native compiler): Document new
25456         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
25457         configuration assumes that the host supports the linker plugin.
25459 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
25461         PR target/65508
25462         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
25463         chain for generated call.
25465 2015-03-25  Richard Biener  <rguenther@suse.de>
25467         * passes.c (pass_manager::execute_early_local_passes): Guard
25468         execution of pass_chkp_instrumentation_passes with
25469         flag_check_pointer_bounds.
25470         (pass_chkp_instrumentation_passes::gate): Likewise.
25472 2015-03-25  Martin Liska  <mliska@suse.cz>
25474         PR tree-optimization/65538
25475         * symbol-summary.h (function_summary::~function_summary):
25476         Relese memory for allocated summaries.
25477         (function_summary::release): New function.
25479 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
25481         PR lto/65515
25482         * lto-streamer-out.c (DFS::worklist): New struct.
25483         (DFS::worklist_vec): New data member.
25484         (DFS::next_dfs_num): Remove.
25485         (DFS::DFS): Rewritten using worklist instead of recursion,
25486         using most of code from DFS::DFS_write_tree.
25487         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
25488         pass it to DFS_write_tree calls.
25489         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
25490         quick initial checks push it into worklist_vec and return.
25492 2015-03-25  Richard Biener  <rguenther@suse.de>
25494         PR middle-end/65519
25495         * genmatch.c (expr::gen_transform): Re-write to avoid
25496         using gimple_build.
25498 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
25500         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
25502 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
25504         * config/arm/arm.opt (print_tune_info): New option.
25505         * config/arm/arm.c (arm_print_tune_info): New function.
25506         (arm_file_start): Call arm_print_tune_info.
25507         * config/arm/arm-protos.h (struct tune_params): Add comment.
25508         * doc/invoke.texi (@item -mprint-tune-info): New item.
25509         (-mtune): mention it in ARM Option Summary.
25511 2015-03-25  DJ Delorie  <dj@redhat.com>
25513         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
25514         correct clause.
25516 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
25517             Martin Liska  <mliska@suse.cz>
25519         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
25520         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
25521         (sem_item::add_type): New function.
25522         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
25523         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
25524         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
25525         (sem_function::equals_wpa): Fix typo.
25526         * ipa-icf.h (sem_item::add_type): New function.
25527         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
25528         order.
25530 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
25532         PR tree-optimization/65533
25533         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
25534         with swapped operands, call vect_free_slp_tree on
25535         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
25536         vector.
25538 2015-03-24  Richard Biener  <rguenther@suse.de>
25540         PR middle-end/65517
25541         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
25542         for fixup if necessary.
25544 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
25546         * doc/extend.texi (Function Attributes): Add @cindex entries
25547         for all attributes and regularize their format.  Delete text
25548         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
25549         information about "eightbit_data", "tiny_data", and "model"
25550         variable attributes to the Variable Attributes section.  Fix
25551         some obvious typos and copy-editing issues.
25552         (Variable Attributes, Type Attributes): Likewise add/fix
25553         @cindex entries for all attributes.
25555 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
25557         PR target/65523
25558         * tree-chkp.c (chkp_build_returned_bound): Ignore
25559         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
25561 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
25563         PR target/65505
25564         * config/sh/predicates.md (simple_mem_operand,
25565         displacement_mem_operand): Add test for reg.
25566         (short_displacement_mem_operand): Test for displacement_mem_operand
25567         before invoking sh_disp_addr_displacement.
25568         * config/sh/constraints.md (Sdd, Sra): Simplify.
25569         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
25570         Remove redundant displacement_mem_operand tests.
25572 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
25574         PR target/65296
25575         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
25576         the same -mmcu=MCU more than once.
25578 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
25580         PR bootstrap/65522
25581         * ipa-devirt.c: Remove duplicate demangle.h include.
25583         PR target/65504
25584         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
25585         on the pseudo.
25586         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
25587         REG_POINTER on *destptr after adjusting it for prologue size.
25589         PR ipa/65521
25590         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
25591         ultimate_alias_target ()->order ints instead of
25592         ultimate_alias_target () pointers.
25594 2015-03-23  Richard Biener  <rguenther@suse.de>
25596         PR tree-optimization/65518
25597         * tree-vect-stmts.c (vectorizable_load): Reject single-element
25598         interleaving cases we generate absymal code for.
25600 2015-03-23  Richard Biener  <rguenther@suse.de>
25602         PR tree-optimization/65494
25603         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
25604         matches here.
25605         (vect_analyze_slp_instance): But do that here, always and once.
25607 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25609         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
25610         adding T or multiplying by T+1 and subracting T.
25612 2015-03-22  Jeff Law  <law@redhat.com>
25614         PR rtl-optimization/64317
25615         * Makefile.in (OBJS): Add gcse-common.c
25616         * gcse.c: Include gcse-common.h
25617         (struct modify_pair_s): Move structure definition to gcse-common.h
25618         (compute_transp): Move function to gcse-common.c.
25619         (canon_list_insert): Similarly.
25620         (record_last_mem_set_info): Break out some code and put it into
25621         gcse-common.c.  Call into the new common code.
25622         (compute_local_properties): Pass additional arguments to compute_transp.
25623         * postreload-gcse.c: Include gcse-common.h and df.h
25624         (modify_mem_list_set, blocks_with_calls): New variables.
25625         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
25626         (get_bb_avail_insn): Pass in the expression index too.
25627         (alloc_mem): Allocate memory for the new bitmaps and lists.
25628         (free_mem): Free memory for the new bitmaps and lists.
25629         (insert_expr_in_table): Record a bitmap index for each entry we
25630         add to the table.
25631         (record_last_mem_set_info): Call into common code in gcse-common.c.
25632         (get_bb_avail_insn): If no available insn was found in the requested
25633         BB.  If BB has a single predecessor, see if the expression is
25634         transparent in BB and available in that single predecessor.
25635         (compute_expr_transp): New wrapper for compute_transp.
25636         (eliminate_partially_redundant_load): Pass expression's bitmap_index
25637         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
25638         (gcse_after_reload_main): If there are elements in the hash table,
25639         then compute transparency for all the elements in the hash table.
25640         * gcse-common.h: New file.
25641         * gcse-common.c: New file.
25643 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
25645         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
25646         as an adjective.
25647         (System Headers): Likewise.
25648         (Ifdef): Likewise.
25649         (Traditional macros): Likewise.
25650         (Invocation): Likewise.
25651         (Option Index): Likewise.
25652         * doc/cppopts.texi (-M): Likewise.
25653         (-finput-charset): Likewise.
25654         (--help): Likewise.
25655         * doc.invoke.texi (AVR Options): Likewise.
25656         (V850 Options): Likewise.
25658 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
25660         PR ipa/65475
25661         * ipa-devirt.c: Include demangle.h
25662         (odr_type_d): Add field rtti_broken.
25663         (odr_subtypes_equivalent_p): Do not require name to match.
25664         (compare_virtual_tables): Fix typo; if type already has ODR violation,
25665         bypass the tests; be ready for function referneces in vtables that are
25666         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
25667         (warn_odr): Give up for nameless types.
25668         (warn_types_mismatch): Report mismatch in mangled names;
25669         report mismatch in anonymous namespaces; look into component types to
25670         give useful error; report when mismatch is dragged in from other ODR
25671         type.
25672         (odr_types_equivalent_p): Match types for being polymorphic; avoid
25673         duplicated diagnostics.
25674         (add_type_duplicate): Reorder checks so more informative ones come
25675         first; fix typo; do not output "the extra base is defined here" when
25676         we did not warn.
25677         (BINFO_N_BASE_BINFOS): Relax sanity check.
25679 2015-03-22  Martin Liska  <mliska@suse.cz>
25680             Jakub Jelinek  <jakub@redhat.com>
25682         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
25683         masks that can potentially include a builtin.
25684         (ix86_add_new_builtins): Introduce fast filter for isa values
25685         that cannot trigger builtin inclusion.
25687 2015-03-22  Martin Liska  <mliska@suse.cz>
25689         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
25690         (sem_item::update_hash_by_local_refs): Likewise.
25691         (sem_variable::get_hash): Empty line is fixed.
25692         (sem_item_optimizer::execute): Include adding of hash references.
25693         (sem_item_optimizer::update_hash_by_addr_refs): New function.
25694         (sem_item_optimizer::build_hash_based_classes): Use local hash.
25695         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
25696         (sem_item::update_hash_by_local_refs): Likewise.
25698 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
25700         PR ipa/65502
25701         * ipa-comdats.c (enqueue_references): Walk through thunks.
25702         (ipa_comdats): Likewise.
25703         (set_comdat_group_1): New function.
25705 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
25707         PR ipa/65475
25708         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
25709         non-polymorphic
25711 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
25712             Gerald Pfeifer  <gerald@pfeifer.com>
25714         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
25716 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
25717             Sandra Loosemore  <sandra@codesourcery.com>
25719         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
25720         function parameter declaration.
25721         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
25722         Update arguments to nios2_adjust_call_address().
25723         (sibcall_internal): Rename from *sibcall.
25724         (sibcall_value_internal): Rename from *sibcall_value.
25725         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
25726         (nios2_large_got_address): Add target temp reg parameter.
25727         (nios2_got_address): Adjust call to nios2_large_got_address, add
25728         force_reg around it.
25729         (nios2_load_pic_address): Add target temp reg parameter, replace call
25730         to nios2_got_address with corresponding code.
25731         (nios2_legitimize_constant_address): Update call to
25732         nios2_load_pic_address.
25733         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
25734         to use temp reg for PIC loading purposes.
25735         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
25736         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25737         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
25739 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
25741         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
25742         usage of "the @option{...}".
25743         (-Wopenmp-simd): Likewise.
25744         (-fsanitize-recover): Likewise.
25745         (-fsanitize-undefined-trap-on-error): Likewise.
25746         (-flto): Likewise.
25747         (tracer-dynamic-coverage-feedback): Likewise.
25748         (reorder-block-duplicate-feedback): Likewise.
25749         (loop-unroll-jam-size): Likewise.
25750         (-B): Likewise.
25751         (-I-): Likewise.
25752         (-mabs=legacy): Likewise.
25753         (-mupper-regs-df): Likewise.
25754         (-mupper-regs-sf): Likewise.
25755         (-mpointers-to-nested-functions): Likewise.
25757 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
25759         * doc/extend.texi (Cilk Plus Builtins): Add markup.
25761 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
25763         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
25764         additional index entries and cross-references.
25765         (-fchkp-check-incomplete-type): Likewise.
25766         (-fchkp-first-field-has-own-bounds): Likewise.
25767         (-fchkp-narrow-to-innermost-array): Likewise.
25768         (-fchkp-use-fast-string-functions): Likewise.
25769         (-fchkp-use-nochk-string-functions): Likewise.
25770         (-fchkp-use-static-const-bounds): Likewise.
25771         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25772         (-fchkp-instrument-marked-only): Likewise.
25773         (-fchkp-use-wrappers): Likewise.
25774         (-static-libmpx): Likewise.
25775         (-static-libmpxwrappers): Likewise.
25776         * doc/extend.texi (bnd_legacy): Likewise.
25777         (bnd_instrument): Likewise.
25778         (bnd_variable_size): Likewise.
25779         (Pointer Bounds Checker builtins): Likewise.
25781 2015-03-21  Tom de Vries  <tom@codesourcery.com>
25783         PR tree-optimization/65458
25784         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
25785         * cgraph.h (cgraph_node): Add parallelized_function field.
25786         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
25787         (input_overwrite_node): Read parallelized_function field.
25788         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
25789         parallelized_function on cgraph_node for child_fn.
25790         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
25791         Remove include of gt-tree-parloops.h.
25792         (parallelized_functions): Remove static variable.
25793         (parallelized_function_p): Rewrite using parallelized_function field of
25794         cgraph_node.
25795         (create_loop_fn): Remove adding to parallelized_functions.
25796         * Makefile.in (GTFILES): Remove tree-parloops.c
25798 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
25800         PR rtl-optimization/64366
25801         * lra.c (lra_update_insn_regno_info): Consider regs in
25802         CALL_INSN_FUNCTION_USAGE memory.
25804 2015-03-20  Richard Biener  <rguenther@suse.de>
25806         PR middle-end/64715
25807         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
25808         for type comparison and gcc_checking_assert.
25809         (chrec_fold_plus_poly_poly): Likewise.
25810         (chrec_fold_multiply_poly_poly): Likewise.
25811         (chrec_convert_1): Likewise.
25812         * gimplify.c (gimplify_expr): Remove premature folding of
25813         &X + CST to &MEM[&X, CST].
25815 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
25817         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
25818         already is final.
25819         (ipa_inline): Recompute inline_failed codes.
25820         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25821         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
25822         CIF_FINAL_ERROR.
25824 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
25826         PR rtl-optimization/60851
25827         * recog.c (constrain_operands): Accept a pseudo register before reload
25828         for LRA enabled targets.
25830 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
25832         PR target/65240
25833         * config/rs6000/predicates.md (easy_fp_constant): Remove special
25834         -ffast-math handling that kept non-0 constants live in the RTL
25835         until reload.  Remove logic testing the number of instructions it
25836         took to create a constant in a GPR that was never used, due to a
25837         test for soft-float earlier.
25838         (memory_fp_constant): Delete, no longer used.
25840         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
25841         alternatives for loading non-0 constants into GPRs for hard
25842         floating point that is no longer needed due to changes in
25843         easy_fp_constant.  Add support for loading 0.0 into GPRs.
25844         (mov<mode>_hardfloat32): Likewise.
25845         (mov<mode>_hardfloat64): Likewise.
25846         (mov<mode>_64bit_dm): Likewise.
25847         (movtd_64bit_nodm): Likewise.
25848         (pre-reload move FP constant define_split): Delete define_split,
25849         since it is no longer used.
25850         (extenddftf2_internal): Remove GHF constraints that are not valid
25851         for extenddftf2.
25853 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
25855         PR rtl-optimization/63491
25856         * lra-constraints.c (check_and_process_move): Use src instead of
25857         sreg.  Remove some dead code.
25859 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
25861         PR ipa/65380
25862         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
25863         (sem_variable::merge): Likewise.
25865 2015-03-19  Martin Liska  <mliska@suse.cz>
25867         PR ipa/65465
25868         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
25869         all fields of cgraph_thunk_info.
25871 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
25873         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
25874         clone instrumented thunks.
25876 2015-03-19  Richard Biener  <rguenther@suse.de>
25878         Revert
25879         2015-03-10  Richard Biener  <rguenther@suse.de>
25881         PR middle-end/63155
25882         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25883         * tree-ssa-coalesce.c: Include timevar.h.
25884         (attempt_coalesce): Handle graph being NULL.
25885         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25886         Split out abnormal coalescing to ...
25887         (perform_abnormal_coalescing): ... this function.
25888         (coalesce_ssa_name): Perform abnormal coalescing without computing
25889         live/conflict.
25890         (verify_ssa_coalescing_worker): New function.
25891         (verify_ssa_coalescing): Likewise.
25893 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25894             Jakub Jelinek  <jakub@redhat.com>
25896         PR sanitizer/65400
25897         * tsan.c (instrument_gimple): Clear tail call flag on
25898         calls.
25900 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
25902         PR sanitizer/65400
25903         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
25904         call in the return bb.
25905         (find_split_points): Add RETURN_BB argument, don't call
25906         find_return_bb.
25907         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
25908         if true append TSAN_FUNC_EXIT internal call after the call to
25909         the split off function.
25910         (execute_split_functions): Call find_return_bb here.
25911         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
25912         Adjust find_split_points and split_function calls.
25914 2015-03-18  DJ Delorie  <dj@redhat.com>
25916         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
25917         (iorqi3_virt): Likewise.
25919 2015-03-18  Tom de Vries  <tom@codesourcery.com>
25921         * tree-parloops.c (parallelize_loops): Make static.
25922         * tree-parloops.h (parallelize_loops): Remove extern declaration.
25924 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
25926         PR middle-end/64491
25927         Revert:
25928         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
25930         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
25931         condition would be removed due to undefined behaviour.
25933 2015-03-18  Martin Liska  <mliska@suse.cz>
25935         PR ipa/65432
25936         * cgraph.c (cgraph_node::get_create): Remove unnecessary
25937         xstrdup_for_dump wrapper.
25938         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
25939         sem_item::name.
25940         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
25941         with xstrdup_for_dump.
25942         (sem_variable::equals): Likewise.
25943         (sem_item_optimizer::read_section): Use symtab_node::name instead of
25944         sem_item::name.
25945         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
25946         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
25947         symtab_node::asm_name with xstrdup_for_dump.
25948         (congruence_class::dump): Use symtab_node::name instead of
25949         sem_item::name.
25950         * ipa-icf.h (symtab_node::name): Remove.
25951         (symtab_node::asm_name): Likewise.
25953 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
25955         PR tree-optimization/65450
25956         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
25957         function.
25958         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
25959         it instead of duplicate_ssa_name_ptr_info.
25961         PR target/65222
25962         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
25964 2015-03-18  Richard Biener  <rguenther@suse.de>
25966         * tree-data-ref.h (struct access_matrix): Remove.
25967         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
25968         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
25969         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
25970         (am_vector_index_for_loop): Likewise.
25971         (struct data_reference): Remove access_matrix member.
25972         (DR_ACCESS_MATRIX): Remove.
25973         (lambda_vector_new): Add comment.
25974         (lambda_matrix_new): Use XOBNEWVEC.
25976 2015-03-18  Richard Biener  <rguenther@suse.de>
25978         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
25979         (pass_ch::execute): Cleanup the CFG only if we did sth.
25980         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
25982 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25984         * expmed.c (synth_mult): Use std::swap instead of manually
25985         swapping algorithms.
25987 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
25989         PR target/65078
25990         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
25992 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
25994         PR target/65296
25995         * config/avr/avr.opt (-nodevicelib): New option.
25996         * doc/invoke.texi (AVR Options): Document it.
25997         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
25998         libgcc.a, libc.a, libm.a.
25999         * config/avr/specs.h: Same.
26000         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26001         which don't (directly) depend on the device.  Print more help.
26002         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26003         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26004         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26005         case of an error.
26006         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26007         for specs file name.
26008         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26009         * config/avr/avr-mcus.def: Adjust initializers and comments.
26011 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
26013         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26014         DECL_ONE_ONLY to check if decl is one only.
26015         * ipa-split.c (consider_split): Limit splitt of one only functions.
26017 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26019         PR tree-optimization/65427
26020         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26021         functions.
26022         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26024 2015-03-16  Marek Polacek  <polacek@redhat.com>
26026         * cgraph.h (add_new_static_var): Remove declaration.
26027         * varpool.c (add_new_static_var): Remove function.
26029 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26031         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26032         instead of vec<tree> * with vec_alloc and release for args.
26033         Adjust all users.
26035         PR middle-end/65431
26036         * omp-low.c (delete_omp_context): Only splay_tree_delete
26037         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26038         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
26040 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26042         PR sanitizer/64820
26043         * cfgexpand.c (align_base): New function.
26044         (alloc_stack_frame_space): Call it.
26045         (expand_stack_vars): Align prev_frame to be sure
26046         data->asan_vec elements aligned properly.
26048 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
26050         PR middle-end/65409
26051         * expr.c (store_field): Do not do a direct block copy if the source is
26052         a PARALLEL with BLKmode.
26054 2015-03-16  Tom de Vries  <tom@codesourcery.com>
26056         PR middle-end/65414
26057         Revert:
26058         2015-03-12  Tom de Vries  <tom@codesourcery.com>
26060         PR rtl-optimization/64895
26061         * lra-lives.c (check_pseudos_live_through_calls): Use
26062         actual_call_used_reg_set instead of call_used_reg_set, if available.
26064 2015-03-16  Alan Modra  <amodra@gmail.com>
26066         PR target/63150
26067         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26068         Modify Z->r bswapdi splitter to use dest in place of scratch.
26069         In r->Z and Z->r bswapdi splitter rename word_high, word_low
26070         to word1, word2 and rearrange logic to suit.
26071         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26072         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
26073         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26074         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
26075         early clobber.
26077 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
26079         PR tree-optimization/65369
26080         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26081         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26082         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26084         PR tree-optimization/65418
26085         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26086         are casts in the first PLUS_EXPR operand, ensure tbias and
26087         *totallowp are in the inner type.
26089         PR rtl-optimization/65401
26090         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26091         argument.  If true, adjust_address_nv of x with big-endian
26092         correction for the mode widening to GET_MODE (y).
26093         (make_field_assignment): Don't do MEM mode widening here.
26094         Use MEM_P instead of GET_CODE == MEM.
26096 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
26098         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26099         the external decls.
26101 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26103         PR target/64600
26104         * config/arm/arm.c (arm_gen_constant, AND case): Use
26105         ARM_SIGN_EXTEND when constructing AND mask.
26107 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26109         * graph.c (print_graph_cfg): Make function names visible and append
26110         parenthesis to it.  Also make groups of basic blocks belonging to the
26111         same function visible.
26113 2015-03-12  Richard Biener  <rguenther@suse.de>
26115         PR middle-end/44563
26116         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26117         to avoid quadratic behavior with inline expansion splitting blocks.
26118         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26119         with the successor if the predecessor will be merged with it.
26120         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26121         entry block with its successor.
26123 2015-03-13  Richard Biener  <rguenther@suse.de>
26125         PR middle-end/44563
26126         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26127         (cleanup_tree_cfg_1): Do not call it.
26128         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26129         (fixup_noreturn_call): Mark the stmt as control altering.
26130         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26131         here.
26132         (pass_data_fixup_cfg): Produce a dump file.
26133         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26134         (need_noreturn_fixup): New global.
26135         (pass_dominator::execute): Fixup queued noreturn calls.
26136         (optimize_stmt): Queue calls that became noreturn for fixup.
26137         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26138         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26139         (el_to_fixup): New global.
26140         (eliminate_dom_walker::before_dom_childre): Queue calls that
26141         became noreturn for fixup.
26142         (eliminate): Fixup queued noreturn calls.
26143         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26144         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26145         (substitute_and_fold_dom_walker::before_dom_children): Queue
26146         alls that became noreturn for fixup.
26147         (substitute_and_fold): Fixup queued noreturn calls.
26149 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
26151         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26152         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26153         are building; for methods check ODR type of class they belong to if
26154         they may lead to a polymorphic call.
26155         (sem_function::compare_polymorphic_p): Be bit smarter about testing
26156         when function may lead to a polymorphic call.
26157         (sem_function::compare_type_list): Remove.
26158         (sem_variable::equals): Update use of compatible_types_p.
26159         (sem_variable::parse_tree_refs): Remove.
26160         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26161         cdtor.
26162         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26163         matching here.
26164         (func_checker::compatible_polymorphic_types_p): Break out from ...
26165         (unc_checker::compatible_types_p): ... here.
26166         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26167         Declare.
26168         (unc_checker::compatible_types_p): Update.
26169         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26170         Remove.
26172 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26174         PR rtl-optimization/65235
26175         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26176         When first element of vec_concat is const_int, calculate its size
26177         using second element.
26179 2015-03-12  Richard Biener  <rguenther@suse.de>
26181         PR middle-end/65270
26182         * fold-const.c (operand_equal_p): Fix ordering of resetting
26183         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26185 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26187         * config/s390/s390.c (s390_reorg): Move code to output nops after label
26188         to s390_reorg ().
26189         (s390_asm_output_function_label): Likewise.
26190         * config/s390/s390.c (s390_asm_output_function_label):
26191         Fix function label alignment with -mhtopatch.
26192         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26193         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26194         ("nop_2_byte"): New define_insn.
26195         ("nop_4_byte"): Likewise.
26196         ("nop_6_byte"): Likewise.
26197         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26198         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26200 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26202         PR target/65103
26203         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26204         register.
26206 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26208         PR target/65044
26209         * toplev.c (process_options): Restrict Pointer Bounds Checker
26210         usage with Address Sanitizer.
26212 2015-03-12  Richard Biener  <rguenther@suse.de>
26214         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26215         to split on.
26216         * omp-low.c (expand_omp_taskreg): Split block before removing
26217         the stmt.
26218         (expand_omp_target): Likewise.
26219         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26220         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26221         stmt to split_block.
26223 2015-03-12  Tom de Vries  <tom@codesourcery.com>
26225         PR rtl-optimization/64895
26226         * lra-lives.c (check_pseudos_live_through_calls): Use
26227         actual_call_used_reg_set instead of call_used_reg_set, if available.
26229 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26231         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26232         (cgraph_node::remove): Likewise.
26233         (cgraph_node::get_untransformed_body): Likewise.
26234         * varpool.c (varpool_node::remove): Likewise.
26235         (varpool_node::get_constructor): Add sanity check.
26237 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
26239         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26240         old GCC versions.
26241         (-fabi-compat-version): Likewise.
26242         (-ffriend-injection): Likewise.
26243         (-Wdeclaration-after-statement): Likewise.
26244         (-fomit-frame-pointer): Likewise.
26245         (-ftree-coalesce-inlined-vars): Likewise.
26246         (-fvisibility=): Likewise.
26247         * doc/extend.texi (Typeof): Likewise.
26248         (Zero Length): Likewise.
26249         (Escaped Newlines): Likewise.
26250         (Compound Literals): Likewise.
26251         (Function Attributes): Likewise.
26252         (Label Attributes): Likewise.
26253         (Type Attributes): Likewise.
26254         (Function Names): Likewise.
26255         (Other Builtins): Likewise.
26256         (Function Specific Option Pragmas): Likewise.
26257         (C++ Interface): Likewise.
26259 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
26261         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26263 2015-03-11  Marek Polacek  <polacek@redhat.com>
26265         PR tree-optimization/65388
26266         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26268 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
26270         PR target/65296
26271         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26272         * configure: Regenerate.
26273         * config.in: Regenerate.
26274         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26275         [-mn-flash]: Document it.
26276         [__AVR_ARCH__]: Document avrtiny.
26278         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26279         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26280         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26282 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26284         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26286 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
26288         PR target/65242
26289         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26290         allow reloads of PLUS in floating point/VSX registers.
26292 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
26294         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26295         crypto_sha256_fast.
26296         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26298 2015-03-11  Richard Biener  <rguenther@suse.de>
26300         PR tree-optimization/65310
26301         * tree-sra.c (build_ref_for_offset): Also preserve larger
26302         alignment.
26304 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
26306         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26308 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26310         PR target/65368
26311         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26312         new define_expand.
26313         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26315 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26317         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26318         (sem_function::equals_wpa): ... here.
26320 2015-03-10  Marek Polacek  <polacek@redhat.com>
26321             Jakub Jelinek  <jakub@redhat.com>
26323         PR sanitizer/65367
26324         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26325         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
26326         separately.
26328 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26330         PR target/65286
26331         * config/rs6000/t-linux: For powerpc64* target set
26332         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26334 2015-03-10  Richard Biener  <rguenther@suse.de>
26336         PR middle-end/44563
26337         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26338         for redirect_all_calls.
26340 2015-03-10  Marek Polacek  <polacek@redhat.com>
26342         * gdbinit.in (pcfun): Define and document.
26344 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
26346         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26347         of libgomp-plugin.h.
26348         (find_target_compiler): Support a case when the path to gcc is
26349         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26350         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26351         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26352         libgomp-plugin.h.
26353         (main): Use GCC_INSTALL_NAME as target_driver_name.
26354         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26355         define.
26356         (mkoffload.o): Remove obsolete include path and defines.
26357         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26359 2015-03-10  Richard Biener  <rguenther@suse.de>
26361         PR middle-end/63155
26362         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26363         * tree-ssa-coalesce.c: Include timevar.h.
26364         (attempt_coalesce): Handle graph being NULL.
26365         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26366         Split out abnormal coalescing to ...
26367         (perform_abnormal_coalescing): ... this function.
26368         (coalesce_ssa_name): Perform abnormal coalescing without computing
26369         live/conflict.
26370         (verify_ssa_coalescing_worker): New function.
26371         (verify_ssa_coalescing): Likewise.
26373 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
26375         PR target/65296
26376         * config.gcc (extra_options) [avr]: Remove.
26377         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26378         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26379         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26381         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26382         (-mmcu=): Add Var and MissingArgError properties.
26383         (-march=): Remove.
26384         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26385         * config/avr/t-multilib: Regenerate.
26386         * config/avr/specs.h: New file.
26387         * config/avr/driver-avr.c: New file.
26388         * config/avr/genopt.sh: Remove file.
26389         * config/avr/avr-tables.opt: Remove file.
26390         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26391         * config/avr/avr-c.c: Same.
26392         * avr-arch.h: Same.
26393         (avr_current_device): Remove proto.
26394         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26395         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26396         (EXTRA_SPEC_FUNCTIONS): Define.
26397         (avr_devicespecs_file): New specs function proto.
26398         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26399         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26400         (avr_current_device): Remove definition and usage.
26401         (avr_set_core_architecture): New static function.
26402         (avr_option_override): Use it.
26403         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26404         (mcu_name): New static array.
26405         (comparator, avr_archs_str, avr_mcus_str): New static functions.
26406         (avr_inform_devices, avr_inform_core_architectures): New functions.
26407         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26408         (avrlibc.h) [WITH_AVRLIBC]: Include.
26409         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26410         (print_mcu): Rewrite from scratch.
26411         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26412         Forward to avr-specific specs defined in device-specs file.
26413         * config/avr/t-avr (driver-avr.o): New rule.
26414         (avr-devices.o): Depend on avr-arch.h.
26415         (avr-mcus): No more depend on avr-tables.opt.
26416         (avr-tables.opt): Remove rule.
26417         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26419 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26421         * c-family/c.opt (fchkp-use-wrappers): New.
26422         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26423         (chkp_wrap_function): New.
26424         (chkp_build_instrumented_fndecl): Support wrapped
26425         functions.
26426         * doc/invoke.texi (-fcheck-pointer-bounds): New.
26427         (-fchkp-check-incomplete-type): New.
26428         (-fchkp-first-field-has-own-bounds): New.
26429         (-fchkp-narrow-bounds): New.
26430         (-fchkp-narrow-to-innermost-array): New.
26431         (-fchkp-optimize): New.
26432         (-fchkp-use-fast-string-functions): New.
26433         (-fchkp-use-nochk-string-functions): New.
26434         (-fchkp-use-static-bounds): New.
26435         (-fchkp-use-static-const-bounds): New.
26436         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
26437         (-fchkp-check-read): New.
26438         (-fchkp-check-write): New.
26439         (-fchkp-store-bounds): New.
26440         (-fchkp-instrument-calls): New.
26441         (-fchkp-instrument-marked-only): New.
26442         (-fchkp-use-wrappers): New.
26443         (-static-libmpx): New.
26444         (-static-libmpxwrappers): New.
26446 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26448         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
26449         (CHKP_SPEC): Add wrappers library.
26450         * c-family/c.opt (static-libmpxwrappers): New.
26452 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26454         * config/i386/linux-common.h (LIBMPX_LIBS): New.
26455         (LIBMPX_SPEC): New.
26456         (CHKP_SPEC): New.
26457         * gcc.c (CHKP_SPEC): New.
26458         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
26459         * c-family/c.opt (static-libmpx): New.
26461 2015-03-10  Richard Biener  <rguenther@suse.de>
26463         PR middle-end/44563
26464         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
26465         for compare_type.
26466         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
26467         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
26468         (cgraph_add_edge_to_call_site_hash): Likewise.
26469         (cgraph_node::get_edge): Likewise.
26470         (cgraph_edge::set_call_stmt): Likewise.
26471         (cgraph_edge::remove_caller): Likewise.
26473 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
26475         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
26476         (callee_saved_gpr_regs_size): ... this.
26477         (callee_saved_regs_first_regno): Rename to ...
26478         (callee_saved_first_gpr_regno): ... this.
26479         (callee_saved_regs_last_regno) Rename to ...
26480         (callee_saved_last_gpr_regno): ... this.
26481         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
26482         variables.
26483         (nds32_initial_elimination_offset): Likewise.
26484         (nds32_expand_prologue): Likewise.
26485         (nds32_expand_epilogue): Likewise.
26486         (nds32_expand_prologue_v3push): Likewise.
26487         (nds32_expand_epilogue_v3pop): Likewise.
26488         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
26489         Adjust renamed variables.
26490         (nds32_output_stack_pop): Likewise.
26492 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26494         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
26495         code in comment.
26497 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26499         PR rtl-optimization/65321
26500         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
26501         than shift mode.
26502         * var-tracking.c (use_narrower_mode): Likewise.
26504 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26506         PR tree-optimization/65355
26507         * varasm.c (notice_global_symbol): Do not produce RTL.
26508         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
26509         anchor.
26510         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
26511         check for section anchors.
26513 2015-03-10  Alan Modra  <amodra@gmail.com>
26515         PR target/65286
26516         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
26517         to be single-arch by default.  Set cpu_is_64bit for powerpc64
26518         given --with-cpu=native.
26519         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
26520         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
26521         and powerpc64le.
26522         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
26523         rs6000_isa_flags rather than TARGET_64BIT.
26525 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
26526             Kaz Kojima  <kkojima@gcc.gnu.org>
26528         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
26530 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
26532         PR lto/65361
26533         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
26534         on a TREE_BINFO, instead use BINFO_TYPE.
26536 2015-03-09  Richard Biener  <rguenther@suse.de>
26538         PR middle-end/65270
26539         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
26540         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
26541         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
26542         of that.  When comparing dereferences compare alignment.
26543         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
26545 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
26547         * ipa-inline-analysis.c (check_callers): Check
26548         node->can_remove_if_no_direct_calls_and_refs_p.
26549         (growth_likely_positive): Reorganize to call
26550         can_remove_if_no_direct_calls_p later.
26551         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
26552         will_be_removed_from_program_if_no_direct_calls_p): Add
26553         will_inline parameter.
26554         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
26555         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26556         Handle inliner case correctly.
26558 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26560         PR tree-optimization/63743
26561         * cfgexpand.c (reorder_operands): Also reorder if only second operand
26562         had its definition forwarded by TER.
26564 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
26566         PR lto/65316
26567         * ipa-utils.h (types_odr_comparable): Add strict argument.
26568         * ipa-devirt.c: Fix whitespace;
26569         (odr_hasher): Remove.
26570         (odr_name_hasher, odr_vtable_hasher): New hashers.
26571         (can_be_name_hashed_p): New predicate.
26572         (hash_type_name): remove.
26573         (hash_odr_name): New.
26574         (odr_name_hasher::hash): new.
26575         (can_be_vtable_hashed_p): New.
26576         (hash_odr_vtable): New.
26577         (odr_vtable_hasher::hash): New.
26578         (types_same_for_odr): Add strict parameter.
26579         (types_odr_comparable): Likewise.
26580         (odr_name_hasher::equal): New.
26581         (odr_vtable_hasher::equal): New.
26582         (odr_name_hasher::remove): New.
26583         (odr_hash_type): Change to hash_table<odr_name_hasher>.
26584         (odr_vtable_hash_type): New.
26585         (odr_vtable_hash): New.
26586         (odr_subtypes_equivalent_p): Do strict comparsion.
26587         (add_type_duplicate): Merge type names; cleanup; avoid type
26588         duplicates.
26589         (register_odr_type): Initialize vtable hash.
26590         (build_type_inheritance_graph): Likewise
26591         (get_odr_type): Reorg to use two hashes.
26592         (dump_possible_polymorphic_call_targets): Move sanity check after debug
26593         output.
26594         (ipa_devirt): Dump type_inheritance_graph.
26595         (types_same_for_odr): Add strict mode.
26597 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26599         PR ipa/65334
26600         * cgraph.h (symtab_node): Add definition_alignment,
26601         can_increase_alignment_p and increase_alignment.
26602         * symtab.c (symtab_node::can_increase_alignment_p,
26603         increase_alignment_1, symtab_node::increase_alignment,
26604         symtab_node::definition_alignment): New.
26605         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
26606         can_increase_alignment_p.
26607         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
26608         * tree-vect-stmts.c (ensure_base_align): Likewise.
26609         * varasm.c (function_section_1): Use definition_alignment.
26610         (assemble_start_function): Likewise.
26611         (emit_local): likewise.
26612         (build_constant_desc): Likewsie.
26613         (output_constant_def_contents): Likewise.
26614         (place_block_symbol): Likewise.
26615         (output_object_block): Likewise.
26617 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26619         PR ipa/65316
26620         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
26621         when outputting debug.
26623 2015-03-07  Marek Polacek  <polacek@redhat.com>
26624             Martin Uecker  <uecker@eecs.berkeley.edu>
26626         PR sanitizer/65280
26627         * doc/invoke.texi: Update description of -fsanitize=bounds.
26629 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
26631         * tree-ssa-phiopt.c (neg_replacement): Remove.
26632         (tree_ssa_phiopt_worker): Remove negate optimization.
26634 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26636         PR ipa/65302
26637         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
26639 2015-03-06  Richard Biener  <rguenther@suse.de>
26641         PR middle-end/64928
26642         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
26643         and liveout_obstack members.
26644         (calculate_live_on_exit): Remove.
26645         (calculate_live_ranges): Change declaration.
26646         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
26647         (new_tree_live_info): Adjust.
26648         (calculate_live_ranges): Delete livein when not wanted.
26649         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
26650         Deal with partly deleted live info.
26651         (loe_visit_block): Remove temporary bitmap by using
26652         bitmap_ior_and_compl_into.
26653         (live_worklist): Adjust accordingly.
26654         (calculate_live_on_exit): Make static.
26655         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
26656         we do not need livein.
26658 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
26660         * real.c (real_from_string): Fix typo in assertion.
26662 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
26664         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
26665         the patch.
26667 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
26669         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
26671 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
26673         PR target/64342
26674         * lra-assigns.c (find_hard_regno_for): Rename to
26675         find_hard_regno_for_1.  Add a new parameter.
26676         (find_hard_regno_for): New function using find_hard_regno_for_1.
26678 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26680         PR rtl-optimization/65067
26681         * expmed.c (store_bit_field, extract_bit_field): Reworked the
26682         strict volatile bitfield handling.
26684 2015-03-05  Martin Liska  <mliska@suse.cz>
26686         PR ipa/65318
26687         * ipa-icf.c (sem_variable::equals): Compare variables types.
26689 2015-03-05  Richard Henderson  <rth@redhat.com>
26691         PR target/65121
26692         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
26693         correctly check weak symbol binding.
26695 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
26697         PR middle-end/65315
26698         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
26699         needed alignment.
26701 2015-03-05  Martin Liska  <mliska@suse.cz>
26703         * ipa-inline.c (inline_small_functions): Set default value to
26704         prevent warning during bootstrap.
26705         * tree.h: Add pragma guard that ignores false positives during
26706         bootstrap.
26708 2015-03-05  Richard Biener  <rguenther@suse.de>
26710         PR tree-optimization/65310
26711         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26712         Properly preserve alignment of the base of the access.
26714 2015-03-05  Richard Biener  <rguenther@suse.de>
26716         PR ipa/65270
26717         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
26718         Compare dependence info.
26720 2015-03-05  Richard Biener  <rguenther@suse.de>
26722         PR middle-end/65233
26723         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
26724         tree-into-ssa.h.
26725         (walk_ssa_copies): Revert last chage.  Instead do not walk
26726         SSA names registered for SSA update.
26728 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
26730         PR ipa/65270
26731         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
26732         vtable references for their containing type.
26733         (sem_function::equals_wpa): Compare TYPE_RESTRICT
26734         and type attributes.
26736 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
26738         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
26739         before negating it.
26740         * stor-layout.c (finalize_record_size): Revert latest change.
26742 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
26744         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
26746 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
26748         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
26749         for correct comdat handling.
26750         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26751         Likewise.
26752         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
26753         (used_from_object_file_p_worker): Remove.
26754         (cgraph_node::only_called_directly_or_alised): Add
26755         used_from_object_file_p.
26756         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
26757         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
26758         can_remove_if_no_direct_calls_and_refs_p.
26760 2015-03-04  Nick Clifton  <nickc@redhat.com>
26762         * config/rl78/rl78.h (enum reg_class): Remove real registers from
26763         General register class.
26764         * config/rl78/rl78-real.md: Replace general register constraints
26765         with real+virtual register constraints.
26767 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26769         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
26770         from checking for -mhtm option.
26772 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
26774         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
26775         (struct ipa_sra_check_caller_data): Add has_thunk field.
26776         (ipa_sra_check_caller): Check for thunk.
26777         (ipa_sra_preliminary_function_checks): Give up on function with
26778         thunks.
26779         (ipa_early_sra): Use call_for_symbol_and_aliases.
26781 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
26783         PR target/65249
26784         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26785         called for __stack_chk_guard symbol.
26787 2015-03-03  DJ Delorie  <dj@redhat.com>
26789         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
26790         inc/dec.
26791         (*addhi3_real): Likewise.
26792         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
26793         pattern to match incrementing memory.
26794         * config/rl78/predicates.md (rl78_1_2_operand): New.
26795         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
26796         it's the same and only mem.
26797         (rl78_alloc_physical_registers_op2): If there's effectively only
26798         one MEM, transcode it into HL.
26799         (rl78_far_p): Reject addresses that aren't legitimate.
26801 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26803         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
26804         negating it.
26806         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
26808 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
26810         Implement call0 ABI for xtensa
26811         * config/xtensa/constraints.md ("a" constraint): Include stack
26812         pointer in case of call0 ABI.
26813         ("q" constraint): Make empty in case of call0 ABI.
26814         ("D" constraint): Include stack pointer in case of call0 ABI.
26815         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
26816         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
26817         prototypes.
26818         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
26819         variable.
26820         (xtensa_regno_to_class): Make it a local variable in the
26821         function xtensa_regno_to_class.
26822         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
26823         macro, function prototype and implementation.
26824         (reg_nonleaf_alloc_order): Make it a local variable in the
26825         function order_regs_for_local_alloc.
26826         (xtensa_conditional_register_usage): New function.
26827         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
26828         (xtensa_valid_move): Allow direct moves to stack pointer
26829         register in call0 ABI.
26830         (xtensa_setup_frame_addresses): Only spill register windows in
26831         windowed ABI.
26832         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
26833         call0 ABI respectively.
26834         (xtensa_function_arg_1): Only mark a7 register for copying in
26835         windowed ABI.
26836         (xtensa_call_save_reg): New function.
26837         (compute_frame_size): Add space for callee saved register
26838         storage to the frame size in call0 ABI.
26839         (xtensa_expand_prologue): Generate code to set up stack frame
26840         and save callee-saved registers in call0 ABI.
26841         (xtensa_expand_epilogue): New function.
26842         (xtensa_set_return_address): New function.
26843         (xtensa_return_addr): Calculate return address in call0 ABI.
26844         (xtensa_builtin_saveregs): Only mark a7 register for copying and
26845         emit copying code in windowed ABI.
26846         (order_regs_for_local_alloc): Add preferred register allocation
26847         order for non-leaf function in call0 ABI.
26848         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
26849         (xtensa_asm_trampoline_template): Add trampoline generation for
26850         call0 ABI.
26851         (xtensa_trampoline_init): Add trampoline initialization for
26852         call0 ABI.
26853         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
26854         functions.
26855         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
26856         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
26857         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
26858         ABI call-used registers.
26859         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
26860         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
26861         call0 ABI.
26862         (REG_CLASS_CONTENTS): Include all registers into the preferred
26863         reload registers set, adjust the set in the
26864         xtensa_conditional_register_usage.
26865         (xtensa_regno_to_class): Drop variable declaration.
26866         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
26867         function.
26868         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
26869         respectively.
26870         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
26871         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
26872         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
26873         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
26874         location in call0 ABI.
26875         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
26876         stack adjustment size when handling exception.
26877         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
26878         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
26879         definitions.
26880         ("return" pattern): Generate ret.n/ret in call0 ABI.
26881         ("epilogue" pattern): Expand epilogue.
26882         ("nonlocal_goto" pattern): Use default in call0 ABI.
26883         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
26884         emit eh_set_a0_* depending on ABI.
26885         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
26886         ("eh_set_a0_call0", "blockage"): New patterns.
26888 2015-03-03  Martin Liska  <mliska@suse.cz>
26890         PR ipa/65287
26891         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
26893 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26895         PR 65138/target
26896         * config/rs6000/rs6000-tables.opt: Regenerate table.
26898 2015-03-03  Renlin Li  <renlin.li@arm.com>
26900         * doc/md.texi (@item ^): Change ? into ^.
26902 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
26904         * doc/tm.texi: Regenerated.
26906 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
26908         * builtins.c (expand_builtin_return_addr): Add
26909         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
26910         surrounding #ifdef.
26911         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
26912         definition to 1.
26913         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
26914         Likewise.
26915         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
26916         undefined.
26917         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
26918         paragraph.
26920 2015-03-03  Martin Jambor  <mjambor@suse.cz>
26921             Eric Botcazou  <ebotcazou@adacore.com>
26923         * tree-sra.c (ipa_sra_check_caller_data): New type.
26924         (has_caller_p): Removed.
26925         (ipa_sra_check_caller): New function.
26926         (ipa_sra_preliminary_function_checks): Use it.
26928 2015-03-03  Martin Liska  <mliska@suse.cz>
26930         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
26931         instead of if branch.
26933 2015-03-03  Martin Liska  <mliska@suse.cz>
26935         PR ipa/65282
26936         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
26938 2015-03-23  Jeff Law  <law@redhat.com>
26940         PR tree-optimization/65241
26941         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
26942         hash table if INSERT is true.
26944 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
26946         PR target/65296
26947         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
26949 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
26951         PR target/64331
26952         * config/avr/avr.c (context.h, tree-pass.h): Include them.
26953         (avr_pass_data_recompute_notes): New static variable.
26954         (avr_pass_recompute_notes): New class.
26955         (avr_register_passes): New static function.
26956         (avr_option_override): Call it.
26958 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
26960         Fix various problems with specs file generation.
26962         PR target/65296
26963         * config.gcc (extra_gcc_objs) [avr]: Remove.
26964         * config/avr/driver-avr.c: Remove file.
26965         * config/avr/t-avr (driver-avr.o): Remove rule.
26966         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
26967         INCLUDES to build.  Depend on TM_H.
26968         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
26969         build warnings.  Fix non-matching types and non-existing %-codes.
26970         (tm.h): Include.
26971         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
26972         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
26973         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
26974         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
26975         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
26976         (LIBGCC_SPEC): Remove definitions.
26978 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26980         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
26981         to create a register in testing mode.
26983 2015-03-03  Martin Liska  <mliska@suse.cz>
26984             Jan Hubicka  <hubicka@ucw.cz>
26986         PR ipa/65263
26987         * cgraph.c (cgraph_node::has_thunk_p): New function.
26988         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
26989         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
26990         (sem_function::merge): Assert is changed.
26992 2015-03-03  Martin Liska  <mliska@suse.cz>
26993             Martin Jambor  <mjambor@suse.cz>
26995         PR ipa/65087
26996         * ipa-icf.c (sem_item_optimizer::execute): Change function
26997         return value to boolean.
26998         (sem_item_optimizer::merge_classes): Likewise.
26999         (ipa_icf_driver): Return TODO_remove_functions in case there's
27000         a merge operation processed.
27001         * ipa-icf.h: Change function return value to boolean.
27003 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27005         PR 65138/target
27006         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27007         processor type for 64-bit little endian PowerPC.
27009         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27010         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
27011         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
27012         printing built-in mask so it does not pass NULL pointers.
27014         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27015         -mcpu=powerpc64le.
27017 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
27019         PR target/58158
27020         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27021         !ISA_HAS_FP_CONDMOVE.
27023 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
27025         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27026         reload_completed.
27028 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
27030         * doc/invoke.texi (Options for Code Generation Conventions):
27031         Fix URL of DSO paper.
27033 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27035         PR ipa/65130
27036         * ipa-inline.c (check_callers): Looks for recursion.
27037         (inline_to_all_callers): Give up on uninlinable or recursive edges.
27038         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27039         summary of inline clones.
27040         (do_estimate_growth_1): Fix recursion check.
27042 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27044         PR ipa/64988
27045         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27046         comdat groups.
27048 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27049             Aldy Hernandez  <aldyh@redhat.com>
27051         PR lto/65276
27052         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27053         when checking TYPE_BINFO.
27055 2015-03-02  Richard Biener  <rguenther@suse.de>
27057         PR ipa/65270
27058         * ipa-icf-gimple.c: Include builtins.h.
27059         (func_checker::compare_memory_operand): Compare base alignment.
27061 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27063         PR target/65184
27064         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27065         are never passed by reference.
27067 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27069         PR target/65183
27070         * tree-chkp.c (chkp_check_lower): Don't check against
27071         zero bounds for already instrumented functions.
27072         (chkp_check_upper): Likewise.
27073         (chkp_fini): Clean pass local data to avoid wrong reusage.
27075 2015-02-28  Martin Liska  <mliska@suse.cz>
27076             Jan Hubicka  <hubicka@ucw.cz>
27078         * ipa-icf.c (sem_variable::equals): Improve debug output;
27079         get variable constructor.
27080         (sem_variable::parse): Do not filter out too early; give up on
27081         volatile and register vars.
27082         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27083         variables.
27084         * ipa-icf.h (sem_variable::init): Do not set ctor.
27085         (sem_variable::ctor): Remove.
27087 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
27089         PR middle-end/65233
27090         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27092 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27094         * ipa-icf.c: Include stor-layout.h
27095         (sem_function::compare_cgraph_references): Rename to ...
27096         (sem_item::compare_cgraph_references): ... this one.
27097         (sem_variable::equals_wpa): New function
27098         (sem_variable::equals): Do not check stuff already verified by
27099         equals_wpa.
27100         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27101         * ipa-icf.h (sem_item): Add compare_cgraph_references.
27102         (sem_function): Remove compare_cgraph_references.
27103         (sem_variable): Turns equals_wpa into non-inline.
27105 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27107         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27108         (sem_item::add_expr): New function.
27109         (sem_function::hash_stmt): Handle operands of most statements.
27110         (sem_variable::get_hash): Hash the actual constructor.
27111         * ipa-icf.h (sem_item): Add add_expr.
27112         (sem_function): Update prototype of hash_stmt
27114 2015-02-28  Martin Liska  <mliska@suse.cz>
27115             Jan Hubicka  <hubicka@ucw.cz>
27117         PR ipa/65245
27118         * ipa-icf-gimple.c (func_checker::compare_function_decl):
27119         Remove.
27120         (func_checker::compare_variable_decl): Skip symtab vars.
27121         (func_checker::compare_cst_or_decl): Update.
27122         * ipa-icf.c (sem_function::parse): Do not consider aliases.
27123         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27124         use correct symtab predicates.
27125         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27126         (sem_variable::parse):  Update comment.
27127         (sem_item_optimizer::build_graph): Consider ultimate aliases
27128         for references.
27130 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27132         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27133         of OBJ_TYPE_REF.
27135 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27137         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27138         (sem_variable::merge) Likewise.
27140 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27142         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27143         target; also match flag_ipa_devirt.
27145 2015-03-01  Martin Liska  <mliska@suse.cz>
27146             Jan Hubicka  <hubicka@ucw.cz>
27148         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27149         Validate variable alignment.
27150         * ipa-icf.c (sem_function::equals_private): Be more precise
27151         about non-common function attributes.
27152         (sem_variable::equals): Likewise.
27154 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27156         PR ipa/65237
27157         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27158         across COMDAT group boundary.
27160 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27162         PR ipa/65232
27163         * ipa-icf.c (clear_decl_rtl): New function.
27164         (sem_function::merge): Clear RTL before forming alias.
27165         (sem_variable::merge): Clear RTL before forming alias.
27167 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27169         PR ipa/65236
27170         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27172 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
27174         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27175         to neon_to_gp<q>.
27177 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27179         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27180         a typo in the description.
27182 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27184         PR target/64317
27185         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27186         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27187         * lra-constraints.c: Include "params.h".
27188         (EBB_PROBABILITY_CUTOFF): Use
27189         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27190         (lra_inheritance): Use '<' instead of '<=' for
27191         EBB_PROBABILITY_CUTOFF.
27192         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27193         Document change.
27195 2015-02-27  Martin Liska  <mliska@suse.cz>
27197         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27198         vector length condition.
27200 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
27202         * doc/extend.texi (x86 transactional memory intrinsics):
27203         Reorganize discussion of _xbegin.  Clarify that the return
27204         value is a bit mask.  Expand example and move to end of section.
27206 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27207             Aldy Hernandez  <aldyh@redhat.com>
27209         PR rtl-optimization/65220
27210         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27212 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27214         PR target/65032
27215         * lra-remat.c (update_scratch_ops): New.
27216         (do_remat): Call it.
27217         * lra.c (lra_register_new_scratch_op): New. Take code from ...
27218         (remove_scratches): ... here.
27219         * lra-int.h (lra_register_new_scratch_op): New prototype.
27221 2015-02-27  Marek Polacek  <polacek@redhat.com>
27223         PR c/65040
27224         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27225         -Wformat-signedness anymore.
27227 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27229         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27230         function.
27231         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27233 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27235         * config/s390/s390.c (enum s390_builtin):
27236         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27237         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27238         (s390_init_builtins): Generate new builtin functions.
27239         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27240         (s390_sfpc, s390_efpc): New pattern definitions.
27242 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27244         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27245         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27246         (s390_builtin_decls): New array.
27247         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27248         (s390_builtin_decl): New function.
27249         (TARGET_BUILTIN_DECL): Define macro.
27251 2015-02-27  Richard Biener  <rguenther@suse.de>
27253         PR middle-end/63175
27254         * builtins.c (get_object_alignment_2): Make sure to re-apply
27255         the ANDed mask after recursing to its operand gets us a new
27256         misalignment bit position.
27258 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
27259             Martin Liska  <mliska@suse.cz>
27261         PR bootstrap/65150
27262         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27263         Use address_matters_p.
27264         (redirect_all_callers, set_addressable): New functions.
27265         (sem_function::merge): Reorganize and fix merging issues.
27266         (sem_variable::merge): Likewise.
27267         (sem_variable::compare_sections): Remove.
27268         * common.opt (fmerge-all-constants, fmerge-constants): Remove
27269         Optimization flag.
27270         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27271         redirect them.
27272         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27273         decl is used.
27274         (address_matters_1): New function.
27275         (symtab_node::address_matters_p): New function.
27276         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27277         check for merged flag.
27278         * cgraph.h (address_matters_p): Declare.
27279         (symtab_node::address_taken_from_non_vtable_p): Remove.
27280         (symtab_node::address_can_be_compared_p): New method.
27281         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27282         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27283         Remove.
27284         (comdat_can_be_unshared_p_1) Use address_matters_p.
27285         (update_vtable_references): Fix formating.
27286         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27287         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27288         * cgraphclones.c: Preserve merged and icf_merged flags.
27290 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
27292         * doc/extend.texi (Function Attributes): Fix spelling and typos.
27293         (Label Attributes): Likewise.
27294         (Cilk Plus Builtins): Likewise.
27295         (ARC SIMD Built-in Functions): Likewise.
27296         (ARM C Language Extensions (ACLE)): Likewise.
27297         (PowerPC Built-in Functions): Likewise.
27298         (PowerPC Hardware Transactional Memory Built-in Functions):
27299         Likewise.
27301 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27303         PR tree-optimization/65216
27304         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27305         new stmt and new SSA_NAME for lhs whenever the arguments have
27306         changed and weren't just swapped.  Fix comment typo.
27308         PR tree-optimization/65215
27309         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27310         for PDP endian targets.
27311         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27312         Fix up formatting issues.
27313         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
27314         size is smaller than the original, adjust MEM_REF offset by the
27315         difference of sizes.  Use is_gimple_mem_ref_addr instead of
27316         is_gimple_min_invariant test to avoid adding address temporaries.
27318 2015-02-26  Martin Liska  <mliska@suse.cz>
27319             Jan Hubicka  <hubicka@ucw.cz>
27321         PR ipa/64693
27322         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27323         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27324         (sem_item_optimizer::process_cong_reduction): Include division by
27325         sensitive references.
27326         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27327         * ipa-ref.c (ipa_ref::address_matters_p): New function.
27328         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27330 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
27332         PR target/65192
27333         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27334         Remove.
27335         * config/avr/avr.c: Same.
27336         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27337         Refuse any constant address not in 0..0xbf.
27338         * config/avr/avr.md (*mov<mode>, *movsf): Remove
27339         tiny_valid_direct_memory_access_range from insn conditions.
27340         (mov<mode>): Don't special-case expansion of avrtiny addresses.
27342 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
27344         PR target/61142
27345         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27346         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27347         * config/sh/predicates.md (const_logical_operand): New predicate.
27348         * config/sh/sh.md: Add new peephole2 patterns.
27350 2015-02-26  Marek Polacek  <polacek@redhat.com>
27352         PR ipa/65008
27353         * ipa-inline.c (early_inliner): Recompute inline parameters.
27355 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27357         PR target/65171
27358         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27359         instructions with TImode operands are included in the analysis.
27361 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
27363         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27364         of an EDGE_FSM_THREAD.
27366 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27368         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27370 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
27372         PR debug/46102
27373         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27375 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
27377         PR tree-optimization/65048
27378         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27379         (thread_through_all_blocks): Call valid_jump_thread_path.
27380         Remove invalid FSM jump-thread paths.
27382 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27384         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27385         (ipa_write_optimization_summaries): Likewise.
27386         * tree-streamer.h: Include data-streamer.h.
27387         (streamer_mode_table): Declare extern variable.
27388         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27389         * lto-streamer-out.c (lto_output_init_mode_table,
27390         lto_write_mode_table): New functions.
27391         (produce_asm_for_decls): Call lto_write_mode_table when streaming
27392         offloading LTO.
27393         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27394         (lto_create_simple_input_block): Add mode_table argument to the
27395         lto_input_block constructors.
27396         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27397         Likewise.
27398         * data-streamer-in.c (string_for_index): Likewise.
27399         * ipa-inline-analysis.c (inline_read_section): Likewise.
27400         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27401         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27402         * lto-streamer-in.c (lto_read_body_or_constructor,
27403         lto_input_toplevel_asms): Likewise.
27404         (lto_input_mode_table): New function.
27405         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27406         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27407         Use bp_pack_machine_mode.
27408         * real.h (struct real_format): Add name field.
27409         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27410         (class lto_input_block): Add mode_table member.
27411         (lto_input_block::lto_input_block): Add mode_table_ argument,
27412         initialize mode_table.
27413         (struct lto_file_decl_data): Add mode_table field.
27414         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27415         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27416         unpack_ts_decl_common_value_fields,
27417         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27418         * tree-streamer.c (streamer_mode_table): New variable.
27419         * real.c (ieee_single_format, mips_single_format,
27420         motorola_single_format, spu_single_format, ieee_double_format,
27421         mips_double_format, motorola_double_format,
27422         ieee_extended_motorola_format, ieee_extended_intel_96_format,
27423         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27424         ibm_extended_format, mips_extended_format, ieee_quad_format,
27425         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27426         decimal_single_format, decimal_double_format, decimal_quad_format,
27427         ieee_half_format, arm_half_format, real_internal_format): Add name
27428         field.
27429         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27431 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
27433         PR target/65161
27434         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
27435         reordering for selective scheduling.
27437 2015-02-26  Terry Guo  <terry.guo@arm.com>
27439         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
27440         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
27441         (arm_arch_no_volatile_ce): Declare new global variable.
27442         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
27443         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
27444         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
27445         (TARGET_NO_VOLATILE_CE): New macro.
27446         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
27447         volatile memory access in IT block
27449 2015-02-25  Kai Tietz  <ktietz@redhat.com>
27451         PR tree-optimization/61917
27452         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
27453         that reduc_def_stmt is null.
27455 2015-02-25  Martin Liska  <mliska@suse.cz>
27457         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
27458         hard register variables.
27460 2015-02-25  Kai Tietz  <ktietz@redhat.com>
27462         PR target/64212
27463         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
27464         (symtab::noninterposable_alias): Likewise.
27466 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
27468         PR target/65167
27469         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
27470         bounds registers.
27471         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
27473 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
27475         PR target/64997
27476         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
27477         as split condition; force split via '#' in output pattern.
27479 2015-02-25  Richard Biener  <rguenther@suse.de>
27480             Kai Tietz  <ktietz@redhat.com>
27482         PR tree-optimization/61917
27483         * tree-vect-loop.c (vectorizable_reduction): Allow
27484         vect_internal_def without reduction to exit graceful.
27486 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
27488         PR target/65196
27489         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
27490         only with NONDEBUG_INSN_P.
27492 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
27494         Use variadic macros with avr-log.c.
27496         * config/avr/avr-protos.h (avr_vdump): New prototype.
27497         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
27498         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
27499         * config/avr/avr-log.c: Adjust comments.
27500         (avr_vdump): New function.
27501         (avr_vadump): Pass caller as 2nd argument instead of format string.
27502         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
27503         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
27505 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
27507         PR lto/64374
27508         * target.def (target_option_stream_in): New target hook.
27509         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
27510         targetm.target_option.post_stream_in if non-NULL.
27511         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
27512         * doc/tm.texi: Updated.
27513         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
27514         function.
27515         (TARGET_OPTION_POST_STREAM_IN): Redefine.
27517 2015-02-24  Jeff Law  <law@redhat.com>
27519         PR target/65117
27520         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
27521         of operand 0 and operand 2.
27522         (zero_cost_loop_end, loop_end): Similarly.
27524 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
27526         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
27527         CXX_MEM_STAT_INFO.
27529 2015-02-24  DJ Delorie  <dj@redhat.com>
27531         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
27532         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
27533         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
27534         instead of hardcoding SImode.
27536 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
27538         * omp-low.c (create_omp_child_function): Tag entrypoint
27539         functions with a special attribute.
27541 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27543         PR target/65058
27544         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
27546 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
27548         PR rtl-optimization/65123
27549         * lra-remat.c (operand_to_remat): Check hard regs in insn
27550         definition too.
27552 2015-02-24  Nick Clifton  <nickc@redhat.com>
27554         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
27555         to the assembler.
27557 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
27559         PR libgomp/64625
27560         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
27561         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
27562         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
27563         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
27564         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
27565         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
27566         (BUILT_IN_GOACC_PARALLEL): Specify as
27567         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
27568         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
27569         * builtin-types.def
27570         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27571         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27572         Remove function types.
27573         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
27574         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27575         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27576         New function types.
27578 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
27580         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
27582 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
27584         PR tree-optimization/65170
27585         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
27586         if val[1] < 0, clear also val[2] and return 3.
27588 2015-02-24  Alan Modra  <amodra@gmail.com>
27590         PR target/65172
27591         * config/rs6000/rs6000.c (get_memref_parts): Only return true
27592         when *base is a reg.  Handle nested plus addresses.  Simplify
27593         pre_modify test.
27595 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
27597         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
27598         use natural alignment when optimizing for size.
27600 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
27602         PR target/65153
27603         * config/sh/sh.md (movsicc_true+3): Remove peephole.
27604         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
27605         * config/sh/sh.c (replace_n_hard_rtx): Remove.
27607 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
27609         PR fortran/63427
27610         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
27611         too big for a wide_int.  Implement missing wrapping operation.
27613 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
27615         PR target/65163
27616         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
27617         instead of const_int 4294901760.
27619 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
27621         * config/avr/t-avr: Fix typo in comment.
27623 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
27625         * doc/rtl.texi (fma): Clarify documentation.
27627 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
27629         PR debug/58123
27630         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
27631         over input_location.
27633 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
27635         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
27636         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
27637         restrict alignments to absolute_biggest_alignment.
27638         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
27639         Define.
27640         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
27641         * doc/tm.texi: Regenerate.
27642         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
27644 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
27646         PR target/64172
27647         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
27649 2015-02-20  Richard Biener  <rguenther@suse.de>
27651         PR tree-optimization/65136
27652         * tree-ssa-propagate.c: Include cfgloop.h.
27653         (replace_phi_args_in): Avoid replacing loop latch edge PHI
27654         arguments with constants.
27656 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
27657             Martin Liska  <mliska@suse.cz>
27659         PR target/63892
27660         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
27661         don't try to create_thunk if stdarg_p.  If
27662         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
27663         redirect_callers if possible.
27664         (sem_item_optimizer::execute): Call unregister_hooks here...
27665         (ipa_icf_driver): ... instead of here.
27667 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27669         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
27670         Mark operand 0 as earlyclobber in 2nd alternative.
27671         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
27672         Write negated shift amount into QI lowpart operand 0 and use it
27673         in the shift step.
27674         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
27676 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
27678         * cgraph.h (clone_function_name_1): Declare.
27679         * cgraphclones.c (clone_function_name_1): New function.
27680         (clone_function_name): Use it.
27681         * lto-partition.c: Include "stringpool.h".
27682         (must_not_rename, maybe_rewrite_identifier)
27683         (validize_symbol_for_target): New static functions.
27684         (privatize_symbol_name): Use must_not_rename.
27685         (promote_symbol): Call validize_symbol_for_target.
27686         (lto_promote_cross_file_statics): Likewise.
27687         (lto_promote_statics_nonwpa): Likewise.
27689 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
27691         PR target/64452
27692         * config/avr/avr.md (pushhi_insn): New insn.
27693         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
27695 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
27696             Jakub Jelinek  <jakub@redhat.com>
27698         * tree-streamer.c (preload_common_nodes): Don't preload
27699         TI_VA_LIST* for offloading.
27700         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
27701         in_lto_p.
27703 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
27705         * config/pa/pa.c (pa_emit_move_sequence): Always force
27706         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
27707         note on insn.
27709         * config/pa/pa.c (pa_reloc_rw_mask): New function.
27710         (TARGET_ASM_RELOC_RW_MASK): Define.
27711         (pa_cannot_force_const_mem): Revert previous change.
27713 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
27714             Jan Hubicka  <hubicka@ucw.cz>
27716         PR ipa/65028
27717         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
27718         across jump functions.
27720 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
27722         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
27724 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
27726         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
27728 2015-02-19  Richard Henderson  <rth@redhat.com>
27730         PR middle-end/65074
27731         * varasm.c (default_binds_local_p_2): Don't test node->definition;
27732         test DECL_EXTERNAL independent of symtab_node.
27734 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
27736         PR lto/65012
27737         * varpool.c (varpool_node::get_constructor): Return early
27738         if this->lto_file_data is NULL.
27740 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27742         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
27743         (rank_for_schedule_debug): Update.
27744         (ready_sort): Make static.  Move sorting logic to ...
27745         (ready_sort_debug, ready_sort_real): New static functions.
27746         (schedule_block): Sort both debug insns and real insns in preparation
27747         for ready list trimming.  Improve debug output.
27748         * sched-int.h (ready_sort): Remove global declaration.
27750 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
27752         * ipa-icf.c (sem_function::equals_private): Adjust.
27753         (sem_function::bb_dict_test): Take a vec<int> * instead of
27754         auto_vec<int>.
27755         * ipa-icf.h (bb_dict_test): Likewise.
27757 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
27759         PR gcov-profile/64634
27760         * tree-eh.c (frob_into_branch_around): Fix up typos
27761         in function comment.
27762         (lower_catch): Put eh_seq resulting from EH lowering of
27763         the cleanup sequence after the cleanup rather than before it.
27765 2015-02-18  Tom de Vries  <tom@codesourcery.com>
27767         * common.opt (fstdarg-opt): New option.
27768         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
27769         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
27770         (@item -fstdarg-opt): New item.
27772 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
27774         PR target/65064
27775         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
27776         for common symbols.
27778 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
27780         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
27781         insn-modes.h.
27782         (ALL_HOST_OBJS): Add mkoffload.o.
27783         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
27785 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
27787         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
27788         (compare_virtual_tables): Be smarter about skipping typeinfos;
27789         do sane output on virtual table table mismatch.
27790         (warn_odr): Be ready for forward declarations of enums;
27791         output sane info on base mismatch and virtual table mismatch.
27792         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
27793         when only one type is polymorphic.
27794         (get_odr_type): Fix hashtable corruption.
27795         (dump_odr_type): Dump mangled names.
27797 2015-02-18  Richard Biener  <rguenther@suse.de>
27799         PR tree-optimization/65063
27800         * tree-predcom.c (determine_unroll_factor): Return 1 if we
27801         have replaced looparound PHIs.
27803 2015-02-18  Martin Liska  <mliska@suse.cz>
27805         * lto-streamer.c (lto_streamer_init): Encapsulate
27806         streamer_check_handled_ts_structures with checking macro.
27808 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
27810         PR ipa/65087
27811         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
27812         section if !implicit_section.
27813         (cgraph_node::create_version_clone_with_body): Likewise.
27814         * trans-mem.c (ipa_tm_create_version): Likewise.
27816 2015-02-18  Richard Biener  <rguenther@suse.de>
27818         PR tree-optimization/62217
27819         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
27820         into BIVs.
27822 2015-02-18  Marek Polacek  <polacek@redhat.com>
27824         PR sanitizer/65081
27825         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
27826         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
27827         is in range [-16K, -1].  Don't issue run-time error if
27828         (ptr > ptr + offset).
27830 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
27832         * doc/install.texi (nvptx-*-none): New section.
27833         * doc/invoke.texi (Nvidia PTX Options): Likewise.
27834         * config/nvptx/nvptx.opt: Update.
27836         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
27837         (access_check): New functions, copied from
27838         config/i386/intelmic-mkoffload.c.
27839         (main): For non-installed testing, look in all COMPILER_PATHs for
27840         GCC_INSTALL_NAME.
27842         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
27844 2015-02-18  Andrew Pinski  <apinski@cavium.com>
27845             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27847         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
27848         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
27850 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
27852         * ipa-visibility.c (function_and_variable_visibility): Only
27853         check locality if node is not already local.
27854         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27855         call_for_symbol_and_aliases instead of
27856         call_for_symbol_thunks_and_aliases.
27857         (ipa_inline): Likewise.
27858         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27859         first walk aliases.
27860         * ipa.c (symbol_table::remove_unreachable_nodes): Use
27861         call_for_symbol_and_aliases.
27862         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27863         (ipa_propagate_frequency_1): Use it; use opt_for_fn
27864         (ipa_propagate_frequency): Update.
27865         (ipa_profile): Add opt_for_fn gueards.
27867 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
27869         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
27870         * doc/invoke.texi (SH options): Document it.
27871         * config/sh/sh.c (sh_insn_length_adjustment): Check
27872         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
27874 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
27876         * common.opt (fipa-cp-alignment): New.
27877         * ipa-cp.c (ipcp_store_alignment_results): Check
27878         flag_ipa_cp_alignment.
27879         * opts.c (default_options_table): Enable -fipa-cp-alignment for
27880         -O2.
27881         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
27882         * doc/invoke.texi: Document -fipa-cp-alignment.
27884 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
27886         PR target/64793
27887         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
27888         to nil.  Adjust comments.
27890 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
27892         * ipa-visibility.c (function_and_variable_visibility): Only
27893         check locality if node is not already local.
27894         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27895         call_for_symbol_and_aliases instead of
27896         call_for_symbol_thunks_and_aliases.
27897         (ipa_inline): Likewise.
27898         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27899         first walk aliases.
27900         * ipa.c (symbol_table::remove_unreachable_nodes): Use
27901         call_for_symbol_and_aliases.
27902         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27903         (ipa_propagate_frequency_1): Use it; use opt_for_fn
27904         (ipa_propagate_frequency): Update.
27905         (ipa_profile): Add opt_for_fn guards.
27907 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
27909         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
27910         skipping of "strange" tokens.
27912 2015-02-17  Jeff Law  <law@redhat.com>
27914         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
27915         obsolete comment.
27917 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
27919         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
27920         as forcing a HARD_DEP between instructions, thereby
27921         disallowing rewriting to break dependencies.
27923 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
27925         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
27926         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
27927         variables in boundary that have no inlitalizer encoded and are
27928         not aliases.
27929         * varasm.c (default_binds_local_p_2): External definitions do not
27930         count as definitions here.
27932 2015-02-16  Jeff Law  <law@redhat.com>
27934         PR tree-optimization/64823
27935         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
27936         statements.
27937         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27938         threading through blocks with PHIs, but no statements.
27939         (thread_through_normal_block): Distinguish between blocks where
27940         we did not process all the statements and blocks with no statements.
27942 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
27943             James Greenhalgh  <james.greenhalgh@arm.com>
27945         PR ipa/64963
27946         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
27947         section if not linkonce.  Fix up formatting.
27948         (cgraph_node::create_version_clone_with_body): Copy section.
27949         * trans-mem.c (ipa_tm_create_version): Likewise.
27951 2015-02-16  Richard Biener  <rguenther@suse.de>
27953         PR tree-optimization/65077
27954         * tree-ssa-structalias.c (get_constraint_for_1): Handle
27955         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
27956         (find_func_aliases): Allow float values to carry pointers again.
27958 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
27960         * doc/install.texi (Specific): Reorder targets list to put
27961         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
27962         from the top menu.
27964 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
27965             David Edelsohn  <dje.gcc@gmail.com>
27967         PR target/65058
27968         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
27969         mapping class to external variable or function reference.
27970         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
27971         mapping class.
27973 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
27975         PR target/53348
27976         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
27977         ASM_WEAKEN_DECL if defined.
27979 2015-02-16  Richard Biener  <rguenther@suse.de>
27981         PR lto/65015
27982         * varasm.c (default_file_start): For LTO produced units
27983         emit <artificial> as file directive.
27985 2015-02-16  Richard Biener  <rguenther@suse.de>
27987         PR tree-optimization/63593
27988         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
27989         stmts and releasing SSA names until...
27990         (execute_pred_commoning): ... after processing all chains.
27992 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
27994         PR ipa/65059
27995         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
27996         external functions.
27998 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
28000         * doc/bugreport.texi: Adjust section titles throughout the file
28001         to use "Title Case".
28002         * doc/extend.texi: Likewise.
28003         * doc/gcov.texi: Likewise.
28004         * doc/implement-c.texi: Likewise.
28005         * doc/implement-cxx.texi: Likewise.
28006         * doc/invoke.texi: Likewise.
28007         * doc/objc.texi: Likewise.
28008         * doc/standards.texi: Likewise.
28009         * doc/trouble.texi: Likewise.
28011 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
28013         * cgraph.h (symtab_node::has_aliases_p): Simplify.
28014         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28015         * tree.c (lookup_binfo_at_offset): Make static.
28016         (get_binfo_at_offset): Do not shadow offset; add explanatory
28017         comment.
28019 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
28021         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28022         for all floading point loads and stores except those using a register
28023         index address.
28024         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28025         to a register.
28027 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28029         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28030         (do_estimate_growth_1): Record if any uninlinable edge was seen.
28031         (estimate_growth): Handle uninlinable edges correctly.
28032         (check_callers): New.
28033         (growth_likely_positive): Handle aliases correctly.
28035 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28037         * ipa-chkp.c: Use iterate_direct_aliases.
28038         * symtab.c (resolution_used_from_other_file_p): Move inline.
28039         (symtab_node::create_reference): Fix formating.
28040         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28041         (symtab_node::iterate_reference): Move inline.
28042         (symtab_node::iterate_referring): Move inline.
28043         (symtab_node::iterate_direct_aliases): Move inline.
28044         (symtab_node::used_from_object_file_p_worker): Inline into ...
28045         (symtab_node::used_from_object_file_p): ... this one; move inline.
28046         (symtab_node::call_for_symbol_and_aliases): Move inline;
28047         use iterate_direct_aliases.
28048         (symtab_node::call_for_symbol_and_aliases_1): New method.
28049         (cgraph_node::call_for_symbol_and_aliases): Move inline;
28050         use iterate_direct_aliases.
28051         (cgraph_node::call_for_symbol_and_aliases_1): New method.
28052         (varpool_node::call_for_node_and_aliases): Rename to ...
28053         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28054         use iterate_direct_aliases.
28055         (varpool_node::call_for_symbol_and_aliases_1): New method.
28056         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28057         (ipa_discover_readonly_nonaddressable_var): Update.
28058         * ipa-devirt.c: Fix formating.
28059         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28060         Move inline.
28061         (cgraph_node::call_for_symbol_and_aliases): Move inline.
28062         (cgraph_node::call_for_symbol_and_aliases_1): New function..
28063         * cgraph.h (used_from_object_file_p_worker): Remove.
28064         (resolution_used_from_other_file_p): Move inline.
28065         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28066         (symtab_node::iterate_reference): Move inline.
28067         (symtab_node::iterate_referring): Move inline.
28068         (symtab_node::iterate_direct_aliases): Move inline.
28069         (symtab_node::used_from_object_file_p_worker): Inline into ...
28070         (symtab_node::used_from_object_file_p): Move inline.
28071         * tree-emutls.c (ipa_lower_emutls): Update.
28072         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28073         (varpool_node::call_for_node_and_aliases): Remove.
28075 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
28077         PR tree-optimization/62209
28078         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28079         op == range->exp, insert seq and gimplified code after labels
28080         instead of after the phi.
28082 2015-02-13  Jeff Law  <law@redhat.com>
28084         PR bootstrap/65060
28085         Revert my change for tree-optimization/64823.
28087 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28089         PR tree-optimization/65053
28090         * tree-ssa-phiopt.c (value_replacement): When moving assign before
28091         cond, either reset VR on lhs or set it to phi result VR.
28093 2015-02-13  Jeff Law  <law@redhat.com>
28095         PR tree-optimization/64823
28096         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28097         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28098         threading through blocks with PHIs, but no statements.
28099         (thread_through_normal_block): Distinguish between blocks where
28100         we did not process all the statements and blocks with no statements.
28102         PR rtl-optimization/47477
28103         * match.pd (convert (plus/minus (convert @0) (convert @1): New
28104         simplifier to narrow arithmetic.
28106 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
28108         PR ipa/65028
28109         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28110         polymorphic call info when type is not known to be preserved.
28112 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
28114         PR ipa/65028
28115         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28116         (inline_call): Use it.
28118 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
28120         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28121         GOMP_DEVICE_NVIDIA_PTX.
28123 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28125         PR ipa/65034
28126         * stmt.c (emit_case_nodes): Use void_type_node instead of
28127         NULL_TREE as LABEL_DECL type.
28129 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
28131         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28132         constraints.
28133         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28134         symbolic references to data to be forced to constant memory on the
28135         SOM target.
28137 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28139         PR tree-optimization/65002
28140         * tree-cfg.c (pass_data_fixup_cfg): Don't update
28141         SSA on start.
28142         * tree-sra.c (some_callers_have_no_vuse_p): New.
28143         (ipa_early_sra): Reject functions whose callers
28144         assume function is read only.
28146 2015-02-13  Richard Biener  <rguenther@suse.de>
28148         PR lto/65015
28149         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28150         for LTO produced CUs.
28152 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
28154         PR tree-optimization/64705
28155         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28156         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28157         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28158         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28159         expand_simple_operations.
28161 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28162             Richard Henderson  <rth@redhat.com>
28164         PR rtl/32219
28165         * cgraphunit.c (cgraph_node::finalize_function): Set definition
28166         before notice_global_symbol.
28167         (varpool_node::finalize_decl): Likewise.
28168         * varasm.c (default_binds_local_p_2): Rename from
28169         default_binds_local_p_1, add weak_dominate argument.  Use direct
28170         returns instead of assigning to local variable.  Unify varpool and
28171         cgraph paths via symtab_node.  Reject undef weak variables before
28172         testing visibility.  Reorder tests for simplicity.
28173         (default_binds_local_p): Use default_binds_local_p_2.
28174         (default_binds_local_p_1): Likewise.
28175         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28176         via symtab_node.
28177         (default_elf_asm_output_external): Emit visibility when specified.
28179 2015-02-13  Alan Modra  <amodra@gmail.com>
28181         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28182         code setting up r11 for out-of-line fp restore.
28184 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
28186         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28187         (muser-mode): Likewise.
28189 2015-02-13  Alan Modra  <amodra@gmail.com>
28191         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28192         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28194 2015-02-12  David Howells  <dhowells@redhat.com>
28196         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28197         warning.
28198         * tree-ssa-uninit.c (dump_predicates): Likewise.
28199         * opts.c (print_filtered_help): Likewise.
28201 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28203         * dwarf2out.c (output_die): Use "%s", name instead of name to
28204         avoid -Wformat-security warning.
28206         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28207         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28208         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28209         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28211 2015-02-12  Jason Merrill  <jason@redhat.com>
28213         * common.opt (-flifetime-dse): New.
28215 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28217         PR sanitizer/65019
28218         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28220         PR tree-optimization/65014
28221         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28222         use original second operand of arg0 or arg1 instead of
28223         that adjusted by STRIP_NOPS.
28225 2015-02-11  Jeff Law  <law@redhat.com>
28227         PR target/63347
28228         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28229         that needs to be queued, just queue it for a single cycle.
28231 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
28233         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28234         bodies of thunks; comment on why.
28235         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28236         symbols are extern.
28238 2015-02-11  Richard Henderson  <rth@redhat.com>
28240         PR sanitize/65000
28241         * tree-eh.c (mark_reachable_handlers): Mark source and destination
28242         regions of __builtin_eh_copy_values.
28244 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28246         PR middle-end/65003
28247         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28248         ultimate alias is MEM with SYMBOL_REF satisfying
28249         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
28250         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28252 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
28254         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28255         "diagnostic-core.h".
28256         (main): Initialize progname, and call diagnostic_initialize.
28258         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28259         instead of __OPENMP_TARGET__.
28261         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28262         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28263         hard-coding PTX_ID.
28265 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
28267         * doc/sourcebuild.texi (pie_enabled): Document.
28269 2015-02-11  Martin Liska  <mliska@suse.cz>
28271         PR ipa/64813
28272         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28273         a return value for call to a function that is noreturn.
28275 2015-02-11  Richard Biener  <rguenther@suse.de>
28277         PR lto/65015
28278         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28279         and -fresolution.
28281 2015-02-11  Andrew Pinski  <apinski@cavium.com>
28283         PR target/64893
28284         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28285         Change the first argument type to size_type_node and add another
28286         size_type_node.
28287         (aarch64_simd_expand_builtin): Handle the new argument to
28288         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28289         print an out when the first two arguments are not
28290         nonzero integer constants.
28291         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28292         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28294 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28296         PR target/61925
28297         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28298         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28299         (ix86_set_current_function): Rewritten.
28300         (ix86_add_new_builtins): Temporarily clear current_target_pragma
28301         when creating builtin fndecls.
28303 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28305         PR ipa/65005
28306         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28307         function.
28308         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28309         have no comdat group.
28310         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28311         (lto_output_varpool_node): Always output alias info.
28312         (output_refs): Output refs of boundary aliases, too.
28313         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28314         (output_symtab): Output call eges in thunks in boundary.
28315         (get_alias_symbol): Remove.
28316         (input_node, input_varpool_node): Do not special case weakrefs.
28317         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28318         alias and thunks targets in the boundary; do not take removed symbols
28319         from their comdat groups.
28320         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28321         (cgraph_node::global_info): Remove.
28322         (cgraph_node::rtl_info): Look through aliases and thunks.
28323         * cgrpah.h (global_info): Remove.
28324         (non_local_p): Remove.
28326 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28327             Sandra Loosemore  <sandra@codesourcery.com>
28329         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28330         to inline asm.  List dialects in proper order.
28332 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28333             Sandra Loosemore  <sandra@codesourcery.com>
28335         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28337 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28339         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28340         modified) reference to Solaris.
28342 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
28344         * doc/extend.texi (Extended Asm): Fix typos.
28346 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
28348         PR sanitizer/65004
28349         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28351 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
28353         PR target/64661
28354         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28355         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28356         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28357         * config/sh/constraints.md (Ara, Add): New constraints.
28358         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28359         predicates.
28360         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28361         atomic_mem_operand_0.  Don't use force_reg on the memory address.
28362         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28363         Sra constraint.  Convert to insn_and_split.  Add workaround for
28364         PR 64974.
28365         (atomic_compare_and_swap<mode>_hard): Copy to
28366         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
28367         Use atomic_mem_operand_0 predicate.
28368         (atomic_compare_and_swap<mode>_soft_gusa,
28369         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28370         AraAdd constraints.
28371         (atomic_compare_and_swap<mode>_soft_tcb,
28372         atomic_compare_and_swap<mode>_soft_imask,
28373         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28374         atomic_mem_operand_0 predicate and SraSdd constraints.
28375         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28376         constraint.
28377         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28378         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
28379         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28380         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
28381         force_reg on the memory address.
28382         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28383         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28384         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28385         atomic_mem_operand_1 predicate and Sra constraint.
28386         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28387         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
28388         Use atomic_mem_operand_1 predicate.
28389         (atomic_<fetchop_name><mode>_hard): Copy to
28390         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
28391         Use atomic_mem_operand_1 predicate.
28392         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28393         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
28394         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
28395         insn_and_split.  Use atomic_mem_operand_1 predicate.
28396         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28397         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
28398         Use atomic_mem_operand_1 predicate.
28399         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28400         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
28401         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28402         in generated insn with original mem operand before emitting the insn.
28403         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28404         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28405         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28406         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28407         Use atomic_mem_operand_1 predicate and AraAdd constraints.
28408         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28409         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28410         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28411         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28412         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28413         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28414         atomic_not_fetch<mode>_soft_tcb,
28415         atomic_<fetchop_name>_fetch<mode>_soft_imask,
28416         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28417         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28418         Use atomic_mem_operand_1 predicate and SraSdd constraints.
28420 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
28422         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28423         and 3 earlyclobber operands.
28425 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28427         * common.opt (fstack-reuse): Mark as optimization.
28429 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28431         PR ipa/64982
28432         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28434 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
28436         PR tree-optimization/64326
28437         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
28439 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
28441         PR gcov-profile/61889
28442         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
28444 2015-02-10  Richard Biener  <rguenther@suse.de>
28446         PR tree-optimization/64995
28447         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
28448         value we use is final.
28449         (visit_reference_op_store): Always valueize op.
28450         (visit_use): Properly valueize vuses.
28452 2015-02-10  Richard Biener  <rguenther@suse.de>
28454         PR tree-optimization/64909
28455         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
28456         pass a scalar-stmt count estimate to the cost model.
28457         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
28459 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
28461         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
28462         enabled by default together with var-tracking.
28464 2015-02-10  Nick Clifton  <nickc@redhat.com>
28466         * config/rl78/rl78.c: Remove DIV attribute code accidentally
28467         included in previous rl78 commit.
28469 2015-02-10  Richard Biener  <rguenther@suse.de>
28471         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
28472         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
28473         return the bitpack.
28475 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
28477         PR gcov-profile/61889
28478         * config.in: regenerate.
28479         * configure.in: Likewise.
28480         * configure.ac: Check for ftw.h.
28481         * gcov-tool.c: Check for ftw.h before using nftw.
28483 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
28485         PR lto/64076
28486         * ipa-visibility.c (update_visibility_by_resolution_info): Only
28487         assert when not in lto mode.
28489 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28491         * ira-color.c (setup_left_conflict_sizes_p): Simplify
28492         initialization/assignment of conflict_size.
28494 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
28496         PR ipa/64978
28497         * ipa-cp.c (gather_caller_stats): Skip thunks.
28498         (propagate_constants_topo): Skip aliases.
28500 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
28502         PR target/64761
28503         * config/sh/sh.c (sh_option_override): Don't change
28504         -freorder-blocks-and-partition to -freorder-blocks even when
28505         unwinding is enabled.
28506         (sh_can_follow_jump): Return false if the followee jump is
28507         a crossing jump when -freorder-blocks-and-partition is specified.
28508         * config/sh/sh.md (*jump_compact_crossing): New insn.
28510 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
28511             Kaz Kojima  <kkojima@gcc.gnu.org>
28513         PR target/64761
28514         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
28515         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
28516         (sh_can_redirect_branch): Rename to ...
28517         (sh_can_follow_jump): ... this.  Constify argument types.
28518         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
28519         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
28520         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
28521         * doc/tm.texi: Regenerate.
28523 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
28525         PR sanitizer/64981
28526         * builtins.c (expand_builtin): Call targetm.expand_builtin
28527         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
28529 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28531         PR ipa/61548
28532         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
28534 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28536         PR ipa/63566
28537         * ipa-icf.c (set_local): New function.
28538         (sem_function::merge): Use it.
28540 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28542         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
28543         (add_type_duplicate): Fix comparison of BINFOs.
28545 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28547         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
28548         on getting VOID pointer.
28550 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
28552         PR target/64979
28553         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
28554         va_list escapes.
28556 2015-02-09  Richard Biener  <rguenther@suse.de>
28558         * genmatch.c (replace_id): Copy expr_type.
28560 2015-02-09  Richard Biener  <rguenther@suse.de>
28562         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
28563         (streamer_write_tree_bitfields): Declare.
28564         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
28565         properly unpack padding.
28566         (unpack_value_fields): Inline ...
28567         (streamer_read_tree_bitfields): ... here.
28568         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
28569         and properly add padding bits.
28570         (streamer_pack_tree_bitfields): Fold into ...
28571         (streamer_write_tree_bitfields): ... this new function,
28572         exposing the bitpack object.
28573         * lto-streamer-out.c (lto_write_tree_1): Call
28574         streamer_write_tree_bitfields.
28576 2015-02-09  Richard Biener  <rguenther@suse.de>
28578         PR tree-optimization/54000
28579         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
28580         (struct ivopts_data): Add loop_loc member.
28581         (tree_ssa_iv_optimize_loop): Dump loop location.
28582         (create_new_ivs): Likewise, also dump number of IVs generated.
28584 2015-02-09  Martin Liska  <mliska@suse.cz>
28586         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
28587         just if not yet registered.
28588         (ipa_icf_generate_summary): Register callgraph hooks.
28590 2015-02-08  Andrew Pinski  <apinski@cavium.com>
28592         * config/aarch64/aarch64.c (gty_dummy): Delete.
28594 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28596         PR ipa/63566
28597         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
28598         (cgraph_node::local_p): Remove thunk related FIXME.
28600 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28602         PR ipa/63566
28603         * i386.c (ix86_function_regparm): Look through aliases to see if callee
28604         is local and optimized.
28605         (ix86_function_sseregparm): Likewise; also use target's SSE math
28606         settings; error out instead of silently generating wrong code
28607         on mismatches.
28608         (init_cumulative_args): Look through aliases.
28610 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28612         PR ipa/63566
28613         * ipa-split.c (execute_split_functions): Split if function has aliases.
28615 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
28617         PR ipa/63566
28618         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
28619         aliases before trying to expand it.
28620         (cgraph_node::expand_thunk): Fix formating.
28622 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
28624         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
28625         (Using Assembly Language with C): Expand introduction.
28626         (Basic Asm): Copy-edit.  Add more information about uses of
28627         basic asm.
28628         (Extended Asm): Copy-edit.  Document new escape syntax and
28629         %l[label] syntax.
28630         (Global Reg Vars): Copy-edit.
28631         (Local Reg Vars): Likewise.
28633 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
28635         PR debug/2714
28636         PR bootstrap/64256
28637         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
28638         (DBX_CONTIN_CHAR): Define.
28640 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
28641             Brian Rzycki  <b.rzycki@samsung.com>
28643         PR tree-optimization/64878
28644         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
28645         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
28646         Stop recursion at loop phi nodes after having visited a loop phi node.
28648 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
28650         * toplev.c (process_options): Change flag_ipa_ra before creating
28651         optimization_{default,current}_node.
28653         PR ipa/64896
28654         * cgraphunit.c (cgraph_node::expand_thunk): If
28655         restype is not is_gimple_reg_type nor the thunk_fndecl
28656         returns aggregate_value_p, set restmp to a temporary variable
28657         instead of resdecl.
28659 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
28661         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
28663 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
28665         PR target/64205
28666         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
28667         add a general secondary reload handler for SDmode, unless we have
28668         both read/write support for SDmode.
28670 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
28672         PR middle-end/64937
28673         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
28674         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
28675         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
28676         1 before, push it to abstract_vec.
28677         (dwarf2out_abstract_function): Adjust caller.  Don't call
28678         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
28679         DECL_ABSTRACT_P flags for all abstract_vec elts.
28681 2015-02-06  Renlin Li  <renlin.li@arm.com>
28683         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
28684         complex gimple.
28685         * tree-ssa.c (execute_update_addresses_taken): Likewise.
28687 2015-02-06  Jeff Law  <law@redhat.com>
28689         PR target/64889
28690         * config/h8300/h8300.c (push): New argument "in_prologue".
28691         Pass "in_prologue" along to "F".
28692         (h8300_push_pop): Corresponding changes.
28693         (h8300_expand_prologue): Likewise.
28694         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
28696 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
28698         PR rtl-optimization/64957
28699         PR debug/64817
28700         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
28701         IOR rather than for AND.
28703 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
28705         PR target/62631
28706         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
28707         of shift-add and (add + shift) operations.  Rename local variable.
28709 2015-02-05  Jeff Law  <law@redhat.com>
28711         PR target/17306
28712         * config/h8300/constraints.md (U): Correctly dectect
28713         "eightbit_data" memory addresses.
28714         * config/h8300/h8300.c (eightbit_constant_address_p): Also
28715         handle (const (plus (symbol_ref (x)))) where x is declared
28716         as an 8-bit data memory address.
28717         * config/h8300/h8300.md (call, call_value): Correctly detect
28718         "funcvec" functions.
28720         PR target/43264
28721         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
28722         24 to 28 bits for the H8/300.
28724 2015-02-06  Alan Modra  <amodra@gmail.com>
28726         PR target/64876
28727         * config/rs6000/rs6000.c (chain_already_loaded): New function.
28728         (rs6000_call_aix): Use it.
28730 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
28732         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
28733         check.
28735 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
28737         * config/h8300/constraints.md ("U" constraint): Use strict
28738         variant of REG_OK_FOR_BASE_P after reload has started.
28740 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
28742         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
28743         define to zero if !TARGET_NEON.
28744         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
28746 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28747             Trevor Saunders  <tsaunders@mozilla.com>
28749         PR ipa/61548
28750         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
28752 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28754         PR ipa/61548
28755         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
28756         when removing varpool nodes.
28758 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28760         PR ipa/61548
28761         * varpool.c (varpool_node::remove): Fix order of variables.
28763 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28765         PR ipa/64686
28766         * ipa-inline.c (inline_small_functions): Fix ordering issue between
28767         speculation resolution and key updates.
28769 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28771         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
28772         about not letting any speculative edges unupdated.
28774 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28776         PR gcov/64123
28777         * gcov-io.c (gcov_var): Export.
28779 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28781         PR middle-end/64922
28782         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
28783         edges that become speculative.
28785 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
28787         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
28788         or DW_LANG_Fortran08.
28789         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
28790         DW_LANG_Fortran08.
28791         (gen_compile_unit_die): Handle "GNU Fortran2003" and
28792         "GNU Fortran2008" language strings.
28793         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
28794         * langhooks.h (lang_GNU_Fortran): New prototype.
28795         * langhooks.c (lang_GNU_Fortran): New function.
28796         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
28797         lang_GNU_Fortran.
28799 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
28801         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
28802         (RTX_OK_FOR_OLO10_P): Likewise.
28804 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
28806         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
28808 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
28810         PR middle-end/64922
28811         * gimple.c: Include gimple-ssa.h.
28812         (maybe_remove_unused_call_args): New function.
28813         * gimple.h (maybe_remove_unused_call_args): Declare.
28814         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
28815         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
28816         * gimple-fold.c (gimple_fold_call): Likewise.
28818 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
28820         PR rtl-optimization/64905
28821         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
28822         pointer alignment if it isn't needed.
28824 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
28826         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
28827         cortex-a72.cortex-a53.
28828         * config/aarch64/aarch64-tune.md: Regenerate.
28829         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
28831 2015-02-04  Nick Clifton  <nickc@redhat.com>
28833         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
28834         inside a MEM.
28836 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
28838         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
28839         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
28840         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
28841         of DEF_BUILTIN.
28842         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
28843         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
28844         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
28845         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
28846         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
28847         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
28848         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
28849         * tree-core.h (enum built_in_function): In between
28850         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
28851         for builtins that use DEF_BUILTIN_CHKP macro.
28853 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
28855         PR debug/64817
28856         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
28857         operands for tcc_comparison exprs.  Fix typos.
28859         PR debug/64817
28860         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
28861         of two XORs that have an intervening AND or IOR.
28863         PR debug/64817
28864         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
28865         simplification of XOR of AND to not allocate new rtx before
28866         committing to a simplification.
28868 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28870         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
28871         manual swaps in all peepholes.
28873 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28875         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
28876         of manual swapping implementation.
28877         (aarch64_expand_vec_perm_const_1): Likewise.
28879 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
28881         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
28882         (generic_addrcost_table): Remove NAMED_PARAM.
28883         (cortexa57_addrcost_table): Likewise.
28884         (xgene1_addrcost_table): Likewise.
28885         (generic_regmove_table): Likewise.
28886         (cortexa53_regmove_table): Likewise.
28887         (xgene1_regmove_table): Likewise.
28888         (generic_vector_table): Likewise.
28889         (cortexa57_vector_table): Likewise.
28890         (xgene1_vector_table): Likewise.
28891         (generic_tunings): Likewise.
28892         (cortexa53_tunings): Likewise.
28893         (cortexa57_tunings): Likewise.
28894         (xgene1_tunings): Likewise.
28896 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
28898         * config/arm/arm-cores.def: Add cortex-a72 and
28899         cortex-a72.cortex-a53.
28900         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
28901         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
28902         * config/arm/arm-tune.md: Regenerate.
28903         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
28904         "cortex-a72.cortex-a53".
28905         * doc/invoke.texi (ARM Options/-mtune): Likewise.
28907 2015-02-04  Nick Clifton  <nickc@redhat.com>
28909         PR target/64408
28910         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
28911         of accepted codes.
28912         (nonimmediate_di_operand): Likewise.
28914         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
28915         prefixes of known F5 using MSP430 MCUs.
28917 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28919         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
28920         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
28921         instead of __builtin_sqrt.
28923 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
28925         * varasm.c (do_assemble_alias): Follow transparent alias
28926         chain for target.
28927         (default_assemble_visibility): Follow transparent alias
28928         chain for decl name.
28930 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28932         PR middle-end/62103
28933         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
28934         to compute size of referenced value in the constant case.
28936 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
28938         PR rtl-optimization/64756
28939         * cse.c (invalidate_dest): New function.
28940         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
28941         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
28942         invalidate and do not record it.
28944 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
28946         PR target/64660
28947         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
28948         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
28949         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
28950         atomic_nand<mode>_soft_tcb): New insns.
28951         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
28952         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
28953         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
28954         Split into atomic_not_fetchsi_hard if operands[0] is unused.
28955         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
28956         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28957         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
28958         atomic_not<mode>_hard if operands[0] is unused.
28959         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
28960         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
28961         if operands[0] is unused.
28962         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
28963         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
28964         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
28965         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28966         unused.
28967         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
28968         into atomic_not<mode>_soft_tcb if operands[0] is unused.
28969         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
28970         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
28971         if operands[0] is unused.
28972         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
28973         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
28974         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
28975         atomic_nand_fetchsi_hard if operands[0] is unused.
28976         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
28977         atomic_nand<mode>_hard if operands[0] is unused.
28978         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
28979         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
28980         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
28981         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28982         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
28983         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
28984         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
28985         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28986         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
28987         atomic_not<mode>_hard if operands[0] is unused.
28988         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
28989         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28990         unused.
28991         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
28992         into atomic_not<mode>_soft_tcb if operands[0] is unused.
28993         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
28994         atomic_nand<mode>_hard if operands[0] is unused.
28995         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
28996         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28998 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
29000         PR jit/64810
29001         * Makefile.in (GCC_OBJS): Add gcc-main.o.
29002         * gcc-main.c: New file, containing "main" taken from gcc.c.
29003         * gcc.c (do_self_spec): Free decoded_options.
29004         (class driver): Move declaration to gcc.h.
29005         (main): Move declaration and implementation to new file
29006         gcc-main.c.
29007         (driver_get_configure_time_options): New function.
29008         * gcc.h (class driver): Move this declaration here, from
29009         gcc.c.
29010         (driver_get_configure_time_options): New declaration.
29012 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
29014         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29015         cross-module inlining.
29016         * cgraph.h (cgraph_node): Add flag merged.
29017         * ipa-icf.c (sem_function::merge): Maintain it.
29019 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
29021         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29022         instead of OBJECT_P.
29024 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
29026         PR target/62631
29027         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29028         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29029         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29030         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29032 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29034         PR other/63504
29035         * combine.c (reg_n_sets_max): New variable.
29036         (can_change_dest_mode, reg_nonzero_bits_for_combine,
29037         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29038         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29039         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29040         (rest_of_handle_combine): Initialize reg_n_sets_max.
29042 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
29044         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29045         if some always_inline was inlined, apply changes before inlining
29046         heuristically.
29048 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
29050         PR jit/64810
29051         * config/arm/arm.c (arm_option_override): Set
29052         arm_selected_arch/cpu/tune to NULL on entry.
29054 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
29055             Andrew Pinski  <pinskia@gcc.gnu.org>
29056             Jakub Jelinek  <jakub@gcc.gnu.org>
29058         PR target/64231
29059         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29060         integer typing for small model. Use IN_RANGE.
29062 2015-02-02  Richard Biener  <rguenther@suse.de>
29064         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29065         * tree-vrp.c (vrp_valueize_1): Likewise.
29067 2015-02-02  Alan Modra  <amodra@gmail.com>
29069         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29070         than mem for toc_restore.
29071         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29072         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29073         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29075 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
29077         PR target/64047
29078         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29079         explicit default options.
29081 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
29083         PR ipa/64872
29084         * ipa-utils.c (ipa_merge_profiles): Add release argument.
29085         * ipa-icf.c (sem_function::merge): Do not release body when merging.
29086         * ipa-utils.h (ipa_merge_profiles): Update prototype.
29088 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
29090         PR debug/64817
29091         * cfgexpand.c (deep_ter_debug_map): New variable.
29092         (avoid_deep_ter_for_debug): New function.
29093         (expand_debug_expr): If TERed SSA_NAME is in
29094         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29095         instead of trying to expand SSA_NAME's def stmt.
29096         (expand_debug_locations): When expanding debug bind
29097         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29098         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29099         value.
29100         (pass_expand::execute): Call avoid_deep_ter_for_debug on
29101         all debug bind stmts.  Delete deep_ter_debug_map after
29102         expand_debug_location if non-NULL and clear it.
29104 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
29106         PR target/64851
29107         * config/sh/sync.md (atomic_fetch_notsi_hard,
29108         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29109         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29110         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29111         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29112         atomic_not_fetch<mode>_soft_imask): New insns.
29114 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29116         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29117         (rank_for_schedule_debug): Split from ...
29118         (rank_for_schedule): ... this.
29119         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29120         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29122 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29124         * doc/md.texi (Machine Constraints): Alphabetize table by target.
29125         * doc/extend.texi (x86 Variable Attributes): Move section to
29126         correct alphabetization after renaming.
29127         (x86 Type Attributes): Likewise.
29128         (Target Builtins): Re-alphabetize menu.
29129         (x86 Built-in Functions): Move section to correct alphabetization
29130         after renaming.
29131         (x86 transactional memory intrinsics): Likewise.
29132         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29133         and x86 Windows Options in table and menu.
29134         (x86 Options): Move section to correct alphabetization after
29135         renaming.
29136         (x86 Windows Options): Likewise.
29138 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29140         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29141         preferred names of the architecture and its 32- and 64-bit
29142         variants.
29143         * doc/invoke.texi: Likewise.
29144         * doc/md.texi: Likewise.
29146 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
29148         PR target/64882
29149         * config/i386/predicates.md (address_no_seg_operand): Reject
29150         non-CONST_INT_P operands in invalid mode.
29152 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
29154         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29155         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
29156         * config/i386/predicates.md (address_no_seg_operand): Call
29157         address_operand with VOIDmode.
29158         (vsib_address_operand): Ditto.
29159         (address_mpx_no_base_operand): Ditto.
29160         (address_mpx_no_index_operand): Ditto.
29162 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29164         PR target/64688
29165         * lra-constraints.c (original_subreg_reg_mode): New.
29166         (simplify_operand_subreg): Try to simplify subreg of const.  Use
29167         original_subreg_reg_mode for it.
29168         (swap_operands): Update original_subreg_reg_mode.
29169         (curr_insn_transform): Set up original_subreg_reg_mode.
29171 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29173         PR target/64617
29174         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29175         function.
29176         (process_alt_operands): Use it.
29177         (curr_insn_transform): Check the optional reload pseudo class is
29178         ok for the mode.
29180 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
29182         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29183         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29184         prototype.
29185         * toplev.h (init_asm_output): Update comment on use of
29186         UNKNOWN_LOCATION with fatal_error.
29187         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29188         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29189         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29190         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29191         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29192         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29193         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29194         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29195         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29196         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29197         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29198         fatal_error changed to pass input_location as first argument.
29200 2015-01-30  Martin Liska  <mliska@suse.cz>
29202         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29203         in #pragma GCC diagnostic guards.
29205 2015-01-30  Richard Biener  <rguenther@suse.de>
29207         PR tree-optimization/64829
29208         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29209         not add a widening conversion pattern but hand off extra
29210         widenings to callers.
29211         (vect_recog_widen_mult_pattern): Handle extra widening produced
29212         by vect_handle_widen_op_by_const.
29213         (vect_recog_widen_shift_pattern): Likewise.
29214         (vect_pattern_recog_1): Remove excess vertical space in dumping.
29215         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29216         (vect_init_vector_1): Likewise.
29217         (vect_get_vec_def_for_operand): Likewise.
29218         (vect_finish_stmt_generation): Likewise.
29219         (vectorizable_load): Likewise.
29220         (vect_analyze_stmt): Likewise.
29221         (vect_is_simple_use): Likewise.
29223 2015-01-29  Jeff Law  <law@redhat.com>
29225         * combine.c (try_combine): Fix typo in comment.
29227 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
29229         PR target/64580
29230         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29231         (rs6000_stack_info): Add assert.
29232         (rs6000_output_savres_externs): New function, split off from...
29233         (rs6000_output_function_prologue): ... here.  Do not call it for
29234         thunks.
29236 2015-01-29  Jeff Law  <law@redhat.com>
29238         PR target/15184
29239         * combine.c (try_combine): If I0 is a memory load and I3 a store
29240         to a related address, increase the "goodness" of doing a 4-insn
29241         combination with I0-I3.
29242         (make_field_assignment): Handle SUBREGs in the ior+and case.
29244 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
29246         PR tree-optimization/64746
29247         * tree-if-conv.c (mask_exists): New function.
29248         (predicate_mem_writes): Save created mask with given size for further
29249         use.
29250         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29251         (ifcvt_repair_bool_pattern): Collect all statements that are root
29252         of bool pattern and use iterative algorithm to remove multiple uses
29253         of predicates, display number of required iterations.
29255 2015-01-29  Richard Biener  <rguenther@suse.de>
29257         PR tree-optimization/64853
29258         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29259         stmt will get simulated again.
29260         * tree-ssa-ccp.c (valueize_op_1): Likewise.
29262 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29264         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29265         return_in_pc.  Remove redundant assignments.
29266         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29267         (arm_expand_epilogue): Don't compare boolean with true in if condition.
29269 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
29271         * config/i386/i386.c (ix86_mode_after): Make static.
29273 2015-01-29  Richard Biener  <rguenther@suse.de>
29275         PR tree-optimization/64844
29276         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29277         dump cost model analysis.
29278         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29279         Do not register adjusted load/store costs here.
29281 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
29282             Uros Bizjak  <ubizjak@gmail.com>
29284         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29285         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29286         using x86_use_pseudo_pic_reg.
29287         * config/i386/i386.c (ix86_conditional_register_usage): Remove
29288         support for fixed PIC register.
29289         (ix86_use_pseudo_pic_reg): Not static any more.
29291 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
29293         PR middle-end/64805
29294         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29295         to avoid error in cgraph node verification.
29297 2015-01-29  Marek Polacek  <polacek@redhat.com>
29299         * doc/standards.texi: Reflect that the default for C is gnu11.
29301 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
29303         PR target/64761
29304         * reorg.c (switch_text_sections_between_p): New function.
29305         (relax_delay_slots): Call it when testing if the jump insn
29306         is removable.  Use targetm.can_follow_jump when testing if
29307         the conditional branch can follow an unconditional jump.
29309 2015-01-27  Caroline Tice  <cmtice@google.com>
29311         Committing VTV Cywin/Ming patch for Patrick Wollgast
29312         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29313         if -fvtable-verify=preinit/std is used.
29314         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29315         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29316         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29317         if -fvtable-verify=preinit/std is used.
29318         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29319         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29320         if -fvtable-verify=preinit/std is used.
29321         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29322         * config/i386/mingw32.h (LIB_SPEC): Likewise.
29323         * varasm.c (assemble_variable): Add code to properly set the comdat
29324         section and name for the .vtable_map_vars section in case the
29325         target is PE or COFF.
29327 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
29329         PR ipa/64801
29330         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29331         make sane BB profile.
29332         (cgraph_node::expand_thunk): Make sane BB profile.
29333         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29334         * cgraph.h (init_lowered_empty_function): Update prototype.
29335         * config/i386/i386.c (make_resolver_func): Update call.
29336         * predict.c (gate): Disable branch prediction pass if
29337         profile is already there.
29339 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
29341         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29342         * opth-gen.awk: Likewise.
29343         * common.opt: Mark flag_fp_contract_mode as Optimization.
29345 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29347         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29348         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29350 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
29352         PR target/64659
29353         * config/sh/predicates.md (atomic_arith_operand,
29354         atomic_logical_operand): Remove.
29355         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29356         (atomic_arith_operand_0): New predicate.
29357         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29358         Use atomic_arith_operand_0 for input values.
29359         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29360         atomic_compare_and_swap<mode>_soft_gusa,
29361         atomic_compare_and_swap<mode>_soft_tcb,
29362         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29363         arith_reg_operand instead of register_operand.
29364         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
29365         atomic_arith_operand_0 for newval input.
29366         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29367         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29368         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29369         arith_reg_operand instead of register_operand.
29370         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29371         fetchop_predicate_1, fetchop_constraint_1_llcs,
29372         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29373         fetchop_constraint_1_imask): New code iterator attributes.
29374         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29375         register_operand.  Use fetchop_predicate_1.
29376         (atomic_fetch_<fetchop_name>si_hard,
29377         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29378         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29379         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29380         and arith_reg_operand instead of register_operand.  Use
29381         fetchop_predicate_1, fetchop_constraint_1_gusa.
29382         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29383         and arith_reg_operand instead of register_operand.  Use
29384         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
29385         to allow R0 usage.
29386         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29387         and arith_reg_operand instead of register_operand.  Use
29388         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
29389         to allow R0 usage.
29390         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29391         register_operand.  Use atomic_logical_operand_1.
29392         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29393         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29394         arith_reg_operand instead of register_operand.
29395         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29396         Use arith_reg_dest and arith_reg_operand instead of register_operand.
29397         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
29398         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29399         register_operand.  Use fetchop_predicate_1.
29400         (atomic_<fetchop_name>_fetchsi_hard,
29401         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29402         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29403         fetchop_constraint_1_llcs.
29404         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29405         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29406         fetchop_constraint_1_gusa.
29407         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29408         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29409         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
29410         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29411         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29412         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
29413         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29414         register_operand.  Use atomic_logical_operand_1.
29415         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29416         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29417         arith_reg_operand instead of register_operand.
29418         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29419         arith_reg_operand instead of register_operand.  Use logical_operand
29420         and K08.  Adjust asm sequence to allow R0 usage.
29421         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29422         arith_reg_operand instead of register_operand.  Use logical_operand
29423         and K08.
29425 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
29427         PR other/63504
29428         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29429         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29430         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29431         only get_full_len HOST_WIDE_INTs from get_val () array rather than
29432         all bits in *val_wide.
29434 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
29436         * varpool.c (tls_model_names): Fix names.
29437         (varpool_node::dump): Dump tls- prefix for tls models.
29439 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
29440             Bernd Schmidt  <bernds@codesourcery.com>
29441             Nathan Sidwell  <nathan@codesourcery.com>
29443         * config/nvptx/mkoffload.c: New file.
29444         * config/nvptx/t-nvptx: Add build rules for it.
29445         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
29446         (extra_programs): Add mkoffload.
29447         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
29448         function.
29449         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
29451 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
29453         PR middle-end/64809
29454         * cfgexpand.c (reorder_operands): Skip debug gimples.
29456 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
29458         PR tree-optimization/64277
29459         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
29460         range info when possible to refine estimation.
29462 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29464         PR tree-optimization/64718
29465         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
29466         be a 16bit unsigned integer when n->range is 16.
29467         (bswap_replace): Convert src to that type if necessary for all bswap
29468         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
29469         set in pass_optimize_bswap::execute ().
29471 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
29473         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
29474         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
29475         integer and floating point variants.
29476         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
29478 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
29480         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
29481         for all vector modes.
29483 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
29485         PR bootstrap/64612
29486         * doc/sourcebuild.texi (comdat_group): Document.
29488 2015-01-28  Terry Guo  <terry.guo@arm.com>
29490         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
29492 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
29494         * toplev.c (print_version): Add param "show_global_state", and
29495         only print GGC and plugin information if it is true.
29496         (init_asm_output): Pass in "true" for the new param when calling
29497         print_version.
29498         (process_options): Likewise.
29499         (toplev::main): Likewise.
29500         * toplev.h (print_version): Add new param to decl.
29502 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
29504         PR ipa/60871
29505         PR ipa/64139
29506         * tree.c (lookup_binfo_at_offset): New function.
29507         (get_binfo_at_offset): Use it.
29509 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
29511         PR ipa/64282
29512         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
29513         on vtable being vtable.
29515 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29517         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
29518         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
29519         -mhotpatch= option.
29520         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
29521         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
29522         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
29523         Renamed.
29524         (s390_hotpatch_trampoline_halfwords_max): Renamed.
29525         (s390_hotpatch_hw_max): New name.
29526         (s390_hotpatch_trampoline_halfwords): Renamed.
29527         (s390_hotpatch_hw_before_label): New name.
29528         (get_hotpatch_attribute): Removed.
29529         (s390_hotpatch_hw_after_label): New name.
29530         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
29531         attribute.
29532         (s390_attribute_table): Ditto.
29533         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
29534         (s390_function_num_hotpatch_hw): New name.
29535         Remove special handling of inline functions and hotpatching.
29536         Return number of nops before and after the function label.
29537         (s390_can_inline_p): Removed.
29538         (s390_asm_output_function_label): Emit a configurable number of nops
29539         after the function label.
29540         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
29541         (TARGET_CAN_INLINE_P) Removed.
29542         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
29544 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29545             Jiong Wang  <jiong.wang@arm.com>
29547         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
29548         of scratch reg.
29549         (cb<optab><mode>1): Likewise.
29550         * config/aarch64/iterators.md (bcond): New define_code_attr.
29552 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29554         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
29555         memory accesses.
29557 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29559         * config/s390/s390.c (s390_register_move_cost): Increase costs for
29560         FPR->GPR moves.
29562 2015-01-27  Richard Biener  <rguenther@suse.de>
29564         * tree-vrp.c (update_value_range): Intersect the range with
29565         old recorded SSA name range information.
29567 2015-01-27  Nick Clifton  <nickc@redhat.com>
29569         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
29570         BC, DE and HL registers directly, not via AX.
29571         When decrementing the stack pointer by a large amount, transfer SP
29572         into AX and perform the subtraction there.
29573         (rl78_expand_epilogue): Perform the inverse of the above
29574         enhancements.
29576 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29578         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
29580 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
29581             Yury Gribov  <y.gribov@samsung.com>
29583         PR ubsan/64741
29584         * ubsan.c (ubsan_source_location): Refactor code.
29585         (ubsan_type_descriptor): Update type size. Refactor code.
29587 2015-01-27  Richard Biener  <rguenther@suse.de>
29589         PR tree-optimization/56273
29590         PR tree-optimization/59124
29591         PR tree-optimization/64277
29592         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
29593         from the first VRP pass.
29595 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
29597         PR ipa/64776
29598         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
29599         handle the first argument in the same loop as all the other arguments.
29601         PR rtl-optimization/61058
29602         * jump.c (cleanup_barriers): Update basic block boundaries
29603         if BLOCK_FOR_INSN is non-NULL on PREV.
29605 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
29607         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
29608         bounds narrowing, already instrumented calls and calls to
29609         not instrumentable functions.
29611 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
29613         PR tree-optimization/64807
29614         * wide-int.cc (wi::divmod_internal): Clear
29615         b_dividend[dividend_blocks_needed].
29617 2015-01-26  DJ Delorie  <dj@redhat.com>
29619         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
29620         volatile memory references.
29622 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
29624         PR target/49263
29625         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
29626         remove_insn.
29627         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
29628         shifts if it already fits into K08.
29630 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
29632         PR ipa/64730
29633         * ipa-inline.c (inline_small_functions): Print "unknown" even
29634         if edge->call_stmt is non-NULL, but has builtins or unknown
29635         location.
29637         PR middle-end/64421
29638         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
29639         with asterisk, skip the first character.
29641 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
29643         PR target/64806
29644         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
29645         order change.
29647 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
29649         PR target/64795
29650         * config/i386/i386.md (*movdi_internal): Also check operand 0
29651         to determine TYPE_LEA operand.
29652         (*movsi_internal): Ditto.
29654 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
29656         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
29657         OPTION_MASK_QUAD_MEMORY_ATOMIC.
29659 2015-01-26  Renlin Li  <renlin.li@arm.com>
29661         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
29662         the comment.
29663         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
29664         for higher part.
29666 2015-01-26  Richard Biener  <rguenther@suse.de>
29668         PR middle-end/64764
29669         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
29670         combining two BIT_AND_EXPR predicates.
29672 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
29674         PR bootstrap/64754
29675         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
29677 2015-01-26  Terry Guo  <terry.guo@arm.com>
29679         * config/arm/arm.c (arm_file_start): Update the assignment of
29680         Tag_ABI_HardFP_use.
29682 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
29684         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
29685         pipeline model.
29686         config/arm/arm.md: Include the new Cortex-A57 model.
29687         (generic_sched): Don't use generic_sched when tuning for
29688         Cortex-A57.
29690 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
29691             Uros Bizjak  <ubizjak@gmail.com>
29693         * config/i386/i386.c (get_builtin_code_for_version): Add
29694         support for BMI and BMI2 multiversion functions.
29696 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29698         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
29699         (extract_bit_field): Likewise.
29700         (extract_low_bits): Likewise.
29701         (expand_mult): Likewise.
29702         (expand_mult_highpart_adjust): Likewise.
29704 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29706         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
29707         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
29708         * config/i386/i386.c (processor_model): Add
29709         M_INTEL_COREI7_BROADWELL.
29710         (arch_names_table): Add "broadwell".
29712 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
29714         PR target/49263
29715         PR target/53987
29716         PR target/64345
29717         PR target/59533
29718         PR target/52933
29719         PR target/54236
29720         PR target/51244
29721         * config/sh/sh-protos.h
29722         (sh_extending_set_of_reg::can_use_as_unextended_reg,
29723         sh_extending_set_of_reg::use_as_unextended_reg,
29724         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
29725         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
29726         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
29727         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
29728         (sh_treg_insns): New class.
29729         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
29730         (scope_counter): New class.
29731         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
29732         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
29733         sh_extending_set_of_reg::can_use_as_unextended_reg,
29734         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
29735         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
29736         sh_split_treg_set_expr): New functions.
29737         (addsubcosts): Handle treg_set_expr.
29738         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
29739         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
29740         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
29741         (sh_insn_operands_modified_between_p): Make non-static.
29742         * config/sh/predicates.md (zero_extend_movu_operand): Allow
29743         simple_mem_operand in addition to displacement_mem_operand.
29744         (zero_extend_operand): Don't allow zero_extend_movu_operand.
29745         (treg_set_expr, treg_set_expr_not_const01,
29746         arith_reg_or_treg_set_expr): New predicates.
29747         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
29748         arith_or_int_operand instead of logical_operand.  Convert to
29749         insn_and_split.  Try to optimize constant operand in splitter.
29750         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
29751         (*tstqi_t_zero): Delete.
29752         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
29753         (tstsi_t_and_not): Delete.
29754         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
29755         Convert to insn_and_split.
29756         (unnamed split, tstsi_t_zero_extract_xor,
29757         tstsi_t_zero_extract_subreg_xor_little,
29758         tstsi_t_zero_extract_subreg_xor_big): Delete.
29759         (*tstsi_t_shift_mask): New insn_and_split.
29760         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
29761         to recombine with surrounding insns when splitting.
29762         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
29763         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
29764         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
29765         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
29766         (*cbranch_div0s: Delete.
29767         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
29768         Try to recombine with surrounding insns when splitting.  Add operand
29769         order variants.
29770         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
29771         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
29772         *addc_r_r_msb, *addc_2r_msb): Delete.
29773         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
29774         order variant.
29775         (*addc_negreg_t): New insn_and_split.
29776         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
29777         Try to recombine with surrounding insns when splitting.
29778         Add operand order variants.
29779         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
29780         insn_and_split patterns.
29781         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
29782         surrounding insns when splitting.
29783         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
29784         (*rotcl): Likewise.  Add zero_extract variant.
29785         (*ashrsi2_31): New insn_and_split.
29786         (*negc): Convert to insn_and_split.  Use treg_set_expr.
29787         (*zero_extend<mode>si2_disp_mem): Update comment.
29788         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
29789         condition.
29790         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
29791         with surrounding insns when splitting.
29792         (any_treg_expr_to_reg): New insn_and_split.
29793         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
29794         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
29795         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
29796         *zero_extract_2): New single bit zero extract patterns.
29797         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
29798         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
29799         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
29800         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
29801         set destination.
29802         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
29803         register_operand for set source.
29805 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
29807         * i386.opt (prefetch_sse): New targetsave.
29808         * i386.c (ix86_function_specific_save): Save prefetch_sse.
29809         (ix86_function_specific_restore): Restore prefetch_sse and initialize
29810         ix86_cost/ix86_tune_cost.
29812 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
29814         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
29815         Support the JIT by using 0 as the language type.
29817 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
29819         PR target/64317
29820         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
29821         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
29822         (mark_regno_live, process_bb_lives): Pass new parameter value to
29823         make_hard_regno_born.
29825 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
29827         PR rtl-optimization/63637
29828         PR rtl-optimization/60663
29829         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
29830         if elt->cost is MAX_COST for ASM_OPERANDS.
29831         (find_sets_in_insn): Fix up comment typo.
29832         (cse_insn): Don't set src_volatile for all non-volatile
29833         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
29834         or with "memory" clobber.  Set elt->cost to MAX_COST
29835         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
29836         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
29838 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
29840         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
29841         alternative 1.
29843 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
29845         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
29846         libgcc/config/i386/elf-lib.h.
29848 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
29850         PR driver/64737
29851         * gcc.c (print_configuration): Don't print a blank line at the end
29852         here...
29853         (run_attempt): ... but here unstead.
29855         PR middle-end/64734
29856         * omp-low.c (scan_sharing_clauses): Don't ignore
29857         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
29858         on target data/update constructs.
29860 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29862         PR target/50928
29863         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
29864         (DEBUG_RELOAD): Removed define.
29865         (m32c_limit_reload_class): Enable traces with if DEBUG0.
29866         (m32c_function_arg): Added a type cast.
29867         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
29868         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
29869         * config/m32c/bitops.md (andqi3_16): Likewise.
29870         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
29871         (push_a01_l): Likewise.
29873 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
29875         PR jit/64721
29876         * main.c (main): Construct toplev instances with init_signals=true.
29877         * toplev.c (general_init): Add param "init_signals", and use it to
29878         conditionalize the calls to signal and host_hooks.extra_signals.
29879         (toplev::toplev): Add param "init_signals".
29880         (toplev::main): When invoking general_init, pass m_init_signals
29881         to control whether signal-handlers are installed.
29882         * toplev.h (toplev::toplev): Add param "init_signals".
29883         (toplev::m_init_signals): New field.
29885 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
29887         PR jit/64722
29888         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
29889         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
29890         latter may be affected by the former (e.g. on i686).
29892 2015-01-23  Martin Liska  <mliska@suse.cz>
29894         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
29895         false positive during profiledbootstrap.
29897 2015-01-23  Tom de Vries  <tom@codesourcery.com>
29899         PR libgomp/64672
29900         * lto-opts.c (lto_write_options): Output non-explicit conservative
29901         -fno-openacc.
29902         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
29903         (append_compiler_options): Pass -fopenacc through.
29905 2015-01-23  Tom de Vries  <tom@codesourcery.com>
29907         PR libgomp/64707
29908         * lto-opts.c (lto_write_options): Output non-explicit conservative
29909         -fno-openmp.
29910         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
29911         (append_compiler_options): Pass -fopenmp through.
29913 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
29915         PR debug/64511
29916         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
29917         GTY markup.
29919         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
29920         * diagnostic.def (DK_ICE_NOBT): New kind.
29921         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
29922         like DK_ICE, but never print backtrace.
29923         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
29924         (internal_error_no_backtrace): New function.
29925         * gcc.c (execute): Use internal_error_no_backtrace instead of
29926         internal_error.
29928 2015-01-22  Jeff Law  <law@redhat.com>
29930         PR target/52076
29931         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
29932         improve code density for small immediate to memory case.
29933         (insv): Better handle bitfield assignments when the field is
29934         being set to all ones.
29935         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
29936         operand predicate.
29938 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29939             Jakub Jelinek  <jakub@redhat.com>
29941         PR middle-end/64729
29942         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
29943         for !TARGET_LIBC_PROVIDES_SSP version and
29944         -fstack-protector-{all,strong,explicit} otherwise.
29945         * config/freebsd.h (LINK_SSP_SPEC): Handle
29946         -fstack-protector-{strong,explicit}.
29948 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
29949             H.J. Lu  <hongjiu.lu@intel.com>
29951         PR ipa/64694
29952         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
29953         heap.
29955 2015-01-22  Wei Mi  <wmi@google.com>
29957         PR rtl-optimization/64557
29958         * dse.c (record_store): Call get_addr for mem_addr.
29959         (check_mem_read_rtx): Likewise.
29961 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
29963         * fold-const.c (const_binop): Add early return for non-tcc_binary.
29965 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
29967         * toplev.c (init_local_tick): Process the failure when read
29968         fails for random_seed.
29970         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
29971         'pretty_name' to avoid memory overflow.
29973 2015-01-22  Richard Biener  <rguenther@suse.de>
29975         PR middle-end/64728
29976         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
29977         abnormal coalescing on undefined SSA names.
29979 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
29981         PR target/64688
29982         PR target/64477
29983         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
29984         for alternative 3.
29985         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
29987 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
29989         PR middle-end/63325
29990         * fold-const.c (fold_checksum_tree): Don't include value of
29991         expr->decl_with_vis.symtab_node in the checksum.
29993 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29995         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
29997 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29999         PR driver/64690
30000         * gcc.c (insert_comments): New function.
30001         (try_generate_repro): Call it.
30002         (append_text): Removed.
30004 2015-01-22  Richard Biener  <rguenther@suse.de>
30006         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30007         with IL incompatible options.  Properly honor user optimize
30008         attributes.
30010 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
30012         PR rtl-optimization/64682
30013         * combine.c (distribute_notes): When moving a death note for
30014         a register that is set in the new I2, make sure to put it
30015         before that new I2.
30017 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
30019         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30020         not TARGET_DEFAULT.
30022 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
30024         PR debug/64511
30025         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30026         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30027         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30029         PR sanitizer/64706
30030         * doc/invoke.texi (-fsanitize=vptr): Document.
30032         PR rtl-optimization/62078
30033         * dse.c: Include cfgcleanup.h.
30034         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30035         anything call purge_all_dead_edges and cleanup_cfg at the end
30036         of the pass.
30038 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
30040         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30041         edges.
30043 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30045         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30046         decl attribute.
30048 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30049             Tejas Belagod <Tejas.Belagod@arm.com>
30051         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30052         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30053         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30054         Removed.
30056 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30057             Tejas Belagod <Tejas.Belagod@arm.com>
30059         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30060         (aarch64_reverse_mask): New decls.
30061         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30062         (insn_count): New mode_attr.
30063         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30064         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30065         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30066         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30067         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30068         (aarch64_simd_st4): New patterns.
30069         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30070         (aarch64_reverse_mask): New functions.
30072 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
30074         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30075         Declare.
30076         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30077         addressing modes for BE.
30078         (aarch64_print_operand): Add 'R' specifier.
30079         (aarch64_simd_disambiguate_copy): Delete.
30080         (aarch64_simd_emit_reg_reg_move): New function.
30081         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30082         in define_splits for structural moves.
30083         (mov<mode>): Use less restrictive predicates.
30084         (*aarch64_mov<mode>): Simplify and only allow for LE.
30085         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30087 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
30089         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30091 2015-01-21  Richard Henderson  <rth@redhat.com>
30093         PR target/64669
30094         * ccmp.c (used_in_cond_stmt_p): Remove.
30095         (expand_ccmp_expr): Don't use it.
30097 2015-01-21  Nick Clifton  <nickc@redhat.com>
30099         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30100         PARALLELs.
30102 2015-01-21  Richard Biener  <rguenther@suse.de>
30104         PR middle-end/64313
30105         * tree-core.h (builtin_info, builtin_info_type): Turn from
30106         an object with two arrays into an array of an object with
30107         decl and two flags, implicit_p and declared_p.
30108         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30109         set_builtin_decl, set_builtin_decl_implicit_p,
30110         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30111         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30112         * builtins.c (builtin_info): Adjust.
30113         * gimplify.c (gimplify_addr_expr): References to builtins
30114         that have been declared by the user makes them eligible for
30115         use by the compiler.  Call set_builtin_decl_implicit_p on them.
30117 2015-01-20  Jeff Law  <law@redhat.com>
30119         PR target/59946
30120         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30121         allow pc-relative addresses in operand predicates or constraints.
30123 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
30125         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30126         neon on aarch32 processors for stringops.
30128 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30130         PR ipa/63576
30131         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30133 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30135         PR lto/45375
30136         * ipa-inline.c: Include lto-streamer.h
30137         (report_inline_failed_reason): Output source file differences and
30138         flags on optimization/target node mismatch.
30139         (can_inline_edge_p): Consider caller to be the outer inline function;
30140         be less restrictive about matching opimize and optimize_size attributes.
30141         (inline_account_function_p): Break out from ...
30142         (inline_small_functions): ... here.
30143         * ipa-inline-transform.c (clone_inlined_nodes): Use
30144         inline_account_function_p.
30145         (inline_call): Use optimize attribution; use inline_account_function_p.
30146         (inline_transform): Use opt_for_fn.
30147         * ipa-inline.h (inline_account_function_p): Declare.
30149 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
30151         PR debug/64663
30152         * dwarf2out.c (decl_piece_node): Don't put bitsize into
30153         mode if bitsize <= 0.
30154         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30155         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30156         sizes and positions.
30158 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
30160         * config/nios2/nios2.c (nios2_asm_file_end): Implement
30161         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30162         needed.
30163         (TARGET_ASM_FILE_END): Define.
30165 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30167         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30168         (struct tune_params): Use the enum.
30169         * arm.c (arm_*_tune): Update.
30170         (arm_option_override): Update.
30172 2015-01-20  Richard Biener  <rguenther@suse.de>
30174         PR ipa/64684
30175         * ipa-reference.c (add_static_var): Inline ...
30176         (analyze_function): ... here after splitting out from ...
30177         (is_proper_for_analysis): ... this.
30179 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
30181         PR target/64149
30182         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30183         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30184         replace the conditional with it's true branch.
30185         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30186         (arm_lra_p): Remove.
30188 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30190         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30192 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30194         * config/tilegx/mul-tables.c: Move symtab.h include after
30195         coretypes.h include.
30196         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30197         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30198         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30199         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30200         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30202 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
30204         PR bootstrap/64676
30205         Revert:
30206         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30208         PR rtl-optimization/64081
30209         * loop-iv.c (def_pred_latch_p): New function.
30210         (latch_dominating_def): Allow specific cases with non-single
30211         definitions.
30212         (iv_get_reaching_def): Likewise.
30213         (check_complex_exit_p): New function.
30214         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30215         with exits not executing on any iteration.
30217 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30219         PR lto/45375
30220         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30221         to set branch cost.
30223 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30225         PR lto/45375
30226         * i386.c (gate): Check flag_expensive_optimizations and
30227         optimize_size.
30228         (ix86_option_override_internal): Drop optimize_size condition
30229         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30230         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30231         MASK_PREFER_AVX128.
30232         (ix86_avx256_split_vector_move_misalign,
30233         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30234         * sse.md (all uses of TARGET_PREFER_AVX128): Add
30235         optimize_insn_for_speed_p check.
30237 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
30239         * config/mips/mips.h (FP_ASM_SPEC): New define.
30240         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30241         instead.
30243 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
30245         PR target/53988
30246         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30247         nullptr for insn when reaching the first insn.
30248         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30249         (sh_insn_operands_modified_between_p): Add nullptr check.
30250         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
30251         sign extending mem load if the insn contains any UNSPEC or
30252         UNSPEC_VOLATILE.
30254 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30256         * params.def (inline-unit-growth): Drop to 15%.
30257         * invoke.texi (inline-unit-growth): Document change.
30259 2015-01-19  Martin Liska  <mliska@suse.cz>
30261         PR ipa/64668
30262         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30263         function for second argument of OBJ_TYPE_REF.
30265 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30267         PR ipa/64218
30268         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30269         whether function is an alias.
30271 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30273         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30274         cases.
30276 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
30278         PR rtl-optimization/64671
30279         * lra-remat.c (operand_to_remat): Don't consider jump and call
30280         insns.
30282 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
30284         PR target/59828
30285         * config/rs6000/default64.h: Include rs6000-cpus.def.
30286         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30287         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30288         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30289         and POWER8.
30290         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30291         POWER8.
30292         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30293         pseudo-op to specify assembler dialect.
30295 2015-01-19  Martin Liska  <mliska@suse.cz>
30297         PR ipa/64664
30298         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30299         Handle safe potentially removed nodes during filtering.
30301 2015-01-19  Martin Liska  <mliska@suse.cz>
30303         * doc/extend.texi (no_icf): Add new attribute description.
30304         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30305         where the pass attempts to merge a function with no_icf attribute.
30307 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30309         PR target/64532
30310         * doc/md.texi (ARM Options): Document register constraints.
30312 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
30313             Andrew Pinski  <apinski@cavium.com>
30315         PR target/64304
30316         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30317         (ashl<mode>3): Don't expand if operands[2] is not constant.
30319 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30321         PR target/64448
30322         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30323         Match xor-and-xor RTL pattern.
30325 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30327         PR rtl-optimization/64081
30328         * loop-iv.c (def_pred_latch_p): New function.
30329         (latch_dominating_def): Allow specific cases with non-single
30330         definitions.
30331         (iv_get_reaching_def): Likewise.
30332         (check_complex_exit_p): New function.
30333         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30334         with exits not executing on any iteration.
30336 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
30338         * common.opt (fgraphite): Fix a typo.
30340 2015-01-19  Felix Yang  <felix.yang@huawei.com>
30342         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30343         pattern.
30344         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30345         uminp, smax_nanp, smin_nanp): New builtins.
30346         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30347         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30348         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30349         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30350         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30351         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30352         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30353         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30354         vpminnms_f32): Rewrite using builtin functions.
30356 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
30358         PR libgomp/64625
30359         * omp-low.c (offload_symbol_decl): Remove variable.
30360         (get_offload_symbol_decl): Remove function.
30361         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30362         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30363         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30364         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30365         BUILT_IN_GOACC_UPDATE don't pass it at all.
30367 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30369         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30370         callers.
30372 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30374         * ipa-chkp.c (chkp_produce_thunks): Add early param
30375         to split thunks production into two passes.  Keep
30376         'always_inline' function bodies after the first pass.
30377         (pass_data_ipa_chkp_early_produce_thunks): New.
30378         (pass_ipa_chkp_early_produce_thunks): New.
30379         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30380         chkp_produce_thunks signature.
30381         (make_pass_ipa_chkp_early_produce_thunks): New.
30382         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30383         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30384         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30386 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30388         * cgraph.c (cgraph_node::dump): Dump profile flags.
30390 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
30392         PR target/64652
30393         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30394         reg appear first in the parallel.
30396 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30398         * ipa-reference.c (set_reference_optimization_summary,
30399         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30400         disabled.
30401         (ignore_module_statics): New static var.
30402         (propagate_bits): If ipa-reference is disabled, do not look into local
30403         properties.
30404         (analyze_function): Disable analysis when ipa_reference is disabled.
30405         (generate_summary): Do not dump when reference is disabled;
30406         collect vars accessed from functions with ipa-reference disabled.
30407         (get_read_write_all_from_node): When ipa-reference is disabled, use the
30408         node flags.
30409         (gate): Enable for LTO.
30410         (ignore_edge_p): New function.
30411         (propagate): Skip functions w/o ipa-reference analysis.
30412         * optc-save-gen.awk: Handle optimize_debug correctly.
30413         * opth-gen.awk: Likewise.
30414         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30415         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30416         fira-share-save-slots, fira-share-spill-slots,
30417         fmodulo-sched-allow-regmoves, fpartial-inlining,
30418         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30419         ftracer, ftree-parallelize-loops, fassociative-math,
30420         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30421         Optimization
30422         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30423         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30424         Optimization.
30425         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30426         Fix for IPA.
30428 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30430         PR ipa/64378
30431         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30432         flag correctly.
30433         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30435 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
30437         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
30438         Remove duplicate option listings.
30440 2015-01-18  Felix Yang  <felix.yang@huawei.com>
30442         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
30443         (autofdo_source_profile::get_callsite_total_count,
30444         function_instance::get_function_instance_by_decl,
30445         string_table::get_index, string_table::get_index_by_decl,
30446         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
30447         Fix comment typos. Reformatting and minor code rearrangement.
30449 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30451         * config/rs6000/rs6000.md (probe_stack): Delete.
30452         (probe_stack_address): New.
30454 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30456         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
30457         to test for 32-bit ABIs, not !TARGET_POWERPC64.
30459 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30461         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
30462         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
30463         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
30464         snafu.
30465         (rs6000_libcall_value): Use the new function.
30467 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
30469         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
30471 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
30473         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
30474         implement a more precise life analysis for it during backward scan.
30476 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
30478         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
30480 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
30482         PR rtl-optimization/52773
30483         * calls.c (emit_library_call_value): When pushing arguments use
30484         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
30485         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
30486         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
30488 2015-01-17  Jeff Law  <law@redhat.com>
30490         PR rtl-optimization/32790
30491         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
30492         not ZERO_EXTEND in SET_DESTs.
30494 2015-01-17  Alan Modra  <amodra@gmail.com>
30496         * cprop.c (do_local_cprop): Revert last change.
30498 2015-01-16  DJ Delorie  <dj@redhat.com>
30499             Nick Clifton  <nickc@redhat.com>
30501         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
30502         (addhi3_real): Likewise.  Fix [HL+0] syntax.
30503         (subqi3_real): Likewise.
30504         (subhi3_real): Likewise.
30505         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
30506         (cbranchhi4_real): Likewise.
30507         (cbranchhi4_real_inverted): Likewise.
30508         (cbranchsi4_real_lt): Likewise.
30509         (cbranchsi4_real_ge): Likewise.
30510         (cbranchsi4_real_ge): Likewise.
30511         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
30512         (sub<mode>3_virt): Likewise.
30513         (cbranchqi4_virt): Likewise.
30514         (cbranchhi4_virt): Likewise.
30515         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
30516         always use '[reg+imm]' even when imm is zero.
30517         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
30518         (rl78_general_operand): New.
30519         (rl78_nonimmediate_operand): New.
30520         (rl78_nonfar_operand): Use them.
30521         (rl78_nonfar_nonimm_operand): Likewise.
30522         (rl78_stack_based_mem): Fix.
30523         * config/rl78/constraints.md (Ibqi): New.
30524         (IBqi): New.
30525         (Wsa): New.
30526         (Wsf): New.
30527         (Cs1): Fix.
30528         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
30529         (iorqi3): Likewise.
30530         (xorqi3): Likewise.
30531         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
30533         * config/rl78/constrains (Qs8): New constraint.
30534         * config/rl78/rl78.c (rl78_flags_already_set): New function.
30535         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
30536         * config/rl78/rl78-real.md (update_Z): New attribute.
30537         Update patterns to set it.
30538         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
30539         shorter compare and branch sequence can be used.
30540         (cbranchhi4_real): Likewise.
30541         (cbranchhi4_real_inverted): Likewise.
30543         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
30544         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
30545         address space.
30546         * config/rl78/rl78.c (rl78_get_name_encoding): New.
30547         (rl78_option_override): Allow -mes0 only if C.
30548         (characterize_address): Support subregs of symbol_refs.
30549         (rl78_addr_space_address_mode): Move.  Add __near.
30550         (rl78_far_p): Likewise.
30551         (rl78_addr_space_pointer_mode): Likewise.
30552         (rl78_as_legitimate_address): Likewise.
30553         (rl78_addr_space_subset_p): Likewise.
30554         (rl78_addr_space_convert): Likewise.
30555         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
30556         symbols with -mes0.
30557         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
30558         addressing.
30559         (rl78_alloc_physical_registers_op1): Change logic to prefer
30560         symbol[BC] addressing.
30561         (frodata_section): New.
30562         (rl78_asm_init_sections): Initialize it.
30563         (rl78_select_section): Put __far readonly symbols in .frodata.
30564         (rl78_make_type_far): New.
30565         (rl78_insert_attributes): Force all readonly symbols to be
30566         __far when -mes0.
30567         (rl78_asm_out_integer): New.
30568         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
30569         * config/rl78/rl78.opt (-mes0): New.
30571         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
30572         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
30573         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
30574         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
30575         (rl78_saddr_p): New.
30576         (rl78_output_aligned_common): New.
30577         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
30578         (rl78_handle_saddr_attribute): New.
30579         (rl78_handle_naked_attribute): New.
30580         (rl78_attribute_table): Add saddr.
30581         (rl78_print_operand_1): Don't print '!' on saddr operands.
30582         (rl78_print_operand_1): Strip encodings.
30583         (rl78_sfr_p): New.
30584         (rl78_strip_name_encoding): New.
30585         (rl78_attrlist_to_encoding): New.
30586         (rl78_encode_section_info): New.
30587         (rl78_asm_init_sections): New.
30588         (rl78_select_section): New.
30589         (rl78_output_labelref): New.
30590         (rl78_output_aligned_common): New.
30591         (rl78_asm_out_integer): New.
30592         (rl78_asm_ctor_dtor): New.
30593         (rl78_asm_constructor): New.
30594         (rl78_asm_destructor): New.
30596         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
30597         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
30598         (transcode_memory_rtx): Update.
30599         (rl78_expand_epilogue): Use A_REG instead of 0.
30601 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30603         * config/arm/arm-protos.h (struct tune_params): New field
30604         sched_autopref_queue_depth.
30605         * config/arm/arm.c (sched-int.h): Include header.
30606         (arm_first_cycle_multipass_dfa_lookahead_guard,)
30607         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
30608         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
30609         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
30610         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
30611         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
30612         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
30613         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
30614         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
30615         * config/arm/t-arm (arm.o): Update.
30616         * haifa-sched.c (update_insn_after_change): Update.
30617         (rank_for_schedule): Use auto-prefetcher model, if requested.
30618         (autopref_multipass_init): New static function.
30619         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
30620         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
30621         variable for debug dumps.
30622         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
30623         (autopref_multipass_dfa_lookahead_guard): New global function that
30624         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
30625         (init_h_i_d): Update.
30626         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
30627         * sched-int.h (enum autopref_multipass_data_status): New const enum.
30628         (autopref_multipass_data_): Structure for auto-prefetcher data.
30629         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
30630         (struct _haifa_insn_data:autopref_multipass_data): New field.
30631         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
30632         (autopref_multipass_dfa_lookahead_guard): Declare.
30634 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30636         * rtlanal.c (get_base_term): Handle SCRATCH.
30638 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30640         * config/aarch64/aarch64.c
30641         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
30642         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30643         * config/arm/arm.c
30644         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
30645         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30647 2015-01-17  Alan Modra  <amodra@gmail.com>
30649         * cprop.c (do_local_cprop): Disallow replacement of fixed
30650         hard registers.
30652 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30654         PR target/62066
30655         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
30656         early return 0.
30658 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30660         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
30661         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
30663 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30665         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
30666         * config/arm/thumb1.md: ... Here.
30668 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30670         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
30671         TImode for TARGET_32BIT.
30673 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30675         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
30676         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
30677         as ...
30678         (rs6000_abi_word_mode): New function.
30680 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30682         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
30683         instead of UNITS_PER_WORD to describe the size of stack slots.
30685 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30687         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
30688         as rs6000_promote_function_mode.  Move comment to there.
30689         (rs6000_promote_function_mode): New function.
30691 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
30693         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
30694         -mpowerpc64 is active.
30696 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30698         PR middle-end/64353
30699         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
30700         virtuals on start.
30702 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
30704         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
30705         introduced in revision 219724.
30707 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30708             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30710         PR target/64263
30711         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
30712         destination is not a GP reg.
30713         (*movdi_aarch64): Likewise.
30715 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
30717         PR target/64623
30718         * config/rs6000/default64.h: Revert ISA change.
30720 2015-01-16  Richard Biener  <rguenther@suse.de>
30722         PR middle-end/64614
30723         * tree-ssa-uninit.c: Include tree-cfg.h.
30724         (MAX_SWITCH_CASES): New define.
30725         (convert_control_dep_chain_into_preds): Handle switch statements.
30726         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
30727         (normalize_one_pred_1): Do not split bit-manipulations.
30728         Record (x & CST).
30730 2015-01-16  Richard Biener  <rguenther@suse.de>
30732         PR tree-optimization/64568
30733         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
30734         complex load rewriting for TARGET_MEM_REFs.
30736 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
30738         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
30740 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
30742         PR target/64149
30743         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
30744         variable.
30745         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
30746         (aarch64_lra_p): Remove.
30748 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
30750         PR target/64363
30751         * ipa-chkp.h (chkp_instrumentable_p): New.
30752         * ipa-chkp.c: Include tree-inline.h.
30753         (chkp_instrumentable_p): New.
30754         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
30755         Fix processing of not instrumentable functions.
30756         (chkp_versioning): Use chkp_instrumentable_p. Warn about
30757         not instrumentable functions.
30758         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
30759         chkp_instrumentable_p.
30760         * tree-inline.h (copy_forbidden): New.
30761         * tree-inline.c (copy_forbidden): Not static anymore.
30763 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30765         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
30766         ptr1, ptr2 unused.
30768 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
30770         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
30771         type OP_OUT to OP_INOUT.
30773 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
30775         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
30776         (high x) y) to y if x and y have the same base.
30778 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
30780         * config/arm/cortex-a57.md: New.
30781         * config/aarch64/aarch64.md: Include it.
30782         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
30783         * config/aarch64/aarch64-tune.md: Regenerate.
30785 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30787         PR target/64015
30788         * ccmp.c (expand_ccmp_next): New function.
30789         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
30790         and compare insn sequence.
30791         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
30792         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
30793         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
30794         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
30795         (*ccmp_ior): Changed to ccmp_ior<mode>.
30796         (cmp<mode>): New pattern.
30797         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
30798         parameters.
30799         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
30801 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
30803         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
30804         _mm256_bsrli_epi128): New.
30805         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
30807 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
30809         * expmed.c (store_bit_field_using_insv): Improve warning message.
30810         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
30812 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
30814         PR rtl-optimization/64011
30815         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
30816         there is partial overflow.
30818 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30820         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
30821         prototype.
30822         (nds32_expand_epilogue_v3pop): Likewise.
30823         * config/nds32/nds32.md (sibcall): Define this for sibling call
30824         optimization.
30825         (sibcall_register): Likewise.
30826         (sibcall_immediate): Likewise.
30827         (sibcall_value): Likewise.
30828         (sibcall_value_register): Likewise.
30829         (sibcall_value_immediate): Likewise.
30830         (sibcall_epilogue): Likewise.
30831         (epilogue): Pass false to indicate this is not a sibcall epilogue.
30832         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
30833         (nds32_expand_epilogue_v3pop): Likewise.
30835 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30837         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
30838         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
30839         (return_internal): New.
30840         (return): Define this named pattern.
30841         (simple_return): Define this named pattern.
30842         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
30843         pattern instead of unspec_volatile_func_return.
30844         (nds32_expand_epilogue_v3pop): Likewise.
30845         (nds32_can_use_return_insn): New function.
30847 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30849         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
30850         * config/nds32/nds32.md (pop25return): New.
30851         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
30852         pop25return pattern.
30854 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30856         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
30857         -mforbid-fp-as-gp, and -mex9 options.
30859 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
30861         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
30862         remove -mgp-direct option.
30864 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30866         * doc/invoke.texi (--param early-inlining-insns): Update default value.
30867         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
30869 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30871         * ipa-inline.c (inline_small_functions): Work around hints
30872         cache issue.
30874 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
30876         PR target/59710
30877         * doc/invoke.texi (Option Summary): Document new Nios II
30878         -mgpopt= syntax.
30879         (Nios II Options): Likewise.
30880         * config/nios2/nios2.opt: Add -mgpopt= option support.
30881         Modify existing -mgpopt and -mno-gpopt options to be aliases.
30882         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
30883         * config/nios2/nios2.c (nios2_option_override): Adjust
30884         -mgpopt defaulting.
30885         (nios2_in_small_data_p): Return true for explicit small data
30886         sections even with -G0.
30887         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
30888         option choices.
30890 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30892         PR ipa/64612
30893         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
30894         of comdat locals.
30895         (inline_call): Fix removal of aliases.
30897 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
30899         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
30900         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
30901         * opts.c (common_handle_option): Add -fsanitize=vptr.
30902         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
30903         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
30904         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
30905         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
30906         (ubsan_expand_vptr_ifn): New prototype.
30907         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
30908         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
30909         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
30910         expand_LOOP_VECTORIZED): Make argument nameless, remove
30911         ATTRIBUTE_UNUSED.
30912         (expand_UBSAN_VPTR): New function.
30913         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
30914         in fn spec.
30915         (UBSAN_VPTR): New internal function.
30916         * sanopt.c (tree_map_traits): Renamed to ...
30917         (sanopt_tree_map_traits): ... this.
30918         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
30919         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
30920         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
30921         (maybe_optimize_ubsan_vptr_ifn): New function.
30922         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
30923         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
30924         -fsanitize=vptr.
30925         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
30926         internal calls like pure functions for aliasing, even when they
30927         have other side-effects that prevent making them ECF_PURE.
30928         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
30929         (ubsan_expand_vptr_ifn): New function.
30931 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
30933         PR rtl-optimization/64110
30934         * stmt.c (parse_output_constraint): Process '^' and '$'.
30935         (parse_input_constraint): Ditto.
30936         * lra-constraints.c (process_alt_operands): Process the new
30937         constraints.
30938         * ira-costs.c (record_reg_classes): Process the new constraint
30939         '^'.
30940         * genoutput.c (indep_constraints): Add '^' and '$'.
30941         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
30942         * doc/md.texi: Add description of the new constraints.
30944 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
30945             Bernd Schmidt  <bernds@codesourcery.com>
30946             Cesar Philippidis  <cesar@codesourcery.com>
30947             James Norris  <jnorris@codesourcery.com>
30948             Tom de Vries  <tom@codesourcery.com>
30949             Ilmir Usmanov  <i.usmanov@samsung.com>
30950             Dmitry Bocharnikov  <dmitry.b@samsung.com>
30951             Evgeny Gavrin  <e.gavrin@samsung.com>
30952             Jakub Jelinek  <jakub@redhat.com>
30954         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
30955         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30956         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30957         New function types.
30958         * builtins.c: Include "gomp-constants.h".
30959         (expand_builtin_acc_on_device): New function.
30960         (expand_builtin, is_inexpensive_builtin): Handle
30961         BUILT_IN_ACC_ON_DEVICE.
30962         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
30963         New macros.
30964         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
30965         flag_openmp.
30966         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
30967         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
30968         i386/intelmic-offload.h.
30969         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
30970         to libgomp and its dependencies.
30971         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
30972         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
30973         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
30974         * config/ia64/hpux.h (LIB_SPEC): Likewise.
30975         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30976         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
30977         * doc/generic.texi: Update for OpenACC changes.
30978         * doc/gimple.texi: Likewise.
30979         * doc/invoke.texi: Likewise.
30980         * doc/sourcebuild.texi: Likewise.
30981         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
30982         GF_OMP_FOR_KIND_OACC_LOOP.
30983         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
30984         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
30985         GF_OMP_TARGET_KIND_OACC_UPDATE,
30986         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30987         Dump more data.
30988         * gimple.c: Update comments for OpenACC changes.
30989         * gimple.def: Likewise.
30990         * gimple.h: Likewise.
30991         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
30992         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30993         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
30994         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30995         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
30996         appropriate place.
30997         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
30998         * gimplify.c: Include "gomp-constants.h".
30999         Update comments for OpenACC changes.
31000         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31001         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31002         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31003         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31004         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31005         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31006         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31007         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31008         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31009         OMP_CLAUSE_SEQ.
31010         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31011         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31012         OMP_CLAUSE_SET_MAP_KIND.
31013         (gimplify_oacc_cache): New function.
31014         (gimplify_omp_for): Handle OACC_LOOP.
31015         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31016         OACC_DATA.
31017         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31018         OACC_EXIT_DATA, OACC_UPDATE.
31019         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31020         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31021         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31022         (gimplify_body): Consider flag_openacc next to flag_openmp.
31023         * lto-streamer-out.c: Include "gomp-constants.h".
31024         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31025         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31026         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31027         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31028         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31029         (BUILT_IN_ACC_ON_DEVICE): New builtins.
31030         * omp-low.c: Include "gomp-constants.h".
31031         Update comments for OpenACC changes.
31032         (struct omp_context): Add reduction_map, gwv_below, gwv_this
31033         members.
31034         (extract_omp_for_data, use_pointer_for_field, install_var_field)
31035         (new_omp_context, delete_omp_context, scan_sharing_clauses)
31036         (create_omp_child_function, scan_omp_for, scan_omp_target)
31037         (check_omp_nesting_restrictions, lower_reduction_clauses)
31038         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31039         Update for OpenACC changes.
31040         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31041         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31042         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31043         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31044         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31045         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
31046         OMP_CLAUSE_MAP_*.
31047         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31048         Handle GF_OMP_FOR_KIND_OACC_LOOP.
31049         (expand_omp_target, lower_omp_target): Handle
31050         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31051         GF_OMP_TARGET_KIND_OACC_UPDATE,
31052         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31053         GF_OMP_TARGET_KIND_OACC_DATA.
31054         (pass_expand_omp::execute, execute_lower_omp)
31055         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31056         flag_openmp.
31057         (offload_symbol_decl): New variable.
31058         (oacc_get_reduction_array_id, oacc_max_threads)
31059         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31060         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31061         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31062         (oacc_gimple_assign, oacc_initialize_reduction_data)
31063         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31064         functions.
31065         (is_targetreg_ctx): Remove function.
31066         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31067         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31068         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31069         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31070         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31071         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31072         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31073         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31074         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31075         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31076         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31077         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31078         * tree-core.h: Update comments for OpenACC changes.
31079         (enum omp_clause_map_kind): Remove.
31080         (struct tree_omp_clause): Change type of map_kind member from enum
31081         omp_clause_map_kind to unsigned char.
31082         * tree-inline.c: Update comments for OpenACC changes.
31083         * tree-nested.c: Likewise.  Include "gomp-constants.h".
31084         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31085         (convert_tramp_reference_stmt, convert_gimple_call): Update for
31086         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31087         OMP_CLAUSE_SET_MAP_KIND.
31088         * tree-pretty-print.c: Include "gomp-constants.h".
31089         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31090         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31091         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31092         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31093         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31094         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
31095         instead of OMP_CLAUSE_MAP_*.
31096         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31097         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31098         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31099         * tree-streamer-in.c: Include "gomp-constants.h".
31100         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31101         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
31102         * tree-streamer-out.c: Include "gomp-constants.h".
31103         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31104         OMP_CLAUSE_MAP_*.
31105         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31106         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31107         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31108         * tree.c (omp_clause_num_ops): Update accordingly.
31109         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31110         Likewise.
31111         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31112         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31113         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31114         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31115         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31116         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31117         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31118         (OMP_CLAUSE_SET_MAP_KIND): New macro.
31119         * varpool.c (varpool_node::get_create): Consider flag_openacc next
31120         to flag_openmp.
31121         * config/i386/intelmic-offload.h: New file.
31122         * config/nvptx/offload.h: Likewise.
31124 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31126         * explow.h: Remove duplicate contents.
31127         * dojump.h: Likewise.
31129 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
31131         * arm.c (arm_xgene_tune): Add default initializer for instruction
31132         fusion.
31134 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31136         PR ipa/64068
31137         PR ipa/64559
31138         * ipa.c (symbol_table::remove_unreachable_nodes):
31139         Do not put abstract origins into boundary.
31141 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
31143         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31144         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31146 2015-01-15  Steve Ellcey  <sellcey@mips.com>
31148         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31149         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31150         builtins.def, and chkp-builtins.def.
31152 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
31154         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31155         ISA 2.7 (POWER8).
31157 2015-01-15  Richard Biener  <rguenther@suse.de>
31159         PR tree-optimization/61743
31160         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31161         information on PHIs for some simple cases.
31163 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31165         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31166         Include xgene1.md.
31167         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31168         * config/arm/arm-cores.def (xgene1): New entry.
31169         * config/arm/arm-tables.opt: Regenerate.
31170         * config/arm/arm-tune.md: Regenerate.
31171         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31173 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
31175         * tree-if-conv.c: Include hash-map.h.
31176         (aggressive_if_conv): New variable.
31177         (fold_build_cond_expr): Add simplification of non-zero condition.
31178         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31179         destination block is not always executed.
31180         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31181         than two predecessors if AGGRESSIVE_IF_CONV is true.
31182         (if_convertible_stmt_p): Fix commentary.
31183         (all_preds_critical_p): New function.
31184         (has_pred_critical_p): New function.
31185         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31186         BB can have more than two predecessors and all incoming edges can be
31187         critical.
31188         (predicate_bbs): Skip predication for loop exit block, use build2_loc
31189         to compute predicate for true edge.
31190         (find_phi_replacement_condition): Delete this function.
31191         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31192         Allow interchange PHI arguments if EXTENDED is false.
31193         Change check that block containing reduction statement candidate
31194         is predecessor of phi-block since phi may have more than two arguments.
31195         (phi_args_hash_traits): New helper structure.
31196         (struct phi_args_hash_traits): New type.
31197         (phi_args_hash_traits::hash): New function.
31198         (phi_args_hash_traits::equal_keys): New function.
31199         (gen_phi_arg_condition): New function.
31200         (predicate_scalar_phi): Add handling of phi nodes with more than two
31201         arguments, delete COND and TRUE_BB arguments, insert body of
31202         find_phi_replacement_condition to predicate ordinary phi nodes.
31203         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31204         delete call of find_phi_replacement_condition and invoke
31205         predicate_scalar_phi with two arguments.
31206         (insert_gimplified_predicates): Add assert that non-predicated block
31207         don't have statements to insert.
31208         (ifcvt_split_critical_edges): New function.
31209         (ifcvt_split_def_stmt): Likewise.
31210         (ifcvt_walk_pattern_tree): Likewise.
31211         (stmt_is_root_of_bool_pattern): Likewise.
31212         (ifcvt_repair_bool_pattern): Likewise.
31213         (ifcvt_local_dce): Likewise.
31214         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31215         is copy of inner or outer loop force_vectorize field, invoke
31216         ifcvt_split_critical_edges, ifcvt_local_dce and
31217         ifcvt_repair_bool_pattern for aggressive if-conversion.
31219 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
31221         * config/aarch64/aarch64.md: Include xgene1.md.
31222         * config/aarch64/xgene1.md: New file.
31224 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31226         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31227         xgene1 (APM XGene-1) core definition.
31228         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31229         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31230         * doc/invoke.texi: Document -mcpu=xgene1.
31232 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31234         * dojump.h: New header file.
31235         * explow.h: Likewise.
31236         * expr.h: Remove includes.
31237         Move expmed.c prototypes to expmed.h.
31238         Move dojump.c prototypes to dojump.h.
31239         Move alias.c prototypes to alias.h.
31240         Move explow.c prototypes to explow.h.
31241         Move calls.c prototypes to calls.h.
31242         Move emit-rtl.c prototypes to emit-rtl.h.
31243         Move varasm.c prototypes to varasm.h.
31244         Move stmt.c prototypes to stmt.h.
31245         (saved_pending_stack_adjust): Move to dojump.h.
31246         (adjust_address): Move to explow.h.
31247         (adjust_address_nv): Move to emit-rtl.h.
31248         (adjust_bitfield_address): Likewise.
31249         (adjust_bitfield_address_size): Likewise.
31250         (adjust_bitfield_address_nv): Likewise.
31251         (adjust_automodify_address_nv): Likewise.
31252         * explow.c (expr_size): Move to expr.c.
31253         (int_expr_size): Likewise.
31254         (tree_expr_size): Likewise.
31255         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31256         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31257         * genemit.c (main): Generate includes statistics.h, real.h,
31258         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31259         stmt.h.
31260         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31261         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31262         explow.h, emit-rtl.h, stmt.h.
31263         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31264         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31265         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31266         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31267         emit-rtl.h, varasm.h, stmt.h.
31268         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31269         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31270         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31271         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31272         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31273         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31274         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31275         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31276         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31277         tm.h tree.h varasm.h vec.h wide-int.h.
31278         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31279         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31280         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31281         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31282         * cfgloopanal.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
31284         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31285         * loop-iv.c: Likewise.
31286         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31287         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31288         statistics.h stmt.h tree.h varasm.h wide-int.h.
31289         * lra-constraints.c: Likewise.
31290         * lra-eliminations.c: Likewise.
31291         * lra-lives.c: Likewise.
31292         * lra-remat.c: Likewise.
31293         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31294         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31295         statistics.h stmt.h tree.h varasm.h wide-int.h.
31296         * hw-doloop.c: Likewise.
31297         * ira-color.c: Likewise.
31298         * ira-emit.c: Likewise.
31299         * loop-doloop.c: Likewise.
31300         * loop-invariant.c: Likewise.
31301         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31302         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31303         statistics.h stmt.h tree.h varasm.h wide-int.h.
31304         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31305         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31306         statistics.h stmt.h tree.h varasm.h wide-int.h.
31307         * combine-stack-adj.c: Likewise.
31308         * cse.c: Likewise.
31309         * ddg.c: Likewise.
31310         * ifcvt.c: Likewise.
31311         * ira-costs.c: Likewise.
31312         * jump.c: Likewise.
31313         * lra-coalesce.c: Likewise.
31314         * lra-spills.c: Likewise.
31315         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31316         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31317         stmt.h varasm.h wide-int.h.
31318         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31319         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31320         varasm.h.
31321         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31322         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31323         statistics.h stmt.h varasm.h wide-int.h.
31324         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31325         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31326         varasm.h wide-int.h.
31327         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31328         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31329         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31330         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31331         statistics.h stmt.h.
31332         * config/tilepro/tilepro.c: Likewise.
31333         * config/mmix/mmix.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.
31335         * config/pdp11/pdp11.c: Likewise.
31336         * config/xtensa/xtensa.c: Likewise.
31337         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31338         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31339         varasm.h.
31340         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31341         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31342         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31343         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31344         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31345         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31346         * rtl-chkp.c: Likewise.
31347         * tree-chkp-opt.c: Likewise.
31348         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31349         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31350         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31351         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31352         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31353         statistics.h stmt.h.
31354         * tree-vect-data-refs.c: Likewise.
31355         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31356         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31357         rtl.h statistics.h stmt.h varasm.h.
31358         * internal-fn.c: Likewise.
31359         * ipa-icf-gimple.c: Likewise.
31360         * lto-section-out.c: Likewise.
31361         * tree-data-ref.c: Likewise.
31362         * tree-nested.c: Likewise.
31363         * tree-outof-ssa.c: Likewise.
31364         * tree-predcom.c: Likewise.
31365         * tree-pretty-print.c: Likewise.
31366         * tree-scalar-evolution.c: Likewise.
31367         * tree-ssa-strlen.c: Likewise.
31368         * tree-vect-loop.c: Likewise.
31369         * tree-vect-patterns.c: Likewise.
31370         * tree-vect-slp.c: Likewise.
31371         * tree-vect-stmts.c: Likewise.
31372         * tsan.c: Likewise.
31373         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31374         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31375         stmt.h.
31376         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31377         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31378         statistics.h stmt.h varasm.h.
31379         * loop-unroll.c: Likewise.
31380         * ubsan.c: Likewise.
31381         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31382         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31383         stmt.h varasm.h.
31384         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31385         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31386         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31387         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31388         statistics.h stmt.h.
31389         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31390         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31391         statistics.h stmt.h varasm.h.
31392         * gimple-match-head.c: Likewise.
31393         * lto-cgraph.c: Likewise.
31394         * lto-section-in.c: Likewise.
31395         * lto-streamer-in.c: Likewise.
31396         * lto-streamer-out.c: Likewise.
31397         * tree-affine.c: Likewise.
31398         * tree-cfg.c: Likewise.
31399         * tree-cfgcleanup.c: Likewise.
31400         * tree-if-conv.c: Likewise.
31401         * tree-into-ssa.c: Likewise.
31402         * tree-ssa-alias.c: Likewise.
31403         * tree-ssa-copyrename.c: Likewise.
31404         * tree-ssa-dse.c: Likewise.
31405         * tree-ssa-forwprop.c: Likewise.
31406         * tree-ssa-live.c: Likewise.
31407         * tree-ssa-math-opts.c: Likewise.
31408         * tree-ssa-pre.c: Likewise.
31409         * tree-ssa-sccvn.c: Likewise.
31410         * tree-tailcall.c: Likewise.
31411         * tree-vect-generic.c: Likewise.
31412         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31413         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31414         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31415         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31416         * varasm.c: Likewise.
31417         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31418         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31419         varasm.h.
31420         * init-regs.c: Likewise.
31421         * ira.c: Likewise.
31422         * omp-low.c: Likewise.
31423         * stack-ptr-mod.c: Likewise.
31424         * tree-ssa-reassoc.c: Likewise.
31425         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31426         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31427         varasm.h.
31428         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31429         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31430         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31431         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31432         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31433         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31434         * tree-ssa-phiopt.c: Likewise.
31435         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31436         fixed-value.h hashtab.h real.h statistics.h stmt.h.
31437         * config/fr30/fr30.c: Likewise.
31438         * config/frv/frv.c: Likewise.
31439         * expr.c: Likewise.
31440         * final.c: Likewise.
31441         * optabs.c: Likewise.
31442         * passes.c: Likewise.
31443         * simplify-rtx.c: Likewise.
31444         * stmt.c: Likewise.
31445         * toplev.c: Likewise.
31446         * var-tracking.c: Likewise.
31447         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31448         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31449         * lower-subreg.c: Likewise.
31450         * postreload-gcse.c: Likewise.
31451         * ree.c: Likewise.
31452         * reginfo.c: Likewise.
31453         * store-motion.c: Likewise.
31454         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31455         fixed-value.h hashtab.h real.h stmt.h varasm.h.
31456         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31457         fixed-value.h hashtab.h statistics.h stmt.h.
31458         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31459         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31460         * except.c: Likewise.
31461         * explow.c: Likewise.
31462         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31463         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
31464         varasm.h.
31465         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31466         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
31467         * tree-ssa-structalias.c: Likewise.
31468         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31469         fixed-value.h insn-config.h real.h statistics.h.
31470         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31471         fixed-value.h insn-config.h real.h statistics.h stmt.h.
31472         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31473         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31474         * cfgbuild.c: Likewise.
31475         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31476         fixed-value.h real.h rtl.h statistics.h stmt.h.
31477         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31478         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31479         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31480         fixed-value.h real.h statistics.h stmt.h.
31481         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31482         fixed-value.h real.h statistics.h stmt.h varasm.h.
31483         * cprop.c: Likewise.
31484         * modulo-sched.c: Likewise.
31485         * postreload.c: Likewise.
31486         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31487         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
31488         statistics.h stmt.h varasm.h.
31489         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
31490         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31491         rtl.h statistics.h stmt.h varasm.h.
31492         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
31493         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
31494         varasm.h.
31495         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31496         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
31497         varasm.h.
31498         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
31499         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
31500         varasm.h.
31501         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
31502         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31503         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31504         function.h real.h statistics.h stmt.h varasm.h.
31505         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31506         insn-config.h real.h statistics.h stmt.h.
31507         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31508         statistics.h stmt.h.
31509         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
31510         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
31511         statistics.h stmt.h varasm.h.
31512         * gimplify.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 statistics.h.
31514         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31515         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
31516         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
31517         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31518         statistics.h stmt.h varasm.h.
31519         * ipa-polymorphic-call.c: Likewise.
31520         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
31521         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31522         statistics.h stmt.h.
31523         * config/c6x/c6x.c: Likewise.
31524         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
31525         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31526         statistics.h stmt.h varasm.h.
31527         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
31528         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
31529         stmt.h varasm.h.
31530         * ipa-split.c: Likewise.
31531         * tree-eh.c: Likewise.
31532         * tree-ssa-dce.c: Likewise.
31533         * tree-ssa-loop-niter.c: Likewise.
31534         * tree-vrp.c: Likewise.
31535         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
31536         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
31537         stmt.h.
31538         * config/nds32/nds32-fp-as-gp.c: Likewise.
31539         * config/nds32/nds32-intrinsic.c: Likewise.
31540         * config/nds32/nds32-isr.c: Likewise.
31541         * config/nds32/nds32-md-auxiliary.c: Likewise.
31542         * config/nds32/nds32-memory-manipulation.c: Likewise.
31543         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
31544         * config/nds32/nds32-predicates.c: Likewise.
31545         * config/nds32/nds32.c: Likewise.
31546         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
31547         fixed-value.h hashtab.h real.h statistics.h.
31548         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
31549         fixed-value.h hashtab.h real.h statistics.h stmt.h.
31550         * config/arm/arm.c: Likewise.
31551         * config/avr/avr.c: Likewise.
31552         * config/bfin/bfin.c: Likewise.
31553         * config/h8300/h8300.c: Likewise.
31554         * config/i386/i386.c: Likewise.
31555         * config/ia64/ia64.c: Likewise.
31556         * config/iq2000/iq2000.c: Likewise.
31557         * config/m32c/m32c.c: Likewise.
31558         * config/m32r/m32r.c: Likewise.
31559         * config/m68k/m68k.c: Likewise.
31560         * config/mcore/mcore.c: Likewise.
31561         * config/mep/mep.c: Likewise.
31562         * config/mips/mips.c: Likewise.
31563         * config/mn10300/mn10300.c: Likewise.
31564         * config/moxie/moxie.c: Likewise.
31565         * config/pa/pa.c: Likewise.
31566         * config/rl78/rl78.c: Likewise.
31567         * config/rx/rx.c: Likewise.
31568         * config/s390/s390.c: Likewise.
31569         * config/sh/sh.c: Likewise.
31570         * config/sparc/sparc.c: Likewise.
31571         * config/spu/spu.c: Likewise.
31572         * config/stormy16/stormy16.c: Likewise.
31573         * config/v850/v850.c: Likewise.
31574         * config/vax/vax.c: Likewise.
31575         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
31576         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31577         * config/msp430/msp430.c: Likewise.
31578         * predict.c: Likewise.
31579         * value-prof.c: Likewise.
31580         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
31581         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
31582         * config/microblaze/microblaze.c: Likewise.
31583         * config/nios2/nios2.c: Likewise.
31584         * config/rs6000/rs6000.c: Likewise.
31585         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31586         insn-config.h real.h rtl.h statistics.h stmt.h.
31587         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31588         insn-config.h real.h statistics.h stmt.h.
31589         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
31590         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31591         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
31592         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31593         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
31594         fixed-value.h real.h statistics.h stmt.h.
31595         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
31596         fixed-value.h statistics.h stmt.h.
31597         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
31598         stmt.h.
31600 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31602         * gengtype.c (create_user_defined_type): Workaround
31603         -Wmaybe-uninitialized false positives.
31604         * cse.c (fold_rtx): Likewise.
31605         * loop-invariant.c (gain_for_invariant): Likewise.
31607 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31609         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
31610         set the memory attributes in all cases but clear MEM_EXPR if need be.
31612 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
31614         PR tree-optimization/64434
31615         * cfgexpand.c (reorder_operands): New function.
31616         (expand_gimple_basic_block): Insert call of reorder_operands if
31617         optimized is true.
31619 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
31621         * config/mips/micromips.md (*swp): Remove explicit parallel.
31622         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
31623         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
31624         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
31625         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
31626         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
31627         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
31628         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
31629         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
31630         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
31631         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
31632         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
31633         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
31634         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
31635         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
31636         (mips_wrdsp): Likewise.
31637         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
31638         parallel.
31639         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
31640         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
31641         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
31642         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
31643         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
31644         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
31645         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
31646         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
31647         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
31649 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
31651         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
31652         (mips_print_operand): Support 'y' to print exact log2 in decimal
31653         of a const_int.
31654         * config/mips/mips.h (ISA_HAS_LSA): New define.
31655         (ISA_HAS_DLSA): Likewise.
31656         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
31657         * config/mips/predicates.md (const_immlsa_operand): New predicate.
31659 2015-01-15  Martin Liska  <mliska@suse.cz>
31661         PR target/64377
31662         * optc-save-gen.awk: Add support for array types.
31664 2015-01-15  Richard Biener  <rguenther@suse.de>
31666         PR middle-end/64365
31667         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
31668         for MEM_REF access functions with the same base can never partially
31669         overlap.
31671 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
31673         * common.opt: New option -fstack-protector-explicit.
31674         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
31675         (stack_protect_decl_phase): Handle stack_protect attribute for
31676         explicit stack protection requests.
31677         (expand_used_vars): Similarly.
31678         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
31679         * doc/extend.texi: Add documentation for "stack_protect" attribute.
31680         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
31682 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
31684         PR target/53988
31685         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
31686         reg-reg copies.
31687         (sh_extending_set_of_reg): New struct.
31688         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
31689         sh_remove_reg_dead_or_unused_notes): New Declarations.
31690         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
31691         sh_find_extending_set_of_reg, sh_split_tst_subregs,
31692         sh_extending_set_of_reg::use_as_extended_reg): New functions.
31693         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
31694         convert to insn_and_split and use new function sh_split_tst_subregs.
31696 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
31698         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
31699         option.
31700         (Optimization Options): Move -fuse-ld documentation to...
31701         (Link Options): ...here.
31703 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
31705         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
31706         offsets.
31707         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
31708         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
31709         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
31710         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
31711         instead of ZR for the memory operand of LL/SC.
31712         (compare_and_swap_12, sync_add<mode>): Likewise.
31713         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
31714         (sync_new_<optab>_12, sync_nand_12): Likewise.
31715         (sync_old_nand_12, sync_new_nand_12): Likewise.
31716         (sync_sub<mode>, sync_old_add<mode>): Likewise.
31717         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
31718         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
31719         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
31720         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
31721         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
31722         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
31723         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
31724         * doc/md.texi (ZC): Update description.
31726 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
31728         * builtins.c (expand_builtin_atomic_exchange): Remove error when
31729         memory model is CONSUME.
31730         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
31731         expand_builtin_atomic_store): Change invalid memory model errors to
31732         warnings.
31733         (expand_builtin_atomic_clear): Change invalid model errors to warnings
31734         and issue warning for CONSUME.
31736 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
31738         * lto-cgraph: Update function comments for
31739         lto_symtab_encoder_encode_*.
31741 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
31743         * Makefile.in (site.exp): Do not set ENABLE_LTO.
31745 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
31747         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
31748         * lto-cgraph.c (select_what_to_stream): Remove argument, use
31749         lto_stream_offload_p instead.
31750         * lto-streamer.h (select_what_to_stream): Remove argument.
31751         * passes.c (ipa_write_summaries): Likewise.
31752         * tree-pass.h (ipa_write_summaries): Likewise.
31754 2015-01-14  Richard Biener  <rguenther@suse.de>
31756         PR tree-optimization/59354
31757         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
31758         groups larger than the slp group size as having gaps.
31760 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
31762         PR middle-end/59448
31763         * builtins.c (get_memmodel): Promote consume to acquire always.
31765 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
31767         PR target/64386
31768         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
31769         V32HImode.
31771 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
31773         PR target/64393
31774         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
31775         Enable AVX512BW.
31776         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
31777         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
31778         AVX512VBMI, as it implies AVX512BW.
31780 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
31782         PR target/64387
31783         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
31784         (vec_unpacks_hi_v16sf): Ditto.
31786 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31788         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
31789         is not available.
31791 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31793         * doc/invoke.texi (mapcs): Mention deprecation.
31794         (mapcs-frame): Likewise.
31796 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31798         PR target/64453
31799         * config/arm/arm.c (callee_saved_reg_p): Define.
31800         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
31801         register is callee saved instead of !call_used_regs[reg].
31802         (thumb1_compute_save_reg_mask): Likewise.
31804 2015-01-14  Hale Wang  <hale.wang@arm.com>
31806         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
31807         Cortex-M7.
31809 2015-01-14  Richard Biener  <rguenther@suse.de>
31811         PR lto/64415
31812         * tree-inline.c (insert_debug_decl_map): Check destination
31813         function MAY_HAVE_DEBUG_STMTS.
31814         (insert_init_debug_bind): Likewise.
31815         (insert_init_stmt): Remove redundant check.
31816         (remap_gimple_stmt): Drop debug stmts if the destination
31817         function has var-tracking assignments disabled.
31819 2015-01-14  Martin Liska  <mliska@suse.cz>
31821         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
31822         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
31824 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31826         PR target/64460
31827         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
31828         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
31830 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
31832         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
31833         level from an ARCH; do not inject the default.
31834         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
31835         MIPS_ISA_LEVEL_SPEC.
31836         (MIPS_ISA_NAN2008_SPEC): Update comment.
31837         (BASE_DRIVER_SELF_SPECS): Likewise.
31838         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
31839         MIPS_DEFAULT_ISA_LEVEL_SPEC.
31840         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
31841         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
31842         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
31844 2015-01-14  Richard Biener  <rguenther@suse.de>
31846         PR tree-optimization/64493
31847         PR tree-optimization/64495
31848         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
31849         assign the proper vectorized PHI to the inner loop exit PHIs.
31851 2015-01-14  Joey Ye  <joey.ye@arm.com>
31853         * config/arm/arm.c (arm_compute_save_reg_mask):
31854         Do not save lr in case of tail call.
31855         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
31857 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
31859         * tree-vrp.c (check_array_ref): Emit more warnings
31860         for warn_array_bounds >= 2.
31861         * common.opt: New option -Warray-bounds=.
31862         * doc/invoke.texi: Document -Warray-bounds=.
31864 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
31866         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
31867         (mforbid-fp-as-gp): Remove.
31868         (mex9): Remove.
31869         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
31870         (nds32_symbol_load_store_p): Remove.
31871         (nds32_fp_as_gp_check_available): Clean up implementation.
31872         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
31873         cases.
31874         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
31875         fp-as-gp and ex9 cases.
31877 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
31879         * tree-profile.c (init_ic_make_global_vars): Drop workaround
31880         for bintuils bug 14342.
31881         (init_ic_make_global_vars): Likewise.
31882         (gimple_init_edge_profiler): Likewise.
31883         (gimple_gen_ic_func_profiler): Likewise.
31885 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31887         * ipa-inline.c (inline_small_functions): Swap the operands in
31888         enum.
31890 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
31892         PR ipa/64481
31893         * ipa-inline-analysis.c (node_growth_cache): Remove.
31894         (initialize_growth_caches): Do not initialize it.
31895         (free_growth_caches): Do not free it.
31896         (do_estimate_growth): Rename to ...
31897         (estimate_growth): ... this one; drop growth cache code.
31898         (growth_likely_positive): Always go the heuristics way.
31899         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
31900         (reset_edge_caches): Do not reset node growth.
31901         (heap_edge_removal_hook): Do not maintain cache.
31902         (inline_small_functions): Likewise; strenghten sanity check.
31903         (ipa_inline): Do not maintain caches.
31904         * ipa-inline.h (node_growth_cache): Remove.
31905         (do_estimate_growth): Remove to ...
31906         (estimate_growth): this one; remove inline version.
31907         (reset_node_growth_cache): Remove.
31909 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
31911         PR ipa/64565
31912         * ipa-inline.c (inline_small_functions): Update callee keys after
31913         resolving speculation
31914         (inline_small_functions): Always check monotonicity of the queue.
31916 2015-01-13  Marek Polacek  <polacek@redhat.com>
31918         PR middle-end/64391
31919         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
31921 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
31923         PR rtl-optimization/64286
31924         * ree.c (combine_reaching_defs): Move part of comment earlier,
31925         remove !SCALAR_INT_MODE_P check.
31926         (add_removable_extension): Don't add vector mode
31927         extensions if all uses of the source register aren't the same
31928         vector extensions.
31930 2015-01-13  Renlin Li  <renlin.li@arm.com>
31932         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
31933         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
31935 2015-01-13  Martin Liska  <mliska@suse.cz>
31937         * ipa-icf.c (sem_function::equals_private): Call new functions
31938         cl_target_option_print_diff and cl_optimization_print_diff.
31939         * optc-save-gen.awk (cl_target_option_print_diff): New function.
31940         (cl_optimization_print_diff): Likewise.
31941         * opth-gen.awk: Likewise.
31943 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
31945         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
31946         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
31947         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
31948         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
31949         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
31950         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
31952 2015-01-13  Andrew Pinski  <apinski@cavium.com>
31954         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
31955         instead of src mode.
31957 2015-01-13  Richard Biener  <rguenther@suse.de>
31959         PR lto/64373
31960         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
31961         DECL_CONTEXT.
31963 2015-01-13  Andrew Pinski  <apinski@cavium.com>
31965         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
31966         volatile mems.
31967         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
31969 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
31971         PR middle-end/63974
31972         * cfgexpand.c (expand_computed_goto): Don't call
31973         convert_memory_address here.
31975 2015-01-13  Richard Biener  <rguenther@suse.de>
31977         PR tree-optimization/64406
31978         * tree-loop-distibution.c (pass_loop_distribution::execute):
31979         Reset the SCEV hashtable if we distributed anything.
31981 2015-01-13  Richard Biener  <rguenther@suse.de>
31983         PR tree-optimization/64404
31984         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
31985         SLP types for CSEd loads.
31987 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31989         PR tree-optimization/64436
31990         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
31991         merge of two symbolic numbers for a bitwise OR to ...
31992         (perform_symbolic_merge): This. Also fix computation of the range and
31993         end of the symbolic number corresponding to the result of a bitwise OR.
31995 2015-01-13  Richard Biener  <rguenther@suse.de>
31997         PR tree-optimization/64568
31998         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
31999         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32001 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32003         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32004         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32006 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32008         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32009         target-specific symbol_ref flag.
32010         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32011         resides in rodata section.
32012         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32013         (nds32_encode_section_info): New function.
32015 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32017         * config/nds32/nds32.md (call): Use pseudo instruction bal which
32018         clobbers TA_REGNUM if large code model is specified.
32019         (call_register): Likewise.
32020         (call_immediate): Likewise.
32021         (call_value): Likewise.
32022         (call_value_register): Likewise.
32023         (call_value_immediate): Likewise.
32025 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32027         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32028         (TARGET_CMODEL_MEDIUM): New macro.
32029         (TARGET_CMODEL_LARGE): New macro.
32030         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32031         code model setting in assembly code.
32033 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32035         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32036         Remove MASK_GP_DIRECT flag.
32037         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32038         one of the multilib default options.
32039         * config/nds32/nds32.opt (mgp-direct): Remove.
32040         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32041         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
32043 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32045         * config/nds32/nds32.opt (mcmodel): Add new option.
32046         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32047         to describe code model.
32049 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
32051         PR target/64479
32052         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32054 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
32056         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32057         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32058         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32059         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32060         __builtin_sh_set_fpscr.
32062 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32064         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32065         after a funtion name just to indicate it is a function.
32066         ([-fsanitize-undefined-trap-on-error]): Likewise.
32067         ([-fdbg-cnt=]): Likewise.
32068         ([-mmemcpy]): Likewise.
32069         ([-mflush-func]): Likewise.
32070         ([-msynci]): Likewise.
32072 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32074         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32075         example.
32077 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
32079         PR tree-optimization/64563
32080         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32081         instead of != VR_VARYING.
32083         PR target/64513
32084         * config/i386/i386.c (ix86_expand_prologue): Add
32085         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32087         PR tree-optimization/64454
32088         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32089         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32090         for signed or [0, op1 - 1] for unsigned modulo.
32091         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32092         even if op1 does not satisfy integer_pow2p.
32094         PR other/64370
32095         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32097 2015-01-12  Jeff Law  <law@redhat.com>
32099         PR target/64461
32100         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32101         (trunchiqi2, truncsihi2): Similarly.
32103         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32104         rather than calling F.
32106 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32108         * tsan.c (instrument_expr): Use force_gimple_operand.
32109         Use may_be_nonaddressable_p instead of is_gimple_addressable.
32111 2015-01-12  Richard Biener  <rguenther@suse.de>
32113         PR tree-optimization/64530
32114         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32115         back dr1.
32117 2015-01-12  Richard Biener  <rguenther@suse.de>
32119         PR middle-end/64357
32120         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32121         latches properly.
32123 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32125         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32126         Cortex-A17 tuning parameters.
32127         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32129 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32131         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32132         * config/arm/arm.c (arm_macro_fusion_p): New function.
32133         (arm_macro_fusion_pair_p): Likewise.
32134         (TARGET_SCHED_MACRO_FUSION_P): Define.
32135         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32136         (ARM_FUSE_NOTHING): Likewise.
32137         (ARM_FUSE_MOVW_MOVT): Likewise.
32138         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32139         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32140         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32141         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32142         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32143         arm_cortex_a5_tune): Specify fuseable_ops value.
32145 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
32147         PR bootstrap/64561
32148         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32149         test for PIE with copy reloc.
32150         * configure: Regenerated.
32152 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32154         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32155         in gen_rtx_REG.
32156         (arm_tls_descseq_addr): Likewise.
32157         (arm_gen_movmemqi): Likewise.
32158         (arm_expand_epilogue_apcs_frame): Likewise.
32159         (arm_expand_epilogue): Likewise.
32160         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
32161         in gen_rtx_REG.
32163 2015-01-12  Martin Liska  <mliska@suse.cz>
32165         PR ipa/64550
32166         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32167         volatility for correct operands.
32169 2015-01-12  Martin Liska  <mliska@suse.cz>
32171         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32172         indication that a function is not leaf.
32173         (sem_function::compare_polymorphic_p): Likewise.
32175 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32177         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32178         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32179         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32180         fold-const.h, tree-check.h.
32182 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32184         PR ipa/63967
32185         PR ipa/64425
32186         * ipa-inline.c (compute_uninlined_call_time,
32187         compute_inlined_call_time): Use counts for extra precision when
32188         needed possible.
32189         (big_speedup_p): Fix formating.
32190         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32191         (relative_time_benefit): Remove.
32192         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32193         merge guessed and read profile paths.
32194         (inline_small_functions): Count only !optimize_size functions into
32195         initial size; be more lax about sanity check when profile is used;
32196         be sure to update inlined function profile when profile is read.
32198 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32200         PR ipa/63470
32201         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32202         cost when edge becomes direct.
32203         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32204         is resolved or when introducing new speculation.
32206 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
32208         PR ipa/64551
32209         PR ipa/64552
32210         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32211         '||' to fix typo issue.
32213         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32214         accept and return NULL.
32216 2015-01-12  Martin Liska  <mliska@suse.cz>
32218         * cgraph.c (cgraph_edge::remove_callee): Move function to header
32219         file for being inlined.
32220         (cgraph_set_edge_callee): Delete.
32221         (cgraph_edge::redirect_callee): Move function to header file
32222         for being inlined.
32223         (cgraph_edge::make_direct): Use new function.
32224         (cgraph_edge::dump_edge_flags): New function created from
32225         static dump_edge_flags function.
32226         (cgraph_node::dump): Use new function.
32227         (cgraph_edge::verify_count_and_frequency): New function created
32228         from verify_edge_count_and_frequency.
32229         (cgraph_edge::verify_corresponds_to_fndecl): New function created
32230         from verify_edge_corresponds_to_fndecl.
32231         (verify_edge_corresponds_to_fndecl): Delete.
32232         (cgraph_node::verify_node): Use new function.
32233         * cgraph.h (cgraph_edge::set_callee): New function.
32234         (cgraph_edge::dump_edge_flags): Likewise.
32235         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32237 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
32239         * ipa-utils.c (estimate_function_body_sizes): Do not
32240         free node params when called late with early=true.
32242 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
32244         * doc/md.texi (Instruction Patterns): Rewrite text for
32245         clarity.
32246         (Example): Likewise.
32248 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
32250         * doc/invoke.texi (Option Summary): Break long lines.
32251         [(-fdiagnostics-color)]: Put long literal in @smallexample
32252         instead of inline.
32253         [(-fsanitize-recover)]: Likewise.
32254         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32255         [(-ffast-math)]: Likewise.
32256         [(--param max-inline-insns-recursive)]: Likewise.
32257         [(--param max-inline-recursive-depth)]: Likewise.
32258         [(-mno-text-section-literals)]: Likewise.
32260 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
32262         * doc/install.texi: Update for libgomp being renamed from "GNU
32263         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32264         Runtime Library".
32265         * doc/sourcebuild.texi: Likewise.
32267 2015-01-10  Anthony Green  <green@moxielogic.com>
32269         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32270         mul.x availability for moxiebox configuration.
32272 2015-01-09  Anthony Green  <green@moxielogic.com>
32274         * config/moxie/moxie.md: Tabify assembly output.
32276 2015-01-09  Anthony Green  <green@moxielogic.com>
32278         * config/moxie/moxie.md (CC_REG): Correct register definition.
32280 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
32282         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32283         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
32284         of log files.
32286 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32288         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32290 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
32291             Jakub Jelinek  <jakub@redhat.com>
32293         PR middle-end/64412
32294         * lto-streamer.h (lto_stream_offload_p): New declaration.
32295         * lto-streamer.c (lto_stream_offload_p): New variable.
32296         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32297         at the same time as section_name_prefix.
32298         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32299         if lto_stream_offload_p.
32300         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32301         stream TREE_TARGET_OPTION if lto_stream_offload_p.
32302         (write_ts_function_decl_tree_pointers): Don't
32303         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32304         * tree-streamer-in.c (unpack_value_fields): Don't stream
32305         TREE_TARGET_OPTION in if ACCEL_COMPILER.
32306         (lto_input_ts_function_decl_tree_pointers): Don't stream
32307         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32308         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32309         instead of section_name_prefix string comparisons.
32311 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
32313         PR rtl-optimization/64536
32314         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32315         tablejumps.
32317 2015-01-09  Michael Collison  <michael.collison@linaro.org>
32319         PR tree-optimization/64322
32320         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32321         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32323 2015-01-09  Tom de Vries  <tom@codesourcery.com>
32325         PR rtl-optimization/64539
32326         * regcprop.c (kill_clobbered_values): Factor out of ...
32327         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
32328         instead of note_stores with kill_clobbered_value.
32330 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32332          * ginclude/unwind-arm-common.h: Revert previous commit.
32334 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32336         * config.gcc (arm*-*-freebsd*): New configuration.
32337         * config/arm/freebsd.h: New file.
32338         * config.host: Add extra components for arm*-*-freebsd*.
32339         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32340         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32342 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32344         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32345         for -mcpu=e6500.
32346         * config/rs6000/t-rtems: Add e6500 multilibs.
32348 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32350         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32351         MPC8540.
32353 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32355         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32356         MULTILIB_EXCEPTIONS.
32358 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32360         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32361         MULTILIB_EXCEPTIONS.
32363 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32365         * config/arm/t-rtems-eabi: Rename to...
32366         * config/arm/t-rtems: ...this.
32367         * config/arm/rtems-eabi.h: Rename to...
32368         * config/arm/rtems.h: ...this.
32369         * config.gcc (arm*-*-rtems*): Reflect changes above.
32371 2015-01-09  Richard Biener  <rguenther@suse.de>
32373         PR tree-optimization/64410
32374         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32375         on the LHS.
32376         (execute_update_addresses_taken): Deal with that.
32377         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32378         loads/stores for complex variables.
32380 2015-01-09  Martin Liska  <mliska@suse.cz>
32382         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32383         name comparison.
32384         (func_checker::compare_memory_operand): New function.
32385         (func_checker::compare_operand): Split case to newly
32386         added functions.
32387         (func_checker::compare_cst_or_decl): New function.
32388         (func_checker::compare_gimple_call): Identify
32389         memory operands.
32390         (func_checker::compare_gimple_assign): Likewise.
32391         * ipa-icf-gimple.h: New function.
32393 2015-01-09  Martin Liska  <mliska@suse.cz>
32395         PR ipa/64503
32396         * sreal.c (sreal::dump): Change unsigned format to signed for
32397         m_exp value.
32398         (sreal::to_double): Replace exp2 with scalbln.
32400 2015-01-09  Martin Liska  <mliska@suse.cz>
32402         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32403         * ipa-icf.c (sem_function::equals_private): Add support for target and
32404         (sem_item_optimizer::merge_classes): Remove redundant function
32405         optimization flags comparison.
32406         * tree.h (target_opts_for_fn): New function.
32408 2015-01-09  Tom de Vries  <tom@codesourcery.com>
32410         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32412 2015-01-09  Kito Cheng  <kito@0xlab.org>
32414         PR rtl-optimization/64348
32415         * lra-constraints.c (split_reg): Fix caller-save store/restore
32416         instruction generation.
32418 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
32420         PR gcov-profile/61790
32421         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32422         long long.  Fallback to int64_t if host doesn't have long long and
32423         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
32425 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32427         PR tree-optimization/63989
32428         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32429         from 1000 to 10000.
32430         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32431         (get_stridx): If we don't have a record for certain SSA_NAME,
32432         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32433         constant offset, call get_stridx_plus_constant.
32434         (get_stridx_plus_constant): New function.
32435         (zero_length_string): Don't use get_stridx here.
32437         PR target/55023
32438         PR middle-end/64388
32439         * dse.c (struct insn_info): Mention frame_read set also
32440         before reload for tail calls on some targets.
32441         (scan_insn): Revert 2014-12-22 change.  Set frame_read
32442         also before reload for tail calls if
32443         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
32444         instead of add_non_frame_wild_read for non-const/memset
32445         tail calls after reload.
32447 2015-01-08  Jason Merrill  <jason@redhat.com>
32449         * ubsan.c (do_ubsan_in_current_function): New.
32450         (pass_ubsan::gate): Use it.
32451         * ubsan.h: Declare it.
32452         * convert.c (convert_to_integer): Use it.
32454 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32456         PR target/64338
32457         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
32458         compare_code when it is unconditionally overwritten afterwards.
32459         Use ix86_reverse_condition instead of reverse_condition.  Don't
32460         change code if *reverse_condition* returned UNKNOWN and don't
32461         swap ct/cf and negate diff in that case.
32463 2015-01-08  Mike Stump  <mikestump@comcast.net>
32465         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
32466         (pass_tsan_O0::gate): Likewise.
32467         * extend.texi (Function Attributes): Add no_sanitize_thread
32468         documentation.
32470 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
32472         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
32473         for registering builtins.
32474         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
32475         add -fopenmp to the argv_obstack used when invoking
32476         compile_for_target.
32478         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
32479         add "-m32" or "-m64" to argv_obstack.
32480         (generate_host_descr_file): Likewise, when invoking host_compiler.
32481         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
32482         ld.
32484 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
32486         * config/sh/sh-mem.cc: Use constant as second operand when emitting
32487         tstsi_t insns.
32489 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
32491         PR target/55212
32492         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
32493         constant load if constant operand fits into I08.
32495 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32497         PR sanitizer/64336
32498         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
32499         and TREE_THIS_VOLATILE for MEM_REFs.
32500         (build5_stat): Fix up initialization of TREE_READONLY and
32501         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
32503 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
32505         PR target/64533
32506         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
32507         of r for the second alternative of the destination operand.
32509 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
32511         PR target/36557
32512         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
32514 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
32516         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
32517         keywords.
32518         ([-fivar-visibility], [-fvisibility]): Likewise.
32520 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
32522         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
32523         the file where @code, @command, etc is more appropriate.
32525 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
32527         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
32528         of -mrecip= documentation.
32530 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32532         PR target/64505
32533         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
32534         correct reload handler if -m32 -mpowerpc64 is used.
32536 2015-01-06  Tom de Vries  <tom@codesourcery.com>
32538         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
32540 2015-01-08  Christian Bruel  <christian.bruel@st.com>
32542         PR target/64507
32543         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
32545 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32547         PR tree-optimization/63259
32548         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
32549         if optab exists for 16bit byteswap.
32551 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
32553         * opts.c (common_handle_option): Add support for
32554         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
32555         * doc/invoke.texi: Document -fno-sanitize=all,
32556         -f{,no-}sanitize-recover=all.  Document that
32557         -fsanitize=float-cast-overflow is not enabled
32558         by -fsanitize=undefined.  Fix up documentation
32559         of -f{,no-}sanitize-recover.
32561 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
32563         * config.gcc: Add Visium support.
32564         * configure.ac: Likewise.
32565         * configure: Regenerate.
32566         * doc/extend.texi (interrupt attribute): Add Visium.
32567         * doc/invoke.texi: Document Visium options.
32568         * doc/install.texi: Document Visium target.
32569         * doc/md.texi: Document Visium constraints.
32570         * common/config/visium: New directory.
32571         * config/visium: Likewise.
32573 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
32575         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
32576         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
32578 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
32580         * combine.c (combine_validate_cost): Do not count the cost of a
32581         split I2 twice.  Do not display it twice in the dump, either.
32583 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32585         Revert parts of r219199.
32586         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
32587         <inttypes.h>.
32588         ([-Wtraditional]): Restore markup on <limits.h>.
32590 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
32592         PR c++/31397
32593         * doc/invoke.texi: Document -Wsuggest-override.
32595 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
32597         PR rtl-optimization/64287
32598         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
32599         (process_options): Disable flag_ipa_ra if profiling.
32601 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
32603         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
32605 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
32607         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
32608         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
32609         put under #if TARGET_LOOPS guard.
32611 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
32613         * config/i386/i386.c (output_387_binary_op): Use std::swap.
32615 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
32617         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
32618         * rtl.h (refers_to_regno_p): Add overload.
32619         * cse.c: Use it.
32620         * bt-load.c: Likewise.
32621         * combine.c: Likewise.
32622         * df-scan.c: Likewise.
32623         * sched-deps.c: Likewise.
32624         * config/s390/s390.c: Likewise.
32625         * config/m32r/m32r.c: Likewise.
32626         * config/rs6000/spe.md: Likewise.
32627         * config/rs6000/rs6000.c: Likewise.
32628         * config/pa/pa.c: Likewise.
32629         * config/stormy16/stormy16.c: Likewise.
32630         * config/cris/cris.c: Likewise.
32631         * config/arc/arc.md: Likewise.
32632         * config/arc/arc.c: Likewise.
32633         * config/sh/sh.md: Likewise.
32634         * config/sh/sh.c: Likewise.
32635         * config/frv/frv.c: Likewise.
32637 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
32639         PR sanitizer/64265
32640         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
32641         call as cleanup of the whole body.
32642         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
32643         * tsan.c (replace_func_exit): New function.
32644         (instrument_func_exit): Moved earlier.
32645         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
32646         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
32647         been found.
32648         (tsan_pass): Don't call instrument_func_exit.
32649         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
32650         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
32651         inlining.
32653         PR sanitizer/64344
32654         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
32655         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
32656         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
32657         if the result is integer_zerop, return NULL_TREE.
32658         * convert.c (convert_to_integer): Pass expr as ARG.
32660         PR tree-optimization/64465
32661         * tree-inline.c (redirect_all_calls): During inlining
32662         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
32663         changed the stmt to a non-throwing call.
32665 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32667         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
32668         etc markup throughout the file.
32670 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32672         Enable experimental TSAN support for Ada.
32673         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
32675 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
32677         PR tree-optimization/64494
32678         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
32679         clear SSA_NAME_ANTI_RANGE_P flag.
32681 2015-01-05  Marek Polacek  <polacek@redhat.com>
32683         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
32685 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
32687         Update copyright years.
32689         * gcc.c (process_command): Update copyright notice dates.
32690         * gcov-dump.c: Ditto.
32691         * gcov.c: Ditto.
32692         * doc/cpp.texi: Bump @copying's copyright year.
32693         * doc/cppinternals.texi: Ditto.
32694         * doc/gcc.texi: Ditto.
32695         * doc/gccint.texi: Ditto.
32696         * doc/gcov.texi: Ditto.
32697         * doc/install.texi: Ditto.
32698         * doc/invoke.texi: Ditto.
32700         * auto-profile.c, auto-profile.h: Fix up Copyright line.
32702 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
32704         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
32705         verb tense, etc.
32706         ([-fvtable-verify], [-fvtv-debug]): Likewise.
32707         ([-Wabi]): Likewise.
32708         ([-fmessage-length]): Likewise.
32709         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
32710         ([-Wno-discarded-qualifiers]): Likewise.
32711         ([-Wnodiscarded-array-qualifiers]): Likewise.
32712         ([-Wno-virtual-move-assign]): Likewise.
32713         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
32714         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
32715         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
32716         ([-fsanitize-undefined-trap-on-error]): Likewise.
32717         ([-floop-interchange]): Likewise.
32718         ([-ftree-coalesce-inlined-vars]): Likewise.
32719         ([-fvect-cost-model]): Likewise.
32720         ([-flto]): Likewise.
32721         ([--param]): Likewise.
32722         (Spec Files): Likewise.
32723         ([-mstrict-align]): Likewise.
32724         ([-mfix-cortex-a53-835769]): Likewise.
32725         ([-march], [-mtune]): Likewise.
32726         ([-mpic-register]): Likewise.
32727         ([-munaligned-access]): Likewise.
32728         ([-msp8]): Likewise.
32729         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
32730         (AVR Built-in Macros): Likewise.
32731         ([-mpreferred-stack-boundary]): Likewise.
32732         ([-mtune-crtl]): Likewise.
32733         ([-mashf]): Likewise.
32734         ([-mmcu=]): Likewise.
32735         ([-minrt]): Likewise.
32736         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
32737         ([-mupper-regs]): Likewise.
32738         ([-matomic-model]): Likewise.
32739         ([-mdiv]): Likewise.
32740         ([-mzdcbranch]): Likewise.
32741         ([-mdisable-callt]): Likewise.
32742         ([-msoft-float]): Likewise.
32743         ([-m8byte-align]): Likewise.
32744         ([-fstack-reuse]): Likewise.
32746 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32748         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
32749         Fix markup, light copy-editing.
32750         ([-fauto-profile]): Rewrite to fix formatting and content
32751         problems.
32753 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32755         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
32756         Copy-edit description.
32757         ([-fisolate-erroneous-paths-attribute]): Likewise.
32758         * common.opt (fisolate-erroneous-paths-dereference):
32759         Copy-edit description.
32760         (fisolate-erroneous-paths-attribute): Likewise.
32762 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32764         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
32765         tidy grammar.
32767 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32769         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
32770         ([-fvtv-debug]): Likewise.
32771         ([-Wc++-compat]): Likewise.
32772         ([-Wc++11-compat]): Likewise.
32773         ([-Wc++14-compat]): Likewise.
32774         ([-Wno-sized-deallocation]): Likewise.
32775         ([-femit-class-debug-always]): Likewise.
32776         ([-femit-struct-debug-detailed]): Likewise.
32777         ([-fno-keep-inline-dllexport]): Likewise.
32778         ([-fira-algorithm]): Likewise.
32779         ([-fira-region]): Likewise.
32780         ([-flra-remat]): Likewise.
32781         ([-fipa-ra]): Likewise.
32782         ([-fhoist-adjacent-loads]): Likewise.
32783         ([-fisolate-erroneous-paths-dereference]): Likewise.
32784         ([-fisolate-erroneous-paths-attribute]): Likewise.
32785         ([-ftree-switch-conversion]): Likewise.
32786         ([-ftree-tail-merge]): Likewise.
32787         ([-ftree-loop-if-convert]): Likewise.
32788         ([-ftree-loop-if-convert-stores]): Likewise.
32789         ([-ftree-loop-distribution]): Likewise.
32790         ([-ftree-loop-distribute-patterns]): Likewise.
32791         ([-flto-compression-level]): Likewise.
32792         ([-flto-report]): Likewise.
32793         ([-flto-report-wpa]): Likewise.
32794         ([-fuse-linker-plugin]): Likewise.
32795         ([-mfix-cortex-a53-835769]): Likewise.
32796         ([-mno-fix-cortex-a53-835769]): Likewise.
32797         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
32798         explicit listing; add a note to the discussion indicating they
32799         exist.  Reorder table to group similar options.  Add missing
32800         @opindex entries.  Add @need commands throughout the table to
32801         allow it to be split across multiple pages.
32802         ([-m8bit-idiv]): Fix @opindex.
32803         ([-mavx256-split-unaligned-load]): Likewise.
32804         ([-mavx256-split-unaligned-store]): Likewise.
32805         ([-mstack-protector-guard]): Likewise.
32806         ([-mcpu=]): Likewise.
32807         ([-mcpu]): Likewise.
32808         ([-mpointer-size=]): Likewise.
32810 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
32812         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
32813         instead of `m' constraint.  Likewise for unnamed movb comparison
32814         patterns using reg_before_reload_operand predicate.
32815         * config/pa/predicates.md (reg_before_reload_operand): Tighten
32816         predicate to reject register index and LO_SUM DLT memory forms
32817         after reload.
32819 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
32821         * doc/invoke.texi (Option Summary): Fix spelling of
32822         -fdevirtualize-at-ltrans.
32823         ([-fdevirtualize]): Fix markup.
32824         ([-fdevirtualize-speculatively]): Fix typo.
32825         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
32826         implementor-speaky.
32827         * common.opt (fdevirtualize-at-ltrans): Likewise.
32828         * ipa-devirt.c: Fix typos in comments throughout the file.
32829         (ipa_devirt): Fix typos in format strings for dump output.
32831 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
32833         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
32834         discussion of defaults, light copy-editing.
32836 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32838         * tsan.c (instrument_expr): corrected previous checkin.
32840 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32842         Instrument bit field and unaligned accesses for TSAN.
32843         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
32844         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
32845         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
32846         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
32847         unaligned memory regions.
32849 2015-01-01  Anthony Green  <green@moxielogic.com>
32851         * config/moxie/predicates.md (moxie_general_movsrc_operand):
32852         Restrict move source register offsets to 16 bits.
32854 Copyright (C) 2015 Free Software Foundation, Inc.
32856 Copying and distribution of this file, with or without modification,
32857 are permitted in any medium without royalty provided the copyright
32858 notice and this notice are preserved.