1 2015-10-15 Marek Polacek <polacek@redhat.com>
3 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4 gimple_call_builtin instead of is_gimple_call.
6 2015-10-15 Richard Biener <rguenther@suse.de>
8 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10 2015-10-15 Richard Biener <rguenther@suse.de>
12 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
13 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
14 * tree-vect-loop.c (get_initial_def_for_induction): Drop
15 use of force_gimple_operand in favor of gimple_build.
16 Use vect_get_new_ssa_name.
17 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
18 (vectorizable_mask_load_store): Likewise.
19 (vectorizable_call): Likewise.
20 (vectorizable_store): Likewise.
21 (vectorizable_load): Likewise.
22 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
24 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
26 PR tree-optimization/67945
27 * tree-pass.h (PROP_gimple_opt_math): New property flag.
28 * generic-match-head.c (canonicalize_math_p): New function.
29 * gimple-match-head.c: Include tree-pass.h.
30 (canonicalize_math_p): New function.
31 * match.pd: Group math built-in rules into simplifications
32 and canonicalizations. Guard the latter with canonicalize_math_p.
33 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
34 PROP_gimple_opt_math property.
36 2015-10-15 Marek Polacek <polacek@redhat.com>
38 PR tree-optimization/67953
39 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
41 2015-10-15 Jiong Wang <jiong.wang@arm.com>
43 * config.gcc: Recognize "." in architecture base name for AArch64.
45 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
47 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
49 * config/mips/mips.c (mips_setup_incoming_varargs): Use
50 ROUND_DOWN to calculate off.
51 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
52 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
55 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
57 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
59 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
60 Torvald Riegel <triegel@redhat.com>
63 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
64 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
65 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
66 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
67 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
68 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
69 trechkpt, treclaim, tsr, ttest): New define_expands.
70 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
72 * doc/extend.texi: Update documentation for htm builtins.
74 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
77 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
78 REG_CFA_EXPRESSION to aligned SSE stores.
80 2015-10-14 Jeff Law <law@redhat.com>
82 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
83 num_threaded_edges for successful FSM threads too.
85 2015-10-14 Richard Biener <rguenther@suse.de>
87 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
88 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
89 (vect_get_vec_def_for_operand): Remove unused parameter.
90 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
91 (vect_create_epilog_for_reduction): Likewise.
92 (vectorizable_reduction): Likewise.
93 (vectorizable_live_operation): Likewise.
94 * tree-vect-patterns.c (type_conversion_p): Likewise.
95 (vect_recog_vector_vector_shift_pattern): Likewise.
96 (check_bool_pattern): Likewise.
97 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
98 (vect_analyze_slp_cost_1): Likewise.
99 * tree-vect-stmts.c (process_use): Likewise.
100 (vect_get_vec_def_for_operand): Do not handle reductions.
101 (vect_get_vec_defs): Adjust.
102 (vectorizable_mask_load_store): Likewise.
103 (vectorizable_call): Likewise.
104 (vectorizable_simd_clone_call): Likewise.
105 (vect_get_loop_based_defs): Likewise.
106 (vectorizable_conversion): Likewise.
107 (vectorizable_assignment): Likewise.
108 (vectorizable_shift): Likewise.
109 (vectorizable_operation): Likewise.
110 (vectorizable_store): Likewise.
111 (vectorizable_load): Likewise.
112 (vect_is_simple_cond): Likewise.
113 (vectorizable_condition): Likewise.
114 (vect_is_simple_use): Remove unused parameters.
115 (vect_is_simple_use_1): Adjust and rename.
117 2015-10-14 Richard Biener <rguenther@suse.de>
119 PR tree-optimization/67915
120 * match.pd: Handle comparisons of addresses of STRING_CSTs.
121 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
122 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
123 stmt folding in favor of GIMPLE one.
125 2015-10-14 Marek Polacek <polacek@redhat.com>
127 PR tree-optimization/67815
128 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
129 (reassociate_bb): Call it.
131 2015-10-14 Richard Biener <rguenther@suse.de>
133 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
135 (vect_analyze_group_access_1): Add debug print.
136 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
137 (vect_compute_single_scalar_iteration_cost): ... to this.
138 (vect_analyze_loop_2): Adjust.
139 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
140 * tree-vectorizer.h: ... here.
141 (add_stmt_info_to_vec): Remove.
142 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
144 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
146 * targhooks.c (default_target_option_pragma_parse): Do not warn if
147 called on behalf of "#pragma GCC pop_options".
149 2015-10-14 Tom de Vries <tom@codesourcery.com>
151 * cfganal.c (verify_no_unreachable_blocks): New function.
152 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
153 verify_no_unreachable_blocks.
154 cfganal.h (verify_no_unreachable_blocks): Declare.
156 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
158 * common.opt: Add flag_checking.
159 * system.h (CHECKING_P): Define.
161 2015-10-13 Jakub Jelinek <jakub@redhat.com>
162 Aldy Hernandez <aldyh@redhat.com>
163 Ilya Verbin <ilya.verbin@intel.com>
165 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
166 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
167 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
168 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
169 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
170 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
171 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
172 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
173 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
174 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
175 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
176 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
177 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
178 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
179 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
180 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
181 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
182 (struct cgraph_simd_clone_arg): Adjust comment.
183 * coretypes.h (struct gomp_ordered): New forward decl.
184 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
185 set critical clauses to it.
186 (gimple_build_omp_ordered): Return gomp_ordered * instead of
187 gimple *. Add CLAUSES argument, set ordered clauses to it.
188 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
190 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
191 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
192 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
193 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
194 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
195 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
196 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
197 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
199 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
200 (gomp_critical): Add clauses field.
201 (gomp_ordered): New struct.
202 (is_a_helper <gomp_ordered *>::test): New inline.
203 (gimple_build_omp_critical): Add CLAUSES argument.
204 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
206 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
207 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
208 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
209 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
211 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
212 (dump_gimple_omp_target): Handle enter data and exit data.
213 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
214 (dump_gimple_omp_critical): Print clauses.
215 (dump_gimple_omp_ordered): New function.
216 (dump_gimple_omp_task): Handle taskloop.
217 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
219 * gimple-walk.c (walk_gimple_op): Walk clauses on
220 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
221 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
222 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
223 (struct gimplify_omp_ctx): Add loop_iter_var,
224 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
225 and target_firstprivatize_array_bases fields.
226 (delete_omp_context): Release loop_iter_var.
227 (gimplify_bind_expr): Handle ORT_NONE.
228 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
230 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
231 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
232 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
233 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
234 ctx->target_map_scalars_firstprivate.
235 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
236 data sharing clauses. For data sharing clause with VLA decl
237 on omp target/target data don't add firstprivate for the pointer.
238 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
239 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
240 the addition of ORT_COMBINED_TARGET.
241 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
242 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
243 pointers as zero length array sections and
244 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
246 (omp_check_private): Handle omp_member_access_dummy_var vars.
247 (find_decl_expr): New function.
248 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
249 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
250 Handle OMP_CLAUSE_GANG separately. Handle
251 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
252 clauses. Diagnose linear clause on combined
253 distribute {, parallel for} simd construct, unless it is the loop
254 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
255 Handle map clauses with COMPONENT_REF. Initialize
256 ctx->target_map_scalars_firstprivate,
257 ctx->target_firstprivatize_array_bases and
258 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
259 linear clause even to target region if combined. Remove
260 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
261 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
262 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
263 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
264 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
265 For linear clause on worksharing loop combined with parallel add
266 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
267 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
268 omp_member_access_dummy_var vars. Add lastprivate clause to outer
270 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
271 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
272 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
274 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
275 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
276 in target body. Handle removal of struct mapping if struct is not
277 seen in target body. Remove GOMP_MAP_STRUCT map clause on
278 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
279 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
280 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
281 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
282 clause appear together. Handle
283 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
284 clause if it has map-type-modifier always. Handle
285 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
287 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
288 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
290 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
291 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
292 iterators in doacross loops.
293 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
294 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
295 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
296 for the addition of ORT_COMBINED_TARGET.
297 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
298 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
299 and OMP_TARGET_EXIT_DATA.
300 (gimplify_omp_ordered): New function.
301 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
302 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
303 Gimplify clauses on OMP_CRITICAL.
304 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
305 expand_GOMP_SIMD_ORDERED_END): New functions.
306 * internal-fn.def (GOMP_SIMD_ORDERED_START,
307 GOMP_SIMD_ORDERED_END): New internal functions.
308 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
309 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
310 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
311 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
312 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
313 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
314 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
315 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
316 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
317 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
318 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
319 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
320 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
321 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
323 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
324 GOMP_target_data_41, adjust type.
325 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
326 GOMP_target_update_41, adjust type.
327 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
329 (struct omp_for_data): Add ordered and simd_schedule fields.
330 (omp_member_access_dummy_var, unshare_and_remap_1,
331 unshare_and_remap, is_taskloop_ctx): New functions.
332 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
333 (extract_omp_for_data): Handle taskloops and doacross loops
334 and simd schedule modifier.
335 (omp_adjust_chunk_size): New function.
336 (get_ws_args_for): Use it.
337 (lookup_sfield): Change first argument to splay_tree_key,
338 add overload with first argument tree.
339 (maybe_lookup_field): Likewise.
340 (use_pointer_for_field): Handle omp_member_access_dummy_var.
341 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
342 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
343 (build_outer_var_ref): Add LASTPRIVATE argument, handle
344 taskloops and omp_member_access_dummy_var vars.
345 (build_sender_ref): Change first argument to splay_tree_key,
346 add overload with first argument tree.
347 (install_var_field): For mask & 8 use &DECL_UID as key instead
349 (fixup_child_record_type): Const qualify *.omp_data_i.
350 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
351 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
352 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
353 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
354 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
355 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
356 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
358 (add_taskreg_looptemp_clauses): New function.
359 (scan_omp_parallel): Use it.
360 (scan_omp_task): Likewise.
361 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
362 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
363 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
364 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
365 sandwiched taskloop constructs. Type check
366 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
367 region. Diagnose depend(source) or depend(sink:...) on
368 target constructs or task/taskloop.
369 (handle_simd_reference): Use get_name.
370 (lower_rec_input_clauses): Likewise. Ignore all
371 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
372 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
373 before passing it to omp_clause_{default,copy}_ctor. Handle
374 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
375 lastprivate_firstprivate flag for linear that needs copyin and
376 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
377 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
378 on taskloop lookup decl in outer context. Pass true to
379 build_outer_var_ref lastprivate argument. Handle
380 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
381 outside of outer taskloop for.
382 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
384 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
385 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
386 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
387 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
388 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
389 abstract origin. Handle omp_member_access_dummy_var vars.
390 (expand_parallel_call): Use expand_omp_build_assign.
391 (expand_task_call): Handle taskloop construct expansion. Add
392 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
393 integers. Add priority argument to GOMP_task* calls. Or in
394 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
396 (expand_omp_build_assign): Add prototype. Add AFTER
397 argument, if true emit statements after *GSI_P and continue linking.
398 (expand_omp_taskreg): Adjust expand_task_call caller.
399 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
400 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
401 zero_iter2_bb and first_zero_iter2 arguments, handle computation
402 of counts even for ordered loops.
403 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
404 (expand_omp_ordered_source, expand_omp_ordered_sink,
405 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
407 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
408 clauses on worksharing loop. Handle DOACROSS loop expansion.
409 (expand_omp_for_static_nochunk): Handle linear clauses on
410 worksharing loop. Adjust expand_omp_for_init_counts
412 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
413 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
414 expand_omp_for_init_counts callers.
415 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
417 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
418 Handle doacross loops.
419 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
420 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
421 GOMP_target_{41,update_41,enter_exit_data} libcalls.
422 (expand_omp): Don't expand ordered depend constructs here, record
423 ord_stmt instead for later expand_omp_for_generic.
424 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
425 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
426 clause as stand-alone directive.
427 (lower_omp_ordered_clauses): New function.
428 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
429 don't lower anything.
430 (lower_omp_for_lastprivate): Use last _looptemp_ clause
431 on taskloop for comparison.
432 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
433 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
434 expansion for linear adjustments.
435 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
436 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
437 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
438 to tree * pointing to the stmt's clauses.
439 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
440 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
441 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
442 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
443 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
444 clauses. Always use short kind and 8-bit align shift.
445 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
446 (struct lower_omp_regimplify_operands_data): New type.
447 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
449 (lower_omp_1): Use lower_omp_regimplify_operands instead of
450 gimple_regimplify_operands.
451 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
452 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
453 clause as stand-alone directive.
454 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
455 (simd_clone_mangle): Mangle the various linear kinds
457 (simd_clone_adjust_argument_types): Handle
458 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
459 (simd_clone_init_simd_arrays): Don't do anything for uval.
460 (simd_clone_adjust): Handle
461 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
462 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
463 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
464 * omp-low.h (omp_member_access_dummy_var): New prototype.
465 * passes.def (pass_simduid_cleanup): Schedule another copy of the
466 pass after all optimizations.
467 * tree.c (omp_clause_code_name): Add entries for
468 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
469 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
470 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
471 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
472 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
473 OMP_CLAUSE_REDUCTION 5 arguments. Handle
474 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
475 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
477 * tree-core.h (enum omp_clause_linear_kind): New.
478 (struct tree_omp_clause): Change type of map_kind
479 from unsigned char to unsigned int. Add subcode.if_modifier
480 and subcode.linear_kind fields.
481 (enum omp_clause_code): Add
482 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
483 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
484 (OMP_CLAUSE_REDUCTION): Document
485 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
486 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
487 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
488 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
490 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
492 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
494 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
495 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
497 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
498 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
499 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
500 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
501 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
502 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
503 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
504 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
505 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
506 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
507 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
508 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
509 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
510 * tree-inline.c (remap_gimple_stmt): Handle clauses on
511 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
512 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
513 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
514 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
515 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
516 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
517 (convert_local_omp_clauses): Likewise.
518 * tree-pretty-print.c (dump_omp_clause): Handle
519 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
520 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
521 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
522 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
523 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
524 GOMP_MAP_FORCE_DEALLOC. Handle
525 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
526 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
527 and clauses on OMP_ORDERED and OMP_CRITICAL.
528 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
529 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
530 (vectorize_loops): Adjust comments.
531 (pass_simduid_cleanup::execute): Likewise.
532 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
533 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
534 * wide-int.h (wi::gcd): New.
536 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
538 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
539 (ix86_function_arg_advance): Ditto.
540 (ix86_function_arg): Ditto.
541 (ix86_gimplify_va_arg): Ditto.
542 (ix86_class_max_nregs): Ditto.
543 (inline_memory_move_cost): Ditto.
544 (ix86_set_reg_reg_cost): Ditto.
545 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
547 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
550 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
552 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
554 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
555 ROUND_UP macro and UNITS_PER_WORD * 2.
556 * config/sparc/sparc.c (sparc_compute_frame_size):
557 Use ROUND_UP and ROUND_DOWN macros where applicable.
558 (function_arg_record_value, function_arg_record_value_1)
559 (function_arg_record_value_1): Ditto.
560 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
561 alignment to double-word.
562 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
563 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
566 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
568 * gcc/rtl.h (print_insn): Fix prototype.
570 2015-10-13 Tom de Vries <tom@codesourcery.com>
572 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
573 -1. Add assert that returned entry matches phi argument.
574 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
575 free_stmt_vec_info_vec ...
576 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
579 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
581 PR tree-optimization/67909, 67947
582 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
583 really skip the inner loop.
585 2015-10-13 Jeff Law <law@redhat.com>
587 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
588 Allow single block jump threading paths.
590 2015-10-13 Tom de Vries <tom@codesourcery.com>
592 PR tree-optimization/67476
593 * doc/invoke.texi (@item parloops-schedule): New item.
594 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
595 * tree-parloops.c: Include params-enum.h.
596 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
598 2015-10-13 Tom de Vries <tom@codesourcery.com>
600 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
601 * params-enum.h: New file.
602 * opts.c (handle_param): Handle case that param arg is a string.
603 * params-list.h: Handle DEFPARAMENUM5 in params.def.
604 * params.c (find_param): New function, factored out of ...
605 (set_param_value): ... here.
606 (param_string_value_p): New function.
607 * params.h (struct param_info): Add value_names field.
608 (find_param, param_string_value_p): Declare.
610 2015-10-13 Tom de Vries <tom@codesourcery.com>
612 PR tree-optimization/67476
613 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
615 2015-10-13 Richard Biener <rguenther@suse.de>
617 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
618 the data dependence vector.
619 (vect_peeling_hash_insert): Get the peeling hash table as argument.
620 (vect_peeling_hash_get_lowest_cost): Likewise.
621 (vect_enhance_data_refs_alignment): Adjust.
622 (struct _vect_peel_info, struct _vect_peel_extended_info,
623 struct peel_info_hasher): Move from ...
624 * tree-vectorizer.h: ... here.
625 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
626 (LOOP_VINFO_PEELING_HTAB): Likewise.
627 (struct _loop_vec_info): Remove min_profitable_iters and
628 peeling_htab members.
629 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
631 (destroy_loop_vec_info): Adjust.
632 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
633 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
634 to estimate alias versioning cost.
635 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
637 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
639 * real.h (real_isinteger): Declare.
640 * real.c (real_isinteger): New function.
641 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
642 if y is an even integer.
644 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
647 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
648 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
649 counts when these are more informative.
651 2015-10-12 Jeff Law <law@redhat.com>
653 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
654 (fsm_find_control_stmt_paths): Change name of first argument to
655 more accurately relfect what it really is. Handle simplification
656 of GIMPLE_COND after finding a thread path for NAME.
657 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
658 nontrivial conditions to be handled by FSM threader.
659 (thread_through_normal_block): Extract the name to looup via
660 FSM threader from COND_EXPR.
662 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
663 restriction that traced SSA_NAME is a user variable.
665 2015-10-12 Tom de Vries <tom@codesourcery.com>
667 PR tree-optimization/67476
668 * omp-low.c (expand_omp_for_generic): Add missing phis.
670 2015-10-12 Tom de Vries <tom@codesourcery.com>
672 PR tree-optimization/67476
673 * omp-low.c (expand_omp_for_generic): Handle simple latch.
675 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
677 * config/aarch64/aarch64-simd-builtins.def: Update builtins
678 tables: add tbl3 and tbx4.
679 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
680 (aarch64_tbx4v8qi): New.
681 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
682 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
683 Rewrite using builtin functions.
684 * config/aarch64/iterators.md (UNSPEC_TBX): New.
686 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
688 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
690 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
691 Use ROUND_UP and ROUND_DOWN macros where applicable.
692 (rs6000_darwin64_record_arg_flush): Ditto.
693 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
694 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
697 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
699 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
700 (AARCH64_ROUND_DOWN): Ditto.
701 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
703 2015-10-12 Richard Biener <rguenther@suse.de>
706 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
707 code that analyzes IVs on each stmt but in a cheaper way avoiding
710 2015-10-12 Nick Clifton <nickc@redhat.com>
712 * config/msp430/msp430.c (msp430_mcu_names): Rename to
713 msp430_mcu_data, add fields for ISA and hardware multiply
714 support. Import latest data from the devices.csv file.
715 (msp430_override_option): Use the data from the new array.
716 (msp430_use_f5_series_hwmult): Likewise.
717 (use_32bit_hwmult): Likewise.
718 (msp430_no_hwmult): Likewise.
719 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
721 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
722 not recognised then no hardware multiply support is assumed and
723 that only the MSP430 ISA is allowed.
725 2015-10-12 Richard Biener <rguenther@suse.de>
727 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
729 (vect_analyze_loop_2): ... here.
731 2015-10-11 Jason Merrill <jason@redhat.com>
734 * expr.c (store_field): Call store_constructor directly when
735 storing a CONSTRUCTOR into a target smaller than its type.
736 Guard against unsafe bitwise copy.
738 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
740 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
741 counts when these are more informative.
743 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
745 * tree-profile.c (tree_profiling): Do not clear
746 pure/const when not instrumenting.
747 (pass tree_profile): Add dump of symtab.
749 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
751 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
753 (fold_addr_of_array_ref_difference): Likewise.
755 2015-10-11 Jeff Law <law@redhat.com>
757 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
758 tree-ssa-threadbackward.c.
759 (fsm_find_control_statement_thread_paths): Likewise.
760 (thread_through_normal_block): Break out FSM bits and move them
761 into a new function in tree-ssa-threadbackward.c. Call new function
763 Minimize header file usage.
764 * tree-ssa-threadbackward.h: New file.
765 * tree-ssa-threadbackward.c: Likewise.
766 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
768 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
770 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
772 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
774 PR rtl-optimization/67864
775 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
776 fallthrough edges for conditional jumps. Don't sort candidate
777 edges if not optimizing for speed.
779 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
781 * defaults.h (REVERSE_CONDITION): New default definition.
782 * jump.c (reversed_comparison_code_parts): Adjust.
784 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
786 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
787 check HARD_FRAME_POINTER_IS_ARG_POINTER.
789 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
791 * defaults.h (FRAME_ADDR_RTX): New default definition.
792 * builtins.c (expand_builtin_return_addr): Adjust.
794 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
796 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
797 * builtins.c (expand_builtin_return_addr): Adjust.
799 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
801 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
802 * builtins.c (expand_builtin_return_addr): Adjust.
803 * doc/tm.texi: Likewise.
804 * doc/tm.texi.in: Likewise.
805 * except.c (expand_builtin_unwind_init): Likewise.
807 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
809 * builtins.c (expand_builtin_return_addr): Adjust.
810 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
812 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
814 * tree.c (type_with_interoperable_signedness): New.
815 (gimple_canonical_types_compatible_p): Use it.
816 * tree.h (type_with_interoperable_signedness): Declare
818 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
820 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
821 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
822 when OEP_ADDRESS_OF is se.
824 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
825 Sebastian Pop <s.pop@samsung.com>
827 * graphite-dependences.c (scop_get_dependences): Add dump of the
828 data dependence graph.
829 * graphite-poly.c (print_isl_union_map): New.
830 (debug_isl_union_map): New.
831 * graphite-poly.h (print_isl_union_map): Declare.
832 (debug_isl_union_map): Declare.
834 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
835 Sebastian Pop <s.pop@samsung.com>
837 * graphite-poly.c (print_iteration_domain): Remove verbosity.
838 Remove OpenScop formatting.
839 (print_iteration_domains): Same.
840 (debug_iteration_domain): Same.
841 (debug_iteration_domains): Same.
844 (dump_gbb_cases): Same.
845 (dump_gbb_conditions): Same.
848 (print_pbb_body): Same.
850 (print_scop_params): Same.
851 (print_scop_context): Same.
853 (debug_pbb_domain): Same.
855 (debug_scop_context): Same.
857 (debug_scop_params): Same.
858 * graphite-poly.h: Same.
859 * graphite.c (graphite_transform_loops): Same.
861 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
863 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
864 call that isn't needed.
866 2015-10-09 Jeff Law <law@redhat.com>
868 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
869 rather than moving each name to the freelist individually.
871 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
873 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
874 * frame-header-opt.c: New file.
875 * config/mips/mips-proto.h (mips_register_frame_header_opt):
877 * config/mips/mips.c (mips_compute_frame_info): Check
878 optimize_call_stack flag.
879 (mips_option_override): Register new frame_header_opt pass.
880 (mips_frame_info, mips_int_mask, mips_shadow_set,
881 machine_function): Move these types to...
882 * config/mips/mips.h: here.
883 (machine_function): Add does_not_use_frame_header and
884 optimize_call_stack fields.
885 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
886 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
888 * config/mips/mips.opt (mframe-header-opt): Add new option.
890 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
893 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
894 ROUND_DOWN where applicable.
896 2015-10-09 Jeff Law <law@redhat.com>
898 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
901 2015-10-09 Renlin Li <renlin.li@arm.com>
903 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
904 operands[0] and operands[2].
905 (neon_vtrn<mode>_insn): Likewise.
906 (neon_vzip<mode>_insn): Likewise.
908 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
910 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
911 ((X & C2) << C1): Expand to...
912 (X {&,^,|} C2 << C1): ...This.
913 ((X & C2) >> C1): Expand to...
914 (X {&,^,|} C2 >> C1): ...This.
916 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
919 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
920 Adjust embedded rounding/SAE specifier position.
921 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
922 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
923 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
924 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
925 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
927 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
929 2015-10-09 Martin Jambor <mjambor@suse.cz>
931 tree-optimization/67794
932 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
933 between types of state,ents but accept original definitions as a
935 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
936 iterate over definitions.
938 2015-10-09 James Norris <jnorris@codesourcery.com>
940 * config/rs6000/rs6000.c (rs6000_offload_options): New.
941 (TARGET_OFFLOAD_OPTIONS): New.
943 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
946 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
949 * function.c (expand_function_end): Move return value
950 promotion past the handling of PARALLELs and CONCATs.
952 PR rtl-optimization/67828
953 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
954 (tree_may_unswitch_on): Don't unswitch on expressions
955 involving undefined values.
957 2015-10-09 Richard Biener <rguenther@suse.de>
959 * genmatch.c (print_operand): Fix formatting.
960 (dt_node::append_simplify): Warn for multiple simplifiers
961 that match the same pattern.
962 * match.pd (log (exp @0)): Remove duplicates.
964 2015-10-09 Richard Biener <rguenth@suse.de>
967 * gimple-fold.c (optabs-query.h): Include
968 (gimple_fold_builtin_memory_op): Allow unaligned stores
969 when movmisalign_optabs are available.
971 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
974 * config/arm/arm.md (movmisalign<mode>): New.
975 * config/arm/iterators.md (HSI): New.
977 2015-10-09 Richard Biener <rguenther@suse.de>
979 PR tree-optimization/67891
980 * gimple-match.h (gimple_simplified_result_is_gimple_val):
982 (gimple_resimplify1): Declare.
983 (gimple_resimplify2): Likewise.
984 (gimple_resimplify3): Likewise.
985 * gimple-match-head.c (gimple_resimplify1): Export.
986 (gimple_resimplify2): Likewise.
987 (gimple_resimplify3): Likewise.
988 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
989 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
990 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
991 to avoid creating stmts without VN info.
993 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
995 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
998 2015-10-08 Jeff Law <law@redhat.com>
1000 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1001 and release_ssa_name in two places.
1002 (gimple_stringop_fixed_value): Similarly.
1004 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1007 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1008 unlink_stmt_vdef and release_ssa_name_fn.
1010 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1013 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
1015 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1016 SSE register save area to 16 bytes only if the incoming stack
1017 boundary is no less than 16 bytes.
1019 2015-10-08 Jeff Law <law@redhat.com>
1021 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1022 release_ssa_name. Fix typo in comment.
1024 2015-10-08 Nathan Sidwell <nathan@acm.org>
1026 * config/nvptx/nvptx.h (struct machine_function): Add comment.
1027 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1028 may return pointer as well as in memory.
1029 (nvptx_output_return): Likewise.
1031 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1033 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1034 (fold_builtin_1): Update accordingly. Handle constant arguments here.
1035 * match.pd: Add rules previously handled by fold_builtin_sqrt
1036 and fold_builtin_cbrt.
1038 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
1040 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1041 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1042 * fold-const.h (tree_unary_nonnegative_warnv_p)
1043 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1044 (tree_expr_nonnegative_warnv_p): Add depth parameters.
1045 * fold-const.c: Include gimple-fold.h and params.h.
1046 (tree_ssa_name_nonnegative_warnv_p): New function.
1047 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1048 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1049 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1050 Add a depth parameter and increment it for recursive calls to
1051 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
1052 to handle SSA names.
1053 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1054 (gimple_stmt_nonnegative_warnv_p): Declare.
1055 * tree-vrp.c (remove_range_assertions): Remove assert that condition
1056 cannot be proven false.
1057 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1058 (gimple_stmt_nonnegative_warnv_p): Move to...
1059 * gimple-fold.c: ...here. Add depth parameters and pass them
1060 down to the tree routines. Accept statements that aren't
1061 assignments or calls but just return false for them.
1062 (gimple_val_nonnegative_real_p): Delete.
1063 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1064 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1065 Check HONOR_NANs first.
1067 2015-10-08 Martin Jambor <mjambor@suse.cz>
1069 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
1072 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1074 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1075 in the tail of outer-loop.
1077 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
1079 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1082 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
1084 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1085 "cfghooks.h", add prototypes for introduced new functions.
1086 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1087 checks on ability of loop unswitching to tree_unswitch_single_loop;
1088 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1089 on innermost loop check.
1090 (tree_unswitch_single_loop): Add all required checks on ability of
1091 loop unswitching under zero recursive level guard.
1092 (tree_unswitch_outer_loop): New function.
1093 (find_loop_guard): Likewise.
1094 (empty_bb_without_guard_p): Likewise.
1095 (used_outside_loop_p): Likewise.
1096 (get_vop_from_header): Likewise.
1097 (hoist_guard): Likewise.
1098 (check_exit_phi): Likewise.
1100 2015-10-08 Marek Polacek <polacek@redhat.com>
1102 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1105 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1108 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1109 create_tmp_var_raw instead of create_tmp_var.
1111 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
1113 * expr.c (store_expr_with_bounds): Handle aggregate moves from
1115 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1116 to define gimple type system; compare aggregates only by size.
1118 2015-10-07 Jeff Law <law@redhat.com>
1120 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1121 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1122 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
1125 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1126 Sebastian Pop <s.pop@samsung.com>
1128 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1129 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1130 (generate_isl_schedule): Same.
1131 * graphite-optimize-isl.c (scop_get_domains): Same.
1132 (apply_schedule_map_to_scop): Same.
1133 * graphite-poly.c (print_iteration_domains): Same.
1134 (remove_gbbs_in_scop): Same.
1138 * graphite-poly.h (struct scop): Rename bbs to pbbs.
1140 * graphite-scop-detection.c (compare_bb_depths): Remove.
1141 (graphite_sort_dominated_info): Remove.
1142 (try_generate_gimple_bb): Move out of scop_detection.
1143 (all_non_dominated_preds_marked_p): Remove.
1144 (build_scop_bbs_1): Remove.
1145 (build_scop_bbs): Remove.
1146 (nb_pbbs_in_loops): Do not use SCOP_BBS.
1147 (find_scop_parameters): Same.
1148 (sese_dom_walker): Rename gather_bbs.
1149 (before_dom_children): Call try_generate_gimple_bb and collect gbb
1151 (build_scops): Call gather_bbs.
1152 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1153 (add_conditions_to_constraints): Same.
1154 (build_scop_iteration_domain): Same.
1155 (build_scop_drs): Same.
1156 (new_pbb_from_pbb): Same.
1157 * sese.c (new_sese_info): Create bbs.
1158 * sese.h (struct sese_info_t): Add bbs.
1160 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
1162 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1163 encoding in 64-bit mode.
1165 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
1168 * config/i386/i386.c (ix86_option_override_internal): Always use
1169 8-byte minimum stack boundary in 64-bit mode.
1170 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1171 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1172 Add a REG_CFA_EXPRESSION note if needed.
1173 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1174 (ix86_handle_force_align_arg_pointer_attribute): New.
1175 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1176 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1177 with ix86_handle_force_align_arg_pointer_attribute.
1178 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1180 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1181 Sebastian Pop <s.pop@samsung.com>
1183 * graphite-scop-detection.c (parameter_index_in_region): Remove
1184 use of SESE_ADD_PARAMS.
1185 (find_scop_parameters): Same.
1186 * sese.c (new_sese_info): Same.
1187 * sese.h (struct sese_info_t): Remove add_params.
1188 (SESE_ADD_PARAMS): Remove.
1190 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
1191 Sebastian Pop <s.pop@samsung.com>
1193 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1196 (copy_internal_parameters): Same.
1197 (translate_isl_ast_to_gimple): Use an sese_l.
1198 (build_iv_mapping): Same.
1199 * graphite-poly.c (new_sese): Rename new_sese_info.
1200 (free_sese): Rename free_sese_info.
1201 * graphite-poly.h (struct scop): Use an sese_info_p.
1202 (scop_set_region): Same.
1203 * graphite-scop-detection.c (struct sese_l): Moved...
1204 (get_entry_bb): Moved...
1205 (get_exit_bb): Moved...
1206 (parameter_index_in_region_1): Use an sese_info_p.
1207 (parameter_index_in_region): Same.
1208 (scan_tree_for_params): Same.
1209 (find_params_in_bb): Same.
1210 (sese_dom_walker): Use an sese_l.
1211 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1212 (reduction_phi_p): Same.
1213 (parameter_index_in_region_1): Use an sese_info_p.
1214 (propagate_expr_outside_region): Use an sese_l.
1215 * graphite.c: Replace uses of SCOP_REGION.
1216 * sese.c (sese_record_loop): Use an sese_info_p.
1217 (build_sese_loop_nests): Same.
1218 (sese_build_liveouts_use): Same.
1219 (sese_build_liveouts_bb): Same.
1220 (sese_build_liveouts_bb): Same.
1221 (sese_bad_liveouts_use): Same.
1222 (sese_reset_debug_liveouts_bb): Same.
1223 (sese_build_liveouts): Same.
1224 (new_sese): Renamed new_sese_info.
1225 (free_sese): Renamed free_sese_info.
1226 (set_rename): Use an sese_info_p.
1227 (graphite_copy_stmts_from_block): Same.
1228 (copy_bb_and_scalar_dependences): Same.
1229 (outermost_loop_in_sese_1): Use an sese_l.
1230 (outermost_loop_in_sese): Same.
1231 (if_region_set_false_region): Use an sese_info_p.
1232 (move_sese_in_condition): Same.
1233 (scalar_evolution_in_region): Use an sese_l.
1234 * sese.h (struct sese_l): ... here.
1235 (SESE_ENTRY): Remove.
1236 (SESE_ENTRY_BB): Remove.
1237 (SESE_EXIT): Remove.
1238 (SESE_EXIT_BB): Remove.
1239 (sese_contains_loop): Use an sese_info_p.
1240 (sese_nb_params): Same.
1241 (bb_in_sese_p): Use an sese_l.
1242 (stmt_in_sese_p): Same.
1243 (defined_in_sese_p): Same.
1244 (loop_in_sese_p): Same.
1245 (sese_loop_depth): Same.
1246 (struct ifsese_s): Use an sese_info_p.
1247 (gbb_loop_at_index): Use an sese_l.
1248 (nb_common_loops): Same.
1249 (scev_analyzable_p): Same.
1251 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1253 * config/i386/i386.c (ix86_conditional_register_usage): Use
1254 CALL_USED_REGISTERS_MASK.
1255 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
1257 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1260 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
1261 * configure: Regenerated.
1263 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
1266 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
1267 (ix86_set_current_function): This.
1268 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
1270 2015-10-07 Richard Biener <rguenther@suse.de>
1272 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
1273 (vinfo_for_stmt): Adjust.
1274 (set_vinfo_for_stmt): Likewise.
1275 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
1276 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
1277 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
1279 (vect_analyze_loop_1): Remove.
1280 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
1281 inner loop when vectorizing an outer loop by splitting out from ...
1282 (vect_analyze_loop_form): ... here.
1284 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1287 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
1288 Use create_tmp_var_raw instead of create_tmp_var.
1290 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
1292 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
1293 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
1294 * real.c (CACHED_FRACTION): New helper macro.
1295 (dconst_third_ptr): Use it.
1296 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
1297 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
1299 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
1301 2015-10-06 Jeff Law <law@redhat.com>
1303 PR tree-optimization/67816
1304 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
1305 from remove_jump_threads_starting_at. Accept an edge rather than
1307 * tree-ssa-threadupdate.c (removed_edges): New hash table.
1308 (remove_jump_threads_including): Note edges that get removed from
1309 the CFG for later pruning of jump threading paths including them.
1310 (thread_through_all_blocks): Remove paths which include edges that
1312 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
1313 on each outgoing edges when optimizing away a control statement.
1315 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1317 * reorg.c (emit_delay_sequence): Store list of delay slot insns
1318 in a vector instead of rtx_insn_list.
1319 (add_to_delay_list): Likewise.
1320 (delete_from_delay_slot): Likewise.
1321 (optimize_skip): Likewise.
1322 (redirect_with_delay_list_safe_p): Likewise.
1323 (check_annul_list_true_false): Likewise.
1324 (steal_delay_list_from_target): Likewise.
1325 (steal_delay_list_from_fallthrough): Likewise.
1326 (redundant_insn): Likewise.
1327 (fill_simple_delay_slots): Likewise.
1328 (fill_slots_from_thread): Likewise.
1329 (fill_eager_delay_slots): Likewise.
1330 (relax_delay_slots): Likewise.
1332 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
1334 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
1335 For -mgpopt=local, also exclude unintialized common symbols.
1336 * doc/invoke.texi (Nios II Options): Document the change.
1338 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1340 * config/aarch64/iterators.md (vwcore): Add missing cases for
1343 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1344 Sebastian Pop <s.pop@samsung.com>
1346 * graphite-poly.c (new_scop): Initialize drs.
1347 * graphite-poly.h (struct dr_info): New.
1348 (struct scop): Add drs.
1349 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
1350 (pdr_add_memory_accesses): Same.
1351 (build_poly_dr): Same.
1352 (build_alias_set): Same.
1353 (build_scop_drs): Same.
1354 (build_pbb_drs): Remove.
1355 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
1356 * tree-data-ref.h (data_reference): Remove alias_set.
1358 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1359 Sebastian Pop <s.pop@samsung.com>
1361 * graphite-poly.c (free_data_refs_aux): Remove.
1362 (free_gimple_poly_bb): Do not call free_data_refs_aux.
1363 * graphite-poly.h (struct base_alias_pair): Remove.
1364 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
1365 base_alias_pair and dr->aux.
1366 (build_alias_set): Same.
1367 * tree-data-ref.c (create_data_ref): Initialize alias_set.
1368 * tree-data-ref.h (data_reference): Add alias_set.
1370 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
1371 Sebastian Pop <s.pop@samsung.com>
1373 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
1374 Do not set PDR_BASE_OBJECT_SET.
1375 * graphite-poly.h (poly_dr): Same.
1376 (PDR_BASE_OBJECT_SET): Remove.
1377 (new_poly_dr): Update decl.
1378 * graphite-sese-to-poly.c (build_poly_dr): Update call to
1380 (write_alias_graph_to_ascii_dimacs): Remove.
1381 (write_alias_graph_to_ascii_dot): Remove.
1382 (write_alias_graph_to_ascii_ecc): Remove.
1383 (dr_same_base_object_p): Remove.
1384 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
1386 (build_base_obj_set_for_drs): Remove.
1387 (dump_alias_graphs): Remove.
1388 (build_scop_drs): Remove dead code.
1390 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1391 Peter Bergner <bergner@vnet.ibm.com>
1394 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
1395 allow registers, but provide insns for the combiner to create for
1396 loads from memory. Separate VSX code from non-VSX code. For
1397 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
1398 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
1399 so that registers come before memory operations. Drop support from
1400 converting DFmode to TFmode, if the DFmode value is in a GPR
1402 (extenddftf2_fprs): Likewise.
1403 (extenddftf2_internal): Likewise.
1404 (extenddftf2_vsx): Likewise.
1405 (extendsftf2): In the expander, only allow registers, but provide
1406 insns for the combiner to create for stores and loads.
1408 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1410 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
1411 from the decl parameter.
1413 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
1416 * gimple-fold.c (gimple_fold_builtin): Add break after
1417 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
1419 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
1421 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
1422 to scop->isl_context.
1424 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
1426 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
1427 (output_probe_stack_range): Rotate the loop and simplify.
1428 (thumb1_expand_prologue): Tweak sorry message.
1429 * config/arm/arm.md (probe_stack): Use bare string.
1431 2015-10-06 Nick Clifton <nickc@redhat.com>
1433 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
1435 2015-10-06 Nick Clifton <nickc@redhat.com>
1437 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
1438 (ATTR_PERSIST): New constant.
1439 (msp430_data_attr): New function - verifies an attribute that only
1440 applies to variables.
1441 (msp430_attributes): Add noinit and persistent attributes.
1442 (noinit_section): New variable.
1443 (presis_section): New variable.
1444 (TARGET_ASM_INIT_SECTIONS): Define.
1445 (msp430_init_sections): New function - initialises the noinit and
1446 persist section variables.
1447 (msp430_select_section): Add support for noinit and persist
1449 (msp430_section_type_flags): Likewise.
1450 * doc/extend.texi: Document the reent, critical, wakeup, noinit
1451 and persistent attributes.
1453 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1454 Sebastian Pop <s.pop@samsung.com>
1456 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
1457 (no_violations): Remove.
1458 (subtract_commutative_associative_deps): Remove.
1459 (compute_deps): Do not call subtract_commutative_associative_deps.
1460 (transform_is_safe): Remove.
1461 (graphite_legal_transform): Remove.
1462 * graphite-poly.h (graphite_legal_transform): Remove.
1464 2015-10-05 Aditya Kumar <hiraditya@msn.com>
1466 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
1467 which are in this region are passed so gcc_assert and remove redundant
1469 * sese.c (sese_build_liveouts): Pass only those bbs which are not
1471 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
1472 gcc_assert on that and remove unnecessary computation.
1473 (sese_build_liveouts_use): Same.
1475 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1477 * graphite-dependences.c (scop_get_reads): Renamed scop->context
1478 to scop->param_context.
1479 (scop_get_must_writes): Same.
1480 (scop_get_may_writes): Same.
1481 (scop_get_original_schedule): Same.
1482 (scop_get_transformed_schedule): Same.
1483 (subtract_commutative_associative_deps): Same.
1484 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
1485 (generate_isl_context): Same.
1486 (generate_isl_schedule): Same.
1487 (scop_to_isl_ast): Same.
1488 (graphite_regenerate_ast_isl): Same.
1489 * graphite-optimize-isl.c (scop_get_domains): Same.
1490 (optimize_isl): Renamed scop->context to scop->param_context.
1491 * graphite-poly.c (new_poly_bb): Change the type of argument to
1493 (new_scop): Renamed scop->context to scop->param_context.
1495 (print_scop_context): Same.
1496 * graphite-poly.h (new_poly_dr): Change the type of argument from
1497 void* to data_reference_p.
1498 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
1499 (new_poly_bb): Change the type of argument from void* to
1501 (pbb_set_black_box): Same.
1502 (struct scop): Rename context to param_context, ctx to isl_context.
1503 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
1504 Move declarations closer to assignment.
1505 (find_params_in_bb): Same.
1506 (find_scop_parameters): Same.
1507 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
1508 Global to be used for statement IDs.
1509 (isl_id_for_pbb): Use ssa_name_version_typesize.
1510 (simple_copy_phi_p): Move declarations closer to assignment.
1511 (build_pbb_scattering_polyhedrons): Same.
1512 (build_scop_scattering): Same.
1513 (isl_id_for_ssa_name): Same.
1514 (extract_affine_name): Same.
1515 (extract_affine_int): Same.
1516 (extract_affine): Same.
1517 (set_scop_parameter_dim): Use renamed member.
1518 (build_loop_iteration_domains): Same.
1519 (add_param_constraints): Same.
1520 (build_scop_iteration_domain): Same.
1521 (pdr_add_data_dimensions): Same.
1522 (build_poly_dr): Same.
1523 (build_scop_drs): Move declarations closer to assignment.
1524 (analyze_drs_in_stmts): Same.
1525 (insert_out_of_ssa_copy): Same.
1526 (insert_out_of_ssa_copy_on_edge): Same.
1527 (propagate_expr_outside_region): Same.
1528 (rewrite_phi_out_of_ssa): Same.
1529 (rewrite_degenerate_phi): Same.
1530 (rewrite_reductions_out_of_ssa): Same.
1531 (rewrite_cross_bb_scalar_dependence): Same.
1532 (handle_scalar_deps_crossing_scop_limits): Same.
1533 (rewrite_cross_bb_scalar_deps): Same.
1534 * graphite.c (graphite_transform_loops): Use renamed member.
1536 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
1539 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
1540 create_tmp_var_raw instead of create_tmp_var.
1542 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1545 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
1546 Use create_tmp_var_raw instead of create_tmp_var.
1548 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
1551 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
1552 split for upper-bank registers when target does not support
1554 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
1555 split when target does not support AVX512VL.
1557 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
1560 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
1561 Adjust to use create_tmp_var_raw instead of create_tmp_var.
1563 2015-10-06 Nick Clifton <nickc@redhat.com>
1565 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
1568 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1570 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
1571 (case ${target}): Add znver1.
1572 * config/i386/cpuid.h(bit_CLZERO): Define.
1573 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1574 -march=native recognize znver1 processors.
1575 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1576 znver1, clzero def_and_undef.
1577 * config/i386/i386.c (struct processor_costs znver1_cost): New.
1578 (m_znver1): New definition.
1579 (m_AMD_MULTIPLE): Includes m_znver1.
1580 (processor_target_table): Add znver1 entry.
1581 (ix86_target_string) : Add clzero entry.
1582 (static const char *const cpu_names): Add znver1 entry.
1583 (ix86_option_override_internal): Add znver1 instruction sets.
1584 (PTA_CLZERO) : New definition.
1585 (ix86_option_override_internal): Handle new clzerooption.
1586 (ix86_issue_rate): Add znver1.
1587 (ix86_adjust_cost): Add znver1.
1588 (ia32_multipass_dfa_lookahead): Add znver1.
1589 (has_dispatch): Add znver1.
1590 * config/i386/i386.h (TARGET_znver1): New definition.
1591 (TARGET_CLZERO): Define.
1592 (TARGET_CLZERO_P): Define.
1593 (struct ix86_size_cost): Add TARGET_ZNVER1.
1594 (enum processor_type): Add PROCESSOR_znver1.
1595 * config/i386/i386.md (define_attr "cpu"): Add znver1.
1596 (set_attr znver1_decode): New definitions for znver1.
1597 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
1599 * config/i386/mmx.md (set_attr znver1_decode): New definitions
1601 * config/i386/sse.md (set_attr znver1_decode): Likewise.
1602 * config/i386/x86-tune.def: Add znver1 tunings.
1603 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
1604 * gcc/doc/invoke.texi: Add details about znver1
1606 2015-10-06 Richard Biener <rguenther@suse.de>
1608 PR tree-optimization/67859
1609 * tree-ssa-pre.c (create_expression_by_pieces): Properly
1610 discard not inserted stmts.
1612 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
1614 * doc/extend.texi (Template Instantiation): Reorder options and
1615 de-emphasize -frepo.
1616 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
1617 example instead of -frepo.
1619 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
1622 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
1623 use create_tmp_var_raw rather than create_tmp_var.
1625 2015-10-06 Richard Biener <rguenther@suse.de>
1627 * tree-vectorizer.h (vec_info): New base class for...
1628 (_loop_vec_info): ... this and ...
1629 (_bb_vec_info): ... this.
1630 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
1631 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1632 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1633 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
1634 vect_destroy_datarefs): Adjust interface to take a vec_info *
1635 rather than both a loop_vec_info and a bb_vec_info argument.
1636 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
1637 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
1638 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
1639 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
1641 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
1642 (destroy_loop_vec_info, vect_analyze_loop_2,
1643 vect_is_simple_reduction_1, get_initial_def_for_induction,
1644 vect_create_epilog_for_reduction, vectorizable_reduction,
1645 vectorizable_live_operation, vect_transform_loop): Adjust.
1646 * tree-vect-patterns.c (type_conversion_p,
1647 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
1648 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
1649 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
1650 check_bool_pattern, vect_recog_bool_pattern,
1651 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
1652 * tree-vect-slp.c (vect_get_and_check_slp_defs,
1653 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
1654 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
1655 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
1656 (new_bb_vec_info): Initialize base classs.
1657 * tree-vect-stmts.c (record_stmt_cost, process_use,
1658 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
1659 vectorizable_mask_load_store, vectorizable_call,
1660 vectorizable_simd_clone_call, vectorizable_conversion,
1661 vectorizable_assignment, vectorizable_shift,
1662 vectorizable_operation, vectorizable_store,
1663 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
1664 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
1665 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
1667 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1670 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
1671 create_tmp_var_raw rather than create_tmp_var.
1673 2015-10-05 Marek Polacek <polacek@redhat.com>
1675 * tree-ssa-loop-im.c
1676 (move_computations_dom_walker::before_dom_children): Don't set
1677 SSA_NAME_ANTI_RANGE_P.
1678 * tree-ssa-phiopt.c (value_replacement): Likewise.
1680 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1681 Sebastian Pop <s.pop@samsung.com>
1683 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
1685 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1686 Sebastian Pop <s.pop@samsung.com>
1688 * graphite-poly.c (new_gimple_poly_bb): ... here.
1689 (free_data_refs_aux): ... here.
1690 (free_gimple_poly_bb): ... here.
1691 (remove_gbbs_in_scop): ... here.
1692 (new_scop): Call new_sese.
1693 (free_scop): Call remove_gbbs_in_scop and free_sese.
1694 * graphite-poly.h (base_alias_pair): ... here.
1695 (new_gimple_poly_bb): Declare.
1696 (free_gimple_poly_bb): Declare.
1697 * graphite-scop-detection.c (parameter_index_in_region_1):
1698 (parameter_index_in_region): ... here.
1699 (scan_tree_for_params): ... here.
1700 (find_params_in_bb): ... here.
1701 (find_scop_parameters): ... here.
1702 (build_scops): Call find_scop_parameters.
1703 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
1704 (free_scops): Move...
1705 (single_pred_cond_non_loop_exit): Move...
1706 (sese_dom_walker::before_dom_children): Move...
1707 (sese_dom_walker::after_dom_children): Move...
1708 (build_poly_scop): Move...
1709 * graphite-sese-to-poly.h (base_alias_pair): Move...
1710 * graphite.c (free_scops): ... here.
1712 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
1713 Sebastian Pop <s.pop@samsung.com>
1715 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
1716 (trivially_empty_bb_p): Move...
1717 (same_close_phi_node): Move...
1718 (new_gimple_poly_bb): Move...
1719 (compare_bb_depths): Move...
1720 (graphite_sort_dominated_info): Move...
1721 (remove_duplicate_close_phi): Move...
1722 (make_close_phi_nodes_unique): Move...
1723 (canonicalize_loop_closed_ssa): Move...
1724 (canonicalize_loop_closed_ssa_form): Move...
1725 (loop_ivs_can_be_represented): Move...
1726 (single_pred_cond_non_loop_exit): Move...
1727 (graphite_can_represent_init): Move...
1728 (graphite_can_represent_scev): Move...
1729 (stmt_has_simple_data_refs_p): Move...
1730 (stmt_has_side_effects): Move...
1731 (graphite_can_represent_stmt): Move...
1732 (scop_detection): ... here.
1733 (sese_dom_walker): ... and here.
1734 (build_scops): Call all moved functions.
1735 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
1736 (all_non_dominated_preds_marked_p): Move...
1737 (build_scop_bbs_1): Move...
1738 (build_scop_bbs): Move...
1739 (set_scop_parameter_dim): Move...
1740 (nb_pbbs_in_loops): Move...
1741 (build_poly_scop): Do not call all the moved functions.
1743 2015-10-05 Martin Jambor <mjambor@suse.cz>
1744 Jan Hubicka <hubicka@ucw.cz>
1746 * ipa-cp.c (ipcp_alignment_lattice): New type.
1747 (ipcp_param_lattices): Use the above to represent alignment.
1748 (ipcp_alignment_lattice::print): New function.
1749 (print_all_lattices): Use it to print alignment information.
1750 (ipcp_alignment_lattice::top_p): New function.
1751 (ipcp_alignment_lattice::bottom_p): Likewise.
1752 (ipcp_alignment_lattice::set_to_bottom): Likewise.
1753 (ipcp_alignment_lattice::meet_with_1): Likewise.
1754 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
1755 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
1756 (initialize_node_lattices): Likewise.
1757 (propagate_alignment_accross_jump_function): Work with the new class
1758 for alignment lattices.
1759 (propagate_constants_accross_call): Pass only the alignment lattice to
1760 propagate_alignment_accross_jump_function.
1761 (ipcp_store_alignment_results): Work with the new class for alignment
1764 2015-10-05 Marek Polacek <polacek@redhat.com>
1766 PR tree-optimization/67821
1767 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
1769 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
1772 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
1774 (mkoffload_cleanup): ... this. Adjust all users.
1775 (maybe_unlink): Look at save_temps and verbose flags instead of
1777 (main): Parse "-save-temps" flag.
1778 (generate_target_descr_file, generate_target_offloadend_file)
1779 (generate_host_descr_file, prepare_target_image): Pass it on.
1780 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
1781 (mkoffload_cleanup): New function.
1782 (maybe_unlink): Look at save_temps and verbose flags instead of
1784 (main): Instead of calling utils_cleanup, register atexit handler
1785 for mkoffload_cleanup.
1786 (main): Parse "-save-temps" flag.
1787 (compile_native, main): Pass it on.
1788 * lto-wrapper.c (compile_offload_image): Likewise.
1790 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1792 * gimple.h (gimple_op_ptr): Require a non const gimple *.
1793 (gimple_assign_lhs_ptr): Likewise.
1794 (gimple_assign_rhs1_ptr): Likewise.
1795 (gimple_assign_rhs2_ptr): Likewise.
1796 (gimple_assign_rhs3_ptr): Likewise.
1797 (gimple_call_lhs_ptr): Likewise.
1798 (gimple_call_fn_ptr): Likewise.
1799 (gimple_call_chain_ptr): Likewise.
1800 (gimple_call_arg_ptr): Likewise.
1801 (gimple_cond_lhs_ptr): Likewise.
1802 (gimple_cond_rhs_ptr): Likewise.
1803 (gimple_switch_index_ptr): Likewise.
1804 (gimple_return_retval_ptr): Likewise.
1806 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1808 * gimple.h (gimple_asm_input_op_ptr): Remove.
1809 (gimple_asm_output_op_ptr): Likewise.
1811 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1813 * gimple.h (gimple_location_ptr): Remove.
1814 * tree-vrp.c (check_all_array_refs): Adjust.
1816 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1818 * tree-ssa-operands.c (build_uses): store tree * instead of
1820 (finalize_ssa_uses): Adjust.
1821 (append_use): Likewise.
1822 (verify_ssa_operands): Likewise.
1824 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1826 * real.h (build_real_truncate): Declare.
1827 * tree.c (build_real_truncate): New function.
1828 (strip_float_extensions): Use it.
1829 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
1830 (fold_builtin_hypot, fold_builtin_pow): Likewise.
1831 * match.pd: Likewise.
1833 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
1834 Jiong Wang <jiong.wang@arm.com>
1836 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
1838 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1840 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
1841 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
1842 (aarch64_print_operand, aarch64_float_const_representable_p)
1843 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
1844 instead of REAL_VALUE_FROM_CONST_DOUBLE.
1845 * config/arc/arc.c (arc_print_operand): Likewise.
1846 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
1847 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
1848 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
1850 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
1851 (consttable_16): Likewise.
1852 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
1853 * config/avr/avr.c (avr_print_operand): Likewise.
1854 * config/bfin/bfin.md: Likewise (in a define_split).
1855 * config/c6x/c6x.md: Likewise (in a define_split).
1856 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
1857 (cr16_print_operand): Likewise.
1858 * config/cris/cris.c (cris_print_operand): Likewise.
1859 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
1860 * config/fr30/fr30.c (fr30_print_operand): Likewise.
1861 (fr30_const_double_is_zero): Likewise.
1862 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
1863 * config/frv/frv.md: Likewise (in a define_split).
1864 * config/frv/predicates.md (int_2word_operand): Likewise.
1865 * config/h8300/h8300.c (h8300_print_operand): Likewise.
1866 * config/i386/i386.c (standard_80387_constant_p): Likewise.
1867 (ix86_print_operand, ix86_split_to_parts): Likewise.
1868 * config/i386/i386.md: Likewise (in a define_split).
1869 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
1870 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
1871 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
1872 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
1873 (print_operand): Likewise.
1874 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
1875 * config/mep/mep.md: Likewise (in define_split).
1876 * config/microblaze/microblaze.c (microblaze_const_double_ok)
1877 (print_operand): Likewise.
1878 * config/mips/mips.md (consttable_float): Likewise.
1879 * config/mmix/mmix.c (mmix_intval): Likewise.
1880 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
1881 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
1882 * config/pa/pa.c (pa_singlemove_string): Likewise.
1883 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
1884 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
1885 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
1886 (output_toc): Likewise.
1887 * config/rs6000/rs6000.md: Likewise (in define_splits).
1888 * config/rx/rx.c (rx_print_operand): Likewise.
1889 * config/s390/s390.c (s390_output_pool_entry): Likewise.
1890 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
1891 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
1892 (and also in define_splits).
1893 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
1894 (fp_high_losum_p): Likewise.
1895 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
1896 (*movsf_high): Likewise.
1897 * config/spu/spu.c (const_double_to_hwint): Likewise.
1898 * config/v850/v850.c (const_double_split): Likewise.
1899 * config/vax/vax.c (vax_float_literal): Likewise.
1900 * config/visium/visium.c (visium_expand_copysign): Likewise.
1901 * config/visium/visium.md: Likewise (in define_split).
1902 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
1903 * config/xtensa/xtensa.c (print_operand): Likewise.
1904 (xtensa_output_literal): Likewise.
1905 * cprop.c (implicit_set_cond_p): Likewise.
1906 * dwarf2out.c (insert_float): Likewise.
1907 * expmed.c (expand_mult, make_tree): Likewise.
1908 * expr.c (compress_float_constant): Likewise.
1909 * rtlanal.c (split_double): Likewise.
1910 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1911 (simplify_const_unary_operation, simplify_binary_operation_1)
1912 (simplify_const_binary_operation): Likewise.
1913 (simplify_const_relational_operation): Likewise.
1914 * varasm.c (output_constant_pool_2): Likewise.
1916 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1918 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
1919 instead of CONST_DOUBLE_FROM_REAL_VALUE.
1920 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
1921 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
1922 instead of CONST_DOUBLE_FROM_REAL_VALUE.
1923 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
1924 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
1925 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
1926 (ix86_emit_swsqrtsf): Likewise.
1927 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
1928 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1929 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1930 * config/pa/pa.c (pa_expand_builtin): Likewise.
1931 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
1932 (rs6000_scale_v2df): Likewise.
1933 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
1934 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
1935 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
1936 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
1937 (vec_ctul): Likewise.
1938 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
1939 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
1940 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
1941 * cse.c (fold_rtx): Likewise.
1942 * emit-rtl.c (immed_double_const): Likewise (in comments).
1943 (init_emit_once): Likewise.
1944 * expr.c (compress_float_constant, expand_expr_real_1)
1945 (const_vector_from_tree): Likewise.
1946 * optabs.c (expand_float, expand_fix): Likewise.
1947 * reg-stack.c (reg_to_stack): Likewise.
1948 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1949 (simplify_const_unary_operation, simplify_binary_operation_1)
1950 (simplify_const_binary_operation, simplify_relational_operation)
1951 (simplify_immed_subreg): Likewise.
1953 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1955 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
1956 * doc/tm.texi: Regenerate.
1957 * real.h (REAL_ARITHMETIC): Delete.
1958 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
1959 (ix86_expand_round_sse4): Use real_arithmetic instead of
1961 * config/i386/sse.md (round<mode>2): Likewise.
1962 * rtl.h (rtx_to_tree_code): Likewise (in comment).
1963 * explow.c (rtx_to_tree_code): Likewise (in comment).
1964 * match.pd: Likewise.
1965 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1966 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
1967 (expand_pow_as_sqrts): Likewise.
1968 * tree-pretty-print.c (dump_generic_node): Remove code that
1969 was conditional on REAL_ARITHMETIC being undefined.
1971 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1973 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
1974 * doc/tm.texi: Regenerate.
1975 * real.h (real_less): Declare.
1976 (REAL_VALUES_LESS): Delete.
1977 * real.c (real_less): New function.
1978 (real_compare): Use it.
1979 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
1980 of REAL_VALUES_LESS.
1981 * config/microblaze/microblaze.c (microblaze_const_double_ok):
1983 * fold-const.c (fold_convert_const_int_from_real): Likewise.
1984 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1985 (simplify_const_relational_operation): Likewise.
1986 * tree-call-cdce.c (check_pow): Likewise.
1987 (gen_conditions_for_pow_cst_base): Likewise.
1989 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1991 * real.h (REAL_VALUES_IDENTICAL): Delete.
1992 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
1993 instead of REAL_VALUES_IDENTICAL.
1994 * fold-const.c (operand_equal_p): Likewise.
1995 * ipa-icf.c (sem_variable::equals): Likewise.
1996 * tree-complex.c (some_nonzerop): Likewise.
1997 (expand_complex_multiplication): Likewise.
1998 * tree.c (simple_cst_equal): Likewise.
1999 * varasm.c (compare_constant): Likewise.
2001 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2003 * real.h (real_equal): Declare.
2004 (REAL_VALUES_EQUAL): Delete.
2005 * real.c (real_equal): New function.
2006 (real_compare): Use it.
2007 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2008 * doc/tm.texi: Regenerate.
2009 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2010 real_equal instead of REAL_VALUES_EQUAL.
2011 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2012 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2013 (fp_const_from_val): Likewise.
2014 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2015 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2016 (floating_exact_log2): Likewise.
2017 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2018 * config/vax/vax.c (vax_float_literal): Likewise.
2019 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2020 * cprop.c (implicit_set_cond_p): Likewise.
2021 * expmed.c (expand_mult): Likewise.
2022 * fold-const.c (const_binop): Likewise.
2023 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2024 (simplify_const_binary_operation): Likewise.
2025 (simplify_const_relational_operation): Likewise.
2026 * tree-call-cdce.c (check_pow): Likewise.
2027 (gen_conditions_for_pow_cst_base): Likewise.
2028 * tree-inline.c (estimate_num_insns): Likewise.
2029 * tree-ssa-dom.c (record_equality): Likewise.
2030 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2031 (gimple_expand_builtin_pow): Likewise.
2032 (pass_optimize_widening_mul::execute): Likewise.
2033 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2034 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2035 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2037 2015-10-05 Richard Biener <rguenther@suse.de>
2040 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2041 consider loop header PHI defs as IVs.
2043 2015-10-05 Richard Biener <rguenther@suse.de>
2045 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2047 (create_expression_by_pieces): ... here and build GIMPLE
2048 calls directly. Use gimple_build API and avoid force_gimple_operand.
2049 (insert_into_preds_of_block): Simplify.
2050 (do_regular_insertion): Add comment.
2052 2015-10-04 Jason Merrill <jason@redhat.com>
2054 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2056 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
2058 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2059 check for general register.
2060 (ix86_emit_save_regs): Ditto.
2061 (ix86_emit_save_regs_using_mov): Ditto.
2062 (ix86_emit_restore_regs_using_pop): Ditto.
2063 (ix86_emit_restore_regs_using_mov): Ditto.
2065 2015-10-03 Marek Polacek <polacek@redhat.com>
2067 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2068 (insn-dfatab.o): Likewise.
2070 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
2072 * config.gcc (xtensa*-*-uclinux*): New configuration.
2073 * config/xtensa/uclinux.h: New file.
2074 * config/xtensa/uclinux.opt: New file.
2076 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
2078 * doc/cpp.texi (Standard Predefined Macros): Document value of
2079 __cplusplus for C++14.
2081 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
2083 * gcc.c (process_command): Use spec_machine rather than
2084 spec_host_machine to build tooldir_prefix2.
2086 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2087 Bernd Schmidt <bernds@codesourcery.com>
2089 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2090 (Token, Stmt): Remove structs.
2091 (decls, vars, fns): Remove variables.
2092 (alloc_comment, append_stmt, is_keyword): Remove macros.
2093 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2094 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2095 (parse_init, parse_file): Remove functions.
2096 (read_file): Accept a pointer to a length and store into it.
2097 (process): Don't try to parse the input file, just write it out as
2098 a string, but looking for maps. Also write out the length.
2099 (main): Don't use "-S" to compile PTX code.
2101 2015-10-02 Jeff Law <law@redhat.com>
2103 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2106 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2109 * config/nvptx/mkoffload.c (main): Scan the argument vector for
2110 -fopenmp, and skip generating an offloading image if specified.
2112 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
2114 * system.h (ROUND_UP): New macro definition.
2115 (ROUND_DOWN): Ditto.
2116 * ggc-page.c (ROUND_UP): Remove local macro definition.
2117 (PAGE_ALIGN): Implement using ROUND_UP macro.
2119 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2120 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2122 (ix86_compute_frame_layout): Ditto.
2123 (ix86_expand_prologue): Ditto.
2124 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2125 to round down values.
2126 (expand_set_or_movmem_via_rep): Ditto.
2128 2015-10-02 Marek Polacek <polacek@redhat.com>
2130 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2132 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
2134 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2135 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2136 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2137 (free_gimple_bb): Renamed free_gimple_poly_bb.
2138 (try_generate_gimple_bb): Hoist loop invariant code.
2139 (analyze_drs_in_stmts): Same.
2140 (build_scop_drs): Call renamed functions.
2141 (new_pbb_from_pbb): Same.
2142 (scop_ivs_can_be_represented): Delete as functionality now moved to
2143 graphite-scop-detection.c
2144 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2146 2015-10-02 Aditya Kumar <hiraditya@msn.com>
2148 * graphite-scop-detection.c (stmt_has_side_effects): New function
2149 outlined from stmt_simple_for_scop_p.
2150 (graphite_can_represent_stmt): Same.
2151 (stmt_simple_for_scop_p): Moved code out of this function for better
2154 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2156 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2158 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2160 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2162 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2164 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
2166 PR rtl-optimization/67756
2167 * lra-constraints.c (match_reload): Add a new parameter. Use it
2168 for creating a pseudo with the same value.
2169 (curr_insn_transform): Pass a new argument to match_reload.
2171 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2173 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2174 (expand_vec_perm_even_odd_1): Handle V64QImode.
2175 (ix86_expand_vec_perm_const_1): Try expansion with
2176 expand_vec_perm_even_odd_trunc as well.
2177 * config/i386/sse.md (VI124_AVX512F): Rename to ...
2178 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2180 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2181 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2183 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2184 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2185 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2186 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2187 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2188 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2190 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
2192 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2193 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2195 2015-10-02 Jason Merrill <jason@redhat.com>
2198 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2199 (diagnose_tm_1_op): Also diagnose volatile accesses in
2200 transaction_safe function.
2202 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
2204 * system.h (malloc.h): Don't include obsolete header.
2206 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2208 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2209 (TLS_SECTION_ASM_FLAG): Delete.
2211 2015-10-02 Marek Polacek <polacek@redhat.com>
2214 * doc/invoke.texi: Document -Wduplicated-cond.
2215 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2216 (insn-dfatab.o): Likewise.
2217 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2220 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
2222 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2225 2015-10-02 Renlin Li <renlin.li@arm.com>
2227 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
2229 2015-10-02 Renlin Li <renlin.li@arm.com>
2232 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
2234 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2236 PR rtl-optimization/67786
2237 PR rtl-optimization/67787
2238 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
2239 it modifies a reg used in the condition calculation.
2241 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
2243 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
2244 alternatives for reads from memory and moves from general-purpose
2246 (*aarch64_combinez_be<mode>): Likewise.
2248 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
2251 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
2252 selectany within this function without need to keep attribute.
2253 (i386_pe_encode_section_info): Remove selectany-code.
2255 2015-10-02 Richard Biener <rguenther@suse.de>
2257 * tree-ssa-sccvn.c (has_VN_INFO): New function.
2258 (free_scc_vn): Use it.
2259 (visit_use): Remove dead code and refactor to use gassign
2260 and use less indentation.
2262 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2266 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
2267 (rs6000_cannot_copy_insn_p): New function.
2268 * config/rs6000/rs6000.md (cannot_copy): New attribute.
2269 (load_toc_v4_PIC_1_normal): Set cannot_copy.
2270 (load_toc_v4_PIC_1_476): Ditto.
2272 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2274 * graphite-scop-detection.c (struct sese_l): New conversion constructor
2275 so that this type can be pushed into a vec.
2276 (class scop_builder): use sese_l to collect scops.
2277 (get_scops): New getter function.
2278 (remove_intersecting_scops): Use sese_l instead of scops_p.
2282 (remove_subscops): Same.
2283 (build_scops): Add scops to vec<scops_p> once all the scops have been
2286 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
2288 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2289 Renamed type from gimple_bb_p to gimple_poly_bb_p.
2290 (translate_isl_ast_node_user): Same.
2291 * graphite-poly.c (new_poly_bb): Same.
2292 * graphite-poly.h (gbb_from_bb): Same.
2294 * graphite-sese-to-poly.c (new_gimple_bb):
2295 gimple_bb_p -> gimple_poly_bb_p
2296 (build_scop_scattering): Same.
2297 (find_params_in_bb): Same.
2298 (add_conditions_to_domain): Same.
2299 (sese_dom_walker::before_dom_children): Same.
2300 (analyze_drs_in_stmts): Same.
2301 (new_pbb_from_pbb): Same.
2302 (free_data_refs_aux): New pointer to type base_alias_pair.
2303 * graphite-sese-to-poly.h: Same.
2304 * sese.c (if_region_set_false_region): Fixed Indentation.
2305 (move_sese_in_condition): Same.
2307 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2308 Aditya Kumar <aditya.k7@samsung.com>
2310 PR tree-optimization/66980
2311 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
2312 when data reference analysis has failed.
2314 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2315 Aditya Kumar <aditya.k7@samsung.com>
2317 PR tree-optimization/67754
2318 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
2319 scev analysis on the same loop nest as analyze_drs_in_stmts.
2320 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
2322 (try_generate_gimple_bb): Call outermost_loop_in_sese.
2323 (analyze_drs_in_stmts): Same.
2324 * sese.c (outermost_loop_in_sese): ...here.
2326 2015-10-01 Sebastian Pop <s.pop@samsung.com>
2327 Aditya Kumar <aditya.k7@samsung.com>
2329 PR tree-optimization/67754
2330 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
2331 recursion on the inner loops.
2333 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2335 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
2336 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
2337 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
2338 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
2339 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
2341 2015-10-01 Marek Polacek <polacek@redhat.com>
2344 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
2345 create_tmp_var_raw rather than create_tmp_var.
2347 2015-10-01 Marek Polacek <polacek@redhat.com>
2349 PR tree-optimization/67769
2350 * tree-ssa-phiopt.c (conditional_replacement): Call
2351 reset_flow_sensitive_info_in_bb.
2352 (minmax_replacement): Likewise.
2353 (abs_replacement): Likewise.
2355 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
2357 * builtins.c: Don't include gomp-constants.h.
2358 (fold_builtin_1): Don't fold acc_on_device here.
2359 * gimple-fold.c: Include gomp-constants.h.
2360 (gimple_fold_builtin_acc_on_device): New.
2361 (gimple_fold_builtin): Call it.
2363 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
2365 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
2366 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
2368 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
2370 * config/arm/aarch-common-protos.h
2371 (aarch_accumulator_forwarding): New.
2372 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2373 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
2374 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
2375 * config/arm/cortex-a53.md: Rewrite.
2377 2015-10-01 Richard Biener <rguenther@suse.de>
2379 * gimple-match.h (mprts_hook): Declare.
2380 * gimple-match.head.c (mprts_hook): Define.
2381 (maybe_push_res_to_seq): Use new hook.
2382 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2383 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
2384 (vn_ssa_aux::has_constants): Remove.
2385 * tree-ssa-sccvn.c: Include gimple-match.h.
2386 (VN_INFO_GET): Assert we don't re-use SSA names.
2387 (vn_get_expr_for): Remove.
2388 (expr_has_constants): Likewise.
2389 (stmt_has_constants): Likewise.
2390 (simplify_binary_expression): Likewise.
2391 (simplify_unary_expression): Likewise.
2392 (vn_lookup_simplify_result): New hook.
2393 (visit_copy): Adjust.
2394 (visit_reference_op_call): Likewise.
2395 (visit_phi): Likewise.
2396 (visit_use): Likewise.
2397 (process_scc): Likewise.
2398 (init_scc_vn): Likewise.
2399 (visit_reference_op_load): Likewise. Use match-and-simplify and
2400 a gimple seq for inserted expressions.
2401 (try_to_simplify): Remove GENERIC stmt combining code.
2402 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
2403 * tree-ssa-pre.c (eliminate_insert): Adjust.
2404 (eliminate_dom_walker::before_dom_children): Likewise.
2406 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2408 * doc/invoke.texi (Optimization Options): Add
2409 -freorder-blocks-algorithm=.
2410 (Optimize Options) <-O>: Add -freorder-blocks.
2411 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
2412 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
2413 <-freorder-blocks>: Also enabled at levels -O and -Os.
2414 <-freorder-blocks-algorithm=>: Document new option.
2416 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2418 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
2419 with flag_reorder_blocks_algorithm.
2420 * common.opt (freorder-blocks-algorithm=): New flag.
2421 (reorder_blocks_algorithm): New enum.
2422 * flag-types.h (reorder_blocks_algorithm): New enum.
2423 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
2424 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
2426 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2428 * bb-reorder.c: Add intro comment.
2429 (reorder_basic_blocks_software_trace_cache): Print a header to
2431 (edge_order): New function.
2432 (reorder_basic_blocks_simple): New function.
2433 (reorder_basic_blocks): Choose between the STC and the simple
2434 algorithms (always choose the former).
2436 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2438 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
2439 function, factored out from ...
2440 (reorder_basic_blocks): ... here.
2442 2015-10-01 Tom de Vries <tom@codesourcery.com>
2444 * tree-cfg.c (dump_function_to_file): Dump function attributes using
2445 __attribute__(()) string. Move dumping of function attributes to before
2448 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
2451 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2452 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
2453 based on gold linker version.
2454 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
2455 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
2456 * configure, config.in: Regenerate.
2458 2015-10-01 Alan Modra <amodra@gmail.com>
2460 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
2461 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
2462 (rs6000_output_mi_thunk): Likewise.
2464 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2466 * config/nvptx/mkoffload.c (process): Change offload data format.
2468 2015-09-30 Jeff Law <law@redhat.com>
2470 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
2471 with constant conditions.
2472 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
2473 (remove_ctrl_stmt_and_useless_edges): No longer static.
2474 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
2475 (remove_ctrl_stmt_and_useless_edges): Likewise.
2477 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2478 Cesar Philippidis <cesar@codesourcery.com>
2480 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
2481 (TARGET_GOACC_VALIDATE_DIMS): Override.
2482 * target.def (TARGET_GOACC): New target hook prefix.
2483 (validate_dims): New hook.
2484 * targhooks.h (default_goacc_validate_dims): New.
2485 * omp-low.c (oacc_validate_dims): New.
2486 (execute_oacc_device_lower): New.
2487 (default_goacc_validate_dims): New.
2488 (pass_data_oacc_device_lower): New.
2489 (pass_oacc_device_lower): New pass.
2490 (make_pass_oacc_device_lower): New.
2491 * tree-pass.h (make_pass_oacc_device_lower): Declare.
2492 * passes.def (pass_oacc_device_lower): Add it.
2493 * doc/tm.texi: Rebuilt.
2494 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
2495 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
2497 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2499 PR rtl-optimization/67037
2500 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
2502 2015-09-30 Bernd Schmidt <bernds@redhat.com>
2504 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
2505 * passes.c: Include tree-ssanames.h.
2506 (execute_function_todo): Flush the pending free SSA_NAMEs after
2507 eliminating unreachable basic blocks.
2508 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
2509 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
2510 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
2511 (flush_ssanames_freelist): New function.
2512 (release_ssaname_fn): Put released names on the queue.
2513 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
2514 * tree-ssanames.h (flush_ssanames_freelist): Declare.
2516 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2518 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
2519 (generate_target_descr_file, generate_target_offloadend_file)
2520 (generate_host_descr_file, prepare_target_image): Pass it on.
2521 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
2522 (compile_native, main): Pass it on.
2523 * lto-wrapper.c (compile_offload_image): Likewise.
2525 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2526 Ilya Verbin <ilya.verbin@intel.com>
2527 Andrey Turetskiy <andrey.turetskiy@intel.com>
2529 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
2530 (prepare_target_image, main): Refactor argv building to use
2533 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2535 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
2536 * config/spu/spu.c (spu_expand_atomic_op): New function.
2537 * config/spu/spu.md (AINT): New mode iterator.
2538 (ATOMIC): New code iterator.
2539 (atomic_name, atomic_pred): New code predicates.
2540 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
2541 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
2542 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
2543 "atomic_<atomic_name>_fetch<mode>"): Likewise.
2545 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
2547 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
2549 (scalar_chain::convert_reg): Likewise.
2551 2015-09-30 Richard Biener <rguenther@suse.de>
2553 * builtins.c: Add comment that no new simplifications should
2556 2015-09-30 Marek Polacek <polacek@redhat.com>
2558 PR tree-optimization/67690
2559 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
2560 reset_flow_sensitive_info_in_bb.
2561 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
2562 * tree-ssanames.c: Include "gimple-iterator.h".
2563 (reset_flow_sensitive_info_in_bb): New function.
2564 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
2566 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2568 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
2569 variable, replacing it with...
2570 (offload_abi): ... this new variable. Adjust all users.
2571 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
2573 2015-09-30 Matthias Klose <doko@ubuntu.com>
2575 * configure.ac: Remove extraneous ;;.
2576 * configure: Regenerate.
2578 2015-09-29 James Bowman <james.bowman@ftdichip.com>
2580 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
2581 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
2582 predicate, disallow register for operand 2.
2584 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
2586 * graphite-dependences.c (scop_get_dependences): Moved in down
2587 in order to be visible to its caller.
2588 * graphite-poly.h: Removed compute_deps, and extend_schedule.
2590 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2591 Aditya Kumar <aditya.k7@samsung.com>
2593 PR tree-optimization/67754
2594 * graphite-optimize-isl.c (optimize_isl): Call
2595 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
2597 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2599 * builtins.c (expand_builtin_acc_on_device): Delete.
2600 (expand_builtin): Don't call it.
2601 (fold_builtin_1): Fold acc_on_device.
2603 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
2605 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
2606 (ix86_nsaved_sseregs): Likewise.
2608 2015-09-29 Jeff Law <law@redhat.com>
2610 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
2611 computation of unused value.
2613 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
2614 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
2615 inline macro expansion.
2617 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
2619 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
2620 (gen_shl_sext): Likewise.
2621 * config/sh/sh.md (divsi3): Likewise.
2622 (imm->ext_dest_operand splitter): Likewise.
2624 2015-09-29 Sebastian Pop <s.pop@samsung.com>
2625 Aditya Kumar <aditya.k7@samsung.com>
2627 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
2628 (nb_data_writes_in_bb): Remove.
2629 (split_pbb): Remove.
2630 (split_reduction_stmt): Remove.
2631 (is_reduction_operation_p): Remove.
2632 (phi_contains_arg): Remove.
2633 (follow_ssa_with_commutative_ops): Remove.
2634 (detect_commutative_reduction_arg): Remove.
2635 (detect_commutative_reduction_assign): Remove.
2636 (follow_inital_value_to_phi): Remove.
2637 (edge_initial_value_for_loop_phi): Remove.
2638 (initial_value_for_loop_phi): Remove.
2639 (used_outside_reduction): Remove.
2640 (detect_commutative_reduction): Remove.
2641 (translate_scalar_reduction_to_array_for_stmt): Remove.
2642 (remove_phi): Remove.
2643 (dr_indices_valid_in_loop): Remove.
2644 (close_phi_written_to_memory): Remove.
2645 (translate_scalar_reduction_to_array): Remove.
2646 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
2647 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
2648 (rewrite_commutative_reductions_out_of_ssa): Remove.
2649 (build_poly_scop): Remove call to
2650 rewrite_commutative_reductions_out_of_ssa.
2652 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
2654 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
2655 Add new insn types for vector load and store pairs.
2656 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
2657 types "neon_ldp{,_q}".
2658 * config/arm/cortex-a57.md (neon_load_c): Add insn types
2660 (neon_store_complex): Add insn types "neon_stp{,_q}".
2661 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
2664 2015-09-29 Jeff Law <law@redhat.com>
2666 * config/rx/constraints.md (Int08): Fix undefined left shift
2668 (Sint08, Sint16, Sint24): Likewise.
2669 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2671 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
2674 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
2675 left shift behaviour.
2676 * config/msp430/constraints.md ('L' constraint): Similarly.
2677 ('Ys' constraint): Similarly.
2679 2015-09-29 Richard Biener <rguenther@suse.de>
2681 PR tree-optimization/67170
2682 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
2683 the translate function pointer parameter to get the
2684 bool whether to disambiguate only by reference.
2685 (walk_non_aliased_vuses): Likewise.
2686 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2687 (get_continuation_for_phi_1): Likewise.
2688 (get_continuation_for_phi): Likewise.
2689 (walk_non_aliased_vuses): Likewise.
2690 * tree-ssa-sccvn.c (const_parms): New bitmap.
2691 (vn_reference_lookup_3): Adjust for interface change.
2692 Disambiguate parameters pointing to readonly memory.
2693 (free_scc_vn): Free const_parms.
2694 (run_scc_vn): Initialize const_parms from a fn spec attribute.
2696 2015-09-29 Richard Biener <rguenther@suse.de>
2698 PR tree-optimization/67741
2699 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
2700 builtin calls with correct signature.
2702 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
2705 * config/i386/i386.c: Include dbgcnt.h.
2706 (has_non_address_hard_reg): New.
2707 (convertible_comparison_p): New.
2708 (scalar_to_vector_candidate_p): New.
2709 (remove_non_convertible_regs): New.
2710 (scalar_chain): New.
2711 (scalar_chain::scalar_chain): New.
2712 (scalar_chain::~scalar_chain): New.
2713 (scalar_chain::add_to_queue): New.
2714 (scalar_chain::mark_dual_mode_def): New.
2715 (scalar_chain::analyze_register_chain): New.
2716 (scalar_chain::add_insn): New.
2717 (scalar_chain::build): New.
2718 (scalar_chain::compute_convert_gain): New.
2719 (scalar_chain::replace_with_subreg): New.
2720 (scalar_chain::replace_with_subreg_in_insn): New.
2721 (scalar_chain::emit_conversion_insns): New.
2722 (scalar_chain::make_vector_copies): New.
2723 (scalar_chain::convert_reg): New.
2724 (scalar_chain::convert_op): New.
2725 (scalar_chain::convert_insn): New.
2726 (scalar_chain::convert): New.
2727 (convert_scalars_to_vector): New.
2728 (pass_data_stv): New.
2730 (make_pass_stv): New.
2731 (ix86_option_override): Created and register stv pass.
2732 (flag_opts): Add -mstv.
2733 (ix86_option_override_internal): Likewise.
2734 * config/i386/i386.md (SWIM1248x): New.
2735 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
2736 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
2737 (*anddi3_doubleword): New.
2738 (*zext<mode>_doubleword): New.
2739 (*zextsi_doubleword): New.
2740 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
2741 (*<code>di3_doubleword): New.
2742 * config/i386/i386.opt (mstv): New.
2743 * dbgcnt.def (stv_conversion): New.
2745 2015-09-29 Tom de Vries <tom@codesourcery.com>
2747 * tree-cfg.c (dump_function_to_file): Dump function attributes.
2749 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2752 * config/sh/sh.c (sh_override_options_after_change): New.
2753 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2754 (sh_option_override): Move align_loops, align_jumps and
2755 align_functions handling into sh_override_options_after_change.
2757 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2759 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
2760 (nvptx_record_offload_symbol): Record function execution geometry.
2761 * config/nvptx/mkoffload.c (process): Include launch geometry in
2763 * omp-low.c (oacc_launch_pack): New.
2764 (replace_oacc_fn_attrib): New.
2765 (set_oacc_fn_attrib): New.
2766 (get_oacc_fn_attrib): New.
2767 (expand_omp_target): Create keyed varargs for GOACC_parallel call
2769 * omp-low.h (get_oacc_fn_attrib): Declare.
2770 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
2771 (DEF_FUNCTION_TYPE_VAR_11): Delete.
2772 * tree.h (OMP_CLAUSE_EXPR): New.
2773 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
2775 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2776 Sebastian Pop <s.pop@samsung.com>
2778 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
2780 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2781 Sebastian Pop <s.pop@samsung.com>
2783 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
2784 * graphite-scop-detection.c (struct sese_l): New type.
2785 (get_entry_bb): API for getting entry bb of SESE.
2786 (get_exit_bb): API for getting exit bb of SESE.
2787 (class debug_printer): New type. Simple printer in debug mode.
2788 (trivially_empty_bb_p): New. Return true when BB is empty or
2789 contains only debug instructions.
2790 (graphite_can_represent_expr): Call scalar_evoution_in_region
2791 instead of analyze_scalar_evolution. Pass in scop instead of only
2793 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
2795 (stmt_simple_for_scop_p): Same.
2796 (harmful_stmt_in_bb): Same.
2797 (graphite_can_represent_loop): Deleted.
2798 (struct scopdet_info): Deleted.
2799 (scopdet_basic_block_info): Deleted.
2800 (build_scops_1): Deleted.
2801 (bb_in_sd_region): Deleted.
2802 (find_single_entry_edge): Deleted.
2803 (find_single_exit_edge): Deleted.
2804 (create_single_entry_edge): Deleted.
2805 (sd_region_without_exit): Deleted.
2806 (create_single_exit_edge): Deleted.
2807 (unmark_exit_edges): Deleted.
2808 (mark_exit_edges): Deleted.
2809 (create_sese_edges): Deleted.
2810 (build_graphite_scops): Deleted.
2811 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
2812 (build_scops): Use the new scop_builder to build scops.
2813 (dot_all_scops_1): Use the new pretty printer. Print loop father
2815 (loop_body_is_valid_scop): New. Return true if loop body is a
2817 (class scop_builder): New. Builds SCoPs for polyhedral
2819 (scop_builder): New constructor.
2820 (static sese_l invalid_sese): sese_l with invalid edges.
2821 (get_sese): Get an sese (from a loop) if possible, invalid_sese
2823 (get_nearest_dom_with_single_entry): Get nearest dominator of a
2824 basic_block with single entry. Return NULL if we get to the
2825 beginning of a function.
2826 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
2827 a basic_block with single exit. Return NULL if we get to the
2828 beginning of a function.
2829 (print_sese): Pretty-print SESE.
2830 (merge_sese): Merge two SESEs if possible and return the new SESE.
2831 (build_scop_depth): Start building the SCoP within a loop nest.
2832 (build_scop_breadth): Start building the SCoP at a single loop
2833 depth. Merge adjacent SESEs if valid.
2834 (can_represent_loop_1): Returns true if Graphite can represent
2835 loop inside SCoP. Helper for can_represent_loop.
2836 (can_represent_loop): Returns true if Graphite can represent LOOP
2837 and all its nested loops in SCoP.
2838 (loop_is_valid_scop): Returns true if LOOP and all its nests
2839 constitute a valid SCoP.
2840 (region_has_one_loop): Returns true of a region has only one loop.
2841 (add_scop): Add SCoP to the list of valid scops. Removes an
2842 already existing scop if it intersects with or subsumed by this one.
2843 (harmful_stmt_in_region): Returns true if SCoP has any statment
2844 which cannot be represented by Graphite.
2845 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
2846 (remove_subscops): Remove any SCoP from the list of already found
2847 SCoPs, if subsumed by S1.
2848 (intersects): Return true if region bounded by SCoPs S1 and S2
2850 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
2851 * graphite.c (print_graphite_scop_statistics):
2852 (print_graphite_statistics): Print SCoP info while debugging.
2853 (graphite_initialize): Early exit in case number of loops in a
2854 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
2855 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
2856 (graphite_finalize):
2857 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
2858 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
2859 (recompute_all_dominators): Recalculate POST_DOMINATORS.
2860 * tree-cfg.c (print_loops): Print the function name while printing
2863 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
2864 Sebastian Pop <s.pop@samsung.com>
2866 PR tree-optimization/67700
2867 * graphite-sese-to-poly.c (parameter_index_in_region): Call
2868 invariant_in_sese_p_rec.
2869 (extract_affine): Same.
2870 (rewrite_cross_bb_scalar_deps): Call update_ssa.
2871 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
2872 * sese.h (invariant_in_sese_p_rec): Declare.
2874 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
2876 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
2878 2015-09-28 Jiong Wang <jiong.wang@arm.com>
2881 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2882 Jiong Wang <jiong.wang@arm.com>
2884 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2885 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2886 (REG_CLASS_NAMES): Likewise.
2887 (REG_CLASS_CONTENTS): Likewise.
2888 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2889 (aarch64_register_move_cost): Likewise.
2890 (aarch64_load_symref_appropriately): Invoke the new added pattern if
2892 * config/aarch64/constraints.md (Uc0): New constraint.
2894 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
2896 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
2898 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
2900 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
2901 SECTION_EXCLUDE in XO mapping class.
2903 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2906 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
2907 and handle ne and eq codes.
2908 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
2909 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
2910 CONST_INT_P. Use reverse_condition.
2911 (sh_split_treg_set_expr): Likewise.
2913 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
2915 * config/arm/types.md (type): Add rotate_imm.
2916 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
2918 (*rorsi3_insn_uxtw): Likewise.
2919 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
2920 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
2921 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
2923 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2925 PR rtl-optimization/67481
2926 * ifcvt.c (contains_ccmode_rtx_p): New function.
2927 (insn_valid_noce_process_p): Use it.
2929 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2931 PR rtl-optimization/67456
2932 PR rtl-optimization/67464
2933 PR rtl-optimization/67465
2934 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
2935 move in the mode of x. Handle combination of complex and simple
2936 block pairs as well as the case when one is empty.
2938 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2940 * doc/gimple.texi: Update references to gimple_statement_base.
2941 * gdbhooks.py: Likewise.
2942 * gimple.h: Likewise.
2944 2015-09-28 Daniel Cederman <cederman@gaisler.com>
2946 * config/sparc/driver-sparc.c: map LEON to leon3
2948 2015-09-28 Daniel Cederman <cederman@gaisler.com>
2950 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
2951 and make it inverse to change default
2952 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
2954 * doc/invoke.texi: Document change of default
2956 2015-09-28 Daniel Cederman <cederman@gaisler.com>
2958 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
2959 true on %f0 for a target without FPU.
2960 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
2962 (untyped_return): Do not load %f0 for a target without FPU.
2964 2015-09-28 Andrew Pinski <apinski@cavium.com>
2966 * config/aarch64/aarch64.md (prefetch):
2967 Change the predicate of operand 0 to register_operand.
2969 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
2971 * config/i386/predicates.md (register_sse4nonimm_operand): New
2973 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
2974 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
2975 Use register_sse4nonimm_operand as operand 0 predicate.
2976 (*vec_extractv8hi_sse2): Remove insn pattern.
2977 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
2978 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
2980 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2981 Kaz Kojima <kkojima@gcc.gnu.org>
2984 * config/sh/sh-protos.h (sh_lra_p): Declare.
2985 * config/sh/sh.c (sh_lra_p): Make non-static.
2986 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
2987 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
2988 Expand into addsi3_scr if operands[2] if needed.
2989 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
2990 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
2991 (addsi3_scr, *addsi3): New insn_and_split patterns.
2993 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
2995 PR rtl-optimization/64164
2996 PR tree-optimization/67312
3000 * cfgexpand.c (parm_in_stack_slot_p): Remove.
3001 (ssa_default_def_partition): Remove.
3002 (get_rtl_for_parm_ssa_default_def): Remove.
3003 (set_rtl): Check that RTL assignments match expectations.
3004 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
3005 default def location for params and results. Record SSA names
3006 or types in REG and MEM attrs, respectively.
3007 (set_parm_rtl): New.
3008 (expand_one_ssa_partition): Drop logic that assigned MEMs with
3009 unassigned addresses.
3010 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3011 deferred stack alloc vars.
3012 (expand_used_vars): Skip partitions holding parm default defs.
3013 Move adjust_one_expanded_partition_var loop...
3014 (pass_expand::execute): ... here. Drop redundant assert.
3015 Adjust comments before the final loop over all ssa names.
3016 Require assigned rtl of parms and results to match exactly.
3017 Reset its attributes to match them, not any other variables in
3019 (expand_debug_expr): Use entry value for PARM's default defs
3020 only iff they have zero nondebug uses.
3021 * cfgexpand.h (parm_in_stack_slot_p): Remove.
3022 (get_rtl_for_parm_ssa_default_def): Remove.
3023 (set_parm_rtl): Declare.
3024 * doc/invoke.texi: Improve wording.
3025 * explow.c (promote_decl_mode): Fix promote_function_mode for
3026 result decls not by reference.
3027 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3028 bypass TYPE_MODE to get the actual vector mode.
3029 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
3030 2015-08-19's changes as follows. Drop include of
3031 basic-block.h and df.h.
3032 (rtl_for_parm): Remove.
3033 (maybe_reset_rtl_for_parm): Remove.
3034 (parm_in_unassigned_mem_p): Remove.
3035 (use_register_for_decl): Add logic for RESULT_DECLs matching
3036 assign_parms' behavior.
3037 (split_complex_args): Revert.
3038 (assign_parms_augmented_arg_list): Revert. Add comment
3039 referencing the logic above.
3040 (assign_parm_adjust_stack_rtl): Revert.
3041 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
3042 of SET_DECL_RTL. Set up a REG if the parm demands so.
3043 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
3044 calls into a single set_parm_rtl. Set up a temporary RTL
3045 temporarily for expand_assignment.
3046 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
3047 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
3048 (assign_bounds): Revert.
3049 (assign_parms): Revert. Use set_parm_rtl.
3050 (allocate_struct_function): Relayout result and parms of
3051 non-abstruct functions.
3052 (expand_function_start): Revert. Use set_parm_rtl. If the
3053 result is not a hard reg, create a pseudo from the promoted
3054 mode of the default def. Promote static chain mode.
3055 * tree-outof-ssa.c (remove_ssa_form): Drop unused
3056 partition_has_default_def. Set up
3057 partitions_for_parm_default_defs.
3058 (finish_out_of_ssa): Remove partition_has_default_def.
3059 Release partitions_for_parm_default_defs.
3060 * tree-outof-ssa.h (struct ssaexpand): Remove
3061 partition_has_default_def. Add
3062 partitions_for_parm_default_defs.
3063 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3065 (build_ssa_conflict_graph): Fix conflict-detection of default
3066 defs of even unused default defs of params and results.
3067 (for_all_parms): New.
3068 (create_default_def): New.
3069 (register_default_def): New.
3070 (coalesce_with_default): New.
3071 (create_outofssa_var_map): Create default defs for all parms
3072 and results, and register their partitions. Add GIMPLE_RETURN
3073 operands as coalesce candidates with results. Add default
3074 defs of each parm or result as coalesce candidates with its
3075 other defs. Mark each result def, and each default def of
3076 parms, as used_in_copy.
3077 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
3078 with the ssa names, even anonymous ones. Drop
3079 parm_in_stack_slot_p calls. Require same signedness and
3081 (coalesce_ssa_name): Add coalesce candidates for all defs of
3082 each parm and result, even unused ones.
3083 (parm_default_def_partition_arg): New type.
3084 (set_parm_default_def_partition): New.
3085 (get_parm_default_def_partitions): New.
3086 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3087 * tree-ssa-live.c (partition_view_init): Regard unused defs of
3088 parms and results as used.
3089 (verify_live_on_entry): Don't error out just because they're
3092 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
3094 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3095 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3096 (output_fde): Don't output length for debug_frame on AIX.
3097 (output_call_frame_info): Don't output length for debug_frame on AIX.
3098 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3099 HAVE_XCOFF_DWARF_EXTRAS.
3100 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3101 HAVE_XCOFF_DWARF_EXTRAS.
3102 (output_compilation_unit_header): Don't output length on AIX.
3103 (output_pubnames): Don't output length on AIX.
3104 (output_aranges): Delete argument. Compute length locally. Don't
3105 output length on AIX.
3106 (output_line_info): Don't output length on AIX.
3107 (dwarf2out_finish): Don't compute aranges_length.
3108 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3109 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3110 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3111 symbol decoration for AIX.
3112 (rs6000_xcoff_debug_unwind_info): New.
3113 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3115 (rs6000_xcoff_declare_function_name): Emit different
3116 .function pseudo-op when DWARF2_DEBUG. Don't call
3117 xcoffout_declare_function for DWARF2_DEBUG.
3118 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3120 * config/rs6000/aix71.h: New.
3121 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3123 * configure: Regenerate.
3124 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3127 2015-09-26 Jeff Law <law@redhat.com>
3129 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3131 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3134 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3137 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3138 undefined behaviour.
3140 * config/cris/cris.md (asrandb): Fix left shift undefined
3142 (asrandw): Likewise.
3144 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
3147 * lra-constarints.c (match_reload): Check presence of the input pseudo
3148 in the output operand.
3150 2015-09-25 Tobias Burnus <burnus@net-b.de>
3152 * doc/invoke.texi (-fsanitize): Minor wording tweak.
3154 2015-09-25 Tobias Burnus <burnus@net-b.de>
3156 * doc/invoke.texi (-fsanitize): Update URLs.
3158 2015-09-25 Teresa Johnson <tejohnson@google.com>
3160 * opts.c (finish_options): Unset -freorder-blocks-and-partition
3161 if not using profile.
3163 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3165 PR pretty-print/67567
3166 * pretty-print.c (pp_string): Add gcc_checking_assert.
3167 * pretty-print.h (output_buffer_append_r): Likewise.
3169 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3172 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3173 addr2 individually. Don't emit logical or insn if one is known to
3174 be aligned approriately.
3175 (sh_expand_cmpnstr): Likewise.
3177 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
3179 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3180 __builtin_aarch64_fp[sc]r arguments into a register.
3182 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
3184 * config.gcc (x86_archs): Replace lakemount with lakemont.
3185 (with_cpu): Likewise.
3186 (with_arch): Likewise.
3187 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3188 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
3189 __tune_lakemount__ with __tune_lakemont__.
3190 * config/i386/i386.c (lakemount_cost): Renamed to ...
3191 (lakemont_cost): This.
3192 (m_LAKEMOUNT): Renamed to ...
3194 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3195 (processor_target_table): Replace "lakemount" with "lakemont".
3196 (processor_alias_table): Likewise.
3197 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3199 (ix86_adjust_cost): Likewise.
3200 (ia32_multipass_dfa_lookahead): Likewise.
3201 * config/i386/i386.h (processor_type): Likewise.
3202 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3203 * doc/invoke.texi: Replace lakemount with lakemont. Replace
3204 Lakemount with Lakemont.
3206 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
3208 * config.gcc (x86_archs): Replace iamcu with lakemount.
3209 (with_cpu): Likewise.
3210 (with_arch): Likewise.
3211 * doc/invoke.texi: Likewise.
3212 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3213 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
3214 __tune_iamcu__ with __tune_lakemount__.
3215 * config/i386/i386.c (iamcu_cost): Renamed to ...
3216 (lakemount_cost): This.
3217 (m_IAMCU): Renamed to ...
3218 (m_LAKEMOUNT): This.
3219 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3220 (processor_target_table): Replace "iamcu" with "lakemount".
3221 (processor_alias_table): Likewise.
3222 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3223 PROCESSOR_LAKEMOUNT.
3224 (ix86_adjust_cost): Likewise.
3225 (ia32_multipass_dfa_lookahead): Likewise.
3226 * config/i386/i386.h (processor_type): Likewise.
3227 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
3229 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
3231 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
3232 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
3234 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
3235 (pa_expand_compare_and_swap_loop): New.
3236 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
3237 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
3238 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
3239 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
3240 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
3243 2015-09-24 Michael Collison <michael.collison@linaro.org>
3246 * read-md.c (read_name): Allow mode iterators inside angle
3247 brackets in rtl expressions.
3249 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
3252 * ira-color.c (update_allocno_cost): Add parameter.
3253 (update_costs_from_allocno): Decrease conflict cost. Pass the new
3256 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3259 * opts-common.c (prune_options): Discard all -fdiagnostics-color
3260 but the last one, which is moved to the front to be processed
3262 * opts.c (enable_warning_as_error): Reject options that do not
3265 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3267 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
3269 2015-09-24 Jiong Wang <jiong.wang@arm.com>
3271 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
3272 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
3273 (aarch64_cannot_force_const_mem): Likewise.
3274 (aarch64_classify_address): Likewise.
3275 (aarch64_classify_symbolic_expression): Likewise.
3276 (aarch64_print_operand): Likewise.
3277 (aarch64_classify_symbol): Likewise.
3278 (aarch64_mov_operand_p): Likewise.
3279 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
3280 (aarch64_mov_operand): Likewise.
3282 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
3284 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
3285 for info->spe_gp_size.
3287 2015-09-24 Richard Biener <rguenther@suse.de>
3290 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
3293 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
3295 * tree-object-size.c (plus_stmt_object_size)
3296 (cond_expr_object_size): Change the formal parameters from gimple
3298 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
3299 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
3300 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
3302 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3304 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
3305 Check for ld -type pie on Solaris 11.x and 12.
3306 * configure: Regenerate.
3307 * config.in: Regenerate.
3309 * gcc.c (LD_PIE_SPEC): Allow redefinition.
3311 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
3312 (STARTFILE_SPEC): Use it.
3313 (ENDFILE_CRTEND_SPEC): Define.
3314 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
3315 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
3316 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
3317 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
3318 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
3319 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
3320 (ENDFILE_ARCH_SPEC): Define.
3321 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
3323 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3325 * configure.ac (gcc_cv_solaris_crts): New test.
3326 * configure. Regenerate.
3327 * config.in: Regenerate.
3328 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
3329 HAVE_SOLARIS_CRTS variant.
3331 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3333 * tree-inline.h (count_insns_seq): Delete prototype.
3334 (estimate_num_insns_seq): Define prototype.
3335 * tree-inline.c (count_insns_seq): Delete.
3336 (estimate_num_insns_seq): Remove static qualifier.
3337 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
3338 with estimate_num_insns_seq.
3340 2015-09-24 Richard Biener <rguenther@suse.de>
3342 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
3344 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
3345 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
3347 (ao_ref_init_from_vn_reference): Record clique and base in the
3349 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
3351 2015-09-24 Richard Biener <rguenther@suse.de>
3353 PR tree-optimization/48885
3354 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
3355 as not including any restrict tags from other pointers.
3357 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
3359 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
3360 character when appending to offload_targets.
3362 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
3363 offload targets by commas, not colons.
3364 * config.in: Regenerate.
3365 * configure: Likewise.
3366 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
3367 instead of setting up the default offload targets here...
3368 (process_command): ..., do it here.
3370 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
3371 targets are separated by commas.
3372 * config.h.in: Regenerate.
3374 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
3375 Nathan Sidwell <nathan@codesourcery.com>
3377 * omp-low.h (omp_reduction_init_op): Declare.
3378 * omp-low.c (omp_reduction_init_op): New, broken out of ...
3379 (omp_reduction_init): ... here. Call it.
3380 * tree-parloops.c (initialize_reductions): Use
3381 omp_reduction_init_op.
3383 2015-09-23 Richard Biener <rguenther@suse.de>
3386 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
3387 undefined overflow unless they will cancel out.
3389 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
3391 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
3394 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3397 * opts.h (write_langs): Declare.
3398 * opts-global.c (write_langs): Make it extern.
3400 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
3403 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
3404 overlapping regs when matching the pattern.
3406 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
3408 * config/aarch64/aarch64-simd.md
3409 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
3410 (aarch64_float_truncate_hi_v4sf_le): New.
3411 (aarch64_float_truncate_hi_v4sf_be): Likewise.
3413 2015-09-23 Richard Biener <rguenther@suse.de>
3415 * tree-ssa-structalias.c (intra_create_variable_infos): Build
3416 representatives for all restrict qualified pointer destinations.
3418 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
3420 * config/i386/i386.md (define_code_attr mshift): New.
3421 (define_mode_iterator SWI1248_AVX512BW): Rename ...
3422 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
3424 (define_insn "*k<logic><mode>"): Use new iterator name.
3425 (define_insn "*<mshift><mode>3"): New.
3427 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
3430 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
3431 mark the block as accessible.
3433 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
3435 * function.c (thread_prologue_and_epilogue_insns): Delete
3436 orig_entry_edge argument to try_shrink_wrapping.
3437 * shrink-wrap.c (can_get_prologue): New function.
3438 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
3439 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
3440 can_get_prologue where needed. Remove code that finds a single
3441 edge for the prologue. Remove code that tests if any reg clobbered
3442 by the prologue is live on the prologue edge. Remove code that finds
3443 the new prologue edge after duplicating blocks. Make a new prologue
3445 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
3447 2015-09-22 Jeff Law <law@redhat.com>
3449 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
3452 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3454 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
3455 -Wtemplates, -Wnamespaces): Document.
3457 2015-09-22 Tom de Vries <tom@codesourcery.com>
3459 PR tree-optimization/67671
3460 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
3461 pointer references as restrict.
3463 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
3465 * config/nios2/nios2.c (nios2_legitimize_address): When handling
3466 'reg + reloc' cases, allow first operand to be non-REG, and use
3467 force_reg() to enforce address pattern.
3469 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
3472 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
3473 (define_mode_iterator VI12_AVX_AVX512F): New.
3474 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
3475 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
3476 (define_insn "*<code><mode>3"): ... Into new pattern using
3477 VI12_AVX_AVX512F iterators without masking.
3479 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3481 * config.gcc: Support "skylake-avx512".
3482 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3483 PROCESSOR_SKYLAKE_AVX512.
3484 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
3485 (processor_target_table): Add "skylake-avx512".
3486 (PTA_SKYLAKE_AVX512): Define.
3487 (ix86_option_override_internal): Add "skylake_avx512".
3488 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
3489 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
3490 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
3491 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
3492 * doc/invoke.texi (skylake-avx512): New.
3494 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3496 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
3498 (define_insn "kunpcksi"): Ditto.
3499 (define_insn "kunpckdi"): Ditto.
3501 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
3503 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
3504 iterator instead of fixed modes.
3506 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3508 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3510 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
3511 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
3512 out_result. Update to support update-fetch operations.
3513 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
3514 Adjust for change to aarch64_gen_atomic_ldop.
3515 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
3516 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
3517 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
3518 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
3519 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
3521 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3523 * config/aarch64/aarch64-protos.h
3524 (aarch64_atomic_ldop_supported_p): Declare.
3525 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
3526 (enum aarch64_atomic_load_op_code): New.
3527 (aarch64_emit_atomic_load_op): New.
3528 (aarch64_gen_atomic_ldop): Update to support load-operate
3530 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
3532 (aarch64_atomic_<atomic_optab><mode>): New.
3533 (aarch64_atomic_<atomic_optab><mode>_lse): New.
3534 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
3535 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
3536 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
3538 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3540 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
3541 (UNSPECV_ATOMIC_LDOP_OR): New.
3542 (UNSPECV_ATOMIC_LDOP_BIC): New.
3543 (UNSPECV_ATOMIC_LDOP_XOR): New.
3544 (UNSPECV_ATOMIC_LDOP_PLUS): New.
3547 (aarch64_atomic_load<atomic_ldop><mode>): New.
3549 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3551 * config/aarch64/aarch64.md
3552 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
3555 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
3557 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
3559 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
3560 (aarch64_gen_atomic_ldop): New.
3561 (aarch64_split_atomic_op): Fix whitespace and add a comment.
3562 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
3563 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
3564 (atomic_exchange<mode>): Replace with an expander.
3565 (aarch64_atomic_exchange<mode>): New.
3566 (aarch64_atomic_exchange<mode>_lse): New.
3567 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
3568 (aarch64_atomic_swp<mode>): New.
3570 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3572 * tree-inline.c (expand_call_inline): Use inform for extra note.
3573 Do not give a note with UNKNOWN_LOCATION.
3574 Replace input_location with gimple_location (stmt).
3575 Use true/false instead of TRUE/FALSE.
3577 2015-09-22 Tom de Vries <tom@codesourcery.com>
3579 PR tree-optimization/67666
3580 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
3581 with single field non-conservative.
3583 2015-09-21 David S. Miller <davem@davemloft.net>
3587 2015-09-11 David S. Miller <davem@davemloft.net>
3589 * config/sparc/constraints.md: Make "U" constraint a real register
3591 * config/sparc/sparc.c (TARGET_LRA_P): Define.
3592 (D_MODES, DF_MODES): Add missing cast.
3593 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3594 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3595 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3597 * config/sparc/sparc.h (PROMOTE_MODE): Define.
3598 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3599 provide these insn when flag_pic.
3601 2015-09-17 David S. Miller <davem@davemloft.net>
3603 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
3605 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
3607 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3608 (HARD_REGNO_CALLER_SAVE_MODE): Define.
3609 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3610 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3611 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3612 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3613 provide when flag_pic.
3615 2015-09-21 Jeff Law <law@redhat.com>
3617 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
3620 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3622 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
3624 2015-09-21 Richard Biener <rguenther@suse.de>
3626 * passes.c (rest_of_decl_compilation): Do not call
3627 dwarf2out_early_global_decl for aliases.
3629 2015-09-21 Richard Biener <rguenther@suse.de>
3632 * dwarf2out.c (add_location_or_const_value_attribute): Remove
3633 attribute parameter. Early exit if either DW_AT_const_value
3634 or DW_AT_location are present already.
3635 (gen_variable_die): Adjust caller.
3636 (dwarf2out_late_global_decl): Likewise.
3638 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3641 * config/sh/sh.c (sh_remove_overlapping_post_inc,
3642 sh_peephole_emit_move_insn): Add new functions.
3643 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
3644 sh_peephole_emit_move_insn): Declere them.
3645 * config/sh/sh.md: Use them in various peephole2 patterns.
3647 2015-09-21 Richard Biener <rguenther@suse.de>
3650 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
3651 address with -fno-delete-null-pointer-checks.
3653 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
3655 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
3656 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
3657 (reduc_uplus_v16qi): Remove.
3659 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
3660 (reduc_<VEC_reduc_name>_v2df): Remove.
3661 (reduc_<VEC_reduc_name>_v4sf): Remove.
3662 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
3664 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
3665 gen_ function by removing * prefix.
3666 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
3668 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3671 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3672 Print i_bound without converting it to a tree.
3674 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
3676 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
3677 operands[4] operands[5] swap with std::swap, removed tmp variable.
3678 (arm_evpc_neon_vzip): Replaced in0/in1 and
3679 out0/out1 swaps with std::swap, removed x variable.
3680 (arm_evpc_neon_vtrn): Replaced in0/int1 and
3681 out0/out1 swaos with std::swap, removed x variable.
3682 (arm_expand_vec_perm_const_1): Replaced
3683 d->op0/d->op1 swap with std::swap, removed x variable.
3684 (arm_evpc_neon_vuzp): Replaced in0/in1 and
3685 out0/out1 swaps with std::swap, removed x variable.
3687 2015-09-21 Jonathan Yong <10walls@gmail.com>
3689 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
3690 sysroot/usr/lib/32api for additional win32 libraries,
3691 fixes failing Cygwin bootstrapping.
3693 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3695 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
3697 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
3700 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
3701 (*mov_t_msb_neg): Rewrite negc pattern.
3703 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3705 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
3706 immediate generation code.
3708 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3710 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
3711 redundant immediate generation code.
3713 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3715 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
3716 (AARCH64_NUM_BITMASKS): Remove.
3717 (aarch64_bitmasks_cmp): Remove.
3718 (aarch64_build_bitmask_table): Remove.
3720 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3722 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
3723 slow immediate matching loops with a faster algorithm.
3725 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
3727 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
3730 2015-09-20 Jeff Law <law@redhat.com>
3732 PR tree-optimization/47679
3733 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
3734 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
3735 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
3736 (thread_through_normal_block): Use record_temporary_equivalences.
3738 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
3740 * coretypes.h (gimple): Change typedef to be a forward declaration.
3741 * gimple.h (gimple_statement_base): rename to gimple.
3742 * (all functions and types using gimple): Adjust.
3745 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
3746 David Edelsohn <dje.gcc@gmail.com>
3748 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
3749 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3750 (EH_FRAME_THROUGH_COLLECT2): Define.
3751 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3752 (ASM_OUTPUT_DWARF_PCREL): Define.
3753 (ASM_OUTPUT_DWARF_DATAREL): Define.
3755 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
3757 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
3760 2015-09-18 Jeff Law <law@redhat.com>
3762 PR tree-optimization/47679
3763 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
3765 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
3766 object. Update constructor.
3767 (pass_dominator::execute): Corresponding chagnes to declaration
3768 and initialization of avail_exprs_stack. Update constructor call
3769 for dom_opt_dom_walker object.
3770 (lookup_avail_expr, record_cond): Accept additional argument. Pass
3771 it down to children as needed.
3772 (record_equivalences_from_incoming_edge): Likewise.
3773 (eliminate_redundant_computations): Likewise.
3774 (record_equivalences_from_stmt): Likewise.
3775 (simplify_stmt_for_jump_threading): Likewise.
3776 (record_temporary_equivalences): Likewise.
3777 (optimize_stmt): Likewise.
3778 (dom_opt_dom_walker::thread_across_edge): Update access to
3779 avail_exprs_stack object and pass it to children as needed.
3780 (dom_opt_dom_walker::before_dom_children): Similarly.
3781 (dom_opt_dom_walker::after_dom_children): Similarly.
3782 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
3783 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
3784 Add avail_expr_stack argument. Pass it to children as needed.
3785 (dummy_simplify): Likewise.
3786 (simplify_control_stmt_condition): Likewise.
3787 (thread_around_empty_blocks): Likewise.
3788 (thread_through_normal_block): Likewise.
3789 (thread_across_edge): Likewise.
3790 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3791 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
3793 PR tree-optimization/47679
3794 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
3796 (dom_opt_dom_walker): New private member holding the const_and_copies
3797 object. Update constructor.
3798 (pass_dominator::execute): Corresponding changes to declaration
3799 and initialization of const_and_copies. Update constructor call
3800 for the dom_opt_dom_walker object.
3801 (record_temporary_equivalences): Accept const_and_copies argument
3802 pass it down to children as needed.
3803 (record_equality): Likewise.
3804 (record_equivalences_from_incoming_edge): Likewise.
3805 (cprop_into_successor_phis, optimize_stmt): Likewise.
3806 (eliminate_redundant_computations): Likewise.
3807 (dom_opt_dom_walker::thread_across_edge): Update access to
3808 const_and_copies object and pass it to children as needed.
3809 (dom_opt_dom_walker::before_dom_children): Similarly.
3810 (dom_opt_dom_walker::after_dom_children): Similarly.
3812 PR tree-optimization/47679
3813 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
3814 it into the avail_exprs_stack class.
3815 (pass_dominator::execute): Corresponding changes to declaration
3816 and initialization of avail_exprs. Pass avail_exprs to
3817 dump_dominator_optimization_stats.
3818 (record_cond): Extract avail_exprs from avail_exprs_stack.
3819 (lookup_avail_expr): Similarly.
3820 (htab_staticstics): Remove unnecessary prototype. Move to earlier
3822 (dump_dominator_optimization_stats): Make static and prototype.
3823 Add argument for the hash table to dump.
3824 (debug_dominator_optimization_stats): Remove.
3825 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
3827 (debug_dominator_optimization_stats): Similarly.
3828 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
3829 "void" in prototype for pop_to_marker method. Add accessor method
3830 for the underlying avail_exprs table.
3832 * tree-ssa-threadedge.c: Remove trailing whitespace.
3834 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
3836 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
3838 (pa_ldil_cint_p): Likewise.
3839 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
3840 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
3842 * config/pa/pa.md: Likewise.
3844 2015-09-18 David Malcolm <dmalcolm@redhat.com>
3846 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
3847 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
3848 (diagnostic_show_locus): Likewise.
3849 (diagnostic_print_caret_line): Likewise.
3850 * diagnostic-show-locus.c: New file.
3852 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
3854 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
3855 "back" parameter. Declare label in #if block.
3857 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
3860 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
3861 the address to a register.
3863 2015-09-18 Jeff Law <law@redhat.com>
3865 PR tree-optimization/47679
3866 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
3867 * tree-ssa-dom.c: Remove unnecessary header includes.
3868 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
3869 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
3870 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
3871 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
3872 (pass_phi_only_cprop::execute): Likewise.
3873 (make_pass_phi_only_cprop): Likewise.
3874 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
3875 uses of file scoped statics by passing the required objects
3876 as parameters wherever needed.
3878 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
3879 David Edelsohn <dje.gcc@gmail.com>
3881 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
3882 EH_FRAME_THROUGH_COLLECT2.
3883 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
3885 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
3886 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
3887 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
3888 * except.c (switch_to_exception_section): Use a read-only section
3889 even if EH_FRAME_SECTION_NAME is undefined.
3890 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
3891 * collect2.c (write_c_file_stat): Provide dbase on AIX.
3892 (scan_prog_file): Don't export __dso_handle nor
3894 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3895 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3896 (ASM_OUTPUT_DWARF_PCREL): Define.
3897 (ASM_OUTPUT_DWARF_DATAREL): Define.
3898 (EH_FRAME_THROUGH_COLLECT2): Define.
3899 (EH_FRAME_IN_DATA_SECTION): Delete.
3900 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
3901 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
3903 (rs6000_asm_output_dwarf_datarel): Declare.
3904 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
3905 (rs6000_aix_asm_output_dwarf_datarel): New.
3906 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
3907 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
3908 (EH_FRAME_THROUGH_COLLECT2): Define.
3909 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
3910 (EH_FRAME_THROUGH_COLLECT2): Define.
3911 (EH_TABLES_CAN_BE_READ_ONLY): Define.
3912 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
3913 (EH_FRAME_THROUGH_COLLECT2): New.
3914 (ASM_OUTPUT_DWARF_DATAREL): New.
3915 * doc/tm.texi: Regenerate.
3917 2015-09-18 Richard Biener <rguenther@suse.de>
3919 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
3920 we're in early phase.
3921 (schedule_generic_params_dies_gen): Likewise.
3922 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
3923 work as possible, retaining unhandled cases.
3924 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
3925 clear out generic_type_instances at the end.
3926 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
3927 (dwarf2out_early_finish): ... here. Do most of
3928 gen_remaining_tmpl_value_param_die_attribute here.
3930 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
3932 PR tree-optimization/67283
3933 * tree-sra.c (type_consists_of_records_p): Rename to...
3934 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3935 (completely_scalarize_record): Rename to...
3936 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3937 (scalarize_elem): New.
3938 (analyze_all_variable_accesses): Follow renamings.
3940 2015-09-18 Richard Biener <rguenther@suse.de>
3942 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
3945 2015-09-18 Richard Biener <rguenther@suse.de>
3947 PR tree-optimization/66142
3948 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
3949 treat MEM[&x] and x the same.
3950 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
3951 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
3952 when we simplified sth.
3953 (vn_reference_maybe_forwprop_address): Likewise.
3954 (valueize_refs_1): When we simplified through
3955 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
3956 set valueized_anything to true.
3957 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
3958 one ref kills the other instead of just a offset-based test.
3959 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
3960 for the operand_equal_p test to compare bases and also compare
3963 2015-09-17 Christian Bruel <christian.bruel@st.com>
3965 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
3967 2015-09-17 Richard Henderson <rth@redhat.com>
3970 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
3971 pointers that encode the alignment of the object.
3973 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
3975 PR rtl-optimization/66790
3976 * df-problems.c (LIVE): Amend documentation.
3978 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
3980 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
3982 (GTFILES): Replace optabs.c with optabs-libfunc.c.
3983 * genopinit.c (main): Add an include guard to insn-opinit.h.
3984 Protect the rtx_code parts with NUM_RTX_CODE.
3985 * optabs.h: Split parts out to...
3986 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
3987 * optabs.c: Split parts out to...
3988 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
3989 * cilk-common.c: Include optabs-query.h rather than optabs.h.
3990 * fold-const.c: Likewise.
3991 * target-globals.c: Likewise.
3992 * tree-if-conv.c: Likewise.
3993 * tree-ssa-forwprop.c: Likewise.
3994 * tree-ssa-loop-prefetch.c: Likewise.
3995 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
3996 Remove unncessary include files.
3997 * tree-ssa-phiopt.c: Likewise.
3998 * tree-ssa-reassoc.c: Likewise.
3999 * tree-switch-conversion.c: Likewise.
4000 * tree-vect-data-refs.c: Likewise.
4001 * tree-vect-generic.c: Likewise.
4002 * tree-vect-loop.c: Likewise.
4003 * tree-vect-patterns.c: Likewise.
4004 * tree-vect-slp.c: Likewise.
4005 * tree-vect-stmts.c: Likewise.
4006 * tree-vrp.c: Likewise.
4007 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4008 rather than optabs.h.
4009 * expr.c: Include optabs-tree.h.
4010 * function.c: Likewise.
4012 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4015 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4016 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4017 * config/arm/arm.c: Include common/common-target.h.
4018 (use_return_insn): Return 0 if the static chain register was saved
4019 above a non-APCS frame.
4020 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4021 (struct scratch_reg): New.
4022 (get_scratch_register_on_entry): New function.
4023 (release_scratch_register_on_entry): Likewise.
4024 (arm_emit_probe_stack_range): Likewise.
4025 (output_probe_stack_range): Likewise.
4026 (arm_expand_prologue): Factor out code dealing with the IP register
4027 for nested function and adjust it for stack checking.
4028 Invoke arm_emit_probe_stack_range if static builtin stack checking
4030 (thumb1_expand_prologue): Sorry out if static builtin stack checking
4032 (arm_expand_epilogue): Add the saved static chain register, if any, to
4033 the amount of pre-pushed registers to pop.
4034 (arm_frame_pointer_required): Return true if static stack checking is
4035 enabled and we want to catch the exception with the EABI unwinder.
4036 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4037 (UNSPEC_PROBE_STACK_RANGE): Likewise.
4038 * config/arm/arm.md (probe_stack): New insn.
4039 (probe_stack_range): Likewise.
4041 2015-09-17 Richard Biener <rguenther@suse.de>
4043 * genmatch.c (parser::parse_expr): Improve error message
4044 for mis-placed flags.
4046 2015-09-17 Richard Biener <rguenther@suse.de>
4048 * passes.c (rest_of_decl_compilation): Always call early_global_decl
4049 debug hook when we created a varpool node.
4050 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4051 dwarf2out_early_global_decl, when not just add location or
4052 value attributes to existing DIEs.
4054 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
4056 * config/aarch64/aarch64.md (copysigndf3): New.
4057 (copysignsf3): Likewise.
4059 2015-09-17 David S. Miller <davem@davemloft.net>
4061 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4062 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4063 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4064 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4065 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4066 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4067 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4068 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4069 provide when flag_pic.
4071 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
4073 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4074 object_allocator change.
4076 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4078 PR tree-optimization/66388
4079 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4080 (dump_iv): Dump no_overflow information.
4081 (alloc_iv): Initialize new field for struct iv.
4082 (mark_bivs): Count number of no_overflow bivs.
4083 (find_deriving_biv_for_expr, record_biv_for_address_use): New
4085 (idx_find_step): Call new functions above.
4086 (add_candidate_1, add_candidate): New paramter.
4087 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4088 (get_computation_aff): Simplify convertion of cand for BIV.
4089 (get_computation_cost_at): Step cand's base if necessary.
4091 2015-09-17 Bin Cheng <bin.cheng@arm.com>
4093 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4095 (tree_simplify_using_condition): Ditto.
4096 (simplify_using_initial_conditions): Ditto.
4097 (loop_exits_before_overflow): Pass new argument to function
4098 simplify_using_initial_conditions. Remove case for type conversions
4100 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4102 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4103 in iv base using loop initial conditions.
4105 2015-09-16 Jeff Law <law@redhat.com>
4107 PR tree-optimization/47679
4108 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4109 (free_all_edge_infos): Use it.
4110 (allocate_edge_info): Free preexisting edge info data.
4111 (pass_dominator::execute): Set up initial edge info structures.
4112 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4114 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4115 If non-null, then push/pop markers appropriately.
4116 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4117 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4120 2015-09-16 James Bowman <james.bowman@ftdichip.com>
4122 * config/ft32/ft32.c: Fix the memory address space predicate.
4124 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
4127 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4128 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4130 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4132 * toplev.h (check_global_declaration): Remove declaration.
4133 * toplev.c (check_global_declaration): Move to ...
4134 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4135 (analyze_functions): Update call.
4137 2015-09-16 David S. Miller <davem@davemloft.net>
4139 * lra-constraints.c (simplify_operand_subreg): Do not assume that
4140 lowpart of a SUBREG has offset zero.
4142 2015-09-16 Jeff Law <law@redhat.com>
4144 PR tree-optimization/47679
4145 * tree-ssa-dom.c (enum expr_kind): Moved from here to
4146 tree-ssa-scopedtables.h.
4147 (struct hashable_expr, class expr_hash_elt): Likewise.
4148 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4149 Move associated methods into tree-ssa-scopedtables.c.
4150 (avail_expr_hash, initialize_expr_from_cond): Similarly.
4151 (hashable_expr_equal_p, add_expr_commutative): Likewise.
4152 (add_hashable_expr): Likewise.
4153 (record_cond): Delete element directly.
4154 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4155 private copy ctor and assignment operator methods.
4156 (expr_elt_hasher): Inline trivial methods.
4157 (initialize_expr_from_cond): Prototype.
4158 * tree-ssa-scopedtables.c: Add necessary includes, functions and
4159 methods that were previously in tree-ssa-dom.c. Improve various
4162 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
4164 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4166 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
4169 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4172 2015-09-16 Richard Biener <rguenther@suse.de>
4175 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4176 location of possibly shared trees.
4178 2015-09-16 Richard Biener <rguenther@suse.de>
4181 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4183 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
4185 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4186 offset and size computations instead of HOST_WIDE_INT.
4188 2015-09-16 Richard Biener <rguenther@suse.de>
4191 * fold-const.c (extract_muldiv_1): Properly extend multiplication
4192 result before builting a tree via wide_int_to_tree.
4194 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
4196 * Makefile.in: Add memory-block.cc
4197 (pool_allocator::initialize): Use fixed block size.
4198 (pool_allocator::release): Use memory_block_pool.
4199 (pool_allocator::allocate): Likewise.
4200 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4202 * cfg.c (initialize_original_copy_tables): Likewise.
4203 * cselib.c (elt_list_pool, elt_loc_list_pool,
4204 cselib_val_pool): Likewise.
4205 * df-problems.c (df_chain_alloc): Likewise.
4206 * df-scan.c (df_scan_alloc): Likewise.
4207 * dse.c (cse_store_info_pool, rtx_store_info_pool,
4208 read_info_type_pool, insn_info_type_pool, bb_info_pool,
4209 group_info_pool, deferred_change_pool): Likewise.
4210 * et-forest.c (et_nodes, et_occurrences): Likewise.
4211 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4212 ipcp_agg_lattice_pool): Likewise.
4213 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4214 * ipa-profile.c (histogram_pool): Likewise.
4215 * ipa-prop.c (ipa_refdesc_pool): Likewise.
4216 * ira-build.c (live_range_pool, allocno_pool, object_pool,
4217 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4218 * ira-color.c (update_cost_record_pool): Likewise.
4219 * lra-lives.c (lra_live_range_pool): Likewise.
4220 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4221 * memory-block.cc: New file.
4222 * memory-block.h: New file.
4223 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4224 * sched-deps.c (sched_deps_init): Likewise.
4225 * sel-sched-ir.c (sched_lists_pool): Likewise.
4226 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4227 * tree-sra.c (access_pool): Likewise.
4228 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4229 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
4230 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
4231 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
4232 * tree-ssa-strlen.c (strinfo_pool): Likewise.
4233 * tree-ssa-structalias.c (variable_info_pool): Likewise.
4234 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
4235 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
4237 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4239 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
4241 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
4244 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
4246 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
4247 to pass TLS call argument, according to current ABI.
4248 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
4249 callx0 for TLS call, according to current ABI.
4251 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4253 * tree-eh.c (lower_try_finally_dup_block): Clear location information
4254 on stack restore statements.
4255 (decide_copy_try_finally): Do not consider a stack restore statement as
4256 coming from sources.
4258 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
4260 * config/alpha/alpha.c (alpha_expand_block_clear): Use
4261 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
4263 2015-09-15 Jeff Law <law@redhat.com>
4265 PR tree-optimization/47679
4266 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
4267 methods and private members.
4268 (avail_exprs_stack): Similarly. Change type of global
4269 from a pair of expr_hash_elt_t to the new class.
4270 (expr_elt_hasher::hash): Corresponding changes.
4271 (expr_elt_hasher::equal): Similarly.
4272 (avail_expr_hash): Similarly.
4273 (pass_dominator::execute): Similarly.
4274 (dom_opt_dom_walker::thread_across_edge): Similarly.
4275 (record_cond): Similarly.
4276 (dom_opt_dom_walker::before_dom_children): Similarly.
4277 (dom_opt_dom_walker::after_dom_children): Similarly.
4278 (lookup_avail_expr): Likewise.
4279 (initialize_hash_element): Now a expr_hash_elt constructor.
4280 (initialize_hash_element_from_expr): Similarly.
4281 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
4282 (free_expr_hash_elt): Call dtor for the element.
4283 (remove_local_expressions_from_table): Now the "pop_to_marker"
4284 method in the available_exprs_stack class.
4285 (avail_expr_stack::record_expr): Method factored out.
4286 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
4288 (hashable_expr_equal_p): Fix formatting.
4290 2015-09-15 David Malcolm <dmalcolm@redhat.com>
4292 * input.h (location_get_source_line): Drop "expanded_location"
4293 param in favor of a file and line number.
4294 * input.c (location_get_source_line): Likewise.
4295 (dump_location_info): Update for change in signature of
4296 location_get_source_line.
4297 * diagnostic.c (diagnostic_print_caret_line): Likewise.
4299 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
4301 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
4302 Bump to 4KB for SJLJ exceptions.
4303 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
4304 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
4305 * doc/tm.texi: Regenerate.
4307 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4309 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
4310 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
4313 2015-09-15 Richard Biener <rguenther@suse.de>
4315 PR tree-optimization/67470
4316 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
4317 structure for PHI hoisting by inserting a forwarder block
4320 2015-09-15 Christian Bruel <christian.bruel@st.com>
4322 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
4323 (arm_option_print): New function.
4325 2015-09-15 Christian Bruel <christian.bruel@st.com>
4328 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
4329 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
4330 Remove flags parameter.
4331 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
4332 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
4333 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
4334 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
4335 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
4336 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
4337 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
4338 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
4340 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4342 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
4344 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
4345 AARCH64_VALID_SIMD_DREG_MODE.
4347 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4349 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
4350 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
4351 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
4352 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
4353 aarch64_ld4_lane<mode>): Combine together, making...
4354 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4355 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4356 aarch64_st4_lane<mode>): Combine together, making...
4357 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
4358 * config/aarch64/iterators.md (nregs): Add comment.
4360 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4362 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
4363 Change operand mode from <V_TWO_ELEM> to BLK.
4364 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
4365 (aarch64_vec_store_lanesoi_lane<mode): Likewise
4366 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4367 (aarch64_ld2_lane<mode>): Likewise.
4368 (aarch64_st2_lane<VQ:mode>): Likewise.
4369 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
4371 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4373 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
4374 Change operand mode from <V_FOUR_ELEM> to BLK.
4375 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
4376 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
4377 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4378 (aarch64_ld4_lane<mode>): Likewise.
4379 (aarch64_st4_lane<mode>): Likewise.
4380 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
4382 2015-09-15 Richard Biener <rguenther@suse.de>
4385 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
4386 transfer EH info from old to new stmt.
4387 (replace_call_with_value): Likewise.
4388 (replace_call_with_call_and_fold): Likewise.
4389 (gimple_fold_builtin_memory_op): Likewise.
4390 (gimple_fold_builtin_memset): Likewise.
4391 (gimple_fold_builtin_stpcpy): Likewise.
4392 (gimple_fold_call): Likewise.
4394 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4396 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
4398 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
4399 (aarch64_simd_intEI_type_node): Likewise.
4400 (aarch64_simd_builtin_std_type): Remove EImode case.
4401 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
4402 * config/aarch64/aarch64-modes.def: Remove EImode.
4404 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4406 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
4407 Change operand mode from <V_THREE_ELEM> to BLK.
4408 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
4409 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
4410 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
4411 (aarch64_ld3_lane<mode>): Likewise.
4412 (aarch64_st3_lane<mode>): Likewise.
4413 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
4415 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4417 * config/aarch64/aarch64-simd.md
4418 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
4419 Change all TImode operands to BLKmode.
4420 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
4421 Change all EImode operands to BLKmode.
4422 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
4423 Change all OImode operands to BLKmode.
4425 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
4426 and call set_mem_size.
4427 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
4429 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
4431 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
4433 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
4435 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
4437 (vec_store_lanesci_lane<mode>): Rename to...
4438 (aarch64_vec_store_lanesci_lane<mode>): ...this.
4440 (vec_store_lanesxi_lane<mode>): Rename to...
4441 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
4443 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
4444 aarch64_st4_lane<mode>): Follow renaming.
4446 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4448 * config/s390/s390.c (s390_const_operand_ok): Add missing
4451 2015-09-15 Richard Biener <rguenther@suse.de>
4454 * lto-streamer.h (lto_location_cache::current_sysp): Properly
4456 * lto-streamer-out.c (clear_line_info): Likewise.
4458 2015-09-15 Richard Biener <rguenther@suse.de>
4460 * doc/match-and-simplify.texi: Fix wording.
4462 2015-09-15 Bin Cheng <bin.cheng@arm.com>
4464 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
4465 unnecessary type conversion in op1.
4467 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4469 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
4470 (dup_block_and_redirect): Delete function.
4471 (can_dup_for_shrink_wrapping): New function.
4472 (fix_fake_fallthrough_edge): New function.
4473 (try_shrink_wrapping): Rewrite function.
4474 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
4476 2015-09-14 Rich Felker <dalias@libc.org>
4478 * configure.ac: Change target pattern for sh TLS support
4479 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
4480 * configure: Regenerate.
4482 2015-09-14 Jeff Law <law@redhat.com>
4484 PR tree-optimization/47679
4485 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
4486 type rather than void *.
4488 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4491 * diagnostic.c (diagnostic_initialize): Do not set
4492 some_warnings_are_errors.
4493 (diagnostic_finish): Use DK_WERROR count instead.
4494 (diagnostic_report_diagnostic): Do not set
4495 some_warnings_are_errors.
4496 * diagnostic.h (struct diagnostic_context): Remove
4497 some_warnings_are_errors.
4499 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
4501 * config/sparc/predicates.md (const_all_ones_operand): Use
4502 CONSTM1_RTX to simplify definition.
4504 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
4507 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
4510 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
4512 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
4513 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
4514 OPT_fshow_column to handled saved option cases.
4515 (append_compiler_options): Do not skip the above added options.
4517 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4520 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
4521 nopcrelative_literal_loads.
4522 (aarch64_classify_address): Likewise.
4523 (aarch64_constant_pool_reload_icode): Define.
4524 (aarch64_secondary_reload): Handle secondary reloads for
4526 (aarch64_override_options): Handle nopcrelative_literal_loads.
4527 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
4528 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4530 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4531 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
4532 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
4534 * doc/invoke.texi (mpc-relative-literal-loads): Document.
4536 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
4539 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
4540 sync_compare_and_swap_optab libcall to target_oval.
4542 2015-09-14 Marek Polacek <polacek@redhat.com>
4544 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
4546 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
4548 2015-09-11 Mark Wielaard <mjw@redhat.com>
4551 * toplev.c (check_global_declaration): Check and use
4552 warn_unused_const_variable.
4553 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
4554 (-Wunused-variable): Remove non-constant. For C implies
4555 -Wunused-const-variable.
4556 (-Wunused-const-variable): New.
4558 2015-09-14 Richard Biener <rguenther@suse.de>
4560 * doc/match-and-simplify.texi: Update for changed syntax
4561 of inner ifs and the new switch expression.
4563 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
4565 * config/i386/haswell.md: New file describing Haswell pipeline.
4566 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
4567 haswell-like processors.
4568 (ix86_reassociation_width): Increase reassociation width for 64-bit
4569 Haswell processor family.
4570 * config/i386/i386.md: Introduce haswell cpu and include new md file.
4572 2015-09-14 Richard Biener <rguenther@suse.de>
4574 * doc/match-and-simplify.texi: Fixup some formatting issues
4575 and document the 's' flag.
4577 2015-09-13 Olivier Hainque <hainque@adacore.com>
4578 Eric Botcazou <ebotcazou@adacore.com>
4580 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
4581 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
4582 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
4583 (TARGET_CPU_gr5): Likewise.
4584 (TARGET_CPU_gr6): Likewise.
4585 (MULTILIB_DEFAULTS): Likewise.
4586 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
4587 for mcpu=gr5 and mcpu=gr6.
4588 (MULTILIB_DIRNAMES): Adjust accordingly.
4590 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4592 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
4593 (mem_ref_p): Likewise.
4594 (outermost_indep_loop): Adjust.
4595 (mem_ref_in_stmt): Likewise.
4596 (determine_max_movement): Likewise.
4597 (mem_ref_alloc): Likewise.
4598 (record_mem_ref_loc): Likewise.
4599 (set_ref_stored_in_loop): Likewise.
4600 (mark_ref_stored): Likewise.
4601 (gather_mem_refs_stmt): Likewise.
4602 (mem_refs_may_alias_p): Likewise.
4603 (for_all_locs_in_loop): Likewise.
4604 (struct rewrite_mem_ref_loc): Likewise.
4605 (rewrite_mem_refs): Likewise.
4606 (struct first_mem_ref_loc_1): Likewise.
4607 (first_mem_ref_loc): Likewise.
4608 (struct sm_set_flag_if_changed): Likewise.
4609 (execute_sm_if_changed_flag_set): Likewise.
4610 (execute_sm): Likewise.
4611 (hoist_memory_references):
4612 (struct ref_always_accessed): Likewise.
4613 (ref_always_accessed_p): Likewise.
4614 (refs_independent_p): Likewise.
4615 (record_dep_loop): Likewise.
4616 (ref_indep_loop_p_1): Likewise.
4617 (ref_indep_loop_p_2): Likewise.
4618 (ref_indep_loop_p): Likewise.
4619 (can_sm_ref_p): Likewise.
4620 (find_refs_for_sm): Likewise.
4621 (tree_ssa_lim_finalize): Likewise.
4623 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4625 * dwarf2out.c (dw_attr_ref): Remove typedef.
4626 (dw_line_info_ref): Likewise.
4627 (pubname_ref): Likewise.
4628 (dw_ranges_ref): Likewise.
4629 (dw_ranges_by_label_ref): Likewise.
4630 (comdat_type_node_ref): Likewise.
4632 (get_AT_low_pc): Likewise.
4633 (get_AT_hi_pc): Likewise.
4634 (get_AT_string): Likewise.
4635 (get_AT_flag): Likewise.
4636 (get_AT_unsigned): Likewise.
4637 (get_AT_ref): Likewise.
4638 (get_AT_file): Likewise.
4639 (remove_AT): Likewise.
4640 (print_die): Likewise.
4641 (check_die): Likewise.
4642 (die_checksum): Likewise.
4643 (attr_checksum_ordered): Likewise.
4644 (struct checksum_attributes): Likewise.
4645 (collect_checksum_attributes): Likewise.
4646 (die_checksum_ordered): Likewise.
4647 (same_die_p): Likewise.
4648 (is_declaration_die): Likewise.
4649 (clone_die): Likewise.
4650 (clone_as_declaration): Likewise.
4651 (copy_declaration_context): Likewise.
4652 (break_out_comdat_types): Likewise.
4653 (copy_decls_walk): Likewise.
4654 (output_location_lists): Likewise.
4655 (external_ref_hasher::hash): Likewise.
4656 (optimize_external_refs_1): Likewise.
4657 (build_abbrev_table): Likewise.
4658 (size_of_die): Likewise.
4659 (unmark_all_dies): Likewise.
4660 (size_of_pubnames): Likewise.
4661 (output_die_abbrevs): Likewise.
4662 (output_die): Likewise.
4663 (output_pubnames): Likewise.
4664 (add_ranges_num): Likewise.
4665 (add_ranges_by_labels): Likewise.
4666 (add_high_low_attributes): Likewise.
4667 (gen_producer_string): Likewise.
4668 (dwarf2out_set_name): Likewise.
4669 (new_line_info_table): Likewise.
4670 (prune_unused_types_walk_attribs): Likewise.
4671 (prune_unused_types_update_strings): Likewise.
4672 (prune_unused_types): Likewise.
4673 (resolve_addr): Likewise.
4674 (optimize_location_lists_1): Likewise.
4675 (index_location_lists): Likewise.
4676 (dwarf2out_finish): Likewise.
4678 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4680 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
4682 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4684 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
4685 (dump_asserts_for): Adjust.
4686 (register_new_assert_for): Likewise.
4687 (process_assert_insertions): Likewise.
4688 (insert_range_assertions): Likewise.
4690 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4692 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
4694 (new_temp_expr_table): Adjust.
4695 (free_temp_expr_table): Likewise.
4696 (version_to_be_replaced_p): Likewise.
4697 (make_dependent_on_partition): Likewise.
4698 (add_to_partition_kill_list): Likewise.
4699 (remove_from_partition_kill_list): Likewise.
4700 (add_dependence): Likewise.
4701 (finished_with_expr): Likewise.
4702 (process_replaceable): Likewise.
4703 (kill_expr): Likewise.
4704 (kill_virtual_exprs): Likewise.
4705 (mark_replaceable): Likewise.
4706 (find_replaceable_in_bb): Likewise.
4707 (find_replaceable_exprs): Likewise.
4708 (debug_ter): Likewise.
4710 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4712 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
4713 (struct btr_user): Rename from btr_user_s.
4714 (struct btr_def): Rename from btr_def_s.
4715 (find_btr_def_group): Adjust.
4716 (add_btr_def): Likewise.
4717 (new_btr_user): Likewise.
4718 (note_other_use_this_block): Likewise.
4719 (compute_defs_uses_and_gen): Likewise.
4720 (link_btr_uses): Likewise.
4721 (build_btr_def_use_webs): Likewise.
4722 (block_at_edge_of_live_range_p): Likewise.
4723 (btr_def_live_range): Likewise.
4724 (combine_btr_defs): Likewise.
4725 (move_btr_def): Likewise.
4726 (migrate_btr_def): Likewise.
4727 (migrate_btr_defs): Likewise.
4729 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4731 * var-tracking.c (shared_hash_def): Rename to shared_hash.
4732 (shared_hash): Remove typedef.
4733 (struct dataflow_set): Adjust.
4734 (shared_hash_unshare): Likewise.
4735 (dataflow_set_merge): Likewise.
4736 (vt_initialize): Likewise.
4737 (vt_finalize): Likewise.
4739 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4741 * var-tracking.c (struct location_chain): Rename from
4743 (struct variable_part): Adjust.
4744 (variable_htab_free): Likewise.
4745 (unshare_variable): Likewise.
4746 (get_init_value): Likewise.
4747 (get_addr_from_local_cache): Likewise.
4748 (drop_overlapping_mem_locs): Likewise.
4749 (val_reset): Likewise.
4750 (struct variable_union_info): Likewise.
4751 (variable_union): Likewise.
4752 (find_loc_in_1pdv): Likewise.
4753 (insert_into_intersection): Likewise.
4754 (intersect_loc_chains): Likewise.
4755 (canonicalize_loc_order_check): Likewise.
4756 (canonicalize_values_mark): Likewise.
4757 (canonicalize_values_star): Likewise.
4758 (canonicalize_vars_star): Likewise.
4759 (variable_merge_over_cur): Likewise.
4760 (remove_duplicate_values): Likewise.
4761 (variable_post_merge_new_vals): Likewise.
4762 (variable_post_merge_perm_vals): Likewise.
4763 (find_mem_expr_in_1pdv): Likewise.
4764 (dataflow_set_preserve_mem_locs): Likewise.
4765 (dataflow_set_remove_mem_locs): Likewise.
4766 (variable_part_different_p): Likewise.
4767 (onepart_variable_different_p): Likewise.
4768 (find_src_set_src): Likewise.
4769 (dump_var): Likewise.
4770 (set_slot_part): Likewise.
4771 (clobber_slot_part): Likewise.
4772 (delete_slot_part): Likewise.
4773 (vt_expand_var_loc_chain): Likewise.
4774 (emit_note_insn_var_location): Likewise.
4775 (vt_finalize): Likewise.
4777 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4779 * dse.c (store_info_t): Remove typedef.
4780 (group_info_t): Likewise.
4781 (const_group_info_t): Likewise.
4782 (deferred_change_t): Likewise.
4783 (get_group_info): Adjust.
4784 (free_store_info): Likewise.
4785 (canon_address): Likewise.
4786 (clear_rhs_from_active_local_stores): Likewise.
4787 (record_store): Likewise.
4788 (replace_read): Likewise.
4789 (check_mem_read_rtx): Likewise.
4790 (scan_insn): Likewise.
4791 (remove_useless_values): Likewise.
4792 (dse_step1): Likewise.
4793 (dse_step2_init): Likewise.
4794 (dse_step2_nospill): Likewise.
4795 (scan_stores_nospill): Likewise.
4796 (scan_reads_nospill): Likewise.
4797 (dse_step3_exit_block_scan): Likewise.
4798 (dse_step3): Likewise.
4799 (dse_step5_nospill): Likewise.
4800 (dse_step6): Likewise.
4802 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4804 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
4805 (alias_set_entry): Remove typedef.
4806 (alias_set_subset_of): Adjust.
4807 (alias_sets_conflict_p): Likewise.
4808 (init_alias_set_entry): Likewise.
4809 (get_alias_set): Likewise.
4810 (new_alias_set): Likewise.
4811 (record_alias_subset): Likewise.
4813 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
4815 * doc/install.texi (Downloading the source): Mark up
4816 contrib/download_prerequisites properly and drop leading "./".
4818 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4820 * config/arc/arc.h: Remove define of STRUCT_VALUE.
4821 * config/lm32/lm32.h: Likewise.
4822 * config/mep/mep.h: Likewise.
4823 * config/visium/visium.h: Likewise.
4824 * system.h: Poison STRUCT_VALUE macro.
4826 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
4828 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
4829 CONSTANT_P operands.
4831 2015-09-11 David S. Miller <davem@davemloft.net>
4833 * config/sparc/constraints.md: Make "U" constraint a real register
4835 * config/sparc/sparc.c (TARGET_LRA_P): Define.
4836 (D_MODES, DF_MODES): Add missing cast.
4837 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4838 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4839 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4841 * config/sparc/sparc.h (PROMOTE_MODE): Define.
4842 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4843 provide these insn when flag_pic.
4845 2015-09-11 Jeff Law <law@redhat.com>
4847 PR tree-optimization/47679
4848 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
4849 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
4850 member with m_. Update inline member functions as necessary. Add
4852 * tree-ssa-scopedtables.c: Update const_and_copies's member
4853 functions to use m_ prefix to access the stack.
4855 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
4857 * graphite-optimize-isl.c (disable_tiling): Remove.
4858 (get_schedule_for_band): Do not use disable_tiling.
4859 (get_prevector_map): Delete function.
4860 (enable_polly_vector): Remove.
4861 (get_schedule_for_band_list): Remove dead code.
4863 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
4865 * graphite-optimize-isl.c (get_tile_map): Refactor.
4866 (get_schedule_for_band): Same.
4867 (getScheduleForBand): Same.
4868 (get_prevector_map): Same.
4869 (get_schedule_for_band_list): Same.
4870 (get_schedule_map): Same.
4871 (get_single_map): Same.
4872 (apply_schedule_map_to_scop): Same.
4873 (optimize_isl): Same.
4875 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4878 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
4880 * config/aarch64/iterators.md (GPF_TF_F16): New.
4883 2015-09-10 Nathan Sidwell <nathan@acm.org>
4885 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
4886 (nvptx_reorg): Adjust comments.
4888 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
4891 * configure.ac: Check if setenv and unsetenv are declared.
4892 * configure: Rebuild.
4893 * config.in: Rebuild.
4894 * system.h: Declare setenv and unsetenv if not declared.
4896 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4898 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
4899 commentary to simplify permute mask adjustment equation.
4900 (special_handling_values): Add SH_VPERM.
4901 (const_load_sequence_p): New function.
4902 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
4903 the mask loaded from the constant pool.
4904 (adjust_vperm): New function.
4905 (handle_special_swappables): Call adjust_vperm.
4906 (dump_swap_insn_table): Handle SH_VPERM.
4908 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
4910 * shrink-wrap.c (requires_stack_frame_p): Remove static.
4911 * shrink-wrap.h (requires_stack_frame_p): Put back.
4913 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
4915 * reload1.c (elimination_costs_in_insn): Locally turn
4916 -Wmaybe-uninitialized into a warning.
4918 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
4920 * shrink-wrap.c (requires_stack_frame_p): Make static.
4921 (prepare_shrink_wrap): Likewise.
4922 (dup_block_and_redirect): Likewise.
4923 * shrink-wrap.h: Remove declarations of those functions.
4925 2015-09-10 Mark Wielaard <mjw@redhat.com>
4927 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
4929 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
4932 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
4933 missing simplify_gen_subreg.
4935 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4937 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
4938 the vector element is bigger than 64 bit.
4940 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4942 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
4943 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
4945 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4947 * config/s390/s390.c: Add V1TImode to constant pool modes.
4949 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4952 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
4953 predicate. Set predicable_short_it attr to "no".
4955 2015-09-10 Jiong Wang <jiong.wang@arm.com>
4957 PR rtl-optimization/67421
4958 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
4959 left wide shift tranformation.
4961 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
4963 * common/config/arc/arc-common.c: Remove references to A5.
4964 * config/arc/arc-opts.h: Likewise.
4965 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
4966 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
4967 * config/arc/t-arc-newlib: Likewise.
4969 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
4971 * config/arc/arc.md (length): Fix attribute length for conditional
4972 executed instructions with long immediate.
4974 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4976 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
4977 type for second alternative.
4979 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
4981 * doc/invoke.texi (Downloading GCC): Mention
4982 contrib/download_prerequisites script.
4984 2015-09-10 Jakub Jelinek <jakub@redhat.com>
4987 * gimplify.c (gimplify_omp_for): If inner stmt is not found
4988 for combined loop, assert seen_error () and return GS_ERROR.
4991 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
4992 if decl is already in outer->variables.
4995 * gimplify.c (gimplify_scan_omp_clauses): Instead of
4996 asserting that decl is not specified in octx->variables,
4997 break out of the loop if it is.
5000 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5001 iterator is not explicitly determined, but is defined inside
5002 of the combined workshare region, handle it like if it has
5003 DECL_EXPR in OMP_FOR_PRE_BODY.
5005 2015-09-09 Nathan Sidwell <nathan@acm.org>
5007 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5008 (*cmp<mode>): Add assembler spacing.
5009 (setcc_int<mode>, set_cc_float<mode>): Likewise.
5010 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5012 (write_func_decl_from_insn): Refactor argument loops & comma emission.
5013 (nvptx_expand_call): Likewise.
5014 (nvptx_output_call_insn): Likewise.
5015 (nvptx_reorg_subreg): Add spacing.
5017 2015-09-09 Marek Polacek <polacek@redhat.com>
5020 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5023 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5026 * doc/invoke.texi ([Wsubobject-linkage]): Document.
5028 2015-09-09 Tom de Vries <tom@codesourcery.com>
5030 * params-list.h: Add missing copyright notice.
5032 2015-09-09 Nathan Sidwell <nathan@acm.org>
5034 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5035 sel_truesi, not andsi.
5037 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5039 * config/arm/arm.md (*subsi3_compare0): Rename to...
5040 (subsi3_compare0): ... This.
5041 (modsi3): New define_expand.
5042 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5043 when operand is power of 2.
5045 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5047 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5048 (*neg<mode>2_compare0): Rename to...
5049 (neg<mode>2_compare0): ... This.
5050 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5051 Move check for speed inside the if-then-elses. Reflect
5052 CSNEG sequence in MOD by power of 2 case.
5054 2015-09-09 Alan Modra <amodra@gmail.com>
5057 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5058 reload replacement for PRE_MODIFY address reg.
5060 2015-09-09 Sebastian Pop <s.pop@samsung.com>
5062 PR tree-optimization/53852
5063 * config.in: Regenerate.
5064 * configure: Regenerate.
5065 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5066 * graphite-optimize-isl.c (optimize_isl): Stop computation when
5067 PARAM_MAX_ISL_OPERATIONS is reached.
5068 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5069 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5070 result equal to isl_stat_ok as the status now can be isl_error_quota.
5071 (subtract_commutative_associative_deps): Same.
5072 (compute_deps): Same.
5074 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5075 Sebastian Pop <s.pop@samsung.com>
5077 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5078 Return the parameter if it was saved in corresponding
5079 parameter_rename_map of the region.
5080 (copy_def): Copy def from sese region to the newly created region.
5081 (copy_internal_parameters): Copy all the internal parameters defined
5082 within a region to the newly created region.
5083 (graphite_regenerate_ast_isl): Copy parameters to the new region before
5084 translating isl to gimple.
5085 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5086 the loop-nest does not have any data-references.
5087 (build_graphite_scops): Create a scop only when there is at least one
5089 (contains_only_close_phi_nodes): Deleted.
5090 (print_graphite_scop_statistics): Deleted
5091 (print_graphite_statistics): Deleted
5092 (limit_scops): Deleted.
5093 (build_scops): Removed call to limit_scops.
5094 * sese.c (new_sese): Construct.
5095 (free_sese): Destruct.
5096 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5098 (set_rename): Pass sese region so that parameters inside the region can
5099 be added to its parameter_rename_map.
5100 (rename_uses): Pass sese region.
5101 (graphite_copy_stmts_from_block): Do not copy parameters that have been
5102 generated in the header of the scop. For each SSA_NAME in the
5103 parameter_rename_map rename its usage.
5104 (invariant_in_sese_p_rec): Return false if tree t is defined outside
5106 (scalar_evolution_in_region): If the tree t is invariant just return t.
5107 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5108 struct sese to keep track of all the parameters which need renaming.
5109 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5111 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5113 2015-09-08 Tom de Vries <tom@codesourcery.com>
5115 * Makefile.in (generated_files): Add params.list.
5116 (params.list, s-params.list): Add rule.
5117 * params.h (enum compiler_param): Include params-list.h. Move define
5118 DEFPARAM, include params.def and undef DEFPARAM ...
5119 * params-list.h: ... here. New file.
5121 2015-09-08 David Malcolm <dmalcolm@redhat.com>
5123 * pretty-print.h (printer_fn): Fix typo in comment.
5125 2015-09-07 Jeff Law <law@redhat.com>
5127 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5129 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5131 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5132 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5133 (arm_neon_fp16_hw): New.
5135 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5137 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5138 UNITS_PER_WORD >= 4.
5140 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5142 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5143 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5144 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5145 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5146 (aarch64_float_extend_lo_v2df): Rename to...
5147 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5149 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5150 (float_extend_lo): Add v4sf.
5152 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5153 * config/aarch64/iterators.md (VQ_HSF): New iterator.
5154 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5155 (Vwide): New mode_attr.
5157 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5159 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5160 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5161 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5162 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5163 V4HF and V8HF variants to iterator.
5165 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5167 * config/aarch64/iterators.md (VDQF_F16): New.
5168 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5170 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5172 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5173 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5174 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5175 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5176 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5177 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5178 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5179 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5180 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5181 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5182 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5183 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5184 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5185 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5186 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5187 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5188 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5189 vld1q_dup_f16): New.
5191 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5193 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5194 Reparameterize to...
5195 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5196 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5197 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5199 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5201 (float_truncate_lo_): Use BUILTIN_VDF iterator.
5203 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5205 * config/aarch64/iterators.md (VDF, Vdtype): New.
5206 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5208 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5210 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5211 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5212 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5213 Add __builtin_aarch64_simd_hf.
5214 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5215 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5216 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5217 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5218 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5219 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5220 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5221 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5222 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5224 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5225 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5226 (VDC, Vdbl): Add V4HF.
5228 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5230 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
5231 V4HFmode and V8HFmode.
5232 (aarch64_split_simd_move): Add case for V8HFmode.
5233 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
5234 (aarch64_simd_builtin_std_type): Handle HFmode.
5235 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
5237 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
5238 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
5239 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
5241 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
5244 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
5245 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
5247 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
5248 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
5249 vst1q_lane_f16): New.
5250 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
5251 (VALLDI_F16, VALL_F16): New.
5252 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
5253 Add cases for V4HF and V8HF.
5254 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
5256 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5258 * config/arm/arm-builtins.c (VAR11, VAR12): New.
5259 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
5260 vld4_dup): Add v4hf variant.
5261 (vget_high, vget_low): Add v8hf variant.
5262 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
5263 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
5264 v4hf and v8hf variants.
5266 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
5268 (V_DOUBLE): Add case for V4HF.
5270 (V_HALF): Add case for V8HF.
5271 (VDQX): Add V4HF, V8HF.
5272 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
5273 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
5275 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
5276 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
5277 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
5278 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
5279 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
5280 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
5281 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
5282 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
5283 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
5285 (neon_vcreate, neon_vreinterpretv8qi<mode>,
5286 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5287 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
5288 Change VDX to VD_RE.
5290 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
5291 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
5292 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
5294 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
5295 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
5296 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
5297 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
5298 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
5299 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
5300 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
5301 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
5302 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
5304 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5306 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
5307 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
5308 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
5309 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
5310 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5311 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
5312 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
5313 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
5314 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
5315 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
5318 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5320 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
5322 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
5324 * config/arm/arm-builtins.c (v8hf_UP): New.
5325 (arm_init_simd_builtin_types): Initialise Float16x8_t.
5327 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
5329 * config/arm/arm_neon.h (float16x8_t): New typedef.
5331 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
5333 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
5334 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
5335 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
5336 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
5337 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5338 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
5339 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
5340 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
5341 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5342 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
5344 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
5346 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
5347 non-alphanumeric characters in the symbol name.
5349 2015-09-07 Marek Polacek <polacek@redhat.com>
5352 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
5355 2015-09-07 Marek Polacek <polacek@redhat.com>
5357 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
5359 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
5361 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
5364 2015-09-04 Jakub Jelinek <jakub@redhat.com>
5367 * tree-ssa-live.c: Include cfgloop.h.
5368 (remove_unused_locals): Clear loop->simduid if simduid is about
5369 to be removed from cfun->local_decls.
5371 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5374 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
5377 2015-09-04 Tom de Vries <tom@codesourcery.com>
5379 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
5381 2015-09-04 Jeff Law <law@redhat.com>
5383 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
5384 unnecessary constructor. It's now trivial and implemented inside...
5385 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
5386 constructor. Add comments to various methods. Remove unused
5388 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
5389 * tree-vrp.c (identify_jump_threads): Likewise.
5390 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
5392 (thread_across_edge): Similarly.
5393 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
5394 arguments in constructor call.
5396 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
5398 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
5399 temp path contains a '-'.
5401 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
5402 Petr Murzin <petr.murzin@intel.com>
5403 Kirill Yukhin <kirill.yukhin@intel.com>
5405 * config/i386/i386-builtin-types.def
5406 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
5407 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
5408 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
5409 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
5410 * config/i386/i386.c
5411 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
5412 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5413 IX86_BUILTIN_SCATTERALTDIV16SI.
5414 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
5415 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
5416 __builtin_ia32_scatteraltdiv8si.
5417 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
5418 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
5419 IX86_BUILTIN_SCATTERALTDIV16SI.
5420 (ix86_vectorize_builtin_scatter): New.
5421 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
5422 ix86_vectorize_builtin_scatter.
5424 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
5425 Petr Murzin <petr.murzin@intel.com>
5426 Kirill Yukhin <kirill.yukhin@intel.com>
5428 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
5429 * doc/tm.texi: Regenerate.
5430 * target.def: Add scatter builtin.
5431 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
5432 for loads/stores in case of gather/scatter accordingly.
5433 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5434 STMT_VINFO_GATHER_P(S).
5435 (vect_check_gather): Rename to ...
5436 (vect_check_gather_scatter): this.
5437 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
5438 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
5439 (vect_check_gather_scatter): Use it instead of vect_check_gather.
5440 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
5441 variable and new checkings for it accordingly.
5443 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
5444 STMT_VINFO_GATHER_P(S).
5445 (vect_check_gather_scatter): Use it instead of vect_check_gather.
5446 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
5448 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5450 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
5452 (mulv16qi3): New define_expand.
5454 2015-09-03 Martin Sebor <msebor@redhat.com>
5457 * doc/extend.texi (Other Builtins): Document when the address
5458 of a built-in function can be taken.
5460 2015-09-03 Richard Biener <rguenther@suse.de>
5462 * dwarf2out.c (flush_limbo_die_list): Split out from ...
5463 (dwarf2out_early_finish): ... here.
5464 (dwarf2out_finish): Do not call dwarf2out_early_finish but
5465 flush_limbo_die_list. Assert we have no deferred asm names.
5467 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5469 * optabs.c (expand_binop): Don't create a broadcast vector with a
5470 source element wider than the inner mode.
5472 2015-09-03 Richard Biener <rguenther@suse.de>
5474 * varasm.c (output_constant): Use fold_convert instead of
5477 2015-09-03 Tom de Vries <tom@codesourcery.com>
5479 PR tree-optimization/65637
5480 * omp-low.c (expand_omp_for_static_chunk): Handle case that
5481 fin_bb has 2 predecessors.
5483 2015-09-03 Tom de Vries <tom@codesourcery.com>
5485 PR tree-optimization/65637
5486 * omp-low.c (find_phi_with_arg_on_edge): New function.
5487 (expand_omp_for_static_chunk): Fix inner loop phi.
5489 2015-09-03 Tom de Vries <tom@codesourcery.com>
5491 PR tree-optimization/65637
5492 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
5495 2015-09-03 Tom de Vries <tom@codesourcery.com>
5497 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
5499 2015-09-03 Tom de Vries <tom@codesourcery.com>
5501 * doc/invoke.texi (parloops-chunk-size): Add item.
5502 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
5503 * tree-parloops.c: Include params.h.
5504 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
5505 param parloops-chunk-size is used.
5507 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5510 * fold-const.c (fold_binary_loc) : Move
5511 Transform (x >> c) << c into x & (-1<<c) or
5512 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
5513 types using simplify and match.
5514 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
5515 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
5517 2015-09-03 Richard Biener <rguenther@suse.de>
5520 * tree-ssa-structalias.c (ctor_for_analysis): New function.
5521 (create_variable_info_for_1): Use ctor_for_analysis instead
5523 (create_variable_info_for): Likewise.
5525 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
5528 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
5529 in new callgraph edge.
5531 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
5536 * config/aarch64/aarch64-simd.md
5537 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
5538 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
5539 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
5540 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
5542 2015-09-02 Alan Modra <amodra@gmail.com>
5544 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
5545 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
5546 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
5548 2015-09-02 Alan Modra <amodra@gmail.com>
5551 * config/rs6000/predicates.md (current_file_function_operand): Don't
5552 return true for weak symbols.
5553 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
5555 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
5556 Andrew Bennett <andrew.bennett@imgtec.com>
5558 * config/mips/mips-opts.h (mips_cb_setting): New enum.
5559 * config/mips/mips-protos.h: Add definitions for
5560 mips_output_jump and mips_output_equal_conditional_branch
5561 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
5563 (mips_emit_compare): Add support for the MIPS R6 conditional
5565 (mips_process_sync_loop): Likewise.
5566 (mips_output_order_conditional_branch): Likewise.
5567 (mips16_build_call_stub): Change MIPS_CALL to
5569 (mips_print_operand_punctuation): Update 's' case to only
5570 apply to micromips r2.
5571 (mips_adjust_insn_length): Add support for forbidden slot
5573 (mips_avoid_hazard): Likewise.
5574 (mips_reorg_process_insns): Likewise.
5575 (mips_output_jump): New function.
5576 (mips_output_equal_conditional_branch): Likewise.
5577 (mips_output_conditional_branch): Use jrc/bc if compact
5578 branch support is enabled. Ensure the forbidden slots
5579 between the two branch instructions is filled with a nop.
5580 (mips_option_override): Add support to process the compact
5581 branch option and set the correct defaults. Prevent
5582 non-explict relocs being using for MIPS R6.
5583 (mips_trampoline_init): Add compact branch support.
5584 (mips_mult_zero_zero_cost): Allow zero initialisation of
5585 accumulators with TARGET_DSP.
5586 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
5587 (TARGET_CB_MAYBE): New define.
5588 (TARGET_CB_ALWAYS): New define.
5589 (ISA_HAS_DELAY_SLOTS): New define.
5590 (ISA_HAS_COMPACT_BRANCHES): New define.
5591 (ISA_HAS_JRC): New define.
5592 (MIPS_BRANCH_C): New define.
5593 (MIPS_CALL): Removed.
5594 (MICROMIPS_J): Removed.
5595 * config/mips/mips.md (compact_form): New attr.
5596 (hazard): Add support for forbidden slots.
5597 (define_delay): Add support for compact branches.
5598 (*branch_order<mode>): Likewise.
5599 (*branch_order<mode>_inverted): Likewise.
5600 (*branch_equality<mode>): Likewise.
5601 (*branch_equality<mode>_inverted): Likewise.
5602 (*jump_absolute): Likewise.
5603 (*jump_pic): Likewise.
5604 (indirect_jump): Use mips_output_jump to produce assembly output.
5605 (tablejump_<mode>"): Likewise.
5606 (*<optab>"): Likewise.
5607 (<optab>_internal): Likewise.
5608 (sibcall_internal): Likewise.
5609 (sibcall_value_internal): Likewise.
5610 (sibcall_value_multiple_internal): Likewise.
5611 (call_internal): Likewise.
5612 (call_split): Likewise.
5613 (call_internal_direct): Likewise.
5614 (call_direct_split): Likewise.
5615 (call_value_internal): Likewise.
5616 (call_value_split): Likewise.
5617 (call_value_internal_direct): Likewise.
5618 (call_value_direct_split): Likewise.
5619 (call_value_multiple_internal): Likewise.
5620 (call_value_multiple_split): Likewise.
5621 (mips_get_fcsr_mips16_<mode>): Likewise.
5622 (mips_set_fcsr_mips16_<mode>): Likewise.
5623 (tls_get_tp_mips16_<mode>): Likewise.
5624 * config/mips/mips.opt: Add -mcompact-branches option.
5625 * config/mips/predicates.md (order_operator): Ensure the
5626 conditional compact branches are only used if the ISA them.
5627 * doc/invoke.texi: Document -mcompact-branches option.
5629 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
5632 * lra-lives.c (process_bb_lives): Process move pseudos with the
5633 same value for copies and preferences
5634 * lra-constraints.c (match_reload): Create match reload pseudo
5635 with the same value from single dying input pseudo.
5637 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
5640 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
5642 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
5644 * trans-mem.c: Add contributed-by.
5645 * trans-mem.h: Same.
5647 2015-09-01 Richard Biener <rguenther@suse.de>
5649 * expr.c (expand_expr_real_1): For expanding TERed defs
5650 set the current location to that of the def if not UNKNOWN.
5652 2015-09-01 David Sherwood <david.sherwood@arm.com>
5654 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
5656 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5658 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
5659 then_cost, else_cost fields. Change branch_cost field to unsigned int.
5660 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
5662 (noce_simple_bbs): New function.
5663 (noce_try_move): Bail if basic blocks are not simple.
5664 (noce_try_store_flag): Likewise.
5665 (noce_try_store_flag_constants): Likewise.
5666 (noce_try_addcc): Likewise.
5667 (noce_try_store_flag_mask): Likewise.
5668 (noce_try_cmove): Likewise.
5669 (noce_try_minmax): Likewise.
5670 (noce_try_abs): Likewise.
5671 (noce_try_sign_mask): Likewise.
5672 (noce_try_bitop): Likewise.
5673 (bbs_ok_for_cmove_arith): New function.
5674 (noce_emit_all_but_last): Likewise.
5675 (noce_emit_insn): Likewise.
5676 (noce_emit_bb): Likewise.
5677 (noce_try_cmove_arith): Handle non-simple basic blocks.
5678 (insn_valid_noce_process_p): New function.
5679 (contains_mem_rtx_p): Likewise.
5680 (bb_valid_for_noce_process_p): Likewise.
5681 (noce_process_if_block): Allow non-simple basic blocks
5684 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
5686 * tree-ssa-dom.c (record_equivalences_from_phis,
5687 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
5688 (lookup_avail_expr): Likewise, and remove comment and unused temp.
5690 2015-09-01 Nick Clifton <nickc@redhat.com>
5692 * config/msp430/msp430.opt (mcpu): Fix typo.
5694 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5696 * config/aarch64/aarch64.c (aarch64_set_current_function):
5697 Re-layout any vector parameters have non-simd layout.
5698 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
5700 (aarch64_simd_expand_args): Delete call to the above.
5702 2015-08-31 Mike Frysinger <vapier@gentoo.org>
5704 * doc/invoke.texi (asan-stack): Add space before option.
5706 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
5708 * tree.h (zerop): New function.
5709 * tree.c (zerop): Likewise.
5710 (element_precision): Handle expressions.
5711 * match.pd (define_predicates): Add zerop.
5712 (x <= +Inf): Fix comment.
5713 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
5714 * fold-const.c (fold_binary_loc): ... here. Remove.
5716 2015-08-31 Richard Biener <rguenther@suse.de>
5719 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
5721 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
5723 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
5724 (CEXPI): New operator list.
5725 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
5726 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
5728 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
5730 2015-08-31 Tom de Vries <tom@codesourcery.com>
5732 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
5733 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
5735 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
5736 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
5737 (rewrite_into_loop_closed_ssa): ... here.
5738 (replace_uses_in_dominated_bbs): Remove function.
5739 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
5740 rewrite_into_loop_closed_ssa_1.
5742 2015-08-31 Michael Matz <matz@suse.de>
5744 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
5745 enter entry and exit blocks for reverse post order.
5747 2015-08-31 Richard Biener <rguenther@suse.de>
5749 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
5750 (lto_location_cache::current_sysp): Likewise.
5751 (output_block::current_sysp): Likewise.
5752 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
5753 (lto_location_cache::apply_location_cache): Properly record
5754 system header locations.
5755 (lto_location_cache::input_location): Input whether a file
5757 * lto-streamer-out.c (lto_output_location): Stream whether a file
5760 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5763 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
5765 2015-08-31 Tom de Vries <tom@codesourcery.com>
5767 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
5768 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
5769 Improve function header comments.
5771 2015-08-30 Michael Collison <michael.collison@linaro.org>
5774 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
5777 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5779 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
5780 special_handling bitfield.
5781 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
5782 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
5783 that represents a general xxpermdi.
5784 (insn_is_swappable_p): Add handling for vec_concat of two
5785 doublewords, which maps to a specific xxpermdi.
5786 (adjust_xxpermdi): New function.
5787 (adjust_concat): Likewise.
5788 (handle_special_swappables): Call adjust_xxpermdi and
5790 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
5792 2015-08-30 Rich Felker <dalias@libc.org>
5794 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
5795 case instead of sh[123456ble]-*-*.
5797 2015-08-29 Anatoly Sokolov <aesok@post.ru>
5799 * ira.c (print_unform_and_important_classes,
5800 print_translated_classes): Remove reg_class_names static array.
5801 (print_unform_and_important_classes): Rename to ...
5802 (print_uniform_and_important_classes): ... this.
5803 (ira_debug_allocno_classes): Update accordingly.
5805 2015-08-29 Tom de Vries <tom@codesourcery.com>
5807 PR tree-optimization/46193
5808 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
5811 2015-08-28 Jeff Law <law@redhat.com>
5814 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5815 unable to find X NE 0 in the tables, return X as the simplified
5817 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5818 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
5820 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5821 after removing the control flow statement and unnecessary edges.
5823 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
5826 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
5828 PR tree-optimization/67283
5829 * tree-sra.c (type_consists_of_records_p): Rename to...
5830 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5832 (completely_scalarize_record): Rename to...
5833 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
5835 (scalarize_elem): New.
5837 2015-08-28 Jiong Wang <jiong.wang@arm.com>
5839 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
5840 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
5841 (aarch64_symbol_type): Likewise.
5842 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5844 (aarch64_expand_mov_immediate): Likewise.
5845 (aarch64_print_operand): Likewise.
5846 (aarch64_classify_tls_symbol): Likewise.
5848 2015-08-28 Richard Biener <rguenther@suse.de>
5850 * cgraphunit.c (symbol_table::compile): Move early debug generation
5852 (symbol_table::finalize_compilation_unit): ... back here and
5853 add a !seen_error () guard.
5855 2015-08-27 Sebastian Pop <s.pop@samsung.com>
5857 * toplev.c (process_options): Do not use flag_loop_block,
5858 flag_loop_interchange, and flag_loop_strip_mine. Add check for
5859 flag_loop_optimize_isl.
5861 2015-08-27 Sebastian Pop <s.pop@samsung.com>
5863 * Makefile.in (OBJS): Remove graphite-blocking.o and
5864 graphite-interchange.o.
5865 * common.opt (floop-strip-mine, floop-interchange, floop-block):
5866 Alias of floop-nest-optimize.
5867 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
5868 Document as alias of -floop-nest-optimize.
5869 * graphite-blocking.c: Remove.
5870 * graphite-interchange.c: Remove.
5871 * graphite-optimize-isl.c: Include dumpfile.h.
5872 (getScheduleForBand): Add dump for tiled loops. Use
5873 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
5874 * graphite-poly.c (scop_max_loop_depth): Remove.
5875 (print_scattering_function_1): Remove.
5876 (print_scattering_function): Remove.
5877 (print_scattering_functions): Remove.
5878 (debug_scattering_function): Remove.
5879 (debug_scattering_functions): Remove.
5880 (apply_poly_transforms): Remove use of flag_loop_block,
5881 flag_loop_strip_mine, and flag_loop_interchange.
5882 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
5884 (print_pdr_access_layout): Remove.
5885 (print_pdr): Print ISL representation.
5886 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
5887 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
5889 (openscop_print_pbb_domain): Remove.
5890 (print_pbb): Remove call to print_scattering_function.
5891 (openscop_print_scop_context): Remove.
5892 (print_scop_context): Do not print matrices anymore.
5893 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
5894 SCOP_TRANSFORMED_SCHEDULE.
5895 (print_isl_set): Add printing of a new line.
5896 (print_isl_map): Same.
5897 (print_isl_aff): Same.
5898 (print_isl_constraint): Same.
5899 (loop_to_lst): Remove.
5900 (scop_to_lst): Remove.
5901 (lst_indent_to): Remove.
5902 (print_lst): Remove.
5903 (debug_lst): Remove.
5904 (dot_lst_1): Remove.
5906 (reverse_loop_at_level): Remove.
5907 (reverse_loop_for_pbbs): Remove.
5908 * graphite-poly.h (pdr_dim_iter_domain): Remove.
5909 (pdr_nb_params): Remove.
5910 (pdr_alias_set_dim): Remove.
5911 (pdr_subscript_dim): Remove.
5912 (pdr_iterator_dim): Remove.
5913 (pdr_parameter_dim): Remove.
5914 (same_pdr_p): Remove.
5915 (struct poly_scattering): Remove.
5916 (struct poly_bb): Remove _original, _transformed, _saved.
5917 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
5918 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
5919 (PBB_NB_LOCAL_VARIABLES): Remove.
5920 (PBB_NB_SCATTERING_TRANSFORM): Remove.
5921 (schedule_to_scattering): Remove.
5922 (number_of_write_pdrs): Remove.
5923 (pbb_dim_iter_domain): Remove.
5924 (pbb_nb_params): Remove.
5925 (pbb_nb_scattering_orig): Remove.
5926 (pbb_nb_scattering_transform): Remove.
5927 (pbb_nb_dynamic_scattering_transform): Remove.
5928 (pbb_nb_local_vars): Remove.
5929 (pbb_iterator_dim): Remove.
5930 (pbb_parameter_dim): Remove.
5931 (psco_scattering_dim): Remove.
5932 (psct_scattering_dim): Remove.
5933 (psct_local_var_dim): Remove.
5934 (psco_iterator_dim): Remove.
5935 (psct_iterator_dim): Remove.
5936 (psco_parameter_dim): Remove.
5937 (psct_parameter_dim): Remove.
5938 (psct_dynamic_dim): Remove.
5939 (psct_static_dim): Remove.
5940 (psct_add_local_variable): Remove.
5941 (new_lst_loop): Remove.
5942 (new_lst_stmt): Remove.
5945 (lst_add_loop_under_loop): Remove.
5946 (lst_depth): Remove.
5947 (lst_dewey_number): Remove.
5948 (lst_dewey_number_at_depth): Remove.
5951 (lst_find_pbb): Remove.
5952 (find_lst_loop): Remove.
5953 (lst_find_first_pbb): Remove.
5954 (lst_empty_p): Remove.
5955 (lst_find_last_pbb): Remove.
5956 (lst_contains_p): Remove.
5957 (lst_contains_pbb): Remove.
5958 (lst_create_nest): Remove.
5959 (lst_remove_from_sequence): Remove.
5960 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
5961 (lst_niter_for_loop): Remove.
5962 (pbb_update_scattering): Remove.
5963 (lst_update_scattering_under): Remove.
5964 (lst_update_scattering): Remove.
5965 (lst_insert_in_sequence): Remove.
5966 (lst_replace): Remove.
5967 (lst_substitute_3): Remove.
5968 (lst_distribute_lst): Remove.
5969 (lst_remove_all_before_including_pbb): Remove.
5970 (lst_remove_all_before_excluding_pbb): Remove.
5971 (struct scop): Remove original_schedule, transformed_schedule, and
5973 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
5974 (SCOP_SAVED_SCHEDULE): Remove.
5975 (poly_scattering_new): Remove.
5976 (poly_scattering_free): Remove.
5977 (poly_scattering_copy): Remove.
5978 (store_scattering_pbb): Remove.
5979 (store_lst_schedule): Remove.
5980 (restore_lst_schedule): Remove.
5981 (store_scattering): Remove.
5982 (restore_scattering_pbb): Remove.
5983 (restore_scattering): Remove.
5984 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
5985 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
5986 compute the scattering polyhedron dimension from the dimension of
5988 (build_scop_scattering): Update call to
5989 build_pbb_scattering_polyhedrons.
5990 (build_poly_scop): Remove call to scop_to_lst.
5991 * graphite.c (graphite_transform_loops): Add call to print_scop.
5992 (gate_graphite_transforms): Remove use of flag_loop_block,
5993 flag_loop_interchange, and flag_loop_strip_mine.
5995 2015-08-27 Sebastian Pop <s.pop@samsung.com>
5997 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
5998 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
5999 -floop-nest-optimize.
6000 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6001 (generate_luj_sepclass): Remove.
6002 (generate_luj_options): Remove.
6003 (set_options): Remove opt_luj.
6004 (scop_to_isl_ast): Remove opt_luj.
6005 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6006 flag_loop_unroll_jam.
6007 (getPrevectorMap_full): Remove.
6008 (getScheduleForBandList): Remove map_sepcl.
6009 (getScheduleMap): Same.
6010 (apply_schedule_map_to_scop): Remove sepcl.
6011 (optimize_isl): Same.
6012 * graphite-poly.c (apply_poly_transforms): Remove check for
6013 flag_loop_unroll_jam.
6014 (new_poly_bb): Remove map_sepclass.
6015 * graphite-poly.h (struct poly_bb): Same.
6016 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6017 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6018 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6019 * toplev.c (process_options): Remove flag_loop_unroll_jam.
6021 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
6024 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6026 (UNSPEC_ADD_CARRY): Remove.
6027 (addqi3_cconly_overflow): New expander.
6028 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6029 Adjust for changed add<mode>3_carry.
6030 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6031 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6032 (<plusminus_insn><mode>3_carry): Remove expander.
6033 (*<plusminus_insn><mode>3_carry): Split insn pattern to
6034 add<mode>3_carry and sub<mode>3_carry.
6035 (plusminus_carry_mnemonic): Remove code attribute.
6036 (add<mode>3_carry): Canonicalize insn pattern.
6037 (*addsi3_carry_zext): Ditto.
6038 (sub<mode>3_carry): Ditto.
6039 (*subsi3_carry_zext): Ditto.
6040 (adcx<mode>3): Remove insn pattern.
6041 (addcarry<mode>): New insn pattern.
6042 (subborrow<mode>): Ditto.
6043 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6044 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6045 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6046 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6047 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6048 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6049 Rewrite expander to not clobber carry flag chains.
6051 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
6053 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6054 instead of a rotate.
6056 2015-08-27 Marek Polacek <polacek@redhat.com>
6059 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6060 an entry into an irreducible region.
6062 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6064 * configure: Regenerate.
6066 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6068 PR tree-optimization/67283
6069 * tree-sra.c (type_consists_of_records_p): Rename to...
6070 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6072 (completely_scalarize_record): Rename to...
6073 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6074 (scalarize_elem): New.
6076 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6078 * tree-sra.c (completely_scalarize_var): Rename to...
6079 (create_total_scalarization_access): ... Here. Drop call to
6080 completely_scalarize_record.
6082 (analyze_all_variable_accesses): Replace completely_scalarize_var
6083 with create_total_scalarization_access and completely_scalarize_record.
6085 2015-08-27 Alan Modra <amodra@gmail.com>
6088 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6091 2015-08-27 Richard Biener <rguenther@suse.de>
6093 * passes.c (rest_of_decl_compilation): Guard early_global_decl
6094 call with !seen_error ().
6095 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6096 early debug generation and finish...
6097 (symbol_table::compile): ... here to put it after a !seen_error ()
6100 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6102 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6105 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6106 Andre Vieira <andre.simoesdiasvieira@arm.com>
6108 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6109 (*cb<optab><mode>1): Likewise.
6110 (*tb<optab><mode>1): Likewise.
6111 (*cb<optab><mode>1): Likewise.
6112 * config/aarch64/iterators.md (inv_cb): New code attribute.
6114 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6115 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6117 2015-08-27 Richard Biener <rguenther@suse.de>
6119 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6121 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
6123 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6126 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6128 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6131 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6133 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6134 floating point in VSX registers.
6135 (rs6000_output_move_128bit): Always print out the set insn if we
6136 can't generate an appropriate 128-bit move.
6137 (rs6000_generate_compare): Add support for IEEE 128-bit floating
6138 point in VSX registers comparisons.
6139 (rs6000_expand_float128_convert): Likewise.
6141 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6142 predicate for only GPR hard registers.
6144 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6145 modes to iterators. Add new iterators for moving 128-bit values in
6146 scalar FPR registers and VSX registers.
6147 (FMOVE128): Likewise.
6148 (FMOVE128_FPR): Likewise.
6149 (FMOVE128_GPR): Likewise.
6150 (FMOVE128_VSX): Likewise.
6151 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6156 (RELOAD): Add IEEE 128-bit floating point modes.
6157 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6158 floating point in VSX registers modes.
6159 (signbit<mode>2, IBM128 iterator): Likewise.
6160 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6161 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6163 (neg<mode>2, TFIFKF iterator): Likewise.
6164 (negtf2_internal): Likewise.
6166 (abs<mode>2, TFIFKF iterator): Likewise.
6167 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6168 VSX insn support for negate, absolute value, and negative absolute
6170 (ieee_128bit_vsx_neg<mode>2): Likewise.
6171 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6172 (ieee_128bit_vsx_abs<mode>2): Likewise.
6173 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6174 (ieee_128bit_vsx_nabs<mode>2): Likewise.
6175 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6176 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6177 floating point in VSX registers.
6178 (unpack<mode>_dm): Likewise.
6179 (unpack<mode>_nodm): Likewise.
6180 (pack<mode>): Likewise.
6181 (unpackv1ti): Likewise.
6182 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6183 (packv1ti): Likewise.
6184 (pack<mode>, FMOVE128_VSX iterator): Likewise.
6185 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6187 (extenddftf2_internal): Likewise.
6188 (trunctfdf2): Likewise.
6189 (trunctfdf2_internal2): Likewise.
6190 (fix_trunc_helper): Likewise.
6191 (fix_trunctfdi2"): Likewise.
6192 (floatditf2): Likewise.
6193 (floatuns<mode>tf2): Likewise.
6194 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6195 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6196 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6197 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6198 (float<SDI:mode><IFKF:mode>2): Likewise.
6199 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6201 2015-08-26 Renlin Li <renlin.li@arm.com>
6203 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6205 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6206 Jiong Wang <jiong.wang@arm.com>
6208 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6209 (tlsie_tiny_<mode>): New define_insn.
6210 (tlsie_tiny_sidi): Likewise.
6211 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6213 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6214 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6216 (aarch64_expand_mov_immediate): Likewise.
6217 (aarch64_print_operand): Likewise.
6218 (arch64_classify_tls_symbol): Likewise.
6220 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6222 * config/arm/arm-arches.def: Replace single value flags with
6223 an initializer built from ARM_FSET_MAKE_CPU1.
6224 * config/arm/arm-cores.def: Likewise.
6225 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6226 derivation from the ARM_CORE macro definition, use the given value
6228 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
6229 ARM_ARCH macro definition, use the given value instead.
6231 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6233 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
6235 (struct builtin_description): Replace field mask with field
6237 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
6238 (IWMMXT2_BUILTIN): Likewise.
6239 (IWMMXT2_BUILTIN2): Likewise.
6240 (FP_BUILTIN): Likewise.
6241 (CRC32_BUILTIN): Likewise.
6242 (CRYPTO_BUILTIN): Likewise.
6243 (iwmmx_mbuiltin): Likewise.
6244 (iwmmx2_mbuiltin): Likewise.
6245 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
6246 struct builtin_description.
6248 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6250 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
6251 (struct builtin_description): Change type of mask to unsigned
6253 * config/arm/arm-protos.h (insn_flags): Declare as type
6255 (tune_flags): Likewise.
6256 * config/arm/arm.c (feature_count): New.
6257 (insn_flags): Define as type arm_feature_set.
6258 (tune_flags): Likewise.
6259 (struct processors): Define field flags as type arm_feature_set.
6260 (all_cores): Update for change to struct processors.
6261 (all_architectures): Likewise.
6262 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
6264 (arm_option_override_internal): Likewise.
6265 (arm_option_override): Likewise.
6267 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
6268 Jiong Wang <jiong.wang@arm.com>
6270 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
6271 tls size for tiny, small, large memory model.
6272 (aarch64_load_symref_appropriately): Support new symbol types.
6273 (aarch64_expand_mov_immediate): Likewise.
6274 (aarch64_print_operand): Likewise.
6275 (aarch64_classify_tls_symbol): Likewise.
6276 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
6277 (aarch64_symbol_type): Likewise.
6278 * config/aarch64/aarch64.md (tlsle): Deleted.
6279 (tlsle12_<mode>): New define_insn.
6280 (tlsle24_<mode>): Likewise.
6281 (tlsle32_<mode>): Likewise.
6282 (tlsle48_<mode>): Likewise.
6283 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6286 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6288 * config/arm/arm-protos.h (FL_NONE): New.
6290 (arm_feature_set): New.
6291 (ARM_FSET_MAKE): New.
6292 (ARM_FSET_MAKE_CPU1): New.
6293 (ARM_FSET_MAKE_CPU2): New.
6294 (ARM_FSET_CPU1): New.
6295 (ARM_FSET_CPU2): New.
6296 (ARM_FSET_EMPTY): New.
6297 (ARM_FSET_ANY): New.
6298 (ARM_FSET_HAS_CPU1): New.
6299 (ARM_FSET_HAS_CPU2): New.
6300 (ARM_FSET_HAS_CPU): New.
6301 (ARM_FSET_ADD_CPU1): New.
6302 (ARM_FSET_ADD_CPU2): New.
6303 (ARM_FSET_DEL_CPU1): New.
6304 (ARM_FSET_DEL_CPU2): New.
6305 (ARM_FSET_UNION): New.
6306 (ARM_FSET_INTER): New.
6307 (ARM_FSET_XOR): New.
6308 (ARM_FSET_EXCLUDE): New.
6309 (AFM_FSET_IS_EMPTY): New.
6310 (ARM_FSET_CPU_SUBSET): New.
6312 2015-08-26 Jiong Wang <jiong.wang@arm.com>
6314 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6315 SYMBOL_TLSLE to SYMBOL_TLSLE24.
6316 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6318 (aarch64_expand_mov_immediate): Likewise.
6319 (aarch64_print_operand): Likewise.
6320 (aarch64_classify_symbol): Likewise.
6322 2015-08-26 Jiong Wang <jiong.wang@arm.com>
6324 * config/aarch64/aarch64.opt (mtls-size): New entry.
6325 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
6326 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
6327 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
6329 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
6331 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
6332 ARM_CORE entry. Fix some white-space.
6333 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
6334 ARM_CORE definition.
6336 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6338 * fold-const.c (fold_binary_loc) : Move Optimize
6339 root(x)*root(y) as root(x*y) to match.pd.
6340 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
6341 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
6342 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
6343 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
6344 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
6345 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
6346 (mult (exps:s @0) (exps:s @1)) : New simplifier.
6347 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
6348 (rdiv @0 (exps:s @1)) : New simplifier.
6350 2015-08-25 Joseph Myers <joseph@codesourcery.com>
6352 * gcc.c (driver::finalize): Only assign to extra_specs if
6355 2015-08-25 Marek Polacek <polacek@redhat.com>
6358 * varasm.c (declare_weak): Return after giving an error.
6360 2015-08-25 David Malcolm <dmalcolm@redhat.com>
6362 * gcc-main.c (main): Add params to driver ctor.
6363 * gcc.c (class env_manager): New.
6365 (env_manager::init): New.
6366 (env_manager::get): New.
6367 (env_manager::xput): New.
6368 (env_manager::restore): New.
6369 Poison getenv and putenv.
6370 (DEFAULT_TARGET_SYSTEM_ROOT): New.
6371 (target_system_root): Update initialization to use
6372 DEFAULT_TARGET_SYSTEM_ROOT.
6373 (struct spec_list): Add field "default_ptr".
6374 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
6375 (init_spec): Likewise.
6376 (set_spec): Clear field "default_ptr".
6377 (read_specs): Free "spec" and "buffer".
6378 (xputenv): Reimplement in terms of env_manager.
6379 (process_command): Replace ::getenv calls with calls to the
6380 env_manager singleton.
6381 (process_brace_body): Free string in three places.
6382 (driver::driver): New.
6383 (driver::~driver): New.
6384 (used_arg): Convert from a function to...
6385 (class used_arg_t): ...this class, and...
6386 (used_arg): ...this new global instance.
6387 (used_arg_t::finalize): New function.
6388 (getenv_spec_function): Add "const" to local "value". Replace
6389 ::getenv call with call to the env_manager singleton.
6390 (path_prefix_reset): New function.
6391 (driver::finalize): New function.
6392 * gcc.h (driver::driver): New.
6393 (driver::~driver): New.
6394 (driver::finalize): New.
6396 2015-08-25 Nathan Sidwell <nathan@acm.org>
6398 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
6399 target doesn't have one.
6401 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
6404 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
6406 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
6409 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
6410 a define_insn, remove second alternative.
6412 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
6413 Joseph Myers <joseph@codesourcery.com>
6415 * gcc.c (struct switchstr): Expand comment.
6417 2015-08-25 Nathan Sidwell <nathan@acm.org>
6419 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
6420 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
6422 2015-08-25 Richard Biener <rguenther@suse.de>
6425 * genmatch.c (expr::gen_transform): Verify the result of
6426 builtin_decl_implicit.
6427 (dt_simplify::gen_1): Likewise.
6429 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
6431 * config/arm/constraints.md: Also list Cs and US ARM-specific
6432 constraints as used.
6434 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
6437 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
6439 (nonpic_symbol_mentioned_p): Likewise.
6440 (sh_delegitimize_address): Likewise.
6441 (sh_function_ok_for_sibcall): Take into account weak symbols.
6442 (sh_expand_sym_label2reg): New.
6443 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
6444 * config/sh/sh.md (UNSPEC_PCREL): New enum.
6445 (call_pcrel): Use sh_expand_sym_label2reg.
6446 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
6447 (symPCREL_label2reg) New expand.
6449 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
6451 * graphite-poly.c: Change type of region from void* to sese.
6452 * graphite-poly.h (struct scop): Changing the type of scop::region
6453 from void* to sese. Change accessor macro accordingly.
6454 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
6456 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
6458 * graphite-scop-detection.c (stmt_simple_for_scop_p):
6459 Constrain only on INTEGER_TYPE.
6461 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6464 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
6465 -mefficient-unaligned-vsx on ISA 2.7.
6467 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
6468 option to a masked option.
6470 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
6471 logic for -mefficient-unaligned-vsx so that it is set via an arch
6472 ISA option, instead of being set if -mtune=power8 is set. Move
6473 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
6474 near other default option handling.
6476 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6478 * genflags.c (gen_macro): Delete.
6479 (gen_proto): Don't create GEN.*CALL.* macros.
6480 * gensupport.h (get_file_location): Declare.
6481 * gensupport.c (rtx_locs): New variable.
6482 (read_md_rtx): Record rtx locations.
6483 (get_file_location): New function.
6484 * target-insns.def (call, call_pop, call_value, call_value_pop)
6485 (sibcall, sibcall_value): New patterns.
6486 * gentarget-def.c (parse_argument): New function.
6487 (def_target_insn): Use it. Handle optional operands. Raise an
6488 error if an .md pattern has the wrong number of operands for the
6489 pattern name. Remove the names of unused operands from the prototype.
6490 * builtins.c (expand_builtin_apply): Use targetm functions
6491 instead of HAVE_call_value and GEN_CALL_VALUE.
6492 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
6493 and sibcall_value_pop.
6494 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
6496 * config/alpha/alpha.md (untyped_call): Likewise.
6497 * config/iq2000/iq2000.md (untyped_call): Likewise.
6498 * config/m68k/m68k.md (untyped_call): Likewise.
6499 * config/mips/mips.md (untyped_call): Likewise.
6500 * config/pa/pa.md (untyped_call): Likewise.
6501 * config/rs6000/rs6000.md (untyped_call): Likewise.
6502 * config/sparc/sparc.md (untyped_call): Likewise.
6503 * config/tilegx/tilegx.md (untyped_call): Likewise.
6504 * config/tilepro/tilepro.md (untyped_call): Likewise.
6505 * config/visium/visium.md (untyped_call): Likewise.
6506 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
6507 gen_call_value instead of GEN_CALL_VALUE.
6508 * config/arm/arm.md (untyped_call): Likewise.
6509 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
6512 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6514 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
6515 (have_cbranchcc4): New variable.
6516 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
6517 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
6518 (if_convert): Initialize have_cbranchcc4.
6520 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6522 * builtins.c (expand_cmpstrn): Rename to...
6523 (expand_cmpstrn_or_cmpmem): ...this.
6524 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
6525 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
6526 Remove mode argument.
6527 (expand_builtin): Update accordingly.
6529 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6531 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
6532 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
6533 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
6534 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
6535 Add predicates for operands 0 and 3.
6536 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
6538 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
6539 immediate_operand to nonmemory_operand.
6541 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6543 * df-scan.c (df_insn_info_init_fields): New function, split out
6545 (df_insn_create_insn_record): ...here.
6546 (df_insn_info_free_fields): New function, split out from...
6547 (df_insn_info_delete): ...here.
6548 (df_insn_rescan): Use the new functions instead of freeing and
6549 reallocating the df_insn_info.
6551 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6553 * doc/install.texi (Binaries): Remove links no longer valid.
6555 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6557 * config/nvptx/mkoffload.c (process): Replace
6558 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
6560 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
6563 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
6565 2015-08-24 Renlin Li <renlin.li@arm.com>
6567 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
6568 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
6569 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
6570 * config/arm/constraints.md ("j"): Add check for high code.
6572 2015-08-24 Tom de Vries <tom@codesourcery.com>
6574 PR tree-optimization/65468
6575 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
6578 2015-08-24 Nathan Sidwell <nathan@acm.org>
6580 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
6581 change to nvptx_type_from_mode call. Use arg_promotion for both
6582 split and non-split args.
6584 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6586 * target-insns.def (movstr): New pattern.
6587 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
6588 (expand_movstr): Use targetm rather than HAVE_movstr/
6591 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
6593 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
6596 2015-08-24 Andrew Pinski <apinski@cavium.com>
6598 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
6599 AARCH64_EXTRA_TUNING_OPTION.
6600 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
6602 (aarch64_extra_tuning_flags): Base the shifted value on the index
6603 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
6604 * config/aarch64/aarch64.c: Remove the last argument to
6605 AARCH64_EXTRA_TUNING_OPTION.
6607 2015-08-23 Nathan Sidwell <nathan@acm.org>
6609 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
6611 (nvptx_declare_function_name): Insert formatting tabs for
6614 2015-08-23 Tom de Vries <tom@codesourcery.com>
6616 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
6617 parm_decl, rather than generating a dummy default def in cfun.
6618 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
6619 ssa_name from cfun and child_fn do not share a stmt as def stmt.
6620 (move_stmt_op): Handle PARM_DECl.
6621 (gather_ssa_name_hash_map_from): New function.
6622 (move_sese_region_to_fn): Add default defs for function params, and add
6623 them to vars_map. Release copied ssa names.
6624 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
6626 2015-08-23 Tom de Vries <tom@codesourcery.com>
6628 * doc/sourcebuild.texi: Rename vect_no_int_max with
6629 vect_no_int_min_max. Update description.
6631 2015-08-22 Andrew Pinski <apinski@cavium.com>
6633 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
6634 * config/aarch64/aarch64-protos.h
6635 (aarch64_fusion_pairs_index): New enum.
6636 (aarch64_fusion_pairs): Base the shifted value on the index instead
6637 Rewrite AARCH64_FUSE_ALL to be based on the end index.
6638 of the argument to AARCH64_FUSION_PAIR.
6639 * config/aarch64/aarch64.c: Remove the last argument to
6640 AARCH64_FUSION_PAIR.
6642 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
6644 * dominance.c (new_zero_array): Define.
6645 (dom_info): Redefine as class with proper encapsulation.
6646 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
6648 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
6649 allocations/deallocations. Pass function as parameter (instead of
6651 (dom_info::get_idom): Define accessor method.
6652 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
6653 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
6654 (calculate_dominance_info): Adjust to use dom_info class.
6655 (verify_dominators): Likewise.
6657 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
6659 * print-rtl.c (print_rtx): Check the correct range for
6660 flag_dump_unnumbered_links to behave as documented.
6662 PR rtl-optimization/67227
6663 PR rtl-optimization/64164
6664 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
6665 (nonoverlapping_memrefs_p): Test offsets and sizes when given
6666 identical gimple_reg exprs.
6668 2015-08-21 Nathan Sidwell <nathan@acm.org>
6670 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
6672 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
6673 crtl->stack_alignment_needed to determine alignment.
6674 (nvptx_get_drap_rtx): New.
6675 (TARGET_GET_DRAP_RTX): Override.
6676 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
6678 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6680 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
6682 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6684 * configure.ac: Remove uwin* cases.
6685 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
6686 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
6687 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
6688 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
6689 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
6690 i[34567]86-*-uwin*, powerpc-*-beos*.
6692 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
6694 * gencodes.c (gencodes): Print the comma for the preceding
6695 enum value rather than the current one. Use aliased enum values
6696 rather than #defines for compiled-out patterns.
6697 (main): Update accordingly. Replace LAST_INSN_CODE with
6699 * lra.c (insn_code_data): Update accordingly.
6700 (finish_insn_code_data_once, get_static_insn_data): Likewise.
6701 * recog.h (target_recog): Likewise.
6702 (preprocess_insn_constraints): Change parameter to unsigned int.
6703 * recog.c (preprocess_insn_constraints): Likewise.
6704 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
6705 * tree-vect-stmts.c (vectorizable_operation): Simplify.
6707 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
6709 PR rtl-optimization/61657
6710 * loop-iv.c (iv_number_of_iterations): Declare up and down as
6711 unsigned. Remove superflous uint64_t cast.
6713 2014-08-21 Felix Yang <felix.yang@huawei.com>
6714 Jiji Jiang <jiangjiji@huawei.com>
6716 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
6717 argument and get builtin function code directly from CALL.
6718 (gimple_stringop_fixed_value): Modified accordingly.
6719 (gimple_stringops_transform, gimple_stringops_values_to_profile):
6720 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
6722 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
6724 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
6726 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6728 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
6730 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
6731 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
6732 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
6733 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
6734 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
6735 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
6736 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
6737 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
6738 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
6739 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
6741 * match.pd (SIN ) : New Operator.
6742 (TAN) : New Operator.
6743 (mult (SQRT@1 @0) @1) : New simplifier.
6744 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
6745 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6746 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
6747 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
6748 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
6749 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
6750 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
6751 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
6752 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
6753 (rdiv @0 (POW:s @1 @2)) : New simplifier.
6755 2015-08-21 Bin Cheng <bin.cheng@arm.com>
6757 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
6758 loop if EXPR is simplified to const value.
6760 2015-08-21 Yury Gribov <y.gribov@samsung.com>
6762 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6763 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
6765 2015-08-21 Richard Biener <rguenther@suse.de>
6768 * gimple-fold.c (replace_stmt_with_simplification): Assert
6769 seq is empty when replacing a call with itself but different
6771 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
6772 a call require that it is const.
6774 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6776 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
6777 * builtins.c (get_object_alignment_2): Adjust.
6778 * varasm.c (align_variable): Likewise.
6779 (get_variable_align): Likewise.
6780 (build_constant_desc): Likewise.
6781 (force_const_mem): Likewise.
6782 * doc/tm.texi.in: Likewise.
6783 * doc/tm.texi: Regenerate.
6785 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6787 * genconfig.c (main): Always define HAVE_cc0.
6788 * recog.c (rest_of_handle_peephole2): Adjust.
6790 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6792 * reorg.c (relax_delay_slots): Don't use #if to check value of
6795 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6797 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
6798 * targhooks.c (default_have_conditional_execution): Adjust.
6800 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
6802 * rtl.h (rtvec_all_equal_p): Declare.
6803 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
6804 * rtl.c (rtvec_all_equal_p): New function.
6805 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
6806 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
6807 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
6808 * config/arm/arm.c (neon_vdup_constant): Likewise.
6809 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
6810 * config/tilegx/constraints.md (W, Y): Likewise.
6811 * config/tilepro/constraints.md (W, Y): Likewise.
6812 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
6813 (classify_immediate): Use unwrap_const_vec_duplicate.
6814 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
6815 (reg_or_v2s8bit_operand): Likewise.
6816 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
6817 (reg_or_v4s8bit_operand): Likewise.
6819 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6821 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
6822 (vec_shasigma_be): New #define.
6823 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
6824 (VPMSUMH): Likewise.
6825 (VPMSUMW): Likewise.
6826 (VPMSUMD): Likewise.
6827 (VPMSUM): New BU_P8V_OVERLOAD_2.
6828 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
6829 entries for VEC_MADD and VEC_VPMSUM.
6831 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
6833 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
6834 Multiply argument avr_n_flash by 64 to match unit of "KiB".
6835 (avr_pgm_check_var_decl): Same.
6837 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
6839 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
6840 initialization of HFmode scalar type (float16_t) to...
6841 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
6844 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
6846 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
6847 having an -mfp16-format.
6849 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
6851 * config/i386/predicates.md (vector_all_ones_operand): Use
6852 CONSTM1_RTX to simplify definition.
6854 2015-08-20 Richard Biener <rguenther@suse.de>
6856 * toplev.c (compile_file): Remove loop calling late_global_decl
6858 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
6859 on decls we assembled.
6861 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
6863 * common/config/aarch64/aarch64-common.c
6864 (AARCH64_CPU_NAME_LENGTH): Delete.
6865 (aarch64_option_extension): New.
6866 (all_extensions): Likewise.
6867 (processor_name_to_arch): Likewise.
6868 (arch_to_arch_name): Likewise.
6870 (all_architectures): Likewise.
6871 (aarch64_get_extension_string_for_isa_flags): Likewise.
6872 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
6874 * config/aarch64/aarch64-protos.h
6875 (aarch64_get_extension_string_for_isa_flags): New.
6876 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
6877 (aarch64_option_print): Get the string to print from
6878 aarch64_get_extension_string_for_isa_flags.
6879 (aarch64_declare_function_name): Likewise.
6880 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
6881 (MCPU_TO_MARCH_SPEC): This.
6882 (ASM_CPU_SPEC): Use it.
6883 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
6884 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
6885 (EXTRA_SPEC_FUNCTIONS): Use it.
6887 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
6889 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
6890 expansion when !ISA_HAS_LWL_LWR.
6891 (mips_block_move_straight): Update the size of elements copied to
6892 account for alignment when !ISA_HAS_LWL_LWR.
6893 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
6895 2015-08-19 Jiong Wang <jiong.wang@arm.com>
6897 * expr.c (expand_expr_real_2): Check gimple statement during
6900 2015-08-19 Magnus Granberg <zorry@gentoo.org>
6902 * common.opt (fstack-protector): Initialize to -1.
6903 (fstack-protector-all): Likewise.
6904 (fstack-protector-strong): Likewise.
6905 (fstack-protector-explicit): Likewise.
6906 * configure.ac: Add --enable-default-ssp.
6907 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
6908 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
6910 * doc/install.texi: Document --enable-default-ssp.
6911 * config.in: Regenerated.
6912 * configure: Likewise.
6914 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
6916 PR rtl-optimization/64164
6917 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
6918 (parm_in_stack_slot_p): ... this. Disregard mode, what
6919 matters is whether the parm will live in a pseudo or a stack
6921 (expand_one_ssa_partition): Deal with params without a default
6922 def. Disregard mode.
6923 * cfgexpand.h: Renamed function declaration.
6924 * tree-ssa-coalesce.c: Adjust.
6925 * function.c (split_complex_args): Allocate stack slot for
6926 unassigned parms before splitting.
6927 (parm_in_unassigned_mem_p): New. Use it instead of
6928 parm_maybe_byref_p throughout this file.
6929 (assign_parm_setup_block): Use it. Accept pseudos in the
6930 expand-assigned rtl.
6931 (assign_parm_setup_reg): Drop BLKmode requirement.
6932 (assign_parm_setup_stack): Allocate and fill in the address of
6933 unassigned MEM parms.
6935 2015-08-19 David Sherwood <david.sherwood@arm.com>
6937 * genmodes.c (emit_mode_unit_size_inline): New function.
6938 (emit_mode_unit_precision_inline): New function.
6939 (emit_insn_modes_h): Emit new #define. Emit new functions.
6940 (emit_mode_unit_size): New function.
6941 (emit_mode_unit_precision): New function.
6942 (emit_mode_adjustments): Add mode_unit_size adjustments.
6943 (emit_insn_modes_c): Emit new arrays.
6944 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
6945 use new inline methods.
6947 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6949 * config/aarch64/aarch64.c (bit_count): Delete prototype
6951 (aarch64_print_operand): Use popcount_hwi instead of the above.
6953 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6955 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
6958 2015-08-19 Marek Polacek <polacek@redhat.com>
6961 * gimple-ssa-isolate-paths.c
6962 (insert_trap_and_remove_trailing_statements): Rename to ...
6963 (insert_trap): ... this. Don't remove trailing statements; split
6965 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
6967 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
6970 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
6971 conditionalize the whole on __GNUC__. Add fallback code
6972 depending neither on undefined nor implementation-defined behaviour.
6974 2015-08-19 Jiong Wang <jiong.wang@arm.com>
6976 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
6977 whitespaces with tab.
6979 2015-08-19 Florian Weimer <fweimer@redhat.com>
6981 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
6982 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
6983 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
6984 Move Name_Ids instantiation to the Prj.Proc package, to avoid
6987 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6989 * config/arm/arm.c (bounds_check): Use %wd print format
6990 for HOST_WIDE_INT arguments.
6992 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
6994 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
6995 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
6996 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
6997 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
6998 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
6999 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7000 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7001 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7002 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7005 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
7007 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7008 function.c, graphite-scop-detection.c, haifa-sched.c,
7009 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7010 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7011 varasm.c: Remove typedefs of structs.
7013 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7015 * config/rs6000/altivec.h (vec_adde): New define.
7016 (vec_addec): Likewise.
7017 (vec_double): Likewise.
7018 (vec_bperm): Likewise.
7020 * config/rs6000/rs6000-builtin.def (ADDE): New
7021 BU_ALTIVEC_OVERLOAD_3.
7023 (DOUBLE): New BU_VSX_OVERLOAD_1.
7024 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7025 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7026 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7027 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7028 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7029 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7030 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7031 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7032 and P8V_BUILTIN_VEC_VBPERMQ.
7034 2015-08-18 Jason Merrill <jason@redhat.com>
7036 * print-tree.c (print_node): Handle TREE_BINFO.
7038 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7041 * builtins.c (expand_builtin_signbit): Add asserts to make sure
7042 we can expand BUILT_IN_SIGNBIT inline.
7043 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7044 * doc/extend.texi: Document the type-generic __builtin_signbit.
7046 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
7048 PR rtl-optimization/67218
7049 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7050 (simplify_unary_operation_1): Use it.
7052 2015-08-18 Marek Polacek <polacek@redhat.com>
7055 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7056 if the call isn't valid.
7057 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7058 gimple_call_builtin_p.
7059 (call_may_clobber_ref_p_1): Likewise.
7060 (stmt_kills_ref_p): Likewise.
7062 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
7064 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7065 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7066 (mips_hard_regno_scratch_ok): Likewise.
7067 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7068 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7070 2015-08-18 Bin Cheng <bin.cheng@arm.com>
7072 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7073 (determine_value_range): Call refine_value_range_using_guard for
7074 each loop initial condition to improve value range.
7076 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
7078 * config/i386/i386.c: Remove include of fibheap.h.
7080 2015-08-17 Richard Biener <rguenther@suse.de>
7082 PR tree-optimization/67221
7083 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7084 (sccvn_dom_walker::before_dom_children): Mark backedges of
7085 non-executable blocks as not executable.
7087 2015-08-17 David Sherwood <david.sherwood@arm.com>
7089 * config/arm/arm.c (neon_element_bits): Replace call to
7090 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7091 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7092 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7093 (neon_vdup_lane<mode>): Likewise.
7094 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7095 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7096 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7097 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7098 * config/spu/spu.c (arith_immediate_p): Likewise.
7099 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7100 * expr.c (expand_expr_real_2): Likewise.
7101 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7102 * simplify-rtx.c (simplify_immed_subreg): Likewise.
7103 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7104 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7106 * fold-const.c (fold_binary_loc): Replace call to
7107 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7108 GET_MODE_UNIT_PRECISION (m).
7110 2015-08-17 Mike Stump <mikestump@comcast.net>
7112 * config/arm/arm.c (arm_block_move_unaligned_straight):
7113 Emit normal move instead of unaligned load when source or destination
7114 are appropriately aligned.
7116 2015-08-17 Richard Biener <rguenther@suse.de>
7117 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7120 * match.pd (div (coss (op @0) : New simplifier.
7122 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
7124 PR rtl-optimization/64164
7127 PR rtl-optimization/67000
7130 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7131 * tree-ssa-copyrename.c: Removed.
7132 * opts.c (default_options_table): Drop -ftree-copyrename. Add
7133 -ftree-coalesce-vars.
7134 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7135 * common.opt (ftree-copyrename): Ignore.
7136 (ftree-coalesce-inlined-vars): Likewise.
7137 * doc/invoke.texi: Remove the ignored options above.
7138 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7139 * tree-ssa-coalesce.h: ... here.
7140 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7141 headers required by it.
7142 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7143 across variables when flag_tree_coalesce_vars. Check register
7144 use and promoted modes to allow coalescing. Do not coalesce
7145 maybe-byref parms with SSA_NAMEs of other variables, or
7146 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
7147 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7148 with its member functions to tree-ssa-coalesce.c.
7149 (var_map_base_init): Likewise. Renamed to
7150 compute_samebase_partition_bases.
7151 (partition_view_normal): Drop want_bases parameter.
7152 (partition_view_bitmap): Likewise.
7153 * tree-ssa-live.h: Adjust declarations.
7154 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7155 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7156 default defs at the entry point.
7157 (dump_part_var_map): New.
7158 (compute_optimized_partition_bases): New, called by...
7159 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7160 of compute_samebase_partition_bases. Adjust.
7161 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7162 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7163 (ssa_default_def_partition): New.
7164 (get_rtl_for_parm_ssa_default_def): New.
7165 (align_local_variable, add_stack_var): Support anonymous SSA
7167 (defer_stack_allocation): Likewise. Declare earlier.
7168 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7169 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7170 Do no record deferred-allocation marker in
7171 SA.partition_to_pseudo.
7172 (expand_stack_vars): Adjust check for the marker in it.
7173 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
7174 redundant MEM attr setting.
7175 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
7177 (expand_one_stack_var): ... this. New wrapper to check and
7178 skip already expanded SSA partitions.
7179 (record_alignment_for_reg_var): New, factored out of...
7180 (expand_one_var): ... this.
7181 (expand_one_ssa_partition): New.
7182 (adjust_one_expanded_partition_var): New.
7183 (expand_one_register_var): Check and skip already expanded SSA
7185 (expand_used_vars): Don't create DECLs for anonymous SSA
7186 names. Expand all SSA partitions, then adjust all SSA names.
7187 (pass::execute): Replace the loops that set
7188 SA.partition_to_pseudo from partition leaders and cleared
7189 DECL_RTL for multi-location variables, and that which used to
7190 rename vars and set attrs, with one that clears DECL_RTL and
7191 checks that PARMs and RESULTs default_defs match DECL_RTL.
7192 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7193 * emit-rtl.c: Include stor-layout.h.
7194 (set_reg_attrs_for_parm): Handle NULL decl.
7195 (set_reg_attrs_for_decl_rtl): Take mode from expression if
7197 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7198 rather than its possibly-NULL DECL.
7199 * explow.c (promote_ssa_mode): New.
7200 * explow.h (promote_ssa_mode): Declare.
7201 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7202 (read_complex_part): Export.
7203 * expr.h (read_complex_part): Declare.
7204 * cfgexpand.h (parm_maybe_byref_p): Declare.
7205 * function.c: Include cfgexpand.h.
7206 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7207 (use_register_for_parm_decl): Wrapper for the above to
7208 special-case the result_ptr.
7209 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7210 (split_complex_args): Take assign_parm_data_all argument.
7211 Pass it to rtl_for_parm. Set up rtl and context for split
7212 args. Reset complex parm before fetching its default decl
7214 (assign_parms_unsplit_complex): Use the default-def complex
7215 parm rtl if it matches the components.
7216 (assign_parms_augmented_arg_list): Adjust.
7217 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7218 multiple locations. Recognize split complex args.
7219 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7220 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
7221 (assign_parm_setup_block): Prefer SSA-assigned location, and
7222 fill in its address if the memory location of a maybe-byref
7223 parm was not assigned by cfgexpand.
7224 (assign_parm_setup_reg): Likewise. Adjust its mode as
7225 needed. Use entry_parm for equiv if stack_parm is NULL. Make
7226 sure passed_pointer parms don't need conversion. Copy address
7228 (assign_parm_setup_stack): Prefer SSA-assigned location.
7229 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
7230 rtl before testing for pointer bounds. Special-case result_ptr.
7231 (expand_function_start): Maybe reset DECL_RTL of result.
7232 Prefer SSA-assigned location for result and static chain.
7233 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
7234 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
7235 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7236 anonymous SSA names. Use promote_ssa_mode.
7237 (get_temp_reg): Likewise.
7238 (remove_ssa_form): Adjust.
7239 * stor-layout.c (layout_decl): Don't set mem attributes of
7241 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7242 and get its reg_usage for reg invalidation.
7243 (compute_bb_dataflow): Pass it insn.
7244 (emit_notes_in_bb): Likewise.
7246 2015-08-14 Marek Polacek <polacek@redhat.com>
7248 * tree-core.h (tree_base): Fix typo.
7250 2015-08-14 Marek Polacek <polacek@redhat.com>
7253 * gimple.c (infer_nonnull_range_by_attribute): Check that the
7254 nonnull argument position is not outside function arguments.
7256 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
7259 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
7260 'lconst_atomic' with 'const_atomic'.
7261 (atomic_fetch_<optab><mode>): Likewise.
7262 (atomic_<optab>_fetch<mode>): Likewise.
7263 * config/aarch64/iterators.md (lconst-atomic): Move below
7265 (const_atomic): New.
7267 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
7268 Bernd Schmidt <bernds@codesourcery.com>
7270 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
7272 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
7273 (DWARF2_DEBUGGING_INFO): Don't define.
7274 * debug.h (dwarf2_lineno_debug_hooks): Declare.
7275 * toplev.c (process_options): Add a case for it.
7276 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
7277 (dwarf2out_init): Skip most initializations if
7278 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
7280 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
7281 DWARF2_LINENO_DEBUGGING_INFO.
7282 * opts.c (set_debug_level): Likewise.
7284 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
7286 * config/arm/types.md (is_neon_type): Add missing types.
7288 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7290 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
7292 * config/i386/i386.c (PTA_SKYLAKE): New macros.
7293 (processor_alias_table): Add skylake description.
7294 (enum processor_model): Add skylake processor.
7295 (arch_names_table): Add skylake record.
7296 * doc/invoke.texi: Add skylake item.
7298 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
7300 * ira-int.h: Include recog.h.
7301 * ira-build.c: Don't include recog.h.
7302 * ira-color.c: Likewise.
7303 * ira-conflicts.c: Likewise.
7304 * ira-costs.c: Likewise.
7305 * ira-emit.c: Likewise.
7306 * ira-lives.c: Likewise.
7308 * sched-deps.c: Likewise.
7309 * sel-sched.c: Likewise.
7310 * target-globals.c: Likewise.
7312 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
7315 * reload1.c (elimination_costs_in_insn): Make it obvious to the
7316 compiler that the n_dups and n_operands loop bounds are invariant.
7318 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7320 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
7321 expressions in A and B.
7323 2015-08-13 Richard Biener <rguenther@suse.de>
7325 * tree.c (nonnull_arg_p): Move from ...
7326 * tree-vrp.c (nonnull_arg_p): ... here.
7327 * tree.h (nonnull_arg_p): Declare.
7328 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
7329 here, register ptr != 0 for nonnull_arg_p pointer arguments.
7330 Properly initialize static chain and by-reference result pointer.
7331 (run_scc_vn): Adjust.
7333 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
7335 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
7338 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
7340 * config/aarch64/aarch64-protos.h
7341 (aarch64_gen_atomic_cas): Declare.
7342 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
7343 Choose appropriate instruction pattern for the target.
7344 (aarch64_gen_atomic_cas): New.
7345 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
7346 (atomic_compare_and_swap<mode>_1): Rename to
7347 aarch64_compare_and_swap<mode>. Fix some indentation.
7348 (aarch64_compare_and_swap<mode>_lse): New.
7349 (aarch64_atomic_cas<mode>): New.
7351 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
7353 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
7356 2015-08-13 Richard Biener <rguenther@suse.de>
7358 PR tree-optimization/67191
7359 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
7360 assert we value-numbered last stmts operand because it can validly
7361 trigger for unreachable code.
7363 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7365 PR rtl-optimization/67103
7366 * ifcvt.c (noce_try_store_flag_constants): Move
7367 x = (-(test != 0) & (b - a)) + a transformation to...
7368 (noce_try_cmove): ... Here. Try it if normal conditional
7371 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
7373 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
7375 * config/mips/mips.md (processor): Remove w32 and w64.
7377 2015-08-13 Richard Biener <rguenther@suse.de>
7379 PR tree-optimization/66502
7380 PR tree-optimization/67167
7381 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
7383 (vn_phi_lookup): Adjust.
7384 (vn_phi_insert): Likewise.
7385 (visit_phi): Prefer to value-number to another PHI node
7386 over value-numbering to a PHI argument.
7387 (init_scc_vn): Mark DFS back edges.
7389 2015-08-13 Richard Biener <rguenther@suse.de>
7391 * gimple.h (gcall::code_): New constant static member.
7392 (gcond::code_): Likewise.
7393 * gimple.c (gcall::code_): Define.
7394 (gcond::code_): Likewise.
7395 (is_a_helper <const gcond *>): Add.
7396 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
7397 and forward to a new gcall overload with less checking and a
7398 cheaper way to access the operand.
7399 (gimple_call_lhs_ptr): Likewise.
7400 (gimple_call_set_lhs): Likewise.
7401 (gimple_call_internal_p): Likewise.
7402 (gimple_call_with_bounds_p): Likewise.
7403 (gimple_call_set_with_bounds): Likewise.
7404 (gimple_call_internal_fn): Likewise.
7405 (gimple_call_set_ctrl_altering): Likewise.
7406 (gimple_call_ctrl_altering_p): Likewise.
7407 (gimple_call_fntype): Likewise.
7408 (gimple_call_fn): Likewise.
7409 (gimple_call_fn_ptr): Likewise.
7410 (gimple_call_set_fndecl): Likewise.
7411 (gimple_call_fndecl): Likewise.
7412 (gimple_call_chain): Likewise.
7413 (gimple_call_num_args): Likewise.
7414 (gimple_call_arg): Likewise.
7415 (gimple_call_arg_ptr): Likewise.
7416 (gimple_call_set_arg): Likewise.
7417 (gimple_call_noreturn_p): Likewise.
7418 (gimple_cond_code): Likewise.
7419 (gimple_cond_lhs): Likewise.
7420 (gimple_cond_rhs): Likewise.
7421 (gimple_has_lhs): Reduce checking.
7423 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7426 * match.pd (div (mult @0 @1) @1) : New simplifier.
7428 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7431 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
7432 predicate to allow construction of vector constants using the
7433 VSLDOI vector shift instruction.
7435 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
7438 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
7439 the number of bytes to be shifted left and filled in with either
7440 all zero or all one bits.
7441 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
7443 (output_vec_const_move): On power8, generate XXLORC to generate
7444 a vector constant with all 1's. Do a split if we need to use a
7447 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
7448 properly test for the MSB.
7450 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
7451 vector constants that can be created with VSLDOI.
7453 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7456 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7457 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7458 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7459 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7460 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7461 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7462 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7463 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7464 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7466 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
7468 * config/xtensa/constraints.md (define_constraint "Y"): New
7470 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
7471 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7472 * config/xtensa/predicates.md (move_operand): Match constants
7473 and symbols in the presence of TARGET_AUTO_LITPOOLS.
7474 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
7475 immediate references to TLS data.
7476 (xtensa_emit_move_sequence): Don't force constants to memory in
7477 the presence of TARGET_AUTO_LITPOOLS.
7478 (print_operand): Add 'y' format, same as default, but capable of
7479 printing SF mode constants as well.
7480 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
7481 (movsf_internal): Add movi pattern that loads literal.
7482 (movsf, movdf): Don't force constants to memory in the presence
7483 of TARGET_AUTO_LITPOOLS.
7484 (movdf_internal): Add 'Y' constraint.
7485 * config/xtensa/xtensa.opt (mauto-litpools): New option.
7486 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
7488 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
7490 * config/arm/arm-fpus.def: Replace booleans with feature flags.
7492 * config/arm/arm.c (ARM_FPU): Update macro.
7493 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
7494 (TARGET_FP16): Likewise.
7495 (TARGET_CRYPTO): Likewise.
7496 (TARGET_NEON): Likewise.
7497 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
7500 2015-08-12 Tom de Vries <tom@codesourcery.com>
7504 * doc/install.texi: Remove --with_host_libstdcxx item. Update
7505 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
7506 accordingly. Mention default for --with-stage1-ldflags.
7508 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
7510 * config/arm/arm.h (arm_fpu_feature_set): New.
7511 (ARM_FPU_FSET_HAS): New.
7515 (FPU_FL_CRYPTO): New.
7517 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7519 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
7520 after -mcmodel=large -fPIC sorry.
7522 2015-08-12 Richard Biener <rguenther@suse.de>
7524 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
7525 comparison operand order and commutative ternary op operand order.
7526 (sccvn_dom_walker::cond_stack): New state to track temporary
7528 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
7530 (sccvn_dom_walker::record_cond): Add a single temporary conditional
7532 (sccvn_dom_walker::record_conds): Add a temporary conditional
7533 expressions and all related expressions also true/false.
7534 (sccvn_dom_walker::before_dom_children): Record temporary
7535 expressions based on the controlling condition of a single
7536 predecessor. When trying to simplify a conditional statement
7537 lookup expressions we might have inserted earlier.
7539 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
7542 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
7543 to ARM core registers.
7545 2015-08-12 Nathan Sidwell <nathan@acm.org>
7547 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
7548 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
7550 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
7552 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
7554 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
7556 2015-08-12 Richard Biener <rguenther@suse.de>
7558 * gimple.h (remove_pointer): New trait.
7559 (GIMPLE_CHECK2): New inline template function.
7560 (gassign::code_): New constant static member.
7561 (is_a_helper<const gassign *>): Add.
7562 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
7563 and forward to a new gassign overload with less checking and a
7564 cheaper way to access the operand.
7565 (gimple_assign_lhs_ptr): Likewise.
7566 (gimple_assign_set_lhs): Likewise.
7567 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
7569 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
7571 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
7573 (gimple_assign_rhs_code): Likewise.
7574 * gimple.c (gassign::code_): Define.
7576 2015-08-12 Richard Biener <rguenther@suse.de>
7578 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7579 Eliminate edges marked as not executable by SCCVN.
7580 * tree-ssa-sccvn.c: Include gimple-iterator.h.
7581 (cond_dom_walker): Rename to sccvn_dom_walker.
7582 (sccvn_dom_walker::before_dom_children): Value-number defs
7584 (run_scc_vn): Remove loop value-numbering all SSA names.
7585 Drop not visited SSA names to varying.
7587 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
7589 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
7590 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
7591 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7592 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
7593 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
7594 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7595 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
7596 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
7597 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
7599 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
7602 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
7603 to enum feature_priority and feature_list.
7604 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
7605 and isa_names_table.
7607 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
7609 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
7612 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7616 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
7617 account when deciding what was the command-line status.
7619 2015-08-11 Nathan Sidwell <nathan@acm.org>
7621 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
7623 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
7624 we're not the only contributor to target phi.
7626 2015-08-11 Jiong Wang <jiong.wang@arm.com>
7628 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
7631 2015-08-11 Tom de Vries <tom@codesourcery.com>
7633 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
7635 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
7637 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
7639 * config/i386/i386.md (cpu): Remove knl.
7641 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7645 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
7646 open-coded sequence.
7647 * omp-low.c (oacc_process_reduction_data): Remove handline of
7648 GOMP_DEVICE_HOST_NONSHM.
7650 * lto-streamer-in.c (lto_input_mode_table): Adjust to
7651 GET_MODE_INNER changes.
7653 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7654 Ilya Verbin <ilya.verbin@intel.com>
7656 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
7658 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7660 * doc/options.texi (EnabledBy): Document that the argument must be
7662 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
7663 Not enabled by -Wall.
7664 * optc-gen.awk: Give nicer error messages. Detect if the argument
7665 of EnabledBy is not a Common option.
7666 * common.opt (Wnull-dereference): Not enabled by -Wall.
7667 * opt-functions.awk (lang_enabled_by): Nicer error messages.
7669 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
7671 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
7672 model == 0x4f as Broadwell.
7674 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
7676 PR rtl-optimization/67028
7677 * combine.c (simplify_comparison): Fix comment. Rearrange code.
7678 Add test to see if a const_int fits in the new mode.
7680 2015-08-07 DJ Delorie <dj@redhat.com>
7682 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
7684 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
7686 PR rtl-optimization/67029
7687 * ira-color.c: Include "recog.h" before including "ira-int.h".
7688 * target-globals.c: Likewise.
7689 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
7690 adds an alternative_mask argument and use it instead of
7691 preferred_alternatives.
7692 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
7693 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
7694 * sched-deps.c: Include "ira-int.h" after including "ira.h".
7695 (sched_analyze_insn): Update call to
7696 ira_implicitly_set_insn_hard_regs.
7697 * sel-sched.c: Include "ira-int.h" after including "ira.h".
7698 (implicit_clobber_conflict_p): Update call to
7699 ira_implicitly_set_insn_hard_regs.
7701 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
7703 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
7705 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
7708 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
7709 currently_expanding_to_rtl is set.
7711 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
7713 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
7714 * configure: Regenerate.
7716 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7717 Jiong Wang <jiong.wang@arm.com>
7719 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7720 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7721 (REG_CLASS_NAMES): Likewise.
7722 (REG_CLASS_CONTENTS): Likewise.
7723 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7724 (aarch64_register_move_cost): Likewise.
7725 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7727 * config/aarch64/constraints.md (Uc0): New constraint.
7729 2015-08-06 Jiong Wang <jiong.wang@arm.com>
7731 * config/aarch64/constraints.md (Usf): Add the test of
7732 aarch64_is_noplt_call_p.
7734 2015-08-06 Jiong Wang <jiong.wang@arm.com>
7736 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
7738 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
7739 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
7740 (call_symbol): Likewise.
7742 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7744 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
7745 for vectorizing multiplication patterns.
7746 * tree-vectorizer.h: Adjust the number of patterns.
7748 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
7750 * config/i386/sse.md (*vec_concatv2df): Declare added
7751 alternatives as sselog type.
7753 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7755 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
7758 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7760 * config/s390/s390.c (s390_expand_tbegin): Expand either
7761 tbegin_1_z13 or tbegin_1 depending on VX flag.
7762 * config/s390/s390.md ("tbegin_1_z13"): New expander.
7764 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7766 * config/s390/s390.opt: Clarify description for -mzvector
7767 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
7770 2015-08-06 Richard Biener <rguenther@suse.de>
7772 * gimple.h (gimple_call_set_fn): Access op member directly.
7773 (gimple_call_chain_ptr): Likewise.
7774 (gimple_call_set_chain): Likewise.
7775 (gimple_cond_lhs_ptr): Likewise.
7776 (gimple_cond_set_lhs): Likewise.
7777 (gimple_cond_rhs_ptr): Likewise.
7778 (gimple_cond_set_rhs): Likewise.
7779 (gimple_cond_true_label): Likewise.
7780 (gimple_cond_set_true_label): Likewise.
7781 (gimple_cond_set_false_label): Likewise.
7782 (gimple_cond_false_label): Likewise.
7783 (gimple_label_label): Likewise.
7784 (gimple_label_set_label): Likewise.
7785 (gimple_goto_set_dest): Likewise.
7786 (gimple_asm_input_op): Likewise.
7787 (gimple_asm_input_op_ptr): Likewise.
7788 (gimple_asm_set_input_op): Likewise.
7789 (gimple_asm_output_op): Likewise.
7790 (gimple_asm_output_op_ptr): Likewise.
7791 (gimple_asm_set_output_op): Likewise.
7792 (gimple_asm_clobber_op): Likewise.
7793 (gimple_asm_set_clobber_op): Likewise.
7794 (gimple_asm_label_op): Likewise.
7795 (gimple_asm_set_label_op): Likewise.
7796 (gimple_switch_index): Likewise.
7797 (gimple_switch_index_ptr): Likewise.
7798 (gimple_return_retval_ptr): Likewise.
7799 (gimple_return_retval): Likewise.
7800 (gimple_return_set_retval): Likewise.
7801 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
7802 (gimple_switch_label): Likewise.
7803 (gimple_switch_set_label): Likewise.
7805 2015-08-06 Richard Biener <rguenther@suse.de>
7807 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
7808 bool comparison canonicalization and restrict to integers.
7810 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
7812 * coretypes.h (enum symbol_visibility): Relocate here.
7813 * flag-types.h (enum symbol_visibility): Remove.
7814 * tree-core.h (enum symbol_visibility): Remove.
7816 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
7819 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
7820 for no_split_stack function attribute along with
7822 (rs6000_expand_split_stack_prologue): Likewise.
7824 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7825 Jeff Law <law@redhat.com>
7828 * doc/invoke.texi (Wnull-dereference): New.
7829 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
7830 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
7831 Warn for potential NULL dereferences.
7832 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
7833 * ubsan.c (instrument_nonnull_arg): Call
7834 infer_nonnull_range_by_attribute.
7835 (instrument_nonnull_return): Likewise.
7836 * common.opt (Wnull-dereference); New.
7837 * gimple.c (infer_nonnull_range): Remove bool arguments.
7838 (infer_nonnull_range_by_dereference): New.
7839 (infer_nonnull_range_by_attribute): New.
7840 * gimple.h: Update declarations.
7842 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7844 * gensupport.c (sequence_num): Replace with...
7845 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
7846 ...these new variables.
7847 (init_rtx_reader_args_cb): Update accordingly.
7848 (get_num_code_insns): Likewise.
7849 (read_md_rtx): Rework to use a while loop and get_c_test.
7850 Use the new counters. Remove redundant DEFINE_SUBST case.
7851 * genoutput.c (gen_split): Delete.
7852 (main): Don't call it.
7854 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7856 * gensupport.h (get_c_test): Declare.
7857 * gensupport.c (get_c_test): New function.
7858 * genconditions.c (main): Use it.
7859 * genrecog.c (validate_pattern): Likewise.
7860 (match_pattern_1): Likewise. Remove c_test argument.
7861 (match_pattern): Update accordingly and remove c_test argument.
7862 (main): Update accordingly.
7864 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7866 * gensupport.h (get_num_insn_codes): Declare.
7867 * gensupport.c (get_num_insn_codes): New function.
7868 * genattrtab.c (optimize_attrs): Rename max_insn_code to
7870 (main): Likewise. Use get_num_insn_codes.
7871 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
7873 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7876 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
7877 is zero- rather than sign-extended.
7879 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
7881 * target-insns.def (can_extend): Delete.
7883 2015-08-05 Richard Biener <rguenther@suse.de>
7885 PR tree-optimization/67121
7886 * tree-if-conv.c (combine_blocks): Clear range-info produced
7887 by stmts no longer executed conditionally.
7889 2015-08-05 Nick Clifton <nickc@redhat.com>
7891 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
7892 to allow identical far pointers to remain.
7894 2015-08-05 Richard Biener <rguenther@suse.de>
7897 * match.pd: Compare address bases with == if they are decls
7898 or SSA names, not operand_equal_p. Otherwise fail.
7900 2015-08-05 Richard Biener <rguenther@suse.de>
7902 PR tree-optimization/67055
7903 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
7906 * g++.dg/torture/pr67055.C: New testcase.
7908 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
7910 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
7912 (define_attr "enabled"): Handle avx521vl and noavx512vl.
7913 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
7914 AVX-512 alternative out of SSE.
7915 (define_insn "*vec_concatv2df"): Ditto.
7917 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
7919 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
7920 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
7921 CODE_FOR_avx_ptestv4di.
7922 * config/i386/sse.md (define_mode_iterator V_AVX): New.
7923 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
7924 (define_insn "avx_ptest256"): Merge this ...
7925 (define_insn "sse4_1_ptest"): And this ...
7926 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
7928 2015-08-05 Richard Biener <rguenther@suse.de>
7930 PR tree-optimization/67109
7931 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
7932 against too big groups. Print whether this is a load or store
7933 group. Rename from ...
7934 (vect_analyze_group_access): ... this which is now a wrapper
7935 dissolving an invalid group.
7936 (vect_analyze_data_ref_accesses): Print whether this is a load
7939 2015-08-05 Richard Biener <rguenther@suse.de>
7942 * match.pd: Guard const_binop result checking against NULL_TREE
7945 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7947 * cse.c (cse_insn): Restoring old behaviour for src_eqv
7948 when dest and value in the REG_EQUAL are same and dest
7951 2015-08-04 Anatoly Sokolov <aesok@post.ru>
7953 * config/moxie/moxie.h (PRINT_OPERAND,
7954 PRINT_OPERAND_ADDRESS): Remove macros.
7955 * config/moxie/moxie-protos.h (moxie_print_operand,
7956 moxie_print_operand_address): Remove declaration.
7957 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
7958 TARGET_PRINT_OPERAND_ADDRESS): Define.
7959 (moxie_print_operand, moxie_print_operand_address): Make static.
7961 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7964 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
7965 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
7967 2015-08-04 Richard Biener <rguenther@suse.de>
7969 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
7971 (dt_operand::gen_gimple_expr): Adjust.
7973 2015-08-04 Richard Biener <rguenther@suse.de>
7975 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
7976 bool compares on RHS.
7977 * match.pd: Add X ==/!= !X is false/true pattern.
7979 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
7981 * config/aarch64/aarch64.c: Change inner loop statement cost
7982 to be consistent with other targets.
7984 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
7986 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
7989 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
7991 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
7992 (machine_function): Remove pseudos field.
7994 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7996 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
7997 Exit early and use target_option_current_node if processing current
8000 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8002 * doc/extend.texi (AArch64 Function Attributes): New node.
8003 (AArch64 Pragmas): Likewise.
8005 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8007 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8008 Initialize simd builtins if TARGET_SIMD.
8009 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8010 Make sure that the builtins are initialized only once no matter how
8011 many times the function is called.
8012 (aarch64_init_builtins): Unconditionally initialize crc builtins.
8013 (aarch64_relayout_simd_param): New function.
8014 (aarch64_simd_expand_args): Use above during argument expansion.
8015 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8016 simd builtins if TARGET_SIMD.
8017 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8019 (aarch64_relayout_simd_types): Likewise.
8021 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8023 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8024 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8025 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8026 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8028 (aarch64_reset_previous_fndecl): New function.
8029 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8031 * config/aarch64/aarch64-c.c: New file.
8032 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8033 Push and pop options at beginning and end. Remove ifdef
8034 __ARM_FEATURE_CRC32.
8035 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8036 Add pragma +nothing+simd and +nothing+crypto where appropriate.
8037 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8038 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8040 (aarch64_register_pragmas): Likewise.
8041 (aarch64_reset_previous_fndecl): Likewise.
8042 (aarch64_process_target_attr): Likewise.
8043 (aarch64_override_options_internal): Likewise.
8045 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8047 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8049 (aarch64_can_inline_p): Likewise.
8050 (TARGET_CAN_INLINE_P): Define.
8052 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8054 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8055 Remove static. Handle OPT_mgeneral_regs_only,
8056 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8057 OPT_momit_leaf_frame_pointer.
8058 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8059 (aarch64_attr_opt_type): New enum.
8060 (aarch64_attribute_info): New struct.
8061 (aarch64_handle_attr_arch): New function.
8062 (aarch64_handle_attr_cpu): Likewise.
8063 (aarch64_handle_attr_tune): Likewise.
8064 (aarch64_handle_attr_isa_flags): Likewise.
8065 (aarch64_attributes): New table.
8066 (aarch64_process_one_target_attr): New function.
8067 (num_occurences_in_str): Likewise.
8068 (aarch64_process_target_attr): Likewise.
8069 (aarch64_option_valid_attribute_p): Likewise.
8070 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8071 * config/aarch64/aarch64-protos.h: Include input.h
8072 (aarch64_handle_option): Declare prototype.
8074 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8076 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8077 * config/aarch64/aarch64.c: Include target-globals.h
8078 (aarch64_previous_fndecl): New variable.
8079 (aarch64_set_current_function): New function.
8080 (TARGET_SET_CURRENT_FUNCTION): Define.
8082 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8084 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8085 (explicit_arch): Likewise.
8086 (x_aarch64_isa_flags): Likewise.
8087 (mgeneral-regs-only): Mark as Save.
8088 (mfix-cortex-a53-835769): Likewise.
8089 (mcmodel=): Likewise.
8090 (mstrict-align): Likewise.
8091 (momit-leaf-frame-pointer): Likewise.
8092 (mtls-dialect): Likewise.
8093 (master=): Likewise.
8094 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8095 (aarch64_isa_flags): Remove extern declaration.
8096 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8097 to indicate success or failure.
8098 (aarch64_validate_march): Likewise.
8099 (aarch64_validate_mtune): Likewise.
8100 (aarch64_isa_flags): Delete.
8101 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8102 instead of aarch64_isa_flags.
8103 (aarch64_get_tune_cpu): New function.
8104 (aarch64_get_arch): Likewise.
8105 (aarch64_override_options): Use above and set up explicit_tune_core
8107 (aarch64_print_extension): Move earlier in file. Add isa_flags
8108 argument and use that instead of the global aarch64_isa_flags.
8109 (aarch64_option_save): New function.
8110 (aarch64_option_restore): Likewise.
8111 (aarch64_option_print): Likewise.
8112 (aarch64_declare_function_name): Likewise.
8113 (aarch64_start_file): Delete.
8114 (TARGET_ASM_FILE_START): Do not define.
8115 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8116 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8119 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8121 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8122 flag_omit_leaf_frame_pointer to 2.
8124 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8126 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8128 (TARGET_FIX_ERR_A53_835769): New macro.
8129 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8130 handling of opts->x_aarch64_fix_a53_err835769.
8131 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8132 than aarch64_fix_a53_err835769.
8133 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8134 * config/aarch64/aarch64-linux.h: Likewise.
8136 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
8138 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8139 ix86_expand_int_movcc as boolean.
8141 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8143 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8144 (aarch64_cpu_string): Likewise.
8145 (aarch64_tune_string): Likewise.
8146 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8147 (aarch64_parse_extension): Return aarch64_parse_opt_result.
8148 Add extra argument to put result into.
8149 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
8150 (aarch64_parse_cpu): Add arguments to put results into. Return
8151 aarch64_parse_opt_result.
8152 (aarch64_parse_tune): Likewise.
8153 (aarch64_override_options_after_change_1): New function.
8154 (aarch64_override_options_internal): New function.
8155 (aarch64_validate_mcpu): Likewise.
8156 (aarch64_validate_march): Likewise.
8157 (aarch64_validate_mtune): Likewise.
8158 (aarch64_override_options): Update to reflect above changes.
8159 Move some logic into aarch64_override_options_internal.
8160 Initialize target_option_default_node and target_option_current_node.
8161 (aarch64_override_options_after_change): Move logic into
8162 aarch64_override_options_after_change_1 and call it with global_options.
8163 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8164 flag values from that.
8166 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8168 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8169 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8170 * config/aarch64/aarch64.c (struct processor): Add arch field.
8171 (all_architectures): Handle above, move above all_cores.
8172 (all_cores): Handle above.
8173 (aarch64_parse_arch): Handle above changes.
8174 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8175 above. Update comments.
8176 (armv8.1-a): Likewise.
8177 * config/aarch64/aarch64-cores.def: Update according to above.
8178 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8179 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8180 aarch64_arch_driver_info.
8182 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8184 * config/aarch64/aarch64.c (struct processor): Add ident field.
8185 Rename core sched_core.
8186 (all_cores): Handle above changes.
8187 (all_architectures): Likewise.
8188 (aarch64_parse_arch): Likewise.
8189 (aarch64_override_options): Likewise.
8191 2015-08-04 Richard Biener <rguenther@suse.de>
8193 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8194 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8195 comparisons embedded in [VEC_]COND_EXPRs.
8197 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
8199 * tree-if-conv.c: Fix various typos in comments.
8200 * tree-vect-stmts.c: Likewise.
8202 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8204 PR tree-optimization/67043
8205 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8206 preheader after hoisting invariant in it.
8207 (find_defs): Force recomputation of all luids.
8209 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
8211 * config/rs6000/htm.md (tabort.): Restrict the source operand to
8212 using a base register.
8214 2015-08-03 David Malcolm <dmalcolm@redhat.com>
8216 * main.c (main): Pass in NULL for toplev's external_timer.
8217 * timevar.c: Include coretypes.h.
8218 (class timer::named_items): New.
8219 (timer::named_items::named_items): New.
8220 (timer::named_items::~named_items): New.
8221 (timer::named_items::push): New.
8222 (timer::named_items::pop): New.
8223 (timer::named_items::print): New.
8224 (timer::timer): Initialize field "m_jit_client_items".
8225 (timer::~timer): New.
8226 (timer::push): Move bulk of implementation to...
8227 (timer::push_internal): ...here. New function.
8228 (timer::pop): Move bulk of implementation to...
8229 (timer::pop_internal): ...here. New function.
8230 (timer::push_client_item): New.
8231 (timer::pop_client_item): New.
8232 (timer::print_row): New function, taken from timer::print.
8233 (timer::print): Print "GCC items" header if we also have client
8234 items. Move row-printing to timer::print_row. Print any client
8236 (timer::get_topmost_item_name): New method.
8237 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
8238 (TV_JIT_CLIENT_CODE): New.
8239 * timevar.h (timer::push_client_item): New declaration.
8240 (timer::pop_client_item): New declaration.
8241 (timer::get_topmost_item_name): New method.
8242 (timer::push_internal): New declaration.
8243 (timer::pop_internal): New declaration.
8244 (timer::print_row): New declaration.
8245 (timer::named_items): New declaration.
8246 (timer::m_jit_client_items): New field.
8247 (timer): Add friend class named_items.
8248 (auto_timevar::auto_timevar): Add timer param.
8249 (auto_timevar::~auto_timevar): Use field "m_timer".
8250 (auto_timevar::m_timer): New field.
8251 * toplev.c (initialize_rtl): Add g_timer as param when
8252 constructing auto_timevar instance.
8253 (toplev::toplev): Add "external_timer" param, and use it to
8254 initialize the "g_timer" global if non-NULL.
8255 (toplev::~toplev): If this created "g_timer", delete it.
8256 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
8257 with "external_timer" timer *.
8259 2015-08-03 Alexander Basov <coohpt@gmail.com>
8264 * cfgexpand.c (expand_one_var): Add check if stack is going to
8265 be used in naked function.
8266 * expr.c (expand_expr_addr_expr_1): Remove excess checking
8267 whether expression should not reside in MEM.
8268 * function.c (use_register_for_decl): Do not use registers for
8269 non-register things (volatile, float, BLKMode) in naked functions.
8271 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
8274 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
8275 Adjust splits to match new pattern.
8277 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8279 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
8282 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
8283 point in VSX registers.
8285 * config/rs6000/constraints.md (wb constraint): Document unused
8287 (we constraint): Likewise.
8288 (wo constraint): Likewise.
8289 (wp constraint): New constraint for IEEE 128-bit floating point in
8291 (wq constraint): Likewise.
8293 * config/rs6000/predicates.md (easy_fp_constant): Add support for
8294 IEEE 128-bit floating point in VSX registers.
8295 (easy_scalar_constant): Likewise.
8297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
8298 constraints (wp, wq) for IEEE 128-bit floating point in VSX
8300 (rs6000_init_hard_regno_mode_ok): Likewise.
8302 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
8303 floating point in VSX registers.
8312 (vsx_le_permute_<mode>): Add support to properly swap bytes for
8313 IEEE 128-bit floating point in VSX registers on little endian.
8314 (vsx_le_undo_permute_<mode>): Likewise.
8315 (vsx_le_perm_load_<mode>): Likewise.
8316 (vsx_le_perm_store_<mode>): Likewise.
8317 (splitters for IEEE 128-bit fp moves): Likewise.
8319 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
8322 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
8323 floating point in VSX registers.
8326 * doc/md.text (Machine Constraints): Document wp and wq
8327 constraints on PowerPC.
8329 2015-08-03 Jeff Law <law@redhat.com>
8332 PR gcov-profile/66899
8333 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
8334 iterate over the jump threading paths when an element in the
8335 jump threading paths array is eliminated.
8337 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
8339 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
8341 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
8343 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
8344 is_use_properly_guarded the variable def_preds. Free its
8345 contents before returning.
8346 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
8347 (is_use_properly_guarded): Replace local variable def_preds with
8348 a parameter. Adjust accordingly. Only update *def_preds if it's
8351 2015-08-03 Richard Biener <rguenther@suse.de>
8353 * genmatch.c (simplify::for_subst_vec): New member.
8354 (binary_ok): New helper for for lowering.
8355 (lower_for): Delay substituting operators into result expressions
8356 if we can merge the results eventually again.
8357 (capture_info::walk_result): Adjust for user_id appearing as
8358 result expression operator.
8359 (expr::gen_transform): Likewise.
8360 (dt_simplify::gen_1): Likewise.
8361 (dt_simplify::gen): Pass not substituted operators to tail
8362 functions or initialize local variable with it.
8363 (decision_tree::gen): Adjust function signature.
8364 * match.pd: Fix tests against global code and add default
8365 cases to switch stmts.
8367 2015-08-03 Richard Biener <rguenther@suse.de>
8369 * genmatch.c (dt_simplify::gen): Create captures array
8370 with an initializer.
8372 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8374 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
8375 the host compiler is affected by placement new aliasing bug.
8376 * configure: Regenerate.
8377 * Makefile.in (ALIASING_FLAGS): New variable.
8378 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
8380 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8383 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
8384 (negmulsf3_vfp): Likewise.
8385 (muldf3negdf_vfp): Disable for -frounding-math.
8386 (mulsf3negsf_vfp): Likewise.
8387 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
8388 fix MULT cost with -frounding-math.
8390 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8392 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
8393 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
8394 explicit. Prefer to add the flag whenever possible.
8395 (noce_process_if_block): Try noce_try_store_flag_constants before
8398 2015-08-03 Richard Biener <rguenther@suse.de>
8400 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
8401 New hash-map to record equivalent transforms.
8402 (dt_node::analyze): Populate the equivalent transforms hash-map.
8403 (dt_simplify::info): Add reference to hash-map entry.
8404 (dt_simplify::gen): If we have split out a function for the
8405 transform, generate a call to it.
8406 (sinfo_hashmap_traits::hash): New function.
8407 (compare_op): New helper function for ...
8408 (sinfo_hashmap_traits::equal_keys): ... this new function.
8409 (decision_tree::gen): Split out common equivalent transforms
8412 2015-08-03 Richard Biener <rguenther@suse.de>
8414 * gimple-fold.c (fold_gimple_assign): Remove folding of
8415 the comparison in COND_EXPRs.
8417 2015-08-03 Richard Biener <rguenther@suse.de>
8419 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
8420 on the rhs of assignments first simplify the embedded
8423 2015-08-03 Richard Biener <rguenther@suse.de>
8425 PR tree-optimization/66917
8426 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
8428 (DR_VECT_AUX): New macro.
8429 (set_dr_misalignment): Adjust.
8430 (dr_misalignment): Likewise.
8431 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8432 Compute whether the base is at least element aligned.
8433 * tree-vect-stmts.c (ensure_base_align): Adjust.
8434 (vectorizable_store): If the base is not element aligned
8435 preserve alignment of the original access if misalignment is unknown.
8436 (vectorizable_load): Likewise.
8438 2015-08-02 Martin Sebor <msebor@redhat.com>
8440 * c-family/c.opt (-Wframe-address): New warning option.
8441 * doc/invoke.texi (Wframe-address): Document it.
8442 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
8443 Clarify possible effects of calling the functions with non-zero
8444 arguments and mention -Wframe-address.
8445 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
8447 2015-08-01 Michael Collison <michael.collison@linaro.org
8448 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8450 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
8451 (*arm_umin_cmp): Likewise.
8453 2015-08-01 Caroline Tice <cmtice@google.com>
8456 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
8458 (vtbl_find_mangled_name): New function.
8459 (vtbl_register_mangled_name): New function.
8460 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
8461 mangled name in mangled name vectors.
8462 (find_or_create_vtbl_map_node): Ditto.
8463 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
8464 update recursion_depth on function entry; pass it to every recursive
8465 call; automatically exit if depth > 25 (give up looking at that point).
8466 (verify_bb_vtables): Initialize recursion_depth and pass it to
8467 var_is_used_for_virtual_call_p.
8468 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
8469 global variable decls.
8470 (vtbl_register_mangled_name): New extern function decl.
8472 2015-08-01 Tom de Vries <tom@codesourcery.com>
8474 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
8476 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
8478 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
8479 operation_no_trapping_overflow. Allow non-overflow operations.
8480 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
8483 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8486 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
8488 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8490 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
8491 Enable for TARGET_32BIT.
8492 (*if_move_neg): Likewise.
8494 2015-07-31 Nick Clifton <nickc@redhat.com>
8496 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
8497 Returns true for __model__.
8498 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8500 2015-07-31 Alan Modra <amodra@gmail.com>
8503 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
8504 (rs6000_emit_prologue): Set it.
8505 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
8507 2015-07-31 Richard Biener <rguenther@suse.de>
8509 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
8510 -> X == (C1 ^ C2) which is already implemented in match.pd.
8511 Remove redundant dispatching to fold_relational_const.
8512 Move unordered self and NaN compares ...
8513 * match.pd: ... as patterns here. Remove some stray captures
8516 2015-07-31 Petr Murzin <petr.murzin@intel.com>
8518 * config/i386/i386.c
8519 (bdesc_special_args): Convert mask type from signed to unsigned for
8521 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
8522 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
8523 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
8524 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
8525 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
8526 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
8527 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
8528 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
8529 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
8530 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
8531 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
8532 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
8533 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
8534 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
8535 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
8536 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
8537 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
8538 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
8539 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
8540 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
8541 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
8542 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
8543 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
8544 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
8545 * config/i386/i386-builtin-types.def
8546 (V16QI_FTYPE_V16SI): Remove.
8547 (V8DF_FTYPE_V8SI): Ditto.
8548 (V8HI_FTYPE_V8DI): Ditto.
8549 (V8SI_FTYPE_V8DI): Ditto.
8550 (V8SF_FTYPE_V8DF): Ditto.
8551 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
8552 (V16HI_FTYPE_V16SI): Ditto.
8553 (V16SF_FTYPE_V16HI): Ditto.
8554 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8555 (V16SF_FTYPE_V16SI): Ditto.
8556 (V4DI_FTYPE_V4DI): Ditto.
8557 (V16SI_FTYPE_V16SF): Ditto.
8558 (V16SF_FTYPE_FLOAT): Ditto.
8559 (V8DF_FTYPE_DOUBLE): Ditto.
8560 (V8DI_FTYPE_INT64): Ditto.
8561 (V8DI_FTYPE_V4DI): Ditto.
8562 (V16QI_FTYPE_V8DI): Ditto.
8563 (UINT_FTYPE_V4SF): Ditto.
8564 (UINT64_FTYPE_V4SF): Ditto.
8565 (UINT_FTYPE_V2DF): Ditto.
8566 (UINT64_FTYPE_V2DF): Ditto.
8567 (V16SI_FTYPE_V16SI): Ditto.
8568 (V8DI_FTYPE_V8DI): Ditto.
8569 (V16SI_FTYPE_PV4SI): Ditto.
8570 (V16SF_FTYPE_PV4SF): Ditto.
8571 (V8DI_FTYPE_PV2DI): Ditto.
8572 (V8DF_FTYPE_PV2DF): Ditto.
8573 (V4DI_FTYPE_PV2DI): Ditto.
8574 (V4DF_FTYPE_PV2DF): Ditto.
8575 (V16SI_FTYPE_PV2SI): Ditto.
8576 (V16SF_FTYPE_PV2SF): Ditto.
8577 (V8DI_FTYPE_PV4DI): Ditto.
8578 (V8DF_FTYPE_PV4DF): Ditto.
8579 (V8SF_FTYPE_FLOAT): Ditto.
8580 (V4SF_FTYPE_FLOAT): Ditto.
8581 (V4DF_FTYPE_DOUBLE): Ditto.
8582 (V8SF_FTYPE_PV4SF): Ditto.
8583 (V8SI_FTYPE_PV4SI): Ditto.
8584 (V4SI_FTYPE_PV2SI): Ditto.
8585 (V8SF_FTYPE_PV2SF): Ditto.
8586 (V8SI_FTYPE_PV2SI): Ditto.
8587 (V16SF_FTYPE_PV8SF): Ditto.
8588 (V16SI_FTYPE_PV8SI): Ditto.
8589 (V8DI_FTYPE_V8SF): Ditto.
8590 (V4DI_FTYPE_V4SF): Ditto.
8591 (V2DI_FTYPE_V4SF): Ditto.
8592 (V64QI_FTYPE_QI): Ditto.
8593 (V32HI_FTYPE_HI): Ditto.
8594 (V8UHI_FTYPE_V8UHI): Ditto.
8595 (V16UHI_FTYPE_V16UHI): Ditto.
8596 (V32UHI_FTYPE_V32UHI): Ditto.
8597 (V2UDI_FTYPE_V2UDI): Ditto.
8598 (V4UDI_FTYPE_V4UDI): Ditto.
8599 (V8UDI_FTYPE_V8UDI): Ditto.
8600 (V4USI_FTYPE_V4USI): Ditto.
8601 (V8USI_FTYPE_V8USI): Ditto.
8602 (V16USI_FTYPE_V16USI): Ditto.
8603 (V2DF_FTYPE_V2DF_UINT64): Ditto.
8604 (V2DI_FTYPE_V2DF_V2DF): Ditto.
8605 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
8606 (V8DF_FTYPE_V8DF_V8DI): Ditto.
8607 (V4SF_FTYPE_V4SF_UINT64): Ditto.
8608 (V4SI_FTYPE_V4SF_V4SF): Ditto.
8609 (V16SF_FTYPE_V16SF_V16SI): Ditto.
8610 (V64QI_FTYPE_V32HI_V32HI): Ditto.
8611 (V32HI_FTYPE_V16SI_V16SI): Ditto.
8612 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8613 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
8614 (V32HI_FTYPE_V64QI_V64QI): Ditto.
8615 (V32HI_FTYPE_V32HI_V32HI): Ditto.
8616 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
8617 (V16SI_FTYPE_V16SI_V4SI): Ditto.
8618 (V16SI_FTYPE_V16SI_V16SI): Ditto.
8619 (V16SI_FTYPE_V32HI_V32HI): Ditto.
8620 (V16SI_FTYPE_V16SI_SI): Ditto.
8621 (V8DI_FTYPE_V8DI_V8DI): Ditto.
8622 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
8623 (V8DI_FTYPE_V16SI_V16SI): Ditto.
8624 (V8DI_FTYPE_V8DI_V2DI): Ditto.
8625 (QI_FTYPE_QI): Ditto.
8626 (SI_FTYPE_SI): Ditto.
8627 (DI_FTYPE_DI): Ditto.
8628 (QI_FTYPE_QI_QI): Ditto.
8629 (QI_FTYPE_QI_INT): Ditto.
8630 (HI_FTYPE_HI_INT): Ditto.
8631 (SI_FTYPE_SI_INT): Ditto.
8632 (DI_FTYPE_DI_INT): Ditto.
8633 (HI_FTYPE_V16QI_V16QI): Ditto.
8634 (SI_FTYPE_V32QI_V32QI): Ditto.
8635 (DI_FTYPE_V64QI_V64QI): Ditto.
8636 (QI_FTYPE_V8HI_V8HI): Ditto.
8637 (HI_FTYPE_V16HI_V16HI): Ditto.
8638 (SI_FTYPE_V32HI_V32HI): Ditto.
8639 (QI_FTYPE_V4SI_V4SI): Ditto.
8640 (QI_FTYPE_V8SI_V8SI): Ditto.
8641 (QI_FTYPE_V2DI_V2DI): Ditto.
8642 (QI_FTYPE_V4DI_V4DI): Ditto.
8643 (QI_FTYPE_V8DI_V8DI): Ditto.
8644 (HI_FTYPE_V16SI_V16SI): Ditto.
8645 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
8646 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
8647 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
8648 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8649 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8650 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
8651 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
8652 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
8653 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8654 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
8655 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
8656 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
8657 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
8658 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
8659 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8660 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8661 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8662 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8663 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8664 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8665 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8666 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8667 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8668 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8669 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8670 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8671 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8672 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8673 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8674 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8675 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8676 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
8677 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
8678 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
8679 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8680 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8681 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8682 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
8683 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
8684 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
8685 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
8686 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
8687 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
8688 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
8689 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
8690 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
8691 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
8692 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8693 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8694 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
8695 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8696 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8697 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
8698 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
8699 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
8700 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
8701 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8702 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8703 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8704 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
8705 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
8706 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8707 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8708 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8709 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
8710 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8711 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8712 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8713 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8714 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8715 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8716 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8717 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8718 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8719 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
8720 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8721 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
8722 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
8723 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
8724 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8725 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8726 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
8727 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
8728 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
8729 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8730 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
8731 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
8732 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8733 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8734 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8735 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
8736 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8737 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
8738 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
8739 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8740 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8741 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8742 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8743 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
8744 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
8745 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
8746 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8747 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8748 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8749 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8750 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
8751 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
8752 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
8753 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
8754 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8755 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8756 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8757 (HI_FTYPE_HI): Ditto.
8758 (HI_FTYPE_V16QI): Ditto.
8759 (SI_FTYPE_V32QI): Ditto.
8760 (DI_FTYPE_V64QI): Ditto.
8761 (QI_FTYPE_V8HI): Ditto.
8762 (HI_FTYPE_V16HI): Ditto.
8763 (SI_FTYPE_V32HI): Ditto.
8764 (QI_FTYPE_V4SI): Ditto.
8765 (QI_FTYPE_V8SI): Ditto.
8766 (HI_FTYPE_V16SI): Ditto.
8767 (QI_FTYPE_V2DI): Ditto.
8768 (QI_FTYPE_V4DI): Ditto.
8769 (QI_FTYPE_V8DI): Ditto.
8770 (V16QI_FTYPE_HI): Ditto.
8771 (V32QI_FTYPE_SI): Ditto.
8772 (V64QI_FTYPE_DI): Ditto.
8773 (V8HI_FTYPE_QI): Ditto.
8774 (V16HI_FTYPE_HI): Ditto.
8775 (V32HI_FTYPE_SI): Ditto.
8776 (V4SI_FTYPE_QI): Ditto.
8777 (V4SI_FTYPE_HI): Ditto.
8778 (V8SI_FTYPE_QI): Ditto.
8779 (V8SI_FTYPE_HI): Ditto.
8780 (V2DI_FTYPE_QI): Ditto.
8781 (V4DI_FTYPE_QI): Ditto.
8782 (HI_FTYPE_HI_HI): Ditto.
8783 (SI_FTYPE_SI_SI): Ditto.
8784 (DI_FTYPE_DI_DI): Ditto.
8785 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8786 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8787 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8788 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8789 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8790 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8791 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8792 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8793 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8794 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8795 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8796 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
8797 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
8798 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
8799 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
8800 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
8801 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
8802 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
8803 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
8804 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
8805 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
8806 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
8807 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
8808 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
8809 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
8810 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
8811 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
8812 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
8813 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
8814 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
8815 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
8816 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
8817 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
8818 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
8819 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
8820 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
8821 (V16SI_FTYPE_HI): Ditto.
8822 (V8DI_FTYPE_QI): Ditto.
8823 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
8824 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
8825 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
8826 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
8827 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
8828 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
8829 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
8830 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
8831 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
8832 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
8833 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
8834 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
8835 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
8836 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
8837 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
8838 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
8839 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
8840 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
8841 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
8842 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
8843 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
8844 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
8845 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
8846 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
8847 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
8848 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
8849 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
8850 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
8851 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
8852 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
8853 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
8854 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
8855 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
8856 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
8857 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
8858 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
8859 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8860 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8861 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8862 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
8863 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8864 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8865 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
8866 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
8867 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8868 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8869 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8870 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8871 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8872 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8873 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8874 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8875 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
8876 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8877 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8878 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8879 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8880 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8881 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8882 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8883 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8884 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8885 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8886 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8887 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8888 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
8889 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
8890 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
8891 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8892 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
8893 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
8894 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
8895 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8896 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
8897 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
8898 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
8899 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
8900 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
8901 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8902 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
8903 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
8904 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8905 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8906 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8907 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8908 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8909 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8910 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8911 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8912 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8913 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8914 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8915 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8916 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8917 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8918 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8919 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8920 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8921 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8922 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8923 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8924 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8925 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8926 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8927 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8928 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8929 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8930 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8931 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8932 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8933 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8934 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8935 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8936 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8937 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8938 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
8939 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
8940 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
8941 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8942 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8943 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8944 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
8945 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8946 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8947 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8948 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8949 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8950 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8951 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8952 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8953 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
8954 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
8955 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
8956 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8957 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8958 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8959 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8960 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8961 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8962 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8963 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8964 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8965 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8966 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8967 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8968 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8969 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8970 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8971 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8972 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8973 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8974 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8975 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8976 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8977 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
8978 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
8979 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
8980 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
8981 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
8982 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
8983 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
8984 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
8985 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
8986 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
8987 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
8988 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
8989 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
8990 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
8991 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
8992 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
8993 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
8994 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
8995 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
8996 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
8997 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
8998 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
8999 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9000 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9001 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9002 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9003 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9004 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9005 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9006 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9007 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9008 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9009 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9010 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9011 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9012 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9013 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9014 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9015 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9016 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9017 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9018 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9019 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9020 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9021 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9022 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9023 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9024 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9025 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9026 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9027 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9028 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9029 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9030 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9031 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9032 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9033 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9034 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9035 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9036 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9037 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9038 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9039 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9040 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9041 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9042 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9043 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9044 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9045 (QI_FTYPE_V8DF_INT_QI): Ditto.
9046 (QI_FTYPE_V4DF_INT_QI): Ditto.
9047 (QI_FTYPE_V2DF_INT_QI): Ditto.
9048 (HI_FTYPE_V16SF_INT_HI): Ditto.
9049 (QI_FTYPE_V8SF_INT_QI): Ditto.
9050 (QI_FTYPE_V4SF_INT_QI): Ditto.
9051 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9053 2015-07-31 Richard Biener <rguenther@suse.de>
9055 * gimple-fold.c (fold_gimple_assign): Remove folding of
9058 2015-07-31 Tom de Vries <tom@codesourcery.com>
9060 PR tree-optimization/66846
9061 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9062 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9063 (expand_omp_target) [ENABLE_CHECKING]: Same.
9064 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9065 cfun if !LOOPS_NEED_FIXUP.
9066 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
9067 that omp_for already has its own loop struct.
9068 * tree-parloops.c (create_phi_for_local_result)
9069 (create_call_for_reduction): Handle simple latch bb.
9070 (create_parallel_loop): Add simple latch bb to preserve
9071 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
9072 (gen_parallel_loop): Remove call to cancel_loop_tree.
9073 (parallelize_loops): Skip loops that are inner loops of parallelized
9075 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9076 verify_loop_structure.
9078 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9080 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9081 * config/v850/v850.md (RV_REGNUM): New constants.
9082 * config/v850/v850.c (v850_libcall_value): New functions.
9083 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9084 (TARGET_LIBCALL_VALUE): Define.
9086 2015-07-30 Anatoly Sokolov <aesok@post.ru>
9088 * rtl.h (lowpart_subreg): Move in file.
9089 * loop-iv.c (lowpart_subreg): Move to...
9090 * simplify-rtx.c (lowpart_subreg): ...here.
9091 (simplify_binary_operation_1): Use lowpart_subreg instead of
9092 simplify_gen_subreg.
9093 * expr.c (expand_expr_real_2): Ditto.
9094 * emit-rtl.c (gen_lowpart_common): Ditto.
9095 * combine.c (gen_lowpart_for_combine): Ditto.
9096 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9097 expand_debug_source_expr): Ditto.
9099 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
9101 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9102 (expand_builtin_atomic_clear): Remove support for atomic_clear
9105 2015-07-30 Richard Biener <rguenther@suse.de>
9107 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9108 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9109 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
9110 redundant operand canonicalization.
9112 2015-07-30 David Sherwood <david.sherwood@arm.com>
9114 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9115 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9116 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9117 * config/arm/arm.c (neon_valid_immediate): Likewise.
9118 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9119 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9120 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9121 (expand_vec_perm_vpshufb2_vpermq): Likewise.
9122 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9123 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9124 * config/i386/sse.md
9125 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9126 (*ssse3_palignr<mode>_perm): Likewise.
9127 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9128 * config/spu/spu.c (arith_immediate_p): Likewise.
9129 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9130 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9132 2015-07-30 Richard Biener <rguenther@suse.de>
9134 * genmatch.c (decision_tree::gen_gimple): Merge with ...
9135 (decision_tree::gen_generic): ... this into ...
9136 (decision_tree::gen): ... this.
9137 (main): Adjust callers.
9139 2015-07-30 Richard Biener <rguenther@suse.de>
9141 * genmatch.c (verbose): New global.
9142 (warning_at): Add overload with source_location.
9143 (capture_info::capture_info): Add bool whether generating gimple
9144 or generic. Add gimple member.
9145 (capture_info::cinfo): Add capture member.
9146 (capture_info::walk_match): Record capture. Warn on
9148 (capture_info::walk_c_expr): Add more fragments captures cannot
9149 escape through. Warn on escaped captures.
9150 (dt_simplify::gen_1): Warn on operands we force to have no
9152 (main): Initialize verbose.
9153 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9155 2015-07-30 Richard Biener <rguenther@suse.de>
9158 * match.pd: Allow both operands to independently have conversion
9159 when simplifying compares of addresses.
9161 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
9165 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9166 around those cases that need one.
9168 2015-07-29 Aditya Kumar <hiraditya@msn.com>
9170 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9172 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
9174 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9175 New. Copied from config/i386/gnu-user.h.
9176 (ASM_COMMENT_START): Likewise.
9177 (DBX_REGISTER_NUMBER): Likewise.
9179 2015-07-29 Richard Biener <rguenther@suse.de>
9181 * gimple-fold.c (fold_gimple_cond): Remove.
9182 (fold_stmt_1): Do not call it.
9184 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
9186 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9187 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9189 * config/aarch64/aarch64-modes.def: Add HFmode.
9191 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9192 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9194 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9195 aarch64_promoted_type): New.
9197 (aarch64_float_const_representable_p): Disable HFmode.
9198 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9199 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9200 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9202 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9203 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9205 * config/aarch64/iterators.md (GPF_F16): New.
9207 2015-07-29 Richard Biener <rguenther@suse.de>
9209 * match.pd: Merge address comparison patterns and make them
9210 handle some more cases.
9212 2015-07-29 Richard Biener <rguenther@suse.de>
9214 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9215 (parser::parse_capture): Add bool argument on whether to reject
9217 (parser::parse_expr): Adjust.
9218 (parser::parse_op): Likewise.
9219 (parser::parse_pattern): Likewise.
9221 2015-07-29 Richard Biener <rguenther@suse.de>
9223 * gimple-fold.c (has_use_on_stmt): New function.
9224 (replace_stmt_with_simplification): Use it to allow
9225 abnormals originally referenced in the stmt.
9226 (fold_stmt_1): Canonicalize operand order.
9228 2015-07-28 David Sherwood <david.sherwood@arm.com>
9230 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
9231 GET_MODE_INNER unconditionally.
9232 * config/spu/spu.c (arith_immediate_p): Likewise.
9233 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
9234 * expmed.c (synth_mult): Remove check for VOIDmode result from
9236 (expand_mult_const): Likewise.
9237 * fold-const.c (fold_binary_loc): Replace call to element_precision
9238 with call to GET_MODE_PRECISION.
9239 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
9241 (emit_mode_inner): Likewise.
9242 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
9244 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
9245 (GET_MODE_UNIT_PRECISION): Likewise.
9246 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
9247 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9248 * stor-layout.c (bitwise_type_for_mode): Update assert.
9249 (element_precision): Remove.
9251 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9253 * target-insns.def (reload_load_address): New targetm instruction
9255 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
9257 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9259 * target-insns.def (atomic_test_and_set): New targetm instruction
9261 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
9262 HAVE_*/gen_* interface.
9264 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9266 * target-insns.def (can_extend, ptr_extend): New targetm instruction
9268 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
9269 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9270 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
9271 * rtlanal.c (nonzero_bits1): Likewise.
9272 (num_sign_bit_copies1): Likewise.
9274 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9276 * target-insns.def (eh_return): New targetm instruction pattern.
9277 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
9279 * function.c (thread_prologue_and_epilogue_insns): Remove
9280 preprocessor condition.
9282 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9284 * target-insns.def (indirect_jump): New targetm instruction pattern.
9285 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
9288 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
9290 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
9291 instead of nonimmediate_operand. Remove C condiition.
9293 2015-07-28 Richard Biener <rguenther@suse.de>
9295 * match.pd: Add more simplification of address comparisons.
9297 2015-07-28 Richard Biener <rguenther@suse.de>
9299 * match.pd: Re-order two cases in comparison with max/min
9300 value simplification to make it apply for bools.
9302 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9304 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
9305 Handle simple SIGN_EXTEND or ZERO_EXTEND.
9306 (aarch64_rtx_costs): Properly strip extend or extract before
9307 passing down to rtx costs again.
9309 2015-07-28 Nick Clifton <nickc@redhat.com>
9311 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
9312 Optimizes the case where -mes0 is active and a constant symbolic
9314 * config/rl78/rl78-protos.h: Prototype the new function.
9315 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
9317 2015-07-28 Tom de Vries <tom@codesourcery.com>
9319 * tree-parloops.c (reduc_stmt_res): New function.
9320 (initialize_reductions, add_field_for_reduction)
9321 (create_phi_for_local_result, create_loads_for_reductions)
9322 (create_stores_for_reduction, build_new_reduction): Handle case that
9323 reduc_stmt is a phi.
9324 (gather_scalar_reductions): Allow double_reduc reductions.
9326 2015-07-28 Richard Biener <rguenther@suse.de>
9328 * fold-const.c (fold_comparison): Remove equality folding
9329 of decl addresses ...
9330 * match.pd: ... here and merge with existing pattern.
9332 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9334 PR tree-optimization/66828
9335 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
9336 from int64_t to uint64_t.
9338 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
9340 * opts-common.c (read_cmdline_option): List DriverOnly enum values
9341 as valid only in the error message of the driver, not in the
9342 messages of the language compilers.
9344 2015-07-27 Tom de Vries <tom@codesourcery.com>
9346 * tree-parloops.c (gather_scalar_reductions): Simplify function
9349 2015-07-27 Marek Polacek <polacek@redhat.com>
9351 * ipa-devirt.c (types_same_for_odr): Fix typo.
9353 2015-07-27 Jason Merrill <jason@redhat.com>
9356 * dwarf2out.c (gen_inlined_subroutine_die): Check
9357 cgraph_function_possibly_inlined_p.
9359 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
9361 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
9362 Place integer variant first.
9363 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9365 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
9368 * config/arm/arm-builtins.c (enum arm_builtins):
9369 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
9370 (ARM_BUILTIN_NEON_BASE): Rename macro to....
9371 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
9372 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
9373 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
9375 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
9378 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
9379 Add qualifier_lane_index.
9380 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
9381 (arm_getlane_qualifiers): Use qualifier_lane_index.
9382 (arm_lanemac_qualifiers): Rename to...
9383 (arm_mac_n_qualifiers): ...this.
9384 (LANEMAC_QUALIFIERS): Rename to...
9385 (MAC_N_QUALIFIERS): ...this.
9386 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
9387 (arm_setlane_qualifiers): Use qualifier_lane_index.
9388 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
9389 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
9390 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
9391 (arm_expand_neon_builtin): Handle qualifier_lane_index.
9393 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
9394 * config/arm/arm.c (bounds_check): Likewise, improve error message.
9395 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
9396 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
9397 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
9398 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
9399 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
9400 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
9401 qualifiers to TERNOP_IMM.
9402 (vdup_lane): Change qualifiers to GETLANE.
9403 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
9404 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
9405 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
9406 vqdmlsl_n): Change qualifiers to MAC_N.
9408 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
9409 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
9410 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
9411 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
9412 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
9413 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
9414 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
9415 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
9416 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
9417 Remove call to neon_lane_bounds.
9419 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
9421 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9422 Place integer variant first.
9424 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
9426 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
9427 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
9428 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
9429 for armv6kz targets.
9430 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
9431 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
9432 (FL_FOR_ARCH6ZK): Remove.
9433 (FL_FOR_ARCH6KZ): New.
9434 (arm_arch6zk): New declaration.
9435 * config/arm/arm-tables.opt: Regenerate.
9436 * config/arm/arm.c (arm_arch6kz): New.
9437 (arm_option_override): Set arm_arch6kz.
9438 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
9439 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
9440 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
9442 2015-07-27 Marek Polacek <polacek@redhat.com>
9446 * doc/invoke.texi: Document -Wtautological-compare.
9448 2015-07-27 Richard Biener <rguenther@suse.de>
9450 * genmatch.c (decision_tree::gen_gimple): Split out large
9451 subtrees into separate functions.
9452 (decision_tree::gen_generic): Likewise.
9454 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
9456 * config/alpha/alpha.c: Use SUBREG_P predicate.
9457 * config/alpha/predicates.md: Ditto.
9459 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9461 * config.host (s390*-*-*): Include driver-native.c only when
9462 building with s390* as host *and* target.
9464 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
9467 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
9468 T bit register modified_between_p check.
9470 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9472 * config/i386/i386.c: Use SUBREG_P predicate.
9473 * config/i386/i386.md: Ditto.
9474 * config/i386/sse.md: Ditto.
9475 * config/i386/predicates.md: Ditto.
9477 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9480 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
9481 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
9483 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9485 * Makefile.in: Remove use of TREEBROWSER.
9486 * config.in: Regenerated.
9487 * configure: Regenerated.
9488 * configure.ac: Remove definition of TREEBROWSER.
9489 * tree-browser.c: Removed.
9490 * tree-browser.def: Removed.
9492 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9494 * graphite-scop-detection.c: Include gimple-pretty-print.h.
9495 (stmt_simple_for_scop_p): Print when a stmt is not handled in
9497 (scopdet_basic_block_info): Print when a loop or bb cannot be
9498 represented in Graphite.
9500 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9503 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
9504 execution guard when min_size is less than size_needed.
9506 2015-07-25 Sebastian Pop <s.pop@samsung.com>
9508 * doc/install.texi: Document supported versions of ISL.
9510 2015-07-25 Jeff Law <law@redhat.com>
9514 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9515 unable to find X NE 0 in the tables, return X as the simplified
9517 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9518 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9520 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9521 after removing the control flow statement and unnecessary edges.
9523 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
9526 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
9528 PR rtl-optimization/64164
9529 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9530 * tree-ssa-copyrename.c: Removed.
9531 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9532 -ftree-coalesce-vars.
9533 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9534 * common.opt (ftree-copyrename): Ignore.
9535 (ftree-coalesce-inlined-vars): Likewise.
9536 * doc/invoke.texi: Remove the ignored options above.
9537 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9538 * tree-ssa-coalesce.h: ... here.
9539 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9540 headers required by it.
9541 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9542 across variables when flag_tree_coalesce_vars. Check register
9543 use and promoted modes to allow coalescing. Moved to
9544 tree-ssa-coalesce.c.
9545 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9546 with its member functions to tree-ssa-coalesce.c.
9547 (var_map_base_init): Likewise. Renamed to
9548 compute_samebase_partition_bases.
9549 (partition_view_normal): Drop want_bases parameter.
9550 (partition_view_bitmap): Likewise.
9551 * tree-ssa-live.h: Adjust declarations.
9552 * tree-ssa-coalesce.c: Include explow.h.
9553 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9554 default defs at the entry point.
9555 (dump_part_var_map): New.
9556 (compute_optimized_partition_bases): New, called by...
9557 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9558 of compute_samebase_partition_bases. Adjust.
9559 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9560 * cfgexpand.c (leader_merge): New.
9561 (get_rtl_for_parm_ssa_default_def): New.
9562 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9563 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9564 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9565 redundant MEM attr setting.
9566 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9568 (expand_one_stack_var): ... this. New wrapper to check and
9569 skip already expanded SSA partitions.
9570 (record_alignment_for_reg_var): New, factored out of...
9571 (expand_one_var): ... this.
9572 (expand_one_ssa_partition): New.
9573 (adjust_one_expanded_partition_var): New.
9574 (expand_one_register_var): Check and skip already expanded SSA
9576 (expand_used_vars): Don't create DECLs for anonymous SSA
9577 names. Expand all SSA partitions, then adjust all SSA names.
9578 (pass::execute): Replace the loops that set
9579 SA.partition_to_pseudo from partition leaders and cleared
9580 DECL_RTL for multi-location variables, and that which used to
9581 rename vars and set attrs, with one that clears DECL_RTL and
9582 checks that PARMs and RESULTs default_defs match DECL_RTL.
9583 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9584 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9585 * explow.c (promote_ssa_mode): New.
9586 * explow.h (promote_ssa_mode): Declare.
9587 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9588 * function.c: Include cfgexpand.h.
9589 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9590 (use_register_for_parm_decl): Wrapper for the above to
9591 special-case the result_ptr.
9592 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9593 (split_complex_args): Take assign_parm_data_all argument.
9594 Pass it to rtl_for_parm. Set up rtl and context for split
9596 (assign_parms_augmented_arg_list): Adjust.
9597 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9598 multiple locations. Recognize split complex args.
9599 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9600 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9601 (assign_parm_setup_block): Prefer SSA-assigned location.
9602 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9603 if stack_parm is NULL.
9604 (assign_parm_setup_stack): Prefer SSA-assigned location.
9605 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9606 rtl before testing for pointer bounds. Special-case result_ptr.
9607 (expand_function_start): Maybe reset DECL_RTL of result.
9608 Prefer SSA-assigned location for result and static chain.
9609 Factor out DECL_RESULT and SET_DECL_RTL.
9610 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9611 anonymous SSA names. Use promote_ssa_mode.
9612 (get_temp_reg): Likewise.
9613 (remove_ssa_form): Adjust.
9614 * stor-layout.c (layout_decl): Don't set mem attributes of
9616 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9617 and get its reg_usage for reg invalidation.
9618 (compute_bb_dataflow): Pass it insn.
9619 (emit_notes_in_bb): Likewise.
9621 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
9623 * config/i386/i386.c (ix86_va_start): Remove
9624 unneeded !TARGET_64BIT check.
9625 (ix86_gimplify_va_arg): Ditto.
9627 2015-07-24 Tom de Vries <tom@codesourcery.com>
9629 * graphite-sese-to-poly.c (build_poly_scop): Always call
9630 rewrite_commutative_reductions_out_of_ssa.
9632 2015-07-24 Tom de Vries <tom@codesourcery.com>
9634 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
9635 flag_associative_math to FLOAT_TYPE_P. Honour
9636 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
9638 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9641 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
9642 and "%qD" in warning_at instead of "%q+D" in warning.
9644 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
9646 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
9647 (ix86_function_abi): Cleanup.
9649 2015-07-24 Michael Darling <darlingm@gmail.com>
9652 * acinclude.m4: Reflects renaming of configure.in to configure.ac
9653 * configure: Likewise
9654 * configure.ac: Likewise
9655 * doc/install.texi: Likewise
9656 * doc/tm.texi: Likewise
9657 * doc/tm.texi.in: Likewise
9659 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9661 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
9662 manually swapping values.
9663 * cse.c (fold_rtx): Likewise.
9664 * lra-eliminations.c (form_sum): Likewise.
9666 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
9669 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
9670 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
9671 (*jcc_1, *jcc_2, jump, simple_return_internal)
9672 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
9673 Set length_nobnd attribute instead of length attribute.
9674 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
9675 (length_nobnd): Remove attribute.
9676 (length): Remove length_nobnd processing.
9678 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
9680 * gimplify.c (omp_default_clause): New function. Reorganize flow
9681 for clarity. Broken out of ...
9682 (omp_notice_variable): ... here.
9684 2015-07-24 Gary Funck <gary@intrepid.com>
9687 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
9688 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
9690 2015-07-24 Tom de Vries <tom@codesourcery.com>
9692 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
9693 exit-first loop transform.
9695 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
9698 * tree-cfg.c (struct replace_decls_d): New struct.
9699 (replace_block_vars_by_duplicates_1): New function.
9700 (replace_block_vars_by_duplicates): Use it to replace the decls
9701 in the value exprs by duplicates.
9703 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9705 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
9706 -shared, -symbolic, -rdynamic.
9708 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9711 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
9712 -dynamic-linker within %{!static %{!shared, and -rdynamic within
9715 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
9718 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
9719 edge summary is available.
9721 2015-07-24 Richard Biener <rguenther@suse.de>
9723 * genmatch.c (struct dt_node): Add statistic fields.
9724 (dt_node::analyze): New method.
9725 (decision_tree::gen_gimple): Call analyze on the root node
9726 and print statistics to stderr.
9727 (decision_tree::gen_generic): Likewise.
9729 2015-07-24 Richard Biener <rguenther@suse.de>
9731 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
9732 against the highest or lowest possible integer ...
9733 * match.pd: ... as patterns here.
9735 2015-07-24 Richard Biener <rguenther@suse.de>
9737 * genmatch.c (struct capture_info): Add same_as field.
9738 (capture_info::capture_info): Initialize same_as.
9739 (capture_info::walk_match): Compute same_as.
9740 (capture_info::walk_result): Compute stuff for the leader.
9741 (capture_info::walk_c_expr): Likewise.
9742 (dt_simplify::gen_1): Only look at leaders when deciding
9743 to force no side-effects or emit side-effects of omitted operands.
9745 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9747 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
9748 reg note to the GPR -> FPR save instructions.
9750 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9752 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
9754 (s390_expand_insv): Don't generate risbg pattern for constant zero
9756 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
9757 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
9760 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9762 * config/s390/s390.c (s390_reorg): Clean up handling of processors
9765 (s390_issue_rate): Likewise.
9766 (s390_sched_reorder): Likewise.
9767 (s390_sched_variable_issue): Likewise.
9768 (s390_loop_unroll_adjust): Likewise.
9769 (s390_option_override): Likewise.
9771 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9773 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
9774 processor capabilities with -march=native.
9775 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
9776 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
9777 (S390_TARGET_BITS_STRING): Macro to simplify specs.
9779 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9781 * config/s390/s390.c (s390_issue_rate): Handle
9782 PROCESSOR_2094_Z9_EC.
9783 (s390_option_override): Likewise.
9784 (s390_adjust_priority): Likewise.
9786 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
9788 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
9789 when cross compiling.
9791 2015-07-24 Richard Biener <rguenther@suse.de>
9793 * fold-const.c (maybe_canonicalize_comparison_1): Move
9794 A code CST canonicalization ...
9795 * match.pd: ... to a pattern here.
9797 2015-07-24 Jiong Wang <jiong.wang@arm.com>
9800 2015-07-22 Jiong Wang <jiong.wang@arm.com>
9802 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
9803 (HONOR_REG_ALLOC_ORDER): Define.
9805 2015-07-24 Richard Biener <rguenther@suse.de>
9807 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
9808 * fold-const.c (fold_comparison): Move parameter does not
9809 alias &local simplification ...
9810 * match.pd: ... as a pattern here.
9812 2015-07-24 Richard Biener <rguenther@suse.de>
9814 * gimple-fold.c (replace_stmt_with_simplification): Special-case
9815 valueizing call operands.
9816 * gimple-match-head.c (maybe_push_res_to_seq): Take
9817 number of call arguments from ops array.
9818 (do_valueize): New function.
9819 (gimple_simplify): Return true if valueization changed
9820 any operand even if the result didn't simplify further.
9822 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9825 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
9827 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9830 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
9832 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9834 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
9837 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9839 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
9842 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
9844 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
9845 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
9847 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
9848 ms_va_list_type_node initialization.
9850 2015-07-23 Jeff Law <law@redhat.com>
9853 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9854 unable to find X NE 0 in the tables, return X as the simplified
9856 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9857 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9859 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9860 after removing the control flow statement and unnecessary edges.
9862 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
9864 * tree-pass.h (get_current_pass_name): Removed.
9866 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
9868 PR rtl-optimization/64164
9869 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9870 * tree-ssa-copyrename.c: Removed.
9871 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9872 -ftree-coalesce-vars.
9873 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9874 * common.opt (ftree-copyrename): Ignore.
9875 (ftree-coalesce-inlined-vars): Likewise.
9876 * doc/invoke.texi: Remove the ignored options above.
9877 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9878 * tree-ssa-coalesce.h: ... here.
9879 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9880 headers required by it.
9881 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9882 across variables when flag_tree_coalesce_vars. Check register
9883 use and promoted modes to allow coalescing. Moved to
9884 tree-ssa-coalesce.c.
9885 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9886 with its member functions to tree-ssa-coalesce.c.
9887 (var_map_base_init): Likewise. Renamed to
9888 compute_samebase_partition_bases.
9889 (partition_view_normal): Drop want_bases parameter.
9890 (partition_view_bitmap): Likewise.
9891 * tree-ssa-live.h: Adjust declarations.
9892 * tree-ssa-coalesce.c: Include explow.h.
9893 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9894 default defs at the entry point.
9895 (dump_part_var_map): New.
9896 (compute_optimized_partition_bases): New, called by...
9897 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9898 of compute_samebase_partition_bases. Adjust.
9899 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9900 * cfgexpand.c (leader_merge): New.
9901 (get_rtl_for_parm_ssa_default_def): New.
9902 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9903 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9904 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9905 redundant MEM attr setting.
9906 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9908 (expand_one_stack_var): ... this. New wrapper to check and
9909 skip already expanded SSA partitions.
9910 (record_alignment_for_reg_var): New, factored out of...
9911 (expand_one_var): ... this.
9912 (expand_one_ssa_partition): New.
9913 (adjust_one_expanded_partition_var): New.
9914 (expand_one_register_var): Check and skip already expanded SSA
9916 (expand_used_vars): Don't create DECLs for anonymous SSA
9917 names. Expand all SSA partitions, then adjust all SSA names.
9918 (pass::execute): Replace the loops that set
9919 SA.partition_to_pseudo from partition leaders and cleared
9920 DECL_RTL for multi-location variables, and that which used to
9921 rename vars and set attrs, with one that clears DECL_RTL and
9922 checks that PARMs and RESULTs default_defs match DECL_RTL.
9923 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9924 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9925 * explow.c (promote_ssa_mode): New.
9926 * explow.h (promote_ssa_mode): Declare.
9927 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9928 * function.c: Include cfgexpand.h.
9929 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9930 (use_register_for_parm_decl): Wrapper for the above to
9931 special-case the result_ptr.
9932 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9933 (split_complex_args): Take assign_parm_data_all argument.
9934 Pass it to rtl_for_parm. Set up rtl and context for split
9936 (assign_parms_augmented_arg_list): Adjust.
9937 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9938 multiple locations. Recognize split complex args.
9939 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9940 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9941 (assign_parm_setup_block): Prefer SSA-assigned location.
9942 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9943 if stack_parm is NULL.
9944 (assign_parm_setup_stack): Prefer SSA-assigned location.
9945 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9946 rtl before testing for pointer bounds. Special-case result_ptr.
9947 (expand_function_start): Maybe reset DECL_RTL of result.
9948 Prefer SSA-assigned location for result and static chain.
9949 Factor out DECL_RESULT and SET_DECL_RTL.
9950 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9951 anonymous SSA names. Use promote_ssa_mode.
9952 (get_temp_reg): Likewise.
9953 (remove_ssa_form): Adjust.
9954 * stor-layout.c (layout_decl): Don't set mem attributes of
9956 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9957 and get its reg_usage for reg invalidation.
9958 (compute_bb_dataflow): Pass it insn.
9959 (emit_notes_in_bb): Likewise.
9961 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9964 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
9966 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
9967 (rs6000_emit_2insn_and): Handle dot forms.
9968 * config/rs6000/rs6000.md (and<mode>3): Adjust.
9969 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
9970 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
9972 2015-07-23 Richard Biener <rguenther@suse.de>
9974 * generic-match-head.c: Include cgraph.h.
9975 * gimple-match-head.c: Likewise.
9976 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
9978 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
9979 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
9982 2015-07-23 Richard Biener <rguenther@suse.de>
9984 * gimple-fold.c (fold_gimple_cond): Do not require folding
9985 results to pass valid_gimple_rhs_p.
9986 * tree-cfg.h (fold_cond_expr_cond): Remove.
9987 * tree-cfg.c (fold_cond_expr_cond): Likewise.
9988 (make_edges): Do not call it.
9989 * tree-inline.c (tree_function_versioning): Likewise.
9991 2015-07-23 Tom de Vries <tom@codesourcery.com>
9993 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
9994 vect_force_simple_reduction.
9995 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
9996 (vect_is_simple_reduction_1): Add and handle
9997 need_wrapping_integral_overflow parameter.
9998 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
9999 need_wrapping_integral_overflow parameter.
10000 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10001 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10004 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
10006 PR tree-optimization/66926,66951
10007 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10008 INNER_LOOP and fix up condition for renaming virtual operands.
10010 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10012 * combine.c (try_combine): Use std::swap instead of manually
10015 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
10017 * config/mips/i6400.md: New file.
10018 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10019 (mips64r6): Likewise.
10021 * config/mips/mips-tables.opt: Regenerate.
10022 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10023 (mips_issue_rate): Add support for i6400.
10024 (mips_multipass_dfa_lookahead): Likewise.
10025 * config/mips/mips.h (TUNE_I6400): Define.
10026 * config/mips/mips.md: Include i6400.md.
10027 (processor): Add i6400.
10028 * doc/invoke.texi (-march=@var{arch}): Add i6400.
10030 2015-07-23 Richard Biener <rguenther@suse.de>
10032 PR middle-end/66916
10033 * match.pd: Guard widen and sign-change comparison simplification
10036 2015-07-23 Richard Biener <rguenther@suse.de>
10038 PR tree-optimization/66945
10039 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10040 ::before_dom_children): Force the propagators idea of
10041 non-executable edges to materialize, not what the folder
10044 2015-07-23 Richard Biener <rguenther@suse.de>
10046 * gimple.h (gimple_cond_make_false): Use 0 != 0.
10047 (gimple_cond_make_true): Use 1 != 0.
10049 2015-07-22 DJ Delorie <dj@redhat.com>
10051 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10054 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10055 (ashrhi3): Likewise.
10056 (lshrhi3): Likewise.
10057 (movhi): Take advantage of zero-extend to load small constants.
10058 (movpsi): Likewise.
10059 (and<mode>3): Likewise.
10060 (zero_extendqihi2): Likewise.
10061 (zero_extendqisi2): New.
10062 * config/msp430/constraints.md (N,O): New.
10063 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10065 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
10068 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10069 to enum feature_priority and feature_list.
10070 (fold_builtin_cpu): Add F_AES to enum processor_features
10071 and isa_names_table.
10073 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
10076 * config/i386/linux-common.h (MPX_SPEC): Use linker option
10077 for 64bit target only.
10079 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
10081 * config/nvptx/nvptx.c: Expand some comments.
10083 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
10085 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10086 (cortex_a53_advsimd): ...This.
10088 2015-07-22 Richard Biener <rguenther@suse.de>
10090 * genmatch.c (expr::gen_transform): Clarify error message
10091 and display location.
10093 2015-07-22 Richard Biener <rguenther@suse.de>
10095 * genmatch.c (struct operand): Add location member.
10096 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10098 (struct simplify): Remove match_location and result_location
10100 (elsehwere): Adjust.
10102 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
10104 * config/mips/m5100.md: New file.
10105 * config/mips/mips-cpus.def (m5100, m5101): Define.
10106 * config/mips/mips-tables.opt: Regenerate.
10107 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10108 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10109 -march=m5101 to -mips32r5.
10110 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10111 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10113 * config/mips/mips.md: Include m5100.md.
10114 (processor): Add m5100.
10115 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10117 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
10119 * config/mips/mips-cpus.def (interaptiv): Define.
10120 * config/mips/mips-tables.opt: Regenerate.
10121 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10123 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10124 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10126 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10129 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10130 (HONOR_REG_ALLOC_ORDER): Define.
10132 2015-07-22 Richard Biener <rguenther@suse.de>
10134 PR tree-optimization/66952
10135 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10136 blocks we end up executing unconditionally reset all SSA
10137 info such as range and alignment.
10138 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10139 * tree-ssanames.c (reset_flow_sensitive_info): New function.
10141 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10143 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10146 2015-07-22 Richard Biener <rguenther@suse.de>
10148 * genmatch.c (parser::parse_result): Properly handle
10149 match with result operands and conditions.
10151 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
10154 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10155 Add qualifier_struct_load_store_lane_index.
10156 (aarch64_types_loadstruct_lane_qualifiers): Use
10157 qualifier_struct_load_store_lane_index for lane index argument for
10159 (aarch64_types_storestruct_lane_qualifiers): Ditto.
10160 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10161 (aarch64_simd_expand_args): Add new argument describing mode of
10162 builtin. Check lane bounds for arguments with
10163 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10164 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10165 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10166 (aarch64_simd_expand_builtin): Handle arguments with
10167 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10168 aarch64_simd_expand_args.
10169 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10170 vst[234]_lane with BUILTIN_VALLDIF.
10171 * config/aarch64/aarch64-simd.md:
10172 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10173 endianness reversal on lane index.
10174 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10175 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10176 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10177 (vec_store_lanesci_lane<mode>): Ditto.
10178 (vec_store_lanesxi_lane<mode>): Ditto.
10179 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10180 reversal of lane index.
10181 (aarch64_ld3_lane<mode>): Ditto.
10182 (aarch64_ld4_lane<mode>): Ditto.
10183 (aarch64_st2_lane<mode>): Ditto.
10184 (aarch64_st3_lane<mode>): Ditto.
10185 (aarch64_st4_lane<mode>): Ditto.
10186 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10187 to qmode. Add new mode parameter. Update uses.
10188 (__LD3_LANE_FUNC): Ditto.
10189 (__LD4_LANE_FUNC): Ditto.
10190 (__ST2_LANE_FUNC): Ditto.
10191 (__ST3_LANE_FUNC): Ditto.
10192 (__ST4_LANE_FUNC): Ditto.
10194 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
10196 * doc/invoke.texi (Language Independent Options): Rename node to
10197 Diagnostic Message Formatting Options.
10199 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
10202 * lra-remat.c (operand_to_remat): Prevent using insns with input
10203 subregs processed separately by IRA.
10205 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
10207 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10209 (single_imm_use): Check for iterator node.
10210 (num_imm_uses): Likewise.
10211 * tree-ssa-operands.c (has_zero_uses_1): Delete.
10212 (single_imm_use_1): Check for iterator node.
10214 2015-07-21 Mike Frysinger <vapier@gentoo.org>
10215 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10217 * configure.ac: Add check for new options in isl-0.15.
10218 * config.in, configure: Rebuilt.
10219 * graphite-blocking.c: Include <isl/constraint.h>
10220 * graphite-interchange.c, graphite-poly.c: Likewise.
10221 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10222 * graphite.c: Likewise.
10223 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10225 * graphite-dependences.c: Include <isl/constraint.h>.
10226 (max_number_of_out_dimensions): Returns isl_stat.
10227 (extend_schedule_1): Likewise
10228 (extend_schedule): Corresponding changes.
10229 * graphite-optimize-isl.c: Include <isl/constraint.h> and
10231 (getSingleMap): Change return type of isl_stat.
10232 (optimize_isl): Conditionally use
10233 isl_options_set_schedule_serialize_sccs.
10234 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
10235 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
10237 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
10240 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
10241 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
10243 2015-07-21 Richard Biener <rguenther@suse.de>
10245 PR tree-optimization/66948
10246 * genmatch.c (capture_info::walk_match): Also recurse to
10247 captures. Properly compute expr state from captures of
10249 * match.pd: Add single-use guards to
10250 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
10252 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
10254 * config/nvptx/mkoffload.c (process): Add static destructor call.
10256 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10258 PR middle-end/66915
10259 * match.pd (A - B -> A + (-B)): Don't allow folding
10260 when type if a fixed-point type.
10262 2015-07-20 DJ Delorie <dj@redhat.com>
10264 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
10265 (iorqi3_real): Likewise for set1.
10267 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
10269 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
10272 2015-07-20 Aditya Kumar <hiraditya@msn.com>
10274 * graphite-isl-ast-to-gimple.c:
10275 Refactor so that each function can access 'region'. This will help
10276 maintain a parameter rename_map within a region.
10278 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10280 * config/rs6000/rs6000.md (*lt0_disi): New.
10282 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10285 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
10286 "available letters" comment.
10287 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
10288 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
10289 and_2rld_operand): Delete.
10290 (and_operand): Adjust.
10291 (rotate_mask_operator): New.
10292 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
10293 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
10294 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
10295 extract_ME): Delete.
10296 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10297 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
10298 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
10299 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10300 rs6000_emit_2insn_and): New.
10301 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
10302 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
10303 includes_rldic_lshift_p, includes_rldicr_lshift_p,
10304 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
10305 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
10306 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
10307 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
10308 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
10309 rs6000_emit_2insn_and): New.
10310 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
10311 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
10313 <NOT>: Don't fall through to next case.
10314 <AND>: Handle the various rotate-and-mask cases directly.
10315 <IOR>: Always cost as one insn.
10316 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
10317 (and<mode>3): Adjust expander for the new patterns.
10318 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
10319 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
10320 (*and<mode>3_imm_dot_shifted): New.
10321 (*and<mode>3_mask): Delete, rewrite as ...
10322 (and<mode>3_mask): ... New.
10323 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
10324 (andsi3_internal0_nomc): Delete.
10325 (*andsi3_internal6): Delete.
10326 (*and<mode>3_2insn): New.
10327 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10328 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10329 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
10330 *insvdi_internal3): Delete.
10331 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
10332 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
10333 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
10334 *ior<mode>_mask): New.
10335 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
10336 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10337 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10338 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10340 (ashr<mode>3): Delete expander.
10341 (*ashr<mode>3): Rename to ...
10342 (ashr<mode>3): ... This.
10343 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
10344 (*rotldi3_internal4, *rotldi3_internal5 and split,
10345 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
10346 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
10347 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
10348 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
10349 (splitter for loading a mask): Adjust.
10350 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
10352 2015-07-20 Marek Polacek <polacek@redhat.com>
10354 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
10355 output_add_clobbers, output_added_clobbers_hard_reg_p,
10356 gen_rtx_scratch): Remove declarations.
10358 2015-07-20 Marek Polacek <polacek@redhat.com>
10361 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
10363 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10365 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
10366 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
10368 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10370 * combine.c (combine_simplify_rtx): Move simplification step
10371 before various transformations/substitutions.
10373 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
10375 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
10376 (struct int_traits): Likewise.
10378 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10380 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
10381 function to vmsdbgout_function_decl.
10383 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
10386 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
10387 from misaligned positions.
10388 (ix86_expand_pinsr): Reject insertions to misaligned positions.
10390 2015-07-18 Sebastian Pop <s.pop@samsung.com>
10392 PR middle-end/46851
10393 PR middle-end/60340
10394 * Makefile.in: Removed omega.o.
10395 * common.opt: Document flag fcheck-data-deps as deprecated.
10396 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
10397 its associated params: omega-max-vars, omega-max-geqs,
10398 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
10399 omega-max-keys, omega-eliminate-redundant-constraints.
10400 * doc/loop.texi: Remove all the section on Omega.
10401 * graphite-blocking.c: Include missing params.h: it used to be
10402 included through tree-data-ref.h and omega.h.
10403 * graphite-isl-ast-to-gimple.c: Same.
10404 * graphite-optimize-isl.c: Same.
10405 * graphite-sese-to-poly.c: Same.
10406 * graphite.c: Same.
10409 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
10410 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
10411 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
10412 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
10413 * passes.def: Remove pass_check_data_deps.
10414 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
10415 (dump_conflict_function): Same.
10416 (dump_subscript): Same.
10417 (print_direction_vector): Same.
10418 (print_dir_vectors): Same.
10419 (print_lambda_vector): Same.
10420 (print_dist_vectors): Same.
10421 (dump_data_dependence_relation): Same.
10422 (dump_data_dependence_relations): Same.
10423 (dump_dist_dir_vectors): Same.
10425 (init_omega_eq_with_af): Removed.
10426 (omega_extract_distance_vectors): Removed.
10427 (omega_setup_subscript): Removed.
10428 (init_omega_for_ddr_1): Removed.
10429 (init_omega_for_ddr): Removed.
10430 (ddr_consistent_p): Removed.
10431 (compute_affine_dependence): Do not use omega to check data
10433 (compute_data_dependences_for_bb): Removed.
10434 (analyze_all_data_dependences): Removed.
10435 (tree_check_data_deps): Removed.
10436 * tree-data-ref.h: Do not include omega.h.
10437 (compute_data_dependences_for_bb): Removed.
10438 (tree_check_data_deps): Removed.
10439 * tree-ssa-loop.c (pass_check_data_deps): Removed.
10440 (make_pass_check_data_deps): Removed.
10441 * tree-ssa-phiopt.c: Include params.h.
10442 * tree-vect-data-refs.c: Same.
10443 * tree-vect-slp.c: Same.
10445 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
10447 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
10448 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
10449 (mem->fpreg splitters): Ditto.
10450 (general_operand->nonimmediate_operand splitter): Use explicit modes.
10451 Disable DFmode for TARGET_64BIT.
10453 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
10456 * config/i386/i386.c (ix86_expand_prologue): Replicate static
10457 chain on the stack.
10459 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10461 * config/nvptx/mkoffload.c (process): Constify host data.
10462 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10463 Constify host data.
10464 (generate_host_descr_file): Likewise.
10466 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
10467 Sebastian Pop <s.pop@samsung.com>
10469 PR middle-end/61929
10470 * graphite-dependences.c (add_pdr_constraints): Renamed
10471 pdr->extent to pdr->subscript_sizes.
10472 * graphite-interchange.c (build_linearized_memory_access): Add
10473 back all gcc_assert's that the "isl_int to isl_val conversion"
10474 patch has removed. Refactored.
10475 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
10476 * graphite-poly.c (new_poly_dr): Same.
10477 (free_poly_dr): Same.
10478 * graphite-poly.h (struct poly_dr): Same.
10479 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
10480 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
10481 * graphite-scop-detection.h: Fix space.
10482 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
10483 back all gcc_assert's removed by a previous patch.
10484 (wrap): Remove the_isl_ctx global variable that the same patch has
10486 (build_loop_iteration_domains): Same.
10487 (add_param_constraints): Same.
10488 (pdr_add_data_dimensions): Same. Refactored.
10489 (build_poly_dr): Renamed extent to subscript_sizes.
10491 2015-07-17 Marek Polacek <polacek@redhat.com>
10493 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
10494 * match.pd: ... here.
10496 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
10498 * config/nvptx/mkoffload.c (process): Constify target data.
10499 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
10500 Constify target data.
10501 (generate_target_offloadend_file): Likewise.
10503 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
10505 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
10506 to allow renaming of PHI arguments on edges incoming from outer
10507 loop header, add corresponding check before start PHI iterator.
10508 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
10509 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
10510 with true force_vectorize. Set-up dominator for outer loop too.
10511 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
10512 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
10513 was marked with force_vectorize and has restricted cfg.
10514 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
10516 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
10517 do peeling for outer loops.
10519 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
10520 Matthias Klose <doko@ubuntu.com>
10522 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
10523 build-sysroot, sysroot from the `Miscenalleous configure options' to
10524 the `Directories' section and strip trailing `/' from with_sysroot.
10525 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
10526 * configure: Regenerated.
10528 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
10531 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
10532 (TARGET_HARD_DF_REGS): Ditto.
10533 (TARGET_HARD_XF_REGS): Ditto.
10534 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
10535 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
10536 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
10537 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
10538 (*movsf_internal): Add alternatives 16 and 17. Enable
10539 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
10541 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
10543 PR rtl-optimization/66891
10544 * calls.c (expand_call): Wrap precompute_register_parameters with
10545 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
10547 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
10549 * config/nvptx/mkoffload.c (process): Constify mapping variables.
10550 Define target data struct and initialize it.
10552 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
10554 PR rtl-optimization/66626
10555 * ira.h (emit-rtl.h): Include.
10556 (non_spilled_static_chain_regno_p): New.
10557 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
10558 unless it is non spilled static chain pseudo.
10559 (assign_hard_rego): Spill memory profitable allocno unless it is
10560 non spilled static chain pseudo.
10561 (allocno_spill_priority_compare): Put non spilled static chain
10562 pseudo at the end of sorted array.
10563 (improve_allocation): Do nothing if we have static chain and
10565 (allocno__priority_compare_func): Put non spilled static chain
10566 pseudo at the beginning of sorted array.
10567 (move_spill_restore): Ignore non spilled static chain pseudo.
10568 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
10569 to non spilled static chain pseudo.
10570 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
10571 pseudo at the beginning of sorted array.
10572 (spill_for): Spill non spilled static chain pseudo last.
10573 * lra-constraints.c (lra_constraints): Remove static chain pseudo
10574 check for equivalence.
10576 2015-07-16 Martin Liska <mliska@suse.cz>
10579 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
10580 dst_ctx if it does not exist.
10582 2015-07-16 Martin Liska <mliska@suse.cz>
10584 * hash-set.h (remove): New function.
10585 (iterator): New iteration class for hash_set.
10587 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10589 * genattrtab.c (make_canonical): Add a file_location parameter.
10590 Use fatal_at rather than fatal.
10591 (get_attr_value): Likewise. Update call to make_canonical.
10592 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
10593 (make_internal_attr): Update calls accordingly.
10595 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10597 * read-md.h (message_with_line, error_with_line): Delete.
10598 * read-md.c (message_with_line, error_with_line): Delete.
10599 * gensupport.h: Include read-md.h.
10600 (md_rtx_info): New structure.
10601 (read_md_rtx): Use it. Return a bool success value.
10602 * gensupport.c (read_md_rtx): Likewise.
10603 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
10604 (main): Update after interface changes.
10605 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
10606 (main): Update after interface changes.
10607 * genattrtab.c (insn_code_number): Delete.
10608 (optimize_attrs): Add a max_insn_code parameter and use it instead
10609 of insn_code_number.
10610 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
10611 Use *_at rather than *_with_line functions.
10612 (gen_insn): Likewise.
10613 (gen_delay): Likewise.
10614 (gen_insn_reserv): Likewise.
10615 (gen_bypass): Take an md_rtx_info rather than an rtx.
10616 (main): Update after interface changes. Use a local max_insn_code
10617 variable instead of insn_code_number.
10618 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
10619 an rtx. Use fatal_at rather than fatal.
10620 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
10621 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
10622 (gen_absence_set, gen_final_absence_set, gen_automaton)
10623 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
10624 (main): Update after interface changes.
10625 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
10627 (main): Update after interface changes.
10628 * genconditions.c (main): Use new read_md_rtx interface.
10629 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
10630 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
10631 (main): Update after interface changes.
10632 * genemit.c (insn_code_number, insn_index_number): Delete.
10633 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10634 Use fatal_at rather than fatal.
10635 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
10637 (gen_split): Likewise.
10638 (main): Update after interface changes.
10639 * genextract.c (line_no): Delete.
10640 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10641 Update call to walk_rtx.
10642 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
10643 rather than message_with_line.
10644 (walk_rtx): Add an md_rtx_info argument. Update call to
10645 VEC_safe_set_locstr.
10646 (main): Update after interface changes.
10647 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
10648 and lineno. Use error_at rather than separate message_with_line
10649 calls and have_error assignments.
10650 (main): Update after interface changes.
10651 * genmddump.c (main): Use new read_md_rtx interface.
10652 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
10653 (main): Update after interface changes.
10654 * genoutput.c (next_code_number): Delete.
10655 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
10656 (gen_peephole, gen_expand, gen_split): Likewise.
10657 (note_constraint): Likewise. Use *_at rather than *_with_line
10659 (main): Update after interface changes.
10660 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
10662 (main): Update after interface changes.
10663 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
10664 than an rtx and lineno.
10665 (process_define_constraint): Likewise.
10666 (process_define_register_constraint): Likewise.
10667 (main): Update after interface changes.
10668 * genrecog.c (next_insn_code, pattern_lineno): Delete.
10669 (validate_pattern): Replace top-level rtx with an md_rtx_info.
10670 Use *_at rather than *_with_line functions.
10671 (match_pattern_2): Likewise.
10672 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
10673 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
10674 Use *_at rather than *_with_line functions.
10675 * gentarget-def.c (add_insn): New function.
10676 (main): Use it. Use new read_md_rtx interface.
10678 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10680 * gensupport.h (compute_test_codes): Take a file_location rather
10681 than a line number.
10682 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
10683 rather than *_with_line functions.
10684 (process_define_predicate): Update call to compute_test_codes.
10685 * genpreds.c (validate_exp): Take a file_location rather than a
10686 line number. Use *_at functions rather than *_with_line functions.
10687 (process_define_predicate): Update call to validate_exp.
10688 (constraint_data): Replace lineno field with a file_location.
10689 (add_constraint): Take a file_location rather than a line number.
10690 Use *_at functions rather than *_with_line functions. Fix error
10691 message for address constraints. Update after changes to
10692 validate_exp, constraint_data and compute_test_codes.
10693 (process_define_constraint): Update accordingly.
10694 (process_define_register_constraint): Likewise.
10696 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10698 * genoutput.c (data): Use a file_location to record the source
10701 (idata, idata_end): Remove initialization.
10702 (constraint_data): Replace lineno with a file_location.
10703 (output_insn_data): Update after changes to data.
10704 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
10705 (scan_operands): Likewise, using *_at rather than *_with_line
10707 (process_template): Likewise.
10708 (validate_insn_alternatives): Likewise.
10709 (validate_insn_operands): Likewise.
10710 (validate_optab_operands): Likewise.
10711 (init_insn_for_nothing): Initialize idata and idata_end.
10712 (note_constraint): Update after changes to constraint_data,
10713 using at rather than with_line functions.
10714 (mdep_constraint_len): Take a file_location rather than a
10715 line number. Use at rather than with_line functions.
10717 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10719 * read-md.h (fatal_at): Declare.
10720 * read-md.c (fatal_at): New function.
10721 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
10722 to record the source position.
10723 (check_attr_test): Take a file_location instead of a line number.
10724 Use fatal_at instead of fatal.
10725 (check_attr_value): Update after above changes, using "at"
10726 rather than "with_line" reporting functions.
10727 (convert_set_attr_alternative): Likewise.
10728 (gen_attr): Likewise.
10729 (check_defs): Likewise. Don't assign to read_md_filename.
10730 (gen_insn): Update initialization after above changes.
10731 (gen_delay): Likewise.
10732 (write_insn_cases): Print the filename for a define_peephole.
10733 (gen_insn_reserv): Take a line number as argument and update
10734 the call to check_attr_test.
10735 (main): Pass a line number to gen_insn_reserv.
10737 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10739 * read-md.h (file_location): New structure.
10740 (directive_handler_t): Take a file_location rather than a line number.
10741 (message_at, error_at): Declare.
10742 (read_skip_construct): Delete.
10743 * read-md.c (message_with_line_1): Replace with...
10744 (message_at_1): ...this new function.
10745 (message_at, error_at): New functions.
10746 (message_with_line, error_with_line): Update to use message_at_1.
10747 (handle_enum): Take a file_location rather than a line number
10748 and use error_at for error reporting.
10749 (handle_include): Likewise.
10750 (read_skip_construct): Likewise. Make static.
10751 (handle_file): Update after above changes. Pass a file_location
10752 rather than a line number to handle_directive.
10753 * gensupport.c (queue_elem): Replace separate filename and lineno
10754 with a file_location.
10755 (queue_pattern): Replace filename and lineno arguments with a
10756 file_location. Update after change to queue_elem.
10757 (process_define_predicate): Replace lineno argument with a
10758 file_location and use error_at for error reporting. Update
10759 after above changes.
10760 (process_rtx): Likewise.
10761 (subst_pattern_match): Likewise.
10762 (get_alternatives_number): Likewise.
10763 (alter_predicate_for_insn): Likewise.
10764 (rtx_handle_directive): Likewise.
10765 (is_predicable): Update after above changes, using error_at rather
10766 than error_with_line.
10767 (has_subst_attribute): Likewise.
10768 (identify_predicable_attribute): Likewise.
10769 (alter_attrs_for_subst_insn): Likewise.
10770 (process_one_cond_exec): Likewise.
10771 (process_substs_on_one_elem): Likewise.
10772 (process_define_subst): Likewise.
10773 (check_define_attr_duplicates): Likewise.
10774 (read_md_rtx): Update after change to queue_elem.
10776 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10778 * genoutput.c (next_index_number): Delete.
10779 (data): Remove index_number.
10780 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
10781 (main): Remove manipulation of next_index_number.
10783 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
10785 * genattrtab.c (check_attr_value): Remove handling of null attrs.
10786 (make_canonical): Likewise.
10788 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
10790 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
10791 instead of adjust_address_nv.
10792 (restore_stack_nonlocal): Likewise.
10793 (nonlocal_goto): Likewise.
10795 2015-07-16 Tom de Vries <tom@codesourcery.com>
10797 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
10798 not have a corresponding loop header phi.
10800 2015-07-16 Tom de Vries <tom@codesourcery.com>
10802 * tree-parloops.c (create_loads_for_reductions): Handle case that
10803 reduction is unused.
10805 2015-07-16 Richard Biener <rguenther@suse.de>
10807 PR tree-optimization/66894
10808 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
10809 about deriving NE_EXPR from truncated values.
10811 2015-07-16 Martin Liska <mliska@suse.cz>
10814 (object_allocator): Add new class.
10815 (pool_allocator::initialize): Use the underlying class.
10816 (pool_allocator::allocate): Likewise.
10817 (pool_allocator::remove): Likewise.
10818 (operator new): A new generic allocator.
10819 * asan.c (struct asan_mem_ref): Remove unused members.
10820 (asan_mem_ref_new): Replace new operator with
10821 object_allocator::allocate.
10822 (free_mem_ref_resources): Change deallocation.
10823 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
10824 with object_allocator.
10825 * config/sh/sh.c (add_constant): Replace new operator with
10826 object_allocator::allocate.
10827 (sh_reorg): Change call to a release method.
10828 * cselib.c (struct elt_list): Remove unused members.
10829 (new_elt_list): Replace new operator with
10830 object_allocator::allocate.
10831 (new_elt_loc_list): Likewise.
10832 (new_cselib_val): Likewise.
10833 (unchain_one_elt_list): Change delete operator with remove method.
10834 (unchain_one_elt_loc_list): Likewise.
10835 (unchain_one_value): Likewise.
10836 (cselib_finish): Release newly added static allocators.
10837 * cselib.h (struct cselib_val): Remove unused members.
10838 (struct elt_loc_list): Likewise.
10839 * df-problems.c (df_chain_alloc): Replace pool_allocator with
10841 * df-scan.c (struct df_scan_problem_data): Likewise.
10842 (df_scan_alloc): Likewise.
10843 * df.h (struct dataflow): Likewise.
10844 * dse.c (struct read_info_type): Likewise.
10845 (struct insn_info_type): Likewise.
10846 (struct dse_bb_info_type): Likewise.
10847 (struct group_info): Likewise.
10848 (struct deferred_change): Likewise.
10849 (get_group_info): Likewise.
10850 (delete_dead_store_insn): Likewise.
10851 (free_read_records): Likewise.
10852 (replace_read): Likewise.
10853 (check_mem_read_rtx): Likewise.
10854 (scan_insn): Likewise.
10855 (dse_step1): Likewise.
10856 (dse_step7): Likewise.
10857 * et-forest.c (struct et_occ): Remove unused members.
10858 (et_new_occ): Use allocate instead of new operator.
10859 (et_new_tree): Likewise.
10860 (et_free_tree): Call release method explicitly.
10861 (et_free_tree_force): Likewise.
10862 (et_free_pools): Likewise.
10863 (et_split): Use remove instead of delete operator.
10864 * et-forest.h (struct et_node): Remove unused members.
10865 * ipa-cp.c: Change pool_allocator to object_allocator.
10866 * ipa-inline-analysis.c: Likewise.
10867 * ipa-profile.c: Likewise.
10868 * ipa-prop.c: Likewise.
10869 * ipa-prop.h: Likewise.
10870 * ira-build.c (initiate_cost_vectors): Cast return value.
10871 (ira_allocate_cost_vector): Likewise.
10872 * ira-color.c (struct update_cost_record): Remove unused members.
10873 * lra-int.h (struct lra_live_range): Likewise.
10874 (struct lra_copy): Likewise.
10875 (struct lra_insn_reg): Likewise.
10876 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
10877 * lra.c (new_insn_reg): Replace new operator with allocate method.
10878 (free_insn_regs): Same for operator delete.
10879 (finish_insn_regs): Release new static allocator.
10880 (finish_insn_recog_data): Likewise.
10881 (lra_free_copies): Replace delete operator with remove method.
10882 (lra_create_copy): Replace operator new with allocate method.
10883 (invalidate_insn_data_regno_info): Same for remove method.
10884 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
10885 (free_debug_insn_changes): Replace delete operator with remove method.
10886 (replace_oldest_value_reg): Replace operator new with allocate method.
10887 (pass_cprop_hardreg::execute): Release new static variable.
10888 * sched-deps.c (sched_deps_init): Change pool_allocator to
10890 * sel-sched-ir.c: Likewise.
10891 * sel-sched-ir.h: Likewise.
10892 * stmt.c (expand_case): Likewise.
10893 (expand_sjlj_dispatch_table): Likewise.
10894 * tree-sra.c (struct access): Remove unused members.
10895 (struct assign_link): Likewise.
10896 (sra_deinitialize): Release newly added static pools.
10897 (create_access_1):Replace operator new with allocate method.
10898 (build_accesses_from_assign): Likewise.
10899 (create_artificial_child_access): Likewise.
10900 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
10901 pool_allocator to object_allocator.
10902 * tree-ssa-pre.c: Likewise.
10903 * tree-ssa-reassoc.c: Likewise.
10904 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10905 * tree-ssa-strlen.c: Likewise.
10906 * tree-ssa-structalias.c: Likewise.
10907 * var-tracking.c (onepart_pool_allocate): New function.
10908 (unshare_variable): Use the newly added function.
10909 (variable_merge_over_cur): Likewise.
10910 (variable_from_dropped): Likewise.
10911 (variable_was_changed): Likewise.
10912 (set_slot_part): Likewise.
10913 (emit_notes_for_differences_1): Likewise.
10914 (vt_finalize): Release newly added static pools.
10916 2015-07-16 Martin Jambor <mjambor@suse.cz>
10918 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
10919 all uses. Fix two typos in its general comment.
10920 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
10922 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
10924 * config/i386/linux-common.h (LINK_MPX): New.
10925 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
10926 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
10927 indicating '-z bndplt' support by linker.
10928 * configure: Regenerate.
10929 * config.in: Regenerate.
10931 2015-07-16 Richard Biener <rguenther@suse.de>
10933 * fold-const.c (fold_widened_comparison): Remove.
10934 (fold_sign_changed_comparison): Likewise.
10935 (fold_comparison): Move widened and sign-changed comparison
10937 * match.pd: ... to patterns here.
10938 * generic-match-head.c: Include target.h.
10939 * gimple-match-head.c: Likewise.
10941 2015-07-16 Richard Biener <rguenther@suse.de>
10943 * tree-ssa-dom.c (dom_valueize): New function.
10944 (record_temporary_equivalences): Also record equivalences
10945 for dominating stmts that have uses of equivalences we are
10948 2015-07-16 Bin Cheng <bin.cheng@arm.com>
10950 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
10951 add_autoinc_candidates.
10952 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
10953 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
10954 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
10955 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
10957 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
10958 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
10959 Remove parameter struct iv*. Call add_autoinc_candidates here.
10960 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
10961 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
10963 (find_iv_candidates): Call new functions.
10965 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
10967 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
10968 uninitialized-variable warning.
10970 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
10973 * config/sh/sh.md (movdi): Split simple reg move to two movsi
10974 when the destination is R0.
10976 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
10979 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
10980 * config/i386/i386.c (ix86_expand_pextr): New function.
10981 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
10982 for non-lowpart subregs.
10983 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
10984 (insv<mode>): Use SWI248 mode iterator.
10985 (insv<mode>_1): Ditto.
10987 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
10988 Sebastian Pop <s.pop@samsung.com>
10990 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
10991 iterator to use_stmt.
10993 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
10994 Sebastian Pop <s.pop@samsung.com>
10996 * graphite-scop-detection.c (build_scops_1): Discard scops for
10999 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11000 Sebastian Pop <s.pop@samsung.com>
11002 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11003 case of a return statement in scop.
11005 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
11006 Sebastian Pop <s.pop@samsung.com>
11008 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11009 INTEGER_TYPE parameters.
11010 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11011 VECTOR_CST in scan_tree_for_params.
11012 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11014 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11016 * gimple-pretty-print.h: Don't include pretty-print.h.
11017 * tree-streamer.h: Don't include lto-streamer.h.
11018 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11019 * gimple-streamer-in.c: Remove redundant includes.
11020 * gimple-streamer-out.c: Likewise.
11021 * ipa-devirt.c: Likewise.
11022 * ipa-icf.c: Likewise.
11023 * ipa-inline-analysis.c: Likewise.
11024 * ipa-polymorphic-call.c: Likewise.
11025 * ipa-profile.c: Likewise.
11026 * ipa-prop.c: Likewise.
11027 * ipa-pure-const.c: Likewise.
11028 * lto-cgraph.c: Likewise.
11029 * lto-streamer-in.c: Likewise.
11030 * lto-streamer-out.c: Likewise.
11031 * lto-streamer.c: Likewise.
11032 * tree-streamer-in.c: Likewise.
11033 * tree-streamer-out.c: Likewise.
11034 * tree-streamer.c: Likewise.
11036 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
11038 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11040 * opts.c: Remove multiline #include comment.
11042 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
11044 * config/nvptx/mkoffload.c (process): Add C++ protection to
11047 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11050 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11051 null before IEEE 128-bit floating point support patch.
11053 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11055 * simplify-rtx.c (simplify_ternary_operation): Add simplification
11056 for (!c) != {0,...,0} ? a : b for vector modes.
11058 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
11059 Martin Jambor <mjambor@suse.cz>
11061 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11062 struct func_body_info* instead of struct ipa_node_params*, expecting
11063 fbi->info to be filled in. Replace throughout. Adjust call to
11064 ipa_load_from_parm_agg.
11065 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11066 instead of struct ipa_node_params*. Adjust calls to other functions
11067 so that they pass either fbi or fbi->info.
11068 (set_switch_stmt_execution_predicate): Likewise.
11069 (will_be_nonconstant_predicate): Likewise.
11070 (compute_bb_predicates): Likewise.
11071 (estimate_function_body_sizes): Move asserts earlier. Fill in
11072 struct func_body_info, replace parms_info with fbi.info. Adjust
11073 calls to functions that now accept struct func_body_info.
11074 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11075 (struct func_body_info): Likewise.
11076 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11077 remove static. Adjust callers.
11078 (ipa_load_from_parm_agg): Remove.
11079 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11080 (func_body_info): Likewise.
11081 (ipa_load_from_parm_agg): Adjust prototype.
11083 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11085 * gensupport.c (rtx_handle_directive): Adjust.
11086 * read-rtl.c (apply_iterators): Take vector to add rtxs to
11087 instead of expr list rtx.
11088 (add_define_attr_for_define_subst): Likewise.
11089 (add_define_subst_attr): Likewise.
11090 (read_subst_mapping): Likewise.
11091 (read_rtx): Likewise.
11092 * rtl.h (read_rtx): Adjust.
11094 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11096 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11098 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11101 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11102 (*tls_local_dynamic_base_64_<mode>): Ditto.
11103 (*tls_local_dynamic_base_64_largepic): Ditto.
11104 (tls_global_dynamic_64_<mode>): Update expander pattern.
11105 (tls_local_dynamic_base_64_<mode>): Ditto.
11107 2015-07-15 Richard Biener <rguenther@suse.de>
11109 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11110 and bool_var == 1 -> bool_var simplifications ...
11111 * match.pd: ... to patterns here. Factor out negate_expr_p
11112 cases from the A - B -> A + (-B) patterns as negate_expr_p
11113 predicate and add a -(A + B) -> (-B) - A pattern.
11115 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11117 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11119 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
11120 Robert Suchanek <robert.suchanek@imgtec.com>
11122 * config/mips/mips.c (mips_int_mask): New enum.
11123 (mips_shadow_set): Likewise.
11124 (int_mask): New variable.
11125 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11126 (machine_function): Add int_mask and use_shadow_register_set.
11127 (mips_attribute_table): Add attribute handlers for interrupt and
11128 use_shadow_register_set.
11129 (mips_interrupt_mask): New static function.
11130 (mips_handle_interrupt_attr): Likewise.
11131 (mips_handle_use_shadow_register_set_attr): Likewise.
11132 (mips_use_shadow_register_set): Change return type to enum
11133 mips_shadow_set. Add argument handling for use_shadow_register_set
11135 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11136 compare with mips_shadow_set enum.
11137 (mips_compute_frame_info): Add interrupt mask and
11138 use_shadow_register_set to per-function information structure.
11139 Add a stack slot for EPC unconditionally.
11140 (mips_expand_prologue): Compare use_shadow_register_set value
11141 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
11142 masked interrupt register but in EIC mode use K0 and save Cause in K0.
11143 EPC saved and restored unconditionally. Use PMODE_INSN macro when
11144 copying the stack pointer from the shadow register set.
11145 * config/mips/mips.h (SR_IM0): New define.
11146 * config/mips/mips.md (mips_rdpgpr): Rename to...
11147 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
11148 * doc/extend.texi (Declaring Attributes of Functions): Document
11149 optional arguments for interrupt and use_shadow_register_set
11152 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
11154 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11155 interrupt attribute.
11156 (mips_expand_prologue): Disable the floating point unit in an ISR.
11157 * config/mips/mips.h (SR_COP1): New define.
11159 2015-07-15 Richard Biener <rguenther@suse.de>
11161 * genmatch.c (parser::peek, parser::peek_ident): Add argument
11162 to tell how many tokens to peek ahead (default 1).
11163 (parser::eat_token, parser::eat_ident): Return token consumed.
11164 (parser::parse_result): Parse new switch statement.
11165 * match.pd: Use case statements where appropriate.
11167 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11169 PR rtl-optimization/58066
11170 * calls.c (expand_call): Precompute register parameters before stack
11171 alignment is performed.
11173 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
11175 PR rtl-optimization/66838
11176 * postreload.c (reload_cse_move2add): Also process
11177 CALL_INSN_FUNCTION_USAGE when resetting information of
11178 call-clobbered registers.
11180 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11181 Cesar Philippidis <cesar@codesourcery.com>
11182 Chung-Lin Tang <cltang@codesourcery.com>
11184 * config/nios2/constraints.md (U, v): New constraints.
11185 * config/nios2/predicates.md (rdprs_dcache_operand): New.
11186 (ldstex_memory_operand): New.
11187 * config/nios2/sync.md: New file.
11188 * config/nios2/nios2.md (unspecv): Add new builtin function
11190 (rdprs, flushd, flushda, wrpie, eni): New patterns.
11191 (top-level): Include sync.md.
11192 * config/nios2/nios2.c (N2_FTYPES): Add function types for
11194 (N2_BUILTINS): Add arch field setting, add new builtins.
11195 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11197 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11198 Also handle ldex/stex/ldsex/stsex builtins.
11199 (nios2_expand_rdprs_builtin): New function.
11200 (nios2_expand_cache_builtin): New function.
11201 (nios2_expand_wrpie_builtin): New function.
11202 (nios2_expand_eni_builtin): New function.
11203 (nios2_expand_builtin): Add arch field handling and new builtin
11205 * doc/extend.texi (Altera Nios II Built-in Functions): Document
11207 * doc/md.texi (Machine Constraints): Document U and v constraints.
11209 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11210 Cesar Philippidis <cesar@codesourcery.com>
11211 Chung-Lin Tang <cltang@codesourcery.com>
11213 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11214 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11215 callee_save_reg_size and uses_anonymous_args fields.
11216 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11217 (nios2_create_cfa_notes): New function.
11218 (nios2_adjust_stack): New function for adjusting stack.
11219 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11220 Use nios2_adjust_stack.
11221 (nios2_expand_epilogue): Likewise.
11222 (nios2_expand_return): New function.
11223 (nios2_can_use_return_insn): Update for CDX pop.n usage.
11224 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11225 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11226 * config/nios2/nios2.md (return): Use nios2_expand_return.
11228 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11229 Cesar Philippidis <cesar@codesourcery.com>
11230 Chung-Lin Tang <cltang@codesourcery.com>
11232 * config/nios2/predicates.md (pop_operation): New.
11233 (ldwm_operation, stwm_operation): New.
11234 (nios2_hard_register_operand): New.
11235 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
11236 (ldstwm_operation_p): Declare.
11237 (gen_ldstwm_peep): Declare.
11238 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
11239 (base_reg_adjustment_p): New.
11240 (pop_operation_p): New.
11241 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
11242 (nios2_ldstwm_regset_p): New.
11243 (ldstwm_operation_p): New.
11245 (nios2_ldst_parallel): New.
11246 (struct ldswm_operand): Declare.
11247 (compare_ldstwm_operands): New.
11248 (can_use_cdx_ldstw): New.
11249 (gen_ldstwm_peep): New.
11250 * config/nios2/nios2-ldstwm.sml: New.
11251 * config/nios2/nios2.md: Include ldstwm.md.
11252 * config/nios2/ldstwm.md: Generated.
11254 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11255 Cesar Philippidis <cesar@codesourcery.com>
11256 Chung-Lin Tang <cltang@codesourcery.com>
11258 * config/nios2/nios2.h (LABEL_ALIGN): Define.
11259 (REG_ALLOC_ORDER): Define.
11260 (ADJUST_REG_ALLOC_ORDER): Define.
11261 (HONOR_REG_ALLOC_ORDER): Define.
11262 (CDX_REG_P): Define.
11263 (ANDCLEAR_INT): Define.
11264 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
11265 (nios2_label_align): Declare.
11266 (nios2_cdx_narrow_form_p): Declare.
11267 (nios2_adjust_reg_alloc_order): Declare.
11268 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
11270 (nios2_large_unspec_reloc_p): New function, split from...
11271 (nios2_legitimate_pic_operand_p): ...here.
11272 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
11273 (nios2_print_operand_punct_valid_p): New.
11274 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
11275 (split_mem_address): New.
11276 (split_alu_insn): New.
11278 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
11279 (enum nios2_add_insn_kind): New.
11280 (nios2_add_insn_names, nios2_add_insn_narrow): New.
11281 (nios2_add_insn_classify): New.
11282 (nios2_add_insn_asm): New.
11283 (nios2_cdx_narrow_form_p): New.
11284 (label_align, min_labelno, max_labelno): New.
11285 (nios2_reorg): New.
11286 (nios2_label_align): New.
11287 (nios2_adjust_reg_alloc_order): New.
11288 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11289 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11290 * config/nios2/constraints.md (P): New constraint.
11291 * config/nios2/predicates.md (const_and_operand): New.
11292 (and_operand): New.
11293 (stack_memory_operand): New.
11294 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
11295 (length): Update to use nios2_cdx_narrow_form_p().
11296 (type): Add new insn type values.
11297 (control, alu, st, ld, shift): Update insn reservations with
11298 new insn type values.
11299 (*high, *lo_sum): Define new insn patterns for constant generation.
11300 (movqi_internal, movhi_internal, movsi_internal): Reduce
11301 alternatives, update asm template to handle CDX variants, update
11303 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
11304 template, update type attributes.
11305 (extendhisi2, extendqi<mode>2): Likewise.
11306 (addsi3): Change to use function for asm string.
11307 (subsi3): Add CDX notation to asm template, update type attributes.
11308 (negsi3, one_cmplsi3): Likewise.
11309 (andsi3): New pattern, specialized from logical patterns.
11310 (<code>si3): Remove and case, combine alternatives, update asm
11312 (<shift_op>si3): Add CDX notation, update type attributes.
11313 (rotrsi3): Update type attribute.
11314 (*merge, extzv, insv): New insn patterns.
11315 (return): Change to define_expand.
11316 (simple_return): Add CDX notation, update type attributes.
11317 (indirect_jump): Add CDX notation.
11318 (jump): Update asm cases, update length attribute expression.
11319 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
11320 (nios2_cbranch): Update asm cases and length attribute expression
11321 to handle CDX variants.
11322 (nios2_cmp<code>): Update asm template.
11323 (nop): Add CDX notation, update type attributes.
11324 (trap): Add CDX notation.
11325 (ctrapsi4): Update asm cases and length attribute expression to
11326 handle CDX variant.
11327 * doc/md.texi (Machine Constraints): Document P constraint.
11329 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11330 Cesar Philippidis <cesar@codesourcery.com>
11331 Chung-Lin Tang <cltang@codesourcery.com>
11333 * config/nios2/nios2.h (SMALL_INT12): New macro.
11334 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
11335 (nios2_valid_addr_expr_p): Use it.
11336 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
11337 with implicit "io" instructions on R2.
11338 * config/nios2/constraints.md (w): New constraint.
11339 * config/nios2/predicates.md (ldstio_memory_operand): New.
11340 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
11341 operand predicate and constraint.
11342 (ld<bh>io_signed, st<bhw>io>): Likewise.
11343 * doc/md.texi (Machine Constraints): Document w constraint.
11345 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11346 Cesar Philippidis <cesar@codesourcery.com>
11347 Chung-Lin Tang <cltang@codesourcery.com>
11349 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
11350 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
11351 Nios II architecture level.
11352 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
11353 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
11354 (OPTION_DEFAULT_SPECS): Define.
11355 (ASM_SPEC): Add -march= spec strings.
11356 * config/nios2/nios2.c (nios2_option_override): Check for
11357 conflicts involving new options.
11358 * config.gcc (nios2*-*-*): Support --with-arch=.
11359 * doc/invoke.texi (Option Summary, Nios II Options): Document
11360 -march=, -mbmx, and -mcdx.
11362 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
11364 PR rtl-optimization/66626
11365 * lra-constraints.c (lra_constraints): Prevent equivalence
11366 substitution for static chain pseudo in functions with nonlocal
11369 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
11371 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
11372 (nios2_emit_stack_limit_check): Add size parameter. Handle
11373 -fstack-limit-symbol as well as -fstack-limit-register.
11374 (nios2_expand_prologue): Emit only a single stack limit check,
11375 even if multiple stack adjustments are required.
11376 (nios2_option_override): Diagnose unsupported combination of -fpic
11377 and -stack-limit-symbol.
11379 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
11381 * Makefile.in (top_srcdir): New.
11382 * configure.ac: Use AM_ZLIB.
11383 * configure: Regeneated.
11385 2015-07-14 Matthias Klose <doko@ubuntu.com>
11388 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
11390 2015-07-14 Richard Biener <rguenther@suse.de>
11392 PR tree-optimization/66863
11393 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
11394 what we record for conversion use stmt lhs inequalities.
11396 2015-07-14 Richard Biener <rguenther@suse.de>
11398 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
11399 (decision_tree::gen_gimple): Likewise.
11401 2015-07-14 Tom de Vries <tom@codesourcery.com>
11403 * gcc.c (greater_than_spec_func): Declare forward.
11404 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
11405 -ftree-parallelize-loops={0,1}.
11406 (static_spec_functions): Add greater_than_spec_func function with name
11408 (greater_than_spec_func): New function.
11410 2015-07-14 Richard Biener <rguenther@suse.de>
11412 * tree-ssa-dom.c (record_temporary_equivalences): Merge
11413 wideing type conversion case from record_equivalences_from_incoming_edge
11414 and use record_equality to record equivalences.
11415 (record_equivalences_from_incoming_edge): Call
11416 record_temporary_equivalences.
11418 2015-07-14 Richard Biener <rguenther@suse.de>
11420 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
11421 (struct if_expr): New.
11422 (struct with_expr): Likewise.
11423 (is_a_helper): Add helpers for if_expr and with_expr.
11424 (struct simplify): Add simplify_kind enum and member. Remove
11426 (simplify::simplify): Adjust.
11427 (lower_commutative): Adjust.
11428 (lower_opt_convert): Likewise.
11429 (lower_cond): Likewise.
11430 (replace_id): Handle with_expr and if_expr.
11431 (lower_for): Adjust.
11432 (dt_simplify::gen_1): New recursive worker, split out from ...
11433 (dt_simplify::gen): ... here. Deal with if and with expansion
11435 (capture_info::capture_info): Take context argument
11436 (capture_info::walk_result): Only analyze specific result.
11437 (parser::parse_result): New function.
11438 (parser::parse_simplify): Adjust to parse ifs with then end
11440 (parser::parse_if): Simplify.
11441 (parser::parse_pattern): Pass down simplify kind.
11442 * match.pd: Convert if structure to new syntax.
11444 2015-07-13 Marek Polacek <polacek@redhat.com>
11446 * rtl.c (rtx_equal_p_cb): Fix typo.
11448 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
11450 * omega.h: Don't include config.h, don't include params.h again if
11451 omega.h has already been included.
11452 * graphite-poly.h: Include sese.h.
11453 * graphite.c: Don't include sese.h, remove needless includes and
11454 minimize includes outside #ifdef HAVE_isl block.
11455 * graphite-blocking.c: Don't include sese.h, remove needless includes,
11456 and wrap entire file in #ifdef HAVE_isl
11457 * graphite-dependences.c: Likewise.
11458 * graphite-interchange.c: Likewise.
11459 * graphite-isl-ast-to-gimple.c: Likewise.
11460 * graphite-optimize-isl.c: Likewise.
11461 * graphite-poly.c: Likewise.
11462 * graphite-scop-detection.c: Likewise.
11463 * graphite-sese-to-poly.c: Likewise.
11465 2015-07-13 Tom de Vries <tom@codesourcery.com>
11467 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
11469 2015-07-13 Renlin Li <renlin.li@arm.com>
11472 * simplify-rtx.c (simplify_const_relational_operation): Add
11473 side_effects_p checks.
11475 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
11477 * bitmap.h: Fix double word typos.
11478 * builtins.c: Same.
11480 * cfgloopmanip.c: Same.
11483 * cgraphclones.c: Same.
11485 * config/aarch64/aarch64-protos.h: Same.
11486 * config/aarch64/aarch64.c: Same.
11487 * config/aarch64/aarch64.md: Same.
11488 * config/arm/arm.md: Same.
11489 * config/arm/arm1020e.md: Same.
11490 * config/arm/arm1026ejs.md: Same.
11491 * config/arm/arm926ejs.md: Same.
11492 * config/arm/fa526.md: Same.
11493 * config/arm/fa606te.md: Same.
11494 * config/arm/fa626te.md: Same.
11495 * config/arm/fa726te.md: Same.
11496 * config/arm/fmp626.md: Same.
11497 * config/darwin.c: Same.
11498 * config/epiphany/epiphany.c: Same.
11499 * config/frv/frv.c: Same.
11500 * config/ft32/ft32.c: Same.
11501 * config/gnu-user.h: Same.
11502 * config/h8300/constraints.md: Same.
11503 * config/i386/i386.c: Same.
11504 * config/i386/i386.md: Same.
11505 * config/iq2000/iq2000.md: Same.
11506 * config/mips/mips.c: Same.
11507 * config/mmix/mmix.md: Same.
11508 * config/moxie/moxie.c: Same.
11509 * config/nds32/nds32.md: Same.
11510 * config/pa/pa.h: Same.
11511 * config/rs6000/aix.h: Same.
11512 * config/rs6000/rs6000.h: Same.
11513 * config/sh/sh.c: Same.
11514 * config/tilegx/tilegx.md: Same.
11515 * config/tilepro/gen-mul-tables.cc: Same.
11518 * doc/invoke.texi: Same.
11520 * dwarf2out.c: Same.
11523 * genmatch.c: Same.
11524 * gimplify.c: Same.
11525 * hash-table.h: Same.
11526 * internal-fn.c: Same.
11528 * ipa-devirt.c: Same.
11531 * ipa-profile.c: Same.
11532 * ipa-prop.c: Same.
11533 * ipa-prop.h: Same.
11536 * reg-stack.c: Same.
11537 * regcprop.c: Same.
11542 * tree-inline.c: Same.
11543 * tree-sra.c: Same.
11544 * tree-ssa-dom.c: Same.
11545 * tree-ssa-loop-ivopts.c: Same.
11546 * tree-ssa-structalias.c: Same.
11547 * tree-ssa-tail-merge.c: Same.
11548 * tree-ssa-ter.c: Same.
11549 * tree-ssa-threadupdate.c: Same.
11550 * tree-ssa-uninit.c: Same.
11551 * tree-ssanames.c: Same.
11552 * tree-vect-loop-manip.c: Same.
11553 * tree-vrp.c: Same.
11555 * valtrack.c: Same.
11558 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11560 PR middle-end/66726
11561 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
11562 tree_ssa_phiopt_worker): Call it.
11564 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11566 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
11567 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
11570 2015-07-11 Marek Polacek <polacek@redhat.com>
11572 PR middle-end/66353
11573 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
11574 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
11575 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
11576 rather than bb_has_abnormal_call_pred.
11577 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
11578 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
11579 rather than bb_has_abnormal_call_pred.
11581 2015-07-10 Anatoly Sokolov <aesok@post.ru>
11583 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11584 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
11585 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11586 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
11587 v850_legitimate_address_p): New functions.
11588 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11590 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
11593 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
11594 indirect sibcall with register arguments if register available
11595 for argument passing.
11596 (init_cumulative_args): Set cfun->machine->arg_reg_available
11597 to (cum->nregs > 0) or to true if function has a variable
11599 (function_arg_advance_32): Set cfun->machine->arg_reg_available
11600 to false if cum->nregs <= 0.
11601 * config/i386/i386.h (machine_function): Add arg_reg_available.
11603 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
11605 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
11606 and gen_higpart instead of gen_rtx_SUBREG.
11607 * config/i386/i386.md
11608 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
11609 (read-modify peephole2): Use gen_lowpart instead of
11610 gen_rtx_SUBREG for operand 5.
11612 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11614 * config/tilepro/gen-mul-tables.cc (main): Change include list for
11616 * config/tilepro/mul-tables.c: Regenerate.
11617 * config/tilegx/mul-tables.c: Regenerate.
11619 2015-07-10 Richard Biener <rguenther@suse.de>
11621 * fold-const.c (distribute_bit_expr): Remove.
11622 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
11623 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
11624 to A & (B | C) and simplifying A << C1 << C2 to ...
11625 * match.pd: ... patterns here.
11627 2015-07-10 Jiong Wang <jiong.wang@arm.com>
11629 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11630 Mark mem as READONLY and NOTRAP for PIC symbol.
11632 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
11634 * gimple-predict.h: New file.
11635 (gimple_predict_predictor, gimple_predict_set_predictor,
11636 gimple_predict_outcome, gimple_predict_set_outcome,
11637 gimple_build_predict): Relocate here.
11638 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
11639 gimple_predict_outcome, gimple_predict_set_outcome): Move to
11641 * gimple.c (gimple_build_predict): Move to gimple-predict.h
11642 * basic-block.h: Don't include cfghooks.h.
11643 * backend.h: Don't include predict.h.
11644 * cfghooks.h: Include predict.h.
11645 * gimple-pretty-print.c: Include gimple-predict.h.
11646 * gimplify.c: Likwise.
11647 * predict.c: Adjust includes.
11648 * tree-inline.c: Likewise.
11649 * asan.c: Likewise.
11650 * auto-inc-dec.c: Likewise.
11651 * auto-profile.c: Likewise.
11652 * bb-reorder.c: Likewise.
11653 * builtins.c: Likewise.
11654 * caller-save.c: Likewise.
11655 * calls.c: Likewise.
11656 * cfganal.c: Likewise.
11657 * cfgbuild.c: Likewise.
11659 * cfgcleanup.c: Likewise.
11660 * cfgexpand.c: Likewise.
11661 * cfghooks.c: Likewise.
11662 * cfgloopanal.c: Likewise.
11663 * cfgloop.c: Likewise.
11664 * cfgloopmanip.c: Likewise.
11665 * cfgrtl.c: Likewise.
11666 * cgraph.c: Likewise.
11667 * cgraphunit.c: Likewise.
11668 * combine.c: Likewise.
11669 * cprop.c: Likewise.
11672 * dojump.c: Likewise.
11674 * except.c: Likewise.
11675 * expmed.c: Likewise.
11676 * expr.c: Likewise.
11677 * final.c: Likewise.
11678 * fold-const.c: Likewise.
11679 * function.c: Likewise.
11680 * fwprop.c: Likewise.
11681 * gcc-plugin.h: Likewise.
11682 * gcse.c: Likewise.
11683 * genattrtab.c: Likewise.
11684 * genemit.c: Likewise.
11685 * gengtype.c: Likewise.
11686 * genopinit.c: Likewise.
11687 * genoutput.c: Likewise.
11688 * genpreds.c: Likewise.
11689 * genrecog.c: Likewise.
11690 * gimple-fold.c: Likewise.
11691 * gimple-iterator.c: Likewise.
11692 * gimple-ssa-isolate-paths.c: Likewise.
11693 * gimple-ssa-strength-reduction.c: Likewise.
11694 * graph.c: Likewise.
11695 * graphite-blocking.c: Likewise.
11696 * graphite.c: Likewise.
11697 * graphite-dependences.c: Likewise.
11698 * graphite-interchange.c: Likewise.
11699 * graphite-isl-ast-to-gimple.c: Likewise.
11700 * graphite-optimize-isl.c: Likewise.
11701 * graphite-poly.c: Likewise.
11702 * graphite-scop-detection.c: Likewise.
11703 * graphite-sese-to-poly.c: Likewise.
11704 * haifa-sched.c: Likewise.
11705 * ifcvt.c: Likewise.
11706 * internal-fn.c: Likewise.
11707 * ipa-cp.c: Likewise.
11708 * ipa-profile.c: Likewise.
11709 * ipa-split.c: Likewise.
11710 * ipa-utils.c: Likewise.
11711 * ira-build.c: Likewise.
11712 * ira-color.c: Likewise.
11713 * ira-conflicts.c: Likewise.
11714 * ira-costs.c: Likewise.
11715 * ira-emit.c: Likewise.
11716 * ira-lives.c: Likewise.
11717 * jump.c: Likewise.
11718 * loop-doloop.c: Likewise.
11719 * loop-init.c: Likewise.
11720 * loop-invariant.c: Likewise.
11721 * loop-unroll.c: Likewise.
11722 * lower-subreg.c: Likewise.
11723 * lra-assigns.c: Likewise.
11725 * lra-coalesce.c: Likewise.
11726 * lra-constraints.c: Likewise.
11727 * lra-lives.c: Likewise.
11728 * lto-cgraph.c: Likewise.
11729 * lto-streamer-in.c: Likewise.
11730 * mode-switching.c: Likewise.
11731 * modulo-sched.c: Likewise.
11732 * omp-low.c: Likewise.
11733 * optabs.c: Likewise.
11734 * passes.c: Likewise.
11735 * postreload.c: Likewise.
11736 * postreload-gcse.c: Likewise.
11737 * profile.c: Likewise.
11738 * recog.c: Likewise.
11739 * regstat.c: Likewise.
11740 * reload1.c: Likewise.
11741 * reorg.c: Likewise.
11742 * rtlanal.c: Likewise.
11743 * sched-ebb.c: Likewise.
11744 * sel-sched-ir.c: Likewise.
11745 * sese.c: Likewise.
11746 * shrink-wrap.c: Likewise.
11747 * simplify-rtx.c: Likewise.
11748 * stmt.c: Likewise.
11749 * store-motion.c: Likewise.
11750 * tracer.c: Likewise.
11751 * trans-mem.c: Likewise.
11752 * tree-call-cdce.c: Likewise.
11753 * tree-cfg.c: Likewise.
11754 * tree-cfgcleanup.c: Likewise.
11755 * tree-chkp.c: Likewise.
11756 * tree-complex.c: Likewise.
11757 * tree-eh.c: Likewise.
11758 * tree-if-conv.c: Likewise.
11759 * tree-loop-distribution.c: Likewise.
11760 * tree-outof-ssa.c: Likewise.
11761 * tree-parloops.c: Likewise.
11762 * tree-predcom.c: Likewise.
11763 * tree-pretty-print.c: Likewise.
11764 * tree-profile.c: Likewise.
11765 * tree-sra.c: Likewise.
11766 * tree-ssa.c: Likewise.
11767 * tree-ssa-coalesce.c: Likewise.
11768 * tree-ssa-dce.c: Likewise.
11769 * tree-ssa-dom.c: Likewise.
11770 * tree-ssa-forwprop.c: Likewise.
11771 * tree-ssa-ifcombine.c: Likewise.
11772 * tree-ssa-loop-ch.c: Likewise.
11773 * tree-ssa-loop-im.c: Likewise.
11774 * tree-ssa-loop-ivcanon.c: Likewise.
11775 * tree-ssa-loop-ivopts.c: Likewise.
11776 * tree-ssa-loop-manip.c: Likewise.
11777 * tree-ssa-loop-prefetch.c: Likewise.
11778 * tree-ssa-loop-unswitch.c: Likewise.
11779 * tree-ssa-math-opts.c: Likewise.
11780 * tree-ssa-phiopt.c: Likewise.
11781 * tree-ssa-pre.c: Likewise.
11782 * tree-ssa-reassoc.c: Likewise.
11783 * tree-ssa-sink.c: Likewise.
11784 * tree-ssa-tail-merge.c: Likewise.
11785 * tree-ssa-threadedge.c: Likewise.
11786 * tree-ssa-threadupdate.c: Likewise.
11787 * tree-switch-conversion.c: Likewise.
11788 * tree-tailcall.c: Likewise.
11789 * tree-vect-data-refs.c: Likewise.
11790 * tree-vect-loop.c: Likewise.
11791 * tree-vect-loop-manip.c: Likewise.
11792 * tree-vectorizer.c: Likewise.
11793 * tree-vrp.c: Likewise.
11794 * ubsan.c: Likewise.
11795 * value-prof.c: Likewise.
11796 * varasm.c: Likewise.
11797 * var-tracking.c: Likewise.
11798 * config/aarch64/aarch64-builtins.c: Likewise.
11799 * config/aarch64/aarch64.c: Likewise.
11800 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11801 * config/alpha/alpha.c: Likewise.
11802 * config/arc/arc.c: Likewise.
11803 * config/arm/arm.c: Likewise.
11804 * config/avr/avr.c: Likewise.
11805 * config/bfin/bfin.c: Likewise.
11806 * config/c6x/c6x.c: Likewise.
11807 * config/cr16/cr16.c: Likewise.
11808 * config/cris/cris.c: Likewise.
11809 * config/darwin.c: Likewise.
11810 * config/darwin-c.c: Likewise.
11811 * config/epiphany/epiphany.c: Likewise.
11812 * config/epiphany/mode-switch-use.c: Likewise.
11813 * config/epiphany/resolve-sw-modes.c: Likewise.
11814 * config/fr30/fr30.c: Likewise.
11815 * config/frv/frv.c: Likewise.
11816 * config/ft32/ft32.c: Likewise.
11817 * config/h8300/h8300.c: Likewise.
11818 * config/i386/i386.c: Likewise.
11819 * config/i386/winnt.c: Likewise.
11820 * config/ia64/ia64.c: Likewise.
11821 * config/iq2000/iq2000.c: Likewise.
11822 * config/lm32/lm32.c: Likewise.
11823 * config/m32c/m32c.c: Likewise.
11824 * config/m32r/m32r.c: Likewise.
11825 * config/m68k/m68k.c: Likewise.
11826 * config/mcore/mcore.c: Likewise.
11827 * config/mep/mep.c: Likewise.
11828 * config/microblaze/microblaze.c: Likewise.
11829 * config/mips/mips.c: Likewise.
11830 * config/mmix/mmix.c: Likewise.
11831 * config/mn10300/mn10300.c: Likewise.
11832 * config/moxie/moxie.c: Likewise.
11833 * config/msp430/msp430.c: Likewise.
11834 * config/nds32/nds32.c: Likewise.
11835 * config/nds32/nds32-cost.c: Likewise.
11836 * config/nds32/nds32-fp-as-gp.c: Likewise.
11837 * config/nds32/nds32-intrinsic.c: Likewise.
11838 * config/nds32/nds32-isr.c: Likewise.
11839 * config/nds32/nds32-md-auxiliary.c: Likewise.
11840 * config/nds32/nds32-memory-manipulation.c: Likewise.
11841 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11842 * config/nds32/nds32-predicates.c: Likewise.
11843 * config/nios2/nios2.c: Likewise.
11844 * config/nvptx/nvptx.c: Likewise.
11845 * config/pa/pa.c: Likewise.
11846 * config/pdp11/pdp11.c: Likewise.
11847 * config/rl78/rl78.c: Likewise.
11848 * config/rs6000/rs6000.c: Likewise.
11849 * config/rx/rx.c: Likewise.
11850 * config/s390/s390.c: Likewise.
11851 * config/sh/sh.c: Likewise.
11852 * config/sh/sh-mem.cc: Likewise.
11853 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11854 * config/sh/sh_treg_combine.cc: Likewise.
11855 * config/sparc/sparc.c: Likewise.
11856 * config/spu/spu.c: Likewise.
11857 * config/stormy16/stormy16.c: Likewise.
11858 * config/tilegx/tilegx.c: Likewise.
11859 * config/tilepro/tilepro.c: Likewise.
11860 * config/v850/v850.c: Likewise.
11861 * config/vax/vax.c: Likewise.
11862 * config/visium/visium.c: Likewise.
11863 * config/xtensa/xtensa.c: Likewise.
11865 2015-07-10 Richard Biener <rguenther@suse.de>
11867 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
11868 (decision_tree::gen_gimple): Likewise.
11869 (decision_tree::gen_generic): Likewise.
11871 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
11874 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
11875 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
11877 2015-07-10 Jakub Jelinek <jakub@redhat.com>
11879 PR middle-end/66820
11880 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
11881 or ORT_TASK contexts.
11882 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
11885 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11887 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
11890 2015-07-10 Tom de Vries <tom@codesourcery.com>
11892 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
11893 insert nit + 1 bound.
11895 2015-07-10 Richard Biener <rguenther@suse.de>
11897 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
11898 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
11899 (if_convertible_loop_p_1): For this always compute bb predicates.
11900 (if_convertible_loop_p): And free them.
11902 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11904 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
11907 2015-07-10 Richard Biener <rguenther@suse.de>
11909 PR tree-optimization/66823
11910 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
11911 inverted predicate.
11913 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
11915 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
11916 to handle mips[32|64]r3 and mips[32|64]r5.
11918 2015-07-09 Jakub Jelinek <jakub@redhat.com>
11920 PR middle-end/66633
11921 * tree-nested.c (get_static_chain): Or in a flag into
11922 info->static_chain_added.
11923 (get_frame_field, get_nonlocal_debug_decl): Likewise.
11924 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
11925 2015-07-01 changes.
11926 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
11927 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
11930 PR tree-optimization/66718
11931 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
11933 (vect_simd_lane_linear): New function.
11934 (vectorizable_simd_clone_call): Support using linear arguments for
11935 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
11937 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
11940 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
11942 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
11944 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
11945 Use machine mode, not enum machine_mode in the prototype.
11947 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
11948 classify 128-bit floating point support.
11949 (FLOAT128_IBM_P): Likewise.
11950 (FLOAT128_VECTOR_P): Likewise.
11951 (FLOAT128_2REG_P): Likewise.
11952 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
11953 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
11954 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11955 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
11957 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
11958 tests against TFmode/TDmode, since those modes do not use VSX
11960 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
11962 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
11963 tests against TFmode, etc.
11964 (invalid_e500_subreg): Add tests against IFmode/KFmode.
11965 (reg_offset_addressing_ok_p): Likewise.
11966 (rs6000_legitimate_offset_address_p): Likewise.
11967 (rs6000_legitimize_address): Likewise.
11968 (rs6000_legitimize_reload_address): Likewise.
11969 (rs6000_legitimate_address_p): Clean up tests against TFmode and
11970 TDmode to use the new helper macros, which will include IFmode and
11972 (rs6000_emit_move): Likewise.
11973 (rs6000_darwin64_record_arg_recurse): Likewise.
11974 (print_operand): Likewise.
11975 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
11976 that uses a single vector register as a vector and not as a
11977 floating point register in terms of the calling sequence.
11978 (rs6000_discover_homogeneous_aggregate): Likewise.
11979 (rs6000_return_in_memory): Likewise.
11980 (init_cumulative_args): Likewise.
11981 (rs6000_function_arg_boundary): Likewise.
11982 (rs6000_function_arg_advance_1): Likewise.
11983 (rs6000_function_arg): Likewise.
11984 (rs6000_pass_by_reference): Likewise.
11985 (rs6000_gimplify_va_arg): Likewise.
11986 (rs6000_secondary_reload_memory): Use machine_mode not enum
11988 (rs6000_split_multireg_move): Use new helper macros.
11989 (spe_func_has_64bit_regs_p): Likewise.
11990 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
11991 (output_toc): Use new helper macros.
11992 (rs6000_register_move_cost): Likewise.
11993 (rs6000_function_value): Add IEEE 128-bit floating point calling
11995 (rs6000_libcall_value): Likewise.
11996 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
11997 floating point support.
11998 (rs6000_vector_mode_supported_p): Likewise.
12000 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
12002 PR rtl-optimization/66782
12003 * lra-int.h (struct lra_insn_recog_data): Add comment about
12004 clobbered hard regs for arg_hard_regs.
12005 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12006 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12007 Add condition for processing used hard regs.
12008 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12009 Process clobbered hard regs.
12011 2015-07-09 Michael Matz <matz@suse.de>
12013 * genmatch.c (fprintf_indent): New function.
12014 (operand::gen_transform): Add indent parameter.
12015 (expr::gen_transform, c_expr::gen_transform,
12016 capture::gen_transform): Ditto and use fprintf_indent.
12017 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12018 (dt_operand::gen, dt_operand::gen_predicate,
12019 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12020 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12021 (decision_tree::gen_gimple): Adjust calls and indent generated
12023 (decision_tree::gen_generic): Ditto.
12024 (write_predicate): Ditto.
12026 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12029 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12030 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12031 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12032 {GENERAL,SSE,MMX}_REG_P where appropriate.
12034 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12036 * lto-streamer.h: Don't include target.h and alloc-pool.h.
12037 * builtins.c: Adjust includes.
12038 * gimple.c: Likewise.
12039 * ipa-icf.c: Likewise.
12040 * lto-opts.c: Likewise.
12041 * ipa-reference.c: Likewise.
12042 * lto-section-out.c: Likewise.
12043 * lto-streamer-in.c: Likewise.
12044 * lto-streamer-out.c: Likewise.
12045 * opts-global.c: Likewise.
12046 * symtab.c: Likewise.
12047 * tree-chkp.c: Likewise.
12048 * tree-ssa-live.c: Likewise.
12049 * tree-streamer-in.c: Likewise.
12050 * tree-streamer-out.c: Likewise.
12051 * config/darwin.c: Likewise.
12052 * config/i386/winnt.c: Likewise.
12054 2015-07-09 Richard Biener <rguenther@suse.de>
12056 * genmatch.c (struct expr): Add force_single_use flag.
12057 (expr::expr): Add copy constructor.
12058 (capture_info::walk_match): Gather force_single_use captures.
12059 (expr::gen_transform): Use possibly NULLified sequence.
12060 (dt_simplify::gen): Apply single-use restrictions by NULLifying
12061 seq if any constrained expr is not single-use.
12062 (parser::parse_expr): Refactor to allow multiple flags. Handle
12063 's' flag to force an expression have a single-use if the pattern
12064 simplifies to more than one statement.
12065 * match.pd: Convert most single_use conditionals to :s flags.
12067 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12069 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12070 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12071 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12073 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
12075 * flags.h: Don't include flag-types.h or options.h.
12076 * opts-common.c: Adjust includes.
12077 * opts-global.c: Likewise.
12078 * common/config/epiphany/epiphany-common.c: Likewise.
12080 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12083 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12086 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12089 * config/i386/i386.c (ix86_return_in_memory): Return true
12090 if int_size_in_bytes returns negative for IA MCU.
12092 2015-07-09 Marek Polacek <polacek@redhat.com>
12094 PR tree-optimization/66718
12095 * Makefile.in (OBJS): Add gimple-laddress.o.
12096 * passes.def: Schedule pass_laddress.
12097 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12098 * tree-pass.h (make_pass_laddress): Declare.
12099 * gimple-laddress.c: New file.
12101 2015-07-09 Richard Biener <rguenther@suse.de>
12103 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12105 2015-07-09 Richard Biener <rguenther@suse.de>
12107 PR tree-optimization/66807
12108 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12110 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
12112 * function.c (stack_protect_epilogue): Use if rather than switch for
12113 check targetm.have_stack_protect_test.
12115 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12117 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12118 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12119 * config/arc/arc.h: Likewise.
12120 * config/arm/arm.h: Likewise.
12121 * config/bfin/bfin.h: Likewise.
12122 * config/epiphany/epiphany.h: Likewise.
12123 * config/frv/frv.h: Likewise.
12124 * config/ia64/ia64.h: Likewise.
12125 * config/iq2000/iq2000.h: Likewise.
12126 * config/lm32/lm32.h: Likewise.
12127 * config/m32r/m32r.h: Likewise.
12128 * config/mcore/mcore.h: Likewise.
12129 * config/mep/mep.h: Likewise.
12130 * config/microblaze/microblaze.h: Likewise.
12131 * config/mips/mips.h: Likewise.
12132 * config/mmix/mmix.h: Likewise.
12133 * config/mn10300/mn10300.h: Likewise.
12134 * config/nds32/nds32.h: Likewise.
12135 * config/nios2/nios2.h: Likewise.
12136 * config/pa/pa.h: Likewise.
12137 * config/rl78/rl78.h: Likewise.
12138 * config/sh/sh.h: Likewise.
12139 * config/sparc/sparc.h: Likewise.
12140 * config/stormy16/stormy16.h: Likewise.
12141 * config/tilegx/tilegx.h: Likewise.
12142 * config/tilepro/tilepro.h: Likewise.
12143 * config/v850/v850.h: Likewise.
12144 * config/xtensa/xtensa.h: Likewise.
12145 * doc/tm.texi: Regenerate.
12146 * doc/tm.texi.in: Adjust.
12147 * combine.c (simplify_set): Likewise.
12148 (simplify_comparison): Likewise.
12149 * expr.c (store_constructor): Likewise.
12150 * internal-fn.c (expand_arith_overflow): Likewise.
12151 * reload.c (push_reload): Likewise.
12152 (find_reloads): Likewise.
12153 (find_reloads_subreg_address): Likewise.
12154 * reload1.c (eliminate_regs_1): Likewise.
12155 * rtlanal.c (nonzero_bits1): Likewise.
12156 (num_sign_bit_copies1): Likewise.
12157 * simplify-rtx.c (simplify_truncation): Likewise.
12159 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12161 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12162 of AUTO_INC_DEC with the preprocessor.
12163 * combine.c (combine_instructions): Likewise.
12164 (can_combine_p): Likewise.
12165 (try_combine): Likewise.
12166 * emit-rtl.c (try_split): Likewise.
12167 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12168 * lower-subreg.c (resolve_simple_move): Likewise.
12169 * lra.c (update_inc_notes): Likewise.
12170 * recog.c (asm_operand_ok): Likewise.
12171 (constrain_operands): Likewise.
12172 * regrename.c (scan_rtx_address): Likewise.
12173 * reload.c (update_auto_inc_notes): Likewise.
12174 (reg_inc_found_and_valid_p): Likewise.
12175 * reload1.c (reload): Likewise.
12176 (emit_input_reload_insns): Likewise.
12177 (delete_output_reload): Likewise.
12178 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12179 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12181 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12183 * rtl.h: Always define AUTO_INC_DEC.
12184 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12185 * combine.c (combine_instructions): Likewise.
12186 (can_combine_p): Likewise.
12187 (try_combine): Likewise.
12188 * emit-rtl.c (try_split): Likewise.
12189 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12190 * lower-subreg.c (resolve_simple_move): Likewise.
12191 * lra.c (update_inc_notes): Likewise.
12192 * recog.c (asm_operand_ok): Likewise.
12193 (constrain_operands): Likewise.
12194 * regrename.c (scan_rtx_address): Likewise.
12195 * reload.c (update_auto_inc_notes): Likewise.
12196 (find_equiv_reg): Likewise.
12197 * reload1.c (reload): Likewise.
12198 (reload_as_needed): Likewise.
12199 (choose_reload_regs): Likewise.
12200 (emit_input_reload_insns): Likewise.
12201 (delete_output_reload): Likewise.
12202 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12203 * valtrack.c (cleanup_auto_inc_dec): Likewise.
12205 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12207 * combine.c (can_combine_def_p): Don't check the value of
12208 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12209 (combinable_i3pat): Likewise.
12210 (mark_used_regs_combine): Likewise.
12211 * regrename.c (rename_chains): Likewise.
12212 * reload.c (find_reloads_address): Likewise.
12213 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12215 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12217 * combine.c (update_rsp_from_reg_equal): Don't check if
12218 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12219 (reg_nonzero_bits_for_combine): Likewise.
12220 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12222 * config/frv/frv.h: Likewise.
12223 * config/lm32/lm32.h: Likewise.
12224 * config/mep/mep.h: Likewise.
12225 * config/mips/mips.h: Likewise.
12226 * config/rs6000/rs6000.h: Likewise.
12227 * config/sh/sh.h: Likewise.
12228 * config/tilegx/tilegx.h (enum reg_class): Likewise.
12229 * config/tilepro/tilepro.h: Likewise.
12230 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
12231 * doc/tm.texi: Regenerate.
12232 * doc/tm.texi.in: Adjust.
12233 * rtlanal.c (nonzero_bits1): Likewise.
12235 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12237 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
12238 with the preprocessor.
12239 (combine_instructions): Likewise.
12240 (try_combine): Likewise.
12242 (distribute_notes): Likewise.
12244 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12246 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
12248 (simplify_set): Likewise.
12249 * cse.c (cse_insn): Likewise.
12250 * fold-const.c (fold_single_bit_test): Likewise.
12251 (fold_unary_loc): Likewise.
12252 * postreload.c (reload_cse_simplify_set): Likewise.
12253 (reload_cse_simplify_operands): Likewise.
12255 2015-07-08 Jiong Wang <jiong.wang@arm.com>
12257 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
12258 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
12260 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12263 * config/i386/x86intrin.h: Include <adxintrin.h> even if
12264 __iamcu__ is defined.
12266 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12268 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
12270 2015-07-08 Iain Sandoe <iain@codesourcery.com>
12273 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
12274 names from preservation.
12276 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
12279 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
12281 (function_arg_advance_32): Don't pass vectors in registers for
12283 (function_arg_32): Likewise.
12284 (ix86_return_in_memory): Don't return vectors in registers for
12287 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
12289 PR middle-end/66334
12290 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
12291 hard regno live at the start of BB with incoming abnormal edges.
12292 * lra-lives.c (process_bb_lives): Ditto.
12294 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12297 * config/nvptx/mkoffload.c (main): Create an offload image only in
12298 64-bit configurations.
12300 2015-07-08 Martin Liska <mliska@suse.cz>
12303 * tree-sra.c (create_access_1): Call ctor without brackets.
12304 (create_artificial_child_access): Likewise.
12306 2015-07-08 Richard Biener <rguenther@suse.de>
12308 PR tree-optimization/66793
12309 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
12310 Properly split the block after stmts ending it.
12312 2015-07-08 Richard Biener <rguenther@suse.de>
12314 PR tree-optimization/66794
12315 * passes.c (execute_function_todo): Assert that post-dominators
12317 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
12318 Free post-dominators.
12320 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12322 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
12325 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
12327 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
12328 more than or equal 8 and less than 32 when optimizing for size.
12330 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12332 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
12333 COSTS_N_INSNS (1) and increment it appropriately throughout the
12336 2015-07-08 Richard Biener <rguenther@suse.de>
12338 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
12340 2015-07-08 Alan Modra <amodra@gmail.com>
12342 * target.def (rtx_costs): Remove "code" param, add "mode".
12343 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
12344 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
12345 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
12346 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
12347 call. Track mode when given in rtx.
12348 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
12349 (default_address_cost): Pass Pmode to rtx_cost.
12350 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
12351 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
12353 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
12354 (notreg_cost): Add mode param. Use it.
12355 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
12356 mode param and pass to set_src_cost. Update all calls.
12357 (hash_scan_set): Formatting.
12358 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
12359 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
12361 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
12362 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
12363 emit_store_flag): Update set_src_cost and rtx_cost calls.
12364 * auto-inc-dec.c (attempt_change): Likewise.
12365 * calls.c (precompute_register_parameters): Likewise.
12366 * combine.c (expand_compound_operation, make_extraction,
12367 force_to_mode, distribute_and_simplify_rtx): Likewise.
12368 * dojump.c (prefer_and_bit_test): Likewise.
12369 * dse.c (find_shift_sequence): Likewise.
12370 * expr.c (compress_float_constant): Likewise.
12371 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
12372 * ifcvt.c (noce_try_sign_mask): Likewise.
12373 * loop-doloop.c (doloop_optimize): Likewise.
12374 * loop-invariant.c (create_new_invariant): Likewise.
12375 * lower-subreg.c (shift_cost, compute_costs): Likewise.
12376 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
12377 lshift_cheap_p): Likewise.
12378 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
12379 try_replace_in_use, reload_cse_move2add): Likewise.
12380 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
12382 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12383 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12384 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
12385 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12386 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
12387 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
12389 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
12390 * config/arc/arc.c (arc_rtx_costs): Likewise.
12391 * config/arm/arm.c (arm_rtx_costs): Likewise.
12392 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
12393 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
12394 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
12395 * config/cris/cris.c (cris_rtx_costs): Likewise.
12396 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
12397 * config/frv/frv.c (frv_rtx_costs): Likewise.
12398 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
12399 * config/i386/i386.c (ix86_rtx_costs): Likewise.
12400 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
12401 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
12402 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
12403 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
12404 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
12405 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
12406 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
12407 * config/mep/mep.c (mep_rtx_cost): Likewise.
12408 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
12409 * config/mips/mips.c (mips_rtx_costs): Likewise.
12410 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
12411 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
12412 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
12413 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
12414 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
12415 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
12416 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
12417 * config/pa/pa.c (hppa_rtx_costs): Likewise.
12418 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
12419 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
12420 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
12421 * config/s390/s390.c (s390_rtx_costs): Likewise.
12422 * config/sh/sh.c (sh_rtx_costs): Likewise.
12423 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
12424 * config/spu/spu.c (spu_rtx_costs): Likewise.
12425 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
12426 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
12427 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
12428 * config/v850/v850.c (v850_rtx_costs): Likewise.
12429 * config/vax/vax.c (vax_rtx_costs): Likewise.
12430 * config/visium/visium.c (visium_rtx_costs): Likewise.
12431 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
12432 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
12433 "code" param, and pass as outer_code to first rtx_cost call. Pass
12434 mode to rtx_cost calls.
12435 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
12437 (aarch64_rtx_costs_wrapper): Update.
12438 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
12439 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
12441 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
12442 and rtx_cost calls.
12443 (avr_operand_rtx_cost): Similarly.
12444 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
12445 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
12446 * config/mips/mips.c (mips_stack_address_p): Comment typo.
12447 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
12448 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
12449 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
12451 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
12452 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
12453 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
12454 * doc/tm.texi: Regenerate.
12456 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
12458 * tree-core.h: Include symtab.h.
12459 * rtl.h: Include hard-reg-set.h but not flags.h.
12460 (HARD_CONST): Remove condition compilation involving HARD_CONST since
12461 hard-reg-set.h is always included.
12462 * regs.h: Don't include hard-reg-set.h or rtl.h.
12463 * cfg.h: Include dominance.h.
12464 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
12465 * backend.h: New. Aggregate commonly used backend header files.
12466 * gimple-ssa.h: Don't include tree-hasher.h.
12467 * ssa.h: New. Aggregate commonly used SSA header files.
12468 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
12469 * sel-sched-ir.h: Flatten includes.
12470 * lra-int.h: Flatten completely.
12471 * sel-sched-dump.h: Flatten includes.
12472 * ira-int.h: Flatten includes.
12473 * gimple-streamer.h: Remove all includes.
12474 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
12475 * resource.h: Flatten hard-reg-set.h and df.h.
12476 * sched-int.h: Flatten insn-arrt.h and df.h.
12477 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
12478 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
12479 * genattrtab.c (write_header): Adjust generated includes.
12480 * genautomata.c (main): Likewise.
12481 * genconditions.c (write-header): Likewise.
12482 * genemit.c (main): Likewise.
12483 * gengtype.c (open_base_files): Likewise.
12484 * genopinit.c (main): Likewise.
12485 * genoutput.c (output_prologue): Likewise.
12486 * genpeep.c (main): Likewise.
12487 * genpreds.c (write_insn_preds_c): Likewise.
12488 * genrecog.c (write_header): Likewise.
12489 * alias.c: Adjust includes.
12490 * asan.c: Likewise.
12491 * attribs.c: Likewise.
12492 * auto-inc-dec.c: Likewise.
12493 * auto-profile.c: Likewise.
12494 * bb-reorder.c: Likewise.
12495 * bt-load.c: Likewise.
12496 * builtins.c: Likewise.
12497 * caller-save.c: Likewise.
12498 * calls.c: Likewise.
12499 * ccmp.c: Likewise.
12501 * cfganal.c: Likewise.
12502 * cfgbuild.c: Likewise.
12503 * cfgcleanup.c: Likewise.
12504 * cfgexpand.c: Likewise.
12505 * cfghooks.c: Likewise.
12506 * cfgloop.c: Likewise.
12507 * cfgloopanal.c: Likewise.
12508 * cfgloopmanip.c: Likewise.
12509 * cfgrtl.c: Likewise.
12510 * cgraph.c: Likewise.
12511 * cgraphbuild.c: Likewise.
12512 * cgraphclones.c: Likewise.
12513 * cgraphunit.c: Likewise.
12514 * cilk-common.c: Likewise.
12515 * combine-stack-adj.c: Likewise.
12516 * combine.c: Likewise.
12517 * compare-elim.c: Likewise.
12518 * convert.c: Likewise.
12519 * coverage.c: Likewise.
12520 * cppbuiltin.c: Likewise.
12521 * cprop.c: Likewise.
12523 * cselib.c: Likewise.
12524 * data-streamer-in.c: Likewise.
12525 * data-streamer-out.c: Likewise.
12526 * data-streamer.c: Likewise.
12527 * dbxout.c: Likewise.
12530 * debug.c: Likewise.
12531 * df-core.c: Likewise.
12532 * df-problems.c: Likewise.
12533 * df-scan.c: Likewise.
12535 * dojump.c: Likewise.
12536 * dominance.c: Likewise.
12537 * domwalk.c: Likewise.
12538 * double-int.c: Likewise.
12540 * dumpfile.c: Likewise.
12541 * dwarf2asm.c: Likewise.
12542 * dwarf2cfi.c: Likewise.
12543 * dwarf2out.c: Likewise.
12544 * emit-rtl.c: Likewise.
12545 * et-forest.c: Likewise.
12546 * except.c: Likewise.
12547 * explow.c: Likewise.
12548 * expmed.c: Likewise.
12549 * expr.c: Likewise.
12550 * final.c: Likewise.
12551 * fixed-value.c: Likewise.
12552 * fold-const.c: Likewise.
12553 * function.c: Likewise.
12554 * fwprop.c: Likewise.
12555 * gcc-plugin.h: Likewise.
12556 * gcse-common.c: Likewise.
12557 * gcse.c: Likewise.
12558 * generic-match-head.c: Likewise.
12559 * ggc-page.c: Likewise.
12560 * gimple-builder.c: Likewise.
12561 * gimple-expr.c: Likewise.
12562 * gimple-fold.c: Likewise.
12563 * gimple-iterator.c: Likewise.
12564 * gimple-low.c: Likewise.
12565 * gimple-match-head.c: Likewise.
12566 * gimple-pretty-print.c: Likewise.
12567 * gimple-ssa-isolate-paths.c: Likewise.
12568 * gimple-ssa-strength-reduction.c: Likewise.
12569 * gimple-streamer-in.c: Likewise.
12570 * gimple-streamer-out.c: Likewise.
12571 * gimple-walk.c: Likewise.
12572 * gimple.c: Likewise.
12573 * gimplify-me.c: Likewise.
12574 * gimplify.c: Likewise.
12575 * godump.c: Likewise.
12576 * graph.c: Likewise.
12577 * graphite-blocking.c: Likewise.
12578 * graphite-dependences.c: Likewise.
12579 * graphite-interchange.c: Likewise.
12580 * graphite-isl-ast-to-gimple.c: Likewise.
12581 * graphite-optimize-isl.c: Likewise.
12582 * graphite-poly.c: Likewise.
12583 * graphite-scop-detection.c: Likewise.
12584 * graphite-sese-to-poly.c: Likewise.
12585 * graphite.c: Likewise.
12586 * haifa-sched.c: Likewise.
12587 * hw-doloop.c: Likewise.
12588 * ifcvt.c: Likewise.
12589 * init-regs.c: Likewise.
12590 * internal-fn.c: Likewise.
12591 * ipa-chkp.c: Likewise.
12592 * ipa-comdats.c: Likewise.
12593 * ipa-cp.c: Likewise.
12594 * ipa-devirt.c: Likewise.
12595 * ipa-icf-gimple.c: Likewise.
12596 * ipa-icf.c: Likewise.
12597 * ipa-inline-analysis.c: Likewise.
12598 * ipa-inline-transform.c: Likewise.
12599 * ipa-inline.c: Likewise.
12600 * ipa-polymorphic-call.c: Likewise.
12601 * ipa-profile.c: Likewise.
12602 * ipa-prop.c: Likewise.
12603 * ipa-pure-const.c: Likewise.
12604 * ipa-ref.c: Likewise.
12605 * ipa-reference.c: Likewise.
12606 * ipa-split.c: Likewise.
12607 * ipa-utils.c: Likewise.
12608 * ipa-visibility.c: Likewise.
12610 * ira-build.c: Likewise.
12611 * ira-color.c: Likewise.
12612 * ira-conflicts.c: Likewise.
12613 * ira-costs.c: Likewise.
12614 * ira-emit.c: Likewise.
12615 * ira-lives.c: Likewise.
12617 * jump.c: Likewise.
12618 * langhooks.c: Likewise.
12620 * loop-doloop.c: Likewise.
12621 * loop-init.c: Likewise.
12622 * loop-invariant.c: Likewise.
12623 * loop-iv.c: Likewise.
12624 * loop-unroll.c: Likewise.
12625 * lower-subreg.c: Likewise.
12626 * lra-assigns.c: Likewise.
12627 * lra-coalesce.c: Likewise.
12628 * lra-constraints.c: Likewise.
12629 * lra-eliminations.c: Likewise.
12630 * lra-lives.c: Likewise.
12631 * lra-remat.c: Likewise.
12632 * lra-spills.c: Likewise.
12634 * lto-cgraph.c: Likewise.
12635 * lto-compress.c: Likewise.
12636 * lto-opts.c: Likewise.
12637 * lto-section-in.c: Likewise.
12638 * lto-section-out.c: Likewise.
12639 * lto-streamer-in.c: Likewise.
12640 * lto-streamer-out.c: Likewise.
12641 * lto-streamer.c: Likewise.
12643 * mode-switching.c: Likewise.
12644 * modulo-sched.c: Likewise.
12645 * omega.c: Likewise.
12646 * omp-low.c: Likewise.
12647 * optabs.c: Likewise.
12648 * opts-global.c: Likewise.
12649 * passes.c: Likewise.
12650 * plugin.c: Likewise.
12651 * postreload-gcse.c: Likewise.
12652 * postreload.c: Likewise.
12653 * predict.c: Likewise.
12654 * print-rtl.c: Likewise.
12655 * print-tree.c: Likewise.
12656 * profile.c: Likewise.
12657 * real.c: Likewise.
12658 * realmpfr.c: Likewise.
12659 * recog.c: Likewise.
12661 * reg-stack.c: Likewise.
12662 * regcprop.c: Likewise.
12663 * reginfo.c: Likewise.
12664 * regrename.c: Likewise.
12665 * regstat.c: Likewise.
12666 * reload.c: Likewise.
12667 * reload1.c: Likewise.
12668 * reorg.c: Likewise.
12669 * resource.c: Likewise.
12670 * rtl-chkp.c: Likewise.
12671 * rtlanal.c: Likewise.
12672 * rtlhooks.c: Likewise.
12673 * sanopt.c: Likewise.
12674 * sched-deps.c: Likewise.
12675 * sched-ebb.c: Likewise.
12676 * sched-rgn.c: Likewise.
12677 * sched-vis.c: Likewise.
12678 * sdbout.c: Likewise.
12679 * sel-sched-dump.c: Likewise.
12680 * sel-sched-ir.c: Likewise.
12681 * sel-sched.c: Likewise.
12682 * sese.c: Likewise.
12683 * shrink-wrap.c: Likewise.
12684 * simplify-rtx.c: Likewise.
12685 * stack-ptr-mod.c: Likewise.
12686 * stmt.c: Likewise.
12687 * stor-layout.c: Likewise.
12688 * store-motion.c: Likewise.
12689 * stringpool.c: Likewise.
12690 * symtab.c: Likewise.
12691 * target-globals.c: Likewise.
12692 * targhooks.c: Likewise.
12693 * toplev.c: Likewise.
12694 * tracer.c: Likewise.
12695 * trans-mem.c: Likewise.
12696 * tree-affine.c: Likewise.
12697 * tree-browser.c: Likewise.
12698 * tree-call-cdce.c: Likewise.
12699 * tree-cfg.c: Likewise.
12700 * tree-cfgcleanup.c: Likewise.
12701 * tree-chkp-opt.c: Likewise.
12702 * tree-chkp.c: Likewise.
12703 * tree-chrec.c: Likewise.
12704 * tree-complex.c: Likewise.
12705 * tree-data-ref.c: Likewise.
12706 * tree-dfa.c: Likewise.
12707 * tree-diagnostic.c: Likewise.
12708 * tree-dump.c: Likewise.
12709 * tree-eh.c: Likewise.
12710 * tree-emutls.c: Likewise.
12711 * tree-if-conv.c: Likewise.
12712 * tree-inline.c: Likewise.
12713 * tree-into-ssa.c: Likewise.
12714 * tree-iterator.c: Likewise.
12715 * tree-loop-distribution.c: Likewise.
12716 * tree-nested.c: Likewise.
12717 * tree-nrv.c: Likewise.
12718 * tree-object-size.c: Likewise.
12719 * tree-outof-ssa.c: Likewise.
12720 * tree-parloops.c: Likewise.
12721 * tree-phinodes.c: Likewise.
12722 * tree-predcom.c: Likewise.
12723 * tree-pretty-print.c: Likewise.
12724 * tree-profile.c: Likewise.
12725 * tree-scalar-evolution.c: Likewise.
12726 * tree-sra.c: Likewise.
12727 * tree-ssa-address.c: Likewise.
12728 * tree-ssa-alias.c: Likewise.
12729 * tree-ssa-ccp.c: Likewise.
12730 * tree-ssa-coalesce.c: Likewise.
12731 * tree-ssa-copy.c: Likewise.
12732 * tree-ssa-copyrename.c: Likewise.
12733 * tree-ssa-dce.c: Likewise.
12734 * tree-ssa-dom.c: Likewise.
12735 * tree-ssa-dse.c: Likewise.
12736 * tree-ssa-forwprop.c: Likewise.
12737 * tree-ssa-ifcombine.c: Likewise.
12738 * tree-ssa-live.c: Likewise.
12739 * tree-ssa-loop-ch.c: Likewise.
12740 * tree-ssa-loop-im.c: Likewise.
12741 * tree-ssa-loop-ivcanon.c: Likewise.
12742 * tree-ssa-loop-ivopts.c: Likewise.
12743 * tree-ssa-loop-manip.c: Likewise.
12744 * tree-ssa-loop-niter.c: Likewise.
12745 * tree-ssa-loop-prefetch.c: Likewise.
12746 * tree-ssa-loop-unswitch.c: Likewise.
12747 * tree-ssa-loop.c: Likewise.
12748 * tree-ssa-math-opts.c: Likewise.
12749 * tree-ssa-operands.c: Likewise.
12750 * tree-ssa-phiopt.c: Likewise.
12751 * tree-ssa-phiprop.c: Likewise.
12752 * tree-ssa-pre.c: Likewise.
12753 * tree-ssa-propagate.c: Likewise.
12754 * tree-ssa-reassoc.c: Likewise.
12755 * tree-ssa-sccvn.c: Likewise.
12756 * tree-ssa-scopedtables.c: Likewise.
12757 * tree-ssa-sink.c: Likewise.
12758 * tree-ssa-strlen.c: Likewise.
12759 * tree-ssa-structalias.c: Likewise.
12760 * tree-ssa-tail-merge.c: Likewise.
12761 * tree-ssa-ter.c: Likewise.
12762 * tree-ssa-threadedge.c: Likewise.
12763 * tree-ssa-threadupdate.c: Likewise.
12764 * tree-ssa-uncprop.c: Likewise.
12765 * tree-ssa-uninit.c: Likewise.
12766 * tree-ssa.c: Likewise.
12767 * tree-ssanames.c: Likewise.
12768 * tree-stdarg.c: Likewise.
12769 * tree-streamer-in.c: Likewise.
12770 * tree-streamer-out.c: Likewise.
12771 * tree-streamer.c: Likewise.
12772 * tree-switch-conversion.c: Likewise.
12773 * tree-tailcall.c: Likewise.
12774 * tree-vect-data-refs.c: Likewise.
12775 * tree-vect-generic.c: Likewise.
12776 * tree-vect-loop-manip.c: Likewise.
12777 * tree-vect-loop.c: Likewise.
12778 * tree-vect-patterns.c: Likewise.
12779 * tree-vect-slp.c: Likewise.
12780 * tree-vect-stmts.c: Likewise.
12781 * tree-vectorizer.c: Likewise.
12782 * tree-vrp.c: Likewise.
12783 * tree.c: Likewise.
12784 * tsan.c: Likewise.
12785 * ubsan.c: Likewise.
12786 * valtrack.c: Likewise.
12787 * value-prof.c: Likewise.
12788 * var-tracking.c: Likewise.
12789 * varasm.c: Likewise.
12790 * varpool.c: Likewise.
12791 * vmsdbgout.c: Likewise.
12792 * vtable-verify.c: Likewise.
12794 * wide-int.cc: Likewise.
12795 * xcoffout.c: Likewise.
12796 * config/aarch64/aarch64-builtins.c: Likewise.
12797 * config/aarch64/aarch64.c: Likewise.
12798 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12799 * config/alpha/alpha.c: Likewise.
12800 * config/arc/arc.c: Likewise.
12801 * config/arm/aarch-common.c: Likewise.
12802 * config/arm/arm-builtins.c: Likewise.
12803 * config/arm/arm-c.c: Likewise.
12804 * config/arm/arm.c: Likewise.
12805 * config/avr/avr-c.c: Likewise.
12806 * config/avr/avr-log.c: Likewise.
12807 * config/avr/avr.c: Likewise.
12808 * config/bfin/bfin.c: Likewise.
12809 * config/c6x/c6x.c: Likewise.
12810 * config/cr16/cr16.c: Likewise.
12811 * config/cris/cris.c: Likewise.
12812 * config/darwin-c.c: Likewise.
12813 * config/darwin.c: Likewise.
12814 * config/epiphany/epiphany.c: Likewise.
12815 * config/epiphany/mode-switch-use.c: Likewise.
12816 * config/epiphany/resolve-sw-modes.c: Likewise.
12817 * config/fr30/fr30.c: Likewise.
12818 * config/frv/frv.c: Likewise.
12819 * config/ft32/ft32.c: Likewise.
12820 * config/h8300/h8300.c: Likewise.
12821 * config/i386/i386-c.c: Likewise.
12822 * config/i386/i386.c: Likewise.
12823 * config/i386/msformat-c.c: Likewise.
12824 * config/i386/winnt-cxx.c: Likewise.
12825 * config/i386/winnt-stubs.c: Likewise.
12826 * config/i386/winnt.c: Likewise.
12827 * config/ia64/ia64-c.c: Likewise.
12828 * config/ia64/ia64.c: Likewise.
12829 * config/iq2000/iq2000.c: Likewise.
12830 * config/lm32/lm32.c: Likewise.
12831 * config/m32c/m32c-pragma.c: Likewise.
12832 * config/m32c/m32c.c: Likewise.
12833 * config/m32r/m32r.c: Likewise.
12834 * config/m68k/m68k.c: Likewise.
12835 * config/mcore/mcore.c: Likewise.
12836 * config/mep/mep-pragma.c: Likewise.
12837 * config/mep/mep.c: Likewise.
12838 * config/microblaze/microblaze-c.c: Likewise.
12839 * config/microblaze/microblaze.c: Likewise.
12840 * config/mips/mips.c: Likewise.
12841 * config/mmix/mmix.c: Likewise.
12842 * config/mn10300/mn10300.c: Likewise.
12843 * config/moxie/moxie.c: Likewise.
12844 * config/msp430/msp430-c.c: Likewise.
12845 * config/msp430/msp430.c: Likewise.
12846 * config/nds32/nds32-cost.c: Likewise.
12847 * config/nds32/nds32-fp-as-gp.c: Likewise.
12848 * config/nds32/nds32-intrinsic.c: Likewise.
12849 * config/nds32/nds32-isr.c: Likewise.
12850 * config/nds32/nds32-md-auxiliary.c: Likewise.
12851 * config/nds32/nds32-memory-manipulation.c: Likewise.
12852 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12853 * config/nds32/nds32-predicates.c: Likewise.
12854 * config/nds32/nds32.c: Likewise.
12855 * config/nios2/nios2.c: Likewise.
12856 * config/nvptx/nvptx.c: Likewise.
12857 * config/pa/pa.c: Likewise.
12858 * config/pdp11/pdp11.c: Likewise.
12859 * config/rl78/rl78-c.c: Likewise.
12860 * config/rl78/rl78.c: Likewise.
12861 * config/rs6000/rs6000-c.c: Likewise.
12862 * config/rs6000/rs6000.c: Likewise.
12863 * config/rx/rx.c: Likewise.
12864 * config/s390/s390-c.c: Likewise.
12865 * config/s390/s390.c: Likewise.
12866 * config/sh/sh-c.c: Likewise.
12867 * config/sh/sh-mem.cc: Likewise.
12868 * config/sh/sh.c: Likewise.
12869 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12870 * config/sh/sh_treg_combine.cc: Likewise.
12871 * config/sol2-c.c: Likewise.
12872 * config/sol2-cxx.c: Likewise.
12873 * config/sol2-stubs.c: Likewise.
12874 * config/sol2.c: Likewise.
12875 * config/sparc/sparc-c.c: Likewise.
12876 * config/sparc/sparc.c: Likewise.
12877 * config/spu/spu-c.c: Likewise.
12878 * config/spu/spu.c: Likewise.
12879 * config/stormy16/stormy16.c: Likewise.
12880 * config/tilegx/mul-tables.c: Likewise.
12881 * config/tilegx/tilegx-c.c: Likewise.
12882 * config/tilegx/tilegx.c: Likewise.
12883 * config/tilepro/mul-tables.c: Likewise.
12884 * config/tilepro/tilepro-c.c: Likewise.
12885 * config/tilepro/tilepro.c: Likewise.
12886 * config/v850/v850-c.c: Likewise.
12887 * config/v850/v850.c: Likewise.
12888 * config/vax/vax.c: Likewise.
12889 * config/visium/visium.c: Likewise.
12890 * config/vms/vms-c.c: Likewise.
12891 * config/vms/vms.c: Likewise.
12892 * config/vxworks.c: Likewise.
12893 * config/xtensa/xtensa.c: Likewise.
12895 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
12897 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
12898 Remove operand constraints. Change operand 2 predicate to
12899 nonmemory operand. Limit const_int values to mode bitsize. Only
12900 allow const_int values less than 32 when optimizing for size.
12901 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
12902 Remove operand constraints.
12903 (*bt<mode>): Use SImode for const_int values less than 32.
12904 (regmode): Remove mode attribute.
12906 2015-07-07 Anatoly Sokolov <aesok@post.ru>
12908 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12909 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
12910 moxie_legitimate_address_p): New functions.
12911 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12913 2015-07-07 Tom de Vries <tom@codesourcery.com>
12915 PR tree-optimization/66642
12916 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
12917 header comment. Rename split_edge variable to edge_at_split. Split
12918 exit edge to create new loop exit bb. Insert loop exit phis in new
12921 2015-07-07 Tom de Vries <tom@codesourcery.com>
12923 * tree-cfg.c (get_virtual_phi): New function.
12924 * tree-cfg.h (get_virtual_phi): Declare.
12925 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
12926 (rewrite_virtuals_into_loop_closed_ssa): New function.
12927 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
12929 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
12930 (transform_to_exit_first_loop_alt): Use
12931 rewrite_virtuals_into_loop_closed_ssa.
12933 2015-07-07 Richard Biener <rguenther@suse.de>
12935 * fold-const.c (fold_binary_loc): Move
12936 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
12937 * match.pd: ... here.
12938 Add (X * C1) % C2 -> 0 simplification pattern derived from
12941 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
12944 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
12945 change for target/65249.
12947 2015-07-07 Paulo Matos <pmatos@broadcom.com>
12949 * symtab.c (address_matters_1): Fix typo in comment above.
12950 (can_increase_alignment_p): Likewise.
12952 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12954 * function.c (free_after_compilation): Clear PROP_cfg in
12955 f->curr_properties.
12957 2015-07-07 Richard Biener <rguenther@suse.de>
12959 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
12961 (add_control_edge): Remove excessive vertical space in dumping.
12962 (process_ssa_edge_worklist): Simulate at most one statement and
12963 return whether we did. Do not simulate PHIs if they are in a
12964 BB not yet simulated.
12965 (ssa_propagate): Adjust to always drain the BB worklist whenever
12966 a BB is available there, likewise the VARYING edges list before
12967 the interesting edge list.
12969 2015-07-07 Christian Bruel <christian.bruel@st.com>
12972 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
12974 2015-07-07 Richard Biener <rguenther@suse.de>
12976 PR middle-end/66739
12977 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
12980 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
12982 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
12983 modes for operands 0 and 3. Use SImode for operands 2 and 3.
12984 Copy operand 0 to a temporary if !ext_register_operand. Remove
12985 ancient extract_bit_field workaround.
12986 (insv<mode>_1): Rename from mov<mode>_insv_1.
12987 (*insvqi): Rename from *movqi_insv_2.
12988 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
12989 for renamed insvsi_1.
12990 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
12992 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
12994 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
12995 call to nvptx_reorg_subreg.
12997 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
12999 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13000 * graphite-dependencies.c, graphite-interchange.c,
13001 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13002 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13005 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
13007 * match.pd: Remove element_mode inside HONOR_*.
13008 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13009 (~X | X -> -1, ~X ^ X -> -1): Merge.
13010 * tree.c (build_each_one_cst): New function.
13011 * tree.h (build_each_one_cst): Likewise.
13013 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13015 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13018 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
13020 * config.gcc <mips*-*-*>: Add fused-madd.opt.
13021 * config/mips/mips.opt (mfused-madd): Remove.
13022 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13023 * config/mips/mips.h (TARGET_MIPS8000): New.
13024 (ISA_HAS_FP_MADD4_MSUB4): Remove.
13025 (ISA_HAS_FP_MADDF_MSUBF): Remove.
13026 (ISA_HAS_FP_MADD3_MSUB3): Remove.
13027 (ISA_HAS_NMADD4_NMSUB4): Remove.
13028 (ISA_HAS_NMADD3_NMSUB3): Remove.
13029 (ISA_HAS_FUSED_MADD4): New.
13030 (ISA_HAS_UNFUSED_MADD4): New.
13031 (ISA_HAS_FUSED_MADDF): New.
13032 (ISA_HAS_FUSED_MADD3): New.
13033 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13034 (*fma<mode>4_madd3) New.
13035 (*fma<mode>4_madd4) New.
13036 (*fma<mode>4_maddf) New.
13038 (*fms<mode>4_msub3) New.
13039 (*fms<mode>4_msub4) New.
13041 (*fnma<mode>4_nmadd3) New.
13042 (*fnma<mode>4_nmadd4) New.
13044 (*fnms<mode>4_nmsub3) New.
13045 (*fnms<mode>4_nmsub4) New.
13046 (*madd4<mode>) Modify to be unfused only.
13047 (*msub4<mode>) Modify to be unfused only.
13048 (*nmadd4<mode>) Modify to be unfused only.
13049 (*nmsub4<mode>) Modify to be unfused only.
13050 (*madd3<mode>) Remove.
13051 (*msub3<mode>) Remove.
13052 (*nmadd3<mode>) Remove.
13053 (*nmsub3<mode>) Remove.
13054 (*nmadd3<mode>_fastmath) Remove.
13055 (*nmsub3<mode>_fastmath) Remove.
13056 (*nmadd4<mode>_fastmath) Update condition.
13057 (*nmsub4<mode>_fastmath) Update condition.
13059 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13062 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13063 alignment attribute, exploring one level down for records and arrays.
13065 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13067 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
13068 modes for operands 0 and 1. Use SImode for operands 2 and 3.
13069 Copy operand 1 to a temporary if !ext_register_operand. Remove
13070 ancient extract_bit_field workaround.
13071 (*extv<mode>): Rename from *mov<mode>_extv_1.
13072 (*extvqi): Rename from *movqi_extv_1.
13073 (extzv<mode>): Rename from extzv. Use SWI248 modes for
13074 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
13075 to a temporary if !ext_register_operand. Remove ancient
13076 extract_bit_field workaround.
13077 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13078 (*extzvqi): Rename from *movqi_extzv_2.
13079 (*testqi_ext_3): Remove modes from const_int_operand predicated
13080 operands. Add "n" constraint.
13081 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13082 operand. Add "J" constraint.
13083 (*btsq, *btrq, *btcq peephole2s): Remove mode from
13084 const_0_to_63 predicated operand.
13085 (regmode): New insn attribute.
13086 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
13087 to nonmemory_operand. Use regmode insn attribute.
13088 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13089 (*jcc_bt<mode>_mask): Remove mode from operand 3.
13090 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13091 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13092 operands. Use "N" constraint instead of "n".
13094 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
13096 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13098 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13101 * config/i386/i386.c (iamcu_cost): New.
13102 (m_IAMCU): Likewise.
13103 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13104 (processor_target_table): Add an entry for "iamcu".
13105 (processor_alias_table): Likewise.
13106 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13107 (ix86_adjust_cost): Likewise.
13108 (ia32_multipass_dfa_lookahead): Likewise.
13109 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13110 * config/i386/x86-tune.def: Updated for m_IAMCU.
13112 2015-07-06 Richard Biener <rguenther@suse.de>
13114 PR tree-optimization/66772
13115 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13116 values are available in the PHI node BB when there are
13117 still unexecutable edges.
13119 2015-07-06 Richard Biener <rguenther@suse.de>
13121 PR tree-optimization/66767
13122 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13123 Make sure to build the alignment test on a SSA name without
13124 final alignment info valid only if the alignment test
13127 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
13130 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13131 loop start when inserting LSETUP.
13133 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
13136 * config/i386/i386.c (ix86_option_override_internal): Allow
13137 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13139 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13141 * read-md.c (decimal_string): Rename to ...
13142 (md_decimal_string): ... this.
13143 (handle_enum): Reflect this.
13145 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
13148 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13150 2015-07-06 Richard Biener <rguenther@suse.de>
13152 PR middle-end/66759
13153 * match.pd: Add missing constraint of y to REAL_CST in
13154 REAL_CST - x CMP y to y - CST CMP x simplification.
13156 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
13158 PR tree-optimization/66757
13159 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13161 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
13162 Sandra Loosemore <sandra@codesourcery.com>
13164 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13165 Delete extern declaration.
13166 (gprel_constant_p): Add extern declaration.
13167 * config/nios2/constraints.md ("S"): Use gprel_constant_p
13168 instead of nios2_symbol_ref_in_small_data_p.
13169 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13170 (nios2_symbol_ref_in_small_data_p): Make static.
13171 (gprel_constant_p): Make non-static.
13173 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13175 * doc/fragments.texi (Target Fragment): Convert debian.org
13177 * doc/install.texi (Configuration): Ditto.
13179 2015-07-05 Jakub Jelinek <jakub@redhat.com>
13181 PR tree-optimization/66718
13182 * tree-vect-stmts.c (vectorizable_call): Replace uses of
13183 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13185 PR tree-optimization/66718
13186 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13187 vectorizable_load, vectorizable_condition): Move vectype,
13188 nunits, ncopies computation after checking what kind of statement
13191 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13193 * target-insns.def (extv, extzv, insv): New targetm instruction
13195 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13197 * recog.c (simplify_while_replacing): Likewise.
13199 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13201 * target-insns.def (doloop_begin, doloop_end): New targetm
13202 instruction patterns.
13203 * loop-init.c: Include target.h.
13204 (pass_loop2::gate): Use the new targetm patterns instead of
13205 HAVE_*/gen_* interface.
13206 (pass_rtl_doloop::gate): Likewise.
13207 (pass_rtl_doloop::execute): Remove preprocessor condition.
13208 * hw-doloop.c: Build unconditionally.
13209 * loop-doloop.c: Likewise.
13210 (doloop_optimize): Use the new targetm patterns instead of
13211 HAVE_*/gen_* interface.
13212 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13213 * modulo-sched.c (doloop_register_get): Likewise.
13215 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13217 * target-insns.def (clear_cache): New targetm instruction pattern.
13218 * builtins.c (expand_builtin___clear_cache): Use it instead of
13219 HAVE_*/gen_* interface.
13221 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13223 * target-insns.def (allocate_stack, check_stack, probe_stack)
13224 (probe_stack_address, split_stack_prologue, split_stack_space_check):
13225 New targetm instruction patterns.
13226 * explow.c (allocate_dynamic_stack_space): Use them instead of
13227 HAVE_*/gen_* interface.
13228 (emit_stack_probe): Likewise.
13229 (probe_stack_range): Likewise.
13230 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13232 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13234 * target-insns.def (stack_protect_set, stack_protect_test): New
13235 targetm instruction patterns.
13236 * cfgexpand.c (stack_protect_prologue): Use them instead of
13237 HAVE_*/gen_* interface.
13238 * function.c (stack_protect_epilogue): Likewise.
13240 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13242 * expr.h (gen_move_insn_uncast): Delete.
13243 * expr.c (gen_move_insn_uncast): Delete.
13245 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13247 * target-insns.def (restore_stack_block, restore_stack_function)
13248 (restore_stack_nonlocal, save_stack_block, save_stack_function)
13249 (save_stack_nonlocal): New targetm instruction patterns.
13250 * builtins.c (expand_builtin_apply): Use them instead of
13251 HAVE_*/gen_* interface.
13252 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
13254 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13256 * target-insns.def (trap): New targetm instruction pattern.
13257 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
13259 * explow.c (allocate_dynamic_stack_space): Likewise.
13260 * ifcvt.c (find_if_header): Likewise.
13262 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13264 * target-insns.def (prefetch): New targetm instruction pattern.
13265 * tree-ssa-loop-prefetch.c: Include targeth.
13266 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
13267 of HAVE_*/gen_* interface.
13268 * builtins.c (expand_builtin_prefetch): Likewise.
13269 * toplev.c (process_options): Likewise.
13271 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13273 * target-insns.def (untyped_call, untyped_return): New targetm
13274 instruction patterns.
13275 * builtins.c (expand_builtin_apply): Use them instead of
13276 HAVE_*/gen_* interface.
13277 (result_vector): Define unconditionally.
13279 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13281 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
13282 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
13283 (nonlocal_goto_receiver): New targetm instruction patterns.
13284 * builtins.c (expand_builtin_setjmp_setup): Use them instead
13285 of HAVE_*/gen_* interface.
13286 (expand_builtin_setjmp_receiver): Likewise.
13287 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13288 * except.c (expand_dw2_landing_pad_for_region): Likewise.
13290 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
13292 * target.def: Add code_for_* hooks.
13293 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
13294 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
13295 * target-insns.def (casesi, tablejump): New targetm instruction
13297 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
13298 (do_tablejump): Likewise.
13299 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
13300 (expand_sjlj_dispatch_table): Likewise.
13301 * targhooks.c (default_case_values_threshold): Likewise.
13303 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
13305 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
13306 Use rtx_insn * instead of rtx.
13307 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
13308 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
13309 (nios2_call_tls_get_addr): Likewise.
13310 (nios2_emit_expensive_div): Likewise.
13311 (nios2_emit_move_sequence): Change return type to bool.
13312 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
13313 Change return type to bool.
13315 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13318 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
13320 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
13323 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
13324 of register_operand. Remove constraint.
13326 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
13328 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
13329 the first argument.
13331 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
13333 * attribs.c (decl_attributes): Guard inform with the return value
13334 of the preceding warning.
13336 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13338 * doc/invoke.texi (moverride): Move to correct section.
13340 2015-07-03 Richard Biener <rguenther@suse.de>
13342 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
13344 (dt_operand::gen_gimple_expr): After valueizing operands
13345 re-canonicalize operand order for commutative tree codes.
13347 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
13350 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
13352 (__crc32w): Likewise.
13353 (__crc32d): Likewise.
13354 (__rdpmc): Likewise.
13355 (__rdtscp): Likewise.
13356 (_rdpmc): Likewise.
13357 (_rdtscp): Likewise.
13358 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
13361 2015-07-03 Richard Biener <rguenther@suse.de>
13363 * fold-const.c (fold_mathfn_compare): Remove.
13364 (fold_inf_compare): Likewise.
13365 (fold_comparison): Move floating point comparison simplifications...
13366 * match.pd: ... to patterns here. Introduce simple_comparisons
13367 operator list and use it for patterns formerly in fold_comparison.
13369 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13371 PR tree-optimization/66119
13372 * toplev.c (process_options): Don't set up default values for
13373 the sra_max_scalarization_size_{speed,size} parameters.
13374 * tree-sra (analyze_all_variable_accesses): If no values
13375 have been set for the sra_max_scalarization_size_{speed,size}
13376 parameters, call get_move_ratio to get target defaults.
13378 2015-07-03 Richard Biener <rguenther@suse.de>
13380 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
13381 * match.pd: ... here.
13383 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
13386 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
13387 is not actually the default on FreeBSD.
13389 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13391 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
13393 (CMPGE_8HI): Likewise.
13394 (CMPGE_4SI): Likewise.
13395 (CMPGE_2DI): Likewise.
13396 (CMPGE_U16QI): Likewise.
13397 (CMPGE_U8HI): Likewise.
13398 (CMPGE_U4SI): Likewise.
13399 (CMPGE_U2DI): Likewise.
13400 (CMPLE_16QI): Likewise.
13401 (CMPLE_8HI): Likewise.
13402 (CMPLE_4SI): Likewise.
13403 (CMPLE_2DI): Likewise.
13404 (CMPLE_U16QI): Likewise.
13405 (CMPLE_U8HI): Likewise.
13406 (CMPLE_U4SI): Likewise.
13407 (CMPLE_U2DI): Likewise.
13408 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13409 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
13410 ALTIVEC_BUILTIN_VEC_CMPLE.
13411 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
13412 floating-point vector modes.
13413 (vector_nlt<mode>): New define_expand.
13414 (vector_nltu<mode>): Likewise.
13415 (vector_ngt<mode>): Likewise.
13416 (vector_ngtu<mode>): Likewise.
13418 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13420 PR rtl-optimization/66706
13421 * combine.c (make_compound_operation): If an AND of SUBREG of
13422 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
13424 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
13426 * tree-pass.h (make_pass_ch_vect): New.
13427 * passes.def: Add pass_ch_vect just before pass_if_conversion.
13429 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
13430 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
13431 make_pass_ch_vect): New.
13432 (pass_ch): Extend ch_base.
13434 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
13435 (ch_base::copy_headers): ...here.
13437 2015-07-02 Richard Biener <rguenther@suse.de>
13439 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
13440 * fold-const.c (get_pointer_modulus_and_residue): Remove.
13441 (fold_binary_loc): Implement (T)ptr & CST in terms of
13442 get_pointer_alignment_1.
13443 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13444 Make sure to build the alignment test on a SSA name without
13445 final alignment info valid only after the prologue.
13447 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
13449 * config/cris/cris.md ("epilogue"): Remove condition.
13450 ("prologue"): Ditto.
13452 2015-07-02 Richard Biener <rguenther@suse.de>
13454 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
13455 parameter to record a condition that is false.
13456 (record_conditions): When recording an extra NE_EXPR that is
13457 true also record a EQ_EXPR that is false.
13459 2015-07-02 Bin Cheng <bin.cheng@arm.com>
13461 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
13462 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
13463 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
13464 (set_iv, find_interesting_uses_address, add_candidate_1): New
13465 argument to alloc_iv.
13466 (find_interesting_uses_op, find_interesting_uses_cond): Don't
13467 duplicate struct iv.
13468 (free_loop_data): Don't free struct iv explicitly.
13469 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
13471 2015-07-01 DJ Delorie <dj@redhat.com>
13473 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
13475 (SUPPORTS_DISCRIMINATOR): Define.
13477 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
13480 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
13481 there are no CALLs in the same pattern.
13483 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13485 PR rtl-optimization/61047
13486 * rtlanal.c (get_initial_register_offset): New function.
13487 (rtx_addr_can_trap_p_1): Check offsets of stack references.
13489 2015-07-01 Richard Biener <rguenther@suse.de>
13491 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
13492 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
13493 ~X CMP C -> X CMP' ~C to ...
13494 * match.pd: ... patterns here.
13496 2015-07-01 Nick Clifton <nickc@redhat.com>
13498 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
13499 a 16-bit value into a 20-bit memory slot.
13501 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13503 * doc/sourcebuild.texi (AArch64-specific attributes): Document
13504 "aarch64_tiny", "aarch64_small", "aarch64_large",
13505 "aarch64_little_endian", "aarch64_big_endian".
13507 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13509 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
13510 Document "aarch64_small_fpic".
13512 2015-07-01 Jiong Wang <jiong.wang@arm.com>
13514 * configure.ac: Add check for aarch64 assembler -fpic relocation
13516 * configure: Regenerate.
13517 * config.in: Regenerate.
13518 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
13519 to -fPIC if not support of -fpic relocation modifier in assembler.
13521 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
13524 * rtl.c (classify_insn): Handle returns in PARALLELs.
13526 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
13528 PR middle-end/66633
13529 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
13530 to true if the function is nested and if not optimizing.
13531 (convert_local_omp_clauses): Initialize need_frame to true if the
13532 function contains nested functions and if not optimizing.
13534 2015-07-01 Richard Biener <rguenther@suse.de>
13536 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
13537 (X & Y) ^ Y -> ~X & Y transforms to ...
13538 * match.pd: ... here.
13540 2015-07-01 Richard Biener <rguenther@suse.de>
13542 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
13543 of converts to avoid uninteresting noise from the conversion
13544 simplifying patterns.
13546 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
13548 * config/c6x/c6x.c (try_rename_operands): Do not depend on
13549 gcc_assert evaluating its argument for side-effect.
13551 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
13554 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
13557 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13559 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
13560 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
13561 (hash_scc): Add this_ref_p and ref_p parameters and pass them
13562 to the inner DFS walk.
13564 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13566 * target-insns.def (jump): New targetm instruction pattern.
13567 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
13568 instead of gen_jump.
13569 (fix_up_crossing_landing_pad): Likewise.
13570 (add_labels_and_missing_jumps): Likewise.
13571 (fix_crossing_conditional_branches): Likewise.
13572 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13573 (force_nonfallthru_and_redirect): Likewise.
13574 * cse.c (cse_insn): Likewise.
13575 * expmed.c (expand_divmod): Likewise.
13576 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
13577 * haifa-sched.c (init_before_recovery): Likewise.
13578 (sched_create_recovery_edges): Likewise.
13579 * ifcvt.c (find_cond_trap): Likewise.
13580 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
13581 (expand_float, expand_fix): Likewise.
13582 * stmt.c (emit_jump): Likewise.
13584 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13586 * defaults.h (HAVE_load_multiple, gen_load_multiple)
13587 (HAVE_store_multiple, gen_store_multiple): Delete.
13588 * target-insns.def (load_multiple, store_multiple): New targetm
13589 instruction patterns.
13590 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
13591 of HAVE_*/gen_* interface.
13593 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13595 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
13596 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
13597 (gen_mem_signal_fence): Delete.
13598 * target-insns.def (mem_signal_fence, mem_thread_fence)
13599 (memory_barrier): New targetm instruction patterns.
13600 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
13602 (expand_mem_signal_fence): Likewise.
13604 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
13606 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
13607 * target-insns.def (epilogue, prologue, sibcall_prologue): New
13608 targetm instruction patterns.
13609 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
13611 * calls.c (expand_call): Likewise.
13612 * cfgrtl.c (cfg_layout_finalize): Likewise.
13613 * df-scan.c (df_get_entry_block_def_set): Likewise.
13614 (df_get_exit_block_use_set): Likewise.
13615 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
13616 * final.c (final_start_function): Likewise.
13617 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13618 (reposition_prologue_and_epilogue_notes): Likewise.
13619 * reorg.c (find_end_label): Likewise.
13620 * toplev.c (process_options): Likewise.
13622 2015-06-30 David Malcolm <dmalcolm@redhat.com>
13624 * typed-splay-tree.h: New file.
13626 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
13629 * lra-int.h (lra_substitute_pseudo): Add a parameter.
13630 (lra_substitute_pseudo_within_insn): Ditto.
13631 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
13633 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
13634 to lra_substitute_pseudo.
13635 * lra-lives.c (process_bb_lives): Add an argument to
13636 lra_substitute_pseudo_within_insn call.
13637 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
13638 argument to lra_substitute_pseudo and
13639 lra_substitute_pseudo_within_insn calls.
13640 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
13642 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
13644 * configure: Regenerated.
13646 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
13648 * config.gcc: Support i[34567]86-*-elfiamcu target.
13649 * config/i386/iamcu.h: New.
13650 * config/i386/i386.opt: Add -miamcu.
13651 * doc/invoke.texi: Document -miamcu.
13652 * common/config/i386/i386-common.c (ix86_handle_option): Turn
13653 off x87/MMX/SSE/AVX codegen for -miamcu.
13654 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13655 __iamcu/__iamcu__ for -miamcu.
13656 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
13657 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
13658 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
13659 * config/i386/i386.c (ix86_option_override_internal): Ignore and
13660 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
13661 MCU by default. Default long double to 64-bit for Intel MCU.
13662 Turn on -freg-struct-return for Intel MCU. Issue an error when
13663 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
13665 (function_arg_advance_32): Pass value whose size is no larger
13666 than 8 bytes in registers for Intel MCU.
13667 (function_arg_32): Likewise.
13668 (ix86_return_in_memory): Return value whose size is no larger
13669 than 8 bytes in registers for Intel MCU.
13670 (iamcu_alignment): New function.
13671 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
13673 (ix86_local_alignment): Don't increase alignment for Intel MCU.
13674 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
13677 2015-06-30 Marek Polacek <polacek@redhat.com>
13679 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
13680 both operands of the resulting expression.
13682 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
13683 the final expression with the operand's type and then convert
13684 it to the type of the expression.
13686 2015-06-30 Richard Biener <rguenther@suse.de>
13688 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
13689 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
13690 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
13691 * match.pd: ... to patterns here.
13693 2015-06-30 Richard Biener <rguenther@suse.de>
13695 PR tree-optimization/66704
13696 * tree-vect-data-refs.c (vect_setup_realignment): Use
13697 make_ssa_name for non-SSA name source.
13699 2015-06-30 Jakub Jelinek <jakub@redhat.com>
13701 PR middle-end/66702
13702 * omp-low.c (simd_clone_adjust): Handle addressable linear
13703 or uniform parameters or non-gimple type uniform parameters.
13705 2015-06-30 Richard Biener <rguenther@suse.de>
13707 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
13708 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
13709 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
13710 * match.pd: ... here.
13711 Add a few cases of A - B -> A + (-B) when B "easily" negates.
13712 Move (x & y) | x -> x and friends before
13713 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
13715 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
13717 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
13718 -mfix-ut699 is not specified.
13719 (leon3_load): Rename into...
13720 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
13723 2015-06-30 Marek Polacek <polacek@redhat.com>
13725 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
13726 * match.pd: ... here.
13728 2015-06-30 Richard Biener <rguenther@suse.de>
13730 * target-insns.def (canonicalize_funcptr_for_compare): Add.
13731 * fold-const.c (build_range_check): Replace uses of
13732 HAVE_canonicalize_funcptr_for_compare.
13733 (fold_widened_comparison): Likewise.
13734 (fold_sign_changed_comparison): Likewise.
13735 * dojump.c: Include "target.h".
13736 (do_compare_and_jump): Replace uses of
13737 HAVE_canonicalize_funcptr_for_compare and
13738 gen_canonicalize_funcptr_for_compare.
13739 * expr.c (do_store_flag): Likewise.
13741 2015-06-30 Tom de Vries <tom@codesourcery.com>
13743 PR tree-optimization/66652
13744 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13745 max_loop_iterations to determine if nit + 1 overflows.
13747 2015-06-30 Richard Biener <rguenther@suse.de>
13749 * tree-vrp.c (register_edge_assert_for_2): Also register
13750 asserts for dominating conversion results.
13752 2015-06-30 Bin Cheng <bin.cheng@arm.com>
13754 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
13755 field in struct iv.
13757 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
13760 * configure.ac: Fix filds and fildq test for 64-bit.
13761 * configure: Regenerated.
13763 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
13765 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
13766 (nvptx_reorg): Here. Keep the non-subreg pieces.
13768 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
13770 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
13771 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13773 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
13775 * config/i386/i386.md (*jcc_1): Use %! in asm template.
13776 Set attribute "length_nobnd" instead of "length".
13779 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
13781 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
13783 * config/nios2/nios2.c (nios2_delegitimize_address): Make
13784 assert less restrictive.
13786 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
13789 * cgraphunit.c (cgraph_node::finalize_function): Do not call
13790 do_warn_unused_parameter.
13791 * function.c (do_warn_unused_parameter): Move from here.
13792 * function.h (do_warn_unused_parameter): Do not declare.
13794 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13797 * gcc.target/arm/armv-sync-comp-swap.c: New.
13798 * gcc.target/arm/armv-sync-op-acquire.c: New.
13799 * gcc.target/arm/armv-sync-op-full.c: New.
13800 * gcc.target/arm/armv-sync-op-release.c: New.
13802 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13805 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
13806 initial acquire barrier with final barrier.
13808 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13811 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
13812 initial acquire barrier with final barrier.
13814 2015-06-29 Richard Henderson <rth@redhat.com>
13816 * config/i386/constraints.md (Bf): New constraint.
13817 * config/i386/i386-c.c (ix86_target_macros): Define
13818 __GCC_ASM_FLAG_OUTPUTS__.
13819 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
13821 * doc/extend.texi (FlagOutputOperands): Document them.
13823 2015-06-29 Jiong Wang <jiong.wang@arm.com>
13825 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
13826 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
13828 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
13829 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
13830 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
13831 (aarch64_symbol_context): Ditto.
13832 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
13833 and use new pattern name.
13834 (aarch64_expand_mov_immediate): Ditto.
13835 (aarch64_print_operand): Ditto.
13836 (aarch64_classify_tls_symbol): Ditto.
13838 2015-06-29 Marek Polacek <polacek@redhat.com>
13839 Marc Glisse <marc.glisse@inria.fr>
13841 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
13842 * match.pd: ... pattern here.
13844 2015-06-29 Tom de Vries <tom@codesourcery.com>
13846 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
13847 function structure.
13849 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
13851 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
13852 feature description, split out the native option, add a link to
13853 the feature documentation, rearrange and slightly rewrite text.
13854 (Aarch64 options, -mcpu): Likewise.
13855 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
13856 +rdma implies Adv. SIMD.
13858 2015-06-29 Marek Polacek <polacek@redhat.com>
13861 * function.c (stack_protect_epilogue): Remove a cast to int.
13862 * doc/invoke.texi: Update -Wswitch-bool description.
13864 2015-06-29 Richard Biener <rguenther@suse.de>
13866 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
13867 * fold-const.c (fold_binary_loc): Move &A - &B simplification
13868 via ptr_difference_const ...
13869 * match.pd: ... here.
13870 When matching (X ^ Y) == Y also match with swapped operands.
13872 2015-06-29 Richard Biener <rguenther@suse.de>
13874 * lto-streamer.h (LTO_major_version): Bump to 5.
13876 2015-06-29 Richard Biener <rguenther@suse.de>
13878 PR tree-optimization/66677
13879 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
13880 STMT_VINFO_VEC_STMT clobbering less strict.
13882 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13884 PR middle-end/64130
13885 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
13886 division, compute max and min when value ranges for dividend and
13887 divisor are available.
13889 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
13890 Sandra Loosemore <sandra@codesourcery.com>
13892 * regrename.h (regrename_do_replace): Change to return bool.
13893 * regrename.c (rename_chains): Check return value of
13894 regname_do_replace.
13895 (regrename_do_replace): Re-validate the modified insns and
13896 return bool status.
13897 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13898 Update to match rename_chains changes.
13899 * config/c6x/c6x.c (try_rename_operands): Assert that
13900 regrename_do_replace returns true.
13902 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
13904 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
13905 operand 2 here. Use copy_addr_to_reg to copy non-index
13906 register operand 2 to a temporary.
13907 (<mode>_stx): Ditto for operand 1.
13908 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
13909 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
13910 (ix86_store_bounds): Ditto.
13912 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
13914 * print-tree.c (print_node) [TREE_VEC]: Print its length.
13916 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
13918 * gimple.c (gimple_call_set_fndecl): Remove.
13919 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
13920 build1_loc directly instead of build_fold_addr_expr_loc.
13922 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
13924 * hash-map.h (hash_map::traverse): Use the definition of the
13925 Key typedef rather than the typedef itself.
13927 2015-06-26 Martin Jambor <mjambor@suse.cz>
13930 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
13931 NULL instead of calling dump_enabled_p.
13933 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13935 * config/aarch64/aarch64.opt: (override): New.
13936 * doc/invoke.texi (override): Document.
13937 * config/aarch64/aarch64.c (aarch64_flag_desc): New
13938 (aarch64_fusible_pairs): Likewise.
13939 (aarch64_tuning_flags): Likewise.
13940 (aarch64_tuning_override_function): Likewise.
13941 (aarch64_tuning_override_functions): Likewise.
13942 (aarch64_parse_one_option_token): Likewise.
13943 (aarch64_parse_boolean_options): Likewise.
13944 (aarch64_parse_fuse_string): Likewise.
13945 (aarch64_parse_tune_string): Likewise.
13946 (aarch64_parse_one_override_token): Likewise.
13947 (aarch64_parse_override_string): Likewise.
13948 (aarch64_override_options): Parse the -override string if it
13951 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13953 * config/aarch64/aarch64-protos.h (tune_params): Remove
13954 const from members.
13955 (aarch64_tune_params): Remove const, change to no longer be
13957 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
13958 change to no longer be a pointer, initialize to generic_tunings.
13959 (aarch64_min_divisions_for_recip_mul): Change dereference of
13960 aarch64_tune_params to member access.
13961 (aarch64_reassociation_width): Likewise.
13962 (aarch64_rtx_mult_cost): Likewise.
13963 (aarch64_address_cost): Likewise.
13964 (aarch64_branch_cost): Likewise.
13965 (aarch64_rtx_costs): Likewise.
13966 (aarch64_register_move_cost): Likewise.
13967 (aarch64_memory_move_cost): Likewise.
13968 (aarch64_sched_issue_rate): Likewise.
13969 (aarch64_builtin_vectorization_cost): Likewise.
13970 (aarch64_override_options): Take a copy of the selected tuning
13971 struct in to aarch64_tune_params, rather than just setting
13972 a pointer, change dereferences of aarch64_tune_params to member
13974 (aarch64_override_options_after_change): Change dereferences of
13975 aarch64_tune_params to member access.
13976 (aarch64_macro_fusion_p): Likewise.
13977 (aarch_macro_fusion_pair_p): Likewise.
13978 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
13980 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13982 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
13983 (aarch64_tune_flags): Likewise.
13984 (AARCH64_TUNE_FMA_STEERING): Likewise.
13985 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
13986 to AARCH64_FL_USE_FMA_STEERING_PASS.
13987 (cortex-a57.cortex-a53): Likewise.
13988 (cortex-a72): Use cortexa72_tunings.
13989 (cortex-a72.cortex-a53): Likewise.
13990 (exynos-m1): Likewise.
13991 * config/aarch64/aarch64-protos.h (tune_params): Add
13992 a field: extra_tuning_flags.
13993 * config/aarch64/aarch64-tuning-flags.def: New.
13994 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
13995 (aarch64_extra_tuning_flags): Likewise.
13996 (aarch64_tune_params): Declare here.
13997 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
13998 (cortexa53_tunings): Likewise.
13999 (cortexa57_tunings): Likewise.
14000 (thunderx_tunings): Likewise.
14001 (xgene1_tunings): Likewise.
14002 (cortexa72_tunings): New.
14003 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14004 (gate): Check against aarch64_tune_params.
14005 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14008 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14010 * config/aarch64/aarch64-fusion-pairs.def: New.
14011 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14012 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14013 aarch64_fusion_pairs.
14014 (AARCH64_FUSE_MOV_MOVK): Likewise.
14015 (AARCH64_FUSE_ADRP_ADD): Likewise.
14016 (AARCH64_FUSE_MOVK_MOVK): Likewise.
14017 (AARCH64_FUSE_ADRP_LDR): Likewise.
14018 (AARCH64_FUSE_CMP_BRANCH): Likewise.
14020 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14022 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14023 SYMBOL_SMALL_GOT_28K.
14024 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14025 relocation modifiers.
14026 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14027 (ldr_got_small_28k_<mode>): New.
14028 (ldr_got_small_28k_sidi): New.
14029 * config/aarch64/iterators.md (got_modifier): New mode iterator.
14030 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14031 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14032 SYMBOL_SMALL_GOT_28K.
14033 (aarch64_rtx_costs): Add costs for new instruction sequences.
14034 (initialize_aarch64_code_model): Initialize new model.
14035 (aarch64_classify_symbol): Recognize new model and new symbol classification.
14036 (aarch64_asm_preferred_eh_data_format): Support new model.
14037 (aarch64_load_symref_appropriately): Generate new instruction
14038 sequences for -fpic.
14039 (TARGET_USE_PSEUDO_PIC_REG): New definition.
14040 (aarch64_use_pseudo_pic_reg): New function.
14042 2015-06-26 Jiong Wang <jiong.wang@arm.com>
14044 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14045 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14046 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14047 (aarch64_expand_mov_immediate): Ditto.
14048 (aarch64_print_operand): Ditto.
14049 (aarch64_classify_symbol): Ditto.
14051 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
14053 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14055 2015-06-26 Bin Cheng <bin.cheng@arm.com>
14058 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14059 assertion failed. Remove assertion itself.
14061 2015-06-26 Richard Biener <rguenther@suse.de>
14063 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14064 and -A CMP CST -> A CMP -CST which is redundant with a pattern
14066 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14067 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14068 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14069 * match.pd: ... patterns here.
14071 2015-06-26 Marek Polacek <polacek@redhat.com>
14073 * match.pd ((x | y) & ~(x & y) -> x ^ y,
14074 (x | y) & (~x ^ y) -> x & y): New patterns.
14076 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14078 * rtl.h (emit): Add an optional boolean parameter to control
14079 whether barriers are emitted.
14080 * emit-rtl.c (emit): Likewise.
14081 * gensupport.c (get_emit_function): Return null rather than "emit".
14082 * genemit.c (gen_emit_seq): Handle the null return value.
14083 Don't emit barriers after the final instruction in the sequence.
14084 * gentarget-def.c (main): Don't emit barriers after the instruction.
14086 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14088 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14089 TARGET_UNIFIED_ASM.
14091 2015-06-26 Richard Biener <rguenther@suse.de>
14093 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14095 2015-06-26 Richard Biener <rguenther@suse.de>
14097 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14098 irrespective on whether the inner operation has a single use
14099 of both off are constant.
14101 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
14102 Segher Boessenkool <segher@kernel.crashing.org>
14105 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14106 before doing PUT_MODE or PUT_CODE on operands to avoid
14107 in-place RTX modification.
14109 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14111 * gentarget-def.c (def_target_insn): Cast return of strtol to
14114 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14116 * gimple.h (gimple_call_set_fn): Move inline function.
14117 * gimple.c (gimple_call_set_fn): Relocate here.
14119 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
14123 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14124 the replacement insn will work.
14126 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
14128 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14131 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14133 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14134 * cgraph.h: Include ipa-ref.h and plugin-api.h.
14135 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14136 (symtab_node::address_can_be_compared_p): Move function.
14137 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14139 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14140 * auto-profile.c: Likewise.
14141 * bb-reorder.c: Likewise.
14142 * builtins.c: Likewise.
14143 * calls.c: Likewise.
14144 * cfgexpand.c: Likewise.
14145 * cgraphbuild.c: Likewise.
14146 * cgraphclones.c: Likewise.
14147 * cgraphunit.c: Likewise.
14148 * combine.c: Likewise.
14149 * coverage.c: Likewise.
14150 * data-streamer-in.c: Likewise.
14151 * data-streamer-out.c: Likewise.
14152 * data-streamer.c: Likewise.
14153 * dbxout.c: Likewise.
14154 * dwarf2out.c: Likewise.
14155 * except.c: Likewise.
14156 * expr.c: Likewise.
14157 * final.c: Likewise.
14158 * fold-const.c: Likewise.
14159 * ggc-page.c: Likewise.
14160 * gimple-fold.c: Likewise.
14161 * gimple-iterator.c: Likewise.
14162 * gimple-pretty-print.c: Likewise.
14163 * gimple-streamer-in.c: Likewise.
14164 * gimple-streamer-out.c: Likewise.
14165 * gimple.c: Likewise.
14166 * gimplify.c: Likewise.
14167 * ipa-chkp.c: Likewise.
14168 * ipa-comdats.c: Likewise.
14169 * ipa-cp.c: Likewise.
14170 * ipa-devirt.c: Likewise.
14171 * ipa-icf-gimple.c: Likewise.
14172 * ipa-icf.c: Likewise.
14173 * ipa-inline-analysis.c: Likewise.
14174 * ipa-inline-transform.c: Likewise.
14175 * ipa-inline.c: Likewise.
14176 * ipa-polymorphic-call.c: Likewise.
14177 * ipa-profile.c: Likewise.
14178 * ipa-prop.c: Likewise.
14179 * ipa-pure-const.c: Likewise.
14180 * ipa-ref.c: Likewise.
14181 * ipa-reference.c: Likewise.
14182 * ipa-split.c: Likewise.
14183 * ipa-utils.c: Likewise.
14184 * ipa-visibility.c: Likewise.
14186 * langhooks.c: Likewise.
14187 * lto-cgraph.c: Likewise.
14188 * lto-compress.c: Likewise.
14189 * lto-opts.c: Likewise.
14190 * lto-section-in.c: Likewise.
14191 * lto-section-out.c: Likewise.
14192 * lto-streamer-in.c: Likewise.
14193 * lto-streamer-out.c: Likewise.
14194 * lto-streamer.c: Likewise.
14195 * omp-low.c: Likewise.
14196 * opts-global.c: Likewise.
14197 * passes.c: Likewise.
14198 * predict.c: Likewise.
14199 * print-tree.c: Likewise.
14200 * profile.c: Likewise.
14202 * sanopt.c: Likewise.
14203 * stor-layout.c: Likewise.
14204 * symtab.c: Likewise.
14205 * toplev.c: Likewise.
14206 * trans-mem.c: Likewise.
14207 * tree-cfg.c: Likewise.
14208 * tree-chkp.c: Likewise.
14209 * tree-eh.c: Likewise.
14210 * tree-emutls.c: Likewise.
14211 * tree-inline.c: Likewise.
14212 * tree-nested.c: Likewise.
14213 * tree-parloops.c: Likewise.
14214 * tree-pretty-print.c: Likewise.
14215 * tree-profile.c: Likewise.
14216 * tree-sra.c: Likewise.
14217 * tree-ssa-alias.c: Likewise.
14218 * tree-ssa-live.c: Likewise.
14219 * tree-ssa-loop-ivcanon.c: Likewise.
14220 * tree-ssa-loop-ivopts.c: Likewise.
14221 * tree-ssa-pre.c: Likewise.
14222 * tree-ssa-sccvn.c: Likewise.
14223 * tree-ssa-strlen.c: Likewise.
14224 * tree-ssa-structalias.c: Likewise.
14225 * tree-streamer-in.c: Likewise.
14226 * tree-streamer-out.c: Likewise.
14227 * tree-streamer.c: Likewise.
14228 * tree-switch-conversion.c: Likewise.
14229 * tree-tailcall.c: Likewise.
14230 * tree-vect-data-refs.c: Likewise.
14231 * tree-vect-stmts.c: Likewise.
14232 * tree-vectorizer.c: Likewise.
14233 * tree.c: Likewise.
14234 * tsan.c: Likewise.
14235 * ubsan.c: Likewise.
14236 * value-prof.c: Likewise.
14237 * varasm.c: Likewise.
14238 * varpool.c: Likewise.
14239 * config/arm/arm.c: Likewise.
14240 * config/bfin/bfin.c: Likewise.
14241 * config/c6x/c6x.c: Likewise.
14242 * config/cris/cris.c: Likewise.
14243 * config/darwin-c.c: Likewise.
14244 * config/darwin.c: Likewise.
14245 * config/i386/i386.c: Likewise.
14246 * config/i386/winnt.c: Likewise.
14247 * config/microblaze/microblaze.c: Likewise.
14248 * config/mips/mips.c: Likewise.
14249 * config/rs6000/rs6000.c: Likewise.
14250 * config/rx/rx.c: Likewise.
14251 * config/s390/s390.c: Likewise.
14252 * config/tilegx/mul-tables.c: Likewise.
14254 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14256 * config/aarch64/aarch64.c, config/alpha/alpha.c,
14257 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
14258 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
14259 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
14260 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14261 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14262 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14263 config/microblaze/microblaze.c, config/mips/mips.c,
14264 config/mmix/mmix.c, config/mn10300/mn10300.c,
14265 config/moxie/moxie.c, config/msp430/msp430.c,
14266 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14267 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14268 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14269 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14270 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14271 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14272 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
14273 target-def.h include.
14274 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
14276 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14278 * Makefile.in (TARGET_DEF): Add target-insns.def.
14279 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
14280 (build/gentarget-def.o): New rule.
14281 (genprogrtl): Add target-def.
14282 * target-insns.def, gentarget-def.c: New files.
14283 * target.def: Add targetm.have_* and targetm.gen_* hooks,
14284 based on the contents of target-insns.def.
14285 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
14286 (HAVE_return, gen_return): Delete.
14287 * target-def.h: Include insn-target-def.h.
14288 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
14289 instead of direct calls. Rely on them to do the appropriate assertions.
14290 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
14291 (convert_jumps_to_returns): Use targetm interface instead of
14293 (thread_prologue_and_epilogue_insns): Likewise.
14294 * reorg.c (find_end_label, dbr_schedule): Likewise.
14295 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
14296 * shrink-wrap.c (convert_to_simple_return): Likewise.
14297 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
14299 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14301 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
14302 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14303 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
14304 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
14305 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
14306 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
14307 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
14308 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
14309 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
14310 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
14311 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
14312 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
14313 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
14314 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14315 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
14316 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
14319 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14321 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
14322 (unbounded_int_hashmap_traits::key_type): Likewise.
14323 * hash-map.h (hash_map): Get the key type from the traits.
14324 * hash-traits.h (default_hash_traits): By default, inherit from the
14325 template parameter.
14326 * alias.c (alias_set_traits): Delete.
14327 (alias_set_entry_d::children): Use alias_set_hash as the first
14328 template parameter.
14329 (record_alias_subset): Update accordingly.
14330 * except.c (tree_hash_traits): Delete.
14331 (type_to_runtime_map): Use tree_hash as the first template parameter.
14332 (init_eh): Update accordingly.
14333 * genmatch.c (capture_id_map_hasher): Delete.
14334 (cid_map_t): Use nofree_string_hash as first template parameter.
14335 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
14336 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14337 Use symbol_compare_hash as the first template parameter in
14338 subdivide_hash_map.
14339 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
14340 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
14341 template parameter.
14342 * passes.c (pass_registry_hasher): Delete.
14343 (name_to_pass_map): Use nofree_string_hash as the first template
14345 (register_pass_name): Update accordingly.
14346 * sanopt.c (sanopt_tree_map_traits): Delete.
14347 (sanopt_tree_triplet_map_traits): Delete.
14348 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
14349 template parameter.
14350 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
14351 the first template parameter.
14352 * sese.c (rename_map_hasher): Delete.
14353 (rename_map_type): Use tree_ssa_name_hash as the first template
14355 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
14356 (function_summary::m_map): Use map_hash as the first template
14358 (function_summary::release): Update accordingly.
14359 * tree-if-conv.c (phi_args_hash_traits): Delete.
14360 (predicate_scalar_phi): Use tree_operand_hash as the first template
14361 parameter to phi_arg_map.
14362 * tree-inline.h (dependence_hasher): Delete.
14363 (copy_body_data::dependence_map): Use dependence_hash as the first
14364 template parameter.
14365 * tree-inline.c (remap_dependence_clique): Update accordingly.
14366 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
14367 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
14369 (addr_stridxptr): Update accordingly.
14370 * value-prof.c (profile_id_traits): Delete.
14371 (cgraph_node_map): Use profile_id_hash as the first template
14373 (init_node_map): Update accordingly.
14374 * config/alpha/alpha.c (string_traits): Delete.
14375 (machine_function::links): Use nofree_string_hash as the first
14376 template parameter.
14377 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
14378 * config/m32c/m32c.c (pragma_traits): Delete.
14379 (pragma_htab): Use nofree_string_hash as the first template parameter.
14380 (m32c_note_pragma_address): Update accordingly.
14381 * config/mep/mep.c (pragma_traits): Delete.
14382 (pragma_htab): Use nofree_string_hash as the first template parameter.
14383 (mep_note_pragma_flag): Update accordingly.
14384 * config/mips/mips.c (mips16_flip_traits): Delete.
14385 (mflip_mips16_htab): Use nofree_string_hash as the first template
14387 (mflip_mips16_use_mips16_p): Update accordingly.
14388 (local_alias_traits): Delete.
14389 (mips16_local_aliases): Use nofree_string_hash as the first template
14391 (mips16_local_alias): Update accordingly.
14393 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14395 * hash-map-traits.h (default_hashmap_traits): Delete.
14397 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14399 * hash-map-traits.h (unbounded_hashmap_traits): New class.
14400 (unbounded_int_hashmap_traits): Likewise.
14401 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
14403 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14405 * ipa-icf.h (symbol_compare_hash): New class.
14406 (symbol_compare_hashmap_traits): Use it.
14407 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
14408 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
14409 (mem_alloc_description::reverse_mem_map_t): Remove redundant
14410 default_hashmap_traits.
14411 * sanopt.c (sanopt_tree_triplet_hash): New class.
14412 (sanopt_tree_triplet_map_traits): Use it.
14414 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14416 * gengtype-parse.c (require_template_declaration): Allow '+' in
14417 template parameters. Consolidate cases.
14418 * hash-traits.h (int_hash): New class.
14419 * alias.c (alias_set_hash): New structure.
14420 (alias_set_traits): Use it.
14421 * symbol-summary.h (function_summary::map_hash): New class.
14422 (function_summary::summary_hashmap_traits): Use it.
14423 * tree-inline.h (dependence_hash): New class.
14424 (dependence_hasher): Use it.
14425 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
14426 * value-prof.c (profile_id_hash): New class.
14427 (profile_id_traits): Use it.
14429 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14431 * config/mips/mips.c (mips16_flip_traits): Use it.
14432 (local_alias_traits, mips16_local_aliases): Convert from a map of
14433 rtxes to a map of symbol names.
14434 (mips16_local_alias): Update accordingly.
14436 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14438 * hash-traits.h (string_hash, nofree_string_hash): New classes.
14439 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
14440 * passes.c (pass_registry_hasher): Likewise.
14441 * config/alpha/alpha.c (string_traits): Likewise.
14442 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
14443 * config/m32c/m32c.c (pragma_traits): Likewise.
14444 * config/mep/mep.c (pragma_traits): Likewise.
14446 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14448 * tree-hash-traits.h (tree_hash): New class.
14449 * except.c: Include tree-hash-traits.h.
14450 (tree_hash_traits): Use tree_hash.
14452 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14454 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
14455 * sese.c: Include tree-hash-traits.h.
14456 (rename_map_hasher): Use tree_ssa_name_hasher.
14458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14460 * tree-hash-traits.h (tree_decl_hash): New class.
14461 * tree-ssa-strlen.c: Include tree-hash-traits.h.
14462 (stridxlist_hash_traits): Use tree_decl_hash.
14464 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14466 * tree-hash-traits.h: New file.
14467 (tree_operand_hash): New class.
14468 * sanopt.c: Include tree-hash-traits.h.
14469 (sanopt_tree_map_traits): Use tree_operand_hash.
14470 * tree-if-conv.c: Include tree-hash-traits.h.
14471 (phi_args_hash_traits): Use tree_operand_hash.
14472 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
14473 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
14475 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14477 * hash-map-traits.h: Include hash-traits.h.
14478 (simple_hashmap_traits): New class.
14479 * mem-stats.h (hash_map): Change the default traits to
14480 simple_hashmap_traits<default_hash_traits<Key> >.
14482 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14484 * hash-table.h: Update comments.
14486 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14488 * hash-traits.h (default_hash_traits): New structure.
14489 * hash-set.h (default_hashset_traits): Delete.
14490 (hash_set): Use default_hash_traits<Key> instead of
14491 default_hashset_traits. Delete hash_entry type and use Key directly.
14492 * ipa-devirt.c (pair_traits): Delete.
14493 (default_hash_traits <type_pair>): Override.
14494 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
14495 (odr_types_equivalent_p, add_type_duplicate): Likewise.
14497 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14499 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
14501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14503 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
14504 (has_is_empty, is_empty_helper): Delete.
14505 (has_mark_deleted, mark_deleted_helper): Delete.
14506 (has_mark_empty, mark_empty_helper): Delete.
14507 (hash_table::is_deleted): Call the Descriptor unconditionally.
14508 (hash_table::is_empty): Likewise.
14509 (hash_table::mark_deleted): Likewise.
14510 (hash_table::mark_empty): Likewise.
14512 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14514 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
14515 redundant typedefs and members.
14516 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
14517 redundant typedefs.
14518 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
14519 * ipa-devirt.c (odr_name_hasher): Likewise.
14520 (polymorphic_call_target_hasher): Likewise.
14521 * ira-costs.c (cost_classes_hasher): Likewise.
14522 * statistics.c (stats_counter_hasher): Likewise.
14523 * trans-mem.c (log_entry_hasher): Likewise.
14524 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14525 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
14526 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
14527 * var-tracking.c (variable_hasher): Likewise.
14528 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
14529 Remove redundant typedefs and members.
14531 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14533 * hash-traits.h (ggc_cache_hasher): Rename to...
14534 (ggc_cache_remove): ...this and remove typedefs.
14535 (ggc_cache_ptr_hash): New class.
14536 * hash-table.h: Update commentary.
14537 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
14538 rather than ggc_cache_hasher.
14539 (const_wide_int_hasher, reg_attr_hasher): Likewise.
14540 (const_double_hasher, const_fixed_hasher): Likewise.
14541 * function.c (insn_cache_hasher): Likewise.
14542 * trans-mem.c (tm_wrapper_hasher): Likewise.
14543 * tree.h (tree_decl_map_cache_hasher): Likewise.
14544 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
14545 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
14546 * ubsan.c (tree_type_map_cache_hasher): Likewise.
14547 * varasm.c (tm_clone_hasher): Likewise.
14548 * config/i386/i386.c (dllimport_hasher): Likewise.
14549 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
14550 (tree_hasher): Likewise.
14552 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14554 * hash-traits.h (ggc_hasher): Rename to...
14555 (ggc_remover): ...this and remove typedefs.
14556 (ggc_cache_hasher): Update accordingly. Add typedefs.
14557 (ggc_ptr_hash): New class.
14558 * hash-table.h: Update comment.
14559 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
14561 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
14562 (tree_descriptor_hasher): Likewise.
14563 * cgraph.c (function_version_hasher): Likewise.
14564 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
14565 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
14566 (dw_loc_list_hasher, addr_hasher): Likewise.
14567 * function.h (used_type_hasher): Likewise.
14568 * function.c (temp_address_hasher): Likewise.
14569 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
14570 * libfuncs.h (libfunc_hasher): Likewise.
14571 * lto-streamer.h (decl_state_hasher): Likewise.
14572 * optabs.c (libfunc_decl_hasher): Likewise.
14573 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
14574 * varasm.c (section_hasher, object_block_hasher): Likewise.
14575 (const_rtx_desc_hasher): Likewise.
14576 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
14577 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
14579 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14581 * hash-traits.h (free_ptr_hash): New class.
14582 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
14583 rather than typed_free_remove. Remove redudant typedefs.
14584 (external_ref_hasher): Likewise.
14585 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
14586 (ehspec_hasher): Likewise.
14587 * ggc-common.c (saving_hasher): Likewise.
14588 * gimplify.c (gimplify_hasher): Likewise.
14589 * haifa-sched.c (delay_i2_hasher): Likewise.
14590 * loop-invariant.c (invariant_expr_hasher): Likewise.
14591 * loop-iv.c (biv_entry_hasher): Likewise.
14592 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
14593 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
14594 * tree-cfg.c (locus_discrim_hasher): Likewise.
14595 * tree-eh.c (finally_tree_hasher): Likewise.
14596 * tree-into-ssa.c (var_info_hasher): Likewise.
14597 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
14598 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
14599 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
14600 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
14601 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
14602 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
14603 (shared_bitmap_hasher): Likewise.
14604 * tree-ssa-threadupdate.c (redirection_data): Likewise.
14605 * tree-vectorizer.h (peel_info_hasher): Likewise.
14606 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
14607 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
14609 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14611 * hash-table.h: Update comments.
14612 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
14613 (nofree_ptr_hash): New class.
14614 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
14615 than typed_noop_remove. Remove redudant typedefs.
14616 * attribs.c (attribute_hasher): Likewise.
14617 * cfg.c (bb_copy_hasher): Likewise.
14618 * cselib.c (cselib_hasher): Likewise.
14619 * dse.c (invariant_group_base_hasher): Likewise.
14620 * dwarf2cfi.c (trace_info_hasher): Likewise.
14621 * dwarf2out.c (macinfo_entry_hasher): Likewise.
14622 (comdat_type_hasher, loc_list_hasher): Likewise.
14623 * gcse.c (pre_ldst_expr_hasher): Likewise.
14624 * genmatch.c (id_base): Likewise.
14625 * genrecog.c (test_pattern_hasher): Likewise.
14626 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
14627 * haifa-sched.c (delay_i1_hasher): Likewise.
14628 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
14629 * ipa-icf.h (congruence_class_group_hash): Likewise.
14630 * ipa-profile.c (histogram_hash): Likewise.
14631 * ira-color.c (allocno_hard_regs_hasher): Likewise.
14632 * lto-streamer.h (string_slot_hasher): Likewise.
14633 * lto-streamer.c (tree_entry_hasher): Likewise.
14634 * plugin.c (event_hasher): Likewise.
14635 * postreload-gcse.c (expr_hasher): Likewise.
14636 * store-motion.c (st_expr_hasher): Likewise.
14637 * tree-sra.c (uid_decl_hasher): Likewise.
14638 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
14639 (ssa_name_var_hash): Likewise.
14640 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
14641 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
14642 * tree-ssa-pre.c (pre_expr_d): Likewise.
14643 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
14644 * vtable-verify.h (registration_hasher): Likewise.
14645 * vtable-verify.c (vtbl_map_hasher): Likewise.
14646 * config/arm/arm.c (libcall_hasher): Likewise.
14647 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
14648 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
14649 * config/sol2.c (comdat_entry_hasher): Likewise.
14650 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
14651 (print_fold_checksum, fold_checksum_tree): Likewise.
14652 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
14653 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
14654 (fold_build_call_array_loc): Likewise.
14655 * tree-ssa-ccp.c (gimple_htab): Likewise.
14656 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
14657 rather than pointer_type.
14659 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14661 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
14662 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
14664 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14666 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
14667 (ggc_hasher::ggc_mx): Likewise.
14668 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
14669 that duplicate ggc_hasher ones.
14671 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14673 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
14674 (gt_cleare_cache): Check here for deleted and empty entries.
14675 Replace handle_cache_entry with a call to keep_cache_entry.
14676 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
14677 (ggc_cache_hasher::keep_cache_entry): New function.
14678 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
14679 (tm_wrapper_hasher::keep_cache_entry): New function.
14680 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
14681 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14682 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
14683 (type_cache_hasher::keep_cache_entry): New function.
14684 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
14685 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
14686 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
14687 (tree_type_map_cache_hasher::keep_cache_entry): New function.
14688 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
14689 (tm_clone_hasher::keep_cache_entry): New function.
14690 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
14691 (dllimport_hasher::keep_cache_entry): New function.
14693 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14695 * hash-table.h: Include hash-traits.h.
14696 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
14697 (ggc_cache_hasher): Move to...
14698 * hash-traits.h: ...this new file.
14700 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14702 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
14703 struct cl_optimization.
14704 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
14705 * tree.c (make_node_stat): Allocate cl_optimization struct.
14706 (copy_node_stat): Allocate and copy cl_optimization struct.
14708 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14710 * function.h (struct incoming_args): Move struct.
14711 (pass_by_reference, reference_callee_copied): Remove prototypes.
14712 * emit-rtl.h (struct incoming_args): Relocate struct here.
14713 * calls.h (pass_by_reference, reference_callee_copied): Relocate
14715 * function.c (pass_by_reference, reference_callee_copied): Move.
14716 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
14717 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
14718 * ipa-chkp.c: Include calls.h.
14720 2015-06-25 Andrew Macleod <amacleod@redhat.com>
14722 * alias.h (alias_set_type): Move typedef.
14723 * coretypes.h (alias_set_type): Relocate typedef here.
14724 * rtl.h: Don't include alias.h.
14726 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
14728 * cgraph.h (cgraph_rtl_info): Move to rtl.h
14729 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
14731 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
14732 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
14734 * calls.c: Include hard-reg-set.h before rtl.h.
14737 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14738 Vladimir Makarov <vmakarov@redhat.com>
14740 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
14743 2015-06-25 Richard Biener <rguenther@suse.de>
14745 * fold-const.c (fold_binary_loc): Move simplification of
14746 (X <<>> C1) & C2 ...
14747 * match.pd: ... here.
14749 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
14751 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
14753 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14755 * match.pd: Add patterns for vec_conds between 1 and 0.
14757 2015-06-25 Richard Biener <rguenther@suse.de>
14759 * tree-vect-stmts.c (vectorizable_conversion): Do not set
14760 STMT_VINFO_VEC_STMT for SLP.
14761 (vectorizable_store): Likewise.
14762 (vectorizable_load): Likewise.
14763 (vect_transform_stmt): Catch SLP vectorization clobbering
14764 STMT_VINFO_VEC_STMT.
14766 2015-06-25 Richard Biener <rguenther@suse.de>
14768 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
14770 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
14771 cleanup resulting dead code and parameters.
14772 (vect_transform_slp_perm_load): Adjust.
14774 2015-06-25 Nick Clifton <nickc@redhat.com>
14776 * config/bfin/bfin.c (bfin_expand_prologue): Set
14777 current_function_static_stack_size if flag_stack_usage_info is set.
14778 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
14779 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
14780 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
14781 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
14783 2015-06-25 Tom de Vries <tom@codesourcery.com>
14785 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
14786 comment that the generated IV is unsigned.
14788 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14791 * config/arm/arm.c (arm_dbx_register_number): Return
14792 DWARF_FRAME_REGISTERS by default.
14794 2015-06-25 Tom de Vries <tom@codesourcery.com>
14796 * dominance.c (calculate_dominance_info): Fix verify_dominators call
14797 argument. Call verify_dominator when reusing dominator info.
14799 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
14802 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
14803 an additional element of the unspec vector. Modify indices
14805 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
14806 * config/sh/sh.c (prepare_move_operands): Pass incremented
14807 const_int to gen_GOTaddr2picreg.
14808 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
14810 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
14812 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
14813 Condition on TARGET_FLOAT.
14815 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
14817 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
14820 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
14822 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
14824 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
14825 aarch64_err_no_fpadvsimd.
14827 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
14828 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
14829 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
14830 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
14831 Turn error into assert, test TARGET_FLOAT.
14832 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
14835 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
14838 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
14840 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
14842 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
14844 2015-06-24 Renlin Li <renlin.li@arm.com>
14846 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
14847 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
14849 2015-06-24 Richard Biener <rguenther@suse.de>
14851 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
14853 (lower_opt_convert): Support lowering of conditional view_convert.
14854 (parser::parse_operation): Likewise.
14855 (parser::parse_for): Likewise.
14857 2015-06-24 Renlin Li <renlin.li@arm.com>
14859 * varasm.c (emit_local): Use unsigned int for align variable.
14861 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14864 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
14865 for negative numbers.
14867 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14869 PR rtl-optimization/66306
14870 * reload.c (find_reloads): Swap the match_dup info for
14871 commutative operands.
14873 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14875 * config/s390/vx-builtins.md
14876 ("vec_scatter_element<mode>_<non_vec_int>")
14877 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
14878 attribute with bhfgq.
14880 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14882 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
14884 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14886 * config/s390/s390-builtin-types.def: Add flag to indicate the
14887 options under which the function type is needed.
14888 * config/s390/s390-builtins.def: Add flag to indicate the options
14889 under which the builtin is enabled.
14890 * config/s390/s390-builtins.h: Add flags parameter to macro
14892 (bflags_for_builtin): New function.
14893 (flags_for_builtin): Renamed to ...
14894 (opflags_for_builtin): ... this.
14895 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
14896 flags_for_builtin to bflags_for_builtin and
14897 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
14898 * config/s390/s390.c: Add initialization of bflags_builtin and
14899 opflags_builtin arrays.
14900 Remove code for flags_builtin.
14901 (s390_init_builtins): Only create builtin function types if one of
14902 their flags is active.
14903 Only create builtins if all of their flags are active.
14904 (s390_expand_builtin): Rename flags_for_builtin to
14905 opflags_for_builtin.
14907 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14909 * config/s390/vecintrin.h: Remove internal builtins.
14911 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14913 * config/s390/s390.c (s390_secondary_reload): Fix check for
14914 GENERAL_REGS register class.
14916 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14918 * config/s390/s390.c (s390_support_vector_misalignment): Call
14919 default implementation for !TARGET_VX.
14921 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14923 * config/s390/s390.c (s390_legitimate_constant_p): Add
14926 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14928 * config/s390/s390.c (s390_vector_abi): New variable definition.
14929 (s390_check_type_for_vector_abi): New function.
14930 (TARGET_ASM_FILE_END): New macro definition.
14931 (s390_asm_file_end): New function.
14932 (s390_function_arg): Call s390_check_type_for_vector_abi.
14933 (s390_gimplify_va_arg): Likewise.
14934 * configure: Regenerate.
14935 * configure.ac: Check for .gnu_attribute Binutils feature.
14937 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
14940 * config/bfin/bfin.c (hwloop_optimize): Initialize
14941 JUMP_LABEL for newly created jump.
14943 2015-06-23 Tristan Gingold <gingold@adacore.com>
14945 * collect-utils.c (collect_wait): Unlink the response file here
14947 (do_wait): ...here.
14948 (utils_cleanup): ...and here.
14950 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
14952 * df-scan.c: Don't include target-def.h.
14953 * targhooks.c: Likewise.
14954 * config/arm/arm-c.c: Likewise.
14955 * config/i386/i386-c.c: Likewise.
14956 * config/nds32/nds32-cost.c: Likewise.
14957 * config/nds32/nds32-fp-as-gp.c: Likewise.
14958 * config/nds32/nds32-intrinsic.c: Likewise.
14959 * config/nds32/nds32-isr.c: Likewise.
14960 * config/nds32/nds32-md-auxiliary.c: Likewise.
14961 * config/nds32/nds32-memory-manipulation.c: Likewise.
14962 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14963 * config/nds32/nds32-predicates.c: Likewise.
14965 2015-06-23 Richard Biener <rguenther@suse.de>
14967 PR tree-optimization/66636
14968 * tree-vect-stmts.c (vectorizable_store): Properly compute the
14969 def type for further defs for strided stores.
14971 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
14973 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
14974 conditional selects.
14975 (setcc_int<mode>, setcc_float<mode>): Reformat.
14977 2015-06-23 Marek Polacek <polacek@redhat.com>
14979 * match.pd ((x + y) - (x | y) -> x & y,
14980 (x + y) - (x & y) -> x | y): New patterns.
14982 2015-06-23 Ludovic Courtès <ludo@gnu.org>
14985 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
14986 '-dynamic-linker' within %{!shared: ...}.
14988 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
14991 * config/i386/predicates.md (addsub_vm_operator): New predicate.
14992 (addsub_vs_operator): Ditto.
14993 (addsub_vs_parallel): Ditto.
14994 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
14995 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
14996 Put minus RTX before plus and adjust vec_merge selector.
14997 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
14998 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
14999 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15000 (addsub vec_merge splitters): New combiner splitters.
15001 (addsub vec_select/vec_concat splitters): Ditto.
15003 2015-06-23 Bin Cheng <bin.cheng@arm.com>
15005 PR tree-optimization/66449
15006 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15007 POINTER_PLUS_EXPR for pointers.
15009 2015-06-23 Alan Modra <amodra@gmail.com>
15011 * rtlanal.c (commutative_operand_precedence): Correct comments.
15012 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15013 declaration. Return an int. Distinguish REG,REG return from
15015 (struct simplify_plus_minus_op_data): Make local to function.
15016 (simplify_plus_minus): Don't set canonicalized if merely sorting
15017 registers. Avoid packing ops if nothing changes. White space fixes.
15019 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
15021 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15022 -fdump-ada-spec is passed but not if -fsyntax-only is.
15024 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
15027 * lra-lives.c (process_bb_lives): Check insn copying the same
15028 reload pseudo and don't create a copy for it.
15030 2015-06-22 Tom de Vries <tom@codesourcery.com>
15032 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15035 2015-06-22 Tom de Vries <tom@codesourcery.com>
15037 * builtins.def (DEF_GOMP_BUILTIN): Test
15038 'flag_tree_parallelize_loops > 1' instead of
15039 'flag_tree_parallelize_loops'. Test flag_cilkplus.
15041 2015-06-22 Tom de Vries <tom@codesourcery.com>
15043 * dominance.c (calculate_dominance_info): Verify dominators if
15046 2015-06-22 Marek Polacek <polacek@redhat.com>
15048 * match.pd ((x ^ y) ^ (x | y) -> x & y,
15049 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15050 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15051 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15053 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
15056 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15057 cost of embedded comparison.
15059 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15062 * config/rs6000/predicates.md (altivec_register_operand): Permit
15063 virtual stack registers.
15064 (vsx_register_operand): Likewise.
15065 (vfloat_operand): Likewise.
15066 (vint_operand): Likewise.
15067 (vlogical_operand): Likewise.
15069 2015-06-22 Richard Biener <rguenther@suse.de>
15071 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15072 and single_scalar_iteration_cost members.
15073 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15074 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15075 (vect_get_single_scalar_iteration_cost): Remove.
15076 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15077 Use LOOP_VINFO_SCALAR_ITERATION_COST.
15078 * tree-vect-loop.c (destroy_loop_vec_info): Free
15080 (vect_get_single_scalar_iteration_cost): Compute result into
15081 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15082 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
15083 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15084 (vect_estimate_min_profitable_iters): Use them.
15086 2015-06-22 Christian Bruel <christian.bruel@st.com>
15089 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15090 (TARGET_INSERT_ATTRIBUTES): Define.
15091 (thumb_flipper): New var.
15092 * config/arm/arm.opt (-mflip-thumb): New switch.
15094 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15095 Martin Liska <mliska@suse.cz>
15098 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15099 construction of arg_types.
15100 (sem_function::sem_function): Likewise.
15101 (sem_function::~sem_function): Remove destruction of arg_types.
15102 (sem_function::compatible_parm_types_p): New function.
15103 (sem_function::equals_wpa): Reorg matching of return values
15104 and parameter types.
15105 (sem_function::equals_private): Reorg mathcing of argument types.
15106 (sem_function::parse_tree_args): Remove.
15107 * ipa-icf.h (init_wpa): Do not call it.
15108 (parse_tree_args): Remove.
15109 (compatible_parm_types_p): Declare.
15110 (result_type): Remove.
15111 (arg_types): Remove.
15113 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
15116 * ipa-polymorphic-call.c
15117 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15118 initializing alias oracle; fix formating; set base_alias_set if it
15121 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
15123 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15124 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15125 (find_inc): Likewise.
15126 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15128 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15129 * df-scan.c (df_swap_refs): Remove.
15130 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15131 * dominance.c (link_roots): Use std::swap instead of manually swapping.
15132 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15133 * fold-const.c (fold_relational_const): Likewise.
15134 * genattrtab.c (simplify_test_exp): Likewise.
15135 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15136 gimple_simplify): Likewise.
15137 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15138 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15139 * ipa-devirt.c (add_type_duplicate): Likewise.
15140 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15141 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15142 * lra.c (lra_create_copy): Likewise.
15143 * lto-streamer-out.c (DFS::DFS): Likewise.
15144 * modulo-sched.c (get_sched_window): Likewise.
15145 * omega.c (omega_pretty_print_problem): Likewise.
15146 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15147 * reload1.c (reloads_unique_chain_p): Likewise.
15148 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15149 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15151 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15153 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15154 predicate_mem_writes): Likewise.
15155 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15156 * tree-predcom.c (combine_chains): Likewise.
15157 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15158 refs_may_alias_p_1): Likewise.
15159 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15160 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15161 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15162 number_of_iterations_cond): Likewise.
15163 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15164 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15165 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15166 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15167 * tree-vrp.c (extract_range_from_binary_expr_1,
15168 extract_range_from_unary_expr_1): Likewise.
15170 2015-06-20 Marek Polacek <polacek@redhat.com>
15172 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15174 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
15177 * config/sh/sh.c (prepare_move_operands): Replace subreg
15178 index term with R0 for base and index addressing.
15180 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
15182 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15184 (movsf_aarch64): Change condition from register_operand to
15185 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
15186 load1. Change type for alternative 7 to store1.
15187 (movdf_aarch64): Likewise.
15189 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
15191 * config/vax/vax.md: Adjust sign/zero extend patterns to
15192 handle SUBREGs in operands[1].
15194 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15196 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15197 of manually swapping.
15198 (expand_vec_perm_interleave2): Likewise.
15200 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
15202 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15203 reuse bounds created for abnormal ssa names.
15205 2015-06-19 Jakub Jelinek <jakub@redhat.com>
15207 * config/nvptx/nvptx.md (allocate_stack): Rename to...
15208 (allocate_stack_<mode>): ... this, and add :P on both
15209 match_operand and unspec.
15210 (allocate_stack): New expander.
15212 2015-06-19 Christian Bruel <christian.bruel@st.com>
15216 * config/arm/arm.c (arm_set_current_function): Handle
15217 explicit default options.
15219 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15221 * config/i386/i386.md (*movsicc_noc_zext): New insn.
15222 (zero-extended cmove with mem peephole2): New pattern.
15223 (cmove with mem peephole2): Merge patterns.
15225 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15227 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
15229 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
15231 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
15232 * config/mips/mips.md (*madd4<mode>): Ditto.
15233 (*nmadd3<mode>) Ditto.
15234 (*nmadd4<mode>_fastmath): Ditto.
15235 (*nmadd3<mode>_fastmath): Ditto.
15236 (*nmsub4<mode>): Ditto.
15237 (*nmsub3<mode>): Ditto.
15238 (*nmsub4<mode>_fastmath): Ditto.
15239 (*nmsub3<mode>_fastmath): Ditto.
15241 2015-06-18 Michael Matz <matz@suse.de>
15243 PR middle-end/66253
15244 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
15245 grouped strided stores.
15246 (vectorizable_load): Don't use the DR from first_stmt in
15247 the non-SLP grouped strided case.
15249 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15252 * function.c (assign_bounds): Add arguments assign_regs,
15253 assign_special, assign_bt.
15254 (assign_parms): For vararg functions handle bounds in BT
15255 and special slots after incoming vararg bounds.
15257 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15259 PR middle-end/66568
15260 * cfgexpand.c (expand_return): Handle missing bounds.
15261 (expand_gimple_stmt_1): Likewise.
15262 * tree-chkp.c (chkp_expand_zero_bounds): New.
15263 * tree-chkp.h (chkp_expand_zero_bounds): New.
15265 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15267 PR middle-end/66567
15268 * ipa-chkp.c (chkp_maybe_create_clone): Require
15269 functions to be instrumentable.
15270 * tree-chkp.c (chkp_replace_function_pointer): Use
15271 chkp_instrumentable_p instead of attribute check.
15273 2015-06-18 Richard Biener <rguenther@suse.de>
15275 PR tree-optimization/66510
15276 * tree-vect-stmts.c (vectorizable_load): Properly compute the
15277 number of vector loads for SLP permuted loads.
15278 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
15279 check the stride for loop vectorization.
15280 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
15281 vectorization factor.
15282 (vect_analyze_group_access): If the group size is not a power
15283 of two require a epilogue loop.
15284 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
15285 compute and optimizing and alias test pruning after final
15286 vectorization factor computation.
15287 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
15289 (vect_transform_slp_perm_load): Properly compute the original
15290 number of vector load stmts.
15292 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
15294 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
15295 "unlikely character , in @var" warning.
15297 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
15299 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
15300 (ix86_function_arg_advance): Ditto.
15301 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
15303 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15305 * function.h (struct rtl_data): Remove struct and accessor macros.
15306 * emit-rtl.h (struct rtl_data): Relocate to here.
15307 * Makefile.in (GTFILES): Add emit-rtl.h.
15308 * df-core.c: Include emit-rtl.h.
15309 * genattrtab.c: Likewise.
15310 * genconditions.c: Likewise.
15311 * genpreds.c: Likewise.
15312 * genrecog.c: Likewise.
15313 * regcprop.c: Likewise.
15314 * resource.c: Likewise.
15315 * sched-rgn.c: Likewise.
15316 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15317 * config/i386/winnt.c: Likewise.
15319 2015-06-17 Jakub Jelinek <jakub@redhat.com>
15321 PR middle-end/66429
15322 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
15323 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
15324 and has_force_vectorize_loops flags from cfun into
15326 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
15327 if simduid is non-NULL.
15328 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
15329 * passes.def (pass_simduid_cleanup): Add new pass after loop
15331 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
15332 indirection from htab argument's type.
15333 (shrink_simd_arrays): New function.
15334 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
15335 Don't call adjust_simduid_builtins if there are no loops.
15336 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
15337 (pass_simduid_cleanup::execute): New method.
15338 (make_pass_simduid_cleanup): New function.
15340 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
15342 * tree-core.h (tree_target_option): Make opts field a pointer to a
15343 cl_target_option instead of an instance of the struct.
15344 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
15346 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
15347 TARGET_OPTION_NODE.
15348 (copy_node_stat): Allocate and copy struct cl_target_option.
15350 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15352 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
15353 Remove conditional exposure of prototypes.
15354 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
15355 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
15356 definitions in tree.h with functions.
15357 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
15359 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
15361 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
15363 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
15364 (*cmp<mode>_signed): ... this.
15365 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
15366 (*cmp<mode>_unsigned): ... this. Remove %b.
15368 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
15370 * coretypes.h: Include input.h and as-a.h.
15371 * rtl.h: Include input.h and as-a.h for generator files.
15372 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
15373 * vec.c: Don't include diagnostic-core.h.
15374 * alias.c: Do not include input.h, line-map.h or is-a.h.
15375 * asan.c: Likewise.
15376 * attribs.c: Likewise.
15377 * auto-inc-dec.c: Likewise.
15378 * auto-profile.c: Likewise.
15379 * bb-reorder.c: Likewise.
15380 * bt-load.c: Likewise.
15381 * builtins.c: Likewise.
15382 * caller-save.c: Likewise.
15383 * calls.c: Likewise.
15384 * ccmp.c: Likewise.
15386 * cfganal.c: Likewise.
15387 * cfgbuild.c: Likewise.
15388 * cfgcleanup.c: Likewise.
15389 * cfgexpand.c: Likewise.
15390 * cfghooks.c: Likewise.
15391 * cfgloop.c: Likewise.
15392 * cfgloop.h: Likewise.
15393 * cfgloopanal.c: Likewise.
15394 * cfgloopmanip.c: Likewise.
15395 * cfgrtl.c: Likewise.
15396 * cgraph.c: Likewise.
15397 * cgraphbuild.c: Likewise.
15398 * cgraphclones.c: Likewise.
15399 * cgraphunit.c: Likewise.
15400 * cilk-common.c: Likewise.
15401 * combine-stack-adj.c: Likewise.
15402 * combine.c: Likewise.
15403 * compare-elim.c: Likewise.
15404 * convert.c: Likewise.
15405 * coverage.c: Likewise.
15406 * cppbuiltin.c: Likewise.
15407 * cprop.c: Likewise.
15409 * cselib.c: Likewise.
15410 * data-streamer-in.c: Likewise.
15411 * data-streamer-out.c: Likewise.
15412 * data-streamer.c: Likewise.
15413 * dbxout.c: Likewise.
15416 * debug.c: Likewise.
15417 * df-core.c: Likewise.
15418 * df-problems.c: Likewise.
15419 * df-scan.c: Likewise.
15422 * diagnostic-core.h: Likewise.
15423 * diagnostic.c: Likewise.
15424 * dojump.c: Likewise.
15425 * dominance.c: Likewise.
15426 * domwalk.c: Likewise.
15427 * double-int.c: Likewise.
15429 * dumpfile.c: Likewise.
15430 * dumpfile.h: Likewise.
15431 * dwarf2asm.c: Likewise.
15432 * dwarf2cfi.c: Likewise.
15433 * dwarf2out.c: Likewise.
15434 * emit-rtl.c: Likewise.
15435 * et-forest.c: Likewise.
15436 * except.c: Likewise.
15437 * explow.c: Likewise.
15438 * expmed.c: Likewise.
15439 * expr.c: Likewise.
15440 * final.c: Likewise.
15441 * fixed-value.c: Likewise.
15442 * fold-const.c: Likewise.
15443 * function.c: Likewise.
15444 * fwprop.c: Likewise.
15445 * gcc-plugin.h: Likewise.
15446 * gcse.c: Likewise.
15447 * generic-match-head.c: Likewise.
15448 * ggc-page.c: Likewise.
15449 * gimple-builder.c: Likewise.
15450 * gimple-expr.c: Likewise.
15451 * gimple-fold.c: Likewise.
15452 * gimple-iterator.c: Likewise.
15453 * gimple-low.c: Likewise.
15454 * gimple-match-head.c: Likewise.
15455 * gimple-pretty-print.c: Likewise.
15456 * gimple-ssa-isolate-paths.c: Likewise.
15457 * gimple-ssa-strength-reduction.c: Likewise.
15458 * gimple-streamer-in.c: Likewise.
15459 * gimple-streamer-out.c: Likewise.
15460 * gimple-streamer.h: Likewise.
15461 * gimple-walk.c: Likewise.
15462 * gimple.c: Likewise.
15463 * gimplify-me.c: Likewise.
15464 * gimplify.c: Likewise.
15465 * godump.c: Likewise.
15466 * graph.c: Likewise.
15467 * graphite-blocking.c: Likewise.
15468 * graphite-dependences.c: Likewise.
15469 * graphite-interchange.c: Likewise.
15470 * graphite-isl-ast-to-gimple.c: Likewise.
15471 * graphite-optimize-isl.c: Likewise.
15472 * graphite-poly.c: Likewise.
15473 * graphite-scop-detection.c: Likewise.
15474 * graphite-sese-to-poly.c: Likewise.
15475 * graphite.c: Likewise.
15476 * haifa-sched.c: Likewise.
15477 * hw-doloop.c: Likewise.
15478 * ifcvt.c: Likewise.
15479 * init-regs.c: Likewise.
15480 * input.c: Likewise.
15481 * internal-fn.c: Likewise.
15482 * ipa-chkp.c: Likewise.
15483 * ipa-comdats.c: Likewise.
15484 * ipa-cp.c: Likewise.
15485 * ipa-devirt.c: Likewise.
15486 * ipa-icf-gimple.c: Likewise.
15487 * ipa-icf.c: Likewise.
15488 * ipa-inline-analysis.c: Likewise.
15489 * ipa-inline-transform.c: Likewise.
15490 * ipa-inline.c: Likewise.
15491 * ipa-polymorphic-call.c: Likewise.
15492 * ipa-profile.c: Likewise.
15493 * ipa-prop.c: Likewise.
15494 * ipa-pure-const.c: Likewise.
15495 * ipa-ref.c: Likewise.
15496 * ipa-reference.c: Likewise.
15497 * ipa-split.c: Likewise.
15498 * ipa-utils.c: Likewise.
15499 * ipa-visibility.c: Likewise.
15501 * ira-build.c: Likewise.
15502 * ira-color.c: Likewise.
15503 * ira-conflicts.c: Likewise.
15504 * ira-costs.c: Likewise.
15505 * ira-emit.c: Likewise.
15506 * ira-lives.c: Likewise.
15508 * jump.c: Likewise.
15509 * langhooks.c: Likewise.
15511 * loop-doloop.c: Likewise.
15512 * loop-init.c: Likewise.
15513 * loop-invariant.c: Likewise.
15514 * loop-iv.c: Likewise.
15515 * loop-unroll.c: Likewise.
15516 * lower-subreg.c: Likewise.
15517 * lra-assigns.c: Likewise.
15518 * lra-coalesce.c: Likewise.
15519 * lra-constraints.c: Likewise.
15520 * lra-eliminations.c: Likewise.
15521 * lra-lives.c: Likewise.
15522 * lra-remat.c: Likewise.
15523 * lra-spills.c: Likewise.
15525 * lto-cgraph.c: Likewise.
15526 * lto-compress.c: Likewise.
15527 * lto-opts.c: Likewise.
15528 * lto-section-in.c: Likewise.
15529 * lto-section-out.c: Likewise.
15530 * lto-streamer-in.c: Likewise.
15531 * lto-streamer-out.c: Likewise.
15532 * lto-streamer.c: Likewise.
15534 * mode-switching.c: Likewise.
15535 * modulo-sched.c: Likewise.
15536 * omega.c: Likewise.
15537 * omp-low.c: Likewise.
15538 * optabs.c: Likewise.
15539 * opts-global.c: Likewise.
15540 * opts.h: Likewise.
15541 * passes.c: Likewise.
15542 * plugin.c: Likewise.
15543 * postreload-gcse.c: Likewise.
15544 * postreload.c: Likewise.
15545 * predict.c: Likewise.
15546 * pretty-print.h: Likewise.
15547 * print-rtl.c: Likewise.
15548 * print-tree.c: Likewise.
15549 * profile.c: Likewise.
15550 * real.c: Likewise.
15551 * realmpfr.c: Likewise.
15552 * recog.c: Likewise.
15554 * reg-stack.c: Likewise.
15555 * regcprop.c: Likewise.
15556 * reginfo.c: Likewise.
15557 * regrename.c: Likewise.
15558 * regstat.c: Likewise.
15559 * reload.c: Likewise.
15560 * reload1.c: Likewise.
15561 * reorg.c: Likewise.
15562 * resource.c: Likewise.
15563 * rtl-chkp.c: Likewise.
15564 * rtl-error.c: Likewise.
15565 * rtlanal.c: Likewise.
15566 * rtlhooks.c: Likewise.
15567 * sanopt.c: Likewise.
15568 * sched-deps.c: Likewise.
15569 * sched-ebb.c: Likewise.
15570 * sched-rgn.c: Likewise.
15571 * sched-vis.c: Likewise.
15572 * sdbout.c: Likewise.
15573 * sel-sched-dump.c: Likewise.
15574 * sel-sched-ir.c: Likewise.
15575 * sel-sched.c: Likewise.
15576 * sese.c: Likewise.
15577 * shrink-wrap.c: Likewise.
15578 * simplify-rtx.c: Likewise.
15579 * stack-ptr-mod.c: Likewise.
15580 * statistics.c: Likewise.
15581 * stmt.c: Likewise.
15582 * stor-layout.c: Likewise.
15583 * store-motion.c: Likewise.
15584 * streamer-hooks.c: Likewise.
15585 * stringpool.c: Likewise.
15586 * symtab.c: Likewise.
15587 * target-globals.c: Likewise.
15588 * targhooks.c: Likewise.
15589 * toplev.c: Likewise.
15590 * tracer.c: Likewise.
15591 * trans-mem.c: Likewise.
15592 * tree-affine.c: Likewise.
15593 * tree-browser.c: Likewise.
15594 * tree-call-cdce.c: Likewise.
15595 * tree-cfg.c: Likewise.
15596 * tree-cfgcleanup.c: Likewise.
15597 * tree-chkp-opt.c: Likewise.
15598 * tree-chkp.c: Likewise.
15599 * tree-chrec.c: Likewise.
15600 * tree-complex.c: Likewise.
15601 * tree-data-ref.c: Likewise.
15602 * tree-dfa.c: Likewise.
15603 * tree-diagnostic.c: Likewise.
15604 * tree-dump.c: Likewise.
15605 * tree-eh.c: Likewise.
15606 * tree-emutls.c: Likewise.
15607 * tree-if-conv.c: Likewise.
15608 * tree-inline.c: Likewise.
15609 * tree-into-ssa.c: Likewise.
15610 * tree-iterator.c: Likewise.
15611 * tree-loop-distribution.c: Likewise.
15612 * tree-nested.c: Likewise.
15613 * tree-nrv.c: Likewise.
15614 * tree-object-size.c: Likewise.
15615 * tree-outof-ssa.c: Likewise.
15616 * tree-parloops.c: Likewise.
15617 * tree-phinodes.c: Likewise.
15618 * tree-predcom.c: Likewise.
15619 * tree-pretty-print.c: Likewise.
15620 * tree-profile.c: Likewise.
15621 * tree-scalar-evolution.c: Likewise.
15622 * tree-sra.c: Likewise.
15623 * tree-ssa-address.c: Likewise.
15624 * tree-ssa-alias.c: Likewise.
15625 * tree-ssa-ccp.c: Likewise.
15626 * tree-ssa-coalesce.c: Likewise.
15627 * tree-ssa-copy.c: Likewise.
15628 * tree-ssa-copyrename.c: Likewise.
15629 * tree-ssa-dce.c: Likewise.
15630 * tree-ssa-dom.c: Likewise.
15631 * tree-ssa-dse.c: Likewise.
15632 * tree-ssa-forwprop.c: Likewise.
15633 * tree-ssa-ifcombine.c: Likewise.
15634 * tree-ssa-live.c: Likewise.
15635 * tree-ssa-loop-ch.c: Likewise.
15636 * tree-ssa-loop-im.c: Likewise.
15637 * tree-ssa-loop-ivcanon.c: Likewise.
15638 * tree-ssa-loop-ivopts.c: Likewise.
15639 * tree-ssa-loop-manip.c: Likewise.
15640 * tree-ssa-loop-niter.c: Likewise.
15641 * tree-ssa-loop-prefetch.c: Likewise.
15642 * tree-ssa-loop-unswitch.c: Likewise.
15643 * tree-ssa-loop.c: Likewise.
15644 * tree-ssa-math-opts.c: Likewise.
15645 * tree-ssa-operands.c: Likewise.
15646 * tree-ssa-phiopt.c: Likewise.
15647 * tree-ssa-phiprop.c: Likewise.
15648 * tree-ssa-pre.c: Likewise.
15649 * tree-ssa-propagate.c: Likewise.
15650 * tree-ssa-reassoc.c: Likewise.
15651 * tree-ssa-sccvn.c: Likewise.
15652 * tree-ssa-scopedtables.c: Likewise.
15653 * tree-ssa-sink.c: Likewise.
15654 * tree-ssa-strlen.c: Likewise.
15655 * tree-ssa-structalias.c: Likewise.
15656 * tree-ssa-tail-merge.c: Likewise.
15657 * tree-ssa-ter.c: Likewise.
15658 * tree-ssa-threadedge.c: Likewise.
15659 * tree-ssa-threadupdate.c: Likewise.
15660 * tree-ssa-uncprop.c: Likewise.
15661 * tree-ssa-uninit.c: Likewise.
15662 * tree-ssa.c: Likewise.
15663 * tree-ssanames.c: Likewise.
15664 * tree-stdarg.c: Likewise.
15665 * tree-streamer-in.c: Likewise.
15666 * tree-streamer-out.c: Likewise.
15667 * tree-streamer.c: Likewise.
15668 * tree-switch-conversion.c: Likewise.
15669 * tree-tailcall.c: Likewise.
15670 * tree-vect-data-refs.c: Likewise.
15671 * tree-vect-generic.c: Likewise.
15672 * tree-vect-loop-manip.c: Likewise.
15673 * tree-vect-loop.c: Likewise.
15674 * tree-vect-patterns.c: Likewise.
15675 * tree-vect-slp.c: Likewise.
15676 * tree-vect-stmts.c: Likewise.
15677 * tree-vectorizer.c: Likewise.
15678 * tree-vrp.c: Likewise.
15679 * tree.c: Likewise.
15680 * tsan.c: Likewise.
15681 * ubsan.c: Likewise.
15682 * valtrack.c: Likewise.
15683 * value-prof.c: Likewise.
15684 * var-tracking.c: Likewise.
15685 * varasm.c: Likewise.
15686 * varpool.c: Likewise.
15687 * vmsdbgout.c: Likewise.
15688 * vtable-verify.c: Likewise.
15690 * wide-int.cc: Likewise.
15691 * xcoffout.c: Likewise.
15692 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
15693 * common/common-targhooks.c: Likewise.
15694 * config/aarch64/aarch64-builtins.c: Likewise.
15695 * config/aarch64/aarch64.c: Likewise.
15696 * config/alpha/alpha.c: Likewise.
15697 * config/arc/arc.c: Likewise.
15698 * config/arm/aarch-common.c: Likewise.
15699 * config/arm/arm-builtins.c: Likewise.
15700 * config/arm/arm-c.c: Likewise.
15701 * config/arm/arm.c: Likewise.
15702 * config/avr/avr-c.c: Likewise.
15703 * config/avr/avr-log.c: Likewise.
15704 * config/avr/avr.c: Likewise.
15705 * config/bfin/bfin.c: Likewise.
15706 * config/c6x/c6x.c: Likewise.
15707 * config/cr16/cr16.c: Likewise.
15708 * config/cris/cris.c: Likewise.
15709 * config/darwin-c.c: Likewise.
15710 * config/darwin.c: Likewise.
15711 * config/default-c.c: Likewise.
15712 * config/epiphany/epiphany.c: Likewise.
15713 * config/epiphany/mode-switch-use.c: Likewise.
15714 * config/epiphany/resolve-sw-modes.c: Likewise.
15715 * config/fr30/fr30.c: Likewise.
15716 * config/frv/frv.c: Likewise.
15717 * config/ft32/ft32.c: Likewise.
15718 * config/glibc-c.c: Likewise.
15719 * config/h8300/h8300.c: Likewise.
15720 * config/i386/i386-c.c: Likewise.
15721 * config/i386/i386.c: Likewise.
15722 * config/i386/msformat-c.c: Likewise.
15723 * config/i386/winnt-cxx.c: Likewise.
15724 * config/i386/winnt-stubs.c: Likewise.
15725 * config/i386/winnt.c: Likewise.
15726 * config/ia64/ia64-c.c: Likewise.
15727 * config/ia64/ia64.c: Likewise.
15728 * config/iq2000/iq2000.c: Likewise.
15729 * config/lm32/lm32.c: Likewise.
15730 * config/m32c/m32c-pragma.c: Likewise.
15731 * config/m32c/m32c.c: Likewise.
15732 * config/m32r/m32r.c: Likewise.
15733 * config/m68k/m68k.c: Likewise.
15734 * config/mcore/mcore.c: Likewise.
15735 * config/mep/mep-pragma.c: Likewise.
15736 * config/mep/mep.c: Likewise.
15737 * config/microblaze/microblaze-c.c: Likewise.
15738 * config/microblaze/microblaze.c: Likewise.
15739 * config/mips/mips.c: Likewise.
15740 * config/mmix/mmix.c: Likewise.
15741 * config/mn10300/mn10300.c: Likewise.
15742 * config/moxie/moxie.c: Likewise.
15743 * config/msp430/msp430-c.c: Likewise.
15744 * config/msp430/msp430.c: Likewise.
15745 * config/nds32/nds32-cost.c: Likewise.
15746 * config/nds32/nds32-fp-as-gp.c: Likewise.
15747 * config/nds32/nds32-intrinsic.c: Likewise.
15748 * config/nds32/nds32-isr.c: Likewise.
15749 * config/nds32/nds32-md-auxiliary.c: Likewise.
15750 * config/nds32/nds32-memory-manipulation.c: Likewise.
15751 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15752 * config/nds32/nds32-predicates.c: Likewise.
15753 * config/nds32/nds32.c: Likewise.
15754 * config/nios2/nios2.c: Likewise.
15755 * config/nvptx/nvptx.c: Likewise.
15756 * config/pa/pa.c: Likewise.
15757 * config/pdp11/pdp11.c: Likewise.
15758 * config/rl78/rl78-c.c: Likewise.
15759 * config/rl78/rl78.c: Likewise.
15760 * config/rs6000/rs6000-c.c: Likewise.
15761 * config/rs6000/rs6000.c: Likewise.
15762 * config/rx/rx.c: Likewise.
15763 * config/s390/s390-c.c: Likewise.
15764 * config/s390/s390.c: Likewise.
15765 * config/sh/sh-c.c: Likewise.
15766 * config/sh/sh-mem.cc: Likewise.
15767 * config/sh/sh.c: Likewise.
15768 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15769 * config/sh/sh_treg_combine.cc: Likewise.
15770 * config/sol2-c.c: Likewise.
15771 * config/sol2-cxx.c: Likewise.
15772 * config/sol2-stubs.c: Likewise.
15773 * config/sol2.c: Likewise.
15774 * config/sparc/sparc-c.c: Likewise.
15775 * config/sparc/sparc.c: Likewise.
15776 * config/spu/spu-c.c: Likewise.
15777 * config/spu/spu.c: Likewise.
15778 * config/stormy16/stormy16.c: Likewise.
15779 * config/tilegx/mul-tables.c: Likewise.
15780 * config/tilegx/tilegx-c.c: Likewise.
15781 * config/tilegx/tilegx.c: Likewise.
15782 * config/tilepro/mul-tables.c: Likewise.
15783 * config/tilepro/tilepro-c.c: Likewise.
15784 * config/tilepro/tilepro.c: Likewise.
15785 * config/v850/v850-c.c: Likewise.
15786 * config/v850/v850.c: Likewise.
15787 * config/vax/vax.c: Likewise.
15788 * config/visium/visium.c: Likewise.
15789 * config/vms/vms-c.c: Likewise.
15790 * config/vms/vms.c: Likewise.
15791 * config/vxworks.c: Likewise.
15792 * config/winnt-c.c: Likewise.
15793 * config/xtensa/xtensa.c: Likewise.
15795 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
15797 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
15799 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
15801 2015-06-17 Richard Biener <rguenther@suse.de>
15803 PR tree-optimization/66251
15804 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
15805 stmts for SLP strided stores.
15808 2015-05-22 Richard Biener <rguenther@suse.de>
15810 PR tree-optimization/66251
15811 * tree-vect-stmts.c (vectorizable_conversion): Properly
15812 set STMT_VINFO_VEC_STMT even for the SLP case.
15814 2015-05-26 Michael Matz <matz@suse.de>
15816 PR middle-end/66251
15817 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
15818 STMT_VINFO_VEC_STMT, also with SLP.
15820 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
15823 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
15824 (*avx_addsubv4df3_1s): Ditto.
15825 (*sse3_addsubv2df3_1): Ditto.
15826 (*sse3_addsubv2df3_1s): Ditto.
15827 (*avx_addsubv8sf3_1): Ditto.
15828 (*avx_addsubv8sf3_1s): Ditto.
15829 (*sse3_addsubv4sf3_1): Ditto.
15830 (*sse3_addsubv4sf3_1s): Ditto.
15832 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
15834 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
15835 (SYSROOT_SUFFIX_SPEC): Update.
15836 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
15837 (STARTFILE_PREFIX_SPEC): Update.
15838 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
15839 (MULTILIB_REQUIRED): New.
15840 (MULTILIB_OSDIRNAMES): New.
15841 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
15842 (MULTILIB_REQUIRED): New.
15843 (MULTILIB_OSDIRNAMES): New.
15845 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
15847 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
15848 * config/aarch64/aarch64-options-extensions.def: Update "fP",
15849 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
15850 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
15851 (AARCH64_FL_PAN): New.
15852 (AARCH64_FL_LOR): New.
15853 (AARCH64_FL_RDMA): New.
15854 (AARCH64_FL_FOR_ARCH8_1): New.
15855 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
15856 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
15858 2015-06-16 Martin Liska <mliska@suse.cz>
15860 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
15861 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
15864 2015-06-16 Richard Biener <rguenther@suse.de>
15866 * tree-vect-stmts.c (vectorizable_store): Adjust.
15867 (vectorizable_load): Likewise.
15868 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15870 (vect_create_data_ref_ptr): Likewise.
15871 (bump_vector_ptr): Adjust.
15873 2015-06-16 Richard Biener <rguenther@suse.de>
15875 * tree-vect-stmts.c (vectorizable_load): Properly start loads
15876 with the first element if this is grouped loads.
15878 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
15880 * config/arm/arm-protos.h (struct tune_params): Rename
15881 log_op_non_sc to log_op_non_short_circuit, and rename enum
15882 values to expand SC to SHORT_CIRCUIT.
15883 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
15884 to LOG_OP_NON_SHORT_CIRCUIT.
15885 (arm_fastmul_tune):Likewise
15886 (arm_strongarm_tune): Likewise.
15887 (arm_xscale_tune): Likewise.
15888 (arm_9e_tune): Likewise.
15889 (arm_marvell_pj4_tune): Likewise.
15890 (arm_v6t2_tune): Likewise.
15891 (arm_cortex_tune): Likewise.
15892 (arm_cortex_a8_tune): Likewise.
15893 (arm_cortex_a7_tune): Likewise.
15894 (arm_cortex_a15_tune): Likewise.
15895 (arm_cortex_a53_tune): Likewise.
15896 (arm_cortex_a57_tune): Likewise.
15897 (arm_xgene1_tune): Likewise.
15898 (arm_cortex_a5_tune): Likewise.
15899 (arm_cortex_a9_tune): Likewise.
15900 (arm_cortex_a12_tune): Likewise.
15901 (arm_v7m_tune): Likewise.
15902 (arm_cortex_m7_tune): Likewise.
15903 (arm_v6m_tune): Likewise.
15904 (arm_fa726te_tune): Likewise.
15906 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
15908 * altivec.md: Delete UNSPEC_VMLADDUHM.
15909 (mulv4si3_p8): New pattern.
15910 (mulv4si3): Use it for POWER8.
15911 (mulv8hi3): Use vmladduhm with zero addend.
15912 (altivec_vmladduhm): Descriptive RTL.
15914 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
15916 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
15917 to use neon_move instead of mov_imm.
15918 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
15919 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
15921 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
15922 aarch64_float_const_zero_rtx_p check before TFmode check.
15923 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
15925 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
15926 code and attributes to match. Change condition from register_operand
15927 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
15928 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
15931 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
15934 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
15935 there is no parent.
15937 2015-06-14 Shiva Chen <shiva0217@gmail.com>
15939 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
15940 HOST_WIDE_INT parameter.
15942 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
15945 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
15946 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
15948 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
15950 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
15952 * rtl.h (classify_insn): Declare.
15953 * emit-rtl.c (classify_insn): Move to...
15954 * rtl.c: ...here and add generator support.
15955 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
15956 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
15957 * genemit.c (gen_emit_seq): New function.
15958 (gen_expand, gen_split): Use it.
15960 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
15962 * tree.c (make_vector_stat): Fix comment to state that the
15963 function returns a VECTOR_CST.
15965 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
15967 * gensupport.h (add_implicit_parallel): Declare.
15968 * genrecog.c (add_implicit_parallel): Move to...
15969 * gensupport.c (add_implicit_parallel): ...here.
15970 (process_one_cond_exec): Use it.
15971 * genemit.c (gen_insn): Likewise.
15973 2015-06-13 Iain Sandoe <iain@codesourcery.com>
15976 * passes.c (rest_of_decl_compilation): Do not register globals for
15977 early debug if they are declared in built-ins.
15979 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
15981 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
15983 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15985 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
15987 (noce_try_cmove_arith): Likewise.
15988 (noce_get_alt_condition): Likewise.
15990 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15992 * common/config/i386/i386-common.c
15993 (OPTION_MASK_ISA_MWAITX_SET): New.
15994 (ix86_handle_option): Handle mwaitx.
15995 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
15996 (x86_64-*-*): Likewise.
15997 * config/i386/mwaitxintrin.h: New header.
15998 * config/i386/cpuid.h (bit_MWAITX): Define.
15999 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16001 * config/i386/i386.opt (mwaitx): New.
16002 * config/i386/i386-builtin-types.def
16003 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16004 * config/i386/i386-c.c: Define __MWAITX__ if needed.
16005 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16007 (ix86_option_override_internal): Handle new option.
16008 (processor_alias_table): Added PTA_MWAITX.
16009 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16010 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16011 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16012 IX86_BUILTIN_MONITORX built-ins.
16013 * config/i386/i386.h (TARGET_MWAITX): New.
16014 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16016 (mwaitx): New pattern.
16017 (monitorx_<mode>): New pattern.
16018 * config/i386/x86intrin.h: Include mwaitxintrin.h.
16019 * doc/extend.texi: Document monitorx and mwaitx builtins.
16020 * doc/invoke.texi: Document -mmwaitx option.
16022 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
16024 * emit-rtl.c (need_atomic_barrier_p): Mask model with
16025 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
16027 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16029 * dbxout.c (xcoff_debug_hooks): Provide a function for
16030 register_main_translation_unit hook.
16032 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
16034 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16035 variants cases from switch.
16036 (rs6000_post_atomic_barrier): Same.
16037 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16038 (rs6000_expand_atomic_exchange): Same.
16039 (rs6000_expand_atomic_op): Same.
16040 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16041 SYNC variants cases from switch.
16042 (atomic_load): Same.
16043 (atomic_store): Same.
16045 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
16047 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16048 CONST_INT for goto.
16050 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
16053 * dwarf2out.c (check_die): Check for common duplicate attributes.
16054 (add_location_or_const_value_attribute): Do not add duplicate
16056 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16058 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16059 (gen_type_die_with_usage): Call check_die.
16060 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16062 2015-06-11 Jason Merrill <jason@redhat.com>
16064 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16067 2015-06-11 Marek Polacek <polacek@redhat.com>
16069 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16071 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
16074 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16075 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16076 (*addx_extend_sp32): Fix pasto.
16077 (*subx_extend): Rename into...
16078 (*subx_extend_sp32): ...this.
16079 (*adddi3_extend_sp32): Add earlyclobber.
16080 (*subdi3_insn_sp32): Likewise.
16081 (*subdi3_extend_sp32): Likewise.
16082 (*and_not_di_sp32): Likewise.
16083 (*or_not_di_sp32): Likewise.
16084 (*xor_not_di_sp32): Likewise.
16085 (*negdi2_sp32): Likewise.
16086 (*one_cmpldi2_sp32): Likewise.
16088 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
16090 * debug.h (struct gcc_debug_hooks): Add a
16091 register_main_translation_unit hook.
16092 * debug.c (do_nothing_debug_hooks): Provide a function for this
16094 * dbxout.c (dbx_debug_hooks): Likewise.
16095 * sdbout.c (sdb_debug_hooks): Likewise.
16096 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16097 * dwarf2out.c (main_translation_unit): New global variable.
16098 (dwarf2out_register_main_translation_unit): New function
16099 implementing the new hook.
16100 (dwarf2_debug_hooks): Assign
16101 dwarf2out_register_main_translation_unit to this new hook.
16102 (dwarf2out_init): Associate any main translation unit to
16105 2015-06-11 Marek Polacek <polacek@redhat.com>
16107 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16109 2015-06-11 Marek Polacek <polacek@redhat.com>
16111 * match.pd: Use single_use throughout.
16113 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16115 * config/arm/arm.c (arm_option_params_internal): When optimising
16116 for speed set max_insns_skipped when arm_restrict_it.
16118 2015-06-11 Christian Bruel <christian.bruel@st.com>
16121 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16123 (arm_cpu_builtins): New function.
16124 (arm_pragma_target_parse): Call arm_cpu_builtins.
16125 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16126 (arm_register_target_pragmas): Likewise.
16127 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16128 Call arm_register_target_pragmas.
16129 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16130 (arm_pragma_target_parse): Likewise.
16132 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
16134 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16135 of the second operand.
16137 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
16140 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16141 to prepare mask operand for AVX512 modes.
16143 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16146 * doc/md.texi (Machine Constraints): Document that on the PowerPC
16147 if you use a constraint that targets a VSX register, you must use
16148 %x<n> in the template.
16150 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
16152 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16153 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16154 (define_insn "trap"): New definition.
16156 2015-06-10 Richard Biener <rguenther@suse.de>
16158 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16160 (vect_supported_load_permutation_p): ... here. Handle
16161 supportable permutations in reductions.
16162 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16163 for vectorizing strided group loads.
16165 2015-06-10 Jakub Jelinek <jakub@redhat.com>
16168 * config/i386/i386.c (ix86_split_long_move): For collisions
16169 involving direct tls segment refs, move the UNSPEC_TP possibly
16170 wrapped in ZERO_EXTEND out of the address for lea, to each of
16173 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16175 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16176 dmb sy. Adjust tabs.
16178 2015-06-10 Tom de Vries <tom@codesourcery.com>
16180 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16182 2015-06-10 Martin Liska <mliska@suse.cz>
16185 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16186 all enum values in mem_alloc_origin.
16187 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16189 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16190 * bitmap.c (bitmap_register): Likewise.
16191 (dump_bitmap_statistics): Likewise.
16192 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16193 (ggc_record_overhead): Likewise.
16194 * hash-map.h: Likewise.
16195 * hash-set.h: Likewise.
16196 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16197 * hash-table.h: Likewise.
16198 * vec.c (vec_prefix::register_overhead): Likewise.
16199 (vec_prefix::release_overhead): Likewise.
16200 (dump_vec_loc_statistics): Likewise.
16202 2015-06-09 Christian Bruel <christian.bruel@st.com>
16205 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16206 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16207 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16208 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16209 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16210 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16211 (arm_valid_target_attribute_p): Likewise.
16212 (arm_set_current_function, arm_can_inline_p): Likewise.
16213 (arm_valid_target_attribute_rec): Likewise.
16214 (arm_previous_fndecl): New variable.
16215 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16216 (TARGET_CAN_INLINE_P): Define.
16217 (arm_asm_trampoline_template): Emit mode.
16218 (arm_file_start): Don't set unified syntax.
16219 (arm_declare_function_name): Set unified syntax and mode.
16220 (arm_option_override): Init target_option_default_node.
16221 and target_option_current_node.
16222 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16223 (*call_symbol): Likewise.
16224 * doc/extend.texi: Document ARM/Thumb target attribute.
16225 * doc/invoke.texi: Likewise.
16227 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16230 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16231 PR rtl-optimization/64164
16232 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16233 * tree-ssa-copyrename.c: Removed.
16234 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16235 -ftree-coalesce-vars.
16236 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16237 * common.opt (ftree-copyrename): Ignore.
16238 (ftree-coalesce-inlined-vars): Likewise.
16239 * doc/invoke.texi: Remove the ignored options above.
16240 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16241 * tree-ssa-coalesce.h: ... here.
16242 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16243 headers required by it.
16244 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16245 across variables when flag_tree_coalesce_vars. Check register
16246 use and promoted modes to allow coalescing. Moved to
16247 tree-ssa-coalesce.c.
16248 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16249 with its member functions to tree-ssa-coalesce.c.
16250 (var_map_base_init): Likewise. Renamed to
16251 compute_samebase_partition_bases.
16252 (partition_view_normal): Drop want_bases parameter.
16253 (partition_view_bitmap): Likewise.
16254 * tree-ssa-live.h: Adjust declarations.
16255 * tree-ssa-coalesce.c: Include explow.h.
16256 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16257 default defs at the entry point.
16258 (dump_part_var_map): New.
16259 (compute_optimized_partition_bases): New, called by...
16260 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16261 of compute_samebase_partition_bases. Adjust.
16262 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16263 * cfgexpand.c (leader_merge): New.
16264 (get_rtl_for_parm_ssa_default_def): New.
16265 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16266 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16267 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16268 redundant MEM attr setting.
16269 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16271 (expand_one_stack_var): ... this. New wrapper to check and
16272 skip already expanded SSA partitions.
16273 (record_alignment_for_reg_var): New, factored out of...
16274 (expand_one_var): ... this.
16275 (expand_one_ssa_partition): New.
16276 (adjust_one_expanded_partition_var): New.
16277 (expand_one_register_var): Check and skip already expanded SSA
16279 (expand_used_vars): Don't create DECLs for anonymous SSA
16280 names. Expand all SSA partitions, then adjust all SSA names.
16281 (pass::execute): Replace the loops that set
16282 SA.partition_to_pseudo from partition leaders and cleared
16283 DECL_RTL for multi-location variables, and that which used to
16284 rename vars and set attrs, with one that clears DECL_RTL and
16285 checks that PARMs and RESULTs default_defs match DECL_RTL.
16286 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16287 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16288 * explow.c (promote_ssa_mode): New.
16289 * explow.h (promote_ssa_mode): Declare.
16290 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16291 * function.c: Include cfgexpand.h.
16292 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16293 (use_register_for_parm_decl): Wrapper for the above to
16294 special-case the result_ptr.
16295 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16296 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16297 multiple locations.
16298 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16299 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16300 (assign_parm_setup_block): Prefer SSA-assigned location.
16301 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16302 if stack_parm is NULL.
16303 (assign_parm_setup_stack): Prefer SSA-assigned location.
16304 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16305 rtl before testing for pointer bounds. Special-case result_ptr.
16306 (expand_function_start): Maybe reset DECL_RTL of result.
16307 Prefer SSA-assigned location for result and static chain.
16308 Factor out DECL_RESULT and SET_DECL_RTL.
16309 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16310 anonymous SSA names. Use promote_ssa_mode.
16311 (get_temp_reg): Likewise.
16312 (remove_ssa_form): Adjust.
16313 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16314 and get its reg_usage for reg invalidation.
16315 (compute_bb_dataflow): Pass it insn.
16316 (emit_notes_in_bb): Likewise.
16317 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16318 fail assert on conversion between unsigned types.
16320 2015-06-09 Tom de Vries <tom@codesourcery.com>
16322 PR tree-optimization/65460
16323 * omp-low.c (expand_omp_target): Set parallelized_function on
16324 cgraph_node for child_fn.
16326 2015-06-09 Tom de Vries <tom@codesourcery.com>
16328 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
16329 parallelized_function before add_new_function.
16331 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
16333 * gcc-plugin.h: Move decls to plugin.h and include it.
16334 * plugin.h: Relocate decls from gcc-plugin.h
16335 * ggc-page.c: Include required header files.
16336 * passes.c: Likewise.
16337 * cgraphunit.c: Likewise.
16339 2015-06-09 Tom de Vries <tom@codesourcery.com>
16341 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
16343 2015-06-09 Jason Merrill <jason@redhat.com>
16346 * toplev.c (check_global_declaration): Don't warn about a clone.
16348 2015-06-09 Marek Polacek <polacek@redhat.com>
16350 PR tree-optimization/66299
16351 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
16352 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
16355 2015-06-09 Richard Biener <rguenther@suse.de>
16357 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
16358 (vect_analyze_slp_instance): Instead do not falsely drop
16361 2015-06-09 Richard Biener <rguenther@suse.de>
16363 PR middle-end/66423
16364 * match.pd: Handle A % (unsigned)(1 << B).
16366 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
16368 * varasm.c (output_object_block_htab): Remove.
16369 (output_object_block_compare): New.
16370 (output_object_blocks): Sort named object_blocks before outputting
16373 2015-06-09 Richard Biener <rguenther@suse.de>
16375 PR tree-optimization/66419
16376 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
16377 consider GROUP_GAP when detecting a perfect subchain.
16379 2015-06-09 Nick Clifton <nickc@redhat.com>
16381 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
16382 place read only data in the .frodata section.
16384 2015-06-09 Shiva Chen <shiva0217@gmail.com>
16386 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
16387 (atomic_store<mode>): Likewise.
16389 2015-06-09 Richard Biener <rguenther@suse.de>
16391 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
16393 2015-06-09 Richard Biener <rguenther@suse.de>
16395 PR middle-end/66413
16396 * tree-inline.c (insert_init_debug_bind): Unshare value.
16398 2015-06-09 Richard Biener <rguenther@suse.de>
16400 PR tree-optimization/66396
16401 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
16402 Rename virtual operands.
16404 2015-06-09 Tom de Vries <tom@codesourcery.com>
16406 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
16407 always return false.
16409 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16411 PR rtl-optimization/64164
16412 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16413 * tree-ssa-copyrename.c: Removed.
16414 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16415 -ftree-coalesce-vars.
16416 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16417 * common.opt (ftree-copyrename): Ignore.
16418 (ftree-coalesce-inlined-vars): Likewise.
16419 * doc/invoke.texi: Remove the ignored options above.
16420 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16421 * tree-ssa-coalesce.h: ... here.
16422 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16423 headers required by it.
16424 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16425 across variables when flag_tree_coalesce_vars. Check register
16426 use and promoted modes to allow coalescing. Moved to
16427 tree-ssa-coalesce.c.
16428 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16429 with its member functions to tree-ssa-coalesce.c.
16430 (var_map_base_init): Likewise. Renamed to
16431 compute_samebase_partition_bases.
16432 (partition_view_normal): Drop want_bases parameter.
16433 (partition_view_bitmap): Likewise.
16434 * tree-ssa-live.h: Adjust declarations.
16435 * tree-ssa-coalesce.c: Include explow.h.
16436 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16437 default defs at the entry point.
16438 (dump_part_var_map): New.
16439 (compute_optimized_partition_bases): New, called by...
16440 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16441 of compute_samebase_partition_bases. Adjust.
16442 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16443 * cfgexpand.c (leader_merge): New.
16444 (get_rtl_for_parm_ssa_default_def): New.
16445 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16446 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16447 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16448 redundant MEM attr setting.
16449 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16451 (expand_one_stack_var): ... this. New wrapper to check and
16452 skip already expanded SSA partitions.
16453 (record_alignment_for_reg_var): New, factored out of...
16454 (expand_one_var): ... this.
16455 (expand_one_ssa_partition): New.
16456 (adjust_one_expanded_partition_var): New.
16457 (expand_one_register_var): Check and skip already expanded SSA
16459 (expand_used_vars): Don't create DECLs for anonymous SSA
16460 names. Expand all SSA partitions, then adjust all SSA names.
16461 (pass::execute): Replace the loops that set
16462 SA.partition_to_pseudo from partition leaders and cleared
16463 DECL_RTL for multi-location variables, and that which used to
16464 rename vars and set attrs, with one that clears DECL_RTL and
16465 checks that PARMs and RESULTs default_defs match DECL_RTL.
16466 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16467 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16468 * explow.c (promote_ssa_mode): New.
16469 * explow.h (promote_ssa_mode): Declare.
16470 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16471 * function.c: Include cfgexpand.h.
16472 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16473 (use_register_for_parm_decl): Wrapper for the above to
16474 special-case the result_ptr.
16475 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16476 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16477 multiple locations.
16478 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16479 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16480 (assign_parm_setup_block): Prefer SSA-assigned location.
16481 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16482 if stack_parm is NULL.
16483 (assign_parm_setup_stack): Prefer SSA-assigned location.
16484 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16485 rtl before testing for pointer bounds. Special-case result_ptr.
16486 (expand_function_start): Maybe reset DECL_RTL of result.
16487 Prefer SSA-assigned location for result and static chain.
16488 Factor out DECL_RESULT and SET_DECL_RTL.
16489 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16490 anonymous SSA names. Use promote_ssa_mode.
16491 (get_temp_reg): Likewise.
16492 (remove_ssa_form): Adjust.
16493 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16494 and get its reg_usage for reg invalidation.
16495 (compute_bb_dataflow): Pass it insn.
16496 (emit_notes_in_bb): Likewise.
16497 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
16498 fail assert on conversion between unsigned types.
16500 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
16503 * tree-inline.c (reset_debug_binding): New.
16504 (reset_debug_bindings): Likewise.
16505 (expand_call_inline): Call it.
16507 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16509 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
16512 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16514 * lto-streamer-out.c (lto_output_location): Stream
16515 reserved locations correctly.
16516 * lto-streamer-in.c (lto_output_location): Likewise.
16518 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
16520 * coretypes.h: Include hash-table.h and hash-set.h for host files.
16521 * ggc.h: Don't include statistics.h>
16522 * hash-map.h: Remove all includes.
16523 * hash-set.h: Likewise.
16524 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
16525 the include list. Remove <new>.
16526 * inchash.h: Remove all includes.
16527 * mem-stats.h: Likewise.
16528 * vec.h: No special processing for generators or ggc.
16529 * alias.c : Adjust include files.
16530 * alloc-pool.c : Likewise.
16531 * alloc-pool.h : Likewise.
16532 * asan.c : Likewise.
16533 * attribs.c : Likewise.
16534 * auto-inc-dec.c : Likewise.
16535 * auto-profile.c : Likewise.
16536 * bb-reorder.c : Likewise.
16537 * bitmap.c : Likewise.
16538 * bitmap.h : Likewise.
16539 * bt-load.c : Likewise.
16540 * builtins.c : Likewise.
16541 * caller-save.c : Likewise.
16542 * calls.c : Likewise.
16543 * ccmp.c : Likewise.
16544 * cfg.c : Likewise.
16545 * cfganal.c : Likewise.
16546 * cfgbuild.c : Likewise.
16547 * cfgcleanup.c : Likewise.
16548 * cfgexpand.c : Likewise.
16549 * cfghooks.c : Likewise.
16550 * cfgloop.c : Likewise.
16551 * cfgloop.h : Likewise.
16552 * cfgloopanal.c : Likewise.
16553 * cfgloopmanip.c : Likewise.
16554 * cfgrtl.c : Likewise.
16555 * cgraph.c : Likewise.
16556 * cgraphbuild.c : Likewise.
16557 * cgraphclones.c : Likewise.
16558 * cgraphunit.c : Likewise.
16559 * cilk-common.c : Likewise.
16560 * combine-stack-adj.c : Likewise.
16561 * combine.c : Likewise.
16562 * compare-elim.c : Likewise.
16563 * context.c : Likewise.
16564 * convert.c : Likewise.
16565 * coverage.c : Likewise.
16566 * cppbuiltin.c : Likewise.
16567 * cprop.c : Likewise.
16568 * cse.c : Likewise.
16569 * cselib.c : Likewise.
16570 * data-streamer-in.c : Likewise.
16571 * data-streamer-out.c : Likewise.
16572 * data-streamer.c : Likewise.
16573 * data-streamer.h : Likewise.
16574 * dbxout.c : Likewise.
16575 * dce.c : Likewise.
16576 * ddg.c : Likewise.
16577 * debug.c : Likewise.
16578 * df-core.c : Likewise.
16579 * df-problems.c : Likewise.
16580 * df-scan.c : Likewise.
16582 * dfp.c : Likewise.
16583 * dojump.c : Likewise.
16584 * dominance.c : Likewise.
16585 * domwalk.c : Likewise.
16586 * double-int.c : Likewise.
16587 * dse.c : Likewise.
16588 * dumpfile.c : Likewise.
16589 * dwarf2asm.c : Likewise.
16590 * dwarf2cfi.c : Likewise.
16591 * dwarf2out.c : Likewise.
16592 * emit-rtl.c : Likewise.
16593 * et-forest.c : Likewise.
16594 * except.c : Likewise.
16595 * except.h : Likewise.
16596 * explow.c : Likewise.
16597 * expmed.c : Likewise.
16598 * expr.c : Likewise.
16599 * final.c : Likewise.
16600 * fixed-value.c : Likewise.
16601 * fold-const.c : Likewise.
16602 * function.c : Likewise.
16603 * fwprop.c : Likewise.
16604 * gcc-plugin.h : Likewise.
16605 * gcc.c : Likewise.
16606 * gcse-common.c : Likewise.
16607 * gcse.c : Likewise.
16608 * genattrtab.c : Likewise.
16609 * genautomata.c : Likewise.
16610 * genconditions.c : Likewise.
16611 * genemit.c : Likewise.
16612 * generic-match-head.c : Likewise.
16613 * genextract.c : Likewise.
16614 * gengtype-state.c : Likewise.
16615 * gengtype.c : Likewise.
16616 * genhooks.c : Likewise.
16617 * genmatch.c : Likewise.
16618 * genmodes.c : Likewise.
16619 * genrecog.c : Likewise.
16620 * gensupport.c : Likewise.
16621 * ggc-common.c : Likewise.
16622 * ggc-internal.h : Likewise.
16623 * ggc-none.c : Likewise.
16624 * ggc-page.c : Likewise.
16625 * gimple-builder.c : Likewise.
16626 * gimple-expr.c : Likewise.
16627 * gimple-fold.c : Likewise.
16628 * gimple-iterator.c : Likewise.
16629 * gimple-low.c : Likewise.
16630 * gimple-match-head.c : Likewise.
16631 * gimple-pretty-print.c : Likewise.
16632 * gimple-ssa-isolate-paths.c : Likewise.
16633 * gimple-ssa-strength-reduction.c : Likewise.
16634 * gimple-ssa.h : Likewise.
16635 * gimple-streamer-in.c : Likewise.
16636 * gimple-streamer-out.c : Likewise.
16637 * gimple-streamer.h : Likewise.
16638 * gimple-walk.c : Likewise.
16639 * gimple.c : Likewise.
16640 * gimplify-me.c : Likewise.
16641 * gimplify.c : Likewise.
16642 * godump.c : Likewise.
16643 * graph.c : Likewise.
16644 * graphds.c : Likewise.
16645 * graphite-blocking.c : Likewise.
16646 * graphite-dependences.c : Likewise.
16647 * graphite-interchange.c : Likewise.
16648 * graphite-isl-ast-to-gimple.c : Likewise.
16649 * graphite-optimize-isl.c : Likewise.
16650 * graphite-poly.c : Likewise.
16651 * graphite-scop-detection.c : Likewise.
16652 * graphite-sese-to-poly.c : Likewise.
16653 * graphite.c : Likewise.
16654 * haifa-sched.c : Likewise.
16655 * hard-reg-set.h : Likewise.
16656 * hw-doloop.c : Likewise.
16657 * ifcvt.c : Likewise.
16658 * inchash.c : Likewise.
16659 * incpath.c : Likewise.
16660 * init-regs.c : Likewise.
16661 * input.c : Likewise.
16662 * internal-fn.c : Likewise.
16663 * ipa-chkp.c : Likewise.
16664 * ipa-comdats.c : Likewise.
16665 * ipa-cp.c : Likewise.
16666 * ipa-devirt.c : Likewise.
16667 * ipa-icf-gimple.c : Likewise.
16668 * ipa-icf.c : Likewise.
16669 * ipa-inline-analysis.c : Likewise.
16670 * ipa-inline-transform.c : Likewise.
16671 * ipa-inline.c : Likewise.
16672 * ipa-polymorphic-call.c : Likewise.
16673 * ipa-profile.c : Likewise.
16674 * ipa-prop.c : Likewise.
16675 * ipa-pure-const.c : Likewise.
16676 * ipa-ref.c : Likewise.
16677 * ipa-reference.c : Likewise.
16678 * ipa-split.c : Likewise.
16679 * ipa-utils.c : Likewise.
16680 * ipa-visibility.c : Likewise.
16681 * ipa.c : Likewise.
16682 * ira-build.c : Likewise.
16683 * ira-color.c : Likewise.
16684 * ira-conflicts.c : Likewise.
16685 * ira-costs.c : Likewise.
16686 * ira-emit.c : Likewise.
16687 * ira-lives.c : Likewise.
16688 * ira.c : Likewise.
16689 * jump.c : Likewise.
16690 * langhooks.c : Likewise.
16691 * lcm.c : Likewise.
16692 * libfuncs.h : Likewise.
16693 * lists.c : Likewise.
16694 * loop-doloop.c : Likewise.
16695 * loop-init.c : Likewise.
16696 * loop-invariant.c : Likewise.
16697 * loop-iv.c : Likewise.
16698 * loop-unroll.c : Likewise.
16699 * lower-subreg.c : Likewise.
16700 * lra-assigns.c : Likewise.
16701 * lra-coalesce.c : Likewise.
16702 * lra-constraints.c : Likewise.
16703 * lra-eliminations.c : Likewise.
16704 * lra-lives.c : Likewise.
16705 * lra-remat.c : Likewise.
16706 * lra-spills.c : Likewise.
16707 * lra.c : Likewise.
16708 * lto-cgraph.c : Likewise.
16709 * lto-compress.c : Likewise.
16710 * lto-opts.c : Likewise.
16711 * lto-section-in.c : Likewise.
16712 * lto-section-out.c : Likewise.
16713 * lto-streamer-in.c : Likewise.
16714 * lto-streamer-out.c : Likewise.
16715 * lto-streamer.c : Likewise.
16716 * lto-streamer.h : Likewise.
16717 * mcf.c : Likewise.
16718 * mode-switching.c : Likewise.
16719 * modulo-sched.c : Likewise.
16720 * omega.c : Likewise.
16721 * omp-low.c : Likewise.
16722 * optabs.c : Likewise.
16723 * opts-global.c : Likewise.
16724 * opts.h : Likewise.
16725 * passes.c : Likewise.
16726 * plugin.c : Likewise.
16727 * postreload-gcse.c : Likewise.
16728 * postreload.c : Likewise.
16729 * predict.c : Likewise.
16730 * print-rtl.c : Likewise.
16731 * print-tree.c : Likewise.
16732 * profile.c : Likewise.
16733 * read-md.c : Likewise.
16734 * read-md.h : Likewise.
16735 * read-rtl.c : Likewise.
16736 * real.c : Likewise.
16737 * realmpfr.c : Likewise.
16738 * recog.c : Likewise.
16739 * ree.c : Likewise.
16740 * reg-stack.c : Likewise.
16741 * regcprop.c : Likewise.
16742 * reginfo.c : Likewise.
16743 * regrename.c : Likewise.
16744 * regstat.c : Likewise.
16745 * reload.c : Likewise.
16746 * reload1.c : Likewise.
16747 * reorg.c : Likewise.
16748 * resource.c : Likewise.
16749 * rtl-chkp.c : Likewise.
16750 * rtl.c : Likewise.
16751 * rtl.h : Likewise.
16752 * rtlanal.c : Likewise.
16753 * rtlhash.c : Likewise.
16754 * rtlhash.h : Likewise.
16755 * rtlhooks.c : Likewise.
16756 * sanopt.c : Likewise.
16757 * sched-deps.c : Likewise.
16758 * sched-ebb.c : Likewise.
16759 * sched-rgn.c : Likewise.
16760 * sched-vis.c : Likewise.
16761 * sdbout.c : Likewise.
16762 * sel-sched-dump.c : Likewise.
16763 * sel-sched-ir.c : Likewise.
16764 * sel-sched-ir.h : Likewise.
16765 * sel-sched.c : Likewise.
16766 * sese.c : Likewise.
16767 * shrink-wrap.c : Likewise.
16768 * shrink-wrap.h : Likewise.
16769 * simplify-rtx.c : Likewise.
16770 * stack-ptr-mod.c : Likewise.
16771 * statistics.c : Likewise.
16772 * stmt.c : Likewise.
16773 * stor-layout.c : Likewise.
16774 * store-motion.c : Likewise.
16775 * stringpool.c : Likewise.
16776 * symtab.c : Likewise.
16777 * target-globals.c : Likewise.
16778 * targhooks.c : Likewise.
16779 * tlink.c : Likewise.
16780 * toplev.c : Likewise.
16781 * tracer.c : Likewise.
16782 * trans-mem.c : Likewise.
16783 * tree-affine.c : Likewise.
16784 * tree-affine.h : Likewise.
16785 * tree-browser.c : Likewise.
16786 * tree-call-cdce.c : Likewise.
16787 * tree-cfg.c : Likewise.
16788 * tree-cfgcleanup.c : Likewise.
16789 * tree-chkp-opt.c : Likewise.
16790 * tree-chkp.c : Likewise.
16791 * tree-chrec.c : Likewise.
16792 * tree-complex.c : Likewise.
16793 * tree-data-ref.c : Likewise.
16794 * tree-dfa.c : Likewise.
16795 * tree-diagnostic.c : Likewise.
16796 * tree-dump.c : Likewise.
16797 * tree-eh.c : Likewise.
16798 * tree-eh.h : Likewise.
16799 * tree-emutls.c : Likewise.
16800 * tree-hasher.h : Likewise.
16801 * tree-if-conv.c : Likewise.
16802 * tree-inline.c : Likewise.
16803 * tree-inline.h : Likewise.
16804 * tree-into-ssa.c : Likewise.
16805 * tree-iterator.c : Likewise.
16806 * tree-loop-distribution.c : Likewise.
16807 * tree-nested.c : Likewise.
16808 * tree-nrv.c : Likewise.
16809 * tree-object-size.c : Likewise.
16810 * tree-outof-ssa.c : Likewise.
16811 * tree-parloops.c : Likewise.
16812 * tree-phinodes.c : Likewise.
16813 * tree-predcom.c : Likewise.
16814 * tree-pretty-print.c : Likewise.
16815 * tree-profile.c : Likewise.
16816 * tree-scalar-evolution.c : Likewise.
16817 * tree-sra.c : Likewise.
16818 * tree-ssa-address.c : Likewise.
16819 * tree-ssa-alias.c : Likewise.
16820 * tree-ssa-ccp.c : Likewise.
16821 * tree-ssa-coalesce.c : Likewise.
16822 * tree-ssa-copy.c : Likewise.
16823 * tree-ssa-copyrename.c : Likewise.
16824 * tree-ssa-dce.c : Likewise.
16825 * tree-ssa-dom.c : Likewise.
16826 * tree-ssa-dse.c : Likewise.
16827 * tree-ssa-forwprop.c : Likewise.
16828 * tree-ssa-ifcombine.c : Likewise.
16829 * tree-ssa-live.c : Likewise.
16830 * tree-ssa-loop-ch.c : Likewise.
16831 * tree-ssa-loop-im.c : Likewise.
16832 * tree-ssa-loop-ivcanon.c : Likewise.
16833 * tree-ssa-loop-ivopts.c : Likewise.
16834 * tree-ssa-loop-manip.c : Likewise.
16835 * tree-ssa-loop-niter.c : Likewise.
16836 * tree-ssa-loop-prefetch.c : Likewise.
16837 * tree-ssa-loop-unswitch.c : Likewise.
16838 * tree-ssa-loop.c : Likewise.
16839 * tree-ssa-math-opts.c : Likewise.
16840 * tree-ssa-operands.c : Likewise.
16841 * tree-ssa-phiopt.c : Likewise.
16842 * tree-ssa-phiprop.c : Likewise.
16843 * tree-ssa-pre.c : Likewise.
16844 * tree-ssa-propagate.c : Likewise.
16845 * tree-ssa-reassoc.c : Likewise.
16846 * tree-ssa-sccvn.c : Likewise.
16847 * tree-ssa-scopedtables.c : Likewise.
16848 * tree-ssa-sink.c : Likewise.
16849 * tree-ssa-strlen.c : Likewise.
16850 * tree-ssa-structalias.c : Likewise.
16851 * tree-ssa-tail-merge.c : Likewise.
16852 * tree-ssa-ter.c : Likewise.
16853 * tree-ssa-threadedge.c : Likewise.
16854 * tree-ssa-threadupdate.c : Likewise.
16855 * tree-ssa-uncprop.c : Likewise.
16856 * tree-ssa-uninit.c : Likewise.
16857 * tree-ssa.c : Likewise.
16858 * tree-ssanames.c : Likewise.
16859 * tree-stdarg.c : Likewise.
16860 * tree-streamer-in.c : Likewise.
16861 * tree-streamer-out.c : Likewise.
16862 * tree-streamer.c : Likewise.
16863 * tree-streamer.h : Likewise.
16864 * tree-switch-conversion.c : Likewise.
16865 * tree-tailcall.c : Likewise.
16866 * tree-vect-data-refs.c : Likewise.
16867 * tree-vect-generic.c : Likewise.
16868 * tree-vect-loop-manip.c : Likewise.
16869 * tree-vect-loop.c : Likewise.
16870 * tree-vect-patterns.c : Likewise.
16871 * tree-vect-slp.c : Likewise.
16872 * tree-vect-stmts.c : Likewise.
16873 * tree-vectorizer.c : Likewise.
16874 * tree-vectorizer.h : Likewise.
16875 * tree-vrp.c : Likewise.
16876 * tree.c : Likewise.
16877 * tsan.c : Likewise.
16878 * ubsan.c : Likewise.
16879 * valtrack.c : Likewise.
16880 * valtrack.h : Likewise.
16881 * value-prof.c : Likewise.
16882 * var-tracking.c : Likewise.
16883 * varasm.c : Likewise.
16884 * varpool.c : Likewise.
16886 * vmsdbgout.c : Likewise.
16887 * vtable-verify.c : Likewise.
16888 * vtable-verify.h : Likewise.
16889 * web.c : Likewise.
16890 * wide-int.cc : Likewise.
16891 * xcoffout.c : Likewise.
16892 * config/aarch64/aarch64-builtins.c : Likewise.
16893 * config/aarch64/aarch64.c : Likewise.
16894 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
16895 * config/alpha/alpha.c : Likewise.
16896 * config/arc/arc.c : Likewise.
16897 * config/arm/aarch-common.c : Likewise.
16898 * config/arm/arm-builtins.c : Likewise.
16899 * config/arm/arm-c.c : Likewise.
16900 * config/arm/arm.c : Likewise.
16901 * config/avr/avr-c.c : Likewise.
16902 * config/avr/avr-log.c : Likewise.
16903 * config/avr/avr.c : Likewise.
16904 * config/bfin/bfin.c : Likewise.
16905 * config/c6x/c6x.c : Likewise.
16906 * config/cr16/cr16.c : Likewise.
16907 * config/cris/cris.c : Likewise.
16908 * config/darwin-c.c : Likewise.
16909 * config/darwin.c : Likewise.
16910 * config/default-c.c : Likewise.
16911 * config/epiphany/epiphany.c : Likewise.
16912 * config/epiphany/mode-switch-use.c : Likewise.
16913 * config/epiphany/resolve-sw-modes.c : Likewise.
16914 * config/fr30/fr30.c : Likewise.
16915 * config/frv/frv.c : Likewise.
16916 * config/ft32/ft32.c : Likewise.
16917 * config/glibc-c.c : Likewise.
16918 * config/h8300/h8300.c : Likewise.
16919 * config/i386/i386-c.c : Likewise.
16920 * config/i386/i386.c : Likewise.
16921 * config/i386/msformat-c.c : Likewise.
16922 * config/i386/winnt-cxx.c : Likewise.
16923 * config/i386/winnt-stubs.c : Likewise.
16924 * config/i386/winnt.c : Likewise.
16925 * config/ia64/ia64-c.c : Likewise.
16926 * config/ia64/ia64.c : Likewise.
16927 * config/iq2000/iq2000.c : Likewise.
16928 * config/lm32/lm32.c : Likewise.
16929 * config/m32c/m32c-pragma.c : Likewise.
16930 * config/m32c/m32c.c : Likewise.
16931 * config/m32r/m32r.c : Likewise.
16932 * config/m68k/m68k.c : Likewise.
16933 * config/mcore/mcore.c : Likewise.
16934 * config/mep/mep-pragma.c : Likewise.
16935 * config/mep/mep.c : Likewise.
16936 * config/microblaze/microblaze-c.c : Likewise.
16937 * config/microblaze/microblaze.c : Likewise.
16938 * config/mips/mips.c : Likewise.
16939 * config/mmix/mmix.c : Likewise.
16940 * config/mn10300/mn10300.c : Likewise.
16941 * config/moxie/moxie.c : Likewise.
16942 * config/msp430/msp430-c.c : Likewise.
16943 * config/msp430/msp430.c : Likewise.
16944 * config/nds32/nds32-cost.c : Likewise.
16945 * config/nds32/nds32-fp-as-gp.c : Likewise.
16946 * config/nds32/nds32-intrinsic.c : Likewise.
16947 * config/nds32/nds32-isr.c : Likewise.
16948 * config/nds32/nds32-md-auxiliary.c : Likewise.
16949 * config/nds32/nds32-memory-manipulation.c : Likewise.
16950 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
16951 * config/nds32/nds32-predicates.c : Likewise.
16952 * config/nds32/nds32.c : Likewise.
16953 * config/nios2/nios2.c : Likewise.
16954 * config/nvptx/nvptx.c : Likewise.
16955 * config/pa/pa.c : Likewise.
16956 * config/pdp11/pdp11.c : Likewise.
16957 * config/rl78/rl78-c.c : Likewise.
16958 * config/rl78/rl78.c : Likewise.
16959 * config/rs6000/rs6000-c.c : Likewise.
16960 * config/rs6000/rs6000.c : Likewise.
16961 * config/rx/rx.c : Likewise.
16962 * config/s390/s390-c.c : Likewise.
16963 * config/s390/s390.c : Likewise.
16964 * config/sh/sh-c.c : Likewise.
16965 * config/sh/sh-mem.cc : Likewise.
16966 * config/sh/sh.c : Likewise.
16967 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
16968 * config/sh/sh_treg_combine.cc : Likewise.
16969 * config/sol2-c.c : Likewise.
16970 * config/sol2-cxx.c : Likewise.
16971 * config/sol2-stubs.c : Likewise.
16972 * config/sol2.c : Likewise.
16973 * config/sparc/sparc-c.c : Likewise.
16974 * config/sparc/sparc.c : Likewise.
16975 * config/spu/spu-c.c : Likewise.
16976 * config/spu/spu.c : Likewise.
16977 * config/stormy16/stormy16.c : Likewise.
16978 * config/tilegx/mul-tables.c : Likewise.
16979 * config/tilegx/tilegx-c.c : Likewise.
16980 * config/tilegx/tilegx.c : Likewise.
16981 * config/tilepro/mul-tables.c : Likewise.
16982 * config/tilepro/tilepro-c.c : Likewise.
16983 * config/tilepro/tilepro.c : Likewise.
16984 * config/v850/v850-c.c : Likewise.
16985 * config/v850/v850.c : Likewise.
16986 * config/vax/vax.c : Likewise.
16987 * config/visium/visium.c : Likewise.
16988 * config/vms/vms-c.c : Likewise.
16989 * config/vms/vms.c : Likewise.
16990 * config/vxworks.c : Likewise.
16991 * config/winnt-c.c : Likewise.
16992 * config/xtensa/xtensa.c : Likewise.
16994 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
16997 * ipa-utils.h (warn_types_mismatch): Update prototype.
16998 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17000 (type_mismatch_p): New function.
17001 (warn_types_mismatch): Reorg to work better on non-C++ types.
17002 (odr_types_equivalent_p): Add loc1/loc2 parameters.
17003 (add_type_duplicate): Update.
17005 2015-06-08 Tom de Vries <tom@codesourcery.com>
17007 PR rtl-optimization/66444
17008 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17011 2015-06-08 Richard Biener <rguenther@suse.de>
17013 PR tree-optimization/66422
17014 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17015 block after inserted gcc_unreachable.
17017 2015-06-08 Nick Clifton <nickc@redhat.com>
17019 * config/rx/rx.c (rx_function_value): Do not promote vector types.
17020 (rx_promote_function_mode): Likewise.
17021 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17023 2015-06-08 Jakub Jelinek <jakub@redhat.com>
17025 * genattrtab.c (insn_alternatives): Change type from int *
17027 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17028 (get_attr_value): Change type of num_alt to uint64_t.
17029 (compute_alternative_mask): Change return type from
17030 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17031 (make_alternative_compare, mk_attr_alt): Change argument type
17032 from int to uint64_t.
17033 (simplify_test_exp): Change type of i from int to uint64_t.
17034 Shift ((uint64_t) 1) instead of 1 up.
17035 (main): Adjust oballocvec first argument from int to uint64_t.
17036 Shift ((uint64_t) 1) instead of 1 up.
17038 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
17041 * gdbhooks.py: Import sys.
17042 (intptr): New function. Replace int(...) by intptr(...).
17044 2015-06-08 Richard Biener <rguenther@suse.de>
17046 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17047 adjustment for gaps at the end of a SLP load group properly.
17048 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17049 all permutations we can generate.
17050 (vect_transform_slp_perm_load): Use the correct group-size.
17052 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
17054 * genmatch.c (expr::gen_transform): For conditions, guess the type
17055 from the second operand.
17057 2015-06-08 Tom de Vries <tom@codesourcery.com>
17059 PR tree-optimization/66442
17060 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17061 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17062 if the loop latch is not a singleton. Use
17063 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17065 2015-06-08 Marek Polacek <polacek@redhat.com>
17068 * toplev.c (check_global_declaration): Don't warn about artificial
17071 2015-06-08 Tom de Vries <tom@codesourcery.com>
17073 PR tree-optimization/66436
17074 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17076 * gimplify.c: Add tree-dump.h include.
17077 (gimplify_function_tree): Dump function to gimple dump file.
17078 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17081 2015-06-08 Tom de Vries <tom@codesourcery.com>
17083 PR tree-optimization/66435
17084 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17087 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
17089 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17090 of ptr_type_node to not be ptr_to_node.
17091 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17092 TREE_TYPE of pointers.
17093 * gimple-expr.c (useless_type_conversion): Reorder the check for
17094 function pointers and TYPE_CANONICAL.
17096 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
17099 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17100 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17101 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17103 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17104 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17105 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17106 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17107 and non iso if unix2003.
17109 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
17111 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17113 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
17115 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17116 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17117 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17118 except.c, final.c, function.c, gcse-common.c, genemit.c,
17119 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17120 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17121 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17122 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17125 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
17127 * combine.c (combine_split_insns): Remove cast.
17128 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17129 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17130 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17131 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17132 * genemit.c (gen_split): Change return type of generated functions to
17134 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17135 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17136 gen_peephole2_* functions.
17137 (print_subroutine, main): Likewise.
17138 * recog.c (peephole2_optimize): Remove cast.
17139 (peep2_next_insn): Promote return type to rtx_insn.
17140 * recog.h (peep2_next_insn): Fix prototype.
17141 * rtl.h (try_split, split_insns): Likewise.
17143 2015-06-06 DJ Delorie <dj@redhat.com>
17145 * config/msp430/msp430.c (msp430_asm_integer): Support addition
17146 and subtraction too.
17148 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
17151 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17152 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17153 instead of Snd. Disparage Sid/z alternative with '^'.
17155 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
17157 * dwarf2out.c: Remove deferred_locations*.
17158 (dwarf2_debug_hooks): Add early_finish hook.
17159 Remove global_decl hook.
17160 Add early_global_decl and late_global_decl hook.
17161 New global early_dwarf.
17162 New structure set_early_dwarf.
17163 (output_die): Indicate whether a DIE was generated early
17164 when generating assembly with -dA.
17165 (struct limbo_die_struct): Document created_for field.
17166 Remove file_table_last_lookup.
17167 (remove_AT): Return TRUE if successful.
17168 (remove_child_TAG): Clear die_parent.
17169 (reparent_child): New function abstracted from...
17170 (splice_child_die): ...here.
17171 (new_die): ICE if a DIE ends up in limbo too late.
17173 (defer_location): Remove.
17174 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17175 (fill_variable_array_bounds): New.
17176 (decl_start_label): Call fill_variable_array_bounds.
17177 (gen_formal_parameter_die): Rewrite to reuse previously generated
17179 (gen_subprogram_die): Same.
17180 (gen_variable_die): Same.
17181 (gen_const_die): Same.
17182 (gen_label_die): Same.
17183 (gen_lexical_block_die): Same.
17184 (decl_will_get_specification_p): New.
17185 (local_function_static): New.
17186 (gen_struct_or_union_type_die): Fill in variable-length fields.
17187 (gen_typedef_die): Fill in variable-length typedefs.
17188 (gen_tagged_type_die): Gracefully return on error_mark_node.
17189 Handle re-entrancy.
17190 (gen_type_die_with_usage): Handle variable-length types.
17191 Remove duplicate code for ARRAY_TYPE case.
17192 (process_scope_var): Only process imported modules during early
17194 (dwarf2out_early_global_decl): New.
17195 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17196 (dwarf2out_type_decl): Set early_dwarf while calling
17198 (dwarf2out_decl): Verify that we did not recreate a previously
17200 Do not return on DECL_EXTERNALs in VAR_DECLs.
17201 Abstract some code to local_function_static.
17202 (lookup_filename): Remove use of file_table_last_lookup.
17203 Gracefully exit on missing file_name.
17204 (dwarf2out_finish): Verify limbo list.
17205 Remove deferred_locations_list use.
17206 Move deferred_asm_name and limbo flushing to...
17207 (dwarf2out_early_finish): ...here. New.
17208 (dwarf2out_c_finalize): Remove set of deferred_location_list,
17209 deferred_asm_name, and file_table_last_lookup.
17210 * cgraph.h (referred_to_p): Add default argument.
17211 * cgraphunit.c (referred_to_p): Add and handle include_self
17213 (analyze_functions): Add first_time argument.
17214 Call check_global_declaration for all symbols.
17215 Call late_global_decl for nodes for moribund nodes.
17216 (finalize_compilation_unit): Add new argument to
17218 Call early_global_decl for functions.
17219 Call early_finish debug hook.
17220 * dbxout.c (dbxout_early_global_decl): New.
17221 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
17222 (dbx_debug_hooks): Add new hooks.
17223 (xcoff_debug_hooks): Same.
17224 * debug.c (do_nothing_debug_hooks): Add early_finish field.
17225 Add early and late debug hooks.
17226 Remove global_decl hook.
17227 * debug.h (struct gcc_debug_hooks): Add early_finish,
17228 early_global_decl, and late_global_decl fields.
17229 Remove global_decl field.
17230 Document gcc_debug_hooks.
17231 * gengtype.c (output_typename): Remove.
17232 * godump.c (go_early_global_decl): New.
17233 (go_late_global_decl): New.
17234 (go_global_decl): Remove.
17235 (dump_go_spec_init): Remove global_decl. Add
17236 {early,late}_global_decl.
17237 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
17238 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
17239 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
17240 (write_global_declarations): Remove.
17241 (global_decl_processing): New.
17242 * langhooks.h (struct lang_hooks_for_decls): Remove
17243 final_write_globals field.
17244 Add post_compilation_parsing_cleanups field.
17245 * passes.c (rest_of_decl_compilation): Call early_global_decl.
17246 * sdbout.c: Add early and late_global_decl hooks. Remove
17247 sdbout_global_decl hook.
17248 Add early_finish field for sdb_debug_hooks.
17249 (sdbout_global_decl): Remove.
17250 (sdbout_early_global_decl): New.
17251 (sdbout_late_global_decl): New.
17252 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
17253 * toplev.c (check_global_declaration): Rename from
17254 check_global_declaration_1.
17255 Adapt to use symtab infrastructure.
17256 (check_global_declarations): Remove.
17257 (emit_debug_global_declarations): Remove.
17258 (compile_file): Remove call to final_write_globals langhook.
17259 Run the actual compilation process.
17260 Perform any post compilation parser cleanups.
17261 Generate late debug info.
17262 * toplev.h (check_global_declaration): New.
17263 (check_global_declaration_1): Remove.
17264 (check_global_declarations): Remove.
17265 (write_global_declarations): Remove.
17266 (emit_debug_global_declarations): Remove.
17267 (global_decl_processing): New.
17268 * tree-core.h (struct tree_block): Add DIE field.
17269 * tree.h (BLOCK_DIE): New.
17270 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
17272 (vmsdbgout_early_global_decl): New.
17273 (vmsdbgout_late_global_decl): New.
17274 Add early_finish debug hook field to vmsdbg_debug_hooks.
17275 Remove vmsdbgout_decl to vmsdbgout_function_decl.
17276 Add early and late_global_decl debug hooks.
17278 2015-06-05 Julian Brown <julian@codesourcery.com>
17279 Sandra Loosemore <sandra@codesourcery.com>
17281 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
17282 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
17283 to print-sysroot-suffix.sh script.
17285 2015-06-05 Tom de Vries <tom@codesourcery.com>
17287 merge from gomp4 branch:
17288 2015-05-28 Tom de Vries <tom@codesourcery.com>
17290 PR tree-optimization/65443
17291 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
17292 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
17293 (try_transform_to_exit_first_loop_alt): New function.
17294 (transform_to_exit_first_loop): Use
17295 try_transform_to_exit_first_loop_alt.
17297 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
17299 * builtins.c (expand_builtin_atomic_compare_exchange): Call
17300 emit_cmp_and_jump_insns with the mode of target.
17302 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17304 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
17306 2015-06-04 DJ Delorie <dj@redhat.com>
17308 * config/msp430/msp430.md (movsi_s): New. Special case for
17309 storing a 20-bit symbol into a 32-bit register.
17310 * config/msp430/msp430.c (msp430_subreg): Add support for it.
17311 * config/msp430/predicates.md (msp430_symbol_operand): New.
17313 2015-06-04 Sriraman Tallam <tmsriram@google.com>
17315 * c-family/c-common.c (noplt): New attribute.
17316 (handle_noplt_attribute): New handler.
17317 * calls.c (prepare_call_address): Check for noplt
17319 * config/i386/i386.c (ix86_expand_call): Check
17320 for noplt attribute.
17321 (ix86_nopic_noplt_attribute_p): New function.
17322 (ix86_output_call_insn): Output indirect call for non-pic
17324 * doc/extend.texi (noplt): Document new attribute.
17325 * doc/invoke.texi: Document new attribute.
17327 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
17329 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
17330 real.h, and fixed-value.h when included in host source files.
17331 * double-int.h: Remove redundant #includes listed above.
17332 * fixed-value.h: Likewise.
17333 * real.h: Likewise.
17334 * wide-int.h: Likewise.
17335 * inchash.h: Likewise.
17336 * rtl.h: Add some include files When included from a generator file.
17337 * target.h: Remove wide-int.h and insn-modes.h from the include list.
17338 * internal-fn.h: Don't include coretypes.h.
17339 * alias.c: Adjust includes for restructured coretypes.h.
17340 * asan.c: Likewise.
17341 * attribs.c: Likewise.
17342 * auto-inc-dec.c: Likewise.
17343 * auto-profile.c: Likewise.
17344 * bb-reorder.c: Likewise.
17345 * bt-load.c: Likewise.
17346 * builtins.c: Likewise.
17347 * caller-save.c: Likewise.
17348 * calls.c: Likewise.
17349 * ccmp.c: Likewise.
17351 * cfganal.c: Likewise.
17352 * cfgbuild.c: Likewise.
17353 * cfgcleanup.c: Likewise.
17354 * cfgexpand.c: Likewise.
17355 * cfghooks.c: Likewise.
17356 * cfgloop.c: Likewise.
17357 * cfgloop.h: Likewise.
17358 * cfgloopanal.c: Likewise.
17359 * cfgloopmanip.c: Likewise.
17360 * cfgrtl.c: Likewise.
17361 * cgraph.c: Likewise.
17362 * cgraphbuild.c: Likewise.
17363 * cgraphclones.c: Likewise.
17364 * cgraphunit.c: Likewise.
17365 * cilk-common.c: Likewise.
17366 * combine-stack-adj.c: Likewise.
17367 * combine.c: Likewise.
17368 * compare-elim.c: Likewise.
17369 * convert.c: Likewise.
17370 * coverage.c: Likewise.
17371 * cppbuiltin.c: Likewise.
17372 * cprop.c: Likewise.
17374 * cselib.c: Likewise.
17375 * data-streamer-in.c: Likewise.
17376 * data-streamer-out.c: Likewise.
17377 * data-streamer.c: Likewise.
17378 * dbxout.c: Likewise.
17381 * debug.c: Likewise.
17382 * df-core.c: Likewise.
17383 * df-problems.c: Likewise.
17384 * df-scan.c: Likewise.
17387 * dojump.c: Likewise.
17388 * dominance.c: Likewise.
17389 * domwalk.c: Likewise.
17390 * double-int.c: Likewise.
17392 * dumpfile.c: Likewise.
17393 * dwarf2asm.c: Likewise.
17394 * dwarf2cfi.c: Likewise.
17395 * dwarf2out.c: Likewise.
17396 * dwarf2out.h: Likewise.
17397 * emit-rtl.c: Likewise.
17398 * et-forest.c: Likewise.
17399 * except.c: Likewise.
17400 * explow.c: Likewise.
17401 * expmed.c: Likewise.
17402 * expr.c: Likewise.
17403 * final.c: Likewise.
17404 * fixed-value.c: Likewise.
17405 * fold-const.c: Likewise.
17406 * function.c: Likewise.
17407 * fwprop.c: Likewise.
17408 * gcc-plugin.h: Likewise.
17409 * gcse.c: Likewise.
17410 * generic-match-head.c: Likewise.
17411 * ggc-page.c: Likewise.
17412 * gimple-builder.c: Likewise.
17413 * gimple-expr.c: Likewise.
17414 * gimple-fold.c: Likewise.
17415 * gimple-iterator.c: Likewise.
17416 * gimple-low.c: Likewise.
17417 * gimple-match-head.c: Likewise.
17418 * gimple-pretty-print.c: Likewise.
17419 * gimple-ssa-isolate-paths.c: Likewise.
17420 * gimple-ssa-strength-reduction.c: Likewise.
17421 * gimple-streamer-in.c: Likewise.
17422 * gimple-streamer-out.c: Likewise.
17423 * gimple-streamer.h: Likewise.
17424 * gimple-walk.c: Likewise.
17425 * gimple.c: Likewise.
17426 * gimplify-me.c: Likewise.
17427 * gimplify.c: Likewise.
17428 * godump.c: Likewise.
17429 * graph.c: Likewise.
17430 * graphite-blocking.c: Likewise.
17431 * graphite-dependences.c: Likewise.
17432 * graphite-interchange.c: Likewise.
17433 * graphite-isl-ast-to-gimple.c: Likewise.
17434 * graphite-optimize-isl.c: Likewise.
17435 * graphite-poly.c: Likewise.
17436 * graphite-scop-detection.c: Likewise.
17437 * graphite-sese-to-poly.c: Likewise.
17438 * graphite.c: Likewise.
17439 * haifa-sched.c: Likewise.
17440 * hooks.h: Likewise.
17441 * hw-doloop.c: Likewise.
17442 * ifcvt.c: Likewise.
17443 * incpath.c: Likewise.
17444 * init-regs.c: Likewise.
17445 * internal-fn.c: Likewise.
17446 * ipa-chkp.c: Likewise.
17447 * ipa-comdats.c: Likewise.
17448 * ipa-cp.c: Likewise.
17449 * ipa-devirt.c: Likewise.
17450 * ipa-icf-gimple.c: Likewise.
17451 * ipa-icf.c: Likewise.
17452 * ipa-inline-analysis.c: Likewise.
17453 * ipa-inline-transform.c: Likewise.
17454 * ipa-inline.c: Likewise.
17455 * ipa-polymorphic-call.c: Likewise.
17456 * ipa-profile.c: Likewise.
17457 * ipa-prop.c: Likewise.
17458 * ipa-pure-const.c: Likewise.
17459 * ipa-ref.c: Likewise.
17460 * ipa-reference.c: Likewise.
17461 * ipa-split.c: Likewise.
17462 * ipa-utils.c: Likewise.
17463 * ipa-visibility.c: Likewise.
17465 * ira-build.c: Likewise.
17466 * ira-color.c: Likewise.
17467 * ira-conflicts.c: Likewise.
17468 * ira-costs.c: Likewise.
17469 * ira-emit.c: Likewise.
17470 * ira-lives.c: Likewise.
17472 * jump.c: Likewise.
17473 * langhooks.c: Likewise.
17475 * loop-doloop.c: Likewise.
17476 * loop-init.c: Likewise.
17477 * loop-invariant.c: Likewise.
17478 * loop-iv.c: Likewise.
17479 * loop-unroll.c: Likewise.
17480 * lower-subreg.c: Likewise.
17481 * lra-assigns.c: Likewise.
17482 * lra-coalesce.c: Likewise.
17483 * lra-constraints.c: Likewise.
17484 * lra-eliminations.c: Likewise.
17485 * lra-lives.c: Likewise.
17486 * lra-remat.c: Likewise.
17487 * lra-spills.c: Likewise.
17489 * lto-cgraph.c: Likewise.
17490 * lto-compress.c: Likewise.
17491 * lto-opts.c: Likewise.
17492 * lto-section-in.c: Likewise.
17493 * lto-section-out.c: Likewise.
17494 * lto-streamer-in.c: Likewise.
17495 * lto-streamer-out.c: Likewise.
17496 * lto-streamer.c: Likewise.
17498 * mode-switching.c: Likewise.
17499 * modulo-sched.c: Likewise.
17500 * omega.c: Likewise.
17501 * omp-low.c: Likewise.
17502 * optabs.c: Likewise.
17503 * opts-global.c: Likewise.
17504 * passes.c: Likewise.
17505 * plugin.c: Likewise.
17506 * postreload-gcse.c: Likewise.
17507 * postreload.c: Likewise.
17508 * predict.c: Likewise.
17509 * print-rtl.c: Likewise.
17510 * print-tree.c: Likewise.
17511 * profile.c: Likewise.
17512 * real.c: Likewise.
17513 * realmpfr.c: Likewise.
17514 * realmpfr.h: Likewise.
17515 * recog.c: Likewise.
17517 * reg-stack.c: Likewise.
17518 * regcprop.c: Likewise.
17519 * reginfo.c: Likewise.
17520 * regrename.c: Likewise.
17521 * regs.h: Likewise.
17522 * regstat.c: Likewise.
17523 * reload.c: Likewise.
17524 * reload1.c: Likewise.
17525 * reorg.c: Likewise.
17526 * resource.c: Likewise.
17527 * rtl-chkp.c: Likewise.
17528 * rtlanal.c: Likewise.
17529 * rtlhooks.c: Likewise.
17530 * sanopt.c: Likewise.
17531 * sched-deps.c: Likewise.
17532 * sched-ebb.c: Likewise.
17533 * sched-rgn.c: Likewise.
17534 * sched-vis.c: Likewise.
17535 * sdbout.c: Likewise.
17536 * sel-sched-dump.c: Likewise.
17537 * sel-sched-ir.c: Likewise.
17538 * sel-sched.c: Likewise.
17539 * sese.c: Likewise.
17540 * shrink-wrap.c: Likewise.
17541 * shrink-wrap.h: Likewise.
17542 * simplify-rtx.c: Likewise.
17543 * stack-ptr-mod.c: Likewise.
17544 * statistics.c: Likewise.
17545 * stmt.c: Likewise.
17546 * stor-layout.c: Likewise.
17547 * store-motion.c: Likewise.
17548 * stringpool.c: Likewise.
17549 * symtab.c: Likewise.
17550 * target-globals.c: Likewise.
17551 * targhooks.c: Likewise.
17552 * toplev.c: Likewise.
17553 * tracer.c: Likewise.
17554 * trans-mem.c: Likewise.
17555 * tree-affine.c: Likewise.
17556 * tree-affine.h: Likewise.
17557 * tree-browser.c: Likewise.
17558 * tree-call-cdce.c: Likewise.
17559 * tree-cfg.c: Likewise.
17560 * tree-cfgcleanup.c: Likewise.
17561 * tree-chkp-opt.c: Likewise.
17562 * tree-chkp.c: Likewise.
17563 * tree-chrec.c: Likewise.
17564 * tree-complex.c: Likewise.
17565 * tree-data-ref.c: Likewise.
17566 * tree-dfa.c: Likewise.
17567 * tree-diagnostic.c: Likewise.
17568 * tree-dump.c: Likewise.
17569 * tree-eh.c: Likewise.
17570 * tree-emutls.c: Likewise.
17571 * tree-if-conv.c: Likewise.
17572 * tree-inline.c: Likewise.
17573 * tree-into-ssa.c: Likewise.
17574 * tree-iterator.c: Likewise.
17575 * tree-loop-distribution.c: Likewise.
17576 * tree-nested.c: Likewise.
17577 * tree-nrv.c: Likewise.
17578 * tree-object-size.c: Likewise.
17579 * tree-outof-ssa.c: Likewise.
17580 * tree-parloops.c: Likewise.
17581 * tree-phinodes.c: Likewise.
17582 * tree-predcom.c: Likewise.
17583 * tree-pretty-print.c: Likewise.
17584 * tree-pretty-print.h: Likewise.
17585 * tree-profile.c: Likewise.
17586 * tree-scalar-evolution.c: Likewise.
17587 * tree-sra.c: Likewise.
17588 * tree-ssa-address.c: Likewise.
17589 * tree-ssa-alias.c: Likewise.
17590 * tree-ssa-ccp.c: Likewise.
17591 * tree-ssa-coalesce.c: Likewise.
17592 * tree-ssa-copy.c: Likewise.
17593 * tree-ssa-copyrename.c: Likewise.
17594 * tree-ssa-dce.c: Likewise.
17595 * tree-ssa-dom.c: Likewise.
17596 * tree-ssa-dse.c: Likewise.
17597 * tree-ssa-forwprop.c: Likewise.
17598 * tree-ssa-ifcombine.c: Likewise.
17599 * tree-ssa-live.c: Likewise.
17600 * tree-ssa-loop-ch.c: Likewise.
17601 * tree-ssa-loop-im.c: Likewise.
17602 * tree-ssa-loop-ivcanon.c: Likewise.
17603 * tree-ssa-loop-ivopts.c: Likewise.
17604 * tree-ssa-loop-manip.c: Likewise.
17605 * tree-ssa-loop-niter.c: Likewise.
17606 * tree-ssa-loop-prefetch.c: Likewise.
17607 * tree-ssa-loop-unswitch.c: Likewise.
17608 * tree-ssa-loop.c: Likewise.
17609 * tree-ssa-loop.h: Likewise.
17610 * tree-ssa-math-opts.c: Likewise.
17611 * tree-ssa-operands.c: Likewise.
17612 * tree-ssa-phiopt.c: Likewise.
17613 * tree-ssa-phiprop.c: Likewise.
17614 * tree-ssa-pre.c: Likewise.
17615 * tree-ssa-propagate.c: Likewise.
17616 * tree-ssa-reassoc.c: Likewise.
17617 * tree-ssa-sccvn.c: Likewise.
17618 * tree-ssa-scopedtables.c: Likewise.
17619 * tree-ssa-sink.c: Likewise.
17620 * tree-ssa-strlen.c: Likewise.
17621 * tree-ssa-structalias.c: Likewise.
17622 * tree-ssa-tail-merge.c: Likewise.
17623 * tree-ssa-ter.c: Likewise.
17624 * tree-ssa-threadedge.c: Likewise.
17625 * tree-ssa-threadupdate.c: Likewise.
17626 * tree-ssa-uncprop.c: Likewise.
17627 * tree-ssa-uninit.c: Likewise.
17628 * tree-ssa.c: Likewise.
17629 * tree-ssanames.c: Likewise.
17630 * tree-stdarg.c: Likewise.
17631 * tree-streamer-in.c: Likewise.
17632 * tree-streamer-out.c: Likewise.
17633 * tree-streamer.c: Likewise.
17634 * tree-switch-conversion.c: Likewise.
17635 * tree-tailcall.c: Likewise.
17636 * tree-vect-data-refs.c: Likewise.
17637 * tree-vect-generic.c: Likewise.
17638 * tree-vect-loop-manip.c: Likewise.
17639 * tree-vect-loop.c: Likewise.
17640 * tree-vect-patterns.c: Likewise.
17641 * tree-vect-slp.c: Likewise.
17642 * tree-vect-stmts.c: Likewise.
17643 * tree-vectorizer.c: Likewise.
17644 * tree-vrp.c: Likewise.
17645 * tree.c: Likewise.
17646 * tsan.c: Likewise.
17647 * ubsan.c: Likewise.
17648 * valtrack.c: Likewise.
17649 * value-prof.c: Likewise.
17650 * var-tracking.c: Likewise.
17651 * varasm.c: Likewise.
17652 * varpool.c: Likewise.
17653 * vmsdbgout.c: Likewise.
17654 * vtable-verify.c: Likewise.
17656 * wide-int-print.cc: Likewise.
17657 * wide-int-print.h: Likewise.
17658 * wide-int.cc: Likewise.
17659 * xcoffout.c: Likewise.
17660 * config/aarch64/aarch64-builtins.c: Likewise.
17661 * config/aarch64/aarch64.c: Likewise.
17662 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17663 * config/alpha/alpha.c: Likewise.
17664 * config/arc/arc.c: Likewise.
17665 * config/arm/aarch-common.c: Likewise.
17666 * config/arm/arm-builtins.c: Likewise.
17667 * config/arm/arm-c.c: Likewise.
17668 * config/arm/arm.c: Likewise.
17669 * config/avr/avr-c.c: Likewise.
17670 * config/avr/avr-log.c: Likewise.
17671 * config/avr/avr.c: Likewise.
17672 * config/bfin/bfin.c: Likewise.
17673 * config/c6x/c6x.c: Likewise.
17674 * config/cr16/cr16.c: Likewise.
17675 * config/cris/cris.c: Likewise.
17676 * config/darwin-c.c: Likewise.
17677 * config/darwin.c: Likewise.
17678 * config/default-c.c: Likewise.
17679 * config/epiphany/epiphany.c: Likewise.
17680 * config/epiphany/mode-switch-use.c: Likewise.
17681 * config/epiphany/resolve-sw-modes.c: Likewise.
17682 * config/fr30/fr30.c: Likewise.
17683 * config/frv/frv.c: Likewise.
17684 * config/ft32/ft32.c: Likewise.
17685 * config/glibc-c.c: Likewise.
17686 * config/h8300/h8300.c: Likewise.
17687 * config/i386/i386-c.c: Likewise.
17688 * config/i386/i386.c: Likewise.
17689 * config/i386/msformat-c.c: Likewise.
17690 * config/i386/winnt-cxx.c: Likewise.
17691 * config/i386/winnt-stubs.c: Likewise.
17692 * config/i386/winnt.c: Likewise.
17693 * config/ia64/ia64-c.c: Likewise.
17694 * config/ia64/ia64.c: Likewise.
17695 * config/iq2000/iq2000.c: Likewise.
17696 * config/lm32/lm32.c: Likewise.
17697 * config/m32c/m32c-pragma.c: Likewise.
17698 * config/m32c/m32c.c: Likewise.
17699 * config/m32r/m32r.c: Likewise.
17700 * config/m68k/m68k.c: Likewise.
17701 * config/mcore/mcore.c: Likewise.
17702 * config/mep/mep-pragma.c: Likewise.
17703 * config/mep/mep.c: Likewise.
17704 * config/microblaze/microblaze-c.c: Likewise.
17705 * config/microblaze/microblaze.c: Likewise.
17706 * config/mips/mips.c: Likewise.
17707 * config/mmix/mmix.c: Likewise.
17708 * config/mn10300/mn10300.c: Likewise.
17709 * config/moxie/moxie.c: Likewise.
17710 * config/msp430/msp430-c.c: Likewise.
17711 * config/msp430/msp430.c: Likewise.
17712 * config/nds32/nds32-cost.c: Likewise.
17713 * config/nds32/nds32-fp-as-gp.c: Likewise.
17714 * config/nds32/nds32-intrinsic.c: Likewise.
17715 * config/nds32/nds32-isr.c: Likewise.
17716 * config/nds32/nds32-md-auxiliary.c: Likewise.
17717 * config/nds32/nds32-memory-manipulation.c: Likewise.
17718 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17719 * config/nds32/nds32-predicates.c: Likewise.
17720 * config/nds32/nds32.c: Likewise.
17721 * config/nios2/nios2.c: Likewise.
17722 * config/nvptx/nvptx.c: Likewise.
17723 * config/pa/pa.c: Likewise.
17724 * config/pdp11/pdp11.c: Likewise.
17725 * config/rl78/rl78-c.c: Likewise.
17726 * config/rl78/rl78.c: Likewise.
17727 * config/rs6000/rs6000-c.c: Likewise.
17728 * config/rs6000/rs6000.c: Likewise.
17729 * config/rx/rx.c: Likewise.
17730 * config/s390/s390-c.c: Likewise.
17731 * config/s390/s390.c: Likewise.
17732 * config/sh/sh-c.c: Likewise.
17733 * config/sh/sh-mem.cc: Likewise.
17734 * config/sh/sh.c: Likewise.
17735 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17736 * config/sh/sh_treg_combine.cc: Likewise.
17737 * config/sol2-c.c: Likewise.
17738 * config/sol2-cxx.c: Likewise.
17739 * config/sol2-stubs.c: Likewise.
17740 * config/sol2.c: Likewise.
17741 * config/sparc/sparc-c.c: Likewise.
17742 * config/sparc/sparc.c: Likewise.
17743 * config/spu/spu-c.c: Likewise.
17744 * config/spu/spu.c: Likewise.
17745 * config/stormy16/stormy16.c: Likewise.
17746 * config/tilegx/mul-tables.c: Likewise.
17747 * config/tilegx/tilegx-c.c: Likewise.
17748 * config/tilegx/tilegx.c: Likewise.
17749 * config/tilepro/mul-tables.c: Likewise.
17750 * config/tilepro/tilepro-c.c: Likewise.
17751 * config/tilepro/tilepro.c: Likewise.
17752 * config/v850/v850-c.c: Likewise.
17753 * config/v850/v850.c: Likewise.
17754 * config/vax/vax.c: Likewise.
17755 * config/visium/visium.c: Likewise.
17756 * config/vms/vms-c.c: Likewise.
17757 * config/vms/vms.c: Likewise.
17758 * config/vxworks.c: Likewise.
17759 * config/winnt-c.c: Likewise.
17760 * config/xtensa/xtensa.c: Likewise.
17761 * common/config/bfin/bfin-common.c: Likewise.
17763 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
17765 * tree.h (tree_code_for_canonical_type_merging): New function.
17766 * tree.c (gimple_canonical_types_compatible_p): Use
17767 tree_code_for_canonical_type_merging..
17769 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17773 * doc/tm.texi: Regenerate.
17774 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
17775 * target.def (TARGET_RELAXED_ORDERING): Likewise.
17776 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
17777 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
17778 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
17779 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
17780 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
17781 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
17782 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
17784 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17786 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
17787 register fma steering pass.
17788 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
17789 AARCH64_TUNE_FMA_STEERING.
17791 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
17793 * tree.c (verify_type_variant): Verify that type and variant is
17795 (gimple_canonical_types_compatible_p): Look for main variants.
17797 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17799 * config.gcc (powerpc*-*-*): Add support for a new configure
17800 option --with-advance-toolchain=<xxx> which overrides using the
17801 default header files, libraries and dynamic linker.
17803 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
17804 specs to support the configure --with-advance-toolchain=<xxx>
17806 (INCLUDE_EXTRA_SPEC): Likewise.
17807 (LINK_OS_EXTRA_SPEC32): Likewise.
17808 (LINK_OK_EXTRA_SPEC64): Likewise.
17809 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
17810 (DYNAMIC_LINKER_PREFIX): Likewise.
17811 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
17813 (GLIBC_DYNAMIC_LINKER32): Likewise.
17814 (GLIBC_DYNAMIC_LINKER64): Likewise.
17815 (LINK_OS_LINUX_SPEC32): Likewise.
17816 (LINK_OS_LINUX_SPEC64): Likewise.
17818 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
17819 configuration option.
17821 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
17824 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
17825 to determine current function ABI.
17826 (ix86_function_value_regno_p): Ditto.
17828 2015-06-03 Martin Liska <mliska@suse.cz>
17830 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
17831 * bitmap.h (struct bitmap_usage): Likewise.
17832 * ggc-common.c (struct ggc_usage): Likewise.
17833 * mem-stats.h (struct mem_location): Likewise.
17834 (struct mem_usage): Likewise.
17835 * vec.c (struct vec_usage): Likewise.
17837 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
17839 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
17842 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
17844 * doc/plugins.texi (enum plugin_event): New event.
17845 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
17846 and PLUGIN_FINISH_FUNCTION.
17847 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
17848 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
17850 2015-06-03 Richard Biener <rguenther@suse.de>
17852 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17853 compute GROUP_GAP for the first element.
17854 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
17857 2015-06-03 Nick Clifton <nickc@redhat.com>
17859 * config/rl78/rl78-real.md: Add peepholes to avoid a register
17860 copy when calling a function.
17861 * config/rl78/rl78.c (need_to_save): Do not push the frame
17862 pointer in an interrupt handler prologue if it is never used.
17864 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17866 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
17868 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
17870 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
17871 reference when cloning alias node.
17873 2015-06-03 Martin Liska <mliska@suse.cz>
17875 * alloc-pool.h (struct pool_usage): Correct space padding.
17876 * ggc-page.c (ggc_print_statistics): Align columns in a report.
17877 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
17878 * tree.c (dump_tree_statistics): Align columns in a report.
17880 2015-06-03 Martin Liska <mliska@suse.cz>
17882 * alloc-pool.c (allocate_pool_descriptor): Remove.
17883 (struct pool_output_info): Likewise.
17884 (print_alloc_pool_statistics): Likewise.
17885 (dump_alloc_pool_statistics): Likewise.
17886 * alloc-pool.h (struct pool_usage): New struct.
17887 (pool_allocator::initialize): Change usage of memory statistics
17888 to a new interface.
17889 (pool_allocator::release): Likewise.
17890 (pool_allocator::allocate): Likewise.
17891 (pool_allocator::remove): Likewise.
17892 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
17893 for a pool allocator.
17894 * mem-stats.h (struct mem_location): Add new ctor.
17895 (struct mem_usage): Add counter for number of
17897 (mem_alloc_description::register_descriptor): New overload of
17898 * mem-stats.h (mem_location::to_string): New function.
17899 * bitmap.h (struct bitmap_usage): Use this new function.
17900 * ggc-common.c (struct ggc_usage): Likewise.
17903 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
17905 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
17906 of GCC_INSN_FLAGS_H block.
17908 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17910 * explow.c (plus_constant): Update check after force_const_mem call
17911 to see if the value returned is not a NULL_RTX.
17913 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
17915 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
17916 remove instumentation thunks calling reachable functions.
17917 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
17918 * lto/lto-partition.c (privatize_symbol_name_1): New.
17919 (privatize_symbol_name): Privatize both decl and orig_decl
17920 names for instrumented functions.
17921 * cgraph.c (cgraph_node::verify_node): Add transparent
17922 alias chain check for instrumented node.
17924 2015-06-03 Marek Polacek <polacek@redhat.com>
17928 * tree.c (attribute_value_equal): Handle attribute format.
17929 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
17931 2015-06-03 Richard Biener <rguenther@suse.de>
17933 PR tree-optimization/63916
17934 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17935 Forward-propagate non-invariant addresses by splicing their
17936 reference ops if the result isn't going to be used by PRE.
17937 (vn_reference_lookup_3): Remove pointless assert.
17939 2015-06-03 Richard Biener <rguenther@suse.de>
17941 PR tree-optimization/66375
17942 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
17943 add to the evolution before following SSA edges.
17945 2015-06-03 Bin Cheng <bin.cheng@arm.com>
17947 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
17948 (dump_use, dump_cand, find_induction_variables): Pass new argument
17950 (record_use): Preserve the ssa name information in IV.
17952 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
17954 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
17956 (add_mode_tests): Don't add mode tests if the predicate only
17957 accepts scalar constant integers. Otherwise, allow the mode
17958 of "op" to be VOIDmode if the predicate does accept such integers.
17960 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
17963 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
17964 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
17965 (aarch64_secondary_reload): Likewise
17966 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
17968 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
17971 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
17972 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17975 * cprop.c (try_replace_reg): Check cost of constants before propagating.
17977 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17979 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
17980 provide access to the IBM extended double floating point mode if
17981 long double is IEEE 128-bit floating point.
17982 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
17983 point if long double is the IBM extended double type.
17985 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
17986 enable adding IEEE 128-bit floating point support.
17987 (-mfloat128-software): Likewise.
17988 (-mfloat128-sw): Likewise.
17990 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
17991 128-bit floating point types to occupy any register if
17992 -mlong-double-64. Do not allow use of IFmode/KFmode unless
17993 -mfloat128-software is enabled.
17994 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
17996 (rs6000_option_override_internal): Add -mfloat128-* support.
17997 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
17999 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18000 and float128 type nodes.
18001 (ieee128_float_type_node): Likewise.
18002 (ibm128_float_type_node): Likewise.
18004 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18007 * config/aarch64/geniterators.sh: Rewrite in awk.
18009 2015-06-02 Martin Liska <mliska@suse.cz>
18011 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18012 values to avoid -Wmaybe-uninitialized errors.
18014 2015-06-02 Richard Biener <rguenther@suse.de>
18017 * dwarf2out.c (lookup_context_die): New function.
18018 (resolve_addr): Avoid forcing a full DIE for the
18019 target of a DW_TAG_GNU_call_site during late compilation.
18020 Instead create a stub DIE without a type if we have a
18021 context DIE present.
18023 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
18025 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18027 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18029 PR tree-optimization/48052
18030 * cfgloop.h (struct control_iv): New.
18031 (struct loop): New field control_ivs.
18032 * tree-ssa-loop-niter.c : Include "stor-layout.h".
18033 (number_of_iterations_lt): Set no_overflow information.
18034 (number_of_iterations_exit): Init control iv in niter struct.
18035 (record_control_iv): New.
18036 (estimate_numbers_of_iterations_loop): Call record_control_iv.
18037 (loop_exits_before_overflow): New. Interface factored out of
18038 scev_probably_wraps_p.
18039 (scev_probably_wraps_p): Factor loop niter related code into
18040 loop_exits_before_overflow.
18041 (free_numbers_of_iterations_estimates_loop): Free control ivs.
18042 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18044 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
18046 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18047 the target doesn't belong to the current function.
18049 2015-06-02 Marek Polacek <polacek@redhat.com>
18051 PR middle-end/66345
18052 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18053 get_maxval_strlen does not produce an INTEGER_CST.
18055 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
18057 * config/arc/constraints.md: Use lower-case names in match_code.
18058 * config/mmix/constraints.md: Likewise.
18060 2015-06-02 Richard Biener <rguenther@suse.de>
18062 PR tree-optimization/65961
18063 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18064 check and clarify dump message.
18065 (vect_build_slp_tree): If all children are built up from scalars
18066 build up the parent from scalars instead.
18067 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18069 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
18072 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
18073 instead of print ... .
18075 2015-06-02 Alan Modra <amodra@gmail.com>
18077 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18080 2015-06-02 Bin Cheng <bin.cheng@arm.com>
18082 PR tree-optimization/52563
18083 PR tree-optimization/62173
18084 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
18085 (alloc_iv, set_iv): New parameter.
18086 (determine_biv_step): Delete.
18087 (find_bivs): Inline original determine_biv_step. Pass new
18088 argument to set_iv.
18089 (idx_find_step): Use no_overflow information for conversion.
18090 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18091 resolve_mixers handle folded_casts.
18092 (instantiate_scev_name): Change bool parameter to bool pointer.
18093 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18094 (instantiate_array_ref, instantiate_scev_not): Ditto.
18095 (instantiate_scev_3, instantiate_scev_2): Ditto.
18096 (instantiate_scev_1, instantiate_scev_r): Ditto.
18097 (instantiate_scev_convert, ): Change parameter. Pass argument
18098 to chrec_convert_aggressive.
18099 (instantiate_scev): Change argument.
18100 (resolve_mixers): New parameter and set it.
18101 (scev_const_prop): New argument.
18102 * tree-scalar-evolution.h (resolve_mixers): New parameter.
18103 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18105 (chrec_convert): New parameter. Move definition below.
18106 (chrec_convert_aggressive): New parameter and set it. Call
18107 convert_affine_scev.
18108 * tree-chrec.h (chrec_convert): New parameter.
18109 (chrec_convert_aggressive): Ditto.
18111 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18113 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18114 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18115 the LHS of a no-return call if its type has variable size.
18116 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18117 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18119 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
18121 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18122 * config.in: Regenerate.
18124 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18126 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18127 consecutive accesses within outer-loop with force_vectorize
18128 for references with zero step in inner-loop.
18130 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18132 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18133 rather than from gcc/build directory.
18135 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18138 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18139 for __sync memory models, emit initial loads and final barriers as
18142 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
18145 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18146 (aarch64_split_atomic_op): Check for __sync memory models, emit
18147 appropriate initial loads and final barriers.
18149 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
18151 * Makefile.in: Fix gcov dependencies that should
18152 not point to a build folder.
18154 2015-06-01 Richard Biener <rguenther@suse.de>
18157 2015-05-29 Richard Biener <rguenther@suse.de>
18159 PR tree-optimization/66314
18160 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18161 parameter that says which loop the new block belongs to.
18162 (ssa_create_duplicates): Blocks duplicated for the threaded
18163 path belong to the loop of the thread destination.
18165 2015-06-01 Martin Liska <mliska@suse.cz>
18167 * sched-deps.c: Include pool-alloc.h before
18168 cselib.h header file is included.
18170 2015-06-01 Richard Biener <rguenther@suse.de>
18172 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18175 2015-06-01 Martin Liska <mliska@suse.cz>
18177 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18178 a function local variable.
18180 2015-06-01 Martin Liska <mliska@suse.cz>
18182 * alloc-pool.c (create_alloc_pool): Remove.
18183 (empty_alloc_pool): Likewise.
18184 (free_alloc_pool): Likewise.
18185 (free_alloc_pool_if_empty): Likewise.
18186 (pool_alloc): Likewise.
18187 (pool_free): Likewise.
18188 * alloc-pool.h: Remove old declarations.
18190 2015-06-01 Martin Liska <mliska@suse.cz>
18192 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18193 (ira_create_object): Likewise.
18194 (ira_create_allocno): Likewise.
18195 (ira_create_live_range): Likewise.
18196 (copy_live_range): Likewise.
18197 (ira_finish_live_range): Likewise.
18198 (ira_free_allocno_costs): Likewise.
18199 (finish_allocno): Likewise.
18200 (finish_allocnos): Likewise.
18201 (initiate_prefs): Likewise.
18202 (ira_create_pref): Likewise.
18203 (finish_pref): Likewise.
18204 (finish_prefs): Likewise.
18205 (initiate_copies): Likewise.
18206 (ira_create_copy): Likewise.
18207 (finish_copy): Likewise.
18208 (finish_copies): Likewise.
18209 (finish_prefs): Likewise.
18211 2015-06-01 Martin Liska <mliska@suse.cz>
18213 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18214 (allocate_and_init_ipcp_value): Likewise.
18215 (ipcp_lattice::add_value): Likewise.
18216 (merge_agg_lats_step): Likewise.
18217 (ipcp_driver): Likewise.
18218 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18219 (ipa_free_all_structures_after_iinln): Likewise.
18220 * ipa-prop.h: Likewise.
18222 2015-06-01 Martin Liska <mliska@suse.cz>
18224 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18226 (set_hint_predicate): Likewise.
18227 (inline_summary_alloc): Likewise.
18228 (reset_inline_edge_summary): Likewise.
18229 (reset_inline_summary): Likewise.
18230 (set_cond_stmt_execution_predicate): Likewise.
18231 (set_switch_stmt_execution_predicate): Likewise.
18232 (compute_bb_predicates): Likewise.
18233 (estimate_function_body_sizes): Likewise.
18234 (inline_free_summary): Likewise.
18236 2015-06-01 Martin Liska <mliska@suse.cz>
18238 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
18239 (ipa_edge_duplication_hook): Likewise.
18240 (ipa_free_all_structures_after_ipa_cp): Likewise.
18241 (ipa_free_all_structures_after_iinln): Likewise.
18243 2015-06-01 Martin Liska <mliska@suse.cz>
18245 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
18246 (ipa_profile_generate_summary): Likewise.
18247 (ipa_profile_read_summary): Likewise.
18248 (ipa_profile): Likewise.
18250 2015-06-01 Martin Liska <mliska@suse.cz>
18252 * tree-ssa-structalias.c (new_var_info): Use new type-based
18254 (new_constraint): Likewise.
18255 (init_alias_vars): Likewise.
18256 (delete_points_to_sets): Likewise.
18258 2015-06-01 Martin Liska <mliska@suse.cz>
18260 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
18261 (free_strinfo): Likewise.
18262 (pass_strlen::execute): Likewise.
18264 2015-06-01 Martin Liska <mliska@suse.cz>
18266 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
18268 (vn_reference_insert_pieces): Likewise.
18269 (vn_phi_insert): Likewise.
18270 (visit_reference_op_call): Likewise.
18271 (copy_phi): Likewise.
18272 (copy_reference): Likewise.
18273 (process_scc): Likewise.
18274 (allocate_vn_table): Likewise.
18275 (free_vn_table): Likewise.
18277 2015-06-01 Martin Liska <mliska@suse.cz>
18279 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
18281 (add_repeat_to_ops_vec): Likewise.
18282 (get_ops): Likewise.
18283 (maybe_optimize_range_tests): Likewise.
18284 (init_reassoc): Likewise.
18285 (fini_reassoc): Likewise.
18287 2015-06-01 Martin Liska <mliska@suse.cz>
18289 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
18291 (bitmap_set_new): Likewise.
18292 (get_or_alloc_expr_for_constant): Likewise.
18293 (get_or_alloc_expr_for): Likewise.
18294 (phi_translate_1): Likewise.
18295 (compute_avail): Likewise.
18296 (init_pre): Likewise.
18297 (fini_pre): Likewise.
18299 2015-06-01 Martin Liska <mliska@suse.cz>
18301 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
18302 (delete_dep_node): Likewise.
18303 (create_deps_list): Likewise.
18304 (free_deps_list): Likewise.
18305 (sched_deps_init): Likewise.
18306 (sched_deps_finish): Likewise.
18308 2015-06-01 Martin Liska <mliska@suse.cz>
18310 * regcprop.c (free_debug_insn_changes): Use new type-based
18312 (replace_oldest_value_reg): Likewise.
18313 (pass_cprop_hardreg::execute): Likewise.
18315 2015-06-01 Martin Liska <mliska@suse.cz>
18317 * ira-build.c (initiate_cost_vectors): Use new type-based
18319 (ira_allocate_cost_vector): Likewise.
18320 (ira_free_cost_vector): Likewise.
18321 (finish_cost_vectors): Likewise.
18323 2015-06-01 Martin Liska <mliska@suse.cz>
18325 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
18327 (free_sched_pools): Likewise.
18328 * sel-sched-ir.h (_list_alloc): Likewise.
18329 (_list_remove): Likewise.
18331 2015-06-01 Martin Liska <mliska@suse.cz>
18333 * stmt.c (add_case_node): Use new type-based pool allocator.
18334 (expand_case): Likewise.
18335 (expand_sjlj_dispatch_table): Likewise.
18337 2015-06-01 Martin Liska <mliska@suse.cz>
18339 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
18340 (free_bb): Likewise.
18341 (pass_cse_reciprocals::execute): Likewise.
18343 2015-06-01 Martin Liska <mliska@suse.cz>
18345 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
18346 (sra_deinitialize) Likewise.
18347 (create_access_1) Likewise.
18348 (build_accesses_from_assign) Likewise.
18349 (create_artificial_child_access) Likewise.
18351 2015-06-01 Martin Liska <mliska@suse.cz>
18353 * dse.c (get_group_info):Use new type-based pool allocator.
18354 (dse_step0) Likewise.
18355 (free_store_info) Likewise.
18356 (delete_dead_store_insn) Likewise.
18357 (free_read_records) Likewise.
18358 (record_store) Likewise.
18359 (replace_read) Likewise.
18360 (check_mem_read_rtx) Likewise.
18361 (scan_insn) Likewise.
18362 (dse_step1) Likewise.
18363 (dse_step7) Likewise.
18365 2015-06-01 Martin Liska <mliska@suse.cz>
18367 * df-scan.c (struct df_scan_problem_data):Use new type-based
18369 (df_scan_free_internal) Likewise.
18370 (df_scan_alloc) Likewise.
18371 (df_grow_reg_info) Likewise.
18372 (df_free_ref) Likewise.
18373 (df_insn_create_insn_record) Likewise.
18374 (df_mw_hardreg_chain_delete) Likewise.
18375 (df_insn_info_delete) Likewise.
18376 (df_free_collection_rec) Likewise.
18377 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
18378 (df_sort_and_compress_mws) Likewise.
18379 (df_ref_create_structure) Likewise.
18380 (df_ref_record) Likewise.
18382 2015-06-01 Martin Liska <mliska@suse.cz>
18384 * df-problems.c (df_chain_create):Use new type-based pool allocator.
18385 (df_chain_unlink_1) Likewise.
18386 (df_chain_unlink) Likewise.
18387 (df_chain_remove_problem) Likewise.
18388 (df_chain_alloc) Likewise.
18389 (df_chain_free) Likewise.
18390 * df.h (struct dataflow) Likewise.
18392 2015-06-01 Martin Liska <mliska@suse.cz>
18394 * cselib.c (new_elt_list):Use new type-based pool allocator.
18395 (new_elt_loc_list) Likewise.
18396 (unchain_one_elt_list) Likewise.
18397 (unchain_one_elt_loc_list) Likewise.
18398 (unchain_one_value) Likewise.
18399 (new_cselib_val) Likewise.
18400 (cselib_init) Likewise.
18401 (cselib_finish) Likewise.
18403 2015-06-01 Martin Liska <mliska@suse.cz>
18405 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
18406 (sh_reorg) Likewise.
18408 2015-06-01 Martin Liska <mliska@suse.cz>
18410 * cfg.c (initialize_original_copy_tables):Use new type-based
18412 (free_original_copy_tables) Likewise.
18413 (copy_original_table_clear) Likewise.
18414 (copy_original_table_set) Likewise.
18416 2015-06-01 Martin Liska <mliska@suse.cz>
18418 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
18420 (asan_mem_ref_new) Likewise.
18421 (free_mem_ref_resources) Likewise.
18423 2015-06-01 Martin Liska <mliska@suse.cz>
18425 * var-tracking.c (variable_htab_free):Use new type-based
18427 (attrs_list_clear) Likewise.
18428 (attrs_list_insert) Likewise.
18429 (attrs_list_copy) Likewise.
18430 (shared_hash_unshare) Likewise.
18431 (shared_hash_destroy) Likewise.
18432 (unshare_variable) Likewise.
18433 (var_reg_delete_and_set) Likewise.
18434 (var_reg_delete) Likewise.
18435 (var_regno_delete) Likewise.
18436 (drop_overlapping_mem_locs) Likewise.
18437 (variable_union) Likewise.
18438 (insert_into_intersection) Likewise.
18439 (canonicalize_values_star) Likewise.
18440 (variable_merge_over_cur) Likewise.
18441 (dataflow_set_merge) Likewise.
18442 (remove_duplicate_values) Likewise.
18443 (variable_post_merge_new_vals) Likewise.
18444 (dataflow_set_preserve_mem_locs) Likewise.
18445 (dataflow_set_remove_mem_locs) Likewise.
18446 (variable_from_dropped) Likewise.
18447 (variable_was_changed) Likewise.
18448 (set_slot_part) Likewise.
18449 (clobber_slot_part) Likewise.
18450 (delete_slot_part) Likewise.
18451 (loc_exp_insert_dep) Likewise.
18452 (notify_dependents_of_changed_value) Likewise.
18453 (emit_notes_for_differences_1) Likewise.
18454 (vt_emit_notes) Likewise.
18455 (vt_initialize) Likewise.
18456 (vt_finalize) Likewise.
18458 2015-06-01 Martin Liska <mliska@suse.cz>
18460 * ira-color.c (init_update_cost_records):Use new type-based
18462 (get_update_cost_record) Likewise.
18463 (free_update_cost_record_list) Likewise.
18464 (finish_update_cost_records) Likewise.
18465 (initiate_cost_update) Likewise.
18467 2015-06-01 Martin Liska <mliska@suse.cz>
18469 * lra.c (init_insn_regs): Use new type-based pool allocator.
18470 (new_insn_reg) Likewise.
18471 (free_insn_reg) Likewise.
18472 (free_insn_regs) Likewise.
18473 (finish_insn_regs) Likewise.
18474 (init_insn_recog_data) Likewise.
18475 (init_reg_info) Likewise.
18476 (finish_reg_info) Likewise.
18477 (lra_free_copies) Likewise.
18478 (lra_create_copy) Likewise.
18479 (invalidate_insn_data_regno_info) Likewise.
18481 2015-06-01 Martin Liska <mliska@suse.cz>
18483 * lra-lives.c (free_live_range): Use new type-based pool allocator.
18484 (free_live_range_list) Likewise.
18485 (create_live_range) Likewise.
18486 (copy_live_range) Likewise.
18487 (lra_merge_live_ranges) Likewise.
18488 (remove_some_program_points_and_update_live_ranges) Likewise.
18489 (lra_live_ranges_init) Likewise.
18490 (lra_live_ranges_finish) Likewise.
18492 2015-06-01 Martin Liska <mliska@suse.cz>
18494 * et-forest.c (et_new_occ): Use new type-based pool allocator.
18495 (et_new_tree): Likewise.
18496 (et_free_tree): Likewise.
18497 (et_free_tree_force): Likewise.
18498 (et_free_pools): Likewise.
18499 (et_split): Likewise.
18501 2015-06-01 Martin Liska <mliska@suse.cz>
18503 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
18505 * alloc-pool.h (pool_allocator::pool_allocator): New function.
18506 (pool_allocator::release): Likewise.
18507 (inline pool_allocator::release_if_empty): Likewise.
18508 (inline pool_allocator::~pool_allocator): Likewise.
18509 (pool_allocator::allocate): Likewise.
18510 (pool_allocator::remove): Likewise.
18512 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18514 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
18517 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18519 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
18521 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
18522 (arm_macro_fusion_p): Likewise.
18523 (arm_macro_fusion_pair_p): Likewise.
18525 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
18527 * config/aarch64/aarch64-protos.h (tune_params): Rename
18528 fuseable_ops to fusible_ops.
18529 * config/aarch64/aarch64.c (generic_tunings): Rename
18530 fuseable_ops to fusible_ops.
18531 (cortexa53_tunings): Likewise.
18532 (cortexa57_tunings): Likewise.
18533 (thunderx_tunings): Likewise.
18534 (xgene1_tunings): Likewise.
18535 (aarch64_macro_fusion_p): Likewise.
18536 (aarch64_macro_fusion_pair_p): Likewise.
18538 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
18540 * config/s390/driver-native.c: New file.
18541 * config/s390/x-native: New file.
18542 * config.host: Add new files for s390.
18543 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
18545 * config.gcc: Likewise.
18546 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
18547 * config/s390/s390-opts.h (enum processor_type): Ditto.
18548 * config/s390/s390.c (s390_option_override): Catch unhandled
18551 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
18554 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
18555 redirection for instrumented calls.
18556 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
18557 (append_compiler_options): Append -fcheck-pointer-bounds.
18558 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
18559 (chkp_redirect_edge): New.
18560 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
18561 (chkp_redirect_edge): New.
18563 2015-06-01 Richard Biener <rguenther@suse.de>
18565 PR tree-optimization/66280
18566 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
18569 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18571 * config/aarch64/aarch64.md
18572 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
18575 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
18577 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
18578 Remove obsolete kludge.
18580 2015-06-01 Richard Biener <rguenther@suse.de>
18582 * tree-ssa-reassoc.c (get_rank): Simplify.
18584 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
18586 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
18587 * configure: Regenerated.
18589 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
18591 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18592 issue (add space between string literal and macro).
18593 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
18595 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
18597 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
18598 implict or explicit -fPIE or -fpie.
18600 2015-05-30 Mike Frysinger <vapier@gentoo.org>
18602 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
18604 2015-05-28 DJ Delorie <dj@redhat.com>
18606 * expmed.c (extract_bit_field_1): Avoid clobbering a
18607 yet-to-be-used base/index register.
18609 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
18611 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
18612 (alias_stats): Add num_universal.
18613 (alias_set_subset_of): Special case pointers; be ready for NULL
18615 (alias_sets_conflict_p): Special case pointers; be ready for NULL
18617 (init_alias_set_entry): Break out from ...
18618 (record_alias_subset): ... here; propagate new fields;
18619 allocate children only when really needed.
18620 (get_alias_set): Do less generous pointer globbing.
18621 (dump_alias_stats_in_alias_c): Update statistics.
18623 2015-05-30 Alan Modra <amodra@gmail.com>
18625 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
18626 correct block for use of r12.
18627 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
18629 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18632 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
18635 2015-05-29 Jakub Jelinek <jakub@redhat.com>
18637 PR tree-optimization/66142
18638 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
18639 virtual phis that feed themselves.
18641 2015-05-29 Richard Biener <rguenther@suse.de>
18643 PR tree-optimization/66314
18644 * tree-ssa-threadupdate.c (create_block_for_threading): Add
18645 parameter that says which loop the new block belongs to.
18646 (ssa_create_duplicates): Blocks duplicated for the threaded
18647 path belong to the loop of the thread destination.
18649 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18651 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
18652 to cleanup-saved-temps.
18653 * doc/sourcebuild.texi (Clean up generated test files): Expand
18655 (dg-keep-saved-temps): Document new proc.
18656 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
18657 cleanup-saved-temps): Remove.
18659 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
18661 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
18662 gcc_AC_CHECK_DECLS.
18663 * configure: Regenerate.
18665 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18667 * config/nios2/linux.h (CPP_SPEC): Define.
18669 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18671 * config/microblaze/linux.h (CPP_SPEC): Define.
18673 2015-05-28 Mike Frysinger <vapier@gentoo.org>
18675 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
18676 -pthread is specified.
18678 2015-05-28 Richard Biener <rguenther@suse.de>
18680 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
18681 (vect_fixup_scalar_cycles_with_patterns): Likewise.
18682 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
18683 after pattern recog.
18684 (vect_create_epilog_for_reduction): Properly handle reductions
18686 (vectorizable_reduction): Likewise.
18687 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
18689 (vect_get_constant_vectors): Create the correct number of
18690 initial values for reductions.
18691 (vect_schedule_slp_instance): Handle reduction chains that are
18692 type changing properly.
18693 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
18695 2015-05-28 Richard Biener <rguenther@suse.de>
18697 PR tree-optimization/66142
18698 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
18699 values better in memcpy destination handling. Handle non-aliasing
18702 2015-05-28 Lawrence Velázquez <vq@larryv.me>
18705 * config/darwin-c.c (version_components): New global enum.
18706 (parse_version, version_as_legacy_macro)
18707 (version_as_modern_macro, macosx_version_as_macro): New functions.
18708 (version_as_macro): Remove.
18709 (darwin_cpp_builtins): Use new function.
18711 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
18713 * builtins.c (expand_builtin_acc_on_device): Mark parameters
18714 with ATTRIBUTE_UNUSED.
18716 2015-05-28 Julian Brown <julian@codesourcery.com>
18720 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
18721 sequence for !ACCEL_COMPILER.
18723 2015-05-28 Nick Clifton <nickc@redhat.com>
18725 * config/rx/rx.c (push_regs): New function. Extracts code from...
18726 (rx_expand_prologue): ... here. Use push_regs to push even small
18727 spans of registers.
18728 (pop_regs): New function.
18729 (rx_expand_epilogue): Use pop_regs to pop even small spans of
18732 2015-05-28 Richard Biener <rguenther@suse.de>
18734 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
18736 (SLP_INSTANCE_BODY_COST_VEC): Remove.
18737 (vect_update_slp_costs_according_to_vf): Likewise.
18738 (vect_slp_analyze_operations): Update prototype.
18739 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
18740 vect_update_slp_costs_according_to_vf, adjust.
18741 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
18742 (vect_analyze_slp_cost_1): Likewise.
18743 (vect_analyze_slp_cost): Likewise. Properly deal with
18744 widening reduction ops. Commit body costs.
18745 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
18746 cost for loops from here.
18747 (vect_slp_analyze_operations): But do it from here when
18748 the vectorization factor is known and stmts are analyzed.
18749 (vect_bb_vectorization_profitable_p): Simplify.
18750 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
18751 (vect_update_slp_costs_according_to_vf): Remove.
18753 2015-05-27 Magnus Granberg <zorry@gentoo.org>
18754 H.J. Lu <hongjiu.lu@intel.com>
18756 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
18757 (BUILD_CFLAGS): Likewise.
18758 (BUILD_CXXFLAGS): Likewise.
18759 (LINKER): Add @NO_PIE_FLAG@.
18760 (BUILD_LDFLAGS): Likewise.
18761 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
18762 --enable-default-pie.
18763 * common.opt (fPIE): Initialize to -1.
18765 (no-pie): New option.
18766 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
18767 * configure.ac: Add --enable-default-pie.
18768 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
18769 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
18770 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
18771 * gcc.c (NO_PIE_SPEC): New.
18772 (PIE_SPEC): Likewise.
18773 (NO_FPIE1_SPEC): Likewise.
18774 (FPIE1_SPEC): Likewise.
18775 (NO_FPIE2_SPEC): Likewise.
18776 (FPIE2_SPEC): Likewise.
18777 (NO_FPIE2_SPEC): Likewise.
18778 (FPIE_SPEC): Likewise.
18779 (NO_FPIE_SPEC): Likewise.
18780 (NO_FPIC1_SPEC): Likewise.
18781 (FPIC1_SPEC): Likewise.
18782 (NO_FPIC2_SPEC): Likewise.
18783 (FPIC2_SPEC): Likewise.
18784 (NO_FPIC2_SPEC): Likewise.
18785 (FPIC_SPEC): Likewise.
18786 (NO_FPIC_SPEC): Likewise.
18787 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
18788 (FPIE1_OR_FPIC1_SPEC): Likewise.
18789 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
18790 (FPIE2_OR_FPIC2_SPEC): Likewise.
18791 (NO_FPIE_AND_FPIC_SPEC): Likewise.
18792 (FPIE_OR_FPIC_SPEC): Likewise.
18793 (LD_PIE_SPEC): Likewise.
18794 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
18795 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
18796 * config/darwin.h (PIE_SPEC): Renamed to ...
18797 (DARWIN_PIE_SPEC): This.
18798 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
18799 * config/darwin9.h (PIE_SPEC): Renamed to ...
18800 (DARWIN_PIE_SPEC): This.
18801 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
18802 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18803 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
18804 FPIE2_OR_FPIC2_SPEC.
18805 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
18806 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
18807 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
18808 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18809 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18810 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
18811 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
18812 * config/m32r/m32r.h (ASM_SPEC): Likewise.
18813 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
18814 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18815 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
18816 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
18817 * config/sparc/linux.h (ASM_SPEC): Likewise.
18818 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18819 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
18820 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
18821 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18822 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18823 * config/sparc/sparc.h (ASM_SPEC): Likewise.
18824 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
18825 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
18826 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
18827 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
18828 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
18829 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
18830 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
18831 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
18832 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
18833 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
18834 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
18835 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
18836 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18837 * config/vax/linux.h (ASM_SPEC): Likewise.
18838 * doc/install.texi: Document --enable-default-pie.
18839 * doc/invoke.texi: Document -no-pie.
18840 * config.in: Regenerated.
18841 * configure: Likewise.
18843 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18845 PR rtl-optimization/66168
18846 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
18847 can_move_invariant_reg.
18849 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
18852 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
18853 REG_EQUAL note when doing insert.
18855 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
18856 instead of "%d" for 'o' operand.
18858 2015-05-27 Nathan Sidwell <nathan@acm.org>
18861 * tree.c (build_pointer_type_for_mode): Canonical type does not
18862 inherit can_alias_all.
18863 (build_reference_type_for_mode): Likewise.
18865 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
18867 * expr.h (array_at_struct_end_p): Move to...
18868 (array_ref_element_size): Likewise.
18869 (component_ref_field_offset): Likewise.
18870 * tree.h (array_ref_element_size): ...here.
18871 (array_at_struct_end_p): Likewise.
18872 (component_ref_field_offset): Likewise.
18873 * expr.c (array_ref_element_size): Move to...
18874 (array_ref_low_bound): Likewise.
18875 (array_at_struct_end_p): Likewise.
18876 (array_ref_up_bound): Likewise.
18877 (component_ref_field_offset): Likewise.
18878 * tree.c (array_ref_element_size): ...here.
18879 (array_ref_low_bound): Likewise.
18880 (array_ref_up_bound): Likewise.
18881 (array_at_struct_end_p): Likewise.
18882 (component_ref_field_offset): Likewise.
18884 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
18885 Szabolcs Nagy <szabolcs.nagy@arm.com>
18887 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
18889 2015-05-27 Jason Merrill <jason@redhat.com>
18892 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
18893 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
18894 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
18896 2015-05-22 Aditya Kumar <hiraditya@msn.com>
18898 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
18901 * statistics.c (statistics_fini_pass): Print pass name.
18903 2015-05-27 Richard Biener <rguenther@suse.de>
18905 PR tree-optimization/66272
18907 2014-08-15 Richard Biener <rguenther@suse.de>
18909 PR tree-optimization/62031
18910 * tree-data-ref.c (dr_analyze_indices): Do not set
18911 DR_UNCONSTRAINED_BASE.
18912 (dr_may_alias_p): All indirect accesses have to go the
18913 formerly DR_UNCONSTRAINED_BASE path.
18914 * tree-data-ref.h (struct indices): Remove
18915 unconstrained_base member.
18916 (DR_UNCONSTRAINED_BASE): Remove.
18918 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
18920 * dwarf2out.c: Remove block_map.
18921 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
18922 (gen_lexical_block_die): Same.
18923 (dwarf2out_function_decl): Remove block_map use.
18924 (dwarf2out_c_finalize): Same.
18925 * tree-core.h (struct tree_block): Add die field.
18926 * tree.h (BLOCK_DIE): New.
18928 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18931 * expr.c (memory_load_overlap): New function.
18932 (emit_push_insn): When pushing partial args to the stack would
18933 clobber the register part load the overlapping part into a pseudo
18934 and put it into the hard reg after pushing. Change return type
18935 to bool. Add bool argument.
18936 * expr.h (emit_push_insn): Change return type to bool.
18938 * calls.c (expand_call): Cancel sibcall optimization when encountering
18939 partial argument on targets with ARGS_GROW_DOWNWARD and
18940 !STACK_GROWS_DOWNWARD.
18941 (emit_library_call_value_1): Update callsite of emit_push_insn.
18942 (store_one_arg): Likewise.
18944 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
18946 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
18948 2015-05-27 Martin Liska <mliska@suse.cz>
18950 * Makefile.in: Add additional dependencies related to memory report
18952 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
18953 * bitmap.c (struct bitmap_descriptor_d): Remove.
18954 (struct loc): Likewise.
18955 (struct bitmap_desc_hasher): Likewise.
18956 (bitmap_desc_hasher::hash): Likewise.
18957 (bitmap_desc_hasher::equal): Likewise.
18958 (get_bitmap_descriptor): Likewise.
18959 (bitmap_register): User new memory descriptor API.
18960 (register_overhead): Likewise.
18961 (bitmap_find_bit): Register nsearches and search_iter statistics.
18962 (struct bitmap_output_info): Remove.
18963 (print_statistics): Likewise.
18964 (dump_bitmap_statistics): Use new memory descriptor.
18965 * bitmap.h (struct bitmap_usage): New class.
18966 * genmatch.c: Extend header file inclusion.
18967 * genpreds.c: Likewise.
18968 * ggc-common.c (struct ggc_usage): New class.
18969 (struct ggc_loc_desc_hasher): Remove.
18970 (ggc_loc_desc_hasher::hash): Likewise.
18971 (ggc_loc_desc_hasher::equal): Likewise.
18972 (struct ggc_ptr_hash_entry): Likewise.
18973 (struct ptr_hash_hasher): Likewise.
18974 (ptr_hash_hasher::hash): Likewise.
18975 (ptr_hash_hasher::equal): Likewise.
18976 (make_loc_descriptor): Likewise.
18977 (ggc_prune_ptr): Likewise.
18978 (dump_ggc_loc_statistics): Use new memory descriptor.
18979 (ggc_record_overhead): Likewise.
18980 (ggc_free_overhead): Likewise.
18981 (final_cmp_statistic): Remove.
18982 (cmp_statistic): Likewise.
18983 (ggc_add_statistics): Liekwise.
18984 (ggc_prune_overhead_list): Likewise.
18985 * hash-map-traits.h: New file.
18986 * hash-map.h (struct default_hashmap_traits): Move the traits to a
18987 separate header file.
18988 * hash-set.h: Pass memory statistics info to ctor.
18989 * hash-table.c (void dump_hash_table_loc_statistics): New function.
18990 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
18991 (hash_table::~hash_table): Register memory release operation.
18992 (hash_table::alloc_entries): Handle memory allocation operation.
18993 (hash_table::expand): Likewise.
18994 * inchash.c (iterative_hash_hashval_t): Move implementation to header
18996 (iterative_hash_host_wide_int): Likewise.
18997 * inchash.h (class hash): Likewise.
18998 * mem-stats-traits.h: New file.
18999 * mem-stats.h: New file.
19000 (mem_location): Add new class.
19001 (mem_usage): Likewise.
19002 (mem_alloc_description): Likewise.
19003 * sese.c: Add new header file inclusision.
19004 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19006 * tree-sra.c: Add new header file inclusision.
19007 * vec.c (struct vec_descriptor): Remove.
19008 (hash_descriptor): Likewise.
19009 (struct vec_usage): Likewise.
19010 (struct ptr_hash_entry): Likewise.
19011 (hash_ptr): Likewise.
19012 (eq_ptr): Likewise.
19013 (vec_prefix::register_overhead): Use new memory descriptor API.
19014 (vec_prefix::release_overhead): Likewise.
19015 (add_statistics): Remove.
19016 (dump_vec_loc_statistics): Use new memory descriptor API.
19017 * vec.h (struct vec_prefix): Likewise.
19018 (va_heap::reserve): Likewise.
19019 (va_heap::release): Likewise.
19020 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19022 2015-05-27 Richard Biener <rguenther@suse.de>
19024 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19025 earlier and remove ??? comment.
19026 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19027 and got called from loop analysis bail out. Always pass the SLP
19028 node to the vectorizable_* functions.
19029 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19030 the premature SLP check here.
19031 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19032 detected SLP stmts.
19033 (vect_detect_hybrid_slp_1): Likewise.
19035 2015-05-26 Jeff Law <law@redhat.com>
19037 * combine.c (find_split_point): Verify that the shift count is a
19038 constant when choosing (plus (ashift ...)) as a split point.
19040 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19041 No functional changes.
19043 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
19045 * ipa-polymorphic-call.c
19046 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19047 case when call target is already known.
19049 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
19052 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19053 take into account the case that operands[1] and operands[2]
19054 are the same register.
19056 2015-05-26 Michael Matz <matz@suse.de>
19058 PR middle-end/66251
19060 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19062 (vect_create_vectorized_demotion_stmts): Always set
19063 STMT_VINFO_VEC_STMT, also with SLP.
19064 (vectorizable_store): Handle strided group stores.
19066 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19069 * config/aarch64/aarch64.md
19070 (*adds_shift_imm_<mode>): New pattern.
19071 (*subs_shift_imm_<mode>): Likewise.
19072 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19073 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19074 (*add_uxt<mode>_shift2): Likewise.
19075 (*add_uxtsi_shift2_uxtw): Likewise.
19076 (*sub_uxt<mode>_shift2): Likewise.
19077 (*sub_uxtsi_shift2_uxtw): Likewise.
19079 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
19081 * config/rs6000/constraints.md (Y, U): Use match_test.
19083 2015-05-26 Christian Bruel <christian.bruel@st.com>
19086 * config/arm/arm.c (arm_option_check_internal)
19087 (arm_option_params_internal): Check opts->target_flags to set macros.
19088 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19089 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19090 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19091 (builtin_define): Replaced with def_or_undef_macro.
19092 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19093 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19094 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19095 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19096 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19097 (TARGET_ARM_FEATURE_LDREX_P)
19098 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19099 * config/arm/arm-c.c (def_or_undef_macro): New function.
19100 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19102 2015-05-26 Christian Bruel <christian.bruel@st.com>
19104 * c-common.h (builtin_define_with_int_value)
19105 (builtin_define_type_sizeof): Declare.
19106 * c-cppbuiltin.c (builtin_define_with_int_value)
19107 (builtin_define_type_sizeof): Externalize.
19108 (builtin_define_std): Cleanup declaration.
19109 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19110 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19111 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19112 (builtin_define, builtin_assert): New macros.
19114 2015-05-26 Richard Biener <rguenther@suse.de>
19116 PR tree-optimization/66142
19117 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19118 MEM_REFs for the same base address.
19120 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19123 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19125 2015-05-26 Jason Merrill <jason@redhat.com>
19127 * configure.ac: Set CXXFLAGS for ISL test.
19128 * configure: Regenerate.
19130 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
19131 strstr and basename.
19132 * configure: Regenerate.
19134 2015-05-26 Richard Biener <rguenther@suse.de>
19136 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19137 X % C -> X & (C - 1) for C being a power-of two to ...
19138 * match.pd: ... patterns.
19140 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
19142 * match.pd (swapped_tcc_comparison): New operator list.
19143 (-A CMP -B): New simplification.
19144 * fold-const.c (fold_comparison): Remove corresponding code.
19146 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19148 * caller-save.c (init_caller_save): Base temporary register numbers
19149 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19150 * cfgloopanal.c (init_set_costs): Likewise.
19151 * dojump.c (prefer_and_bit_test): Likewise.
19152 * expr.c (init_expr_target): Likewise.
19153 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19154 * lower-subreg.c (init_lower_subreg): Likewise.
19155 * postreload.c (reload_cse_regs_1): Likewise.
19157 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
19159 * gensupport.h (compute_test_codes): Declare.
19160 * gensupport.c (compute_predicate_codes): Rename to...
19161 (compute_test_codes): ...this. Generalize error message.
19162 (process_define_predicate): Update accordingly.
19163 * genpreds.c (compute_maybe_allows): Delete.
19164 (add_constraint): Use compute_test_codes to determine whether
19165 something can accept a SUBREG, REG or MEM.
19167 2015-05-26 Torvald Riegel <triegel@redhat.com>
19169 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19170 'memory model' to align with C++11; fix description of memory orders;
19173 2015-05-26 Richard Biener <rguenther@suse.de>
19175 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19176 (vect_analyze_loop_operations): ... here. Remove slp parameter,
19177 detect whether we apply SLP. Remove call to
19178 vect_update_slp_costs_according_to_vf.
19179 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19180 vect_update_slp_costs_according_to_vf from here. Dispatch
19181 to vect_slp_analyze_operations to analyze SLP stmts.
19182 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19183 unused bb_vec_info parameter, adjust assert.
19184 (vect_slp_analyze_operations): Pass in the slp instance tree
19185 instead of bb_vec_info.
19186 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19187 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19189 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19191 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19192 Q_REGS. Expand comment.
19193 (REG_CLASS_NAMES): Ditto.
19194 (REG_CLASS_CONTENTS): Ditto.
19196 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
19199 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19200 when LEGACY_INT_REGNO_P is processed.
19202 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
19204 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19206 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19208 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19209 register if not marked dead/unused, before return.
19211 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19214 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19215 is set; check for assembler name at LTO time.
19216 (type_in_anonymous_namespace): Remove hacks, check that all
19217 anonymous types are called "<anon>"
19218 (odr_type_p): Simplify; add check for "<anon>"
19219 (odr_subtypes_equivalent): Add odr_type_p check.
19220 * tree.c (need_assembler_name_p): Even anonymous namespace needs
19223 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19225 * ipa-utils.h (method_class_type): Remove.
19226 * cgraphunit.c (walk_polymorphic_call_targets): Use
19227 TYPE_METHOD_BASETYPE.
19228 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
19229 on main variants only.
19230 (method_class_type): Remove.
19231 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
19232 (build_type_inheritance_graph): Likewise.
19233 * ipa-icf.c (sem_function::equals_wpa): Likewise.
19234 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
19235 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
19237 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
19239 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
19240 is_typedef_decl, typedef_variant_p): Constify.
19241 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
19242 is_typedef_decl, typedef_variant_p): Constify.
19244 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19246 * defaults.h (gen_tablejump): New function.
19247 (HAVE_tablejump): Add default value.
19249 * stmt.c: Likewise.
19251 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19253 * defaults.h (gen_store_multiple): New function.
19254 (HAVE_store_multiple): Add default value.
19255 * expr.c (move_block_from_reg): Adjust.
19257 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19259 * defaults.h (gen_load_multiple): New function.
19260 (HAVE_load_multiple): Add default value.
19261 * expr.c (move_block_to_reg): Adjust.
19263 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19265 * defaults.h (gen_mem_signal_fence): New function.
19266 (HAVE_mem_signal_fence): Add default value.
19267 * optabs.c: Adjust.
19269 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19271 * defaults.h (gen_memory_barrier): New function.
19272 (HAVE_memory_barrier): Add default value.
19273 * optabs.c: Adjust.
19275 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19277 * defaults.h (gen_mem_thread_fence): New function.
19278 (HAVE_mem_thread_fence): Add default definition.
19279 * optabs.c: Adjust.
19281 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19283 * combine.c (find_split_point): Check the value of HAVE_lo_sum
19284 instead of if it is defined.
19285 (combine_simplify_rtx): Likewise.
19286 * lra-constraints.c (process_address_1): Likewise.
19287 * config/darwin.c: Adjust.
19288 * genconfig.c (main): Always define HAVE_lo_sum.
19290 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19292 * genmatch.c (parser::parse_operation): Reject expanding
19293 operator-list inside 'for'.
19295 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19297 * genmatch.c (parser::parse_for): Reject iterator if used as
19300 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19302 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
19303 after end of id-list.
19305 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19307 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
19308 we do not try to compute canonical type for type that does not need
19310 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
19312 * tree.h (type_with_alias_set_p): New.
19314 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
19316 * tree.c (gimple_canonical_types_compatible_p): Do not compare
19317 function attributes.
19318 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
19320 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
19322 * Makefile.in (check_gcc_parallelize): Delete.
19323 (lang_checks_parallelized): Update comment.
19325 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
19327 PR rtl-optimization/66237
19328 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
19329 location of an "as_a" cast.
19331 2015-05-22 Jeff Law <law@redhat.com>
19333 * config/pa/pa.md (non-canonical shift-add insns): Remove.
19334 (peepholes with non-canonical RTL sources): Remove.
19335 (peepholes for indexed stores of FP regs in integer modes): Match and
19336 generate canonical RTL.
19338 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19340 PR tree-optimization/63387
19341 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
19342 ((x ord x) & (y ord y) -> (x ord y),
19343 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
19344 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
19345 vectors like scalars.
19347 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19349 * convert.c (convert_to_integer, convert_to_vector): Include the
19350 types in the error message.
19352 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
19354 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
19357 2015-05-22 Jeff Law <law@redhat.com>
19359 * config/pa/pa.md (integer_indexed_store splitters): Use
19360 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
19361 insns -- adjusting the constant 2nd operand accordingly.
19363 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
19364 (plus (ashift X log2) Y) if it is a split point.
19366 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
19367 out of hppa_legitimize_address to handle both forms of a multiply
19369 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
19370 Always generate the ASHIFT variant as the result is not directly
19371 used in a MEM. Update comments and refactor slightly to improve
19374 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19377 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
19378 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
19379 (aarch64_composite_type_p): Return false if given type and mode are
19380 for a short vector.
19382 2015-05-22 Richard Biener <rguenther@suse.de>
19384 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
19386 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
19387 patterns when determining whether SLP is pure.
19388 (vect_is_slp_reduction): Remove check for pattern stmts.
19389 (vect_is_simple_reduction_1): Remove dead code.
19390 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
19391 (vect_get_and_check_slp_defs): Pass in the stmt number.
19392 Allow the first def in a reduction to be not a pattern stmt when
19393 the rest of the stmts def are patterns.
19394 (vect_build_slp_tree_1): Allow tcc_expression codes like
19395 SAD_EXPR and DOT_PROD_EXPR.
19396 (vect_build_slp_tree): Adjust.
19397 (vect_analyze_slp): Refactor and move BB vect error message ...
19398 (vect_slp_analyze_bb_1): ... here.
19400 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
19402 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
19403 for CSWTCH temporary.
19405 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19407 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
19408 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
19411 2015-05-22 Richard Biener <rguenther@suse.de>
19413 PR tree-optimization/66251
19414 * tree-vect-stmts.c (vectorizable_conversion): Properly
19415 set STMT_VINFO_VEC_STMT even for the SLP case.
19417 2015-05-22 Marek Polacek <polacek@redhat.com>
19419 * doc/extend.texi: Use @pxref instead of @xref.
19421 2015-05-22 hiraditya <hiraditya@msn.com>
19423 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
19426 2015-05-22 Richard Biener <rguenther@suse.de>
19428 PR tree-optimization/65701
19429 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19430 Move peeling cost models into one place. Peel for alignment
19431 for single loads only if an aligned load is cheaper than
19434 2015-05-22 Marek Polacek <polacek@redhat.com>
19437 * doc/extend.texi (Enumerator Attributes): New section.
19438 Document syntax of enumerator attributes.
19440 2015-05-22 Richard Biener <rguenther@suse.de>
19442 * tree-vect-loop.c (get_reduction_op): New function.
19443 (vect_model_reduction_cost): Use it, add reduc_index parameter.
19444 Make ready for BB reductions.
19445 (vect_create_epilog_for_reduction): Use get_reduction_op.
19446 (vectorizable_reduction): Init reduc_index to a valid value.
19447 Adjust vect_model_reduction_cost call.
19448 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
19449 operand for reduction defaults. Add SAD_EXPR support.
19450 Assert we have a neutral op for SLP reductions.
19451 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
19452 walking pattern stmt ops only recurse to SSA names.
19454 2015-05-22 Richard Biener <rguenther@suse.de>
19456 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
19457 assert with guard, remove check on detected reduction.
19458 (vect_recog_sad_pattern): Likewise.
19459 (vect_recog_widen_sum_pattern): Likewise.
19461 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19463 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
19464 __always_inline__ attribute.
19465 (vaesdq_u8): Likewise.
19466 (vaesmcq_u8): Likewise.
19467 (vaesimcq_u8): Likewise.
19468 (vsha1cq_u32): Likewise.
19469 (vsha1mq_u32): Likewise.
19470 (vsha1pq_u32): Likewise.
19471 (vsha1h_u32): Likewise.
19472 (vsha1su0q_u32): Likewise.
19473 (vsha1su1q_u32): Likewise.
19474 (vsha256hq_u32): Likewise.
19475 (vsha256h2q_u32): Likewise.
19476 (vsha256su0q_u32): Likewise.
19477 (vsha256su1q_u32): Likewise.
19478 (vmull_p64): Likewise.
19479 (vmull_high_p64): Likewise.
19481 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19483 * final.c (final_scan_insn): Don't check HAVE_peephole with the
19485 * output.h: Likewise.
19486 * genconfig.c (main): Alwways define HAVE_peephole.
19487 * genpeep.c: Don't emit checks of HAVE_peephole.
19489 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19491 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
19492 check HAVE_conditional_move with the preprocessor.
19494 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19496 * genconfig.c (main): Always define HAVE_conditional_move.
19497 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
19498 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
19501 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19503 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
19504 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
19505 and FRAME_POINTER_REGNUM with the preprocessor.
19507 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19509 * defaults.h: Add default for STACK_PUSH_CODE.
19510 * expr.c: Don't redefine STACK_PUSH_CODE.
19511 * recog.c: Likewise.
19513 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19515 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
19516 sched-deps.c: Use if instead of preprocessor checks with
19517 STACK_GROWS_DOWNWARD.
19519 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19521 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
19523 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
19524 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
19525 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
19526 * doc/tm.texi: Regenerate.
19528 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
19531 * config/i386/constraints.md (Bg): New constraint for GOT memory
19533 * config/i386/i386.md (*call_got_x32): New pattern.
19534 (*call_value_got_x32): Likewise.
19535 * config/i386/predicates.md (GOT_memory_operand): New predicate.
19537 2015-05-21 Jakub Jelinek <jakub@redhat.com>
19539 PR tree-optimization/66233
19540 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
19543 2015-05-21 Jeff Law <law@redhat.com>
19545 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
19546 than MULT for shadd sequences.
19548 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
19550 * alias.c (alias_stats): New static var.
19551 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
19552 (dump_alias_stats_in_alias_c): New function.
19553 * alias.h (dump_alias_stats_in_alias_c): Declare.
19554 * tree-ssa-alias.c (dump_alias_stats): Call it.
19556 2015-05-08 Michael Matz <matz@suse.de>
19558 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
19560 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
19561 (STMT_VINFO_STRIDED_P): ... this.
19562 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
19563 (vect_verify_datarefs_alignment): Likewise.
19564 (vect_enhance_data_refs_alignment): Likewise.
19565 (vect_analyze_data_ref_access): Likewise.
19566 (vect_analyze_data_refs): Accept strided stores.
19567 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
19568 (vect_model_load_cost): Adjust for macro rename.
19569 (vectorizable_mask_load_store): Likewise.
19570 (vectorizable_load): Likewise.
19571 (vectorizable_store): Open code strided stores.
19573 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19575 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
19576 Document sqrt_insn.
19578 2015-05-21 Richard Biener <rguenther@suse.de>
19581 * match.pd: Guard pattern optimzing (int)(float)int
19582 conversions to apply only on GIMPLE.
19584 2015-05-21 Jeff Law <law@redhat.com>
19586 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
19587 multiply-accumulate/shift-add insn generation.
19589 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19592 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
19593 operands[1] are the same.
19595 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
19597 PR middle-end/66221
19598 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
19599 build_distinct_type_copy to copy bounds.
19601 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
19603 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
19604 Change to unsigned int.
19606 2015-05-20 Jeff Law <law@redhat.com>
19608 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
19609 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
19610 (pa_shadd_constant_p): Allow constants for shadd insns rather
19611 than valid scaling constants for memory addresses.
19612 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
19613 * config/pa/predicates.md (mem_shadd_operand): New predicate.
19614 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
19615 (shift-add insns using ASHIFT): New patterns.
19617 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
19619 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
19621 (fix_up_fall_thru_edges): Likewise.
19622 (fix_crossing_conditional_branches): Likewise. Promote jump targets
19623 from to rtx_insn to rtx_code_label where feasible.
19624 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
19625 gen_move_insn (returned type changed to rtx_insn).
19626 * builtins.c (expand_errno_check): Fix arguments of
19627 do_compare_rtx_and_jump (now expects rtx_code_label).
19628 (expand_builtin_acc_on_device): Likewise.
19629 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
19630 invert_jump (now exprects rtx_jump_insn).
19631 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
19632 (construct_init_block): Use rtx_code_label.
19633 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
19634 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
19635 calling redirect_jump.
19636 (patch_jump_insn): Likewise.
19637 (redirect_branch_edge): Likewise.
19638 (force_nonfallthru_and_redirect): Likewise.
19639 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
19641 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
19642 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
19643 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
19644 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
19645 to store the value retured by gen_label_rtx.
19646 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
19648 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
19649 (split_branches): Fix calls of redirect_jump.
19650 * dojump.c (jumpifnot): Promote argument type from rtx to
19652 (jumpifnot_1): Likewise.
19653 (jumpif): Likewise.
19654 (jumpif_1): Likewise.
19655 (do_jump_1): Likewise.
19656 (do_jump): Likewise. Use rtx_code_label when feasible.
19657 (do_jump_by_parts_greater_rtx): Likewise.
19658 (do_jump_by_parts_zero_rtx): Likewise.
19659 (do_jump_by_parts_equality_rtx): Likewise.
19660 (do_compare_rtx_and_jump): Likewise.
19661 * dojump.h: Update function prototypes.
19662 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
19664 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
19666 (emit_label_before): Likewise.
19667 (emit_jump_insn_after_noloc): Likewise.
19668 (emit_jump_insn_after_setloc): Likewise.
19669 (emit_jump_insn_after): Likewise
19670 (emit_jump_insn_before_setloc): Likewise.
19671 (emit_jump_insn_before): Likewise.
19672 (emit_label_before): Promote return type to rtx_code_label.
19673 (emit_label): Likewise.
19674 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
19675 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
19677 (emit_stack_restore): Likewise.
19678 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
19679 (do_cmp_and_jump): Likewise.
19680 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
19681 from rtx to rtx_code_label.
19682 (gen_move_insn_uncast): New function.
19683 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
19684 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
19685 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
19686 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
19687 invert_jump_1 and redirect_jump_1.
19688 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
19689 do_compare_rtx_and_jump.
19690 (expand_addsub_overflow): Likewise.
19691 (expand_neg_overflow): Likewise.
19692 (expand_mul_overflow): Likewise.
19693 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
19694 return value of gen_move_insn.
19695 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
19696 * loop-doloop.c (add_test): Use rtx_code_label.
19697 (doloop_modify): Likewise.
19698 (doloop_optimize): Likewise.
19699 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
19700 * lra-constraints.c (emit_spill_move): Remove cast of value returned
19702 (inherit_reload_reg): Add cast when calling dump_insn_slim.
19703 (split_reg): Likewise.
19704 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
19706 * optabs.c (expand_binop_directly): Remove casts of values returned by
19708 (expand_unop_direct): Likewise.
19709 (expand_abs): Likewise.
19710 (maybe_emit_unop_insn): Likewise.
19711 (maybe_gen_insn): Promote return type to rtx_insn.
19712 * optabs.h: Update prototype of maybe_gen_insn.
19713 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
19715 * recog.c (struct peep2_insn_data): Promote type of insn field to
19717 (peep2_reinit_state): Use NULL instead of NULL_RTX.
19718 (peep2_attempt): Remove casts of insn in peep2_insn_data.
19719 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
19720 * recog.h (struct insn_gen_fn): Promote return types of function
19721 pointers and operator ().from rtx to rtx_insn.
19722 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
19723 (fill_eager_delay_slots): Likewise.
19724 (relax_delay_slots): Likewise.
19725 (make_return_insns): Likewise.
19726 (dbr_schedule): Likewise.
19727 (optimize_skips): Likewise.
19728 (reorg_redirect_jump): Likewise.
19729 (fill_slots_from_thread): Likewise.
19730 * reorg.h: Update prototypes.
19731 * resource.c (find_dead_or_set_registers): Use dyn_cast to
19732 rtx_jump_insn instead of check. Use it's jump_target method.
19733 * rtl.h (rtx_jump_insn::jump_label): Define new method.
19734 (rtx_jump_insn::jump_target): Define new method.
19735 (rtx_jump_insn::set_jump_target): Define new method.
19736 * rtlanal.c (tablejump_p): Promote type of one local variable.
19737 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
19738 (sched_analyze_insn): Likewise.
19739 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
19740 (print_insn): Likewise.
19741 * stmt.c (label_rtx): Promote return type to rtx_insn.
19742 (force_label_rtx): Likewise.
19743 (jump_target_rtx): Define new function.
19744 (expand_label): Use it, get rid of one cast.
19745 (expand_naked_return): Promote rtx to rtx_code_label.
19746 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
19747 (expand_case): Use rtx_code_label instread of rtx where feasible.
19748 (expand_sjlj_dispatch_table): Likewise.
19749 (emit_case_nodes): Likewise.
19750 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
19751 * store-motion.c (insert_store): Make use of new return type of
19752 gen_move_insn and remove a cast.
19753 (replace_store_insn): Likewise.
19755 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
19757 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
19758 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
19760 2015-05-20 Jeff Law <law@redhat.com>
19762 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
19763 dispose of the jump thread path when the jump threading
19764 opportunity is cancelled.
19766 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19768 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
19769 when printing the caret character.
19771 2015-05-20 Marek Polacek <polacek@redhat.com>
19773 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
19775 2015-05-20 Marek Polacek <polacek@redhat.com>
19777 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
19778 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
19779 * gimple-fold.c (canonicalize_bool): Likewise.
19780 (same_bool_result_p): Likewise.
19781 * tree-if-conv.c (parse_predicate): Likewise.
19783 2015-05-20 Marek Polacek <polacek@redhat.com>
19785 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
19786 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
19788 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19790 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
19791 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
19794 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
19796 * config/mips/mips.h (micromips_globals): Declare.
19798 2015-05-20 David Malcolm <dmalcolm@redhat.com>
19800 * timevar.def (TV_INITIALIZE_RTL): New.
19801 * toplev.c (initialize_rtl): Use an auto_timevar to account this
19802 function's time to TV_INITIALIZE_RTL.
19804 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
19806 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
19807 gimple_build_nop calls.
19808 (chkp_find_bounds_for_elem): Likewise.
19809 (chkp_get_zero_bounds): Likewise.
19810 (chkp_get_none_bounds): Likewise.
19811 (chkp_get_bounds_by_definition): Likewise.
19812 (chkp_generate_extern_var_bounds): Likewise.
19813 (chkp_get_bounds_for_decl_addr): Likewise.
19814 (chkp_get_bounds_for_string_cst): Likewise.
19816 2015-05-20 Bin Cheng <bin.cheng@arm.com>
19818 PR tree-optimization/65447
19819 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
19820 (dump_use, dump_uses): Support to dump sub use.
19821 (record_use): New parameters to support sub use. Remove call to
19823 (record_sub_use, record_group_use): New functions.
19824 (compute_max_addr_offset, split_all_small_groups): New functions.
19825 (group_address_uses, rewrite_use_address): New functions.
19826 (strip_offset): New declaration.
19827 (find_interesting_uses_address): Call record_group_use.
19828 (add_candidate): New assertion.
19829 (infinite_cost_p): Move definition forward.
19830 (add_costs): Check INFTY cost and return immediately.
19831 (get_computation_cost_at): Clear setup cost and dependent bitmap
19833 (determine_use_iv_cost_address): Compute cost for sub uses.
19834 (rewrite_use_address_1): Rename from old rewrite_use_address.
19835 (free_loop_data): Free sub uses.
19836 (tree_ssa_iv_optimize_loop): Call group_address_uses.
19838 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
19839 Jim Wilson <jim.wilson@linaro.org>
19841 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
19842 new fields loadv and storev.
19843 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
19844 Initialize loadv and storev.
19845 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
19846 (cortexa53_extra_costs): Likewise.
19847 (cortexa57_extra_costs): Likewise.
19848 (xgene1_extra_costs): Likewise.
19849 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
19852 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
19854 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
19856 (cortexa8_extra_costs): Likewise.
19857 (cortexa5_extra_costs): Likewise.
19858 (cortexa7_extra_costs): Likewise.
19859 (cortexa12_extra_costs): Likewise.
19860 (cortexa15_extra_costs): Likewise.
19861 (v7m_extra_costs): Likewise.
19863 2015-05-20 Jeff Law <law@redhat.com>
19865 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
19866 instead of open-coded version. Also delete the jump thread created
19867 within this function.
19869 2015-05-20 Alan Modra <amodra@gmail.com>
19871 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
19872 stack adjusting insn. Formatting.
19873 (rs6000_emit_prologue): Track stack adjusting insn, and use of
19874 r12. If possible, emit first -fsplit-stack arg pointer insn
19875 before stack adjust. Don't use r12 to save cr if split-stack.
19877 2015-05-20 Alan Modra <amodra@gmail.com>
19879 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
19881 (rs6000_supports_split_stack): New function.
19882 * gcc/config/rs6000/rs6000.c (machine_function): Add
19883 split_stack_arg_pointer.
19884 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
19885 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
19886 rather than virtual_incoming_args_rtx.
19887 (rs6000_va_start): Likewise.
19888 (split_stack_arg_pointer_used_p): New function.
19889 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
19890 (morestack_ref): New var.
19891 (gen_add3_const, rs6000_expand_split_stack_prologue,
19892 rs6000_internal_arg_pointer, rs6000_live_on_entry,
19893 rs6000_split_stack_space_check): New functions.
19894 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
19895 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
19896 (UNSPECV_SPLIT_STACK_RETURN): Define.
19897 (split_stack_prologue, load_split_stack_limit,
19898 load_split_stack_limit_di, load_split_stack_limit_si,
19899 split_stack_return, split_stack_space_check): New expands and insns.
19900 * gcc/config/rs6000/rs6000-protos.h
19901 (rs6000_expand_split_stack_prologue): Declare.
19902 (rs6000_split_stack_space_check): Declare.
19904 2015-05-20 Alan Modra <amodra@gmail.com>
19906 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
19907 (direct_return): Test vrsave_size rather than vrsave_mask.
19908 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
19909 (rs6000_emit_epilogue): Likewise.
19911 2015-05-20 Alan Modra <amodra@gmail.com>
19913 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
19914 when not saving registers.
19915 (debug_stack_info): Adjust to omit printing unused offsets,
19917 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
19920 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19923 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
19924 value_type to const char *.
19926 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
19928 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
19929 to build a biarch toolchain again.
19931 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
19933 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
19934 or implicit declarations.
19935 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
19937 (get_odr_type): Check type has linkage before adding bases.
19938 (register_odr_type): Check that type has linkage before adding it.
19939 (type_known_to_have_no_deriavations_p): Rename to ..
19940 (type_known_to_have_no_derivations_p): This one.
19941 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
19942 (type_known_to_have_no_derivations_p): This one.
19943 * ipa-polymorphic-call.c
19944 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
19947 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
19949 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
19950 (layout_type): Use RECORD_OR_UNION_TYPE_P.
19952 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19954 * config/s390/s390.c (s390_vector_bool_type_p): New function.
19955 (s390_invalid_binary_op): New function.
19956 (TARGET_INVALID_BINARY_OP): Define macro.
19958 2015-05-19 David Sherwood <david.sherwood@arm.com>
19960 * loop-invariant.c (create_new_invariant): Don't calculate address cost
19961 if mode is not a scalar integer.
19962 (get_inv_cost): Increase computational cost for unused invariants.
19964 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19966 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
19967 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
19968 * config/s390/s390-builtin-types.def: New file.
19969 * config/s390/s390-builtins.def: New file.
19970 * config/s390/s390-builtins.h: New file.
19971 * config/s390/s390-c.c: New file.
19972 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
19973 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
19974 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
19975 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
19977 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
19979 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
19980 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
19981 variable definitions.
19982 (s390_const_operand_ok): New function.
19983 (s390_expand_builtin): Rewrite.
19984 (s390_init_builtins): New function.
19985 (s390_handle_vectorbool_attribute): New function.
19986 (s390_attribute_table): Add s390_vector_bool attribute.
19987 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
19988 (s390_branch_condition_mask): Generate masks for new modes.
19989 (s390_expand_vec_compare_cc): New function.
19990 (s390_mangle_type): Add mangling for vector bool types.
19991 (enum s390_builtin): Remove.
19992 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
19994 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
19995 s390_cpu_cpp_builtins.
19996 (REGISTER_TARGET_PRAGMAS): New macro.
19997 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
19998 (insn_cmp mode attribute): Add new CC modes.
19999 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20000 (lcbb): New pattern definition.
20001 * config/s390/s390intrin.h: Include vecintrin.h.
20002 * config/s390/t-s390: New file.
20003 * config/s390/vecintrin.h: New file.
20004 * config/s390/vector.md: Include vx-builtins.md.
20005 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20008 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20010 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20012 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20013 (s390_select_ccmode): Likewise.
20014 (s390_canonicalize_comparison): Swap operands if necessary.
20015 (s390_expand_vec_compare_scalar): Expand DFmode compare using
20016 single element vector instructions.
20017 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20018 (s390_branch_condition_mask): Generate CC masks for the new modes.
20019 * config/s390/s390.md (v0, vf, vd): New mode attributes.
20020 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20021 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20022 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20023 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20024 (*extend<DSF:mode><BFP:mode>2): New insn definition.
20025 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20026 (extend<DSF:mode><BFP:mode>2): Turn into expander.
20027 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20028 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20029 (sqrt<mode>2): Add vector instruction.
20031 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20033 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20035 * config/s390/predicates.md (const0_operand, constm1_operand)
20036 (constable_operand): Accept vector operands.
20037 * config/s390/s390-modes.def: Add supported vector modes.
20038 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20039 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20040 (s390_bytemask_vector_p, s390_expand_vec_strlen)
20041 (s390_expand_vec_compare, s390_expand_vcond)
20042 (s390_expand_vec_init): Add prototypes.
20043 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20044 (s390_vector_mode_supported_p): New function.
20045 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20046 (s390_contiguous_bitmask_vector_p): New function.
20047 (s390_bytemask_vector_p): New function.
20048 (s390_split_ok_p): Vector regs don't work either.
20049 (regclass_map): Add VEC_REGS.
20050 (s390_legitimate_constant_p): Handle vector constants.
20051 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20052 (legitimate_reload_vector_constant_p): New function.
20053 (s390_preferred_reload_class): Handle CONST_VECTOR.
20054 (s390_reload_symref_address): Likewise.
20055 (s390_secondary_reload): Vector memory instructions only support
20056 short displacements. Rename reload*_nonoffmem* to reload*_la*.
20057 (s390_emit_ccraw_jump): New function.
20058 (s390_expand_vec_strlen): New function.
20059 (s390_expand_vec_compare): New function.
20060 (s390_expand_vcond): New function.
20061 (s390_expand_vec_init): New function.
20062 (s390_dwarf_frame_reg_mode): New function.
20063 (print_operand): Handle addresses with 'O' and 'R' constraints.
20064 (NR_C_MODES, constant_modes): Add vector modes.
20065 (s390_output_pool_entry): Handle vector constants.
20066 (s390_hard_regno_mode_ok): Handle vector registers.
20067 (s390_class_max_nregs): Likewise.
20068 (s390_cannot_change_mode_class): New function.
20069 (s390_invalid_arg_for_unprototyped_fn): New function.
20070 (s390_function_arg_vector): New function.
20071 (s390_function_arg_float): Remove size variable.
20072 (s390_pass_by_reference): Handle vector arguments.
20073 (s390_function_arg_advance): Likewise.
20074 (s390_function_arg): Likewise.
20075 (s390_return_in_memory): Vector values are returned in a VR if
20077 (s390_function_and_libcall_value): Handle vector arguments.
20078 (s390_gimplify_va_arg): Likewise.
20079 (s390_call_saved_register_used): Consider the arguments named.
20080 (s390_conditional_register_usage): Disable v16-v31 for non-vec
20082 (s390_preferred_simd_mode): New function.
20083 (s390_support_vector_misalignment): New function.
20084 (s390_vector_alignment): New function.
20085 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20086 (TARGET_VECTOR_MODE_SUPPORTED_P)
20087 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20088 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20089 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20090 (TARGET_VECTOR_ALIGNMENT): Define target macro.
20091 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20092 (FIRST_PSEUDO_REGISTER): Increase value.
20093 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20094 (VECTOR_REG_P): Define macros.
20095 (FIXED_REGISTERS, CALL_USED_REGISTERS)
20096 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20097 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20098 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20099 Add vector registers.
20100 (CANNOT_CHANGE_MODE_CLASS): Call C function.
20101 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20102 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20104 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20105 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20106 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20107 (VR*_REGNUM): New constants.
20108 (ALL): New mode iterator.
20109 (INTALL): Remove mode iterator.
20111 (movti): Implement TImode moves for VRs.
20112 Disable TImode splitter for VR targets.
20113 Implement splitting TImode GPR<->VR moves.
20114 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20115 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20116 reload<mode>_la_in, reload<mode>_la_out.
20117 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20118 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20119 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20120 (mov<mode> SF SD): Prefer lder, lde for loading.
20121 Add lrl and strl instructions.
20122 Add vector instructions.
20123 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20124 Call s390_expand_vec_strlen on z13.
20125 (*cc_to_int): Change predicate to nonimmediate_operand.
20126 (addti3): Rename to *addti3. New expander.
20127 (subti3): Rename to *subti3. New expander.
20128 * config/s390/vector.md: New file.
20130 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20132 * common/config/s390/s390-common.c (processor_flags_table): Add
20134 * config.gcc: Add z13.
20135 * config/s390/s390-opts.h (enum processor_type): Add
20136 PROCESSOR_2964_Z13.
20137 * config/s390/s390.c (s390_adjust_priority): Check for
20138 PROCESSOR_2964_Z13.
20139 (s390_reorg): Likewise.
20140 (s390_sched_reorder): Likewise.
20141 (s390_sched_variable_issue): Likewise.
20142 (s390_loop_unroll_adjust): Likewise.
20143 (s390_option_override): Likewise. Default to -mvx when available.
20144 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20145 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20146 (TARGET_VX_ABI): Define macros.
20148 (TARGET_DEFAULT): Add MASK_OPT_VX.
20149 * config/s390/s390.md ("cpu" attribute): Add z13.
20150 ("cpu_facility" attribute): Add vec.
20151 * config/s390/s390.opt (processor_type): Add z13.
20152 (mvx): New options.
20153 * doc/invoke.texi: Add z13 option for -march.
20155 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20157 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20158 mode check to make sure that only scalar integer values are
20161 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20163 * tree.c (verify_type_variant): Fix #undef.
20164 (gimple_canonical_types_compatible_p): Move here from lto.c
20165 (verify_type): Verify TYPE_CANONICAL compatibility.
20166 * tree.h (gimple_canonical_types_compatible_p): Declare.
20168 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20170 PR middle-end/66199
20171 * tree.h (OMP_TEAMS_COMBINED): Define.
20172 * gimplify.c (enum gimplify_omp_var_data): Add
20173 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20174 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20175 (omp_notice_variable): Accept both ORT_TEAMS
20176 and ORT_COMBINED_TEAMS. Don't recurse if
20177 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20178 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20180 (omp_no_lastprivate): New function.
20181 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20182 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20183 notice_outer and set appropriate bits, otherwise make
20184 sure default(none) combined constructs won't complain.
20185 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20186 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20187 omp_no_lastprivate either remove the clause or turn it
20188 into OMP_CLAUSE_PRIVATE.
20189 (gimplify_omp_for): Fix up handling of implicit
20190 lastprivate or linear iterators.
20191 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20192 ORT_COMBINED_TEAMS.
20193 * omp-low.c (lower_omp_for_lastprivate): For combined
20194 for simd use fd.loop.n2 from the for rather than simd.
20196 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20198 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20199 instead of gen_rtx_raw_REG.
20200 (cris_expand_epilogue): Likewise.
20201 * config/microblaze/microblaze.c (microblaze_classify_address):
20203 * config/sparc/sparc.md: Likewise.
20205 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
20207 * config/alpha/alpha.c (alpha_legitimize_reload_address)
20208 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20209 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20210 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20211 Use CASE_CONST_SCALAR_INT.
20212 (print_operand) <case 'M'>: Use mode_width_operand to check the
20213 value of the constant.
20214 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20215 * config/alpha/predicates.md (input_operand): Use general_operand
20216 instead of match_code as operand check.
20217 (symbolic_operand): Use match_code with subexpression digits.
20218 * config/alpha/constraints.md (Q): Ditto.
20220 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20222 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20224 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20226 * config/s390/s390.c (s390_secondary_reload): Fix check for
20227 load/store relative.
20229 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20231 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
20232 alternative_mask to uint64_t.
20234 2015-05-19 Jakub Jelinek <jakub@redhat.com>
20236 PR tree-optimization/66187
20237 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
20238 Pass TYPE_SIGN to tree_int_cst_min_precision. If
20239 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
20241 2015-05-19 David Malcolm <dmalcolm@redhat.com>
20243 * diagnostic.c (diagnostic_report_current_module): Strengthen
20244 local "new_map" from const line_map * to
20245 const line_map_ordinary *.
20246 * genmatch.c (error_cb): Likewise for local "map".
20247 (output_line_directive): Likewise for local "map".
20248 * input.c (expand_location_1): Likewise for local "map".
20249 Pass NULL rather than &map to
20250 linemap_unwind_to_first_non_reserved_loc, since the value is never
20251 read from there, and the value written back not read from here.
20252 (is_location_from_builtin_token): Strengthen local "map" from
20253 const line_map * to const line_map_ordinary *.
20254 (dump_location_info): Strengthen locals "map" from
20255 line_map *, one to const line_map_ordinary *, the other
20256 to const line_map_macro *.
20257 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
20258 const line_map * to const line_map_macro *.
20259 (maybe_unwind_expanded_macro_loc): Add a call to
20260 linemap_check_macro when writing to the "map" field of the
20262 Introduce local const line_map_ordinary * "ord_map", using it in
20263 place of "map" in the part of the function where we know we have
20264 an ordinary map. Strengthen local "m" from const line_map * to
20265 const line_map_ordinary *.
20267 2015-05-19 Nick Clifton <nickc@redhat.com>
20270 * config/msp430/msp430.md (zero_extendhisi2): Add support for
20271 separate source and destination registers.
20273 2015-05-19 Richard Biener <rguenther@suse.de>
20275 PR tree-optimization/66165
20276 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
20277 for no load permutation.
20279 PR tree-optimization/66185
20280 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
20281 when building the SLP node from scalars.
20283 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20284 Tristan Gingold <gingold@adacore.com>
20286 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
20287 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
20288 (expand_stack_restore): Call record_new_stack_level.
20289 (expand_stack_save): Do not call do_pending_stack_adjust.
20290 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
20291 * calls.c (expand_call): Call record_new_stack_level for alloca.
20292 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
20293 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
20294 (update_sjlj_context): New global function.
20295 * except.h (update_sjlj_context): Declare.
20296 * explow.c (record_new_stack_level): New global function.
20297 (allocate_dynamic_stack_space): Call record_new_stack_level.
20298 * explow.h (record_new_stack_level): Declare.
20299 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
20300 * cfgrtl.c (duplicate_insn_chain): Likewise.
20302 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20304 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
20305 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
20306 STACK_GROWS_DOWNWARD as normal if.
20307 (expand_call): Likewise.
20309 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
20312 * config/sh/sh.md (*round_int_even): New insn_and_split and
20313 accompanying new unnamed split.
20315 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20317 * bitmap.c (bitmap_set_range): Handle count==1 specially.
20318 (bitmap_clear_range): Likewise.
20319 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
20320 bitmap_set_range unconditionally.
20321 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20322 * df-scan.c (df_mark_reg): Likewise.
20323 * haifa-sched.c (setup_ref_regs): Likewise.
20324 * sched-rgn.c (update_live_1): Likewise.
20326 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20328 * regs.h (END_HARD_REGNO): Delete.
20329 (END_REGNO): Move to...
20331 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
20332 * caller-save.c (mark_set_regs): Likewise.
20333 * combine.c (move_deaths, distribute_notes): Likewise.
20334 * cse.c (invalidate, invalidate_for_call): Likewise.
20335 * df-scan.c (df_ref_record): Likewise.
20336 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
20337 (record_last_reg_set_info): Likewise.
20338 * reg-stack.c (convert_regs_exit): Likewise.
20339 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
20340 * resource.c (update_live_status): Likewise.
20341 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
20343 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20345 * rtl.h (reg_info): Add an nregs field.
20346 (REG_NREGS): Use it.
20347 (SET_REGNO_RAW): Delete.
20348 (set_regno_raw): New function.
20349 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
20350 (END_REGNO): Redefine in terms of REG_NREGS.
20351 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
20353 * emit-rtl.c (set_mode_and_regno): Likewise.
20354 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
20355 instead of SET_REGNO_RAW.
20357 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20359 * rtl.h (PUT_MODE_RAW): New macro.
20360 (PUT_REG_NOTE_KIND): Use it.
20361 (set_mode_and_regno): Declare.
20362 (gen_raw_REG): Change regno to "unsigned int".
20363 (gen_rtx_REG): Change "unsigned" to "unsigned int".
20364 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
20365 use set_mode_and_regno to change the mode of registers.
20366 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
20367 * emit-rtl.c (set_mode_and_regno): New function.
20368 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
20369 * caller-save.c (reg_save_code): Use set_mode_and_regno.
20370 * expr.c (init_expr_target): Likewise.
20371 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20372 * postreload.c (reload_cse_simplify_operands): Likewise.
20374 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20376 * caller-save.c (init_caller_save): Use word_mode and
20377 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
20378 * expr.c (init_expr_target): Likewise.
20379 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20380 * postreload.c (reload_cse_regs_1): Likewise.
20382 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20384 * rtl.def (REG): Change format to "r".
20385 * rtl.h (rtunion): Remove rt_reg.
20386 (reg_info): New structure.
20387 (rtx_def): Add reg field to main union.
20388 (X0REGATTR): Delete.
20389 (REG_CHECK): New macro.
20390 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
20391 * rtl.c (rtx_format): Document "r".
20392 (rtx_code_size): Handle REG specially.
20393 * gengenrtl.c (special_format): Return true for formats
20395 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
20396 Deal with REG_ATTRS after the field loop.
20397 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
20398 * expmed.c (init_expmed): Call gen_raw_REG instead of
20400 * expr.c (init_expr_target): Likewise.
20401 * regcprop.c (maybe_mode_change): Likewise.
20402 * varasm.c (make_decl_rtl): Likewise.
20403 * final.c (leaf_renumber_regs_insn): Return early after
20405 * genemit.c (gen_exp): Handle 'r' fields.
20406 * genpeep.c (match_rtx): Likewise.
20407 * gensupport.c (subst_pattern_match): Likewise.
20408 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
20409 (alter_constraints, subst_dup): Likewise.
20410 * read-rtl.c (read_rtx_code): Likewise.
20411 * print-rtl.c (print_rtx): Likewise.
20412 * genrecog.c (find_operand, find_matching_operand): Likewise.
20413 (validate_pattern, match_pattern_2): Likewise.
20414 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
20415 (rtx_test::regno_field): New function.
20416 (operator ==, safe_to_hoist_p, transition_parameter_type)
20417 (parameter_type_string, print_parameter_value)
20418 (print_nonbool_test, print_test): Handle new enum values.
20419 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
20420 * lra-constraints.c (operands_match_p): Likewise.
20422 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20424 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
20425 Change type of new_regno to unsigned int.
20426 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
20427 new_regno to unsigned int.
20428 (df_ref_change_reg_with_loc): Remove old_regno parameter.
20429 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
20430 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
20431 (SET_REGNO_RAW): Add space after ",".
20433 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20435 * rtl.h (REG_NREGS): New macro
20436 * alias.c (record_set): Use it.
20437 * cfgcleanup.c (mark_effect): Likewise.
20438 * combine.c (likely_spilled_retval_1): Likewise.
20439 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
20440 (move_deaths, distribute_notes): Likewise.
20441 * cselib.c (cselib_record_set): Likewise.
20442 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
20443 * df-scan.c (df_mark_reg): Likewise.
20444 * dse.c (look_for_hardregs): Likewise.
20445 * dwarf2out.c (reg_loc_descriptor): Likewise.
20446 (multiple_reg_loc_descriptor): Likewise.
20447 * expr.c (write_complex_part, read_complex_part): Likewise.
20448 (emit_move_complex): Likewise.
20449 * haifa-sched.c (setup_ref_regs): Likewise.
20450 * ira-lives.c (mark_hard_reg_live): Likewise.
20451 * lra.c (lra_set_insn_recog_data): Likewise.
20452 * mode-switching.c (create_pre_exit): Likewise.
20453 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
20454 (reload_combine_recognize_pattern): Likewise.
20455 (reload_combine_note_use, move2add_record_mode): Likewise.
20456 (reload_cse_move2add): Likewise.
20457 * reg-stack.c (subst_stack_regs_pat): Likewise.
20458 * regcprop.c (kill_value, copy_value): Likewise.
20459 (copyprop_hardreg_forward_1): Likewise.
20460 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
20461 (build_def_use): Likewise.
20462 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
20463 (deps_analyze_insn): Likewise.
20464 * sched-rgn.c (check_live_1, update_live_1): Likewise.
20465 * sel-sched.c (count_occurrences_equiv): Likewise.
20466 * valtrack.c (dead_debug_insert_temp): Likewise.
20468 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
20470 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
20471 * dse.c (note_add_store): Likewise.
20472 * ira-lives.c (mark_hard_reg_dead): Likewise.
20473 * loop-invariant.c (mark_reg_store): Likewise.
20474 (mark_reg_death): Likewise.
20475 * postreload.c (reload_combine): Likewise.
20476 (reload_combine_note_store): Likewise.
20477 (reload_combine_note_use): Likewise.
20478 * recog.c (peep2_reg_dead_p): Likewise.
20480 2015-05-19 Alan Modra <amodra@gmail.com>
20482 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
20483 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
20484 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
20486 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
20487 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
20488 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
20489 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
20491 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
20493 * config/mips/mips.md (JOIN_MODE): New mode iterator.
20494 (join2_load_Store<JOIN_MODE:mode>): New pattern.
20495 (join2_loadhi): Likewise.
20496 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
20497 load-load and store-stores.
20498 * config/mips/mips.opt (mload-store-pairs): New option.
20499 (TARGET_LOAD_STORE_PAIRS): New macro.
20500 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
20501 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
20502 * config/mips/mips.c (mips_load_store_bonding_p): New function.
20504 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
20506 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
20508 * dojump.c (do_compare_rtx_and_jump): Likewise.
20509 * expmed.c (emit_store_flag_1): Likewise.
20510 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
20511 * final.c (sprint_ul): Use std::reverse for reversing a string.
20512 * fold-const.c (extract_muldiv_1): Use std::swap.
20513 * genmodes.c (emit_mode_int_n): Likewise.
20514 * ifcvt.c (dead_or_predicable): Likewise.
20515 * ira-build.c (ira_merge_live_ranges): Likewise.
20516 (swap_allocno_copy_ends_if_necessary): Likewise.
20517 * ira.c (ira_setup_alts): Likewise.
20518 * loop-iv.c (iv_analyze_expr): Likewise.
20519 (implies_p): Likewise.
20520 (canon_condition): Likewise.
20521 * lra-constraints.c (swap_operands): Likewise.
20522 * lra-lives.c (lra_merge_live_ranges): Likewise.
20523 * omega.c (swap): Remove.
20525 (omega_unprotect_1): Use std::swap.
20526 (omega_solve_geq): Likewise.
20527 * optabs.c (expand_binop_directly): Likewise.
20528 (expand_binop): Likewise.
20529 (emit_conditional_move): Likewise.
20530 (emit_conditional_add): Likewise.
20531 * postreload.c (reload_cse_simplify_operands): Likewise.
20532 * reg-stack.c (emit_swap_insn): Likewise.
20533 (swap_to_top): Likewise.
20534 (compare_for_stack_reg): Likewise.
20535 (subst_asm_stack_regs): Likewise.
20536 * reload.c (find_reloads): Likewise.
20537 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
20538 * sel-sched.c (invoke_reorder_hooks): Likewise.
20539 (create_block_for_bookkeeping): Likewise.
20540 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
20541 (lambda_matrix_right_hermite): Use std::swap.
20542 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
20543 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20544 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
20545 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
20546 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
20547 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
20548 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20549 * tree-vrp.c (compare_ranges): Likewise.
20550 * var-tracking.c (add_with_sets): Likewise.
20551 (vt_find_locations): Likewise.
20553 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
20555 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
20557 (FBSD_ENDFILE_SPEC): Likewise.
20558 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
20559 config/freebsd-spec.h.
20560 (ENDFILE_SPEC): Likewise.
20562 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
20563 Richard Henderson <rth@redhat.com>
20566 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
20567 Check for a memory location that is not a reference (using an AND)
20568 to an unaligned location here.
20569 * config/alpha/predicates.md (normal_memory_operand): Remove.
20571 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
20573 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
20574 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
20576 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
20578 * config/mips/mips.c (micromips_globals): New variable.
20579 (mips_set_compression_mode): Save and reinitialize target-dependent
20580 state for microMIPS.
20582 2015-05-18 Martin Liska <mliska@suse.cz>
20584 * dbgcnt.def: Add new counter.
20585 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
20587 2015-05-18 Martin Liska <mliska@suse.cz>
20589 * dbgcnt.def: Sort counters.
20590 * opts.c (common_handle_option): Do not compile if
20591 -fdbg-cnt-list is enabled.
20593 2015-05-18 Tom de Vries <tom@codesourcery.com>
20595 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
20596 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
20597 address operator to va_list operand.
20598 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
20600 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
20602 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
20603 * config/s390/s390.c (s390_gimplify_va_arg): Same.
20604 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
20606 2015-05-18 Tom de Vries <tom@codesourcery.com>
20608 * tree-ssa-tail-merge.c: Fix whitespace.
20610 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
20612 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
20613 cortex-a17, and cortex-a17.cortex-a7.
20615 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
20618 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
20620 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
20623 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
20624 QImode inner modes for TARGET_AVX512BW. Force mask operand
20625 to a register for AVX512F modes.
20627 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20629 * toplev.c (emit_debug_global_declarations): Do not output debug info
20630 when doing slim LTO objects.
20632 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20634 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
20635 odr_types_equivalent_p): Declare.
20636 (odr_type_p): Use gcc_checking_assert.
20637 (type_in_anonymous_namespace_p) Declare.
20638 (type_with_linkage_p): Declare.
20639 * common.opt (Wlto-type-mismatch): New warning.
20640 * ipa-devirt.c (compound_type_base): New function.
20641 (odr_or_derived_type_p): New function.
20642 (odr_types_equivalent_p): New function.
20643 (add_type_duplicate): Simplify.
20644 (type_with_linkage_p): Add hack to prevent false positives on C types
20645 (type_in_anonymous_namespace_p): Likewise.
20646 * tree.c (need_assembler_name_p): Use type_with_linkage.
20647 * tree.h (type_in_anonymous_namespace_p): Remove.
20648 * doc/invoke.texi (-Wlto-type-mismatch): Document
20650 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
20652 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
20653 (verify_type): Verify STRING_FLAG.
20655 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
20658 * tree-pretty-print.c (percent_K_format): Replace locus pointer
20659 with accessor function.
20660 * tree-diagnostic.c (diagnostic_report_current_function): Use
20661 diagnostic_location function.
20662 (maybe_unwind_expanded_macro_loc): Likewise.
20663 (virt_loc_aware_diagnostic_finalizer): Likewise.
20664 (default_tree_printer): Replace locus pointer with accessor function.
20665 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
20666 (diagnostic_set_info_translated): Initialize second location.
20667 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
20668 (diagnostic_show_locus): Handle two locations. Call
20669 diagnostic_print_caret_line.
20670 (diagnostic_print_caret_line): New.
20671 (default_diagnostic_starter): Use diagnostic_location function.
20672 (diagnostic_report_diagnostic): Use diagnostic_location function.
20673 (verbatim): Do not set text.locus.
20674 * diagnostic.h (struct diagnostic_info): Remove location field.
20675 (struct diagnostic_context): Make caret_chars an array of two.
20676 (diagnostic_location): New inline.
20677 (diagnostic_expand_location): Handle two locations.
20678 (diagnostic_same_line): New inline.
20679 (diagnostic_print_caret_line): Declare.
20680 (CARET_LINE_MARGIN): New constant.
20681 * pretty-print.c (pp_printf): Do not set text.locus.
20682 (pp_verbatim): Do not set text.locus.
20683 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
20684 (struct text_info): Replace locus pointer with locations
20685 array. Add accessor functions.
20687 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
20688 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20691 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
20692 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
20693 large constants in register instead of splitting them.
20695 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
20698 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
20699 replacements in memory addresses.
20700 (get_unaligned_address): Ditto.
20702 2015-05-16 James Bowman <james.bowman@ftdichip.com>
20704 * config/ft32/*: New files for FT32 port.
20705 * doc/install.texi: Add FT32 information.
20706 * doc/invoke.texi: Add FT32 information.
20707 * doc/md.texi: Add FT32 information.
20708 * doc/contrib.texi: Self added.
20710 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
20712 PR tree-optimization/64454
20713 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
20714 (-1 - A -> ~A): Remove unnecessary condition.
20716 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
20718 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
20719 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
20720 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
20722 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
20724 * ipa-chkp.h (chkp_wrap_function): New.
20725 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
20726 (chkp_wrap_function_name): New.
20727 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
20728 to get wrapper name.
20729 * lto-cgraph.c: Include ipa-chkp.h.
20730 (input_cgraph_1): Avoid alias chain for wrappers.
20732 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
20734 PR middle-end/66134
20735 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
20736 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
20738 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20740 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
20741 (AARCH64_FL_SLOWMUL): Delete.
20742 (AARCH64_FL_CRC): Redefine to 1<<3.
20743 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
20745 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20747 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
20750 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
20752 * config/alpha/alpha.md (extendqidi2): Use general_operand
20753 instead of some_operand for operand[1] predicate.
20754 (extendhidi2): Ditto.
20755 (cbranchdi4): Use general_operand instead of some_operand
20756 for operand[1] and operands[2] predicates.
20757 (cstoredi4): Ditto.
20758 * config/alpha/predicates.md (some_operand): Remove unused predicate.
20759 (some_ni_operand): Ditto.
20761 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
20763 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
20764 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
20765 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
20766 low part of the constant using alpha_emit_set_const_1.
20767 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
20769 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
20771 * varasm.c (output_constant_pool_1): Pass down alignment from
20772 constant pool entry's descriptor to output_constant_pool_2.
20773 (output_object_block): Add comment prior to call to
20774 output_constant_pool_1.
20776 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
20778 PR rtl-optimization/65862
20779 * target.def (ira_change_pseudo_allocno_class): New hook.
20780 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
20782 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
20783 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
20785 * ira-costs.c (find_costs_and_classes): Call the hook and change
20786 classes when it is necessary.
20787 * doc/tm.texi: Update.
20789 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
20791 * config/i386/i386.md (sibcall_memory): Check that register with
20792 callee address is not also used as one of the arguments, instead
20793 of checking that it is not live after the sibcall.
20794 (sibcall_pop_memory): Ditto.
20795 (sibcall_value_memory): Ditto.
20796 (sibcall_value_pop_memory): Ditto.
20798 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
20800 * generic-match-head.c (types_match): Handle non-types.
20801 * gimple-match-head.c (types_match): Likewise.
20802 * match.pd: Remove unnecessary TREE_TYPE for types_match.
20804 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
20806 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
20807 (csneg3<mode>_insn): Enable expansion of pattern.
20809 2015-05-14 Nick Clifton <nickc@redhat.com>
20811 * config/rl78/rl78.c (rl78_select_section): Select the correct
20812 default section based upon the category of the decl.
20814 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20816 PR rtl-optimization/30967
20817 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
20818 destination mode for the cost of scc patterns.
20820 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
20822 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
20823 using SWIM248 mode iterator.
20824 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
20825 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
20826 for operand[2] constraint.
20827 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
20829 2015-05-13 Jakub Jelinek <jakub@redhat.com>
20831 PR middle-end/66133
20832 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
20833 make sure it is never noreturn, even when the task body does not
20835 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
20836 right before GIMPLE_OMP_RETURN.
20837 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
20838 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
20839 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
20841 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20843 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
20844 * tree-ssa-math-opts.c: Include params.h
20845 (pow_synth_sqrt_info): New struct.
20846 (representable_as_half_series_p): New function.
20847 (get_fn_chain): Likewise.
20848 (print_nested_fn): Likewise.
20849 (dump_fractional_sqrt_sequence): Likewise.
20850 (dump_integer_part): Likewise.
20851 (expand_pow_as_sqrts): Likewise.
20852 (gimple_expand_builtin_pow): Use above to attempt to expand
20853 pow as series of square roots. Removed now unused variables.
20855 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
20857 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
20858 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
20859 Remove *p0 and *p1 arguments. Rewrite function.
20860 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
20861 (alpha_split_const_mov): Update calls to alpha_extract_integer and
20862 alpha_emit_set_long_const.
20863 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
20864 (alpha_output_mi_thunk_osf): Ditto.
20865 * config/alpha/alpha.md (movti): Do not check operands[1]
20868 2015-05-13 Richard Biener <rguenther@suse.de>
20870 PR tree-optimization/66129
20871 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
20873 (vect_schedule_slp_instance): Fix typo.
20875 2015-05-13 David Malcolm <dmalcolm@redhat.com>
20877 * common.opt (fdump-internal-locations): New option.
20878 * input.c: Include diagnostic-core.h.
20879 (get_end_location): New function.
20880 (write_digit): New function.
20881 (write_digit_row): New function.
20882 (dump_location_range): New function.
20883 (dump_labelled_location_range): New function.
20884 (dump_location_info): New function.
20885 * input.h (dump_location_info): New prototype.
20886 * toplev.c (compile_file): Handle flag_dump_locations.
20888 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
20890 * gimple-expr.h (is_gimple_constant): Reorder.
20891 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
20893 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20895 * combine.c (simplify_set): When generating a CC set, if the
20896 source already is in the correct mode, do not wrap it in a
20897 compare. Simplify the rest of that code.
20899 2015-05-13 Richard Biener <rguenther@suse.de>
20901 PR tree-optimization/66123
20902 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
20905 2015-05-13 Richard Biener <rguenther@suse.de>
20907 PR middle-end/66110
20908 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
20910 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
20912 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20914 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
20915 * aclocal.m4: Regenerated with automake-1.11.6.
20917 2015-05-13 Tom de Vries <tom@codesourcery.com>
20919 PR tree-optimization/66010
20920 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
20921 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
20922 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
20923 and rval based on do_deref.
20925 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20928 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
20929 link time constants into adress expressions and therefore set
20932 2015-05-13 Jakub Jelinek <jakub@redhat.com>
20935 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
20936 Use SWI248 iterator instead of SWI.
20937 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
20938 Use eq_attr "alternative" "0" instead of match_test in
20939 length_immediate attribute computation.
20940 (*mulvhi4, *mulvhi4_1): New define_insns.
20943 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
20944 SIGNED to get precision of non-negative value.
20946 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20949 * function.c (diddle_return_value_1): Process bounds first.
20950 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
20953 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20955 PR rtl-optimization/64616
20956 * loop-invariant.c (can_move_invariant_reg): New.
20957 (move_invariant_reg): Call above new function to decide whether
20958 instruction can just be moved, skipping creation of temporary
20961 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
20963 PR target/pr66047.c
20964 * i386.c (ix86_function_sseregparm): Only return -1 if local function
20965 with implied regparm is called from -mno-sse function.
20966 (init_cumulative_args): Output error if ix86_function_sseregparm
20967 return -1 and SSE register would be needed.
20968 (function_arg_advance_32): Likewise.
20969 (function_arg_32): Likewise.
20970 * i386.h (ix86_args): Add decl field.
20972 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
20975 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
20976 inlines across optimization boundary.
20978 2015-05-12 Jason Merrill <jason@redhat.com>
20980 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
20981 string literal and macro name.
20983 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
20985 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
20986 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
20987 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
20989 2015-05-12 David Malcolm <dmalcolm@redhat.com>
20991 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
20992 (-Wmisleading-indentation): New option.
20993 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
20995 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
20997 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
20998 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
20999 (alpha_extract_integer): Ditto.
21000 (alpha_legitimate_constant_p): Ditto.
21001 (alpha_split_tmode_pair): Ditto.
21002 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21003 (alpha_expand_mov): Ditto.
21004 (print_operand): Remove handling of 'H' modifier.
21005 <case 'm'>: Remove CONST_DOUBLE handling.
21006 (summarize_insn): Handle CONST_WIDE_INT.
21007 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21009 (movti): Handle CONST_WIDE_INT.
21010 * config/alpha/constraints.md ('H'): Remove constraint definition.
21011 ('G'): Do not match MODE_FLOAT class.
21012 * config/alpha/predicates.md (const0_operand): Also match
21014 (non_add_const_operand): Ditto.
21015 (non_zero_const_operand): Ditto.
21016 (some_operand): Ditto.
21017 (input_operand): Ditto. Handle CONST_WIDE_INT.
21018 (and_operand): Do not match const_double.
21019 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21021 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
21024 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21025 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21026 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21027 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21028 is_mm_seq_cst, is_mm_sync): New accessor functions.
21029 * builtins.c (expand_builtin_sync_operation,
21030 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21031 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21032 (get_memmodel, expand_builtin_atomic_compare_exchange,
21033 expand_builtin_atomic_load, expand_builtin_atomic_store,
21034 expand_builtin_atomic_clear): Use new accessor routines.
21035 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21036 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21037 (maybe_emit_sync_lock_test_and_set): Use new accessors and
21038 MEMMODEL_SYNC_ACQUIRE.
21039 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21040 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21041 expand_atomic_store): Use new accessors.
21042 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21043 * tsan.c (instrument_builtin_call): Update check for memory model beyond
21044 final enum to use MEMMODEL_LAST.
21045 * c-family/c-common.c: Use new accessor for memmodel_base.
21046 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21048 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21049 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21050 mem_thread_fence, *dmb): Likewise.
21051 * config/alpha/alpha.c (alpha_split_compare_and_swap,
21052 alpha_split_compare_and_swap_12): Likewise.
21053 * config/arm/arm.c (arm_expand_compare_and_swap,
21054 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21055 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21056 atomic_loaddi): Likewise.
21057 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21059 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21060 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21062 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21063 atomic_store<mode>, atomic_compare_and_swap<mode>,
21064 atomic_exchange<mode>): Use new accessors.
21065 * config/mips/mips.c (mips_process_sync_loop): Likewise.
21066 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21067 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21068 rs6000_post_atomic_barrier): Add new cases.
21069 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21070 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21071 (atomic_load<mode>): Add new cases and use new accessors.
21072 (store_quadpti): Add new cases.
21073 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21075 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21076 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21079 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21081 * ipa-devirt.c (type_with_linkage_p): New function.
21082 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21084 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21085 (can_be_name_hashed_p): Simplify.
21086 (hash_odr_name): Check that type has linkage before checking if it is
21088 (types_same_for_odr): Likewise.
21089 (odr_name_hasher::equal): Likewise.
21090 (odr_subtypes_equivalent_p): Likewise.
21091 (warn_types_mismatch): Likewise.
21092 (get_odr_type): Likewise.
21093 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21094 * ipa-utils.h (odr_type_p): Move offline.
21095 * tree.c (need_assembler_name_p): Fix handling of types
21097 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21099 2015-05-12 David Malcolm <dmalcolm@redhat.com>
21101 * timevar.c (timevar_enable): Delete in favor of...
21102 (g_timer): New global.
21103 (struct timevar_def): Move to timevar.h inside class timer.
21104 (struct timevar_stack_def): Likewise.
21105 (timevars): Delete global in favor of field "m_timevars" within
21106 class timer in timevar.h
21107 (stack): Likewise, in favor of field "m_stack".
21108 (unused_stack_instances): Likewise, in favor of field
21109 "m_unused_stack_instances".
21110 (start_time): Likewise, in favor of field "m_start_time".
21111 (get_time): Eliminate check for timevar_enable.
21112 (timer::timer): New function, built from part of timevar_init.
21113 (timevar_init): Rewrite idempotency test from using
21114 "timevar_enable" bool to using dynamic allocation of "g_timer".
21115 Move rest of implementation into timer's constructor.
21116 (timevar_push_1): Rename to...
21117 (timer::push): ...this, adding "m_" prefixes to variables that
21118 are now fields of timer.
21119 (timevar_pop_1): Likewise, rename to...
21120 (timer::pop): ...this, and add "m_" prefixes.
21121 (timevar_start): Replace test for "timevar_enable" with one for
21122 "g_timer", and move bulk of implementation to...
21123 (timer::start): ...here, adding "m_" prefixes.
21124 (timevar_stop): Likewise, from here...
21125 (timer::stop): ...to here.
21126 (timevar_cond_start): Likewise, from here...
21127 (timer::cond_start): ...to here.
21128 (timevar_cond_stop): Likewise, from here...
21129 (timer::cond_stop): ...to here.
21130 (validate_phases): Rename to...
21131 (timer::validate_phases): ...this, and add "m_" prefixes. Make
21132 locals "total" and "tv" const.
21133 (timevar_print): Rename to...
21134 (timer::print): ...this, and add "m_" prefixes. Make locals
21135 "total" and "tv" const. Eliminate test for timevar_enable.
21136 * timevar.h (timevar_enable): Eliminate.
21137 (g_timer): New declaration.
21138 (timevar_push_1): Eliminate.
21139 (timevar_pop_1): Eliminate.
21140 (timevar_print): Eliminate.
21141 (class timer): New class.
21142 (timevar_push): Rewrite to use g_timer.
21143 (timevar_pop): Likewise.
21144 * toplev.c (toplev::~toplev): Likewise.
21146 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
21148 * arm-protos.h (arm_sched_autopref): Delete.
21149 (tune_params): Re-organize, use enums for flag values.
21150 (FUSE_OPS): New macro.
21151 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21152 (ARM_PREFETCH_BENEFICIAL): Likewise.
21153 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21154 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21155 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21156 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21157 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21158 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
21159 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21160 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21162 (arm_option_override, thumb2_reorg, arm_print_tune_info)
21163 (aarch_macro_fusion_pair_p): Update uses of current_tune.
21164 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21166 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
21168 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21171 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
21172 Sandra Loosemore <sandra@codesourcery.com>
21174 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21176 (REG_CLASS_NAMES): Add "IJMP_REGS".
21177 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21178 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21179 use new "c" register constraint.
21180 * config/nios2/constraint.md (c): New register constraint
21181 corresponding to IJMP_REGS.
21183 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21185 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21186 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21187 define_splits): Delete, revamp, transmogrify into ...
21188 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21189 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21190 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21193 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21195 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21196 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21198 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21200 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21201 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21202 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21203 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21204 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21205 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21206 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21207 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21208 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21209 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21210 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21211 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21212 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21213 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21214 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21215 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21216 and 30 corresponding splitters): Delete.
21218 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21220 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21223 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21225 * combine.c (recog_for_combine_1): New function, factored out
21226 from recog_for_combine.
21227 (change_zero_ext): New function.
21228 (recog_for_combine): If recog fails, try again with the pattern
21229 modified by change_zero_ext; if that still fails, restore the
21232 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
21234 * combine.c (get_undo_marker): New function.
21235 (undo_to_marker): New function, largely factored out from ...
21236 (undo_all): ... this. Adjust.
21238 2015-05-12 Richard Biener <rguenther@suse.de>
21240 PR tree-optimization/66101
21241 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
21242 fixup if we turn a loop exit edge to a fallthru edge.
21244 2015-05-12 Richard Biener <rguenther@suse.de>
21246 PR tree-optimization/37021
21247 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
21248 (SLP_TREE_TWO_OPERATORS): New define.
21249 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
21250 SLP_TREE_TWO_OPERATORS.
21251 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
21253 (vect_build_slp_tree): Adjust.
21254 (vect_analyze_slp_cost_1): Likewise.
21255 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
21256 emitting two vector stmts and mixing the results.
21258 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
21260 * call.c (print_z_candidates): Remove dead code.
21262 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21264 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
21265 and zEC12_simple_fp.
21266 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
21269 2015-05-12 Tom de Vries <tom@codesourcery.com>
21271 PR tree-optimization/66010
21272 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
21274 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
21275 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
21276 va_lists are passed, and remove corresponding handling.
21277 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
21278 do_deref argument to ifn_va_arg.
21279 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
21282 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21285 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
21286 REG before taking its REGNO.
21288 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21290 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
21291 rsp->sign_bit_copies and rsp->nonzero_bits into ...
21292 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
21293 present to get more accurate information about the number of sign bit
21294 copies and non zero bits.
21296 2015-05-12 Richard Biener <rguenther@suse.de>
21298 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
21299 do not allow unrolling.
21301 2015-05-11 Richard Henderson <rth@redhat.com>
21303 * config/i386/i386-modes.def (CCP): New.
21304 * config/i386/i386.c (put_condition_code): Handle it.
21305 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
21307 2015-05-11 Richard Henderson <rth@redhat.com>
21309 * target.def (md_asm_clobbers): Replace with...
21310 (md_asm_adjust): this.
21311 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
21312 (TARGET_MD_ASM_ADJUST): New.
21313 * tm.texi: Rebuild.
21314 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
21315 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
21316 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
21318 * cfgexpand.c (check_operand_nalternatives): Accept vector of
21319 constraints instead of lists of outputs and inputs.
21320 (expand_asm_stmt): Save and restore input_location around the
21321 body of the function. Move asm data into vectors instead of
21322 building tree lists. Generate cleanup sequences as needed,
21323 rather than waiting til the end. Use new md_asm_adjust hook.
21325 * config/vxworks.c: Include vec.h before target.h.
21326 * gimple.c: Likewise.
21327 * incpath.c: Likewise.
21328 * mode-switching.c: Likewise.
21330 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
21331 (cris_md_asm_adjust): this.
21332 (TARGET_MD_ASM_CLOBBERS): Remove.
21333 (TARGET_MD_ASM_ADJUST): New.
21334 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
21335 (ix86_md_asm_adjust): this.
21336 (TARGET_MD_ASM_CLOBBERS): Remove.
21337 (TARGET_MD_ASM_ADJUST): New.
21338 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
21339 (mn10300_md_asm_adjust): this.
21340 (TARGET_MD_ASM_CLOBBERS): Remove.
21341 (TARGET_MD_ASM_ADJUST): New.
21342 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
21343 (rs6000_md_asm_adjust): this.
21344 (TARGET_MD_ASM_CLOBBERS): Remove.
21345 (TARGET_MD_ASM_ADJUST): New.
21346 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
21347 (visium_md_asm_adjust): this.
21348 (TARGET_MD_ASM_CLOBBERS): Remove.
21349 (TARGET_MD_ASM_ADJUST): New.
21351 2015-05-11 Richard Henderson <rth@redhat.com>
21353 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
21354 if noutputs is zero.
21355 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
21357 * cfgexpand.c (expand_asm_operands): Merge into...
21358 (expand_asm_stmt): ... here.
21360 * cfgexpand.c (expand_asm_operands): Don't call
21361 resolve_asm_operand_names.
21362 * stmt.c (resolve_asm_operand_names): Clarify block comment.
21364 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
21366 * dwarf2out.c (gen_member_die): Sanity check that we access
21367 TYPE_MAIN_VARIANT for TYPE_METHODS.
21368 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
21369 checking TYPE_METHODS.
21370 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
21372 (build_distinct_type_copy): Clear TYPE_METHODS.
21373 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
21374 (verify_type): Allow TYPE_METHODS to be error_mark_node.
21375 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
21377 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
21379 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
21380 (emit_pattern_before_setloc): Likewise.
21382 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
21384 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
21385 for define_peephole2s.
21386 (get_peephole2_pattern): New function.
21387 (main): Use it. Call validate_pattern.
21389 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21391 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
21392 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
21393 (Last callee saved reg is different for AVR_TINY architecture)
21395 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
21397 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
21398 when looking for memory references.
21400 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
21403 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
21404 via function pointers.
21406 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
21408 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
21409 indirect call by forcing address into a pseudo with -fno-plt.
21410 * common.opt (flag_plt): New option.
21411 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
21412 ([-fno-plt]): Document.
21414 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
21417 * config/rs6000/option-defaults.h: Add space between string literal
21420 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21422 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
21423 accross ARM targets.
21425 2015-05-11 Christian Bruel <christian.bruel@st.com>
21427 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
21428 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
21430 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
21432 PR rtl-optimization/66076
21433 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
21434 Don't grow the heap array if it is already big enough from a
21435 previous iteration.
21437 2015-05-11 Christian Bruel <christian.bruel@st.com>
21439 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
21440 (is_called_in_ARM_mode): Remove.
21441 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
21442 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
21443 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
21444 arm_declare_function_name.
21446 2015-05-11 Christian Bruel <christian.bruel@st.com>
21448 * config/arm/arm.c (arm_option_override): Reoganized and split into :
21449 (arm_option_params_internal); New function.
21450 (arm_option_check_internal): New function.
21451 (arm_option_override_internal): New function.
21452 (thumb_code, thumb1_code): Remove.
21453 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
21454 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
21455 (thumb_code, thumb1_code): Remove.
21456 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
21458 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
21460 * config/alpha/alpha.c (alpha_emit_set_const_1)
21461 (alpha_emit_set_long_const, alpha_extract_integer)
21462 (alpha_legitimate_constant_p, alpha_split_const_mov)
21463 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
21464 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21465 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
21467 * config/alpha/predicates.md (mode_mask_operand): Do not match
21469 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21470 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
21471 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
21472 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
21473 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
21475 2015-05-11 Jakub Jelinek <jakub@redhat.com>
21478 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
21479 default_binds_local_p_2.
21480 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
21481 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
21483 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21485 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
21487 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21489 Patch by Richard Biener
21490 * coverage.c (coverage_obj_init): Delay building of type variant
21491 until the type is finished.
21493 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21495 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
21496 mismatch between C and C++ type; compoare correctly ARG_TYPES
21497 for non-prototypes and output correctly parameter index for METHOD_TYPE.
21498 (odr_types_equivalent_p): Fix wording of warning about attributes;
21499 it is OK to match prototype and non-prototype.
21501 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21503 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
21504 TYPE_ARG_TYPES list.
21505 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
21506 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
21508 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
21510 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
21511 * tree.h (is_lang_specific): Constify.
21513 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
21515 PR tree-optimization/64454
21516 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
21519 2015-05-08 Jason Merrill <jason@redhat.com>
21521 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
21522 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
21523 config/darwin.h, config/darwin9.h, config/elfos.h,
21524 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
21525 config/microblaze/microblaze.h, config/mips/mips.h,
21526 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
21527 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
21528 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
21529 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
21530 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
21531 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
21532 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
21533 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
21534 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
21535 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
21536 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
21537 between string literal and macro name.
21539 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21541 * jump.c: Change argument types to rtx_insn *.
21544 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21546 * lra-constraints.c: Change argument type to rtx_insn *.
21548 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21550 * df-problems.c: Change argument type to rtx_insn *.
21552 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21554 * combine.c: Change argument type to rtx_insn *.
21556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21559 * rtlanal.c: Change argument type to rtx_insn *.
21561 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21563 * sched-deps.c: Change argument types to rtx_insn *.
21564 * sched-int.h: Adjust.
21566 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21568 * dwarf2cfi.c: Change argument type to rtx_insn *.
21570 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21572 * ira.c (decrease_live_ranges_number): Changetype of local
21573 variable to rtx_insn *.
21574 * recog.c: Change argument types to rtx_insn *.
21577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21579 * reorg.c: Change argument types to rtx_insn *.
21581 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21583 * ira-color.c: Change argument types to rtx_insn *.
21584 * lra-eliminations.c: Likewise.
21587 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21589 * gcse.c: Change argument types to rtx_insn *.
21591 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21593 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
21595 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21597 * emit-rtl.c (emit_debug_insn_before): Change argument type to
21601 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21603 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
21606 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21608 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
21611 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21613 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
21616 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21618 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
21621 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21623 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
21627 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21629 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
21633 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21635 * except.c (can_nonlocal_goto): Change type of argument to
21639 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21641 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
21644 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21646 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
21647 * cfgrtl.c (can_delete_label_p): Adjust.
21650 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21652 * reorg.c (stop_search_p): Change argument to rtx_insn *.
21654 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21656 * except.c (make_reg_eh_region_note): Change argument to
21658 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
21659 * except.h: Adjust.
21661 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21663 * mode-switching.c (commit_mode_sets): Change type of local
21664 variable from rtx to rtx_insn *.
21666 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
21668 * doc/install.texi (--enable-languages): Add missing jit and lto info.
21669 Add ^ to grep command.
21670 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
21671 arg to last gimple_simplify declaration. Add missing gimple_build
21672 declaration for built-in function case with four tree args.
21674 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
21675 Szabolcs Nagy <szabolcs.nagy@arm.com>
21677 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
21678 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
21679 (GNU_USER_DYNAMIC_LINKERN32): Update.
21681 2015-05-08 Richard Biener <rguenther@suse.de>
21683 PR tree-optimization/66036
21684 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21685 Handle strided group loads.
21686 (vect_verify_datarefs_alignment): Likewise.
21687 (vect_enhance_data_refs_alignment): Likewise.
21688 (vect_analyze_group_access): Likewise.
21689 (vect_analyze_data_ref_access): Likewise.
21690 (vect_analyze_data_ref_accesses): Likewise.
21691 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
21692 (vectorizable_load): Likewise.
21694 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
21696 * config/rs6000/rs6000.md: Require operand inequality in one
21699 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
21700 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21702 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
21704 * config/rx/rx.md (movdi, movdf): Likewise.
21705 Likewise for define_peephole2s.
21707 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21709 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
21710 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
21711 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
21712 vtst_u64): Rewrite using gcc vector extensions.
21714 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21716 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
21717 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
21719 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
21721 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
21723 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
21725 * config/glibc-stdint.h (OPTION_MUSL): Define.
21726 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
21727 Change the definition based on OPTION_MUSL for 64 bit targets.
21728 * config/linux.h (OPTION_MUSL): Redefine.
21729 * config/alpha/linux.h (OPTION_MUSL): Redefine.
21730 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
21731 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
21733 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
21734 Szabolcs Nagy <szabolcs.nagy@arm.com>
21736 * config.gcc (LIBC_MUSL): New tm_defines macro.
21737 * config/linux.h (OPTION_MUSL): Define.
21738 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
21739 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
21740 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21741 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21742 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21743 * config/linux.opt (mmusl): New option.
21744 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
21745 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21746 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21747 * configure: Regenerate.
21749 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
21750 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21753 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
21754 * config/i386/knetbsd-gnu64.h: New file.
21756 2015-05-08 Marek Polacek <polacek@redhat.com>
21759 * doc/invoke.texi: Document -Woverride-init-side-effects.
21761 2015-05-07 Marek Polacek <polacek@redhat.com>
21764 * doc/invoke.texi: Document -Wshift-negative-value.
21766 2015-05-06 Aditya Kumar <hiraditya@msn.com>
21768 * gcov-tool.c (do_merge): Refactore to remove int ret.
21769 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
21770 !type == FUNC to type != FUNC.
21771 * reload.h (struct target_reload): Changee to type of
21772 x_spill_indirect_levels from bool to unsigned char.
21774 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
21776 * rtl.h (always_void_p): New function.
21777 * gengenrtl.c (always_void_p): Likewise.
21778 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
21779 with code foo are always VOIDmode.
21780 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
21781 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
21782 compare-elim.c, config/aarch64/aarch64.c,
21783 config/aarch64/aarch64.md, config/alpha/alpha.c,
21784 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
21785 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
21786 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
21787 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21788 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
21789 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
21790 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
21791 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
21792 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
21793 config/ia64/vect.md, config/iq2000/iq2000.c,
21794 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
21795 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
21796 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
21797 config/mep/mep.c, config/microblaze/microblaze.c,
21798 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
21799 config/mn10300/mn10300.c, config/msp430/msp430.c,
21800 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
21801 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
21802 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
21803 config/rs6000/altivec.md, config/rs6000/rs6000.c,
21804 config/rs6000/rs6000.md, config/rs6000/vector.md,
21805 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
21806 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
21807 config/sh/sh.md, config/sh/sh_treg_combine.cc,
21808 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
21809 config/spu/spu.md, config/stormy16/stormy16.c,
21810 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
21811 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
21812 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
21813 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
21814 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
21815 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
21816 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
21817 var-tracking.c: Update calls accordingly.
21819 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21822 PR middle-end/54303
21823 * varasm.c (function_mergeable_rodata_prefix): New function.
21824 (mergeable_string_section): Use it.
21825 (mergeable_constant_section): Use it.
21827 2015-05-07 Jeff Law <law@redhat.com>
21830 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21831 simplifier to narrow arithmetic.
21832 * generic-match-head.c: (types_match, single_use): New functions.
21833 * gimple-match-head.c: (types_match, single_use): New functions.
21835 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21837 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
21840 2015-05-07 Richard Biener <rguenther@suse.de>
21842 PR tree-optimization/66002
21843 * passes.def: Schedule another pass_merge_phi after ifcombine, right
21846 2015-05-07 Marek Polacek <polacek@redhat.com>
21847 Martin Uecker <uecker@eecs.berkeley.edu>
21849 * doc/invoke.texi: Document -fsanitize=bounds-strict.
21850 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
21851 into SANITIZE_NONDEFAULT.
21852 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
21854 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
21857 * config/alpha/alpha.c (alpha_override_options_after_change): New.
21858 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
21859 (alpha_override_options): Move align_loops, align_jumps and
21860 align_functions handling into alpha_override_options_after_change.
21862 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
21863 Chris Jones <chrisj@nvidia.com>
21864 Joshua Conner <jconner@nvidia.com>
21866 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
21867 linking of crtfastmath.o.
21868 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
21870 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
21872 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
21873 (cstore<mode>4_unsigned_imm): New expander.
21874 (cstore<mode>4): Remove empty constraint strings. Use the new
21877 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
21880 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
21883 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
21885 * config/aarch64/geniterators.sh: Use standard BRE in sed.
21887 2015-05-06 Alan Modra <amodra@gmail.com>
21890 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
21891 (UNSPEC_NOP): Define.
21892 (reload_vsx_from_gpr<mode>): Add missing DONE.
21893 (reload_gpr_from_vsx<mode>): Likewise.
21894 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
21895 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
21897 2015-05-06 Christian Bruel <christian.bruel@st.com>
21900 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
21901 align_jumps, align_functions into aarch64_override_options_after_change.
21903 2015-05-06 Richard Biener <rguenther@suse.de>
21905 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
21906 vect_transform_slp_perm_load to check if we support a permutation
21907 for basic-block vectorization.
21909 2015-05-06 Nick Clifton <nickc@redhat.com>
21911 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
21912 used, even if it is not being used as a frame pointer.
21914 2015-05-05 Jason Merrill <jason@redhat.com>
21916 * dwarf2out.c (gen_member_die): Don't emit anything for an
21917 anonymous class constructor.
21919 2015-05-05 David Malcolm <dmalcolm@redhat.com>
21921 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
21922 that it reflects the block structure.
21923 (afdo_propagate_edge): Likewise.
21924 (afdo_calculate_branch_prob): Likewise.
21925 (afdo_annotate_cfg): Likewise.
21926 * cfgcleanup.c (equal_different_set_p): Likewise.
21927 (try_crossjump_to_edge): Likewise.
21928 * cgraph.c (cgraph_node::verify_node): Likewise.
21929 * cgraphunit.c (expand_all_functions): Likewise.
21930 * config/i386/i386.c (ix86_expand_copysign): Likewise.
21931 (exact_dependency_1): Likewise.
21932 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
21933 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
21934 * gensupport.c (process_define_subst): Likewise.
21935 * lto-wrapper.c (merge_and_complain): Likewise.
21936 * tree-if-conv.c (if_convertible_bb_p): Likewise.
21937 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
21938 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
21939 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
21940 * tree-vect-loop.c (vectorizable_reduction): Likewise.
21941 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
21942 * tree-vect-stmts.c (vectorizable_shift): Likewise.
21943 * tree-vrp.c (vrp_finalize): Likewise.
21944 * tree.c (variably_modified_type_p): Likewise.
21946 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
21948 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
21949 on darwin12 and later.
21950 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
21951 file to pass -rdynamic on darwin12 and later.
21952 * config/darwin.opt (rdynamic): Add.
21954 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
21956 * doc/extend.texi (C Extensions): Update menu for moved Variable
21957 Attributes and Type Attributes sections.
21959 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
21962 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
21963 if rep_8byte stringop strategy was specified for 32-bit target.
21965 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
21968 * config/i386/i386.md (vector convert to float spltiter): Check for
21969 xmm16+, when splitting scalar float conversion.
21970 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
21972 2015-05-05 Nick Clifton <nickc@redhat.com>
21974 * config/msp430/msp430-opts.h (enum msp430_regions): New.
21975 * config/msp430/msp430.c (msp430_override_options): Complain if
21976 -mcode-region or -mdata-region is used on a non MSP430X.
21977 (msp430_section_attr): New function. Checks lower, upper and
21979 (msp430_attribute_table): Add lower, upper and either.
21980 (gen_prefix): New function. Generates a prefix for a section
21982 (msp430_select_section): New function - handles the choice of
21983 section for an object. Takes into account memory region
21984 attributes and options.
21985 (msp430_function_section): Use gen_prefix.
21986 (TARGET_SECTION_TYPE_FLAGS): Define.
21987 (msp430_section_type_flags): New function.
21988 (TARGET_ASM_UNIQUE_SECTION): Define.
21989 (msp430_unique_section): New function.
21990 (msp430_output_aligned_decl_common): New function.
21991 (msp430_do_not_relax_short_jumps): New function.
21992 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
21994 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21995 * config/msp430/msp430-protos.h
21996 (msp430_do_not_relax_short_jumps): New prototype.
21997 (msp430_output_aligned_decl_common): New prototype.
21998 * config/msp430/msp430.md (length): New attribute.
21999 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22000 then use a long code sequence for short jumps.
22001 * config/msp430/msp430.opt (mcode-region): New.
22002 (mdata-region): New.
22003 * doc/invoke.texi: Document new options.
22004 * doc/extend.texi: Document new attributes.
22006 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22008 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22009 (tune_params): Add field branch_costs.
22010 (aarch64_branch_cost): Declare.
22011 * gcc/config/aarch64.c (generic_branch_cost): New.
22012 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22013 (cortexa53_tunings): Likewise.
22014 (cortexa57_tunings): Likewise.
22015 (thunderx_tunings): Likewise.
22016 (xgene1_tunings): Likewise.
22017 (aarch64_branch_cost): Define.
22018 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22020 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22022 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22023 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22024 * config/i386/i386.md: Ditto.
22025 * config/i386/winnt.c: Ditto.
22027 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
22029 * doc/extend.texi (__atomic Builtins): Move implementation details
22030 to the end of the description, rewrite opening paragraphs, state
22031 difference with __sync builtins, state C11/C++11 assumptions,
22032 weaken itemized descriptions, add explanation of memory model
22033 behaviour, expand description of compare-exchange, simplify text.
22035 2015-05-05 Renlin Li <renlin.li@arm.com>
22037 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22039 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
22041 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22042 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22043 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22044 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22045 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22046 * configure: Regenerate.
22047 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22048 * doc/install.texi (aarch64*-*-*): Document new
22049 --enable-fix-cortex-a53-843419 option.
22050 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22051 and -mno-fix-cortex-a53-843419 options.
22053 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22056 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22058 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
22060 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22061 fix overactive TYPE_MIN_VALUE check and add FIXME for type
22062 compatibility problems.
22064 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22066 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22068 (cbranchsi4_reg): New.
22069 * config/microblaze/microblaze.c
22070 (microblaze_expand_conditional_branch_reg): New.
22071 * config/microblaze/microblaze-protos.h
22072 (microblaze_expand_conditional_branch_reg): New prototype.
22074 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
22076 * config/microblaze/microblaze.md (peephole2): New.
22078 2015-05-04 Jeff Law <law@redhat.com>
22081 2015-05-04 Jeff Law <law@redhat.com>
22083 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22084 simplifier to narrow arithmetic.
22085 * generic-match-head.c: (types_match, single_use): New functions.
22086 * gimple-match-head.c: (types_match, single_use): New functions.
22088 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
22091 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22092 (split_branches): Likewise.
22094 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
22096 * common.opt (fdelete-null-pointer-checks): Init to -1.
22097 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22098 override flag_delete_null_pointer_checks default.
22099 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22100 behavior re address zero. Better document target-specific behavior.
22101 (-fisolate-errneous-paths-dereference): Mention relationship to
22102 -fdelete-null-pointer-checks.
22104 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22106 PR tree-optimization/65984
22107 * ubsan.c: Include tree-cfg.h.
22108 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22109 stmt_could_throw_p test, rename can_throw variable to ends_bb.
22111 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22113 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22114 to CONST_DOUBLE_P predicate.
22115 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22116 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22117 allow only operands that satisfy standard_sse_constant_p predicate.
22118 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22119 to CONST_DOUBLE_P predicate.
22121 2015-05-04 Jeff Law <law@redhat.com>
22123 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22124 simplifier to narrow arithmetic.
22125 * generic-match-head.c: (types_match, single_use): New functions.
22126 * gimple-match-head.c: (types_match, single_use): New functions.
22128 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
22130 * config/arm/arm.c: Restore bootstrap.
22132 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
22134 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22135 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22136 as CONST_WIDE_INT, not CONST_DOUBLE.
22137 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22138 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22139 (ix86_find_base_term): Do not check for CONST_DOUBLE.
22140 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22141 (ix86_build_signbit_mask): Rewrite using wide ints.
22142 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22143 (ix86_rtx_costs): Handle CONST_WIDE_INT.
22144 (find_constant): Ditto.
22145 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22146 using gen_int_mode.
22147 * config/i386/predicates.md (x86_64_immediate_operand)
22148 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22149 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22150 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22151 (const0_operand): Also match const_wide_int.
22152 (constm1_operand): Ditto.
22153 (const1_operand): Ditto.
22155 2015-05-04 Richard Biener <rguenther@suse.de>
22157 PR tree-optimization/65965
22158 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22159 store groups at gaps.
22161 2015-05-04 Richard Biener <rguenther@suse.de>
22163 PR tree-optimization/65935
22164 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22165 then make sure to apply that swapping to the IL.
22167 2015-05-04 Jakub Jelinek <jakub@redhat.com>
22169 * Makefile.in (PATCHLEVEL_c): New variable.
22170 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22171 expand the same way as if DEVPHASE_c was non-empty.
22173 2015-05-04 Kai Tietz <ktietz@redhat.com>
22176 * lto-wrapper.c (run_gcc): Open filename
22179 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
22181 * doc/extend.texi (Variable Attributes, Type Attributes): Move
22182 sections up in file, to immediately after the Function Attributes
22185 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
22187 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22189 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22191 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22192 (insert_partition_copy_on_edge): Adjust.
22193 (insert_rtx_to_part_on_edge): Likewise.
22194 (insert_part_to_rtx_on_edge): Likewise.
22196 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22198 * function.c (set_return_jump_label): Change type of argument to
22200 * function.h (set_return_jump_label): Adjust.
22202 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22204 * reload.h (struct reg_equivs_t): Change type of init to
22206 * ira.c (fix_reg_equiv_init): Adjust.
22207 * reload1.c (eliminate_regs_1): Likewise.
22208 (init_eliminable_invariants): Likewise.
22210 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22212 * cselib.c (fp_setter_insn): Take a rtx_insn *.
22213 * cselib.h (fp_setter_insn): Adjust.
22215 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22217 * recog.c (struct validate_replace_src_data): Change type of
22218 insn field to rtx_insn *.
22219 (validate_replace_src_group): Change type of argument to rtx_insn *.
22220 * recog.h (validate_replace_src_group): Adjust.
22222 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22224 * haifa-sched.c: Change the type of some variables to rtx_insn *.
22225 * sched-deps.c: Likewise.
22226 * sched-int.h: Likewise.
22227 * sched-rgn.c: Likewise.
22228 * sel-sched.c: Likewise.
22230 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22233 * config/i386/i386.c: Change the type of some arguments to
22235 * config/arm/arm.c: Likewise.
22237 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22239 * lra-constraints.c: Change type of some arguments to rtx_insn *.
22241 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22243 * regcprop.c (kill_autoinc_value): Change type of argument to
22246 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22248 * genrecog.c (print_subroutine): Adjust.
22249 * recog.c (get_bool_attr_mask_uncached): Likewise.
22250 * recog.h (struct recog_data_d): Change the type of insn to
22253 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22255 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
22257 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22259 * df-problems.c (df_set_note): Change type of argument to
22262 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22264 * builtins.c (expand_builtin_trap): Change type of local
22265 variable to rtx_insn *.
22266 (add_sched_insns_for_speculation): Likewise.
22267 (ix86_emit_save_regs): Likewise.
22268 (get_scratch_register_on_entry): Likewise.
22269 (ix86_emit_restore_reg_using_pop): Likewise.
22270 (ix86_emit_leave): Likewise.
22271 (ix86_emit_restore_regs_using_mov): Likewise.
22272 (ix86_expand_epilogue): Likewise.
22274 (rl78_alloc_physical_registers_umul): Likewise.
22275 * cselib.c (discard_useless_locs): Likewise.
22276 (cselib_invalidate_regno): Likewise.
22277 (cselib_invalidate_mem): Likewise.
22278 * function.c (expand_function_start): Likewise.
22279 (emit_use_return_register_into_block): Likewise.
22280 * gcse.c: Likewise.
22281 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
22282 * ifcvt.c (noce_get_alt_condition): Likewise.
22283 * loop-doloop.c (doloop_condition_get): Likewise.
22284 * lra-constraints.c (inherit_in_ebb): Likewise.
22285 * modulo-sched.c (sms_schedule_by_order): Likewise.
22286 * recog.c (next_insn_tests_no_inequality): Likewise.
22287 * reorg.c (emit_delay_sequence): Likewise.
22288 (update_reg_dead_notes): Likewise.
22289 (fix_reg_dead_note): Likewise.
22290 (fill_slots_from_thread): Likewise.
22291 (delete_computation): Likewise.
22293 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
22295 * doc/extend.texi (Variable Attributes): Add menu and proper
22296 @nodes to subsections. Move Microsoft Windows attributes to
22297 their own subsection.
22298 (Type Attributes): Reorganize introduction to remove duplicate
22299 list of attributes. Add menu and proper @nodes to subsections.
22300 Alphabetize the main table of common attributes.
22302 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
22304 * match.pd: New simplification patterns.
22305 (x + (x & 1)) -> ((x + 1) & ~1)
22306 (x & ~(x & y)) -> ((x & ~y))
22307 (x | ~(x | y)) -> ((x | ~y))
22309 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22311 * target.def (attribute_table): Mention that struct attribute_spec
22312 is defined in tree-core.h rather than tree.h
22313 * doc/tm.texi: Regenerate.
22315 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
22317 * genrecog.c (test): Rename to rtx_test. Update rest of file
22320 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
22322 PR translation/65959
22323 * params.h (DEFPARAM): Rename msgid to nocmsgid.
22325 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22327 * gcc/config/aarch64/aarch64-protos.h (tune_params):
22328 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
22329 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
22330 Return value depending on target.
22331 (generic_tunings): Initialize new target settings.
22332 (cortexa53_tunings): Likewise.
22333 (cortexa57_tunings): Likewise.
22334 (thunderx_tunings): Likewise.
22335 (xgene1_tunings): Likewise.
22337 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22339 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
22340 Make Cortex-A53 shift costs more accurate.
22342 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22344 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
22347 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
22349 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
22350 Calculate cost of op0 and op1 in PLUS and MINUS cases.
22352 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22354 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
22355 Add cost of op0 in the compare-with-fpzero case.
22357 2015-04-30 David Malcolm <dmalcolm@redhat.com>
22359 * builtins.c (fold_builtin_1): Remove spurious second
22361 * cgraph.h (symtab_node::get_availability): Likewise.
22362 * opts.c (common_handle_option): Remove spurious second semicolon.
22363 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
22364 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22366 2015-04-30 Caroline Tice <cmtice@google.com>
22368 PR gcov-profile/65929
22369 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
22370 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
22371 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
22372 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
22373 * doc/tm.texi: Regenerate.
22374 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
22375 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
22376 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
22377 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
22379 2015-04-30 Marek Polacek <polacek@redhat.com>
22381 * varasm.c (handle_cache_entry): Fix logic.
22383 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22385 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
22386 (*extrsi5_insn_uxtw_alt): Likewise.
22387 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
22388 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
22391 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22393 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
22396 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22398 * config/aarch64/aarch64.md
22399 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
22400 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
22401 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
22402 appropriately. Handle alternative EON form.
22404 2015-04-30 Renlin Li <renlin.li@arm.com>
22406 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
22407 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
22409 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
22412 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
22413 -fstrict-aliasing boundaries.
22415 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22417 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
22418 and [SU]MNEGL patterns.
22420 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22422 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
22423 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
22424 combined arithmetic-shift ops. Properly handle all shift and extend
22425 operations that can occur in combination with PLUS/MINUS.
22426 Rename maybe_fma to compound_p.
22427 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
22428 arithmetic and shift operations.
22430 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22432 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
22433 rather than arith_shift cost when costing ADD/MINUS of an
22436 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
22439 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
22442 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
22444 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
22445 are for the same position.
22447 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
22449 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
22451 (vectorize_loops): Use it.
22453 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22455 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
22456 for aggregate types.
22457 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
22458 type to be non_ODR.
22459 * tree.c (need_assembler_name_p): Compute mangled name for
22460 non-fundamental types and integer types.
22462 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
22464 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
22466 * expr.c (expand_expr_real_2): Likewise.
22468 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22470 * tree.c (build_common_builtin_nodes): Do not build
22471 __builtin_alloca_with_align as equivalent of library alloca.
22473 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
22475 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
22476 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
22478 * tree.c: Include print-tree.h and ipa-utils.h
22479 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
22480 (free_lang_data_in_cgraph): Call verify_type.
22481 (verify_type_variant): New function.
22482 (verify_type): New function.
22483 * tree.h (verify_type): Declare.
22485 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
22487 * config/mips/mips-cpus.def: (mips4): Change default processor
22488 from PROCESSOR_R8000 to PROCESSOR_R10000.
22490 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
22492 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
22493 la/jalr instead of jal.
22495 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
22498 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
22499 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
22500 (setcc+movzbl peephole2): Check also clobbered reg.
22501 (setcc+andl peephole2): Ditto.
22503 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
22506 * config/nvptx/mkoffload.c (target_ilp32): New variable.
22507 (main): Set it depending on "-foffload-abi=[...]".
22508 (compile_native, main): Use it to pass "-m32" or "-m64" to the
22511 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22514 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
22515 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
22516 Flip lane index back at assembly time for bigendian.
22518 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
22520 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
22521 * gimplify.c (gimplify_omp_workshare): Use it.
22523 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22525 * Makefile.in (build/genrecog.o): Depend on inchash.h.
22526 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
22528 * genrecog.c: Rewrite most of the code except for the third page.
22530 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22532 * inchash.h, inchash.c: Include bconfig.h for build objects.
22533 * Makefile.in (build/inchash.o): New rule.
22535 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
22538 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
22539 number in type attribute expression.
22541 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
22543 * loop-iv.c (canon_condition): Generalize to all types of integer
22546 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
22548 * gimple-walk.c: Prune duplicate or unneeded includes.
22549 (walk_gimple_asm): Only call parse_input_constraint or
22550 parse_output_constraint if their findings are used.
22551 Honour parse_input_constraint and parse_output_constraint
22554 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
22556 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
22558 2015-04-29 Tom de Vries <tom@codesourcery.com>
22560 PR tree-optimization/65893
22561 * passes.def (pass_all_optimizations): Move pass_stdarg to after
22564 2015-04-29 Richard Biener <rguenther@suse.de>
22566 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22567 compute GROUP_SIZE for basic-block SLP.
22568 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
22569 take into account gaps.
22570 (vect_get_mask_element): Properly reject references to previous
22572 (vect_transform_slp_perm_load): Likewise.
22574 2015-04-29 Christian Bruel <christian.bruel@st.com>
22577 * config/i386/i386.c (ix86_default_align): New function.
22578 (ix86_override_options_after_change): Call ix86_default_align.
22579 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
22580 (ix86_override_options_after_change): New function.
22582 2015-04-28 Jeff Law <law@redhat.com>
22584 * tree-ssa-dom.c (record_equality); Fix comment typos.
22586 2015-04-28 Tom de Vries <tom@codesourcery.com>
22588 PR tree-optimization/65887
22589 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
22591 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
22593 * doc/extend.texi (Declaring Attributes of Functions): Split into
22594 subsections by target. Alphabetize the table of common attributes.
22595 Rewrite some of the introductory text to reflect the new structure.
22596 Update some cross-references to point to the new subsections.
22597 (Attribute Syntax): Put paragraph about "__" naming here. Remove
22598 duplicate copies in the discussion of function, label, and type
22601 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
22604 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
22606 2015-04-28 Jason Merrill <jason@redhat.com>
22609 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
22610 (finalize_type_size): Respect TYPE_USER_ALIGN.
22611 (layout_type) [ARRAY_TYPE]: Likewise.
22613 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
22615 * config/arm/arm.md (*arm_movt): Fix type attribute.
22616 (*cmpsi_shiftsi): Likewise.
22617 (*cmpsi_shiftsi_swp): Likewise.
22618 (*movsicc_insn): Likewise.
22619 (*cond_move): Likewise.
22620 (*if_plus_move): Likewise.
22621 (*if_move_plus): Likewise.
22622 (*if_arith_move): Likewise.
22623 (*if_move_arith): Likewise.
22624 (*if_shift_move): Likewise.
22625 (*if_move_shift): Likewise.
22626 (*arm_movtas_ze): Likewise.
22627 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
22628 redundancy and type attribute.
22629 (*thumb2_movsi_insn): Fix type attribute.
22630 (*thumb2_addsi_short): Likewise.
22631 (thumb2_addsi3_compare0): Likewise.
22632 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
22633 attributes accordingly.
22635 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
22638 * function.c (pad_to_arg_alignment): Add parentheses.
22640 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
22642 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
22643 libgcc/config/frv/elf-lib.h.
22645 2015-04-28 Tom de Vries <tom@codesourcery.com>
22647 * tree-call-cdce.c: Fix example in header comment.
22649 2015-04-28 Richard Biener <rguenther@suse.de>
22651 PR tree-optimization/62283
22652 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
22653 fails fatally and we are vectorizing a basic-block simply
22654 cause the child to be constructed piecewise.
22655 (vect_analyze_slp_cost_1): Adjust.
22656 (vect_detect_hybrid_slp_stmts): Likewise.
22657 (vect_bb_slp_scalar_cost): Likewise.
22658 (vect_get_constant_vectors): For piecewise constructed
22659 constants place them after the last def.
22660 (vect_get_slp_defs): Adjust.
22661 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
22662 externals for basic-block vectorization.
22664 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22667 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
22669 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
22670 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
22671 (AARCH64_TUNE_FMA_STEERING): Likewise.
22672 * config/aarch64/aarch64-cores.def: Set
22673 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
22674 FMUL/FMADD instructions.
22675 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
22676 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
22677 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
22678 * config/aarch64/cortex-a57-fma-steering.h: New file.
22679 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22681 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
22683 * gensupport.c (std_preds): Add missing codes to address_operand entry.
22685 2015-04-28 Richard Biener <rguenther@suse.de>
22687 PR tree-optimization/65851
22688 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
22689 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
22690 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
22691 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
22692 (ccp_visit_phi_node): Adjust.
22693 (evaluate_stmt): For simplifications to SSA names return its
22694 lattice value if that isn't VARYING. Return immediately when
22695 simplified to a constant.
22696 (visit_assignment): Adjust.
22697 (ccp_visit_stmt): Likewise.
22699 2015-04-28 Tom de Vries <tom@codesourcery.com>
22701 PR tree-optimization/65818
22702 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
22705 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22707 * calls.c (save_fixed_argument_area): Don't check
22708 ARGS_GROW_DOWNWARD with the preprocessor.
22709 (restore_fixed_argument_area): Likewise.
22710 (mem_overlaps_already_clobbered_arg_p): Likewise.
22711 (check_sibcall_argument_overlap): Likewise.
22712 (expand_call): Likewise.
22713 (emit_library_call_value_1): Likewise.
22714 (store_one_arg): Likewise.
22715 * function.c (assign_parms): Likewise.
22716 (locate_and_pad_parm): Likewise.
22717 (pad_to_arg_alignment): Likewise.
22718 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22720 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22722 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
22723 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
22724 * calls.c (save_fixed_argument_area): Don't chekc if
22725 ARGS_GROW_DOWNWARD is defined.
22726 (restore_fixed_argument_area): Likewise.
22727 (mem_overlaps_already_clobbered_arg_p): Likewise.
22728 (check_sibcall_argument_overlap): Likewise.
22729 (expand_call): Likewise.
22730 (emit_library_call_value_1): Likewise.
22731 (store_one_arg): Likewise.
22732 * function.c (assign_parms): Likewise.
22733 (locate_and_pad_parm): Likewise.
22734 (pad_to_arg_alignment): Likewise.
22735 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
22737 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22739 * defaults.h (gen_epilogue): New function.
22740 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
22742 * cfgrtl.c (cfg_layout_finalize): Likewise.
22743 * df-scan.c: Likewise.
22744 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22745 (reposition_prologue_and_epilogue_notes): Likewise.
22746 * reorg.c (find_end_label): Likewise.
22747 * toplev.c: Likewise.
22749 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22751 * bb-reorder.c (HAVE_return): Don't check if its undefined.
22752 * defaults.h (gen_simple_return): New function.
22753 (gen_simple_return): Likewise.
22754 (HAVE_return): Add default definition to false.
22755 (HAVE_simple_return): Likewise.
22756 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
22757 HAVE_return and HAVE_simple_return are defined.
22758 * function.c (gen_return_pattern): Likewise.
22759 (convert_jumps_to_returns): Likewise.
22760 (thread_prologue_and_epilogue_insns): Likewise.
22761 * reorg.c (find_end_label): Likewise.
22762 (dbr_schedule): Likewise.
22763 * shrink-wrap.c: Likewise.
22764 * shrink-wrap.h: Likewise.
22766 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22768 * defaults.h (EPILOGUE_USES): Add default definition of false.
22769 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
22770 * resource.c (init_resource_info): Likewise.
22772 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22774 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
22776 * dwarf2out.c (field_byte_offset): REmove check if
22777 PCC_BITFIELD_TYPE_MATTERS is defined.
22778 * stor-layout.c (layout_decl): Likewise.
22779 (update_alignment_for_field): Likewise.
22780 (place_field): Likewise.
22782 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22784 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
22786 * regrename.c (check_new_reg_p): Remove check if
22787 HARD_REGNO_RENAME_OK is defined.
22788 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
22790 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22792 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
22793 * cse.c (fold_rtx): Likewise.
22794 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
22795 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
22796 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
22797 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
22798 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
22799 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
22800 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
22801 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
22802 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
22803 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
22805 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
22806 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
22807 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
22808 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
22809 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
22810 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
22811 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
22812 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
22813 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
22814 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
22815 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
22816 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
22817 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
22818 * doc/tm.texi: Regenerate.
22819 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
22820 either true or false.
22822 2015-04-27 Jeff Law <law@redhat.com>
22824 PR tree-optimization/65217
22825 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
22826 of them has a single use, make sure it is the LHS of the implied
22829 2015-04-28 Alan Modra <amodra@gmail.com>
22832 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
22833 (offsettable_ok_by_alignment): Use minimum of decl and toc
22834 pointer alignment. Replace dead code with assertion.
22835 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
22836 case if size exceeds toc pointer alignment.
22837 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
22838 (rs6000_emit_move): Likewise.
22839 * configure.ac: Add linker toc pointer alignment check.
22840 * configure: Regenerate.
22841 * config.in: Regenerate.
22843 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
22845 * config.gcc: Add h8300-*-linux.
22846 * config/h8300/linux.h: New.
22847 * config/h8300/t-linux: New.
22848 * config/h8300/h8300.c (h8300_option_override): Normal mode
22849 is not supported for h8300-*-linux.
22850 (h8300_file_start): Target priority change.
22851 (get_shift_alg): Likewise.
22852 (h8300_shift_need_scratch_p): Likewise.
22853 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
22854 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
22856 2015-04-27 Caroline Tice <cmtice@google.com>
22858 * final.c (final_scan_insn): Output cold_function_name as function
22860 * varasm.c (cold_function_name): Make global.
22861 (assemble_start_function): Re-set cold_function_name.
22862 (assemble_end_function): Output cold partition size.
22863 * varasm.h (cold_function_name): Declare global.
22865 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
22867 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
22868 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
22870 (*movxi_internal_avx512f): Ditto.
22871 (define_split): Check for xmm16+, when splitting scalar float_extend.
22872 (*extendsfdf2_mixed): Use "v" constraint.
22873 (define_split): Check for xmm16+, when splitting scalar float_truncate.
22874 (*truncdfsf_fast_sse): Use "v" constraint.
22875 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
22876 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
22877 (define_peephole2): Check for xmm16+, when converting scalar
22879 (define_peephole2): Check for xmm16+, when converting scalar
22881 (*fop_<mode>_comm_mixed): Use "v" constraint.
22882 (*fop_<mode>_comm_sse): Ditto.
22883 (*fop_<mode>_1_mixed): Ditto.
22884 (*sqrt<mode>2_sse): Ditto.
22885 (*ieee_s<ieee_maxmin><mode>3): Ditto.
22887 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22889 * combine.c (simplify_if_then_else): Use std::swap instead
22890 of manually swapping.
22891 (known_cond): Likewise.
22892 (simplify_comparison): Likewise.
22894 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
22897 * config/rs6000/htm.md: Remove all define_expands.
22898 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
22899 UNSPECV_HTM_TABORTWCI): Remove.
22900 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
22901 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
22902 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
22903 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
22904 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
22905 tabortwci_internal): Remove define_insns.
22906 (tabort<wd>c, tabort<wd>ci): New define_insns.
22907 (tabort): Use gpc_reg_operand.
22908 (tcheck): Remove operand.
22909 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
22910 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
22912 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
22913 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
22914 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
22915 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
22916 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
22917 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
22918 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
22919 (tcheck): Remove builtin argument.
22920 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
22922 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
22923 tabortdc and tabortdci builtins when not in 64-bit mode.
22924 Modify code to handle the loss of the HTM define_expands.
22925 Emit code to copy the CR register to TARGET.
22926 (htm_init_builtins): Modify code to handle the loss of the HTM
22928 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
22929 (RS6000_BTC_64BIT): Likewise.
22930 (RS6000_BTC_CR): New macro.
22931 * doc/extend.texi: Update documentation for htm builtins.
22933 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22935 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
22936 of manually swapping.
22937 (simplify_associative_operation): Likewise.
22938 (simplify_binary_operation): Likewise.
22939 (simplify_plus_minus): Likewise.
22940 (simplify_relational_operation): Likewise.
22941 (simplify_ternary_operation): Likewise.
22943 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
22945 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
22946 (xs_hi_nonmemory_operand): Remove error.
22947 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
22948 general_operand rather than xs_hi_general_operand.
22950 2015-04-27 Richard Biener <rguenther@suse.de>
22952 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
22953 (record_equivalences_from_stmt): Valueize rhs.
22954 (record_equality): Canonicalize x and y order via
22955 tree_swap_operands_p. Do not swap operands for same loop depth.
22957 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
22961 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
22962 Add hint how to use own spec file.
22964 2015-04-27 Jakub Jelinek <jakub@redhat.com>
22966 PR tree-optimization/65875
22967 * tree-vrp.c (update_value_range): If in is_new case setting
22968 old_vr to VR_VARYING, also set new_vr to it. Remove
22969 old_vr->type == VR_VARYING test.
22970 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
22971 SSA_PROP_INTERESTING if update_value_range returned true,
22972 but new range is VR_VARYING.
22974 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22976 * combine.c (sign_extend_short_imm): New.
22977 (set_nonzero_bits_and_sign_copies): Use above new function for sign
22978 extension of src short immediate.
22979 (reg_nonzero_bits_for_combine): Likewise for tem.
22981 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
22983 * stor-layout.c (self_referential_component_ref_p): New predicate.
22984 (copy_self_referential_tree_r): Use it.
22985 (self_referential_size): Punt for simple operations directly involving
22986 self-referential component references.
22987 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
22989 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
22991 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
22993 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
22995 * vec.h (vec): Make splice arguments const. Update definitions
22998 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
23000 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23003 2015-04-26 Tom de Vries <tom@codesourcery.com>
23005 PR tree-optimization/65826
23006 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23008 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
23010 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23011 (*madd3<mode>): Ditto.
23012 (*msub4<mode>): Ditto.
23013 (*msub3<mode>): Ditto.
23014 (*nmadd4<mode>): Ditto.
23015 (*nmadd3<mode>): Ditto.
23016 (*nmadd4<mode>_fastmath): Ditto.
23017 (*nmadd3<mode>_fastmath): Ditto.
23018 (*nmsub4<mode>): Ditto.
23019 (*nmsub3<mode>): Ditto.
23020 (*nmsub4<mode>_fastmath): Ditto.
23021 (*nmsub3<mode>_fastmath): Ditto.
23023 2015-04-24 Jason Merrill <jason@redhat.com>
23026 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23027 down when building TYPE_CANONICAL.
23028 (build_pointer_type_for_mode): Likewise.
23030 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
23032 * genrecog.c (validate_pattern): Check matching constraint refers
23033 to a lower numbered operand.
23035 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23038 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23039 save to independent variables use the Save attribute. This will
23040 allow these options to be modified with the #pragma/attribute
23042 (-mallow-movmisalign): Likewise.
23043 (-mallow-df-permute): Likewise.
23044 (-msched-groups): Likewise.
23045 (-malways-hint): Likewise.
23046 (-malign-branch-targets): Likewise.
23047 (-mvectorize-builtins): Likewise.
23048 (-msave-toc-indirect): Likewise.
23050 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23051 can be set via the #pragma/attribute target support.
23052 (rs6000_opt_vars): Likewise.
23053 (rs6000_inner_target_options): If VSX was set, also set
23054 -mno-avoid-indexed-addresses.
23056 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23058 * config/arm/iterators.md (shiftable_ops): Rename to...
23059 (SHIFTABLE_OPS): ... This. Update use in comments.
23060 (ior_xor): Rename to...
23061 (IOR_XOR): ... This.
23062 (vqh_ops): Rename to...
23063 (VQH_OPS): ... This.
23064 (vqhs_ops): Rename to...
23065 (VQHS_OPS): ... This.
23066 (rshifts): Rename to...
23067 (RSHIFTS): ... This.
23068 (returns): Rename to...
23069 (RETURNS): ... This.
23070 * config/arm/arm.md: Update uses of the above.
23071 * config/arm/neon.md: Likewise.
23073 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23075 * config.host (case ${host}): Add aarch64*-*-linux case.
23076 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23077 fields to all the cores.
23078 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23079 Add MCPU_MTUNE_NATIVE_SPECS.
23080 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23081 field to all extensions.
23082 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23083 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23084 Adjust definition of AARCH64_OPT_EXTENSION.
23085 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23086 (MCPU_MTUNE_NATIVE_SPECS): Define.
23087 * config/aarch64/driver-aarch64.c: New file.
23088 * config/aarch64/x-arch64: New file.
23089 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23092 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23093 Wei Mi <wmi@google.com>
23095 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23096 * config/i386/i386.c (extract_base_offset_in_addr): New function.
23097 (ix86_operands_ok_for_move_multiple): Ditto.
23098 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23099 (movlpd/movhpd to movupd peephole2): Ditto.
23101 2015-04-24 Marek Polacek <polacek@redhat.com>
23104 * input.h (from_macro_expansion_at): Define.
23107 * doc/invoke.texi: Update description of -Wlogical-op.
23109 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23111 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23112 ternary operator in fprintf and harmonize spacing.
23114 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23116 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23117 Mark operand1 commutative.
23119 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
23121 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23122 input operands in memory.
23123 (*vec_concatv2si_sse4_1): Ditto.
23124 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23125 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23127 (vec_extract_hi_v32hi): Ditto.
23128 (vec_extract_hi_v64hi): Ditto.
23129 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23131 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
23132 Steven Bosscher <steven@gcc.gnu.org>
23134 PR rtl-optimization/34503
23135 * cprop.c (cprop_reg_p): New.
23136 (hash_scan_set): Use above function to check if register can be
23138 (find_avail_set): Return up to two sets, one whose source is a
23139 register and one whose source is a constant. Sets are returned in an
23140 array passed as parameter rather than as a return value.
23141 (cprop_insn): Use a do while loop rather than a goto. Try each of the
23142 sets returned by find_avail_set, starting with the one whose source is
23143 a constant. Use cprop_reg_p to check if register can be propagated.
23144 (do_local_cprop): Use cprop_reg_p to check if register can be
23146 (implicit_set_cond_p): Likewise.
23148 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23150 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23151 (sem_function::equals): IGNORED_NODES parameter is now unused;
23152 update call of equals_private.
23153 (sem_function::equals_private): Do not call equals_wpa; skip
23154 gimple body matching if there is no body.
23155 (sem_function::init): Add logic to hash tthunk info.
23156 (sem_function::parse): Also parse thunks.
23157 * ipa-icf.h (equals_private): Update declaration.
23159 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23161 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23162 asterisk from name so this can be generated directly.
23163 (*altivec_stvx_<mode>_internal): Likewise.
23164 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23165 that this is never called during or after reload/lra.
23166 (rs6000_frame_related): Remove split_reg
23167 argument and logic that references it.
23168 (emit_frame_save): Remove last parameter from call to
23169 rs6000_frame_related.
23170 (rs6000_emit_prologue): Remove last parameter from eight calls to
23171 rs6000_frame_related. Force generation of stvx instruction for
23172 Altivec register saves. Remove split_reg handling, which is no
23174 (rs6000_emit_epilogue): Force generation of lvx instruction for
23175 Altivec register restores.
23177 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23179 * config/rs6000/rs6000.opt (mcrypto): Change option description to
23180 match category changes in ISA 2.07B.
23182 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23184 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23186 (cmp_op, cmp_type): New code attributes.
23187 (NEON_VCMP, NEON_VACMP): New int iterators.
23188 (cmp_op_unsp): New int attribute.
23189 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23190 (neon_vceq<mode>): Delete.
23191 (neon_vc<cmp_op><mode>_insn): New pattern.
23192 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23193 (neon_vcgeu<mode>): Delete.
23194 (neon_vcle<mode>): Likewise.
23195 (neon_vclt<mode>: Likewise.
23196 (neon_vcage<mode>): Likewise.
23197 (neon_vcagt<mode>): Likewise.
23198 (neon_vca<cmp_op><mode>): New define_expand.
23199 (neon_vca<cmp_op><mode>_insn): New pattern.
23200 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23202 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23204 * tree.h (attribute_value_equal): Declare.
23205 * tree.c (attribute_value_equal): Export.
23207 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23209 * ipa-icf.c (sem_item::compare_attributes): New function.
23210 (sem_item::compare_referenced_symbol_properties): Compare variable
23212 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23213 (sem_function::param_used_p): New function.
23214 (sem_function::equals_wpa): Fix attribute comparsion; match
23215 parameter type codes; do not compare paremter flags when
23216 they are not used; compare edge flags; compare indirect calls.
23217 (sem_item::update_hash_by_addr_refs): Hash reference type.
23218 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23219 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23220 reference use type.
23221 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23222 * ipa-icf.h (compare_attributes, param_used_p): Declare.
23224 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
23226 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23228 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
23229 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
23230 (sem_item::compare_referenced_symbol_properties): New.
23231 (sem_item::hash_referenced_symbol_properties): New.
23232 (sem_item::compare_cgraph_references): Rename to ...
23233 (sem_item::compare_symbol_references): ... this one; use
23234 compare_referenced_symbol_properties.
23235 (sem_function::equals_wpa): Do not compare
23236 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
23237 DECL_IS_OPERATOR_NEW; compare pointer sizes.
23238 (sem_item::update_hash_by_addr_refs): Call
23239 hash_referenced_symbol_properties.
23240 (sem_item::update_hash_by_local_refs): Cleanup.
23241 (sem_function::merge): Do not mix up symbol properties.
23242 (sem_variable::equals_wpa): Use compare_symbol_references.
23243 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
23244 (sem_item::hash_referenced_symbol_properties): New.
23245 (sem_item::compare_symbol_references): New.
23246 (sem_item::compare_cgraph_references): Remove.
23248 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
23251 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
23252 Emit size of local.
23254 2015-04-23 Nick Clifton <nickc@redhat.com>
23256 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
23257 ATTRIBUTE_UNUSED to x parameter.
23258 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
23260 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23262 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
23263 TARGET_CRYPTO to TARGET_P8_VECTOR>
23264 (crypto_vpermxor_<mode>): Likewise.
23265 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
23266 (BU_CRYPTO_3A): Likewise.
23267 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
23268 (BU_CRYPTO_OVERLOAD_3A): New #define.
23269 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
23270 (VPMSUMH): Likewise.
23271 (VPMSUMW): Likewise.
23272 (VPMSUMD): Likewise.
23273 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
23274 (VPERMXOR_V4SI): Likewise.
23275 (VPERMXOR_V8HI): Likewise.
23276 (VPERMXOR_V16QI): Likewise.
23277 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
23278 BU_CRYPTO_OVERLOAD_2A.
23279 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
23280 BU_CRYPTO_OVERLOAD_3A.
23281 * config/rs6000/rs6000.opt (mcrypto): Change description of
23284 2015-04-23 Richard Biener <rguenther@suse.de>
23286 * passes.def: Remove copy propagation passes run directly after CCP.
23287 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
23289 (ccp_visit_phi_node): Rework to handle first executable edge
23292 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
23294 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23295 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23296 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
23297 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
23298 (thumb_legimitimize_reload_address): Remove.
23299 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
23301 (thumb_legimitimize_reload_address): Remove.
23303 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23305 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
23307 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23309 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
23311 (store_multiple): Likewise.
23313 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23315 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
23316 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
23317 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
23318 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
23319 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
23320 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
23321 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
23322 Specify issue_rate value.
23323 (arm_issue_rate): Look up issue rate from tuning structs. Remove
23324 large switch statement.
23325 (arm_marvell_pj4_tune): New struct.
23326 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
23329 2015-04-23 Richard Biener <rguenther@suse.de>
23331 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
23332 (vect_find_last_store_in_slp_instance): Rename to ...
23333 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
23334 (vect_analyze_slp_cost_1): Use vector_load for constant defs
23335 and vec_construct for external defs when estimating prologue cost.
23336 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
23337 Compute costs here only when vectorizing loops.
23338 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
23339 have been determined.
23340 (vect_schedule_slp_instance): Simplify vectorized code placement
23341 and prepare for in-BB external defs.
23342 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
23343 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
23344 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
23346 (vect_model_load_cost): Likewise.
23347 (vectorizable_store): Instead add it here.
23348 (vectorizable_load): Likewise.
23349 (vect_is_simple_use): Dump def type textually.
23351 2015-04-23 Richard Biener <rguenther@suse.de>
23353 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
23354 * cfgloop.c (verify_loop_structure): Verify the root loop node.
23355 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
23356 instead of get_eh_region_from_lp_number.
23357 * loop-init.c (fix_loop_structure): If we removed a loop, reset
23360 2015-04-23 Anton Blanchard <anton@samba.org>
23362 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
23363 need for -mprofile-kernel to save LR to stack.
23365 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23367 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
23369 (insn_is_swappable_p): Return 1 for a convert from double to
23370 single precision when all of its uses are splats of BE element
23373 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23375 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
23377 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23380 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
23381 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
23382 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
23384 (rs6000_builtin_mask_for_load): Return 0 for targets with
23385 efficient unaligned VSX accesses so that the vectorizer will use
23386 direct unaligned loads.
23387 (rs6000_builtin_support_vector_misalignment): Always return true
23388 for targets with efficient unaligned VSX accesses.
23389 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
23390 stores on targets with efficient unaligned VSX accesses is almost
23391 always the same as the cost of an aligned load or store, so model
23393 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
23394 unaligned vectors if we have efficient unaligned VSX accesses.
23395 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
23396 undocumented option.
23398 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23401 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
23403 * config.gcc (LIBC_MUSL): New tm_defines macro.
23404 * config/linux.h (OPTION_MUSL): Define.
23405 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23406 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23407 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23409 * config/linux.opt (mmusl): New option.
23410 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23411 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23413 * configure: Regenerate.
23415 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
23417 * config.gcc (LIBC_MUSL): New tm_defines macro.
23418 * config/linux.h (OPTION_MUSL): Define.
23419 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23420 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23421 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23423 * config/linux.opt (mmusl): New option.
23424 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23425 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23427 * configure: Regenerate.
23429 2015-04-22 Yury Gribov <y.gribov@samsung.com>
23431 * doc/invoke.texi (-fsanitize-sections): Update description.
23432 * asan.c (set_sanitized_sections): Parse incoming arg.
23433 (section_sanitized_p): Support wildcards.
23435 2015-04-22 Tom de Vries <tom@codesourcery.com>
23437 PR tree-optimization/65823
23438 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
23439 equality between ap_copy and ap.
23441 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23444 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
23446 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23449 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
23451 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23454 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
23455 remove already contained t-files.
23457 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23459 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
23460 Remove unneeded forward declarations.
23461 (suitable_for_tail_call_opt_p): Commentary typo fix.
23463 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23465 * varasm.c (emit_bss): Remove redundant guard.
23467 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23469 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
23471 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23473 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
23475 2015-04-22 Hale Wang <hale.wang@arm.com>
23476 Terry Guo <terry.guo@arm.com>
23478 PR rtl-optimization/64818
23479 * combine.c (can_combine_p): Don't combine user-specified
23480 register if it is in an asm input.
23482 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
23485 * passes.def (early_optimizations): Add pass_dse.
23487 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23489 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
23490 * reorg.c (redundant_insn): Remove ifdef
23491 INSN_REFERENCES_ARE_DELAYED.
23492 * resource.c (mark_referenced_resources): Likewise.
23494 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23496 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
23497 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
23498 * resource.c (mark_set_resources): Likewise.
23500 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23502 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
23503 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23504 (flow_find_head_matching_sequence): Likewise.
23505 (try_head_merge_bb): Likewise.
23506 * combine.c (can_combine_p): Likewise.
23507 (try_combine): Likewise.
23508 (distribute_notes): Likewise.
23509 * df-problems.c (can_move_insns_across): Likewise.
23510 * final.c (final): Likewise.
23511 * gcse.c (insert_insn_end_basic_block): Likewise.
23512 * ira.c (find_moveable_pseudos): Likewise.
23513 * reorg.c (try_merge_delay_insns): Likewise.
23514 (fill_simple_delay_slots): Likewise.
23515 (fill_slots_from_thread): Likewise.
23516 * sched-deps.c (sched_analyze_2): Likewise.
23518 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23520 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
23521 PIC_OFFSET_TABLE_REGNUM.
23523 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23525 * alias.c (init_alias_target): Remove ifdef
23526 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
23527 * df-scan.c (df_insn_refs_collect): Likewise.
23528 (df_get_regular_block_artificial_uses): Likewise.
23529 (df_get_eh_block_artificial_uses): Likewise.
23530 (df_get_entry_block_def_set): Likewise.
23531 (df_get_exit_block_use_set): Likewise.
23532 * emit-rtl.c (gen_rtx_REG): Likewise.
23533 * ira.c (ira_setup_eliminable_regset): Likewise.
23534 * reginfo.c (init_reg_sets_1): Likewise.
23535 * regrename.c (rename_chains): Likewise.
23536 * reload1.c (reload): Likewise.
23537 (eliminate_regs_in_insn): Likewise.
23538 * resource.c (mark_referenced_resources): Likewise.
23539 (init_resource_info): Likewise.
23541 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23543 * defaults.h (MASK_RETURN_ADDR): New definition.
23544 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23547 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23549 * defaults.h (RETURN_ADDR_OFFSET): New definition.
23550 * except.c (expand_builtin_extract_return_addr): Remove ifdef
23551 RETURN_ADDR_OFFSET.
23552 (expand_builtin_frob_return_addr): Likewise.
23554 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23556 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
23557 (try_redirect_by_replacing_jump): Likewise.
23558 (rtl_tidy_fallthru_edge): Likewise.
23559 * combine.c (insn_a_feeds_b): Likewise.
23560 (find_split_point): Likewise.
23561 (simplify_set): Likewise.
23562 * cprop.c (cprop_jump): Likewise.
23563 * cse.c (cse_extended_basic_block): Likewise.
23564 * df-problems.c (can_move_insns_across): Likewise.
23565 * function.c (emit_use_return_register_into_block): Likewise.
23566 * haifa-sched.c (sched_init): Likewise.
23567 * ira.c (find_moveable_pseudos): Likewise.
23568 * loop-invariant.c (find_invariant_insn): Likewise.
23569 * lra-constraints.c (curr_insn_transform): Likewise.
23570 * postreload.c (reload_combine_recognize_const_pattern):
23572 * reload.c (find_reloads): Likewise.
23573 * reorg.c (delete_scheduled_jump): Likewise.
23574 (steal_delay_list_from_target): Likewise.
23575 (steal_delay_list_from_fallthrough): Likewise.
23576 (redundant_insn): Likewise.
23577 (fill_simple_delay_slots): Likewise.
23578 (fill_slots_from_thread): Likewise.
23579 (delete_computation): Likewise.
23580 * sched-rgn.c (add_branch_dependences): Likewise.
23582 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23584 * genconfig.c (main): Always define HAVE_cc0.
23585 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
23587 * cfgcleanup.c (flow_find_cross_jump): Likewise.
23588 (flow_find_head_matching_sequence): Likewise.
23589 (try_head_merge_bb): Likewise.
23590 * cfgrtl.c (rtl_merge_blocks): Likewise.
23591 (try_redirect_by_replacing_jump): Likewise.
23592 (rtl_tidy_fallthru_edge): Likewise.
23593 * combine.c (do_SUBST_MODE): Likewise.
23594 (insn_a_feeds_b): Likewise.
23595 (combine_instructions): Likewise.
23596 (can_combine_p): Likewise.
23597 (try_combine): Likewise.
23598 (find_split_point): Likewise.
23600 (simplify_set): Likewise.
23601 (distribute_notes): Likewise.
23602 * cprop.c (cprop_jump): Likewise.
23603 * cse.c (cse_extended_basic_block): Likewise.
23604 * df-problems.c (can_move_insns_across): Likewise.
23605 * final.c (final): Likewise.
23606 (final_scan_insn): Likewise.
23607 * function.c (emit_use_return_register_into_block): Likewise.
23608 * gcse.c (insert_insn_end_basic_block): Likewise.
23609 * haifa-sched.c (sched_init): Likewise.
23610 * ira.c (find_moveable_pseudos): Likewise.
23611 * loop-invariant.c (find_invariant_insn): Likewise.
23612 * lra-constraints.c (curr_insn_transform): Likewise.
23613 * optabs.c (prepare_cmp_insn): Likewise.
23614 * postreload.c (reload_combine_recognize_const_pattern):
23616 * reload.c (find_reloads): Likewise.
23617 (find_reloads_address_1): Likewise.
23618 * reorg.c (delete_scheduled_jump): Likewise.
23619 (steal_delay_list_from_target): Likewise.
23620 (steal_delay_list_from_fallthrough): Likewise.
23621 (try_merge_delay_insns): Likewise.
23622 (redundant_insn): Likewise.
23623 (fill_simple_delay_slots): Likewise.
23624 (fill_slots_from_thread): Likewise.
23625 (delete_computation): Likewise.
23626 (relax_delay_slots): Likewise.
23627 * sched-deps.c (sched_analyze_2): Likewise.
23628 * sched-rgn.c (add_branch_dependences): Likewise.
23630 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23632 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
23633 that is trivially ded on non cc0 targets.
23634 (simplify_set): Likewise.
23635 (mark_used_regs_combine): Likewise.
23636 * cse.c (new_basic_block): Likewise.
23637 (fold_rtx): Likewise.
23638 (cse_insn): Likewise.
23639 (cse_extended_basic_block): Likewise.
23640 (set_live_p): Likewise.
23641 * rtlanal.c (canonicalize_condition): Likewise.
23642 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23644 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23646 * conditions.h: Define macros even if HAVE_cc0 is undefined.
23647 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
23648 * final.c: Likewise.
23649 * jump.c: Likewise.
23650 * recog.c: Likewise.
23651 * recog.h: Declare functions even when HAVE_cc0 is undefined.
23652 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
23654 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23656 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
23657 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
23658 * builtins.c (expand_builtin): Remove check if
23659 EH_RETURN_DATA_REGNO is defined.
23660 * df-scan.c (df_bb_refs_collect): Likewise.
23661 (df_get_exit_block_use_set): Likewise.
23662 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
23663 * ira-lives.c (process_bb_node_lives): Likewise.
23664 * lra-lives.c (process_bb_lives): Likewise.
23666 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
23668 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
23669 FIRST_PSEUDO_REG): New.
23670 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
23671 (ARG_POINTER_REGNUM): Define to ARGP_REG.
23672 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
23673 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
23674 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
23675 (FIRST_INT_REG): New.
23676 (LAST_INT_REG): New.
23677 (FIRST_*_REG): Define using *_REG.
23678 (LAST_*_REG): Ditto.
23679 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
23680 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
23681 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
23683 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23685 * expmed.c: (synth_mult): Only assume overlapping
23686 shift with previous steps in alg_sub_t_m2 case.
23688 2015-04-21 Richard Biener <rguenther@suse.de>
23690 PR tree-optimization/65650
23691 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
23692 transitions involving copies.
23693 (set_lattice_value): Adjust for copy lattice state.
23694 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
23695 if that doesn't dominate the merge point.
23696 (bit_value_unop): Adjust what we treat as varying mask.
23697 (bit_value_binop): Likewise.
23698 (bit_value_assume_aligned): Likewise.
23699 (evaluate_stmt): When we simplified to a SSA name record a copy
23700 instead of dropping to varying.
23701 (visit_assignment): Simplify.
23703 * gimple-match.h (gimple_simplify): Add another callback.
23704 * gimple-fold.c (fold_stmt_1): Adjust caller.
23705 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
23706 for the 2nd callback.
23707 * gimple-match-head.c (gimple_simplify): Add a callback that is
23708 used to valueize the stmt operands and use it that way.
23710 2015-04-21 Richard Biener <rguenther@suse.de>
23712 PR tree-optimization/65788
23713 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
23715 2015-04-21 Richard Biener <rguenther@suse.de>
23717 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
23718 vec_construct cost by vec_stmt_cost.
23720 2015-04-21 Richard Biener <rguenther@suse.de>
23722 * cfghooks.h (create_basic_block): Replace with two overloads
23723 for RTL and GIMPLE.
23724 (split_block): Likewise.
23725 * cfghooks.c (split_block): Rename to ...
23726 (split_block_1): ... this.
23727 (split_block): Add two type-safe overloads for RTL and GIMPLE.
23728 (split_block_after_labels): Call split_block_1.
23729 (create_basic_block): Rename to ...
23730 (create_basic_block_1): ... this.
23731 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
23732 (create_empty_bb): Call create_basic_block_1.
23733 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
23734 split_block_after_labels.
23735 * omp-low.c (expand_parallel_call): Likewise.
23736 (expand_omp_target): Likewise.
23737 (simd_clone_adjust): Likewise.
23738 * tree-chkp.c (chkp_get_entry_block): Likewise.
23739 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
23740 create_basic_block overload.
23741 (cgraph_node::expand_thunk): Likewise.
23742 * tree-cfg.c (make_blocks): Likewise.
23743 (handle_abnormal_edges): Likewise.
23744 * tree-inline.c (copy_bb): Likewise.
23746 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23748 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
23750 (*xor_one_cmplsidi3_ze): Likewise.
23752 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
23754 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
23755 use df_remove_problem rather than manually removing problems, leaving
23756 holes in df->problems_in_order[].
23758 2015-04-21 Tom de Vries <tom@codesourcery.com>
23760 PR tree-optimization/65802
23761 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
23763 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23765 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
23767 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
23768 at '.'. Assert that there's enough space for everything.
23770 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
23772 PR tree-optimization/64950
23774 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
23777 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
23780 2015-04-20 Shiva Chen <shiva0217@gmail.com>
23782 PR rtl-optimization/64916
23783 * cfgcleanup.c (values_equal_p): New function.
23784 (can_replace_by): Use it.
23786 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
23789 * doc/invoke.texi ([-Wnarrowing]): Update.
23791 2015-04-20 Jeff Law <law@redhat.com>
23793 PR tree-optimization/65658
23794 * tree-ssa-threadupdate.c (redirection_block_p): Remove
23795 redundant test for GIMPLE_ASSIGN in last change.
23797 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
23799 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
23800 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
23801 (legitimize_tls_address): Ditto.
23802 (ix86_expand_move): Ditto.
23803 (ix86_expand_binary_operator): Remove reload_in_progress checks.
23804 (ix86_expand_unary_operator): Ditto.
23805 * config/i386/predicates.md (index_register_operand): Ditto.
23807 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
23809 * reorg.c (try_merge_delay_insns): Improve correctness checking
23810 for targets with multiple delay slots.
23812 2015-04-20 Jeff Law <law@redhat.com>
23814 PR tree-optimization/65658
23815 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
23818 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
23820 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
23821 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
23824 2015-04-20 Jakub Jelinek <jakub@redhat.com>
23827 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
23829 2015-04-20 Richard Biener <rguenther@suse.de>
23831 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
23832 * gimple-fold.c (gimple_build_valueize): New function.
23833 (gimple_build): Always use gimple_build_valueize as valueize hook.
23835 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
23838 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
23839 and overwrite variable parts if <= 1/2 the elements are variable.
23841 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
23843 PR rtl-optimization/65805
23844 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
23845 Don't use difference of offset and previous offset if
23846 update_sp_offset is non-zero.
23847 (eliminate_regs_in_insn): Ditto.
23848 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
23849 lra_eliminate_regs_1 call.
23850 * lra-constraints.c (get_equiv_with_elimination): Ditto.
23852 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
23854 * hash-table.h: Remove version of hash_table that stored value_type *.
23855 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
23856 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
23857 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
23858 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
23859 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
23860 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
23861 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
23862 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
23863 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
23864 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
23865 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
23866 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
23867 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
23868 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
23869 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
23870 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
23872 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23873 Jakub Jelinek <jakub@redhat.com>
23876 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
23877 subsequent SH_NONE operand does not overwrite an existing *special
23879 (adjust_extract): Handle case where a vec_extract operation is
23880 wrapped in a PARALLEL.
23882 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
23885 * config/i386/i386.c (ix86_binds_local_p): Define only if
23886 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
23888 2015-04-17 Jeff Law <law@redhat.com>
23890 PR tree-optimization/47679
23891 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
23892 * tree-ssa-scopedtables.c: New file.
23893 * tree-ssa-scopedtables.h: New file.
23894 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
23895 (const_and_copies): Change name/type.
23896 (record_const_or_copy): Move into tree-ssa-scopedtables.c
23897 (record_const_or_copy_1): Similarly.
23898 (restore_vars_to_original_value): Similarly.
23899 (pass_dominator::execute): Create and destroy const_and_copies table.
23900 (thread_across_edge): Update passing of const_and_copies.
23901 (record_temporary_equivalence): Use method calls rather than
23902 manipulating const_and_copies directly.
23903 (record_equality, cprop_into_successor_phis): Similarly.
23904 (dom_opt_dom_walker::before_dom_children): Similarly.
23905 (dom_opt_dom_walker::after_dom_children): Similarly.
23906 (eliminate_redundant_computations): Similarly.
23907 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
23908 (record_temporary_equivalence): Likewise.
23909 (invalidate_equivalences): Likewise.
23910 (record_temporary_equivalences_from_phis): Update due to type
23911 change of const_and_copies. Use method calls rather than
23912 manipulating the stack directly.
23913 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
23914 (thread_through_normal_block, thread_across_edge): Likewise.
23915 (thread_across_edge): Likewise.
23916 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
23917 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
23919 (identify_jump_threads): Update due to type change of equiv_stack.
23920 (finalize_jump_threads): Delete the equiv_stack when complete.
23922 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
23924 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23925 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
23926 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
23928 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
23931 * config.gcc: Exit with a comment when we do not have a major version
23932 number for the FreeBSD target.
23934 2015-04-17 Jakub Jelinek <jakub@redhat.com>
23937 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
23938 maybe_allows_mem bitfields.
23939 (maybe_allows_none_start, maybe_allows_none_end,
23940 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
23941 maybe_allows_mem_end): New variables.
23942 (compute_maybe_allows): New function.
23943 (add_constraint): Use it to initialize maybe_allows_reg and
23944 maybe_allows_mem fields.
23945 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
23946 is_address constraints such that those that allow neither mem nor
23947 reg come first, then those that only allow reg but not mem, then
23948 those that only allow mem but not reg, then the rest.
23949 (write_allows_reg_mem_function): New function.
23950 (write_tm_preds_h): Call it.
23951 * stmt.c (parse_output_constraint, parse_input_constraint): Use
23952 the generated insn_extra_constraint_allows_reg_mem function
23953 instead of always setting *allows_reg = true; *allows_mem = true;
23954 for unknown extra constraints.
23956 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
23959 * output.h (default_binds_local_p_3): New.
23960 * varasm.c (default_binds_local_p_3): Make it public. Take an
23961 argument to indicate if common symbol may be local. If common
23962 symbol may be local, treat non-external variable as defined
23964 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
23965 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
23966 * config/i386/i386.c (ix86_binds_local_p): New.
23967 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
23968 ix86_binds_local_p.
23970 2015-04-17 Jakub Jelinek <jakub@redhat.com>
23973 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
23974 trying mem_loc_descriptor on XEXP (rtl, 0).
23976 2015-04-17 Martin Liska <mliska@suse.cz>
23978 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23979 Release symbol_compare_collection.
23980 * ipa-reference.c: Add TODO that a vector should be released.
23982 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
23985 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
23986 to new AVR-LibC file layout (bug #44574).
23987 (*avrlibc_devicelib): Same.
23988 * config/avr/avr-mcus.def: Adjust comments.
23989 * config/avr/avr.opt (nodevicelib): Adjust help.
23991 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
23993 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
23995 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
23998 * gimplify.c (gimplify_init_constructor): Always emit a
23999 side-effecting constructor.
24001 2015-04-17 Tom de Vries <tom@codesourcery.com>
24003 PR tree-optimization/64950
24004 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24005 in cfun->curr_properties.
24006 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24007 if we generate an IFN_VA_ARG.
24008 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24009 function if PROP_gimple_lva is not set in src function.
24011 2015-04-17 Tom de Vries <tom@codesourcery.com>
24012 Michael Matz <matz@suse.de>
24014 PR tree-optimization/64950
24015 * gimple-iterator.c (update_modified_stmts): Remove static.
24016 * gimple-iterator.h (update_modified_stmts): Declare.
24017 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24018 (gimplify_va_arg_internal): New function.
24019 (gimplify_va_arg_expr): Use IFN_VA_ARG.
24020 * gimplify.h (gimplify_va_arg_internal): Declare.
24021 * internal-fn.c (expand_VA_ARG): New unreachable function.
24022 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24023 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24024 (expand_ifn_va_arg): New function.
24025 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24026 (pass_stdarg::execute): Call expand_ifn_va_arg.
24027 (pass_data_lower_vaarg): New pass_data.
24028 (pass_lower_vaarg): New gimple_opt_pass.
24029 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24030 (make_pass_lower_vaarg): New function.
24031 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24032 properties_required field.
24033 * passes.def (all_passes): Add pass_lower_vaarg.
24034 * tree-pass.h (PROP_gimple_lva): Add define.
24035 (make_pass_lower_vaarg): Declare.
24037 2015-04-17 Tom de Vries <tom@codesourcery.com>
24039 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24040 * calls.c (call_expr_flags): Same.
24042 2015-04-17 Tom de Vries <tom@codesourcery.com>
24044 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24045 (pass_stdarg::execute): ... here.
24047 2015-04-17 Tom de Vries <tom@codesourcery.com>
24048 Michael Matz <matz@suse.de>
24050 * tree-cfg.c (make_blocks_1): Factor out of ...
24051 (make_blocks): ... here.
24052 (make_edges_bb): Factor out of ...
24053 (make_edges): ... here.
24054 (gimple_find_sub_bbs): New function.
24055 * tree-cfg.h (gimple_find_sub_bbs): Declare.
24057 2015-04-17 Tom de Vries <tom@codesourcery.com>
24059 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24061 2015-04-17 Yury Gribov <y.gribov@samsung.com>
24063 * asan.c (set_sanitized_sections): New function.
24064 (section_sanitized_p): Ditto.
24065 (asan_protect_global): Optionally sanitize user-defined
24067 * asan.h (set_sanitized_sections): Declare new function.
24068 * common.opt (fsanitize-sections): New option.
24069 * doc/invoke.texi (-fsanitize-sections): Document new option.
24070 * opts-global.c (handle_common_deferred_options): Handle new
24073 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24076 * dwarf2out.c (loc_list_from_tree): Return NULL
24077 for DEBUG_EXPR_DECL.
24079 2015-04-17 Christian Bruel <christian.bruel@st.com>
24081 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24084 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24086 * ira-color.c (setup_left_conflict_sizes_p): Do not process
24087 node itself when computing left conflict subnode size.
24089 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24091 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24092 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24093 *fop_<mode>_1_sse using enabled attribute. Use
24094 register_mixssei387nonimm_operand operand 1 predicate. Change
24095 alternative 3 constraints from "x" to "v".
24097 2015-04-16 Richard Biener <rguenther@suse.de>
24099 PR tree-optimization/65774
24100 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24101 bit-value tracking on.
24103 2015-04-16 Richard Biener <rguenther@suse.de>
24105 PR tree-optimization/64277
24106 * tree-vrp.c (check_array_ref): Fix anti-range handling,
24107 simplify upper bound handling.
24108 (search_for_addr_array): Simplify.
24109 (check_array_bounds): Handle ADDR_EXPRs here.
24110 (check_all_array_refs): Simplify.
24112 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
24114 * config/i386/i386.c (print_reg): Rewrite function.
24116 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24118 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24119 Invert the condition.
24121 2015-04-16 Renlin Li <renlin.li@arm.com>
24123 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24124 simplifications for UNSIGNED_FLOAT.
24126 2015-04-16 Nick Clifton <nickc@redhat.com>
24128 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24130 (enum rl78_cpu_type): New.
24131 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24132 (umulhi3_shift_virt): Remove m constraint from operand 1.
24133 (umulqihi3_virt): Likewise.
24134 * config/rl78/rl78.c (rl78_option_override): Add code to process
24135 -mcpu and -mmul options.
24136 (rl78_alloc_physical_registers): Add code to handle divhi and
24137 divsi valloc attributes.
24138 (set_origin): Likewise.
24139 * config/rl78/rl78.h (RL78_MUL_G14): Define.
24140 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24141 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24143 (ASM_SPEC): Pass -mcpu on to assembler.
24144 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24145 (mulqi3_rl78): Likewise.
24146 (mulhi3_g13): Likewise.
24147 (mulhi3): Generate the G13 or G14 versions of the insn directly.
24148 (mulsi3): Likewise.
24149 (mulhi3_g14): Add clobbers of AX and BC.
24150 (mulsi3_g14): Likewise.
24151 (mulsi3_g13): Likewise.
24152 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24153 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24154 * config/rl78/rl78.opt (mmul): Initialise value to
24156 (mcpu): New option.
24157 (m13, m14, mrl78): New option aliases.
24158 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24159 (MULTILIB_DIRNAMES): Add g13 and g14.
24160 * doc/invoke.texi: Document -mcpu and -mmul options.
24162 2015-04-16 Richard Biener <rguenther@suse.de>
24164 * tree-ssa-ccp.c (likely_value): See if we have operands that
24165 are marked as never simulate again and return CONSTANT in this
24167 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24168 not have any operands that will be simulated again as
24169 not being simulated again.
24171 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
24173 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24174 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24175 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24177 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24179 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24180 *float<SWI48:mode><MODEF:mode>2_sse.
24181 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24183 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24186 2015-04-15 Tom de Vries <tom@codesourcery.com>
24189 * function.c (push_dummy_function): New function.
24190 (init_dummy_function_start): Use push_dummy_function.
24191 (pop_dummy_function): New function. Factored out of ...
24192 (expand_dummy_function_end): ... here.
24193 * function.h (push_dummy_function, pop_dummy_function): Declare.
24194 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24195 pop_dummy_function.
24196 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24198 2015-04-15 Jeff Law <law@redhat.com>
24200 PR tree-optimization/47679
24201 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24202 need for forward declaration in upcoming changes.
24203 (record_conditions, record_edge_info): Likewise.
24205 PR rtl-optimization/42522
24206 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24207 SIGN_EXTRACT as a whole object rather than simplifying
24210 2015-04-15 Jakub Jelinek <jakub@redhat.com>
24213 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24214 and GIMPLE_PREDICT use break instead of return true. For
24215 GIMPLE_EH_DISPATCH, compare dispatch region.
24217 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
24219 * doc/extend.texi (__sync Builtins): Simplify some text. Update
24220 details about the implementation. Make clear preference for
24221 __atomic builtins. Reduce possibility of future change.
24223 2015-04-15 Nick Clifton <nickc@redhat.com>
24225 * config/rx/rx.opt (mallow-string-insns): New option.
24226 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24227 builtin if string instructions are denied.
24228 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
24229 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
24231 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
24232 * config/rx/rx.md (movstr): Enable pattern only if string
24233 instructions are allowed.
24234 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
24235 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
24236 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
24237 (MULTILIB_DIRNAMES): Add no-strings.
24238 * doc/invoke.texi: Document -mno-allow-string-insns.
24240 2015-04-15 Alan Modra <amodra@gmail.com>
24244 PR middle-end/36043
24245 * calls.c (load_register_parameters): Don't load past end of
24246 mem unless suitably aligned.
24248 2015-04-15 Nick Clifton <nickc@redhat.com>
24250 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
24251 decrement instruction as being frame related.
24252 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
24254 If zero extending a function address enclose the operation in
24256 (rl78_preferred_reload_class): New function.
24257 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24258 * config/rl78/rl78.md: Remove useless constraints in expanders.
24259 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
24260 (mulhi3_rl78): Likewise.
24261 (mulhi3_g13): Likewise.
24262 (mulsi3_rl78): Likewise.
24263 (es_addr): Move to before the multiply patterns.
24265 2015-04-15 Alan Modra <amodra@gmail.com>
24267 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
24268 and sequence_stack. Add seq.
24269 (seq_stack): Delete.
24270 * function.c (prepare_function_start): Don't access x_last_insn.
24271 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
24272 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
24273 * emit_rtl.c (start_sequence, push_topmost_sequence,
24274 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
24275 sequence accessors.
24276 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
24277 remove_insn): Likewise. Simplify.
24278 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
24279 and pop_topmost_sequence.
24280 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
24282 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
24284 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
24287 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
24290 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24292 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
24293 (LEGACY_INT_REGNO_P): Ditto.
24294 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
24295 (ANY_MASK_REG_P): Remove.
24296 (BND_REG_P): Rename from ANY_BND_REG_P.
24297 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
24298 legacy integer registers. Do not handle MMX_REG_P in a special way.
24299 Merge 64byte and 32byte SSE handling.
24301 2015-04-14 Nick Clifton <nickc@redhat.com>
24303 * expr.c (expand_assignment): Force an address offset computation
24304 into a register before changing its mode.
24305 (expand_expr_real_1): Likewise.
24307 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
24309 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
24310 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
24311 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
24312 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
24313 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
24314 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
24315 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
24316 and __aarch64_vget_lane_any.
24318 2015-04-14 Jakub Jelinek <jakub@redhat.com>
24320 PR rtl-optimization/65761
24321 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
24322 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
24324 2015-04-14 Richard Biener <rguenther@suse.de>
24326 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
24327 (graphite_can_represent_scev): Use POINTER_TYPE_P.
24329 2015-04-14 Richard Biener <rguenther@suse.de>
24331 PR tree-optimization/65758
24332 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
24334 (ccp_lattice_meet): Likewise.
24335 (bit_value_unop): Likewise.
24336 (bit_value_binop): Likewise.
24337 (bit_value_assume_aligned): Likewise.
24339 2015-04-14 Christian Bruel <christian.bruel@st.com>
24341 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
24344 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
24346 PR tree-optimization/63387
24347 * match.pd ((x unord x) | (y unord y) -> (x unord y),
24348 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
24350 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
24352 * config/i386/predicates.md (any_QIreg_operand): Rename from
24353 q_regs_operand. Do not process subregs.
24354 (QIreg_operand): Use QI_REGNO_P predicate.
24355 (ext_QIreg_operand): Ditto.
24356 (ext_register_operand): Ditto.
24357 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
24358 (AND splitters): Ditto.
24359 (AND with -65536 splitter): Add SWI48 mode for operand 0.
24360 (AND with -256 splitter): Use any_QIreg_operand predicate and
24361 SWI248 mode for operand 0.
24362 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
24363 mode for operand 0.
24364 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
24366 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
24368 * doc/plugins.texi: Rewrite first introductory paragraph.
24370 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24372 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
24373 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
24375 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24377 * ipa-profie.c (ipa_profile): Check number of parameters
24378 and possible polymorphic call targets before
24381 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
24383 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
24384 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
24386 2015-04-13 Richard Biener <rguenther@suse.de>
24388 PR tree-optimization/65204
24389 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
24390 takens for bit-CCP.
24392 2015-04-13 Richard Biener <rguenther@suse.de>
24395 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
24396 and cond_not_taken_branch_cost to 4 and 2.
24397 (bdver2_cost): Likewise.
24398 (bdver3_cost): Likewise.
24399 (bdver4_cost): Likewise.
24401 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24403 * hash-table.h (hash_table constructor): Add mem stats.
24404 (alloc_entries): Likewise.
24406 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24408 * ipa-cp.c (ipcp_driver): Relase prev_edge.
24409 * passes.c (execute_one_pass): Only add transform if pass has one.
24411 2015-04-12 Joseph Myers <joseph@codesourcery.com>
24413 * config/i386/i386.c (ix86_option_override_internal): Don't set
24414 -fprefetch-loop-arrays if optimizing for size.
24416 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
24417 Gerald Pfeifer <gerald@pfeifer.com>
24419 * doc/contrib.texi (Contributors): Add Martin Jambor and
24422 2015-04-12 Jakub Jelinek <jakub@redhat.com>
24424 * BASE-VER: Set to 6.0.0.
24426 PR tree-optimization/65747
24427 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
24428 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
24430 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
24432 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
24433 sentence. Improve grammar.
24435 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
24437 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
24439 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
24442 * ipa-inline-transform.c (speculation_removed): Remove static var.
24443 (check_speculations): New function.
24444 (clone_inlined_nodes): Do not check spculations.
24445 (inline_call): Call check_speculations.
24446 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
24447 consider non-invariants.
24449 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
24450 Martin Liska <mliska@suse.cz>
24453 * ipa-icf.c (sem_item::compare_cgraph_references): function and
24454 variable can not match.
24455 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
24456 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
24458 2015-04-11 Jakub Jelinek <jakub@redhat.com>
24460 PR tree-optimization/65735
24461 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
24462 Remove visited_phis argument, add visited_bbs, avoid recursing into the
24463 same bb rather than just into the same phi node.
24464 (thread_through_normal_block): Adjust caller.
24466 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
24468 * doc/contrib.texi (Contributors): Add Ira Rosen.
24470 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
24472 * gcov.c (find_source): Fix miswording in error message.
24473 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
24474 (ix86_expand_sse_comi_round): Fix typo in error message.
24476 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
24478 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
24480 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
24482 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
24484 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
24487 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
24488 Print bad_spills_num and insn_pseudos_num.
24490 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24493 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
24494 when creating +1 values for SImode.
24496 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
24499 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
24502 2015-04-10 Jakub Jelinek <jakub@redhat.com>
24503 Iain Sandoe <iain@codesourcery.com>
24506 * configure: Regenerate.
24508 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24511 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
24513 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
24515 * doc/contrib.texi (Contributors): Add John Marino.
24517 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24519 PR tree-optimization/65709
24520 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
24521 TREE_TYPE (TREE_TYPE (t)).
24523 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
24526 * lra-int.h (lra_bad_spill_regno_start): New.
24527 * lra.c (lra_bad_spill_regno_start): New.
24528 (lra): Set up lra_bad_spill_regno_start. Set up
24529 lra_constraint_new_regno_start unconditionally.
24530 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
24533 2015-04-09 Marek Polacek <polacek@redhat.com>
24534 Jakub Jelinek <jakub@redhat.com>
24536 PR middle-end/65554
24537 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
24538 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
24541 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
24543 PR rtl-optimization/65693
24544 * combine.c (is_parallel_of_n_reg_sets): Move outside of
24547 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
24550 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
24551 device specs file if "device-specs%s" didn't resolve to a path.
24553 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
24556 * config/i386/i386.c (fixup_modeless_constant): New.
24557 (ix86_expand_args_builtin): Fixup modeless constant operand.
24558 (ix86_expand_round_builtin): Ditto.
24559 (ix86_expand_special_args_builtin): Ditto.
24560 (ix86_expand_builtin): Ditto.
24562 2015-04-09 Jakub Jelinek <jakub@redhat.com>
24565 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
24566 any pow2 integer in between 2 and 0x80000000U inclusive.
24568 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
24570 PR rtl-optimization/65693
24571 * combine.c (is_parallel_of_n_reg_sets): Change first argument
24572 from an rtx_insn * to an rtx.
24573 (try_combine): Adjust both callers. Use it once more.
24575 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24577 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
24578 (chkp_make_static_const_bounds): Search existing
24579 symbol by assembler name. Use make_decl_one_only.
24580 (chkp_get_zero_bounds_var): Remove node search which
24581 is now performed in chkp_make_static_const_bounds.
24582 (chkp_get_none_bounds_var): Likewise.
24584 2015-04-08 Michael Witten <mfwitten@gmail.com>
24586 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
24589 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24591 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
24593 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24595 * doc/extend.texi (__sync Builtins): Fix grammar.
24597 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24599 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
24601 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24603 * varasm.c (emit_local): Move definition of align.
24605 2015-04-08 Julian Brown <julian@codesourcery.com>
24607 * config/nvptx/mkoffload.c (process): Support variable mapping.
24609 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
24611 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
24613 (alpha_write_one_linkage): Correct typo.
24615 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24617 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
24619 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
24621 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
24623 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
24625 * tree-chkp.h (chkp_insert_retbnd_call): New.
24626 * tree-chkp.c (chkp_insert_retbnd_call): New.
24627 * ipa-split.c (insert_bndret_call_after): Remove.
24628 (split_function): Use chkp_insert_retbnd_call.
24629 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
24630 bounds for instrumented functions.
24632 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
24635 * calls.c (initialize_argument_information): When producing tail
24636 call also turn SSA_NAMES passed by references to original PARM_DECLs
24638 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
24641 * lra-remat.c (do_remat): Process input and non-input insn
24642 registers separately.
24644 2015-04-07 Jakub Jelinek <jakub@redhat.com>
24647 * valtrack.c (debug_lowpart_subreg): New function.
24648 (dead_debug_insert_temp): Use it.
24650 PR middle-end/65680
24651 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
24652 into signed HOST_WIDE_INT the same as negative bit_offset.
24654 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
24656 * ipa-comdats.c (ipa_comdats): Visit all thunks
24657 to set proper comdat group.
24659 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24662 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
24663 on constants for NEON VSTRUCT modes.
24665 2015-04-07 Jakub Jelinek <jakub@redhat.com>
24666 Iain Sandoe <iain@codesourcery.com>
24669 * configure: Regenerate.
24671 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24674 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
24675 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
24676 that LFD is used to load double constants instead of LFS. Add
24677 defaults for all costs structures. Add comments for missing
24678 initialization fields.
24679 (size32_cost): Likewise.
24680 (size64_cost): Likewise.
24681 (rs64a_cost): Likewise.
24682 (mpccore_cost): Likewise.
24683 (ppc403_cost): Likewise.
24684 (ppc405_cost): Likewise.
24685 (ppc440_cost): Likewise.
24686 (ppc476_cost): Likewise.
24687 (ppc601_cost): Likewise.
24688 (ppc603_cost): Likewise.
24689 (ppc604_cost): Likewise.
24690 (ppc604e_cost): Likewise.
24691 (ppc620_cost): Likewise.
24692 (ppc630_cost): Likewise.
24693 (ppccell_cost): Likewise.
24694 (ppc750_cost): Likewise.
24695 (ppc7450_cost): Likewise.
24696 (ppc8540_cost): Likewise.
24697 (ppce300c2c3_cost): Likewise.
24698 (ppce500mc_cost): Likewise.
24699 (ppce500mc64_cost): Likewise.
24700 (ppce5500_cost): Likewise.
24701 (ppce6500_cost): Likewise.
24702 (titan_cost): Likewise.
24703 (power4_cost): Likewise.
24704 (power6_cost): Likewise.
24705 (power7_cost): Likewise.
24706 (power8_cost): Likewise.
24707 (ppca2_cost): Likewise.
24708 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
24710 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
24711 instead of XXLOR to copy SFmode to clear out dirty bits created
24712 when SFmode denormals are generated.
24713 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
24714 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
24716 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
24718 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
24719 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
24720 * config/aarch64/aarch64-tune.md: Regenerate.
24722 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
24724 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
24725 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
24726 * config/arm/arm-cores.def (exynos-m1): New core.
24727 * config/arm/arm-tune.md: Regenerate.
24728 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
24729 * config/arm/bpabi.h: Likewise.
24731 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
24733 * ipa-cp (set_single_call_flag): Remove too
24734 restrictive assert.
24736 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
24738 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
24739 GOMP_offload_unregister from the destructor.
24741 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
24743 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
24744 flags for instrumentation thunk.
24745 (chkp_produce_thunks): Likewise.
24747 2015-04-05 Martin Liska <mliska@suse.cz>
24750 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
24751 has computed data structure.
24752 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24754 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
24756 * invoke.texi (inline-unit-growth): Increase growth to 20%
24757 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
24759 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
24762 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
24764 (lra_rematerialization_iter): New.
24765 * lra.c (lra): Initialize lra_rematerialization_iter.
24766 Stop updating lra_constraint_new_regno_start after switching of
24767 inheritance and rematerialization.
24768 * lra-remat.c (lra_rematerialization_iter): New.
24769 (lra_remat): Add printing pass iteration. Do rematerialization
24770 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
24772 2015-04-04 Richard Biener <rguenther@suse.de>
24774 PR tree-optimization/64909
24775 PR tree-optimization/65660
24776 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
24777 to take a cost vector for scalar iteration cost.
24778 (vect_get_single_scalar_iteration_cost): Likewise.
24779 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
24780 Compute the scalar iteration cost into a cost vector.
24781 (vect_get_known_peeling_cost): Use the scalar cost vector to
24782 account for the cost of the peeled iterations.
24783 (vect_estimate_min_profitable_iters): Likewise.
24784 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24787 2015-04-04 Alan Modra <amodra@gmail.com>
24791 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
24792 0.0 constant unless TARGET_VSX.
24793 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
24796 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
24799 * ipa-inline-transform.c (inline_call): Skip sanity check to work
24802 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
24805 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
24806 speculative indirect edges to avoid ordering issue.
24808 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
24811 * ipa-inline.c (edge_badness): Add combined size to the denominator.
24813 2015-04-03 Jakub Jelinek <jakub@redhat.com>
24815 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
24816 TYPE_ARTIFICIAL on the .omp_data* types.
24818 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24820 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
24821 instrumentation thunks.
24823 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24825 * config/i386/i386.c (ix86_expand_call): Avoid nested
24826 PARALLEL in returned call value.
24828 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24830 * lto-cgraph.c (input_cgraph_1): Always link instrumented
24831 assembler name with original one.
24833 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
24835 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
24837 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
24839 Revert parts of r216820.
24840 * config/i386/i386.md (movqi_internal): Correct type calculation
24841 for alternatives 3 and 5.
24843 2015-04-02 Jakub Jelinek <jakub@redhat.com>
24845 PR preprocessor/61977
24846 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
24847 predefine __vector/__bool/__pixel macros nor context sensitive
24848 macros for CLK_ASM.
24849 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
24851 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
24853 * config/pa/pa.c (pa_output_move_double): Directly handle register
24854 indexed memory operand. Simplify handling of scaled register indexed
24857 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
24860 * config/i386/linux-common.h (MPX_SPEC): New.
24861 (CHKP_SPEC): Add MPX_SPEC.
24862 * doc/invoke.texi (-fcheck-pointer-boudns): Document
24863 possible issues with '-z bndplt' support in linker.
24865 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
24867 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
24868 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
24869 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
24870 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
24871 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
24873 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
24875 * config/i386/sync.md (UNSPEC_MOVA): Remove.
24876 (atomic_load<mode>): Change operand 0 predicate to
24877 nonimmediate_operand and fix up the destination when needed.
24879 (atomic_loaddi_fpu): Use UNSPEC_LDA.
24880 (atomic_store<mode>): Change operand 1 predicate to
24881 nonimmendate_operand and move the source to register when needed.
24883 (atomic_store<mode>_1): Use UNSPEC_STA.
24884 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
24885 Fix moves from memory operand. Use UNSPEC_STA.
24887 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24889 * expmed.c (strict_volatile_bitfield_p): Check that the access will
24890 not cross a MODESIZE boundary.
24891 (store_bit_field, extract_bit_field): Added assertions in the
24892 strict volatile bitfields code path.
24894 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
24897 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
24898 Increase args array size by one to avoid buffer overflow.
24900 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
24902 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24904 * ipa-inline.c (edge_badness): Add wrapper penalty.
24905 (sum_callers): Move up.
24906 (inline_small_functions): Set single_caller.
24907 * ipa-inline.h (inline_summary): Add single_caller.
24908 * ipa-split.c (split_function): Set split_part.
24909 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
24910 * cgraph.h (cgraph_node): Add split_part.
24912 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
24915 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
24916 Do not split operands 0 and operands 2 to halfmode.
24917 (atomic_compare_and_swap<mode>): Update for
24918 atomic_compare_and_swap<dwi>_doubleword changes.
24920 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
24922 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
24923 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
24924 no caching is done.
24926 2015-03-31 Martin Liska <mliska@suse.cz>
24929 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
24930 has already filled up function summary.
24931 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24933 2015-03-31 Richard Biener <rguenther@suse.de>
24935 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
24938 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
24940 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
24942 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
24943 (s390_asm_output_function_label): Adapt to new signature of
24944 s390_function_num_hotpatch_hw
24945 Optimise the code generating assembler output.
24946 Add comments to assembler file.
24948 2015-03-31 Richard Biener <rguenther@suse.de>
24950 PR middle-end/65626
24951 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
24952 of the noreturn call so it is last and cleanup_control_flow_bb
24953 can do the CFG part.
24955 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
24958 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
24959 same_comdat_group for external symbols.
24960 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
24961 infinite same_comdat_group traversal loop.
24963 2015-03-31 Jakub Jelinek <jakub@redhat.com>
24966 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
24967 automatically to $headers.
24969 2015-03-30 Jakub Jelinek <jakub@redhat.com>
24972 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
24973 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
24975 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
24977 * ipa-prop.c (param_type_may_change_p): Likewise.
24978 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
24979 (remove_unused_scope_block_p): Add in_ctor_dtor_block
24980 argument. Before inlining, preserve
24981 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
24982 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
24984 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
24986 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
24989 * ipa-inline.c (edge_badness): Base denominator on callee's
24992 2015-03-27 Martin Jambor <mjambor@suse.cz>
24995 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
24996 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
24997 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
24998 node_calling_single_call.
24999 * ipa-cp.c (count_callers): New function.
25000 (set_single_call_flag): Likewise.
25001 (initialize_node_lattices): Count callers and set single_flag_call if
25003 (incorporate_penalties): New function.
25004 (good_cloning_opportunity_p): Use it, dump new flags.
25005 (propagate_constants_topo): Set node_within_scc flag if appropriate.
25006 * doc/invoke.texi (ipa-cp-recursion-penalty,
25007 ipa-cp-single-call-pentalty): Document.
25009 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25012 * symtab.c (symtab_node::get_partitioning_class): Register vars
25014 * varpool.c (symbol_table::output_variables) Do not assemble unefined
25015 decls for non-symbols.
25017 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
25020 * output.h (default_binds_local_p_2): New.
25021 * varasm.c (default_binds_local_p_2): Renamed to ...
25022 (default_binds_local_p_3): This. Don't return true on protected
25023 data symbol if protected data may be external.
25024 (default_binds_local_p): Use default_binds_local_p_3.
25025 (default_binds_local_p_1): Likewise.
25026 (default_binds_local_p_2): New.
25027 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25028 default_binds_local_p_2 if TARGET_MACHO is undefined.
25030 2015-03-27 Jakub Jelinek <jakub@redhat.com>
25033 * config/i386/i386.c (legitimize_pic_address): If base
25034 is SYMBOL_REF or LABEL_REF using %rip addressing, force
25035 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25037 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25040 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25043 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
25046 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25047 of optimized out indirect call.
25048 (redirect_to_unreachable): Always build symbol table node for
25049 BUILT_IN_UNREACHABLE
25051 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
25054 * ira-costs.c (record_reg_classes): Process all constraint string
25057 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
25059 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25063 * config/c6x/constraints.md (S3): New constraint.
25064 * config/c6x/c6x.md (real_jump): Use it.
25066 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25068 PR middle-end/65595
25069 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25070 do redirection if the call is not optimized out.
25072 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
25075 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25076 (fchkp-check-incomplete-type): Add LTO.
25077 (fchkp-zero-input-bounds-for-main): Likewise.
25078 (fchkp-first-field-has-own-bounds): Likewise.
25079 (fchkp-narrow-bounds): Likewise.
25080 (fchkp-narrow-to-innermost-array): Likewise.
25081 (fchkp-use-static-bounds): Likewise.
25082 (fchkp-use-static-const-bounds): Likewise.
25083 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25085 2015-03-27 Marek Polacek <polacek@redhat.com>
25087 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25089 2015-03-27 Marek Polacek <polacek@redhat.com>
25092 * ubsan.c (ubsan_create_edge): New function.
25093 (instrument_bool_enum_load): Call it.
25094 (instrument_nonnull_arg): Likewise.
25095 (instrument_nonnull_return): Likewise.
25096 (instrument_object_size): Likewise.
25098 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25100 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25103 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25106 * lto-streamer.h (class lto_location_cache): New.
25107 (struct data_in): Add location_cache.
25108 (lto_input_location): Update prototype.
25109 (stream_input_location_now): New.
25110 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25111 pointer to location.
25112 (stream_input_location): Update.
25113 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25114 (warn_odr): Apply location cache before warning.
25115 (lto_input_location): Update prototype.
25116 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25117 Use stream_input_location_now.
25118 * lto-streamer-in.c (lto_location_cache::current_cache): New static
25120 (lto_location_cache::cmp_loc): New function.
25121 (lto_location_cache::apply_location_cache): New function.
25122 (lto_location_cache::accept_location_cache): New function.
25123 (lto_location_cache::revert_location_cache): New function.
25124 (lto_location_cache::input_location): New function.
25125 (lto_input_location): Do location caching.
25126 (stream_input_location_now): New function.
25127 (input_eh_region, input_struct_function_base): Use
25128 stream_input_location_now.
25129 (lto_data_in_create): use new.
25130 (lto_data_in_delete): Use delete.
25131 * tree-streamer-in.c (unpack_ts_block_value_fields,
25132 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25133 lto_input_ts_exp_tree_pointers): Update for cached location api.
25135 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25138 * passes.def: Add pass_nothrow.
25139 * ipa-pure-const.c: (pass_data_nothrow): New.
25140 (pass_nothrow): New.
25141 (pass_nothrow::execute): New.
25142 (make_pass_nothrow): New.
25143 * tree-pass.h (make_pass_nothrow): Declare.
25145 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25147 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25148 edge to change by speculation resolution or redirection.
25149 (edge_set_predicate): Likewise.
25150 (inline_summary_t::duplicate): Likewise.
25151 (remap_edge_summaries): Likewise.
25153 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25155 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25157 (can_inline_edge_p): Relax option matching for always inline functions.
25159 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
25162 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25163 Check operand 4 and operand 0 for equality.
25164 (avx512f_vextract<shuffletype>32x4_1_maskm):
25165 Check operand 6 and operand 0 for equality.
25166 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25168 (vec_extract_hi_<mode>_maskm): Ditto.
25170 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25172 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25173 dead calls back to live.
25174 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25176 (cgraph_node::verify_node): ... here; verify only callee edges,
25178 * cif-code.def (CILK_SPAWN): New code.
25180 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
25182 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25183 (edge_set_predicate): Use it to mark unreachable edges.
25184 (inline_summary_t::duplicate): Remove unnecesary code.
25185 (remap_edge_summaries): Likewise.
25186 (dump_inline_summary): Report contains_cilk_spawn.
25187 (compute_inline_parameters): Compute contains_cilk_spawn.
25188 (inline_read_section, inline_write_summary): Stream
25189 contains_cilk_spawn.
25190 * ipa-inline.c (can_inline_edge_p): Do not touch
25191 DECL_STRUCT_FUNCTION that may not be available;
25192 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25193 remove check for callee_fun->can_throw_non_call_exceptions and
25194 replace it by optimization attribute check; check for flag_exceptions.
25195 * ipa-inline-transform.c (inline_call): Maintain
25196 DECL_FUNCTION_PERSONALITY
25197 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25199 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25201 PR tree-optimization/65551
25202 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25203 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25205 2015-03-26 Richard Biener <rguenther@suse.de>
25207 PR middle-end/65555
25208 * tree-cfg.c (verify_gimple_call): Do not require a call to
25209 have no LHS if it wasn't recognized as control altering yet.
25211 2015-03-26 Jakub Jelinek <jakub@redhat.com>
25213 PR tree-optimization/64715
25214 * passes.def: Add another instance of pass_object_sizes before ccp1.
25215 * tree-object-size.c (pass_object_sizes::execute): In
25216 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25217 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25218 __bos result and the computed constant. Remove redundant
25219 checks, obsoleted by gimple_call_builtin_p test.
25221 * var-tracking.c (variable_tracking_main_1): Don't track
25222 variables for targetm.no_register_allocation targets.
25224 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
25226 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25227 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
25229 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
25232 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
25233 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
25234 0.0 is correctly setup.
25235 (extenddftf2_internal): Likewise.
25237 2015-03-25 Sebastian Pop <s.pop@samsung.com>
25239 PR tree-optimization/65177
25240 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
25242 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
25243 edges not adjacent on the path to the original code.
25245 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
25248 * doc/install.texi (Building a native compiler): Document new
25249 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
25250 configuration assumes that the host supports the linker plugin.
25252 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
25255 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
25256 chain for generated call.
25258 2015-03-25 Richard Biener <rguenther@suse.de>
25260 * passes.c (pass_manager::execute_early_local_passes): Guard
25261 execution of pass_chkp_instrumentation_passes with
25262 flag_check_pointer_bounds.
25263 (pass_chkp_instrumentation_passes::gate): Likewise.
25265 2015-03-25 Martin Liska <mliska@suse.cz>
25267 PR tree-optimization/65538
25268 * symbol-summary.h (function_summary::~function_summary):
25269 Relese memory for allocated summaries.
25270 (function_summary::release): New function.
25272 2015-03-25 Jakub Jelinek <jakub@redhat.com>
25275 * lto-streamer-out.c (DFS::worklist): New struct.
25276 (DFS::worklist_vec): New data member.
25277 (DFS::next_dfs_num): Remove.
25278 (DFS::DFS): Rewritten using worklist instead of recursion,
25279 using most of code from DFS::DFS_write_tree.
25280 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
25281 pass it to DFS_write_tree calls.
25282 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
25283 quick initial checks push it into worklist_vec and return.
25285 2015-03-25 Richard Biener <rguenther@suse.de>
25287 PR middle-end/65519
25288 * genmatch.c (expr::gen_transform): Re-write to avoid
25289 using gimple_build.
25291 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25293 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
25295 2015-03-25 Bin Cheng <bin.cheng@arm.com>
25297 * config/arm/arm.opt (print_tune_info): New option.
25298 * config/arm/arm.c (arm_print_tune_info): New function.
25299 (arm_file_start): Call arm_print_tune_info.
25300 * config/arm/arm-protos.h (struct tune_params): Add comment.
25301 * doc/invoke.texi (@item -mprint-tune-info): New item.
25302 (-mtune): mention it in ARM Option Summary.
25304 2015-03-25 DJ Delorie <dj@redhat.com>
25306 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
25309 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
25310 Martin Liska <mliska@suse.cz>
25312 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
25313 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
25314 (sem_item::add_type): New function.
25315 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
25316 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
25317 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
25318 (sem_function::equals_wpa): Fix typo.
25319 * ipa-icf.h (sem_item::add_type): New function.
25320 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
25323 2015-03-24 Jakub Jelinek <jakub@redhat.com>
25325 PR tree-optimization/65533
25326 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
25327 with swapped operands, call vect_free_slp_tree on
25328 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
25331 2015-03-24 Richard Biener <rguenther@suse.de>
25333 PR middle-end/65517
25334 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
25335 for fixup if necessary.
25337 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
25339 * doc/extend.texi (Function Attributes): Add @cindex entries
25340 for all attributes and regularize their format. Delete text
25341 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
25342 information about "eightbit_data", "tiny_data", and "model"
25343 variable attributes to the Variable Attributes section. Fix
25344 some obvious typos and copy-editing issues.
25345 (Variable Attributes, Type Attributes): Likewise add/fix
25346 @cindex entries for all attributes.
25348 2015-03-23 Jakub Jelinek <jakub@redhat.com>
25351 * tree-chkp.c (chkp_build_returned_bound): Ignore
25352 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
25354 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
25357 * config/sh/predicates.md (simple_mem_operand,
25358 displacement_mem_operand): Add test for reg.
25359 (short_displacement_mem_operand): Test for displacement_mem_operand
25360 before invoking sh_disp_addr_displacement.
25361 * config/sh/constraints.md (Sdd, Sra): Simplify.
25362 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
25363 Remove redundant displacement_mem_operand tests.
25365 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
25368 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
25369 the same -mmcu=MCU more than once.
25371 2015-03-23 Jakub Jelinek <jakub@redhat.com>
25374 * ipa-devirt.c: Remove duplicate demangle.h include.
25377 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
25379 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
25380 REG_POINTER on *destptr after adjusting it for prologue size.
25383 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
25384 ultimate_alias_target ()->order ints instead of
25385 ultimate_alias_target () pointers.
25387 2015-03-23 Richard Biener <rguenther@suse.de>
25389 PR tree-optimization/65518
25390 * tree-vect-stmts.c (vectorizable_load): Reject single-element
25391 interleaving cases we generate absymal code for.
25393 2015-03-23 Richard Biener <rguenther@suse.de>
25395 PR tree-optimization/65494
25396 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
25398 (vect_analyze_slp_instance): But do that here, always and once.
25400 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25402 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
25403 adding T or multiplying by T+1 and subracting T.
25405 2015-03-22 Jeff Law <law@redhat.com>
25407 PR rtl-optimization/64317
25408 * Makefile.in (OBJS): Add gcse-common.c
25409 * gcse.c: Include gcse-common.h
25410 (struct modify_pair_s): Move structure definition to gcse-common.h
25411 (compute_transp): Move function to gcse-common.c.
25412 (canon_list_insert): Similarly.
25413 (record_last_mem_set_info): Break out some code and put it into
25414 gcse-common.c. Call into the new common code.
25415 (compute_local_properties): Pass additional arguments to compute_transp.
25416 * postreload-gcse.c: Include gcse-common.h and df.h
25417 (modify_mem_list_set, blocks_with_calls): New variables.
25418 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
25419 (get_bb_avail_insn): Pass in the expression index too.
25420 (alloc_mem): Allocate memory for the new bitmaps and lists.
25421 (free_mem): Free memory for the new bitmaps and lists.
25422 (insert_expr_in_table): Record a bitmap index for each entry we
25424 (record_last_mem_set_info): Call into common code in gcse-common.c.
25425 (get_bb_avail_insn): If no available insn was found in the requested
25426 BB. If BB has a single predecessor, see if the expression is
25427 transparent in BB and available in that single predecessor.
25428 (compute_expr_transp): New wrapper for compute_transp.
25429 (eliminate_partially_redundant_load): Pass expression's bitmap_index
25430 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
25431 (gcse_after_reload_main): If there are elements in the hash table,
25432 then compute transparency for all the elements in the hash table.
25433 * gcse-common.h: New file.
25434 * gcse-common.c: New file.
25436 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
25438 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
25440 (System Headers): Likewise.
25442 (Traditional macros): Likewise.
25443 (Invocation): Likewise.
25444 (Option Index): Likewise.
25445 * doc/cppopts.texi (-M): Likewise.
25446 (-finput-charset): Likewise.
25447 (--help): Likewise.
25448 * doc.invoke.texi (AVR Options): Likewise.
25449 (V850 Options): Likewise.
25451 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
25454 * ipa-devirt.c: Include demangle.h
25455 (odr_type_d): Add field rtti_broken.
25456 (odr_subtypes_equivalent_p): Do not require name to match.
25457 (compare_virtual_tables): Fix typo; if type already has ODR violation,
25458 bypass the tests; be ready for function referneces in vtables that are
25459 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
25460 (warn_odr): Give up for nameless types.
25461 (warn_types_mismatch): Report mismatch in mangled names;
25462 report mismatch in anonymous namespaces; look into component types to
25463 give useful error; report when mismatch is dragged in from other ODR
25465 (odr_types_equivalent_p): Match types for being polymorphic; avoid
25466 duplicated diagnostics.
25467 (add_type_duplicate): Reorder checks so more informative ones come
25468 first; fix typo; do not output "the extra base is defined here" when
25470 (BINFO_N_BASE_BINFOS): Relax sanity check.
25472 2015-03-22 Martin Liska <mliska@suse.cz>
25473 Jakub Jelinek <jakub@redhat.com>
25475 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
25476 masks that can potentially include a builtin.
25477 (ix86_add_new_builtins): Introduce fast filter for isa values
25478 that cannot trigger builtin inclusion.
25480 2015-03-22 Martin Liska <mliska@suse.cz>
25482 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
25483 (sem_item::update_hash_by_local_refs): Likewise.
25484 (sem_variable::get_hash): Empty line is fixed.
25485 (sem_item_optimizer::execute): Include adding of hash references.
25486 (sem_item_optimizer::update_hash_by_addr_refs): New function.
25487 (sem_item_optimizer::build_hash_based_classes): Use local hash.
25488 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
25489 (sem_item::update_hash_by_local_refs): Likewise.
25491 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25494 * ipa-comdats.c (enqueue_references): Walk through thunks.
25495 (ipa_comdats): Likewise.
25496 (set_comdat_group_1): New function.
25498 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25501 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
25504 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
25505 Gerald Pfeifer <gerald@pfeifer.com>
25507 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
25509 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
25510 Sandra Loosemore <sandra@codesourcery.com>
25512 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
25513 function parameter declaration.
25514 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
25515 Update arguments to nios2_adjust_call_address().
25516 (sibcall_internal): Rename from *sibcall.
25517 (sibcall_value_internal): Rename from *sibcall_value.
25518 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
25519 (nios2_large_got_address): Add target temp reg parameter.
25520 (nios2_got_address): Adjust call to nios2_large_got_address, add
25521 force_reg around it.
25522 (nios2_load_pic_address): Add target temp reg parameter, replace call
25523 to nios2_got_address with corresponding code.
25524 (nios2_legitimize_constant_address): Update call to
25525 nios2_load_pic_address.
25526 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
25527 to use temp reg for PIC loading purposes.
25528 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
25529 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25530 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
25532 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25534 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
25535 usage of "the @option{...}".
25536 (-Wopenmp-simd): Likewise.
25537 (-fsanitize-recover): Likewise.
25538 (-fsanitize-undefined-trap-on-error): Likewise.
25540 (tracer-dynamic-coverage-feedback): Likewise.
25541 (reorder-block-duplicate-feedback): Likewise.
25542 (loop-unroll-jam-size): Likewise.
25545 (-mabs=legacy): Likewise.
25546 (-mupper-regs-df): Likewise.
25547 (-mupper-regs-sf): Likewise.
25548 (-mpointers-to-nested-functions): Likewise.
25550 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25552 * doc/extend.texi (Cilk Plus Builtins): Add markup.
25554 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
25556 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
25557 additional index entries and cross-references.
25558 (-fchkp-check-incomplete-type): Likewise.
25559 (-fchkp-first-field-has-own-bounds): Likewise.
25560 (-fchkp-narrow-to-innermost-array): Likewise.
25561 (-fchkp-use-fast-string-functions): Likewise.
25562 (-fchkp-use-nochk-string-functions): Likewise.
25563 (-fchkp-use-static-const-bounds): Likewise.
25564 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25565 (-fchkp-instrument-marked-only): Likewise.
25566 (-fchkp-use-wrappers): Likewise.
25567 (-static-libmpx): Likewise.
25568 (-static-libmpxwrappers): Likewise.
25569 * doc/extend.texi (bnd_legacy): Likewise.
25570 (bnd_instrument): Likewise.
25571 (bnd_variable_size): Likewise.
25572 (Pointer Bounds Checker builtins): Likewise.
25574 2015-03-21 Tom de Vries <tom@codesourcery.com>
25576 PR tree-optimization/65458
25577 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
25578 * cgraph.h (cgraph_node): Add parallelized_function field.
25579 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
25580 (input_overwrite_node): Read parallelized_function field.
25581 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
25582 parallelized_function on cgraph_node for child_fn.
25583 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
25584 Remove include of gt-tree-parloops.h.
25585 (parallelized_functions): Remove static variable.
25586 (parallelized_function_p): Rewrite using parallelized_function field of
25588 (create_loop_fn): Remove adding to parallelized_functions.
25589 * Makefile.in (GTFILES): Remove tree-parloops.c
25591 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
25593 PR rtl-optimization/64366
25594 * lra.c (lra_update_insn_regno_info): Consider regs in
25595 CALL_INSN_FUNCTION_USAGE memory.
25597 2015-03-20 Richard Biener <rguenther@suse.de>
25599 PR middle-end/64715
25600 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
25601 for type comparison and gcc_checking_assert.
25602 (chrec_fold_plus_poly_poly): Likewise.
25603 (chrec_fold_multiply_poly_poly): Likewise.
25604 (chrec_convert_1): Likewise.
25605 * gimplify.c (gimplify_expr): Remove premature folding of
25606 &X + CST to &MEM[&X, CST].
25608 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
25610 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
25612 (ipa_inline): Recompute inline_failed codes.
25613 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25614 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
25617 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
25619 PR rtl-optimization/60851
25620 * recog.c (constrain_operands): Accept a pseudo register before reload
25621 for LRA enabled targets.
25623 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
25626 * config/rs6000/predicates.md (easy_fp_constant): Remove special
25627 -ffast-math handling that kept non-0 constants live in the RTL
25628 until reload. Remove logic testing the number of instructions it
25629 took to create a constant in a GPR that was never used, due to a
25630 test for soft-float earlier.
25631 (memory_fp_constant): Delete, no longer used.
25633 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
25634 alternatives for loading non-0 constants into GPRs for hard
25635 floating point that is no longer needed due to changes in
25636 easy_fp_constant. Add support for loading 0.0 into GPRs.
25637 (mov<mode>_hardfloat32): Likewise.
25638 (mov<mode>_hardfloat64): Likewise.
25639 (mov<mode>_64bit_dm): Likewise.
25640 (movtd_64bit_nodm): Likewise.
25641 (pre-reload move FP constant define_split): Delete define_split,
25642 since it is no longer used.
25643 (extenddftf2_internal): Remove GHF constraints that are not valid
25646 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
25648 PR rtl-optimization/63491
25649 * lra-constraints.c (check_and_process_move): Use src instead of
25650 sreg. Remove some dead code.
25652 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
25655 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
25656 (sem_variable::merge): Likewise.
25658 2015-03-19 Martin Liska <mliska@suse.cz>
25661 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
25662 all fields of cgraph_thunk_info.
25664 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
25666 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
25667 clone instrumented thunks.
25669 2015-03-19 Richard Biener <rguenther@suse.de>
25672 2015-03-10 Richard Biener <rguenther@suse.de>
25674 PR middle-end/63155
25675 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25676 * tree-ssa-coalesce.c: Include timevar.h.
25677 (attempt_coalesce): Handle graph being NULL.
25678 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25679 Split out abnormal coalescing to ...
25680 (perform_abnormal_coalescing): ... this function.
25681 (coalesce_ssa_name): Perform abnormal coalescing without computing
25683 (verify_ssa_coalescing_worker): New function.
25684 (verify_ssa_coalescing): Likewise.
25686 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
25687 Jakub Jelinek <jakub@redhat.com>
25690 * tsan.c (instrument_gimple): Clear tail call flag on
25693 2015-03-19 Jakub Jelinek <jakub@redhat.com>
25696 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
25697 call in the return bb.
25698 (find_split_points): Add RETURN_BB argument, don't call
25700 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
25701 if true append TSAN_FUNC_EXIT internal call after the call to
25702 the split off function.
25703 (execute_split_functions): Call find_return_bb here.
25704 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
25705 Adjust find_split_points and split_function calls.
25707 2015-03-18 DJ Delorie <dj@redhat.com>
25709 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
25710 (iorqi3_virt): Likewise.
25712 2015-03-18 Tom de Vries <tom@codesourcery.com>
25714 * tree-parloops.c (parallelize_loops): Make static.
25715 * tree-parloops.h (parallelize_loops): Remove extern declaration.
25717 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
25719 PR middle-end/64491
25721 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
25723 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
25724 condition would be removed due to undefined behaviour.
25726 2015-03-18 Martin Liska <mliska@suse.cz>
25729 * cgraph.c (cgraph_node::get_create): Remove unnecessary
25730 xstrdup_for_dump wrapper.
25731 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
25733 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
25734 with xstrdup_for_dump.
25735 (sem_variable::equals): Likewise.
25736 (sem_item_optimizer::read_section): Use symtab_node::name instead of
25738 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
25739 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
25740 symtab_node::asm_name with xstrdup_for_dump.
25741 (congruence_class::dump): Use symtab_node::name instead of
25743 * ipa-icf.h (symtab_node::name): Remove.
25744 (symtab_node::asm_name): Likewise.
25746 2015-03-18 Jakub Jelinek <jakub@redhat.com>
25748 PR tree-optimization/65450
25749 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
25751 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
25752 it instead of duplicate_ssa_name_ptr_info.
25755 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
25757 2015-03-18 Richard Biener <rguenther@suse.de>
25759 * tree-data-ref.h (struct access_matrix): Remove.
25760 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
25761 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
25762 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
25763 (am_vector_index_for_loop): Likewise.
25764 (struct data_reference): Remove access_matrix member.
25765 (DR_ACCESS_MATRIX): Remove.
25766 (lambda_vector_new): Add comment.
25767 (lambda_matrix_new): Use XOBNEWVEC.
25769 2015-03-18 Richard Biener <rguenther@suse.de>
25771 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
25772 (pass_ch::execute): Cleanup the CFG only if we did sth.
25773 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
25775 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25777 * expmed.c (synth_mult): Use std::swap instead of manually
25778 swapping algorithms.
25780 2015-03-18 Jakub Jelinek <jakub@redhat.com>
25783 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
25785 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
25788 * config/avr/avr.opt (-nodevicelib): New option.
25789 * doc/invoke.texi (AVR Options): Document it.
25790 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
25791 libgcc.a, libc.a, libm.a.
25792 * config/avr/specs.h: Same.
25793 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
25794 which don't (directly) depend on the device. Print more help.
25795 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
25796 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
25797 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
25799 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
25800 for specs file name.
25801 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
25802 * config/avr/avr-mcus.def: Adjust initializers and comments.
25804 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
25806 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
25807 DECL_ONE_ONLY to check if decl is one only.
25808 * ipa-split.c (consider_split): Limit splitt of one only functions.
25810 2015-03-16 Jakub Jelinek <jakub@redhat.com>
25812 PR tree-optimization/65427
25813 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
25815 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
25817 2015-03-16 Marek Polacek <polacek@redhat.com>
25819 * cgraph.h (add_new_static_var): Remove declaration.
25820 * varpool.c (add_new_static_var): Remove function.
25822 2015-03-16 Jakub Jelinek <jakub@redhat.com>
25824 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
25825 instead of vec<tree> * with vec_alloc and release for args.
25828 PR middle-end/65431
25829 * omp-low.c (delete_omp_context): Only splay_tree_delete
25830 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
25831 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
25833 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
25836 * cfgexpand.c (align_base): New function.
25837 (alloc_stack_frame_space): Call it.
25838 (expand_stack_vars): Align prev_frame to be sure
25839 data->asan_vec elements aligned properly.
25841 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
25843 PR middle-end/65409
25844 * expr.c (store_field): Do not do a direct block copy if the source is
25845 a PARALLEL with BLKmode.
25847 2015-03-16 Tom de Vries <tom@codesourcery.com>
25849 PR middle-end/65414
25851 2015-03-12 Tom de Vries <tom@codesourcery.com>
25853 PR rtl-optimization/64895
25854 * lra-lives.c (check_pseudos_live_through_calls): Use
25855 actual_call_used_reg_set instead of call_used_reg_set, if available.
25857 2015-03-16 Alan Modra <amodra@gmail.com>
25860 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
25861 Modify Z->r bswapdi splitter to use dest in place of scratch.
25862 In r->Z and Z->r bswapdi splitter rename word_high, word_low
25863 to word1, word2 and rearrange logic to suit.
25864 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
25865 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
25866 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
25867 Add one '?' on r->r. Modify Z->r splitter to avoid need for
25870 2015-03-14 Jakub Jelinek <jakub@redhat.com>
25872 PR tree-optimization/65369
25873 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
25874 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
25875 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
25877 PR tree-optimization/65418
25878 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
25879 are casts in the first PLUS_EXPR operand, ensure tbias and
25880 *totallowp are in the inner type.
25882 PR rtl-optimization/65401
25883 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
25884 argument. If true, adjust_address_nv of x with big-endian
25885 correction for the mode widening to GET_MODE (y).
25886 (make_field_assignment): Don't do MEM mode widening here.
25887 Use MEM_P instead of GET_CODE == MEM.
25889 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
25891 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
25892 the external decls.
25894 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25897 * config/arm/arm.c (arm_gen_constant, AND case): Use
25898 ARM_SIGN_EXTEND when constructing AND mask.
25900 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25902 * graph.c (print_graph_cfg): Make function names visible and append
25903 parenthesis to it. Also make groups of basic blocks belonging to the
25904 same function visible.
25906 2015-03-12 Richard Biener <rguenther@suse.de>
25908 PR middle-end/44563
25909 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
25910 to avoid quadratic behavior with inline expansion splitting blocks.
25911 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
25912 with the successor if the predecessor will be merged with it.
25913 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
25914 entry block with its successor.
25916 2015-03-13 Richard Biener <rguenther@suse.de>
25918 PR middle-end/44563
25919 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
25920 (cleanup_tree_cfg_1): Do not call it.
25921 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
25922 (fixup_noreturn_call): Mark the stmt as control altering.
25923 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
25925 (pass_data_fixup_cfg): Produce a dump file.
25926 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
25927 (need_noreturn_fixup): New global.
25928 (pass_dominator::execute): Fixup queued noreturn calls.
25929 (optimize_stmt): Queue calls that became noreturn for fixup.
25930 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
25931 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
25932 (el_to_fixup): New global.
25933 (eliminate_dom_walker::before_dom_childre): Queue calls that
25934 became noreturn for fixup.
25935 (eliminate): Fixup queued noreturn calls.
25936 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
25937 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
25938 (substitute_and_fold_dom_walker::before_dom_children): Queue
25939 alls that became noreturn for fixup.
25940 (substitute_and_fold): Fixup queued noreturn calls.
25942 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
25944 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
25945 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
25946 are building; for methods check ODR type of class they belong to if
25947 they may lead to a polymorphic call.
25948 (sem_function::compare_polymorphic_p): Be bit smarter about testing
25949 when function may lead to a polymorphic call.
25950 (sem_function::compare_type_list): Remove.
25951 (sem_variable::equals): Update use of compatible_types_p.
25952 (sem_variable::parse_tree_refs): Remove.
25953 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
25955 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
25957 (func_checker::compatible_polymorphic_types_p): Break out from ...
25958 (unc_checker::compatible_types_p): ... here.
25959 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
25961 (unc_checker::compatible_types_p): Update.
25962 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
25965 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25967 PR rtl-optimization/65235
25968 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
25969 When first element of vec_concat is const_int, calculate its size
25970 using second element.
25972 2015-03-12 Richard Biener <rguenther@suse.de>
25974 PR middle-end/65270
25975 * fold-const.c (operand_equal_p): Fix ordering of resetting
25976 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
25978 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
25980 * config/s390/s390.c (s390_reorg): Move code to output nops after label
25982 (s390_asm_output_function_label): Likewise.
25983 * config/s390/s390.c (s390_asm_output_function_label):
25984 Fix function label alignment with -mhtopatch.
25985 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
25986 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
25987 ("nop_2_byte"): New define_insn.
25988 ("nop_4_byte"): Likewise.
25989 ("nop_6_byte"): Likewise.
25990 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
25991 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
25993 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
25996 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
25999 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
26002 * toplev.c (process_options): Restrict Pointer Bounds Checker
26003 usage with Address Sanitizer.
26005 2015-03-12 Richard Biener <rguenther@suse.de>
26007 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26009 * omp-low.c (expand_omp_taskreg): Split block before removing
26011 (expand_omp_target): Likewise.
26012 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26013 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26014 stmt to split_block.
26016 2015-03-12 Tom de Vries <tom@codesourcery.com>
26018 PR rtl-optimization/64895
26019 * lra-lives.c (check_pseudos_live_through_calls): Use
26020 actual_call_used_reg_set instead of call_used_reg_set, if available.
26022 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26024 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26025 (cgraph_node::remove): Likewise.
26026 (cgraph_node::get_untransformed_body): Likewise.
26027 * varpool.c (varpool_node::remove): Likewise.
26028 (varpool_node::get_constructor): Add sanity check.
26030 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
26032 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26034 (-fabi-compat-version): Likewise.
26035 (-ffriend-injection): Likewise.
26036 (-Wdeclaration-after-statement): Likewise.
26037 (-fomit-frame-pointer): Likewise.
26038 (-ftree-coalesce-inlined-vars): Likewise.
26039 (-fvisibility=): Likewise.
26040 * doc/extend.texi (Typeof): Likewise.
26041 (Zero Length): Likewise.
26042 (Escaped Newlines): Likewise.
26043 (Compound Literals): Likewise.
26044 (Function Attributes): Likewise.
26045 (Label Attributes): Likewise.
26046 (Type Attributes): Likewise.
26047 (Function Names): Likewise.
26048 (Other Builtins): Likewise.
26049 (Function Specific Option Pragmas): Likewise.
26050 (C++ Interface): Likewise.
26052 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
26054 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26056 2015-03-11 Marek Polacek <polacek@redhat.com>
26058 PR tree-optimization/65388
26059 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26061 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26064 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26065 * configure: Regenerate.
26066 * config.in: Regenerate.
26067 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26068 [-mn-flash]: Document it.
26069 [__AVR_ARCH__]: Document avrtiny.
26071 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26072 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26073 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26075 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26077 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26079 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26082 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26083 allow reloads of PLUS in floating point/VSX registers.
26085 2015-03-11 Junmo Park <junmoz.park@samsung.com>
26087 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26088 crypto_sha256_fast.
26089 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26091 2015-03-11 Richard Biener <rguenther@suse.de>
26093 PR tree-optimization/65310
26094 * tree-sra.c (build_ref_for_offset): Also preserve larger
26097 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
26099 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26101 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26104 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26106 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26108 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26110 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26111 (sem_function::equals_wpa): ... here.
26113 2015-03-10 Marek Polacek <polacek@redhat.com>
26114 Jakub Jelinek <jakub@redhat.com>
26117 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26118 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
26121 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26124 * config/rs6000/t-linux: For powerpc64* target set
26125 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26127 2015-03-10 Richard Biener <rguenther@suse.de>
26129 PR middle-end/44563
26130 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26131 for redirect_all_calls.
26133 2015-03-10 Marek Polacek <polacek@redhat.com>
26135 * gdbinit.in (pcfun): Define and document.
26137 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
26139 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26140 of libgomp-plugin.h.
26141 (find_target_compiler): Support a case when the path to gcc is
26142 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26143 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26144 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26146 (main): Use GCC_INSTALL_NAME as target_driver_name.
26147 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26149 (mkoffload.o): Remove obsolete include path and defines.
26150 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26152 2015-03-10 Richard Biener <rguenther@suse.de>
26154 PR middle-end/63155
26155 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26156 * tree-ssa-coalesce.c: Include timevar.h.
26157 (attempt_coalesce): Handle graph being NULL.
26158 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26159 Split out abnormal coalescing to ...
26160 (perform_abnormal_coalescing): ... this function.
26161 (coalesce_ssa_name): Perform abnormal coalescing without computing
26163 (verify_ssa_coalescing_worker): New function.
26164 (verify_ssa_coalescing): Likewise.
26166 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
26169 * config.gcc (extra_options) [avr]: Remove.
26170 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26171 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26172 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26174 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26175 (-mmcu=): Add Var and MissingArgError properties.
26177 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26178 * config/avr/t-multilib: Regenerate.
26179 * config/avr/specs.h: New file.
26180 * config/avr/driver-avr.c: New file.
26181 * config/avr/genopt.sh: Remove file.
26182 * config/avr/avr-tables.opt: Remove file.
26183 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26184 * config/avr/avr-c.c: Same.
26185 * avr-arch.h: Same.
26186 (avr_current_device): Remove proto.
26187 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26188 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26189 (EXTRA_SPEC_FUNCTIONS): Define.
26190 (avr_devicespecs_file): New specs function proto.
26191 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26192 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26193 (avr_current_device): Remove definition and usage.
26194 (avr_set_core_architecture): New static function.
26195 (avr_option_override): Use it.
26196 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26197 (mcu_name): New static array.
26198 (comparator, avr_archs_str, avr_mcus_str): New static functions.
26199 (avr_inform_devices, avr_inform_core_architectures): New functions.
26200 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26201 (avrlibc.h) [WITH_AVRLIBC]: Include.
26202 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26203 (print_mcu): Rewrite from scratch.
26204 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26205 Forward to avr-specific specs defined in device-specs file.
26206 * config/avr/t-avr (driver-avr.o): New rule.
26207 (avr-devices.o): Depend on avr-arch.h.
26208 (avr-mcus): No more depend on avr-tables.opt.
26209 (avr-tables.opt): Remove rule.
26210 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26212 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26214 * c-family/c.opt (fchkp-use-wrappers): New.
26215 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26216 (chkp_wrap_function): New.
26217 (chkp_build_instrumented_fndecl): Support wrapped
26219 * doc/invoke.texi (-fcheck-pointer-bounds): New.
26220 (-fchkp-check-incomplete-type): New.
26221 (-fchkp-first-field-has-own-bounds): New.
26222 (-fchkp-narrow-bounds): New.
26223 (-fchkp-narrow-to-innermost-array): New.
26224 (-fchkp-optimize): New.
26225 (-fchkp-use-fast-string-functions): New.
26226 (-fchkp-use-nochk-string-functions): New.
26227 (-fchkp-use-static-bounds): New.
26228 (-fchkp-use-static-const-bounds): New.
26229 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
26230 (-fchkp-check-read): New.
26231 (-fchkp-check-write): New.
26232 (-fchkp-store-bounds): New.
26233 (-fchkp-instrument-calls): New.
26234 (-fchkp-instrument-marked-only): New.
26235 (-fchkp-use-wrappers): New.
26236 (-static-libmpx): New.
26237 (-static-libmpxwrappers): New.
26239 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26241 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
26242 (CHKP_SPEC): Add wrappers library.
26243 * c-family/c.opt (static-libmpxwrappers): New.
26245 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
26247 * config/i386/linux-common.h (LIBMPX_LIBS): New.
26248 (LIBMPX_SPEC): New.
26250 * gcc.c (CHKP_SPEC): New.
26251 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
26252 * c-family/c.opt (static-libmpx): New.
26254 2015-03-10 Richard Biener <rguenther@suse.de>
26256 PR middle-end/44563
26257 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
26259 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
26260 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
26261 (cgraph_add_edge_to_call_site_hash): Likewise.
26262 (cgraph_node::get_edge): Likewise.
26263 (cgraph_edge::set_call_stmt): Likewise.
26264 (cgraph_edge::remove_caller): Likewise.
26266 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
26268 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
26269 (callee_saved_gpr_regs_size): ... this.
26270 (callee_saved_regs_first_regno): Rename to ...
26271 (callee_saved_first_gpr_regno): ... this.
26272 (callee_saved_regs_last_regno) Rename to ...
26273 (callee_saved_last_gpr_regno): ... this.
26274 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
26276 (nds32_initial_elimination_offset): Likewise.
26277 (nds32_expand_prologue): Likewise.
26278 (nds32_expand_epilogue): Likewise.
26279 (nds32_expand_prologue_v3push): Likewise.
26280 (nds32_expand_epilogue_v3pop): Likewise.
26281 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
26282 Adjust renamed variables.
26283 (nds32_output_stack_pop): Likewise.
26285 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
26287 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
26290 2015-03-10 Jakub Jelinek <jakub@redhat.com>
26292 PR rtl-optimization/65321
26293 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
26295 * var-tracking.c (use_narrower_mode): Likewise.
26297 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
26299 PR tree-optimization/65355
26300 * varasm.c (notice_global_symbol): Do not produce RTL.
26301 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
26303 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
26304 check for section anchors.
26306 2015-03-10 Alan Modra <amodra@gmail.com>
26309 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
26310 to be single-arch by default. Set cpu_is_64bit for powerpc64
26311 given --with-cpu=native.
26312 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
26313 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
26315 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
26316 rs6000_isa_flags rather than TARGET_64BIT.
26318 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
26319 Kaz Kojima <kkojima@gcc.gnu.org>
26321 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
26323 2015-03-09 Jakub Jelinek <jakub@redhat.com>
26326 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
26327 on a TREE_BINFO, instead use BINFO_TYPE.
26329 2015-03-09 Richard Biener <rguenther@suse.de>
26331 PR middle-end/65270
26332 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
26333 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
26334 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
26335 of that. When comparing dereferences compare alignment.
26336 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
26338 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
26340 * ipa-inline-analysis.c (check_callers): Check
26341 node->can_remove_if_no_direct_calls_and_refs_p.
26342 (growth_likely_positive): Reorganize to call
26343 can_remove_if_no_direct_calls_p later.
26344 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
26345 will_be_removed_from_program_if_no_direct_calls_p): Add
26346 will_inline parameter.
26347 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
26348 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26349 Handle inliner case correctly.
26351 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
26353 PR tree-optimization/63743
26354 * cfgexpand.c (reorder_operands): Also reorder if only second operand
26355 had its definition forwarded by TER.
26357 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
26360 * ipa-utils.h (types_odr_comparable): Add strict argument.
26361 * ipa-devirt.c: Fix whitespace;
26362 (odr_hasher): Remove.
26363 (odr_name_hasher, odr_vtable_hasher): New hashers.
26364 (can_be_name_hashed_p): New predicate.
26365 (hash_type_name): remove.
26366 (hash_odr_name): New.
26367 (odr_name_hasher::hash): new.
26368 (can_be_vtable_hashed_p): New.
26369 (hash_odr_vtable): New.
26370 (odr_vtable_hasher::hash): New.
26371 (types_same_for_odr): Add strict parameter.
26372 (types_odr_comparable): Likewise.
26373 (odr_name_hasher::equal): New.
26374 (odr_vtable_hasher::equal): New.
26375 (odr_name_hasher::remove): New.
26376 (odr_hash_type): Change to hash_table<odr_name_hasher>.
26377 (odr_vtable_hash_type): New.
26378 (odr_vtable_hash): New.
26379 (odr_subtypes_equivalent_p): Do strict comparsion.
26380 (add_type_duplicate): Merge type names; cleanup; avoid type
26382 (register_odr_type): Initialize vtable hash.
26383 (build_type_inheritance_graph): Likewise
26384 (get_odr_type): Reorg to use two hashes.
26385 (dump_possible_polymorphic_call_targets): Move sanity check after debug
26387 (ipa_devirt): Dump type_inheritance_graph.
26388 (types_same_for_odr): Add strict mode.
26390 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26393 * cgraph.h (symtab_node): Add definition_alignment,
26394 can_increase_alignment_p and increase_alignment.
26395 * symtab.c (symtab_node::can_increase_alignment_p,
26396 increase_alignment_1, symtab_node::increase_alignment,
26397 symtab_node::definition_alignment): New.
26398 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
26399 can_increase_alignment_p.
26400 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
26401 * tree-vect-stmts.c (ensure_base_align): Likewise.
26402 * varasm.c (function_section_1): Use definition_alignment.
26403 (assemble_start_function): Likewise.
26404 (emit_local): likewise.
26405 (build_constant_desc): Likewsie.
26406 (output_constant_def_contents): Likewise.
26407 (place_block_symbol): Likewise.
26408 (output_object_block): Likewise.
26410 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26413 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
26414 when outputting debug.
26416 2015-03-07 Marek Polacek <polacek@redhat.com>
26417 Martin Uecker <uecker@eecs.berkeley.edu>
26420 * doc/invoke.texi: Update description of -fsanitize=bounds.
26422 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
26424 * tree-ssa-phiopt.c (neg_replacement): Remove.
26425 (tree_ssa_phiopt_worker): Remove negate optimization.
26427 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26430 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
26432 2015-03-06 Richard Biener <rguenther@suse.de>
26434 PR middle-end/64928
26435 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
26436 and liveout_obstack members.
26437 (calculate_live_on_exit): Remove.
26438 (calculate_live_ranges): Change declaration.
26439 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
26440 (new_tree_live_info): Adjust.
26441 (calculate_live_ranges): Delete livein when not wanted.
26442 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
26443 Deal with partly deleted live info.
26444 (loe_visit_block): Remove temporary bitmap by using
26445 bitmap_ior_and_compl_into.
26446 (live_worklist): Adjust accordingly.
26447 (calculate_live_on_exit): Make static.
26448 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
26449 we do not need livein.
26451 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
26453 * real.c (real_from_string): Fix typo in assertion.
26455 2015-03-06 Alex Velenko <alex.velenko@arm.com>
26457 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
26460 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
26462 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
26464 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
26467 * lra-assigns.c (find_hard_regno_for): Rename to
26468 find_hard_regno_for_1. Add a new parameter.
26469 (find_hard_regno_for): New function using find_hard_regno_for_1.
26471 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
26473 PR rtl-optimization/65067
26474 * expmed.c (store_bit_field, extract_bit_field): Reworked the
26475 strict volatile bitfield handling.
26477 2015-03-05 Martin Liska <mliska@suse.cz>
26480 * ipa-icf.c (sem_variable::equals): Compare variables types.
26482 2015-03-05 Richard Henderson <rth@redhat.com>
26485 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
26486 correctly check weak symbol binding.
26488 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
26490 PR middle-end/65315
26491 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
26494 2015-03-05 Martin Liska <mliska@suse.cz>
26496 * ipa-inline.c (inline_small_functions): Set default value to
26497 prevent warning during bootstrap.
26498 * tree.h: Add pragma guard that ignores false positives during
26501 2015-03-05 Richard Biener <rguenther@suse.de>
26503 PR tree-optimization/65310
26504 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26505 Properly preserve alignment of the base of the access.
26507 2015-03-05 Richard Biener <rguenther@suse.de>
26510 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
26511 Compare dependence info.
26513 2015-03-05 Richard Biener <rguenther@suse.de>
26515 PR middle-end/65233
26516 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
26518 (walk_ssa_copies): Revert last chage. Instead do not walk
26519 SSA names registered for SSA update.
26521 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26524 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
26525 vtable references for their containing type.
26526 (sem_function::equals_wpa): Compare TYPE_RESTRICT
26527 and type attributes.
26529 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
26531 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
26532 before negating it.
26533 * stor-layout.c (finalize_record_size): Revert latest change.
26535 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
26537 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
26539 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26541 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
26542 for correct comdat handling.
26543 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
26545 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
26546 (used_from_object_file_p_worker): Remove.
26547 (cgraph_node::only_called_directly_or_alised): Add
26548 used_from_object_file_p.
26549 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
26550 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
26551 can_remove_if_no_direct_calls_and_refs_p.
26553 2015-03-04 Nick Clifton <nickc@redhat.com>
26555 * config/rl78/rl78.h (enum reg_class): Remove real registers from
26556 General register class.
26557 * config/rl78/rl78-real.md: Replace general register constraints
26558 with real+virtual register constraints.
26560 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26562 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
26563 from checking for -mhtm option.
26565 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
26567 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
26568 (struct ipa_sra_check_caller_data): Add has_thunk field.
26569 (ipa_sra_check_caller): Check for thunk.
26570 (ipa_sra_preliminary_function_checks): Give up on function with
26572 (ipa_early_sra): Use call_for_symbol_and_aliases.
26574 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
26577 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26578 called for __stack_chk_guard symbol.
26580 2015-03-03 DJ Delorie <dj@redhat.com>
26582 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
26584 (*addhi3_real): Likewise.
26585 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
26586 pattern to match incrementing memory.
26587 * config/rl78/predicates.md (rl78_1_2_operand): New.
26588 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
26589 it's the same and only mem.
26590 (rl78_alloc_physical_registers_op2): If there's effectively only
26591 one MEM, transcode it into HL.
26592 (rl78_far_p): Reject addresses that aren't legitimate.
26594 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26596 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
26599 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
26601 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26603 Implement call0 ABI for xtensa
26604 * config/xtensa/constraints.md ("a" constraint): Include stack
26605 pointer in case of call0 ABI.
26606 ("q" constraint): Make empty in case of call0 ABI.
26607 ("D" constraint): Include stack pointer in case of call0 ABI.
26608 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
26609 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
26611 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
26613 (xtensa_regno_to_class): Make it a local variable in the
26614 function xtensa_regno_to_class.
26615 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
26616 macro, function prototype and implementation.
26617 (reg_nonleaf_alloc_order): Make it a local variable in the
26618 function order_regs_for_local_alloc.
26619 (xtensa_conditional_register_usage): New function.
26620 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
26621 (xtensa_valid_move): Allow direct moves to stack pointer
26622 register in call0 ABI.
26623 (xtensa_setup_frame_addresses): Only spill register windows in
26625 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
26626 call0 ABI respectively.
26627 (xtensa_function_arg_1): Only mark a7 register for copying in
26629 (xtensa_call_save_reg): New function.
26630 (compute_frame_size): Add space for callee saved register
26631 storage to the frame size in call0 ABI.
26632 (xtensa_expand_prologue): Generate code to set up stack frame
26633 and save callee-saved registers in call0 ABI.
26634 (xtensa_expand_epilogue): New function.
26635 (xtensa_set_return_address): New function.
26636 (xtensa_return_addr): Calculate return address in call0 ABI.
26637 (xtensa_builtin_saveregs): Only mark a7 register for copying and
26638 emit copying code in windowed ABI.
26639 (order_regs_for_local_alloc): Add preferred register allocation
26640 order for non-leaf function in call0 ABI.
26641 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
26642 (xtensa_asm_trampoline_template): Add trampoline generation for
26644 (xtensa_trampoline_init): Add trampoline initialization for
26646 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
26648 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
26649 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
26650 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
26651 ABI call-used registers.
26652 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
26653 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
26655 (REG_CLASS_CONTENTS): Include all registers into the preferred
26656 reload registers set, adjust the set in the
26657 xtensa_conditional_register_usage.
26658 (xtensa_regno_to_class): Drop variable declaration.
26659 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
26661 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
26663 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
26664 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
26665 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
26666 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
26667 location in call0 ABI.
26668 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
26669 stack adjustment size when handling exception.
26670 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
26671 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
26673 ("return" pattern): Generate ret.n/ret in call0 ABI.
26674 ("epilogue" pattern): Expand epilogue.
26675 ("nonlocal_goto" pattern): Use default in call0 ABI.
26676 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
26677 emit eh_set_a0_* depending on ABI.
26678 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
26679 ("eh_set_a0_call0", "blockage"): New patterns.
26681 2015-03-03 Martin Liska <mliska@suse.cz>
26684 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
26686 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
26689 * config/rs6000/rs6000-tables.opt: Regenerate table.
26691 2015-03-03 Renlin Li <renlin.li@arm.com>
26693 * doc/md.texi (@item ^): Change ? into ^.
26695 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
26697 * doc/tm.texi: Regenerated.
26699 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
26701 * builtins.c (expand_builtin_return_addr): Add
26702 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
26703 surrounding #ifdef.
26704 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
26706 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
26708 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
26710 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
26713 2015-03-03 Martin Jambor <mjambor@suse.cz>
26714 Eric Botcazou <ebotcazou@adacore.com>
26716 * tree-sra.c (ipa_sra_check_caller_data): New type.
26717 (has_caller_p): Removed.
26718 (ipa_sra_check_caller): New function.
26719 (ipa_sra_preliminary_function_checks): Use it.
26721 2015-03-03 Martin Liska <mliska@suse.cz>
26723 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
26724 instead of if branch.
26726 2015-03-03 Martin Liska <mliska@suse.cz>
26729 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
26731 2015-03-23 Jeff Law <law@redhat.com>
26733 PR tree-optimization/65241
26734 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
26735 hash table if INSERT is true.
26737 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26740 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
26742 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26745 * config/avr/avr.c (context.h, tree-pass.h): Include them.
26746 (avr_pass_data_recompute_notes): New static variable.
26747 (avr_pass_recompute_notes): New class.
26748 (avr_register_passes): New static function.
26749 (avr_option_override): Call it.
26751 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
26753 Fix various problems with specs file generation.
26756 * config.gcc (extra_gcc_objs) [avr]: Remove.
26757 * config/avr/driver-avr.c: Remove file.
26758 * config/avr/t-avr (driver-avr.o): Remove rule.
26759 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
26760 INCLUDES to build. Depend on TM_H.
26761 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
26762 build warnings. Fix non-matching types and non-existing %-codes.
26764 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
26765 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
26766 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
26767 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
26768 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
26769 (LIBGCC_SPEC): Remove definitions.
26771 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
26773 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
26774 to create a register in testing mode.
26776 2015-03-03 Martin Liska <mliska@suse.cz>
26777 Jan Hubicka <hubicka@ucw.cz>
26780 * cgraph.c (cgraph_node::has_thunk_p): New function.
26781 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
26782 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
26783 (sem_function::merge): Assert is changed.
26785 2015-03-03 Martin Liska <mliska@suse.cz>
26786 Martin Jambor <mjambor@suse.cz>
26789 * ipa-icf.c (sem_item_optimizer::execute): Change function
26790 return value to boolean.
26791 (sem_item_optimizer::merge_classes): Likewise.
26792 (ipa_icf_driver): Return TODO_remove_functions in case there's
26793 a merge operation processed.
26794 * ipa-icf.h: Change function return value to boolean.
26796 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26799 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
26800 processor type for 64-bit little endian PowerPC.
26802 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
26803 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
26804 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
26805 printing built-in mask so it does not pass NULL pointers.
26807 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
26810 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
26813 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
26814 !ISA_HAS_FP_CONDMOVE.
26816 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
26818 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
26821 2015-03-02 Ulrich Drepper <drepper@gmail.com>
26823 * doc/invoke.texi (Options for Code Generation Conventions):
26824 Fix URL of DSO paper.
26826 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
26829 * ipa-inline.c (check_callers): Looks for recursion.
26830 (inline_to_all_callers): Give up on uninlinable or recursive edges.
26831 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
26832 summary of inline clones.
26833 (do_estimate_growth_1): Fix recursion check.
26835 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
26838 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
26841 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
26842 Aldy Hernandez <aldyh@redhat.com>
26845 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
26846 when checking TYPE_BINFO.
26848 2015-03-02 Richard Biener <rguenther@suse.de>
26851 * ipa-icf-gimple.c: Include builtins.h.
26852 (func_checker::compare_memory_operand): Compare base alignment.
26854 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
26857 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
26858 are never passed by reference.
26860 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
26863 * tree-chkp.c (chkp_check_lower): Don't check against
26864 zero bounds for already instrumented functions.
26865 (chkp_check_upper): Likewise.
26866 (chkp_fini): Clean pass local data to avoid wrong reusage.
26868 2015-02-28 Martin Liska <mliska@suse.cz>
26869 Jan Hubicka <hubicka@ucw.cz>
26871 * ipa-icf.c (sem_variable::equals): Improve debug output;
26872 get variable constructor.
26873 (sem_variable::parse): Do not filter out too early; give up on
26874 volatile and register vars.
26875 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
26877 * ipa-icf.h (sem_variable::init): Do not set ctor.
26878 (sem_variable::ctor): Remove.
26880 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
26882 PR middle-end/65233
26883 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
26885 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26887 * ipa-icf.c: Include stor-layout.h
26888 (sem_function::compare_cgraph_references): Rename to ...
26889 (sem_item::compare_cgraph_references): ... this one.
26890 (sem_variable::equals_wpa): New function
26891 (sem_variable::equals): Do not check stuff already verified by
26893 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
26894 * ipa-icf.h (sem_item): Add compare_cgraph_references.
26895 (sem_function): Remove compare_cgraph_references.
26896 (sem_variable): Turns equals_wpa into non-inline.
26898 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26900 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
26901 (sem_item::add_expr): New function.
26902 (sem_function::hash_stmt): Handle operands of most statements.
26903 (sem_variable::get_hash): Hash the actual constructor.
26904 * ipa-icf.h (sem_item): Add add_expr.
26905 (sem_function): Update prototype of hash_stmt
26907 2015-02-28 Martin Liska <mliska@suse.cz>
26908 Jan Hubicka <hubicka@ucw.cz>
26911 * ipa-icf-gimple.c (func_checker::compare_function_decl):
26913 (func_checker::compare_variable_decl): Skip symtab vars.
26914 (func_checker::compare_cst_or_decl): Update.
26915 * ipa-icf.c (sem_function::parse): Do not consider aliases.
26916 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
26917 use correct symtab predicates.
26918 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
26919 (sem_variable::parse): Update comment.
26920 (sem_item_optimizer::build_graph): Consider ultimate aliases
26923 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26925 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
26928 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26930 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
26931 (sem_variable::merge) Likewise.
26933 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26935 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
26936 target; also match flag_ipa_devirt.
26938 2015-03-01 Martin Liska <mliska@suse.cz>
26939 Jan Hubicka <hubicka@ucw.cz>
26941 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
26942 Validate variable alignment.
26943 * ipa-icf.c (sem_function::equals_private): Be more precise
26944 about non-common function attributes.
26945 (sem_variable::equals): Likewise.
26947 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26950 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
26951 across COMDAT group boundary.
26953 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26956 * ipa-icf.c (clear_decl_rtl): New function.
26957 (sem_function::merge): Clear RTL before forming alias.
26958 (sem_variable::merge): Clear RTL before forming alias.
26960 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
26963 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
26965 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
26967 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
26970 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
26972 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
26973 a typo in the description.
26975 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
26978 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26979 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26980 * lra-constraints.c: Include "params.h".
26981 (EBB_PROBABILITY_CUTOFF): Use
26982 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
26983 (lra_inheritance): Use '<' instead of '<=' for
26984 EBB_PROBABILITY_CUTOFF.
26985 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
26988 2015-02-27 Martin Liska <mliska@suse.cz>
26990 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
26991 vector length condition.
26993 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
26995 * doc/extend.texi (x86 transactional memory intrinsics):
26996 Reorganize discussion of _xbegin. Clarify that the return
26997 value is a bit mask. Expand example and move to end of section.
26999 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27000 Aldy Hernandez <aldyh@redhat.com>
27002 PR rtl-optimization/65220
27003 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27005 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27008 * lra-remat.c (update_scratch_ops): New.
27009 (do_remat): Call it.
27010 * lra.c (lra_register_new_scratch_op): New. Take code from ...
27011 (remove_scratches): ... here.
27012 * lra-int.h (lra_register_new_scratch_op): New prototype.
27014 2015-02-27 Marek Polacek <polacek@redhat.com>
27017 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27018 -Wformat-signedness anymore.
27020 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27022 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27024 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27026 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27028 * config/s390/s390.c (enum s390_builtin):
27029 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27030 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27031 (s390_init_builtins): Generate new builtin functions.
27032 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27033 (s390_sfpc, s390_efpc): New pattern definitions.
27035 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27037 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27038 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27039 (s390_builtin_decls): New array.
27040 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27041 (s390_builtin_decl): New function.
27042 (TARGET_BUILTIN_DECL): Define macro.
27044 2015-02-27 Richard Biener <rguenther@suse.de>
27046 PR middle-end/63175
27047 * builtins.c (get_object_alignment_2): Make sure to re-apply
27048 the ANDed mask after recursing to its operand gets us a new
27049 misalignment bit position.
27051 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
27052 Martin Liska <mliska@suse.cz>
27055 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27056 Use address_matters_p.
27057 (redirect_all_callers, set_addressable): New functions.
27058 (sem_function::merge): Reorganize and fix merging issues.
27059 (sem_variable::merge): Likewise.
27060 (sem_variable::compare_sections): Remove.
27061 * common.opt (fmerge-all-constants, fmerge-constants): Remove
27063 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27065 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27067 (address_matters_1): New function.
27068 (symtab_node::address_matters_p): New function.
27069 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27070 check for merged flag.
27071 * cgraph.h (address_matters_p): Declare.
27072 (symtab_node::address_taken_from_non_vtable_p): Remove.
27073 (symtab_node::address_can_be_compared_p): New method.
27074 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27075 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27077 (comdat_can_be_unshared_p_1) Use address_matters_p.
27078 (update_vtable_references): Fix formating.
27079 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27080 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27081 * cgraphclones.c: Preserve merged and icf_merged flags.
27083 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
27085 * doc/extend.texi (Function Attributes): Fix spelling and typos.
27086 (Label Attributes): Likewise.
27087 (Cilk Plus Builtins): Likewise.
27088 (ARC SIMD Built-in Functions): Likewise.
27089 (ARM C Language Extensions (ACLE)): Likewise.
27090 (PowerPC Built-in Functions): Likewise.
27091 (PowerPC Hardware Transactional Memory Built-in Functions):
27094 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27096 PR tree-optimization/65216
27097 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27098 new stmt and new SSA_NAME for lhs whenever the arguments have
27099 changed and weren't just swapped. Fix comment typo.
27101 PR tree-optimization/65215
27102 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27103 for PDP endian targets.
27104 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27105 Fix up formatting issues.
27106 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
27107 size is smaller than the original, adjust MEM_REF offset by the
27108 difference of sizes. Use is_gimple_mem_ref_addr instead of
27109 is_gimple_min_invariant test to avoid adding address temporaries.
27111 2015-02-26 Martin Liska <mliska@suse.cz>
27112 Jan Hubicka <hubicka@ucw.cz>
27115 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27116 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27117 (sem_item_optimizer::process_cong_reduction): Include division by
27118 sensitive references.
27119 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27120 * ipa-ref.c (ipa_ref::address_matters_p): New function.
27121 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27123 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
27126 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27128 * config/avr/avr.c: Same.
27129 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27130 Refuse any constant address not in 0..0xbf.
27131 * config/avr/avr.md (*mov<mode>, *movsf): Remove
27132 tiny_valid_direct_memory_access_range from insn conditions.
27133 (mov<mode>): Don't special-case expansion of avrtiny addresses.
27135 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
27138 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27139 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27140 * config/sh/predicates.md (const_logical_operand): New predicate.
27141 * config/sh/sh.md: Add new peephole2 patterns.
27143 2015-02-26 Marek Polacek <polacek@redhat.com>
27146 * ipa-inline.c (early_inliner): Recompute inline parameters.
27148 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27151 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27152 instructions with TImode operands are included in the analysis.
27154 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27156 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27157 of an EDGE_FSM_THREAD.
27159 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
27161 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27163 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
27166 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27168 2015-02-26 Sebastian Pop <s.pop@samsung.com>
27170 PR tree-optimization/65048
27171 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27172 (thread_through_all_blocks): Call valid_jump_thread_path.
27173 Remove invalid FSM jump-thread paths.
27175 2015-02-26 Jakub Jelinek <jakub@redhat.com>
27177 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27178 (ipa_write_optimization_summaries): Likewise.
27179 * tree-streamer.h: Include data-streamer.h.
27180 (streamer_mode_table): Declare extern variable.
27181 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27182 * lto-streamer-out.c (lto_output_init_mode_table,
27183 lto_write_mode_table): New functions.
27184 (produce_asm_for_decls): Call lto_write_mode_table when streaming
27186 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27187 (lto_create_simple_input_block): Add mode_table argument to the
27188 lto_input_block constructors.
27189 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27191 * data-streamer-in.c (string_for_index): Likewise.
27192 * ipa-inline-analysis.c (inline_read_section): Likewise.
27193 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27194 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27195 * lto-streamer-in.c (lto_read_body_or_constructor,
27196 lto_input_toplevel_asms): Likewise.
27197 (lto_input_mode_table): New function.
27198 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27199 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27200 Use bp_pack_machine_mode.
27201 * real.h (struct real_format): Add name field.
27202 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27203 (class lto_input_block): Add mode_table member.
27204 (lto_input_block::lto_input_block): Add mode_table_ argument,
27205 initialize mode_table.
27206 (struct lto_file_decl_data): Add mode_table field.
27207 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27208 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27209 unpack_ts_decl_common_value_fields,
27210 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27211 * tree-streamer.c (streamer_mode_table): New variable.
27212 * real.c (ieee_single_format, mips_single_format,
27213 motorola_single_format, spu_single_format, ieee_double_format,
27214 mips_double_format, motorola_double_format,
27215 ieee_extended_motorola_format, ieee_extended_intel_96_format,
27216 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27217 ibm_extended_format, mips_extended_format, ieee_quad_format,
27218 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27219 decimal_single_format, decimal_double_format, decimal_quad_format,
27220 ieee_half_format, arm_half_format, real_internal_format): Add name
27222 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27224 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
27227 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
27228 reordering for selective scheduling.
27230 2015-02-26 Terry Guo <terry.guo@arm.com>
27232 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
27233 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
27234 (arm_arch_no_volatile_ce): Declare new global variable.
27235 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
27236 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
27237 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
27238 (TARGET_NO_VOLATILE_CE): New macro.
27239 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
27240 volatile memory access in IT block
27242 2015-02-25 Kai Tietz <ktietz@redhat.com>
27244 PR tree-optimization/61917
27245 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
27246 that reduc_def_stmt is null.
27248 2015-02-25 Martin Liska <mliska@suse.cz>
27250 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
27251 hard register variables.
27253 2015-02-25 Kai Tietz <ktietz@redhat.com>
27256 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
27257 (symtab::noninterposable_alias): Likewise.
27259 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
27262 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
27264 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
27266 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
27269 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
27270 as split condition; force split via '#' in output pattern.
27272 2015-02-25 Richard Biener <rguenther@suse.de>
27273 Kai Tietz <ktietz@redhat.com>
27275 PR tree-optimization/61917
27276 * tree-vect-loop.c (vectorizable_reduction): Allow
27277 vect_internal_def without reduction to exit graceful.
27279 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27282 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
27283 only with NONDEBUG_INSN_P.
27285 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
27287 Use variadic macros with avr-log.c.
27289 * config/avr/avr-protos.h (avr_vdump): New prototype.
27290 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
27291 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
27292 * config/avr/avr-log.c: Adjust comments.
27293 (avr_vdump): New function.
27294 (avr_vadump): Pass caller as 2nd argument instead of format string.
27295 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
27296 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
27298 2015-02-25 Jakub Jelinek <jakub@redhat.com>
27301 * target.def (target_option_stream_in): New target hook.
27302 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
27303 targetm.target_option.post_stream_in if non-NULL.
27304 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
27305 * doc/tm.texi: Updated.
27306 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
27308 (TARGET_OPTION_POST_STREAM_IN): Redefine.
27310 2015-02-24 Jeff Law <law@redhat.com>
27313 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
27314 of operand 0 and operand 2.
27315 (zero_cost_loop_end, loop_end): Similarly.
27317 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
27319 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
27322 2015-02-24 DJ Delorie <dj@redhat.com>
27324 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
27325 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
27326 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
27327 instead of hardcoding SImode.
27329 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
27331 * omp-low.c (create_omp_child_function): Tag entrypoint
27332 functions with a special attribute.
27334 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27337 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
27339 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
27341 PR rtl-optimization/65123
27342 * lra-remat.c (operand_to_remat): Check hard regs in insn
27345 2015-02-24 Nick Clifton <nickc@redhat.com>
27347 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
27350 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
27353 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
27354 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
27355 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
27356 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
27357 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
27358 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
27359 (BUILT_IN_GOACC_PARALLEL): Specify as
27360 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
27361 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
27362 * builtin-types.def
27363 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27364 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27365 Remove function types.
27366 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
27367 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27368 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27369 New function types.
27371 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
27373 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
27375 2015-02-24 Jakub Jelinek <jakub@redhat.com>
27377 PR tree-optimization/65170
27378 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
27379 if val[1] < 0, clear also val[2] and return 3.
27381 2015-02-24 Alan Modra <amodra@gmail.com>
27384 * config/rs6000/rs6000.c (get_memref_parts): Only return true
27385 when *base is a reg. Handle nested plus addresses. Simplify
27388 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
27390 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
27391 use natural alignment when optimizing for size.
27393 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
27396 * config/sh/sh.md (movsicc_true+3): Remove peephole.
27397 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
27398 * config/sh/sh.c (replace_n_hard_rtx): Remove.
27400 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
27403 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
27404 too big for a wide_int. Implement missing wrapping operation.
27406 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
27409 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
27410 instead of const_int 4294901760.
27412 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
27414 * config/avr/t-avr: Fix typo in comment.
27416 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
27418 * doc/rtl.texi (fma): Clarify documentation.
27420 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
27423 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
27424 over input_location.
27426 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27428 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
27429 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
27430 restrict alignments to absolute_biggest_alignment.
27431 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
27433 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
27434 * doc/tm.texi: Regenerate.
27435 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
27437 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
27440 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
27442 2015-02-20 Richard Biener <rguenther@suse.de>
27444 PR tree-optimization/65136
27445 * tree-ssa-propagate.c: Include cfgloop.h.
27446 (replace_phi_args_in): Avoid replacing loop latch edge PHI
27447 arguments with constants.
27449 2015-02-20 Jakub Jelinek <jakub@redhat.com>
27450 Martin Liska <mliska@suse.cz>
27453 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
27454 don't try to create_thunk if stdarg_p. If
27455 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
27456 redirect_callers if possible.
27457 (sem_item_optimizer::execute): Call unregister_hooks here...
27458 (ipa_icf_driver): ... instead of here.
27460 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27462 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
27463 Mark operand 0 as earlyclobber in 2nd alternative.
27464 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
27465 Write negated shift amount into QI lowpart operand 0 and use it
27467 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
27469 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27471 * cgraph.h (clone_function_name_1): Declare.
27472 * cgraphclones.c (clone_function_name_1): New function.
27473 (clone_function_name): Use it.
27474 * lto-partition.c: Include "stringpool.h".
27475 (must_not_rename, maybe_rewrite_identifier)
27476 (validize_symbol_for_target): New static functions.
27477 (privatize_symbol_name): Use must_not_rename.
27478 (promote_symbol): Call validize_symbol_for_target.
27479 (lto_promote_cross_file_statics): Likewise.
27480 (lto_promote_statics_nonwpa): Likewise.
27482 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
27485 * config/avr/avr.md (pushhi_insn): New insn.
27486 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
27488 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
27489 Jakub Jelinek <jakub@redhat.com>
27491 * tree-streamer.c (preload_common_nodes): Don't preload
27492 TI_VA_LIST* for offloading.
27493 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
27496 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
27498 * config/pa/pa.c (pa_emit_move_sequence): Always force
27499 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
27502 * config/pa/pa.c (pa_reloc_rw_mask): New function.
27503 (TARGET_ASM_RELOC_RW_MASK): Define.
27504 (pa_cannot_force_const_mem): Revert previous change.
27506 2015-02-19 Martin Jambor <mjmabor@suse.cz>
27507 Jan Hubicka <hubicka@ucw.cz>
27510 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
27511 across jump functions.
27513 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
27515 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
27517 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
27519 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
27521 2015-02-19 Richard Henderson <rth@redhat.com>
27523 PR middle-end/65074
27524 * varasm.c (default_binds_local_p_2): Don't test node->definition;
27525 test DECL_EXTERNAL independent of symtab_node.
27527 2015-02-19 Jakub Jelinek <jakub@redhat.com>
27530 * varpool.c (varpool_node::get_constructor): Return early
27531 if this->lto_file_data is NULL.
27533 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
27535 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
27536 (rank_for_schedule_debug): Update.
27537 (ready_sort): Make static. Move sorting logic to ...
27538 (ready_sort_debug, ready_sort_real): New static functions.
27539 (schedule_block): Sort both debug insns and real insns in preparation
27540 for ready list trimming. Improve debug output.
27541 * sched-int.h (ready_sort): Remove global declaration.
27543 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
27545 * ipa-icf.c (sem_function::equals_private): Adjust.
27546 (sem_function::bb_dict_test): Take a vec<int> * instead of
27548 * ipa-icf.h (bb_dict_test): Likewise.
27550 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27552 PR gcov-profile/64634
27553 * tree-eh.c (frob_into_branch_around): Fix up typos
27554 in function comment.
27555 (lower_catch): Put eh_seq resulting from EH lowering of
27556 the cleanup sequence after the cleanup rather than before it.
27558 2015-02-18 Tom de Vries <tom@codesourcery.com>
27560 * common.opt (fstdarg-opt): New option.
27561 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
27562 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
27563 (@item -fstdarg-opt): New item.
27565 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
27568 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
27569 for common symbols.
27571 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27573 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
27575 (ALL_HOST_OBJS): Add mkoffload.o.
27576 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
27578 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
27580 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
27581 (compare_virtual_tables): Be smarter about skipping typeinfos;
27582 do sane output on virtual table table mismatch.
27583 (warn_odr): Be ready for forward declarations of enums;
27584 output sane info on base mismatch and virtual table mismatch.
27585 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
27586 when only one type is polymorphic.
27587 (get_odr_type): Fix hashtable corruption.
27588 (dump_odr_type): Dump mangled names.
27590 2015-02-18 Richard Biener <rguenther@suse.de>
27592 PR tree-optimization/65063
27593 * tree-predcom.c (determine_unroll_factor): Return 1 if we
27594 have replaced looparound PHIs.
27596 2015-02-18 Martin Liska <mliska@suse.cz>
27598 * lto-streamer.c (lto_streamer_init): Encapsulate
27599 streamer_check_handled_ts_structures with checking macro.
27601 2015-02-18 Jakub Jelinek <jakub@redhat.com>
27604 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
27605 section if !implicit_section.
27606 (cgraph_node::create_version_clone_with_body): Likewise.
27607 * trans-mem.c (ipa_tm_create_version): Likewise.
27609 2015-02-18 Richard Biener <rguenther@suse.de>
27611 PR tree-optimization/62217
27612 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
27615 2015-02-18 Marek Polacek <polacek@redhat.com>
27618 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
27619 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
27620 is in range [-16K, -1]. Don't issue run-time error if
27621 (ptr > ptr + offset).
27623 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
27625 * doc/install.texi (nvptx-*-none): New section.
27626 * doc/invoke.texi (Nvidia PTX Options): Likewise.
27627 * config/nvptx/nvptx.opt: Update.
27629 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
27630 (access_check): New functions, copied from
27631 config/i386/intelmic-mkoffload.c.
27632 (main): For non-installed testing, look in all COMPILER_PATHs for
27635 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
27637 2015-02-18 Andrew Pinski <apinski@cavium.com>
27638 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27640 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
27641 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
27643 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
27645 * ipa-visibility.c (function_and_variable_visibility): Only
27646 check locality if node is not already local.
27647 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27648 call_for_symbol_and_aliases instead of
27649 call_for_symbol_thunks_and_aliases.
27650 (ipa_inline): Likewise.
27651 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27652 first walk aliases.
27653 * ipa.c (symbol_table::remove_unreachable_nodes): Use
27654 call_for_symbol_and_aliases.
27655 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27656 (ipa_propagate_frequency_1): Use it; use opt_for_fn
27657 (ipa_propagate_frequency): Update.
27658 (ipa_profile): Add opt_for_fn gueards.
27660 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
27662 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
27663 * doc/invoke.texi (SH options): Document it.
27664 * config/sh/sh.c (sh_insn_length_adjustment): Check
27665 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
27667 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
27669 * common.opt (fipa-cp-alignment): New.
27670 * ipa-cp.c (ipcp_store_alignment_results): Check
27671 flag_ipa_cp_alignment.
27672 * opts.c (default_options_table): Enable -fipa-cp-alignment for
27674 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
27675 * doc/invoke.texi: Document -fipa-cp-alignment.
27677 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
27680 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
27681 to nil. Adjust comments.
27683 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
27685 * ipa-visibility.c (function_and_variable_visibility): Only
27686 check locality if node is not already local.
27687 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
27688 call_for_symbol_and_aliases instead of
27689 call_for_symbol_thunks_and_aliases.
27690 (ipa_inline): Likewise.
27691 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
27692 first walk aliases.
27693 * ipa.c (symbol_table::remove_unreachable_nodes): Use
27694 call_for_symbol_and_aliases.
27695 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
27696 (ipa_propagate_frequency_1): Use it; use opt_for_fn
27697 (ipa_propagate_frequency): Update.
27698 (ipa_profile): Add opt_for_fn guards.
27700 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
27702 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
27703 skipping of "strange" tokens.
27705 2015-02-17 Jeff Law <law@redhat.com>
27707 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
27710 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
27712 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
27713 as forcing a HARD_DEP between instructions, thereby
27714 disallowing rewriting to break dependencies.
27716 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
27718 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
27719 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
27720 variables in boundary that have no inlitalizer encoded and are
27722 * varasm.c (default_binds_local_p_2): External definitions do not
27723 count as definitions here.
27725 2015-02-16 Jeff Law <law@redhat.com>
27727 PR tree-optimization/64823
27728 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
27730 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27731 threading through blocks with PHIs, but no statements.
27732 (thread_through_normal_block): Distinguish between blocks where
27733 we did not process all the statements and blocks with no statements.
27735 2015-02-16 Jakub Jelinek <jakub@redhat.com>
27736 James Greenhalgh <james.greenhalgh@arm.com>
27739 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
27740 section if not linkonce. Fix up formatting.
27741 (cgraph_node::create_version_clone_with_body): Copy section.
27742 * trans-mem.c (ipa_tm_create_version): Likewise.
27744 2015-02-16 Richard Biener <rguenther@suse.de>
27746 PR tree-optimization/65077
27747 * tree-ssa-structalias.c (get_constraint_for_1): Handle
27748 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
27749 (find_func_aliases): Allow float values to carry pointers again.
27751 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27753 * doc/install.texi (Specific): Reorder targets list to put
27754 aarch64 in alphabetical order. Add a link to aarch64*-*-*
27757 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27758 David Edelsohn <dje.gcc@gmail.com>
27761 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
27762 mapping class to external variable or function reference.
27763 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
27766 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
27769 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
27770 ASM_WEAKEN_DECL if defined.
27772 2015-02-16 Richard Biener <rguenther@suse.de>
27775 * varasm.c (default_file_start): For LTO produced units
27776 emit <artificial> as file directive.
27778 2015-02-16 Richard Biener <rguenther@suse.de>
27780 PR tree-optimization/63593
27781 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
27782 stmts and releasing SSA names until...
27783 (execute_pred_commoning): ... after processing all chains.
27785 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
27788 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
27789 external functions.
27791 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
27793 * doc/bugreport.texi: Adjust section titles throughout the file
27794 to use "Title Case".
27795 * doc/extend.texi: Likewise.
27796 * doc/gcov.texi: Likewise.
27797 * doc/implement-c.texi: Likewise.
27798 * doc/implement-cxx.texi: Likewise.
27799 * doc/invoke.texi: Likewise.
27800 * doc/objc.texi: Likewise.
27801 * doc/standards.texi: Likewise.
27802 * doc/trouble.texi: Likewise.
27804 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
27806 * cgraph.h (symtab_node::has_aliases_p): Simplify.
27807 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
27808 * tree.c (lookup_binfo_at_offset): Make static.
27809 (get_binfo_at_offset): Do not shadow offset; add explanatory
27812 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
27814 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
27815 for all floading point loads and stores except those using a register
27817 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
27820 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
27822 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
27823 (do_estimate_growth_1): Record if any uninlinable edge was seen.
27824 (estimate_growth): Handle uninlinable edges correctly.
27825 (check_callers): New.
27826 (growth_likely_positive): Handle aliases correctly.
27828 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
27830 * ipa-chkp.c: Use iterate_direct_aliases.
27831 * symtab.c (resolution_used_from_other_file_p): Move inline.
27832 (symtab_node::create_reference): Fix formating.
27833 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
27834 (symtab_node::iterate_reference): Move inline.
27835 (symtab_node::iterate_referring): Move inline.
27836 (symtab_node::iterate_direct_aliases): Move inline.
27837 (symtab_node::used_from_object_file_p_worker): Inline into ...
27838 (symtab_node::used_from_object_file_p): ... this one; move inline.
27839 (symtab_node::call_for_symbol_and_aliases): Move inline;
27840 use iterate_direct_aliases.
27841 (symtab_node::call_for_symbol_and_aliases_1): New method.
27842 (cgraph_node::call_for_symbol_and_aliases): Move inline;
27843 use iterate_direct_aliases.
27844 (cgraph_node::call_for_symbol_and_aliases_1): New method.
27845 (varpool_node::call_for_node_and_aliases): Rename to ...
27846 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
27847 use iterate_direct_aliases.
27848 (varpool_node::call_for_symbol_and_aliases_1): New method.
27849 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
27850 (ipa_discover_readonly_nonaddressable_var): Update.
27851 * ipa-devirt.c: Fix formating.
27852 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
27854 (cgraph_node::call_for_symbol_and_aliases): Move inline.
27855 (cgraph_node::call_for_symbol_and_aliases_1): New function..
27856 * cgraph.h (used_from_object_file_p_worker): Remove.
27857 (resolution_used_from_other_file_p): Move inline.
27858 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
27859 (symtab_node::iterate_reference): Move inline.
27860 (symtab_node::iterate_referring): Move inline.
27861 (symtab_node::iterate_direct_aliases): Move inline.
27862 (symtab_node::used_from_object_file_p_worker): Inline into ...
27863 (symtab_node::used_from_object_file_p): Move inline.
27864 * tree-emutls.c (ipa_lower_emutls): Update.
27865 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
27866 (varpool_node::call_for_node_and_aliases): Remove.
27868 2015-02-14 Jakub Jelinek <jakub@redhat.com>
27870 PR tree-optimization/62209
27871 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
27872 op == range->exp, insert seq and gimplified code after labels
27873 instead of after the phi.
27875 2015-02-13 Jeff Law <law@redhat.com>
27878 Revert my change for tree-optimization/64823.
27880 2015-02-13 Jakub Jelinek <jakub@redhat.com>
27882 PR tree-optimization/65053
27883 * tree-ssa-phiopt.c (value_replacement): When moving assign before
27884 cond, either reset VR on lhs or set it to phi result VR.
27886 2015-02-13 Jeff Law <law@redhat.com>
27888 PR tree-optimization/64823
27889 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
27890 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27891 threading through blocks with PHIs, but no statements.
27892 (thread_through_normal_block): Distinguish between blocks where
27893 we did not process all the statements and blocks with no statements.
27895 PR rtl-optimization/47477
27896 * match.pd (convert (plus/minus (convert @0) (convert @1): New
27897 simplifier to narrow arithmetic.
27899 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
27902 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
27903 polymorphic call info when type is not known to be preserved.
27905 2015-02-13 Maritn Jambor <mjambor@suse.cz>
27908 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
27909 (inline_call): Use it.
27911 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
27913 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
27914 GOMP_DEVICE_NVIDIA_PTX.
27916 2015-02-13 Jakub Jelinek <jakub@redhat.com>
27919 * stmt.c (emit_case_nodes): Use void_type_node instead of
27920 NULL_TREE as LABEL_DECL type.
27922 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
27924 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
27926 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
27927 symbolic references to data to be forced to constant memory on the
27930 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
27932 PR tree-optimization/65002
27933 * tree-cfg.c (pass_data_fixup_cfg): Don't update
27935 * tree-sra.c (some_callers_have_no_vuse_p): New.
27936 (ipa_early_sra): Reject functions whose callers
27937 assume function is read only.
27939 2015-02-13 Richard Biener <rguenther@suse.de>
27942 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
27943 for LTO produced CUs.
27945 2015-02-13 Bin Cheng <bin.cheng@arm.com>
27947 PR tree-optimization/64705
27948 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
27949 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
27950 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
27951 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
27952 expand_simple_operations.
27954 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
27955 Richard Henderson <rth@redhat.com>
27958 * cgraphunit.c (cgraph_node::finalize_function): Set definition
27959 before notice_global_symbol.
27960 (varpool_node::finalize_decl): Likewise.
27961 * varasm.c (default_binds_local_p_2): Rename from
27962 default_binds_local_p_1, add weak_dominate argument. Use direct
27963 returns instead of assigning to local variable. Unify varpool and
27964 cgraph paths via symtab_node. Reject undef weak variables before
27965 testing visibility. Reorder tests for simplicity.
27966 (default_binds_local_p): Use default_binds_local_p_2.
27967 (default_binds_local_p_1): Likewise.
27968 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
27970 (default_elf_asm_output_external): Emit visibility when specified.
27972 2015-02-13 Alan Modra <amodra@gmail.com>
27974 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
27975 code setting up r11 for out-of-line fp restore.
27977 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
27979 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
27980 (muser-mode): Likewise.
27982 2015-02-13 Alan Modra <amodra@gmail.com>
27984 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
27985 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
27987 2015-02-12 David Howells <dhowells@redhat.com>
27989 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
27991 * tree-ssa-uninit.c (dump_predicates): Likewise.
27992 * opts.c (print_filtered_help): Likewise.
27994 2015-02-12 Jakub Jelinek <jakub@redhat.com>
27996 * dwarf2out.c (output_die): Use "%s", name instead of name to
27997 avoid -Wformat-security warning.
27999 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28000 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28001 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28002 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28004 2015-02-12 Jason Merrill <jason@redhat.com>
28006 * common.opt (-flifetime-dse): New.
28008 2015-02-12 Jakub Jelinek <jakub@redhat.com>
28011 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28013 PR tree-optimization/65014
28014 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28015 use original second operand of arg0 or arg1 instead of
28016 that adjusted by STRIP_NOPS.
28018 2015-02-11 Jeff Law <law@redhat.com>
28021 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28022 that needs to be queued, just queue it for a single cycle.
28024 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
28026 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28027 bodies of thunks; comment on why.
28028 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28029 symbols are extern.
28031 2015-02-11 Richard Henderson <rth@redhat.com>
28034 * tree-eh.c (mark_reachable_handlers): Mark source and destination
28035 regions of __builtin_eh_copy_values.
28037 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28039 PR middle-end/65003
28040 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28041 ultimate alias is MEM with SYMBOL_REF satisfying
28042 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
28043 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28045 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
28047 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28048 "diagnostic-core.h".
28049 (main): Initialize progname, and call diagnostic_initialize.
28051 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28052 instead of __OPENMP_TARGET__.
28054 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28055 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28056 hard-coding PTX_ID.
28058 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
28060 * doc/sourcebuild.texi (pie_enabled): Document.
28062 2015-02-11 Martin Liska <mliska@suse.cz>
28065 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28066 a return value for call to a function that is noreturn.
28068 2015-02-11 Richard Biener <rguenther@suse.de>
28071 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28074 2015-02-11 Andrew Pinski <apinski@cavium.com>
28077 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28078 Change the first argument type to size_type_node and add another
28080 (aarch64_simd_expand_builtin): Handle the new argument to
28081 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28082 print an out when the first two arguments are not
28083 nonzero integer constants.
28084 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28085 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28087 2015-02-11 Jakub Jelinek <jakub@redhat.com>
28090 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28091 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28092 (ix86_set_current_function): Rewritten.
28093 (ix86_add_new_builtins): Temporarily clear current_target_pragma
28094 when creating builtin fndecls.
28096 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28099 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28101 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28102 have no comdat group.
28103 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28104 (lto_output_varpool_node): Always output alias info.
28105 (output_refs): Output refs of boundary aliases, too.
28106 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28107 (output_symtab): Output call eges in thunks in boundary.
28108 (get_alias_symbol): Remove.
28109 (input_node, input_varpool_node): Do not special case weakrefs.
28110 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28111 alias and thunks targets in the boundary; do not take removed symbols
28112 from their comdat groups.
28113 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28114 (cgraph_node::global_info): Remove.
28115 (cgraph_node::rtl_info): Look through aliases and thunks.
28116 * cgrpah.h (global_info): Remove.
28117 (non_local_p): Remove.
28119 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28120 Sandra Loosemore <sandra@codesourcery.com>
28122 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28123 to inline asm. List dialects in proper order.
28125 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28126 Sandra Loosemore <sandra@codesourcery.com>
28128 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28130 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
28132 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28133 modified) reference to Solaris.
28135 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
28137 * doc/extend.texi (Extended Asm): Fix typos.
28139 2015-02-10 Jakub Jelinek <jakub@redhat.com>
28142 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28144 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
28147 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28148 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28149 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28150 * config/sh/constraints.md (Ara, Add): New constraints.
28151 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28153 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28154 atomic_mem_operand_0. Don't use force_reg on the memory address.
28155 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28156 Sra constraint. Convert to insn_and_split. Add workaround for
28158 (atomic_compare_and_swap<mode>_hard): Copy to
28159 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
28160 Use atomic_mem_operand_0 predicate.
28161 (atomic_compare_and_swap<mode>_soft_gusa,
28162 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28163 AraAdd constraints.
28164 (atomic_compare_and_swap<mode>_soft_tcb,
28165 atomic_compare_and_swap<mode>_soft_imask,
28166 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28167 atomic_mem_operand_0 predicate and SraSdd constraints.
28168 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28170 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28171 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
28172 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28173 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
28174 force_reg on the memory address.
28175 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28176 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28177 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28178 atomic_mem_operand_1 predicate and Sra constraint.
28179 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28180 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28181 Use atomic_mem_operand_1 predicate.
28182 (atomic_<fetchop_name><mode>_hard): Copy to
28183 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
28184 Use atomic_mem_operand_1 predicate.
28185 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28186 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28187 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
28188 insn_and_split. Use atomic_mem_operand_1 predicate.
28189 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28190 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
28191 Use atomic_mem_operand_1 predicate.
28192 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28193 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
28194 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28195 in generated insn with original mem operand before emitting the insn.
28196 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28197 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28198 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28199 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28200 Use atomic_mem_operand_1 predicate and AraAdd constraints.
28201 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28202 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28203 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28204 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28205 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28206 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28207 atomic_not_fetch<mode>_soft_tcb,
28208 atomic_<fetchop_name>_fetch<mode>_soft_imask,
28209 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28210 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28211 Use atomic_mem_operand_1 predicate and SraSdd constraints.
28213 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
28215 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28216 and 3 earlyclobber operands.
28218 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28220 * common.opt (fstack-reuse): Mark as optimization.
28222 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
28225 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28227 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
28229 PR tree-optimization/64326
28230 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
28232 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
28234 PR gcov-profile/61889
28235 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
28237 2015-02-10 Richard Biener <rguenther@suse.de>
28239 PR tree-optimization/64995
28240 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
28241 value we use is final.
28242 (visit_reference_op_store): Always valueize op.
28243 (visit_use): Properly valueize vuses.
28245 2015-02-10 Richard Biener <rguenther@suse.de>
28247 PR tree-optimization/64909
28248 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
28249 pass a scalar-stmt count estimate to the cost model.
28250 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
28252 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
28254 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
28255 enabled by default together with var-tracking.
28257 2015-02-10 Nick Clifton <nickc@redhat.com>
28259 * config/rl78/rl78.c: Remove DIV attribute code accidentally
28260 included in previous rl78 commit.
28262 2015-02-10 Richard Biener <rguenther@suse.de>
28264 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
28265 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
28266 return the bitpack.
28268 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28270 PR gcov-profile/61889
28271 * config.in: regenerate.
28272 * configure.in: Likewise.
28273 * configure.ac: Check for ftw.h.
28274 * gcov-tool.c: Check for ftw.h before using nftw.
28276 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
28279 * ipa-visibility.c (update_visibility_by_resolution_info): Only
28280 assert when not in lto mode.
28282 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28284 * ira-color.c (setup_left_conflict_sizes_p): Simplify
28285 initialization/assignment of conflict_size.
28287 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
28290 * ipa-cp.c (gather_caller_stats): Skip thunks.
28291 (propagate_constants_topo): Skip aliases.
28293 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
28296 * config/sh/sh.c (sh_option_override): Don't change
28297 -freorder-blocks-and-partition to -freorder-blocks even when
28298 unwinding is enabled.
28299 (sh_can_follow_jump): Return false if the followee jump is
28300 a crossing jump when -freorder-blocks-and-partition is specified.
28301 * config/sh/sh.md (*jump_compact_crossing): New insn.
28303 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
28304 Kaz Kojima <kkojima@gcc.gnu.org>
28307 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
28308 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
28309 (sh_can_redirect_branch): Rename to ...
28310 (sh_can_follow_jump): ... this. Constify argument types.
28311 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
28312 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
28313 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
28314 * doc/tm.texi: Regenerate.
28316 2015-02-09 Jakub Jelinek <jakub@redhat.com>
28319 * builtins.c (expand_builtin): Call targetm.expand_builtin
28320 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
28322 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28325 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
28327 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28330 * ipa-icf.c (set_local): New function.
28331 (sem_function::merge): Use it.
28333 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28335 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
28336 (add_type_duplicate): Fix comparison of BINFOs.
28338 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28340 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
28341 on getting VOID pointer.
28343 2015-02-09 Jakub Jelinek <jakub@redhat.com>
28346 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
28349 2015-02-09 Richard Biener <rguenther@suse.de>
28351 * genmatch.c (replace_id): Copy expr_type.
28353 2015-02-09 Richard Biener <rguenther@suse.de>
28355 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
28356 (streamer_write_tree_bitfields): Declare.
28357 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
28358 properly unpack padding.
28359 (unpack_value_fields): Inline ...
28360 (streamer_read_tree_bitfields): ... here.
28361 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
28362 and properly add padding bits.
28363 (streamer_pack_tree_bitfields): Fold into ...
28364 (streamer_write_tree_bitfields): ... this new function,
28365 exposing the bitpack object.
28366 * lto-streamer-out.c (lto_write_tree_1): Call
28367 streamer_write_tree_bitfields.
28369 2015-02-09 Richard Biener <rguenther@suse.de>
28371 PR tree-optimization/54000
28372 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
28373 (struct ivopts_data): Add loop_loc member.
28374 (tree_ssa_iv_optimize_loop): Dump loop location.
28375 (create_new_ivs): Likewise, also dump number of IVs generated.
28377 2015-02-09 Martin Liska <mliska@suse.cz>
28379 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
28380 just if not yet registered.
28381 (ipa_icf_generate_summary): Register callgraph hooks.
28383 2015-02-08 Andrew Pinski <apinski@cavium.com>
28385 * config/aarch64/aarch64.c (gty_dummy): Delete.
28387 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28390 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
28391 (cgraph_node::local_p): Remove thunk related FIXME.
28393 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28396 * i386.c (ix86_function_regparm): Look through aliases to see if callee
28397 is local and optimized.
28398 (ix86_function_sseregparm): Likewise; also use target's SSE math
28399 settings; error out instead of silently generating wrong code
28401 (init_cumulative_args): Look through aliases.
28403 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28406 * ipa-split.c (execute_split_functions): Split if function has aliases.
28408 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
28411 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
28412 aliases before trying to expand it.
28413 (cgraph_node::expand_thunk): Fix formating.
28415 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
28417 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
28418 (Using Assembly Language with C): Expand introduction.
28419 (Basic Asm): Copy-edit. Add more information about uses of
28421 (Extended Asm): Copy-edit. Document new escape syntax and
28423 (Global Reg Vars): Copy-edit.
28424 (Local Reg Vars): Likewise.
28426 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
28430 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
28431 (DBX_CONTIN_CHAR): Define.
28433 2015-02-06 Sebastian Pop <s.pop@samsung.com>
28434 Brian Rzycki <b.rzycki@samsung.com>
28436 PR tree-optimization/64878
28437 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
28438 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
28439 Stop recursion at loop phi nodes after having visited a loop phi node.
28441 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28443 * toplev.c (process_options): Change flag_ipa_ra before creating
28444 optimization_{default,current}_node.
28447 * cgraphunit.c (cgraph_node::expand_thunk): If
28448 restype is not is_gimple_reg_type nor the thunk_fndecl
28449 returns aggregate_value_p, set restmp to a temporary variable
28450 instead of resdecl.
28452 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
28454 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
28456 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28459 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
28460 add a general secondary reload handler for SDmode, unless we have
28461 both read/write support for SDmode.
28463 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28465 PR middle-end/64937
28466 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
28467 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
28468 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
28469 1 before, push it to abstract_vec.
28470 (dwarf2out_abstract_function): Adjust caller. Don't call
28471 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
28472 DECL_ABSTRACT_P flags for all abstract_vec elts.
28474 2015-02-06 Renlin Li <renlin.li@arm.com>
28476 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
28478 * tree-ssa.c (execute_update_addresses_taken): Likewise.
28480 2015-02-06 Jeff Law <law@redhat.com>
28483 * config/h8300/h8300.c (push): New argument "in_prologue".
28484 Pass "in_prologue" along to "F".
28485 (h8300_push_pop): Corresponding changes.
28486 (h8300_expand_prologue): Likewise.
28487 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
28489 2015-02-06 Jakub Jelinek <jakub@redhat.com>
28491 PR rtl-optimization/64957
28493 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
28494 IOR rather than for AND.
28496 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
28499 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
28500 of shift-add and (add + shift) operations. Rename local variable.
28502 2015-02-05 Jeff Law <law@redhat.com>
28505 * config/h8300/constraints.md (U): Correctly dectect
28506 "eightbit_data" memory addresses.
28507 * config/h8300/h8300.c (eightbit_constant_address_p): Also
28508 handle (const (plus (symbol_ref (x)))) where x is declared
28509 as an 8-bit data memory address.
28510 * config/h8300/h8300.md (call, call_value): Correctly detect
28511 "funcvec" functions.
28514 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
28515 24 to 28 bits for the H8/300.
28517 2015-02-06 Alan Modra <amodra@gmail.com>
28520 * config/rs6000/rs6000.c (chain_already_loaded): New function.
28521 (rs6000_call_aix): Use it.
28523 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
28525 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
28528 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
28530 * config/h8300/constraints.md ("U" constraint): Use strict
28531 variant of REG_OK_FOR_BASE_P after reload has started.
28533 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
28535 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
28536 define to zero if !TARGET_NEON.
28537 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
28539 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28540 Trevor Saunders <tsaunders@mozilla.com>
28543 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
28545 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28548 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
28549 when removing varpool nodes.
28551 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28554 * varpool.c (varpool_node::remove): Fix order of variables.
28556 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28559 * ipa-inline.c (inline_small_functions): Fix ordering issue between
28560 speculation resolution and key updates.
28562 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28564 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
28565 about not letting any speculative edges unupdated.
28567 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28570 * gcov-io.c (gcov_var): Export.
28572 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28574 PR middle-end/64922
28575 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
28576 edges that become speculative.
28578 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28580 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
28581 or DW_LANG_Fortran08.
28582 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
28584 (gen_compile_unit_die): Handle "GNU Fortran2003" and
28585 "GNU Fortran2008" language strings.
28586 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
28587 * langhooks.h (lang_GNU_Fortran): New prototype.
28588 * langhooks.c (lang_GNU_Fortran): New function.
28589 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
28592 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28594 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
28595 (RTX_OK_FOR_OLO10_P): Likewise.
28597 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
28599 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
28601 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
28603 PR middle-end/64922
28604 * gimple.c: Include gimple-ssa.h.
28605 (maybe_remove_unused_call_args): New function.
28606 * gimple.h (maybe_remove_unused_call_args): Declare.
28607 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
28608 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
28609 * gimple-fold.c (gimple_fold_call): Likewise.
28611 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
28613 PR rtl-optimization/64905
28614 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
28615 pointer alignment if it isn't needed.
28617 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
28619 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
28620 cortex-a72.cortex-a53.
28621 * config/aarch64/aarch64-tune.md: Regenerate.
28622 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
28624 2015-02-04 Nick Clifton <nickc@redhat.com>
28626 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
28629 2015-02-04 Jakub Jelinek <jakub@redhat.com>
28631 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
28632 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
28633 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
28635 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
28636 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
28637 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
28638 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
28639 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
28640 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
28641 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
28642 * tree-core.h (enum built_in_function): In between
28643 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
28644 for builtins that use DEF_BUILTIN_CHKP macro.
28646 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
28649 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
28650 operands for tcc_comparison exprs. Fix typos.
28653 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
28654 of two XORs that have an intervening AND or IOR.
28657 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
28658 simplification of XOR of AND to not allocate new rtx before
28659 committing to a simplification.
28661 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28663 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
28664 manual swaps in all peepholes.
28666 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28668 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
28669 of manual swapping implementation.
28670 (aarch64_expand_vec_perm_const_1): Likewise.
28672 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
28674 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
28675 (generic_addrcost_table): Remove NAMED_PARAM.
28676 (cortexa57_addrcost_table): Likewise.
28677 (xgene1_addrcost_table): Likewise.
28678 (generic_regmove_table): Likewise.
28679 (cortexa53_regmove_table): Likewise.
28680 (xgene1_regmove_table): Likewise.
28681 (generic_vector_table): Likewise.
28682 (cortexa57_vector_table): Likewise.
28683 (xgene1_vector_table): Likewise.
28684 (generic_tunings): Likewise.
28685 (cortexa53_tunings): Likewise.
28686 (cortexa57_tunings): Likewise.
28687 (xgene1_tunings): Likewise.
28689 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
28691 * config/arm/arm-cores.def: Add cortex-a72 and
28692 cortex-a72.cortex-a53.
28693 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
28694 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
28695 * config/arm/arm-tune.md: Regenerate.
28696 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
28697 "cortex-a72.cortex-a53".
28698 * doc/invoke.texi (ARM Options/-mtune): Likewise.
28700 2015-02-04 Nick Clifton <nickc@redhat.com>
28703 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
28705 (nonimmediate_di_operand): Likewise.
28707 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
28708 prefixes of known F5 using MSP430 MCUs.
28710 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28712 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
28713 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
28714 instead of __builtin_sqrt.
28716 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
28718 * varasm.c (do_assemble_alias): Follow transparent alias
28720 (default_assemble_visibility): Follow transparent alias
28721 chain for decl name.
28723 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
28725 PR middle-end/62103
28726 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
28727 to compute size of referenced value in the constant case.
28729 2015-02-03 Jakub Jelinek <jakub@redhat.com>
28731 PR rtl-optimization/64756
28732 * cse.c (invalidate_dest): New function.
28733 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
28734 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
28735 invalidate and do not record it.
28737 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
28740 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
28741 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
28742 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
28743 atomic_nand<mode>_soft_tcb): New insns.
28744 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
28745 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
28746 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
28747 Split into atomic_not_fetchsi_hard if operands[0] is unused.
28748 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
28749 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28750 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
28751 atomic_not<mode>_hard if operands[0] is unused.
28752 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
28753 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
28754 if operands[0] is unused.
28755 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
28756 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
28757 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
28758 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28760 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
28761 into atomic_not<mode>_soft_tcb if operands[0] is unused.
28762 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
28763 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
28764 if operands[0] is unused.
28765 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
28766 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
28767 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
28768 atomic_nand_fetchsi_hard if operands[0] is unused.
28769 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
28770 atomic_nand<mode>_hard if operands[0] is unused.
28771 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
28772 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
28773 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
28774 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28775 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
28776 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
28777 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
28778 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
28779 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
28780 atomic_not<mode>_hard if operands[0] is unused.
28781 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
28782 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
28784 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
28785 into atomic_not<mode>_soft_tcb if operands[0] is unused.
28786 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
28787 atomic_nand<mode>_hard if operands[0] is unused.
28788 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
28789 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
28791 2015-02-03 David Malcolm <dmalcolm@redhat.com>
28794 * Makefile.in (GCC_OBJS): Add gcc-main.o.
28795 * gcc-main.c: New file, containing "main" taken from gcc.c.
28796 * gcc.c (do_self_spec): Free decoded_options.
28797 (class driver): Move declaration to gcc.h.
28798 (main): Move declaration and implementation to new file
28800 (driver_get_configure_time_options): New function.
28801 * gcc.h (class driver): Move this declaration here, from
28803 (driver_get_configure_time_options): New declaration.
28805 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
28807 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
28808 cross-module inlining.
28809 * cgraph.h (cgraph_node): Add flag merged.
28810 * ipa-icf.c (sem_function::merge): Maintain it.
28812 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
28814 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
28815 instead of OBJECT_P.
28817 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
28820 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
28821 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
28822 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
28823 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
28825 2015-02-03 Jakub Jelinek <jakub@redhat.com>
28828 * combine.c (reg_n_sets_max): New variable.
28829 (can_change_dest_mode, reg_nonzero_bits_for_combine,
28830 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
28831 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
28832 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
28833 (rest_of_handle_combine): Initialize reg_n_sets_max.
28835 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
28837 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
28838 if some always_inline was inlined, apply changes before inlining
28841 2015-02-02 David Malcolm <dmalcolm@redhat.com>
28844 * config/arm/arm.c (arm_option_override): Set
28845 arm_selected_arch/cpu/tune to NULL on entry.
28847 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
28848 Andrew Pinski <pinskia@gcc.gnu.org>
28849 Jakub Jelinek <jakub@gcc.gnu.org>
28852 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
28853 integer typing for small model. Use IN_RANGE.
28855 2015-02-02 Richard Biener <rguenther@suse.de>
28857 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
28858 * tree-vrp.c (vrp_valueize_1): Likewise.
28860 2015-02-02 Alan Modra <amodra@gmail.com>
28862 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
28863 than mem for toc_restore.
28864 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
28865 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
28866 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
28868 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
28871 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
28872 explicit default options.
28874 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
28877 * ipa-utils.c (ipa_merge_profiles): Add release argument.
28878 * ipa-icf.c (sem_function::merge): Do not release body when merging.
28879 * ipa-utils.h (ipa_merge_profiles): Update prototype.
28881 2015-02-01 Jakub Jelinek <jakub@redhat.com>
28884 * cfgexpand.c (deep_ter_debug_map): New variable.
28885 (avoid_deep_ter_for_debug): New function.
28886 (expand_debug_expr): If TERed SSA_NAME is in
28887 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
28888 instead of trying to expand SSA_NAME's def stmt.
28889 (expand_debug_locations): When expanding debug bind
28890 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
28891 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
28893 (pass_expand::execute): Call avoid_deep_ter_for_debug on
28894 all debug bind stmts. Delete deep_ter_debug_map after
28895 expand_debug_location if non-NULL and clear it.
28897 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
28900 * config/sh/sync.md (atomic_fetch_notsi_hard,
28901 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
28902 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
28903 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
28904 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
28905 atomic_not_fetch<mode>_soft_imask): New insns.
28907 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28909 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
28910 (rank_for_schedule_debug): Split from ...
28911 (rank_for_schedule): ... this.
28912 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
28913 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
28915 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
28917 * doc/md.texi (Machine Constraints): Alphabetize table by target.
28918 * doc/extend.texi (x86 Variable Attributes): Move section to
28919 correct alphabetization after renaming.
28920 (x86 Type Attributes): Likewise.
28921 (Target Builtins): Re-alphabetize menu.
28922 (x86 Built-in Functions): Move section to correct alphabetization
28924 (x86 transactional memory intrinsics): Likewise.
28925 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
28926 and x86 Windows Options in table and menu.
28927 (x86 Options): Move section to correct alphabetization after
28929 (x86 Windows Options): Likewise.
28931 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
28933 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
28934 preferred names of the architecture and its 32- and 64-bit
28936 * doc/invoke.texi: Likewise.
28937 * doc/md.texi: Likewise.
28939 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
28942 * config/i386/predicates.md (address_no_seg_operand): Reject
28943 non-CONST_INT_P operands in invalid mode.
28945 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
28947 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
28948 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
28949 * config/i386/predicates.md (address_no_seg_operand): Call
28950 address_operand with VOIDmode.
28951 (vsib_address_operand): Ditto.
28952 (address_mpx_no_base_operand): Ditto.
28953 (address_mpx_no_index_operand): Ditto.
28955 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
28958 * lra-constraints.c (original_subreg_reg_mode): New.
28959 (simplify_operand_subreg): Try to simplify subreg of const. Use
28960 original_subreg_reg_mode for it.
28961 (swap_operands): Update original_subreg_reg_mode.
28962 (curr_insn_transform): Set up original_subreg_reg_mode.
28964 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
28967 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
28969 (process_alt_operands): Use it.
28970 (curr_insn_transform): Check the optional reload pseudo class is
28973 2015-01-30 Joseph Myers <joseph@codesourcery.com>
28975 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
28976 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
28978 * toplev.h (init_asm_output): Update comment on use of
28979 UNKNOWN_LOCATION with fatal_error.
28980 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
28981 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
28982 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
28983 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
28984 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
28985 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
28986 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
28987 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
28988 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
28989 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
28990 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
28991 fatal_error changed to pass input_location as first argument.
28993 2015-01-30 Martin Liska <mliska@suse.cz>
28995 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
28996 in #pragma GCC diagnostic guards.
28998 2015-01-30 Richard Biener <rguenther@suse.de>
29000 PR tree-optimization/64829
29001 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29002 not add a widening conversion pattern but hand off extra
29003 widenings to callers.
29004 (vect_recog_widen_mult_pattern): Handle extra widening produced
29005 by vect_handle_widen_op_by_const.
29006 (vect_recog_widen_shift_pattern): Likewise.
29007 (vect_pattern_recog_1): Remove excess vertical space in dumping.
29008 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29009 (vect_init_vector_1): Likewise.
29010 (vect_get_vec_def_for_operand): Likewise.
29011 (vect_finish_stmt_generation): Likewise.
29012 (vectorizable_load): Likewise.
29013 (vect_analyze_stmt): Likewise.
29014 (vect_is_simple_use): Likewise.
29016 2015-01-29 Jeff Law <law@redhat.com>
29018 * combine.c (try_combine): Fix typo in comment.
29020 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
29023 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29024 (rs6000_stack_info): Add assert.
29025 (rs6000_output_savres_externs): New function, split off from...
29026 (rs6000_output_function_prologue): ... here. Do not call it for
29029 2015-01-29 Jeff Law <law@redhat.com>
29032 * combine.c (try_combine): If I0 is a memory load and I3 a store
29033 to a related address, increase the "goodness" of doing a 4-insn
29034 combination with I0-I3.
29035 (make_field_assignment): Handle SUBREGs in the ior+and case.
29037 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
29039 PR tree-optimization/64746
29040 * tree-if-conv.c (mask_exists): New function.
29041 (predicate_mem_writes): Save created mask with given size for further
29043 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29044 (ifcvt_repair_bool_pattern): Collect all statements that are root
29045 of bool pattern and use iterative algorithm to remove multiple uses
29046 of predicates, display number of required iterations.
29048 2015-01-29 Richard Biener <rguenther@suse.de>
29050 PR tree-optimization/64853
29051 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29052 stmt will get simulated again.
29053 * tree-ssa-ccp.c (valueize_op_1): Likewise.
29055 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29057 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29058 return_in_pc. Remove redundant assignments.
29059 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29060 (arm_expand_epilogue): Don't compare boolean with true in if condition.
29062 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
29064 * config/i386/i386.c (ix86_mode_after): Make static.
29066 2015-01-29 Richard Biener <rguenther@suse.de>
29068 PR tree-optimization/64844
29069 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29070 dump cost model analysis.
29071 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29072 Do not register adjusted load/store costs here.
29074 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29075 Uros Bizjak <ubizjak@gmail.com>
29077 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29078 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29079 using x86_use_pseudo_pic_reg.
29080 * config/i386/i386.c (ix86_conditional_register_usage): Remove
29081 support for fixed PIC register.
29082 (ix86_use_pseudo_pic_reg): Not static any more.
29084 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
29086 PR middle-end/64805
29087 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29088 to avoid error in cgraph node verification.
29090 2015-01-29 Marek Polacek <polacek@redhat.com>
29092 * doc/standards.texi: Reflect that the default for C is gnu11.
29094 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
29097 * reorg.c (switch_text_sections_between_p): New function.
29098 (relax_delay_slots): Call it when testing if the jump insn
29099 is removable. Use targetm.can_follow_jump when testing if
29100 the conditional branch can follow an unconditional jump.
29102 2015-01-27 Caroline Tice <cmtice@google.com>
29104 Committing VTV Cywin/Ming patch for Patrick Wollgast
29105 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29106 if -fvtable-verify=preinit/std is used.
29107 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29108 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29109 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29110 if -fvtable-verify=preinit/std is used.
29111 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29112 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29113 if -fvtable-verify=preinit/std is used.
29114 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29115 * config/i386/mingw32.h (LIB_SPEC): Likewise.
29116 * varasm.c (assemble_variable): Add code to properly set the comdat
29117 section and name for the .vtable_map_vars section in case the
29118 target is PE or COFF.
29120 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29123 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29124 make sane BB profile.
29125 (cgraph_node::expand_thunk): Make sane BB profile.
29126 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29127 * cgraph.h (init_lowered_empty_function): Update prototype.
29128 * config/i386/i386.c (make_resolver_func): Update call.
29129 * predict.c (gate): Disable branch prediction pass if
29130 profile is already there.
29132 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
29134 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29135 * opth-gen.awk: Likewise.
29136 * common.opt: Mark flag_fp_contract_mode as Optimization.
29138 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
29140 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29141 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29143 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
29146 * config/sh/predicates.md (atomic_arith_operand,
29147 atomic_logical_operand): Remove.
29148 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29149 (atomic_arith_operand_0): New predicate.
29150 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29151 Use atomic_arith_operand_0 for input values.
29152 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29153 atomic_compare_and_swap<mode>_soft_gusa,
29154 atomic_compare_and_swap<mode>_soft_tcb,
29155 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29156 arith_reg_operand instead of register_operand.
29157 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
29158 atomic_arith_operand_0 for newval input.
29159 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29160 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29161 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29162 arith_reg_operand instead of register_operand.
29163 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29164 fetchop_predicate_1, fetchop_constraint_1_llcs,
29165 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29166 fetchop_constraint_1_imask): New code iterator attributes.
29167 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29168 register_operand. Use fetchop_predicate_1.
29169 (atomic_fetch_<fetchop_name>si_hard,
29170 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29171 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29172 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29173 and arith_reg_operand instead of register_operand. Use
29174 fetchop_predicate_1, fetchop_constraint_1_gusa.
29175 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29176 and arith_reg_operand instead of register_operand. Use
29177 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
29179 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29180 and arith_reg_operand instead of register_operand. Use
29181 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
29183 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29184 register_operand. Use atomic_logical_operand_1.
29185 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29186 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29187 arith_reg_operand instead of register_operand.
29188 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29189 Use arith_reg_dest and arith_reg_operand instead of register_operand.
29190 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
29191 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29192 register_operand. Use fetchop_predicate_1.
29193 (atomic_<fetchop_name>_fetchsi_hard,
29194 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29195 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29196 fetchop_constraint_1_llcs.
29197 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29198 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29199 fetchop_constraint_1_gusa.
29200 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29201 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29202 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
29203 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29204 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
29205 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
29206 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29207 register_operand. Use atomic_logical_operand_1.
29208 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29209 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29210 arith_reg_operand instead of register_operand.
29211 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29212 arith_reg_operand instead of register_operand. Use logical_operand
29213 and K08. Adjust asm sequence to allow R0 usage.
29214 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29215 arith_reg_operand instead of register_operand. Use logical_operand
29218 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29221 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29222 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29223 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29224 only get_full_len HOST_WIDE_INTs from get_val () array rather than
29225 all bits in *val_wide.
29227 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
29229 * varpool.c (tls_model_names): Fix names.
29230 (varpool_node::dump): Dump tls- prefix for tls models.
29232 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
29233 Bernd Schmidt <bernds@codesourcery.com>
29234 Nathan Sidwell <nathan@codesourcery.com>
29236 * config/nvptx/mkoffload.c: New file.
29237 * config/nvptx/t-nvptx: Add build rules for it.
29238 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
29239 (extra_programs): Add mkoffload.
29240 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
29242 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
29244 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
29246 PR middle-end/64809
29247 * cfgexpand.c (reorder_operands): Skip debug gimples.
29249 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
29251 PR tree-optimization/64277
29252 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
29253 range info when possible to refine estimation.
29255 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29257 PR tree-optimization/64718
29258 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
29259 be a 16bit unsigned integer when n->range is 16.
29260 (bswap_replace): Convert src to that type if necessary for all bswap
29261 sizes. Fix rotation right notation in nearby comment. Use bswap_type
29262 set in pass_optimize_bswap::execute ().
29264 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
29266 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
29267 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
29268 integer and floating point variants.
29269 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
29271 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
29273 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
29274 for all vector modes.
29276 2015-01-28 Jakub Jelinek <jakub@redhat.com>
29279 * doc/sourcebuild.texi (comdat_group): Document.
29281 2015-01-28 Terry Guo <terry.guo@arm.com>
29283 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
29285 2015-01-27 David Malcolm <dmalcolm@redhat.com>
29287 * toplev.c (print_version): Add param "show_global_state", and
29288 only print GGC and plugin information if it is true.
29289 (init_asm_output): Pass in "true" for the new param when calling
29291 (process_options): Likewise.
29292 (toplev::main): Likewise.
29293 * toplev.h (print_version): Add new param to decl.
29295 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29299 * tree.c (lookup_binfo_at_offset): New function.
29300 (get_binfo_at_offset): Use it.
29302 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
29305 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
29306 on vtable being vtable.
29308 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
29310 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
29311 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
29312 -mhotpatch= option.
29313 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
29314 -mno-hotpatch options. Change syntax of -mhotpatch= option.
29315 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
29317 (s390_hotpatch_trampoline_halfwords_max): Renamed.
29318 (s390_hotpatch_hw_max): New name.
29319 (s390_hotpatch_trampoline_halfwords): Renamed.
29320 (s390_hotpatch_hw_before_label): New name.
29321 (get_hotpatch_attribute): Removed.
29322 (s390_hotpatch_hw_after_label): New name.
29323 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
29325 (s390_attribute_table): Ditto.
29326 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
29327 (s390_function_num_hotpatch_hw): New name.
29328 Remove special handling of inline functions and hotpatching.
29329 Return number of nops before and after the function label.
29330 (s390_can_inline_p): Removed.
29331 (s390_asm_output_function_label): Emit a configurable number of nops
29332 after the function label.
29333 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
29334 (TARGET_CAN_INLINE_P) Removed.
29335 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
29337 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29338 Jiong Wang <jiong.wang@arm.com>
29340 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
29342 (cb<optab><mode>1): Likewise.
29343 * config/aarch64/iterators.md (bcond): New define_code_attr.
29345 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29347 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
29350 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29352 * config/s390/s390.c (s390_register_move_cost): Increase costs for
29355 2015-01-27 Richard Biener <rguenther@suse.de>
29357 * tree-vrp.c (update_value_range): Intersect the range with
29358 old recorded SSA name range information.
29360 2015-01-27 Nick Clifton <nickc@redhat.com>
29362 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
29363 BC, DE and HL registers directly, not via AX.
29364 When decrementing the stack pointer by a large amount, transfer SP
29365 into AX and perform the subtraction there.
29366 (rl78_expand_epilogue): Perform the inverse of the above
29369 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29371 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
29373 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29374 Yury Gribov <y.gribov@samsung.com>
29377 * ubsan.c (ubsan_source_location): Refactor code.
29378 (ubsan_type_descriptor): Update type size. Refactor code.
29380 2015-01-27 Richard Biener <rguenther@suse.de>
29382 PR tree-optimization/56273
29383 PR tree-optimization/59124
29384 PR tree-optimization/64277
29385 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
29386 from the first VRP pass.
29388 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29391 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
29392 handle the first argument in the same loop as all the other arguments.
29394 PR rtl-optimization/61058
29395 * jump.c (cleanup_barriers): Update basic block boundaries
29396 if BLOCK_FOR_INSN is non-NULL on PREV.
29398 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
29400 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
29401 bounds narrowing, already instrumented calls and calls to
29402 not instrumentable functions.
29404 2015-01-27 Jakub Jelinek <jakub@redhat.com>
29406 PR tree-optimization/64807
29407 * wide-int.cc (wi::divmod_internal): Clear
29408 b_dividend[dividend_blocks_needed].
29410 2015-01-26 DJ Delorie <dj@redhat.com>
29412 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
29413 volatile memory references.
29415 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
29418 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
29420 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
29421 shifts if it already fits into K08.
29423 2015-01-26 Jakub Jelinek <jakub@redhat.com>
29426 * ipa-inline.c (inline_small_functions): Print "unknown" even
29427 if edge->call_stmt is non-NULL, but has builtins or unknown
29430 PR middle-end/64421
29431 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
29432 with asterisk, skip the first character.
29434 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
29437 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
29440 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
29443 * config/i386/i386.md (*movdi_internal): Also check operand 0
29444 to determine TYPE_LEA operand.
29445 (*movsi_internal): Ditto.
29447 2015-01-26 Jakub Jelinek <jakub@redhat.com>
29449 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
29450 OPTION_MASK_QUAD_MEMORY_ATOMIC.
29452 2015-01-26 Renlin Li <renlin.li@arm.com>
29454 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
29456 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
29459 2015-01-26 Richard Biener <rguenther@suse.de>
29461 PR middle-end/64764
29462 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
29463 combining two BIT_AND_EXPR predicates.
29465 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
29468 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
29470 2015-01-26 Terry Guo <terry.guo@arm.com>
29472 * config/arm/arm.c (arm_file_start): Update the assignment of
29473 Tag_ABI_HardFP_use.
29475 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
29477 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
29479 config/arm/arm.md: Include the new Cortex-A57 model.
29480 (generic_sched): Don't use generic_sched when tuning for
29483 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
29484 Uros Bizjak <ubizjak@gmail.com>
29486 * config/i386/i386.c (get_builtin_code_for_version): Add
29487 support for BMI and BMI2 multiversion functions.
29489 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29491 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
29492 (extract_bit_field): Likewise.
29493 (extract_low_bits): Likewise.
29494 (expand_mult): Likewise.
29495 (expand_mult_highpart_adjust): Likewise.
29497 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
29499 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
29500 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
29501 * config/i386/i386.c (processor_model): Add
29502 M_INTEL_COREI7_BROADWELL.
29503 (arch_names_table): Add "broadwell".
29505 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
29514 * config/sh/sh-protos.h
29515 (sh_extending_set_of_reg::can_use_as_unextended_reg,
29516 sh_extending_set_of_reg::use_as_unextended_reg,
29517 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
29518 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
29519 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
29520 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
29521 (sh_treg_insns): New class.
29522 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
29523 (scope_counter): New class.
29524 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
29525 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
29526 sh_extending_set_of_reg::can_use_as_unextended_reg,
29527 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
29528 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
29529 sh_split_treg_set_expr): New functions.
29530 (addsubcosts): Handle treg_set_expr.
29531 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
29532 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
29533 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
29534 (sh_insn_operands_modified_between_p): Make non-static.
29535 * config/sh/predicates.md (zero_extend_movu_operand): Allow
29536 simple_mem_operand in addition to displacement_mem_operand.
29537 (zero_extend_operand): Don't allow zero_extend_movu_operand.
29538 (treg_set_expr, treg_set_expr_not_const01,
29539 arith_reg_or_treg_set_expr): New predicates.
29540 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
29541 arith_or_int_operand instead of logical_operand. Convert to
29542 insn_and_split. Try to optimize constant operand in splitter.
29543 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
29544 (*tstqi_t_zero): Delete.
29545 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
29546 (tstsi_t_and_not): Delete.
29547 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
29548 Convert to insn_and_split.
29549 (unnamed split, tstsi_t_zero_extract_xor,
29550 tstsi_t_zero_extract_subreg_xor_little,
29551 tstsi_t_zero_extract_subreg_xor_big): Delete.
29552 (*tstsi_t_shift_mask): New insn_and_split.
29553 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
29554 to recombine with surrounding insns when splitting.
29555 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
29556 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
29557 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
29558 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
29559 (*cbranch_div0s: Delete.
29560 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29561 Try to recombine with surrounding insns when splitting. Add operand
29563 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
29564 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
29565 *addc_r_r_msb, *addc_2r_msb): Delete.
29566 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
29568 (*addc_negreg_t): New insn_and_split.
29569 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
29570 Try to recombine with surrounding insns when splitting.
29571 Add operand order variants.
29572 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
29573 insn_and_split patterns.
29574 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
29575 surrounding insns when splitting.
29576 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
29577 (*rotcl): Likewise. Add zero_extract variant.
29578 (*ashrsi2_31): New insn_and_split.
29579 (*negc): Convert to insn_and_split. Use treg_set_expr.
29580 (*zero_extend<mode>si2_disp_mem): Update comment.
29581 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
29583 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
29584 with surrounding insns when splitting.
29585 (any_treg_expr_to_reg): New insn_and_split.
29586 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
29587 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
29588 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
29589 *zero_extract_2): New single bit zero extract patterns.
29590 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
29591 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
29592 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
29593 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
29595 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
29596 register_operand for set source.
29598 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
29600 * i386.opt (prefetch_sse): New targetsave.
29601 * i386.c (ix86_function_specific_save): Save prefetch_sse.
29602 (ix86_function_specific_restore): Restore prefetch_sse and initialize
29603 ix86_cost/ix86_tune_cost.
29605 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29607 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
29608 Support the JIT by using 0 as the language type.
29610 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
29613 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
29614 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
29615 (mark_regno_live, process_bb_lives): Pass new parameter value to
29616 make_hard_regno_born.
29618 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29620 PR rtl-optimization/63637
29621 PR rtl-optimization/60663
29622 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
29623 if elt->cost is MAX_COST for ASM_OPERANDS.
29624 (find_sets_in_insn): Fix up comment typo.
29625 (cse_insn): Don't set src_volatile for all non-volatile
29626 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
29627 or with "memory" clobber. Set elt->cost to MAX_COST
29628 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
29629 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
29631 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
29633 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
29636 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
29638 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
29639 libgcc/config/i386/elf-lib.h.
29641 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29644 * gcc.c (print_configuration): Don't print a blank line at the end
29646 (run_attempt): ... but here unstead.
29648 PR middle-end/64734
29649 * omp-low.c (scan_sharing_clauses): Don't ignore
29650 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
29651 on target data/update constructs.
29653 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
29656 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
29657 (DEBUG_RELOAD): Removed define.
29658 (m32c_limit_reload_class): Enable traces with if DEBUG0.
29659 (m32c_function_arg): Added a type cast.
29660 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
29661 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
29662 * config/m32c/bitops.md (andqi3_16): Likewise.
29663 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
29664 (push_a01_l): Likewise.
29666 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29669 * main.c (main): Construct toplev instances with init_signals=true.
29670 * toplev.c (general_init): Add param "init_signals", and use it to
29671 conditionalize the calls to signal and host_hooks.extra_signals.
29672 (toplev::toplev): Add param "init_signals".
29673 (toplev::main): When invoking general_init, pass m_init_signals
29674 to control whether signal-handlers are installed.
29675 * toplev.h (toplev::toplev): Add param "init_signals".
29676 (toplev::m_init_signals): New field.
29678 2015-01-23 David Malcolm <dmalcolm@redhat.com>
29681 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
29682 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
29683 latter may be affected by the former (e.g. on i686).
29685 2015-01-23 Martin Liska <mliska@suse.cz>
29687 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
29688 false positive during profiledbootstrap.
29690 2015-01-23 Tom de Vries <tom@codesourcery.com>
29693 * lto-opts.c (lto_write_options): Output non-explicit conservative
29695 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
29696 (append_compiler_options): Pass -fopenacc through.
29698 2015-01-23 Tom de Vries <tom@codesourcery.com>
29701 * lto-opts.c (lto_write_options): Output non-explicit conservative
29703 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
29704 (append_compiler_options): Pass -fopenmp through.
29706 2015-01-23 Jakub Jelinek <jakub@redhat.com>
29709 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
29712 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
29713 * diagnostic.def (DK_ICE_NOBT): New kind.
29714 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
29715 like DK_ICE, but never print backtrace.
29716 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
29717 (internal_error_no_backtrace): New function.
29718 * gcc.c (execute): Use internal_error_no_backtrace instead of
29721 2015-01-22 Jeff Law <law@redhat.com>
29724 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
29725 improve code density for small immediate to memory case.
29726 (insv): Better handle bitfield assignments when the field is
29727 being set to all ones.
29728 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
29731 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29732 Jakub Jelinek <jakub@redhat.com>
29734 PR middle-end/64729
29735 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
29736 for !TARGET_LIBC_PROVIDES_SSP version and
29737 -fstack-protector-{all,strong,explicit} otherwise.
29738 * config/freebsd.h (LINK_SSP_SPEC): Handle
29739 -fstack-protector-{strong,explicit}.
29741 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
29742 H.J. Lu <hongjiu.lu@intel.com>
29745 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
29748 2015-01-22 Wei Mi <wmi@google.com>
29750 PR rtl-optimization/64557
29751 * dse.c (record_store): Call get_addr for mem_addr.
29752 (check_mem_read_rtx): Likewise.
29754 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
29756 * fold-const.c (const_binop): Add early return for non-tcc_binary.
29758 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
29760 * toplev.c (init_local_tick): Process the failure when read
29761 fails for random_seed.
29763 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
29764 'pretty_name' to avoid memory overflow.
29766 2015-01-22 Richard Biener <rguenther@suse.de>
29768 PR middle-end/64728
29769 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
29770 abnormal coalescing on undefined SSA names.
29772 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
29776 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
29778 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
29780 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
29782 PR middle-end/63325
29783 * fold-const.c (fold_checksum_tree): Don't include value of
29784 expr->decl_with_vis.symtab_node in the checksum.
29786 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29788 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
29790 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
29793 * gcc.c (insert_comments): New function.
29794 (try_generate_repro): Call it.
29795 (append_text): Removed.
29797 2015-01-22 Richard Biener <rguenther@suse.de>
29799 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
29800 with IL incompatible options. Properly honor user optimize
29803 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
29805 PR rtl-optimization/64682
29806 * combine.c (distribute_notes): When moving a death note for
29807 a register that is set in the new I2, make sure to put it
29808 before that new I2.
29810 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
29812 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
29813 not TARGET_DEFAULT.
29815 2015-01-21 Jakub Jelinek <jakub@redhat.com>
29818 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
29819 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
29820 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
29823 * doc/invoke.texi (-fsanitize=vptr): Document.
29825 PR rtl-optimization/62078
29826 * dse.c: Include cfgcleanup.h.
29827 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
29828 anything call purge_all_dead_edges and cleanup_cfg at the end
29831 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
29833 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
29836 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
29838 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
29841 2015-01-21 David Sherwood <david.sherwood@arm.com>
29842 Tejas Belagod <Tejas.Belagod@arm.com>
29844 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
29845 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
29846 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
29849 2015-01-21 David Sherwood <david.sherwood@arm.com>
29850 Tejas Belagod <Tejas.Belagod@arm.com>
29852 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
29853 (aarch64_reverse_mask): New decls.
29854 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
29855 (insn_count): New mode_attr.
29856 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
29857 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
29858 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
29859 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
29860 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
29861 (aarch64_simd_st4): New patterns.
29862 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
29863 (aarch64_reverse_mask): New functions.
29865 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
29867 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
29869 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
29870 addressing modes for BE.
29871 (aarch64_print_operand): Add 'R' specifier.
29872 (aarch64_simd_disambiguate_copy): Delete.
29873 (aarch64_simd_emit_reg_reg_move): New function.
29874 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
29875 in define_splits for structural moves.
29876 (mov<mode>): Use less restrictive predicates.
29877 (*aarch64_mov<mode>): Simplify and only allow for LE.
29878 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
29880 2015-01-21 Alan Hayward <alan.hayward@arm.com>
29882 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
29884 2015-01-21 Richard Henderson <rth@redhat.com>
29887 * ccmp.c (used_in_cond_stmt_p): Remove.
29888 (expand_ccmp_expr): Don't use it.
29890 2015-01-21 Nick Clifton <nickc@redhat.com>
29892 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
29895 2015-01-21 Richard Biener <rguenther@suse.de>
29897 PR middle-end/64313
29898 * tree-core.h (builtin_info, builtin_info_type): Turn from
29899 an object with two arrays into an array of an object with
29900 decl and two flags, implicit_p and declared_p.
29901 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
29902 set_builtin_decl, set_builtin_decl_implicit_p,
29903 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
29904 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
29905 * builtins.c (builtin_info): Adjust.
29906 * gimplify.c (gimplify_addr_expr): References to builtins
29907 that have been declared by the user makes them eligible for
29908 use by the compiler. Call set_builtin_decl_implicit_p on them.
29910 2015-01-20 Jeff Law <law@redhat.com>
29913 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
29914 allow pc-relative addresses in operand predicates or constraints.
29916 2015-01-21 Bin Cheng <bin.cheng@arm.com>
29918 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
29919 neon on aarch32 processors for stringops.
29921 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29924 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
29926 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
29929 * ipa-inline.c: Include lto-streamer.h
29930 (report_inline_failed_reason): Output source file differences and
29931 flags on optimization/target node mismatch.
29932 (can_inline_edge_p): Consider caller to be the outer inline function;
29933 be less restrictive about matching opimize and optimize_size attributes.
29934 (inline_account_function_p): Break out from ...
29935 (inline_small_functions): ... here.
29936 * ipa-inline-transform.c (clone_inlined_nodes): Use
29937 inline_account_function_p.
29938 (inline_call): Use optimize attribution; use inline_account_function_p.
29939 (inline_transform): Use opt_for_fn.
29940 * ipa-inline.h (inline_account_function_p): Declare.
29942 2015-01-20 Jakub Jelinek <jakub@redhat.com>
29945 * dwarf2out.c (decl_piece_node): Don't put bitsize into
29946 mode if bitsize <= 0.
29947 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
29948 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
29949 sizes and positions.
29951 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
29953 * config/nios2/nios2.c (nios2_asm_file_end): Implement
29954 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
29956 (TARGET_ASM_FILE_END): Define.
29958 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29960 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
29961 (struct tune_params): Use the enum.
29962 * arm.c (arm_*_tune): Update.
29963 (arm_option_override): Update.
29965 2015-01-20 Richard Biener <rguenther@suse.de>
29968 * ipa-reference.c (add_static_var): Inline ...
29969 (analyze_function): ... here after splitting out from ...
29970 (is_proper_for_analysis): ... this.
29972 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
29975 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
29976 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
29977 replace the conditional with it's true branch.
29978 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
29979 (arm_lra_p): Remove.
29981 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
29983 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
29985 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29987 * config/tilegx/mul-tables.c: Move symtab.h include after
29988 coretypes.h include.
29989 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
29990 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
29991 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
29992 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
29993 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
29995 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
29999 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30001 PR rtl-optimization/64081
30002 * loop-iv.c (def_pred_latch_p): New function.
30003 (latch_dominating_def): Allow specific cases with non-single
30005 (iv_get_reaching_def): Likewise.
30006 (check_complex_exit_p): New function.
30007 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30008 with exits not executing on any iteration.
30010 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30013 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30014 to set branch cost.
30016 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30019 * i386.c (gate): Check flag_expensive_optimizations and
30021 (ix86_option_override_internal): Drop optimize_size condition
30022 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30023 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30024 MASK_PREFER_AVX128.
30025 (ix86_avx256_split_vector_move_misalign,
30026 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30027 * sse.md (all uses of TARGET_PREFER_AVX128): Add
30028 optimize_insn_for_speed_p check.
30030 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
30032 * config/mips/mips.h (FP_ASM_SPEC): New define.
30033 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30036 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
30039 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30040 nullptr for insn when reaching the first insn.
30041 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30042 (sh_insn_operands_modified_between_p): Add nullptr check.
30043 (sh_find_extending_set_of_reg): Fix log message. Don't accept
30044 sign extending mem load if the insn contains any UNSPEC or
30047 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30049 * params.def (inline-unit-growth): Drop to 15%.
30050 * invoke.texi (inline-unit-growth): Document change.
30052 2015-01-19 Martin Liska <mliska@suse.cz>
30055 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30056 function for second argument of OBJ_TYPE_REF.
30058 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30061 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30062 whether function is an alias.
30064 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30066 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30069 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
30071 PR rtl-optimization/64671
30072 * lra-remat.c (operand_to_remat): Don't consider jump and call
30075 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
30078 * config/rs6000/default64.h: Include rs6000-cpus.def.
30079 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30080 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30081 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30083 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30085 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30086 pseudo-op to specify assembler dialect.
30088 2015-01-19 Martin Liska <mliska@suse.cz>
30091 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30092 Handle safe potentially removed nodes during filtering.
30094 2015-01-19 Martin Liska <mliska@suse.cz>
30096 * doc/extend.texi (no_icf): Add new attribute description.
30097 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30098 where the pass attempts to merge a function with no_icf attribute.
30100 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30103 * doc/md.texi (ARM Options): Document register constraints.
30105 2015-01-19 Jiong Wang <jiong.wang@arm.com>
30106 Andrew Pinski <apinski@cavium.com>
30109 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30110 (ashl<mode>3): Don't expand if operands[2] is not constant.
30112 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30115 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30116 Match xor-and-xor RTL pattern.
30118 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
30120 PR rtl-optimization/64081
30121 * loop-iv.c (def_pred_latch_p): New function.
30122 (latch_dominating_def): Allow specific cases with non-single
30124 (iv_get_reaching_def): Likewise.
30125 (check_complex_exit_p): New function.
30126 (check_simple_exit): Use check_complex_exit_p to allow certain cases
30127 with exits not executing on any iteration.
30129 2015-01-19 Jakub Jelinek <jakub@redhat.com>
30131 * common.opt (fgraphite): Fix a typo.
30133 2015-01-19 Felix Yang <felix.yang@huawei.com>
30135 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30137 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30138 uminp, smax_nanp, smin_nanp): New builtins.
30139 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30140 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30141 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30142 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30143 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30144 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30145 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30146 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30147 vpminnms_f32): Rewrite using builtin functions.
30149 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
30152 * omp-low.c (offload_symbol_decl): Remove variable.
30153 (get_offload_symbol_decl): Remove function.
30154 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30155 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30156 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30157 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30158 BUILT_IN_GOACC_UPDATE don't pass it at all.
30160 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30162 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30165 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
30167 * ipa-chkp.c (chkp_produce_thunks): Add early param
30168 to split thunks production into two passes. Keep
30169 'always_inline' function bodies after the first pass.
30170 (pass_data_ipa_chkp_early_produce_thunks): New.
30171 (pass_ipa_chkp_early_produce_thunks): New.
30172 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30173 chkp_produce_thunks signature.
30174 (make_pass_ipa_chkp_early_produce_thunks): New.
30175 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30176 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30177 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30179 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30181 * cgraph.c (cgraph_node::dump): Dump profile flags.
30183 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
30186 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30187 reg appear first in the parallel.
30189 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30191 * ipa-reference.c (set_reference_optimization_summary,
30192 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30194 (ignore_module_statics): New static var.
30195 (propagate_bits): If ipa-reference is disabled, do not look into local
30197 (analyze_function): Disable analysis when ipa_reference is disabled.
30198 (generate_summary): Do not dump when reference is disabled;
30199 collect vars accessed from functions with ipa-reference disabled.
30200 (get_read_write_all_from_node): When ipa-reference is disabled, use the
30202 (gate): Enable for LTO.
30203 (ignore_edge_p): New function.
30204 (propagate): Skip functions w/o ipa-reference analysis.
30205 * optc-save-gen.awk: Handle optimize_debug correctly.
30206 * opth-gen.awk: Likewise.
30207 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30208 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30209 fira-share-save-slots, fira-share-spill-slots,
30210 fmodulo-sched-allow-regmoves, fpartial-inlining,
30211 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30212 ftracer, ftree-parallelize-loops, fassociative-math,
30213 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30215 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30216 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30218 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30221 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
30224 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30226 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30228 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
30230 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
30231 Remove duplicate option listings.
30233 2015-01-18 Felix Yang <felix.yang@huawei.com>
30235 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
30236 (autofdo_source_profile::get_callsite_total_count,
30237 function_instance::get_function_instance_by_decl,
30238 string_table::get_index, string_table::get_index_by_decl,
30239 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
30240 Fix comment typos. Reformatting and minor code rearrangement.
30242 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30244 * config/rs6000/rs6000.md (probe_stack): Delete.
30245 (probe_stack_address): New.
30247 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30249 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
30250 to test for 32-bit ABIs, not !TARGET_POWERPC64.
30252 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30254 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
30255 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
30256 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
30258 (rs6000_libcall_value): Use the new function.
30260 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
30262 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
30264 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
30266 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
30267 implement a more precise life analysis for it during backward scan.
30269 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
30271 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
30273 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
30275 PR rtl-optimization/52773
30276 * calls.c (emit_library_call_value): When pushing arguments use
30277 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
30278 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
30279 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
30281 2015-01-17 Jeff Law <law@redhat.com>
30283 PR rtl-optimization/32790
30284 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
30285 not ZERO_EXTEND in SET_DESTs.
30287 2015-01-17 Alan Modra <amodra@gmail.com>
30289 * cprop.c (do_local_cprop): Revert last change.
30291 2015-01-16 DJ Delorie <dj@redhat.com>
30292 Nick Clifton <nickc@redhat.com>
30294 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
30295 (addhi3_real): Likewise. Fix [HL+0] syntax.
30296 (subqi3_real): Likewise.
30297 (subhi3_real): Likewise.
30298 (cbranchqi4_real): Likewise. Allow saddr,#imm.
30299 (cbranchhi4_real): Likewise.
30300 (cbranchhi4_real_inverted): Likewise.
30301 (cbranchsi4_real_lt): Likewise.
30302 (cbranchsi4_real_ge): Likewise.
30303 (cbranchsi4_real_ge): Likewise.
30304 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
30305 (sub<mode>3_virt): Likewise.
30306 (cbranchqi4_virt): Likewise.
30307 (cbranchhi4_virt): Likewise.
30308 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
30309 always use '[reg+imm]' even when imm is zero.
30310 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
30311 (rl78_general_operand): New.
30312 (rl78_nonimmediate_operand): New.
30313 (rl78_nonfar_operand): Use them.
30314 (rl78_nonfar_nonimm_operand): Likewise.
30315 (rl78_stack_based_mem): Fix.
30316 * config/rl78/constraints.md (Ibqi): New.
30321 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
30322 (iorqi3): Likewise.
30323 (xorqi3): Likewise.
30324 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
30326 * config/rl78/constrains (Qs8): New constraint.
30327 * config/rl78/rl78.c (rl78_flags_already_set): New function.
30328 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
30329 * config/rl78/rl78-real.md (update_Z): New attribute.
30330 Update patterns to set it.
30331 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
30332 shorter compare and branch sequence can be used.
30333 (cbranchhi4_real): Likewise.
30334 (cbranchhi4_real_inverted): Likewise.
30336 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
30337 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
30339 * config/rl78/rl78.c (rl78_get_name_encoding): New.
30340 (rl78_option_override): Allow -mes0 only if C.
30341 (characterize_address): Support subregs of symbol_refs.
30342 (rl78_addr_space_address_mode): Move. Add __near.
30343 (rl78_far_p): Likewise.
30344 (rl78_addr_space_pointer_mode): Likewise.
30345 (rl78_as_legitimate_address): Likewise.
30346 (rl78_addr_space_subset_p): Likewise.
30347 (rl78_addr_space_convert): Likewise.
30348 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
30349 symbols with -mes0.
30350 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
30352 (rl78_alloc_physical_registers_op1): Change logic to prefer
30353 symbol[BC] addressing.
30354 (frodata_section): New.
30355 (rl78_asm_init_sections): Initialize it.
30356 (rl78_select_section): Put __far readonly symbols in .frodata.
30357 (rl78_make_type_far): New.
30358 (rl78_insert_attributes): Force all readonly symbols to be
30360 (rl78_asm_out_integer): New.
30361 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
30362 * config/rl78/rl78.opt (-mes0): New.
30364 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
30365 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
30366 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
30367 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
30368 (rl78_saddr_p): New.
30369 (rl78_output_aligned_common): New.
30370 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
30371 (rl78_handle_saddr_attribute): New.
30372 (rl78_handle_naked_attribute): New.
30373 (rl78_attribute_table): Add saddr.
30374 (rl78_print_operand_1): Don't print '!' on saddr operands.
30375 (rl78_print_operand_1): Strip encodings.
30377 (rl78_strip_name_encoding): New.
30378 (rl78_attrlist_to_encoding): New.
30379 (rl78_encode_section_info): New.
30380 (rl78_asm_init_sections): New.
30381 (rl78_select_section): New.
30382 (rl78_output_labelref): New.
30383 (rl78_output_aligned_common): New.
30384 (rl78_asm_out_integer): New.
30385 (rl78_asm_ctor_dtor): New.
30386 (rl78_asm_constructor): New.
30387 (rl78_asm_destructor): New.
30389 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
30390 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
30391 (transcode_memory_rtx): Update.
30392 (rl78_expand_epilogue): Use A_REG instead of 0.
30394 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30396 * config/arm/arm-protos.h (struct tune_params): New field
30397 sched_autopref_queue_depth.
30398 * config/arm/arm.c (sched-int.h): Include header.
30399 (arm_first_cycle_multipass_dfa_lookahead_guard,)
30400 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
30401 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
30402 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
30403 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
30404 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
30405 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
30406 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
30407 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
30408 * config/arm/t-arm (arm.o): Update.
30409 * haifa-sched.c (update_insn_after_change): Update.
30410 (rank_for_schedule): Use auto-prefetcher model, if requested.
30411 (autopref_multipass_init): New static function.
30412 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
30413 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
30414 variable for debug dumps.
30415 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
30416 (autopref_multipass_dfa_lookahead_guard): New global function that
30417 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
30418 (init_h_i_d): Update.
30419 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
30420 * sched-int.h (enum autopref_multipass_data_status): New const enum.
30421 (autopref_multipass_data_): Structure for auto-prefetcher data.
30422 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
30423 (struct _haifa_insn_data:autopref_multipass_data): New field.
30424 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
30425 (autopref_multipass_dfa_lookahead_guard): Declare.
30427 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30429 * rtlanal.c (get_base_term): Handle SCRATCH.
30431 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30433 * config/aarch64/aarch64.c
30434 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
30435 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30437 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
30438 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
30440 2015-01-17 Alan Modra <amodra@gmail.com>
30442 * cprop.c (do_local_cprop): Disallow replacement of fixed
30445 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30448 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
30451 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
30453 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
30454 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
30456 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30458 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
30459 * config/arm/thumb1.md: ... Here.
30461 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30463 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
30464 TImode for TARGET_32BIT.
30466 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30468 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
30469 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
30471 (rs6000_abi_word_mode): New function.
30473 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30475 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
30476 instead of UNITS_PER_WORD to describe the size of stack slots.
30478 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30480 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
30481 as rs6000_promote_function_mode. Move comment to there.
30482 (rs6000_promote_function_mode): New function.
30484 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
30486 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
30487 -mpowerpc64 is active.
30489 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30491 PR middle-end/64353
30492 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
30495 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30497 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
30498 introduced in revision 219724.
30500 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30501 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30504 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
30505 destination is not a GP reg.
30506 (*movdi_aarch64): Likewise.
30508 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
30511 * config/rs6000/default64.h: Revert ISA change.
30513 2015-01-16 Richard Biener <rguenther@suse.de>
30515 PR middle-end/64614
30516 * tree-ssa-uninit.c: Include tree-cfg.h.
30517 (MAX_SWITCH_CASES): New define.
30518 (convert_control_dep_chain_into_preds): Handle switch statements.
30519 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
30520 (normalize_one_pred_1): Do not split bit-manipulations.
30523 2015-01-16 Richard Biener <rguenther@suse.de>
30525 PR tree-optimization/64568
30526 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
30527 complex load rewriting for TARGET_MEM_REFs.
30529 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
30531 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
30533 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
30536 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
30538 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
30539 (aarch64_lra_p): Remove.
30541 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30544 * ipa-chkp.h (chkp_instrumentable_p): New.
30545 * ipa-chkp.c: Include tree-inline.h.
30546 (chkp_instrumentable_p): New.
30547 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
30548 Fix processing of not instrumentable functions.
30549 (chkp_versioning): Use chkp_instrumentable_p. Warn about
30550 not instrumentable functions.
30551 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
30552 chkp_instrumentable_p.
30553 * tree-inline.h (copy_forbidden): New.
30554 * tree-inline.c (copy_forbidden): Not static anymore.
30556 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30558 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
30561 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30563 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
30564 type OP_OUT to OP_INOUT.
30566 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
30568 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
30569 (high x) y) to y if x and y have the same base.
30571 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
30573 * config/arm/cortex-a57.md: New.
30574 * config/aarch64/aarch64.md: Include it.
30575 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
30576 * config/aarch64/aarch64-tune.md: Regenerate.
30578 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
30581 * ccmp.c (expand_ccmp_next): New function.
30582 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
30583 and compare insn sequence.
30584 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
30585 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
30586 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
30587 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
30588 (*ccmp_ior): Changed to ccmp_ior<mode>.
30589 (cmp<mode>): New pattern.
30590 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
30592 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
30594 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
30596 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
30597 _mm256_bsrli_epi128): New.
30598 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
30600 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30602 * expmed.c (store_bit_field_using_insv): Improve warning message.
30603 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
30605 2015-01-15 Jiong Wang <jiong.wang@arm.com>
30607 PR rtl-optimization/64011
30608 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
30609 there is partial overflow.
30611 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30613 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
30615 (nds32_expand_epilogue_v3pop): Likewise.
30616 * config/nds32/nds32.md (sibcall): Define this for sibling call
30618 (sibcall_register): Likewise.
30619 (sibcall_immediate): Likewise.
30620 (sibcall_value): Likewise.
30621 (sibcall_value_register): Likewise.
30622 (sibcall_value_immediate): Likewise.
30623 (sibcall_epilogue): Likewise.
30624 (epilogue): Pass false to indicate this is not a sibcall epilogue.
30625 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
30626 (nds32_expand_epilogue_v3pop): Likewise.
30628 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30630 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
30631 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
30632 (return_internal): New.
30633 (return): Define this named pattern.
30634 (simple_return): Define this named pattern.
30635 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
30636 pattern instead of unspec_volatile_func_return.
30637 (nds32_expand_epilogue_v3pop): Likewise.
30638 (nds32_can_use_return_insn): New function.
30640 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30642 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
30643 * config/nds32/nds32.md (pop25return): New.
30644 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
30645 pop25return pattern.
30647 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30649 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
30650 -mforbid-fp-as-gp, and -mex9 options.
30652 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
30654 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
30655 remove -mgp-direct option.
30657 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30659 * doc/invoke.texi (--param early-inlining-insns): Update default value.
30660 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
30662 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30664 * ipa-inline.c (inline_small_functions): Work around hints
30667 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
30670 * doc/invoke.texi (Option Summary): Document new Nios II
30672 (Nios II Options): Likewise.
30673 * config/nios2/nios2.opt: Add -mgpopt= option support.
30674 Modify existing -mgpopt and -mno-gpopt options to be aliases.
30675 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
30676 * config/nios2/nios2.c (nios2_option_override): Adjust
30677 -mgpopt defaulting.
30678 (nios2_in_small_data_p): Return true for explicit small data
30679 sections even with -G0.
30680 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
30683 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30686 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
30688 (inline_call): Fix removal of aliases.
30690 2015-01-15 Jakub Jelinek <jakub@redhat.com>
30692 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
30693 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
30694 * opts.c (common_handle_option): Add -fsanitize=vptr.
30695 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
30696 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
30697 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
30698 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
30699 (ubsan_expand_vptr_ifn): New prototype.
30700 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
30701 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
30702 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
30703 expand_LOOP_VECTORIZED): Make argument nameless, remove
30705 (expand_UBSAN_VPTR): New function.
30706 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
30708 (UBSAN_VPTR): New internal function.
30709 * sanopt.c (tree_map_traits): Renamed to ...
30710 (sanopt_tree_map_traits): ... this.
30711 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
30712 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
30713 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
30714 (maybe_optimize_ubsan_vptr_ifn): New function.
30715 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
30716 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
30718 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
30719 internal calls like pure functions for aliasing, even when they
30720 have other side-effects that prevent making them ECF_PURE.
30721 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
30722 (ubsan_expand_vptr_ifn): New function.
30724 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
30726 PR rtl-optimization/64110
30727 * stmt.c (parse_output_constraint): Process '^' and '$'.
30728 (parse_input_constraint): Ditto.
30729 * lra-constraints.c (process_alt_operands): Process the new
30731 * ira-costs.c (record_reg_classes): Process the new constraint
30733 * genoutput.c (indep_constraints): Add '^' and '$'.
30734 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
30735 * doc/md.texi: Add description of the new constraints.
30737 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
30738 Bernd Schmidt <bernds@codesourcery.com>
30739 Cesar Philippidis <cesar@codesourcery.com>
30740 James Norris <jnorris@codesourcery.com>
30741 Tom de Vries <tom@codesourcery.com>
30742 Ilmir Usmanov <i.usmanov@samsung.com>
30743 Dmitry Bocharnikov <dmitry.b@samsung.com>
30744 Evgeny Gavrin <e.gavrin@samsung.com>
30745 Jakub Jelinek <jakub@redhat.com>
30747 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
30748 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30749 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30750 New function types.
30751 * builtins.c: Include "gomp-constants.h".
30752 (expand_builtin_acc_on_device): New function.
30753 (expand_builtin, is_inexpensive_builtin): Handle
30754 BUILT_IN_ACC_ON_DEVICE.
30755 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
30757 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
30759 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
30760 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
30761 i386/intelmic-offload.h.
30762 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
30763 to libgomp and its dependencies.
30764 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
30765 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
30766 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
30767 * config/ia64/hpux.h (LIB_SPEC): Likewise.
30768 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30769 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
30770 * doc/generic.texi: Update for OpenACC changes.
30771 * doc/gimple.texi: Likewise.
30772 * doc/invoke.texi: Likewise.
30773 * doc/sourcebuild.texi: Likewise.
30774 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
30775 GF_OMP_FOR_KIND_OACC_LOOP.
30776 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
30777 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
30778 GF_OMP_TARGET_KIND_OACC_UPDATE,
30779 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30781 * gimple.c: Update comments for OpenACC changes.
30782 * gimple.def: Likewise.
30783 * gimple.h: Likewise.
30784 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
30785 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30786 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
30787 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
30788 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
30790 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
30791 * gimplify.c: Include "gomp-constants.h".
30792 Update comments for OpenACC changes.
30793 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
30794 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
30795 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30796 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
30797 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30798 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30799 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
30800 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
30801 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
30803 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
30804 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
30805 OMP_CLAUSE_SET_MAP_KIND.
30806 (gimplify_oacc_cache): New function.
30807 (gimplify_omp_for): Handle OACC_LOOP.
30808 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
30810 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
30811 OACC_EXIT_DATA, OACC_UPDATE.
30812 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
30813 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
30814 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
30815 (gimplify_body): Consider flag_openacc next to flag_openmp.
30816 * lto-streamer-out.c: Include "gomp-constants.h".
30817 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
30818 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
30819 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
30820 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
30821 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
30822 (BUILT_IN_ACC_ON_DEVICE): New builtins.
30823 * omp-low.c: Include "gomp-constants.h".
30824 Update comments for OpenACC changes.
30825 (struct omp_context): Add reduction_map, gwv_below, gwv_this
30827 (extract_omp_for_data, use_pointer_for_field, install_var_field)
30828 (new_omp_context, delete_omp_context, scan_sharing_clauses)
30829 (create_omp_child_function, scan_omp_for, scan_omp_target)
30830 (check_omp_nesting_restrictions, lower_reduction_clauses)
30831 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
30832 Update for OpenACC changes.
30833 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
30834 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
30835 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
30836 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
30837 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
30838 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
30840 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
30841 Handle GF_OMP_FOR_KIND_OACC_LOOP.
30842 (expand_omp_target, lower_omp_target): Handle
30843 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
30844 GF_OMP_TARGET_KIND_OACC_UPDATE,
30845 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
30846 GF_OMP_TARGET_KIND_OACC_DATA.
30847 (pass_expand_omp::execute, execute_lower_omp)
30848 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
30850 (offload_symbol_decl): New variable.
30851 (oacc_get_reduction_array_id, oacc_max_threads)
30852 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
30853 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
30854 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
30855 (oacc_gimple_assign, oacc_initialize_reduction_data)
30856 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
30858 (is_targetreg_ctx): Remove function.
30859 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
30860 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
30861 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30862 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
30863 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
30864 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
30865 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
30866 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
30867 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
30868 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
30869 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
30870 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
30871 * tree-core.h: Update comments for OpenACC changes.
30872 (enum omp_clause_map_kind): Remove.
30873 (struct tree_omp_clause): Change type of map_kind member from enum
30874 omp_clause_map_kind to unsigned char.
30875 * tree-inline.c: Update comments for OpenACC changes.
30876 * tree-nested.c: Likewise. Include "gomp-constants.h".
30877 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
30878 (convert_tramp_reference_stmt, convert_gimple_call): Update for
30879 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
30880 OMP_CLAUSE_SET_MAP_KIND.
30881 * tree-pretty-print.c: Include "gomp-constants.h".
30882 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
30883 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
30884 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
30885 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
30886 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30887 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
30888 instead of OMP_CLAUSE_MAP_*.
30889 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
30890 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
30891 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30892 * tree-streamer-in.c: Include "gomp-constants.h".
30893 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
30894 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
30895 * tree-streamer-out.c: Include "gomp-constants.h".
30896 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
30898 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
30899 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
30900 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
30901 * tree.c (omp_clause_num_ops): Update accordingly.
30902 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
30904 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
30905 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
30906 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
30907 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
30908 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
30909 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
30910 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
30911 (OMP_CLAUSE_SET_MAP_KIND): New macro.
30912 * varpool.c (varpool_node::get_create): Consider flag_openacc next
30914 * config/i386/intelmic-offload.h: New file.
30915 * config/nvptx/offload.h: Likewise.
30917 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30919 * explow.h: Remove duplicate contents.
30920 * dojump.h: Likewise.
30922 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
30924 * arm.c (arm_xgene_tune): Add default initializer for instruction
30927 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
30931 * ipa.c (symbol_table::remove_unreachable_nodes):
30932 Do not put abstract origins into boundary.
30934 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
30936 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
30937 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
30939 2015-01-15 Steve Ellcey <sellcey@mips.com>
30941 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
30942 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
30943 builtins.def, and chkp-builtins.def.
30945 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
30947 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
30950 2015-01-15 Richard Biener <rguenther@suse.de>
30952 PR tree-optimization/61743
30953 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
30954 information on PHIs for some simple cases.
30956 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30958 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
30960 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
30961 * config/arm/arm-cores.def (xgene1): New entry.
30962 * config/arm/arm-tables.opt: Regenerate.
30963 * config/arm/arm-tune.md: Regenerate.
30964 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
30966 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
30968 * tree-if-conv.c: Include hash-map.h.
30969 (aggressive_if_conv): New variable.
30970 (fold_build_cond_expr): Add simplification of non-zero condition.
30971 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
30972 destination block is not always executed.
30973 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
30974 than two predecessors if AGGRESSIVE_IF_CONV is true.
30975 (if_convertible_stmt_p): Fix commentary.
30976 (all_preds_critical_p): New function.
30977 (has_pred_critical_p): New function.
30978 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
30979 BB can have more than two predecessors and all incoming edges can be
30981 (predicate_bbs): Skip predication for loop exit block, use build2_loc
30982 to compute predicate for true edge.
30983 (find_phi_replacement_condition): Delete this function.
30984 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
30985 Allow interchange PHI arguments if EXTENDED is false.
30986 Change check that block containing reduction statement candidate
30987 is predecessor of phi-block since phi may have more than two arguments.
30988 (phi_args_hash_traits): New helper structure.
30989 (struct phi_args_hash_traits): New type.
30990 (phi_args_hash_traits::hash): New function.
30991 (phi_args_hash_traits::equal_keys): New function.
30992 (gen_phi_arg_condition): New function.
30993 (predicate_scalar_phi): Add handling of phi nodes with more than two
30994 arguments, delete COND and TRUE_BB arguments, insert body of
30995 find_phi_replacement_condition to predicate ordinary phi nodes.
30996 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
30997 delete call of find_phi_replacement_condition and invoke
30998 predicate_scalar_phi with two arguments.
30999 (insert_gimplified_predicates): Add assert that non-predicated block
31000 don't have statements to insert.
31001 (ifcvt_split_critical_edges): New function.
31002 (ifcvt_split_def_stmt): Likewise.
31003 (ifcvt_walk_pattern_tree): Likewise.
31004 (stmt_is_root_of_bool_pattern): Likewise.
31005 (ifcvt_repair_bool_pattern): Likewise.
31006 (ifcvt_local_dce): Likewise.
31007 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31008 is copy of inner or outer loop force_vectorize field, invoke
31009 ifcvt_split_critical_edges, ifcvt_local_dce and
31010 ifcvt_repair_bool_pattern for aggressive if-conversion.
31012 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
31014 * config/aarch64/aarch64.md: Include xgene1.md.
31015 * config/aarch64/xgene1.md: New file.
31017 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31019 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31020 xgene1 (APM XGene-1) core definition.
31021 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31022 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31023 * doc/invoke.texi: Document -mcpu=xgene1.
31025 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31027 * dojump.h: New header file.
31028 * explow.h: Likewise.
31029 * expr.h: Remove includes.
31030 Move expmed.c prototypes to expmed.h.
31031 Move dojump.c prototypes to dojump.h.
31032 Move alias.c prototypes to alias.h.
31033 Move explow.c prototypes to explow.h.
31034 Move calls.c prototypes to calls.h.
31035 Move emit-rtl.c prototypes to emit-rtl.h.
31036 Move varasm.c prototypes to varasm.h.
31037 Move stmt.c prototypes to stmt.h.
31038 (saved_pending_stack_adjust): Move to dojump.h.
31039 (adjust_address): Move to explow.h.
31040 (adjust_address_nv): Move to emit-rtl.h.
31041 (adjust_bitfield_address): Likewise.
31042 (adjust_bitfield_address_size): Likewise.
31043 (adjust_bitfield_address_nv): Likewise.
31044 (adjust_automodify_address_nv): Likewise.
31045 * explow.c (expr_size): Move to expr.c.
31046 (int_expr_size): Likewise.
31047 (tree_expr_size): Likewise.
31048 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31049 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31050 * genemit.c (main): Generate includes statistics.h, real.h,
31051 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31053 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31054 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31055 explow.h, emit-rtl.h, stmt.h.
31056 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31057 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31058 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31059 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31060 emit-rtl.h, varasm.h, stmt.h.
31061 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31062 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31063 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31064 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31065 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31066 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31067 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31068 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31069 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31070 tm.h tree.h varasm.h vec.h wide-int.h.
31071 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31072 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31073 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31074 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31075 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
31076 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
31077 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31078 * loop-iv.c: Likewise.
31079 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31080 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31081 statistics.h stmt.h tree.h varasm.h wide-int.h.
31082 * lra-constraints.c: Likewise.
31083 * lra-eliminations.c: Likewise.
31084 * lra-lives.c: Likewise.
31085 * lra-remat.c: Likewise.
31086 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31087 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31088 statistics.h stmt.h tree.h varasm.h wide-int.h.
31089 * hw-doloop.c: Likewise.
31090 * ira-color.c: Likewise.
31091 * ira-emit.c: Likewise.
31092 * loop-doloop.c: Likewise.
31093 * loop-invariant.c: Likewise.
31094 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31095 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31096 statistics.h stmt.h tree.h varasm.h wide-int.h.
31097 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31098 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31099 statistics.h stmt.h tree.h varasm.h wide-int.h.
31100 * combine-stack-adj.c: Likewise.
31103 * ifcvt.c: Likewise.
31104 * ira-costs.c: Likewise.
31105 * jump.c: Likewise.
31106 * lra-coalesce.c: Likewise.
31107 * lra-spills.c: Likewise.
31108 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31109 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31110 stmt.h varasm.h wide-int.h.
31111 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31112 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31114 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31115 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31116 statistics.h stmt.h varasm.h wide-int.h.
31117 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31118 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31119 varasm.h wide-int.h.
31120 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31121 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31122 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31123 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31124 statistics.h stmt.h.
31125 * config/tilepro/tilepro.c: Likewise.
31126 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
31127 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
31128 * config/pdp11/pdp11.c: Likewise.
31129 * config/xtensa/xtensa.c: Likewise.
31130 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31131 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31133 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31134 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31135 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31136 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31137 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31138 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31139 * rtl-chkp.c: Likewise.
31140 * tree-chkp-opt.c: Likewise.
31141 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31142 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31143 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31144 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31145 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31146 statistics.h stmt.h.
31147 * tree-vect-data-refs.c: Likewise.
31148 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31149 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31150 rtl.h statistics.h stmt.h varasm.h.
31151 * internal-fn.c: Likewise.
31152 * ipa-icf-gimple.c: Likewise.
31153 * lto-section-out.c: Likewise.
31154 * tree-data-ref.c: Likewise.
31155 * tree-nested.c: Likewise.
31156 * tree-outof-ssa.c: Likewise.
31157 * tree-predcom.c: Likewise.
31158 * tree-pretty-print.c: Likewise.
31159 * tree-scalar-evolution.c: Likewise.
31160 * tree-ssa-strlen.c: Likewise.
31161 * tree-vect-loop.c: Likewise.
31162 * tree-vect-patterns.c: Likewise.
31163 * tree-vect-slp.c: Likewise.
31164 * tree-vect-stmts.c: Likewise.
31165 * tsan.c: Likewise.
31166 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31167 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31169 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31170 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31171 statistics.h stmt.h varasm.h.
31172 * loop-unroll.c: Likewise.
31173 * ubsan.c: Likewise.
31174 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31175 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31177 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31178 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31179 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31180 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31181 statistics.h stmt.h.
31182 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31183 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31184 statistics.h stmt.h varasm.h.
31185 * gimple-match-head.c: Likewise.
31186 * lto-cgraph.c: Likewise.
31187 * lto-section-in.c: Likewise.
31188 * lto-streamer-in.c: Likewise.
31189 * lto-streamer-out.c: Likewise.
31190 * tree-affine.c: Likewise.
31191 * tree-cfg.c: Likewise.
31192 * tree-cfgcleanup.c: Likewise.
31193 * tree-if-conv.c: Likewise.
31194 * tree-into-ssa.c: Likewise.
31195 * tree-ssa-alias.c: Likewise.
31196 * tree-ssa-copyrename.c: Likewise.
31197 * tree-ssa-dse.c: Likewise.
31198 * tree-ssa-forwprop.c: Likewise.
31199 * tree-ssa-live.c: Likewise.
31200 * tree-ssa-math-opts.c: Likewise.
31201 * tree-ssa-pre.c: Likewise.
31202 * tree-ssa-sccvn.c: Likewise.
31203 * tree-tailcall.c: Likewise.
31204 * tree-vect-generic.c: Likewise.
31205 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31206 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31207 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31208 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31209 * varasm.c: Likewise.
31210 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31211 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31213 * init-regs.c: Likewise.
31215 * omp-low.c: Likewise.
31216 * stack-ptr-mod.c: Likewise.
31217 * tree-ssa-reassoc.c: Likewise.
31218 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31219 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31221 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31222 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31223 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31224 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31225 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31226 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31227 * tree-ssa-phiopt.c: Likewise.
31228 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31229 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31230 * config/fr30/fr30.c: Likewise.
31231 * config/frv/frv.c: Likewise.
31232 * expr.c: Likewise.
31233 * final.c: Likewise.
31234 * optabs.c: Likewise.
31235 * passes.c: Likewise.
31236 * simplify-rtx.c: Likewise.
31237 * stmt.c: Likewise.
31238 * toplev.c: Likewise.
31239 * var-tracking.c: Likewise.
31240 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31241 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31242 * lower-subreg.c: Likewise.
31243 * postreload-gcse.c: Likewise.
31245 * reginfo.c: Likewise.
31246 * store-motion.c: Likewise.
31247 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31248 fixed-value.h hashtab.h real.h stmt.h varasm.h.
31249 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31250 fixed-value.h hashtab.h statistics.h stmt.h.
31251 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31252 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31253 * except.c: Likewise.
31254 * explow.c: Likewise.
31255 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31256 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
31258 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31259 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
31260 * tree-ssa-structalias.c: Likewise.
31261 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31262 fixed-value.h insn-config.h real.h statistics.h.
31263 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31264 fixed-value.h insn-config.h real.h statistics.h stmt.h.
31265 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31266 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31267 * cfgbuild.c: Likewise.
31268 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31269 fixed-value.h real.h rtl.h statistics.h stmt.h.
31270 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31271 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31272 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31273 fixed-value.h real.h statistics.h stmt.h.
31274 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31275 fixed-value.h real.h statistics.h stmt.h varasm.h.
31276 * cprop.c: Likewise.
31277 * modulo-sched.c: Likewise.
31278 * postreload.c: Likewise.
31279 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31280 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
31281 statistics.h stmt.h varasm.h.
31282 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
31283 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31284 rtl.h statistics.h stmt.h varasm.h.
31285 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
31286 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
31288 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
31289 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
31291 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
31292 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
31294 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
31295 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31296 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31297 function.h real.h statistics.h stmt.h varasm.h.
31298 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31299 insn-config.h real.h statistics.h stmt.h.
31300 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
31301 statistics.h stmt.h.
31302 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
31303 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
31304 statistics.h stmt.h varasm.h.
31305 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
31306 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
31307 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31308 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
31309 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
31310 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31311 statistics.h stmt.h varasm.h.
31312 * ipa-polymorphic-call.c: Likewise.
31313 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
31314 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31315 statistics.h stmt.h.
31316 * config/c6x/c6x.c: Likewise.
31317 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
31318 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31319 statistics.h stmt.h varasm.h.
31320 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
31321 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
31323 * ipa-split.c: Likewise.
31324 * tree-eh.c: Likewise.
31325 * tree-ssa-dce.c: Likewise.
31326 * tree-ssa-loop-niter.c: Likewise.
31327 * tree-vrp.c: Likewise.
31328 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
31329 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
31331 * config/nds32/nds32-fp-as-gp.c: Likewise.
31332 * config/nds32/nds32-intrinsic.c: Likewise.
31333 * config/nds32/nds32-isr.c: Likewise.
31334 * config/nds32/nds32-md-auxiliary.c: Likewise.
31335 * config/nds32/nds32-memory-manipulation.c: Likewise.
31336 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
31337 * config/nds32/nds32-predicates.c: Likewise.
31338 * config/nds32/nds32.c: Likewise.
31339 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
31340 fixed-value.h hashtab.h real.h statistics.h.
31341 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
31342 fixed-value.h hashtab.h real.h statistics.h stmt.h.
31343 * config/arm/arm.c: Likewise.
31344 * config/avr/avr.c: Likewise.
31345 * config/bfin/bfin.c: Likewise.
31346 * config/h8300/h8300.c: Likewise.
31347 * config/i386/i386.c: Likewise.
31348 * config/ia64/ia64.c: Likewise.
31349 * config/iq2000/iq2000.c: Likewise.
31350 * config/m32c/m32c.c: Likewise.
31351 * config/m32r/m32r.c: Likewise.
31352 * config/m68k/m68k.c: Likewise.
31353 * config/mcore/mcore.c: Likewise.
31354 * config/mep/mep.c: Likewise.
31355 * config/mips/mips.c: Likewise.
31356 * config/mn10300/mn10300.c: Likewise.
31357 * config/moxie/moxie.c: Likewise.
31358 * config/pa/pa.c: Likewise.
31359 * config/rl78/rl78.c: Likewise.
31360 * config/rx/rx.c: Likewise.
31361 * config/s390/s390.c: Likewise.
31362 * config/sh/sh.c: Likewise.
31363 * config/sparc/sparc.c: Likewise.
31364 * config/spu/spu.c: Likewise.
31365 * config/stormy16/stormy16.c: Likewise.
31366 * config/v850/v850.c: Likewise.
31367 * config/vax/vax.c: Likewise.
31368 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
31369 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
31370 * config/msp430/msp430.c: Likewise.
31371 * predict.c: Likewise.
31372 * value-prof.c: Likewise.
31373 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
31374 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
31375 * config/microblaze/microblaze.c: Likewise.
31376 * config/nios2/nios2.c: Likewise.
31377 * config/rs6000/rs6000.c: Likewise.
31378 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31379 insn-config.h real.h rtl.h statistics.h stmt.h.
31380 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
31381 insn-config.h real.h statistics.h stmt.h.
31382 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
31383 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
31384 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
31385 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31386 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
31387 fixed-value.h real.h statistics.h stmt.h.
31388 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
31389 fixed-value.h statistics.h stmt.h.
31390 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
31393 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31395 * gengtype.c (create_user_defined_type): Workaround
31396 -Wmaybe-uninitialized false positives.
31397 * cse.c (fold_rtx): Likewise.
31398 * loop-invariant.c (gain_for_invariant): Likewise.
31400 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
31402 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
31403 set the memory attributes in all cases but clear MEM_EXPR if need be.
31405 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31407 PR tree-optimization/64434
31408 * cfgexpand.c (reorder_operands): New function.
31409 (expand_gimple_basic_block): Insert call of reorder_operands if
31412 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
31414 * config/mips/micromips.md (*swp): Remove explicit parallel.
31415 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
31416 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
31417 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
31418 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
31419 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
31420 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
31421 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
31422 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
31423 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
31424 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
31425 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
31426 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
31427 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
31428 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
31429 (mips_wrdsp): Likewise.
31430 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
31432 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
31433 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
31434 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
31435 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
31436 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
31437 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
31438 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
31439 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
31440 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
31442 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31444 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
31445 (mips_print_operand): Support 'y' to print exact log2 in decimal
31447 * config/mips/mips.h (ISA_HAS_LSA): New define.
31448 (ISA_HAS_DLSA): Likewise.
31449 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
31450 * config/mips/predicates.md (const_immlsa_operand): New predicate.
31452 2015-01-15 Martin Liska <mliska@suse.cz>
31455 * optc-save-gen.awk: Add support for array types.
31457 2015-01-15 Richard Biener <rguenther@suse.de>
31459 PR middle-end/64365
31460 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
31461 for MEM_REF access functions with the same base can never partially
31464 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
31466 * common.opt: New option -fstack-protector-explicit.
31467 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
31468 (stack_protect_decl_phase): Handle stack_protect attribute for
31469 explicit stack protection requests.
31470 (expand_used_vars): Similarly.
31471 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
31472 * doc/extend.texi: Add documentation for "stack_protect" attribute.
31473 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
31475 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
31478 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
31480 (sh_extending_set_of_reg): New struct.
31481 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
31482 sh_remove_reg_dead_or_unused_notes): New Declarations.
31483 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
31484 sh_find_extending_set_of_reg, sh_split_tst_subregs,
31485 sh_extending_set_of_reg::use_as_extended_reg): New functions.
31486 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
31487 convert to insn_and_split and use new function sh_split_tst_subregs.
31489 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
31491 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
31493 (Optimization Options): Move -fuse-ld documentation to...
31494 (Link Options): ...here.
31496 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31498 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
31500 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
31501 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
31502 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
31503 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
31504 instead of ZR for the memory operand of LL/SC.
31505 (compare_and_swap_12, sync_add<mode>): Likewise.
31506 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
31507 (sync_new_<optab>_12, sync_nand_12): Likewise.
31508 (sync_old_nand_12, sync_new_nand_12): Likewise.
31509 (sync_sub<mode>, sync_old_add<mode>): Likewise.
31510 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
31511 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
31512 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
31513 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
31514 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
31515 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
31516 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
31517 * doc/md.texi (ZC): Update description.
31519 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31521 * builtins.c (expand_builtin_atomic_exchange): Remove error when
31522 memory model is CONSUME.
31523 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
31524 expand_builtin_atomic_store): Change invalid memory model errors to
31526 (expand_builtin_atomic_clear): Change invalid model errors to warnings
31527 and issue warning for CONSUME.
31529 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
31531 * lto-cgraph: Update function comments for
31532 lto_symtab_encoder_encode_*.
31534 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
31536 * Makefile.in (site.exp): Do not set ENABLE_LTO.
31538 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
31540 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
31541 * lto-cgraph.c (select_what_to_stream): Remove argument, use
31542 lto_stream_offload_p instead.
31543 * lto-streamer.h (select_what_to_stream): Remove argument.
31544 * passes.c (ipa_write_summaries): Likewise.
31545 * tree-pass.h (ipa_write_summaries): Likewise.
31547 2015-01-14 Richard Biener <rguenther@suse.de>
31549 PR tree-optimization/59354
31550 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
31551 groups larger than the slp group size as having gaps.
31553 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
31555 PR middle-end/59448
31556 * builtins.c (get_memmodel): Promote consume to acquire always.
31558 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31561 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
31564 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31567 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
31569 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
31570 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
31571 AVX512VBMI, as it implies AVX512BW.
31573 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
31576 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
31577 (vec_unpacks_hi_v16sf): Ditto.
31579 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31581 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
31584 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31586 * doc/invoke.texi (mapcs): Mention deprecation.
31587 (mapcs-frame): Likewise.
31589 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
31592 * config/arm/arm.c (callee_saved_reg_p): Define.
31593 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
31594 register is callee saved instead of !call_used_regs[reg].
31595 (thumb1_compute_save_reg_mask): Likewise.
31597 2015-01-14 Hale Wang <hale.wang@arm.com>
31599 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
31602 2015-01-14 Richard Biener <rguenther@suse.de>
31605 * tree-inline.c (insert_debug_decl_map): Check destination
31606 function MAY_HAVE_DEBUG_STMTS.
31607 (insert_init_debug_bind): Likewise.
31608 (insert_init_stmt): Remove redundant check.
31609 (remap_gimple_stmt): Drop debug stmts if the destination
31610 function has var-tracking assignments disabled.
31612 2015-01-14 Martin Liska <mliska@suse.cz>
31614 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
31615 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
31617 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31620 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
31621 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
31623 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
31625 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
31626 level from an ARCH; do not inject the default.
31627 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
31628 MIPS_ISA_LEVEL_SPEC.
31629 (MIPS_ISA_NAN2008_SPEC): Update comment.
31630 (BASE_DRIVER_SELF_SPECS): Likewise.
31631 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
31632 MIPS_DEFAULT_ISA_LEVEL_SPEC.
31633 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
31634 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
31635 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
31637 2015-01-14 Richard Biener <rguenther@suse.de>
31639 PR tree-optimization/64493
31640 PR tree-optimization/64495
31641 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
31642 assign the proper vectorized PHI to the inner loop exit PHIs.
31644 2015-01-14 Joey Ye <joey.ye@arm.com>
31646 * config/arm/arm.c (arm_compute_save_reg_mask):
31647 Do not save lr in case of tail call.
31648 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
31650 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
31652 * tree-vrp.c (check_array_ref): Emit more warnings
31653 for warn_array_bounds >= 2.
31654 * common.opt: New option -Warray-bounds=.
31655 * doc/invoke.texi: Document -Warray-bounds=.
31657 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
31659 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
31660 (mforbid-fp-as-gp): Remove.
31662 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
31663 (nds32_symbol_load_store_p): Remove.
31664 (nds32_fp_as_gp_check_available): Clean up implementation.
31665 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
31667 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
31668 fp-as-gp and ex9 cases.
31670 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31672 * tree-profile.c (init_ic_make_global_vars): Drop workaround
31673 for bintuils bug 14342.
31674 (init_ic_make_global_vars): Likewise.
31675 (gimple_init_edge_profiler): Likewise.
31676 (gimple_gen_ic_func_profiler): Likewise.
31678 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31680 * ipa-inline.c (inline_small_functions): Swap the operands in
31683 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31686 * ipa-inline-analysis.c (node_growth_cache): Remove.
31687 (initialize_growth_caches): Do not initialize it.
31688 (free_growth_caches): Do not free it.
31689 (do_estimate_growth): Rename to ...
31690 (estimate_growth): ... this one; drop growth cache code.
31691 (growth_likely_positive): Always go the heuristics way.
31692 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
31693 (reset_edge_caches): Do not reset node growth.
31694 (heap_edge_removal_hook): Do not maintain cache.
31695 (inline_small_functions): Likewise; strenghten sanity check.
31696 (ipa_inline): Do not maintain caches.
31697 * ipa-inline.h (node_growth_cache): Remove.
31698 (do_estimate_growth): Remove to ...
31699 (estimate_growth): this one; remove inline version.
31700 (reset_node_growth_cache): Remove.
31702 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
31705 * ipa-inline.c (inline_small_functions): Update callee keys after
31706 resolving speculation
31707 (inline_small_functions): Always check monotonicity of the queue.
31709 2015-01-13 Marek Polacek <polacek@redhat.com>
31711 PR middle-end/64391
31712 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
31714 2015-01-13 Jakub Jelinek <jakub@redhat.com>
31716 PR rtl-optimization/64286
31717 * ree.c (combine_reaching_defs): Move part of comment earlier,
31718 remove !SCALAR_INT_MODE_P check.
31719 (add_removable_extension): Don't add vector mode
31720 extensions if all uses of the source register aren't the same
31723 2015-01-13 Renlin Li <renlin.li@arm.com>
31725 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
31726 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
31728 2015-01-13 Martin Liska <mliska@suse.cz>
31730 * ipa-icf.c (sem_function::equals_private): Call new functions
31731 cl_target_option_print_diff and cl_optimization_print_diff.
31732 * optc-save-gen.awk (cl_target_option_print_diff): New function.
31733 (cl_optimization_print_diff): Likewise.
31734 * opth-gen.awk: Likewise.
31736 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
31738 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
31739 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
31740 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
31741 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
31742 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
31743 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
31745 2015-01-13 Andrew Pinski <apinski@cavium.com>
31747 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
31748 instead of src mode.
31750 2015-01-13 Richard Biener <rguenther@suse.de>
31753 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
31756 2015-01-13 Andrew Pinski <apinski@cavium.com>
31758 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
31760 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
31762 2015-01-13 Jakub Jelinek <jakub@redhat.com>
31764 PR middle-end/63974
31765 * cfgexpand.c (expand_computed_goto): Don't call
31766 convert_memory_address here.
31768 2015-01-13 Richard Biener <rguenther@suse.de>
31770 PR tree-optimization/64406
31771 * tree-loop-distibution.c (pass_loop_distribution::execute):
31772 Reset the SCEV hashtable if we distributed anything.
31774 2015-01-13 Richard Biener <rguenther@suse.de>
31776 PR tree-optimization/64404
31777 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
31778 SLP types for CSEd loads.
31780 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31782 PR tree-optimization/64436
31783 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
31784 merge of two symbolic numbers for a bitwise OR to ...
31785 (perform_symbolic_merge): This. Also fix computation of the range and
31786 end of the symbolic number corresponding to the result of a bitwise OR.
31788 2015-01-13 Richard Biener <rguenther@suse.de>
31790 PR tree-optimization/64568
31791 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
31792 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
31794 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31796 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
31797 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
31799 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31801 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
31802 target-specific symbol_ref flag.
31803 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
31804 resides in rodata section.
31805 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
31806 (nds32_encode_section_info): New function.
31808 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31810 * config/nds32/nds32.md (call): Use pseudo instruction bal which
31811 clobbers TA_REGNUM if large code model is specified.
31812 (call_register): Likewise.
31813 (call_immediate): Likewise.
31814 (call_value): Likewise.
31815 (call_value_register): Likewise.
31816 (call_value_immediate): Likewise.
31818 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31820 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
31821 (TARGET_CMODEL_MEDIUM): New macro.
31822 (TARGET_CMODEL_LARGE): New macro.
31823 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
31824 code model setting in assembly code.
31826 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31828 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31829 Remove MASK_GP_DIRECT flag.
31830 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
31831 one of the multilib default options.
31832 * config/nds32/nds32.opt (mgp-direct): Remove.
31833 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
31834 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
31836 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
31838 * config/nds32/nds32.opt (mcmodel): Add new option.
31839 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
31840 to describe code model.
31842 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
31845 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
31847 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
31849 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
31850 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31851 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
31852 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
31853 __builtin_sh_set_fpscr.
31855 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
31857 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
31858 after a funtion name just to indicate it is a function.
31859 ([-fsanitize-undefined-trap-on-error]): Likewise.
31860 ([-fdbg-cnt=]): Likewise.
31861 ([-mmemcpy]): Likewise.
31862 ([-mflush-func]): Likewise.
31863 ([-msynci]): Likewise.
31865 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
31867 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
31870 2015-01-12 Jakub Jelinek <jakub@redhat.com>
31872 PR tree-optimization/64563
31873 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
31874 instead of != VR_VARYING.
31877 * config/i386/i386.c (ix86_expand_prologue): Add
31878 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
31880 PR tree-optimization/64454
31881 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
31882 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
31883 for signed or [0, op1 - 1] for unsigned modulo.
31884 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
31885 even if op1 does not satisfy integer_pow2p.
31888 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
31890 2015-01-12 Jeff Law <law@redhat.com>
31893 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
31894 (trunchiqi2, truncsihi2): Similarly.
31896 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
31897 rather than calling F.
31899 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
31901 * tsan.c (instrument_expr): Use force_gimple_operand.
31902 Use may_be_nonaddressable_p instead of is_gimple_addressable.
31904 2015-01-12 Richard Biener <rguenther@suse.de>
31906 PR tree-optimization/64530
31907 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
31910 2015-01-12 Richard Biener <rguenther@suse.de>
31912 PR middle-end/64357
31913 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
31916 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31918 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
31919 Cortex-A17 tuning parameters.
31920 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
31922 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31924 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
31925 * config/arm/arm.c (arm_macro_fusion_p): New function.
31926 (arm_macro_fusion_pair_p): Likewise.
31927 (TARGET_SCHED_MACRO_FUSION_P): Define.
31928 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
31929 (ARM_FUSE_NOTHING): Likewise.
31930 (ARM_FUSE_MOVW_MOVT): Likewise.
31931 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
31932 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
31933 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
31934 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
31935 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
31936 arm_cortex_a5_tune): Specify fuseable_ops value.
31938 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
31941 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
31942 test for PIE with copy reloc.
31943 * configure: Regenerated.
31945 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31947 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
31949 (arm_tls_descseq_addr): Likewise.
31950 (arm_gen_movmemqi): Likewise.
31951 (arm_expand_epilogue_apcs_frame): Likewise.
31952 (arm_expand_epilogue): Likewise.
31953 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
31956 2015-01-12 Martin Liska <mliska@suse.cz>
31959 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
31960 volatility for correct operands.
31962 2015-01-12 Martin Liska <mliska@suse.cz>
31964 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
31965 indication that a function is not leaf.
31966 (sem_function::compare_polymorphic_p): Likewise.
31968 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31970 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
31971 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
31972 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
31973 fold-const.h, tree-check.h.
31975 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
31979 * ipa-inline.c (compute_uninlined_call_time,
31980 compute_inlined_call_time): Use counts for extra precision when
31982 (big_speedup_p): Fix formating.
31983 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
31984 (relative_time_benefit): Remove.
31985 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
31986 merge guessed and read profile paths.
31987 (inline_small_functions): Count only !optimize_size functions into
31988 initial size; be more lax about sanity check when profile is used;
31989 be sure to update inlined function profile when profile is read.
31991 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
31994 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
31995 cost when edge becomes direct.
31996 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
31997 is resolved or when introducing new speculation.
31999 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
32003 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32004 '||' to fix typo issue.
32006 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32007 accept and return NULL.
32009 2015-01-12 Martin Liska <mliska@suse.cz>
32011 * cgraph.c (cgraph_edge::remove_callee): Move function to header
32012 file for being inlined.
32013 (cgraph_set_edge_callee): Delete.
32014 (cgraph_edge::redirect_callee): Move function to header file
32016 (cgraph_edge::make_direct): Use new function.
32017 (cgraph_edge::dump_edge_flags): New function created from
32018 static dump_edge_flags function.
32019 (cgraph_node::dump): Use new function.
32020 (cgraph_edge::verify_count_and_frequency): New function created
32021 from verify_edge_count_and_frequency.
32022 (cgraph_edge::verify_corresponds_to_fndecl): New function created
32023 from verify_edge_corresponds_to_fndecl.
32024 (verify_edge_corresponds_to_fndecl): Delete.
32025 (cgraph_node::verify_node): Use new function.
32026 * cgraph.h (cgraph_edge::set_callee): New function.
32027 (cgraph_edge::dump_edge_flags): Likewise.
32028 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32030 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
32032 * ipa-utils.c (estimate_function_body_sizes): Do not
32033 free node params when called late with early=true.
32035 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
32037 * doc/md.texi (Instruction Patterns): Rewrite text for
32039 (Example): Likewise.
32041 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
32043 * doc/invoke.texi (Option Summary): Break long lines.
32044 [(-fdiagnostics-color)]: Put long literal in @smallexample
32046 [(-fsanitize-recover)]: Likewise.
32047 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32048 [(-ffast-math)]: Likewise.
32049 [(--param max-inline-insns-recursive)]: Likewise.
32050 [(--param max-inline-recursive-depth)]: Likewise.
32051 [(-mno-text-section-literals)]: Likewise.
32053 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
32055 * doc/install.texi: Update for libgomp being renamed from "GNU
32056 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32058 * doc/sourcebuild.texi: Likewise.
32060 2015-01-10 Anthony Green <green@moxielogic.com>
32062 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32063 mul.x availability for moxiebox configuration.
32065 2015-01-09 Anthony Green <green@moxielogic.com>
32067 * config/moxie/moxie.md: Tabify assembly output.
32069 2015-01-09 Anthony Green <green@moxielogic.com>
32071 * config/moxie/moxie.md (CC_REG): Correct register definition.
32073 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
32075 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32076 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
32079 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32081 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32083 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
32084 Jakub Jelinek <jakub@redhat.com>
32086 PR middle-end/64412
32087 * lto-streamer.h (lto_stream_offload_p): New declaration.
32088 * lto-streamer.c (lto_stream_offload_p): New variable.
32089 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32090 at the same time as section_name_prefix.
32091 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32092 if lto_stream_offload_p.
32093 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32094 stream TREE_TARGET_OPTION if lto_stream_offload_p.
32095 (write_ts_function_decl_tree_pointers): Don't
32096 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32097 * tree-streamer-in.c (unpack_value_fields): Don't stream
32098 TREE_TARGET_OPTION in if ACCEL_COMPILER.
32099 (lto_input_ts_function_decl_tree_pointers): Don't stream
32100 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32101 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32102 instead of section_name_prefix string comparisons.
32104 2015-01-09 Jakub Jelinek <jakub@redhat.com>
32106 PR rtl-optimization/64536
32107 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32110 2015-01-09 Michael Collison <michael.collison@linaro.org>
32112 PR tree-optimization/64322
32113 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32114 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32116 2015-01-09 Tom de Vries <tom@codesourcery.com>
32118 PR rtl-optimization/64539
32119 * regcprop.c (kill_clobbered_values): Factor out of ...
32120 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
32121 instead of note_stores with kill_clobbered_value.
32123 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32125 * ginclude/unwind-arm-common.h: Revert previous commit.
32127 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
32129 * config.gcc (arm*-*-freebsd*): New configuration.
32130 * config/arm/freebsd.h: New file.
32131 * config.host: Add extra components for arm*-*-freebsd*.
32132 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32133 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32135 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32137 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32139 * config/rs6000/t-rtems: Add e6500 multilibs.
32141 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32143 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32146 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32148 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32149 MULTILIB_EXCEPTIONS.
32151 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32153 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32154 MULTILIB_EXCEPTIONS.
32156 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
32158 * config/arm/t-rtems-eabi: Rename to...
32159 * config/arm/t-rtems: ...this.
32160 * config/arm/rtems-eabi.h: Rename to...
32161 * config/arm/rtems.h: ...this.
32162 * config.gcc (arm*-*-rtems*): Reflect changes above.
32164 2015-01-09 Richard Biener <rguenther@suse.de>
32166 PR tree-optimization/64410
32167 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32169 (execute_update_addresses_taken): Deal with that.
32170 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32171 loads/stores for complex variables.
32173 2015-01-09 Martin Liska <mliska@suse.cz>
32175 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32177 (func_checker::compare_memory_operand): New function.
32178 (func_checker::compare_operand): Split case to newly
32180 (func_checker::compare_cst_or_decl): New function.
32181 (func_checker::compare_gimple_call): Identify
32183 (func_checker::compare_gimple_assign): Likewise.
32184 * ipa-icf-gimple.h: New function.
32186 2015-01-09 Martin Liska <mliska@suse.cz>
32189 * sreal.c (sreal::dump): Change unsigned format to signed for
32191 (sreal::to_double): Replace exp2 with scalbln.
32193 2015-01-09 Martin Liska <mliska@suse.cz>
32195 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32196 * ipa-icf.c (sem_function::equals_private): Add support for target and
32197 (sem_item_optimizer::merge_classes): Remove redundant function
32198 optimization flags comparison.
32199 * tree.h (target_opts_for_fn): New function.
32201 2015-01-09 Tom de Vries <tom@codesourcery.com>
32203 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32205 2015-01-09 Kito Cheng <kito@0xlab.org>
32207 PR rtl-optimization/64348
32208 * lra-constraints.c (split_reg): Fix caller-save store/restore
32209 instruction generation.
32211 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
32213 PR gcov-profile/61790
32214 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32215 long long. Fallback to int64_t if host doesn't have long long and
32216 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
32218 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32220 PR tree-optimization/63989
32221 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32222 from 1000 to 10000.
32223 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32224 (get_stridx): If we don't have a record for certain SSA_NAME,
32225 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32226 constant offset, call get_stridx_plus_constant.
32227 (get_stridx_plus_constant): New function.
32228 (zero_length_string): Don't use get_stridx here.
32231 PR middle-end/64388
32232 * dse.c (struct insn_info): Mention frame_read set also
32233 before reload for tail calls on some targets.
32234 (scan_insn): Revert 2014-12-22 change. Set frame_read
32235 also before reload for tail calls if
32236 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
32237 instead of add_non_frame_wild_read for non-const/memset
32238 tail calls after reload.
32240 2015-01-08 Jason Merrill <jason@redhat.com>
32242 * ubsan.c (do_ubsan_in_current_function): New.
32243 (pass_ubsan::gate): Use it.
32244 * ubsan.h: Declare it.
32245 * convert.c (convert_to_integer): Use it.
32247 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32250 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
32251 compare_code when it is unconditionally overwritten afterwards.
32252 Use ix86_reverse_condition instead of reverse_condition. Don't
32253 change code if *reverse_condition* returned UNKNOWN and don't
32254 swap ct/cf and negate diff in that case.
32256 2015-01-08 Mike Stump <mikestump@comcast.net>
32258 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
32259 (pass_tsan_O0::gate): Likewise.
32260 * extend.texi (Function Attributes): Add no_sanitize_thread
32263 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
32265 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
32266 for registering builtins.
32267 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
32268 add -fopenmp to the argv_obstack used when invoking
32269 compile_for_target.
32271 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
32272 add "-m32" or "-m64" to argv_obstack.
32273 (generate_host_descr_file): Likewise, when invoking host_compiler.
32274 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
32277 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32279 * config/sh/sh-mem.cc: Use constant as second operand when emitting
32282 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
32285 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
32286 constant load if constant operand fits into I08.
32288 2015-01-08 Jakub Jelinek <jakub@redhat.com>
32291 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
32292 and TREE_THIS_VOLATILE for MEM_REFs.
32293 (build5_stat): Fix up initialization of TREE_READONLY and
32294 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
32296 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
32299 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
32300 of r for the second alternative of the destination operand.
32302 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
32305 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
32307 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
32309 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
32311 ([-fivar-visibility], [-fvisibility]): Likewise.
32313 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
32315 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
32316 the file where @code, @command, etc is more appropriate.
32318 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
32320 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
32321 of -mrecip= documentation.
32323 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32326 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
32327 correct reload handler if -m32 -mpowerpc64 is used.
32329 2015-01-06 Tom de Vries <tom@codesourcery.com>
32331 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
32333 2015-01-08 Christian Bruel <christian.bruel@st.com>
32336 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
32338 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
32340 PR tree-optimization/63259
32341 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
32342 if optab exists for 16bit byteswap.
32344 2015-01-06 Jakub Jelinek <jakub@redhat.com>
32346 * opts.c (common_handle_option): Add support for
32347 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
32348 * doc/invoke.texi: Document -fno-sanitize=all,
32349 -f{,no-}sanitize-recover=all. Document that
32350 -fsanitize=float-cast-overflow is not enabled
32351 by -fsanitize=undefined. Fix up documentation
32352 of -f{,no-}sanitize-recover.
32354 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
32356 * config.gcc: Add Visium support.
32357 * configure.ac: Likewise.
32358 * configure: Regenerate.
32359 * doc/extend.texi (interrupt attribute): Add Visium.
32360 * doc/invoke.texi: Document Visium options.
32361 * doc/install.texi: Document Visium target.
32362 * doc/md.texi: Document Visium constraints.
32363 * common/config/visium: New directory.
32364 * config/visium: Likewise.
32366 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
32368 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
32369 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
32371 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
32373 * combine.c (combine_validate_cost): Do not count the cost of a
32374 split I2 twice. Do not display it twice in the dump, either.
32376 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
32378 Revert parts of r219199.
32379 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
32381 ([-Wtraditional]): Restore markup on <limits.h>.
32383 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
32386 * doc/invoke.texi: Document -Wsuggest-override.
32388 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
32390 PR rtl-optimization/64287
32391 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
32392 (process_options): Disable flag_ipa_ra if profiling.
32394 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
32396 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
32398 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
32400 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
32401 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
32402 put under #if TARGET_LOOPS guard.
32404 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
32406 * config/i386/i386.c (output_387_binary_op): Use std::swap.
32408 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
32410 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
32411 * rtl.h (refers_to_regno_p): Add overload.
32413 * bt-load.c: Likewise.
32414 * combine.c: Likewise.
32415 * df-scan.c: Likewise.
32416 * sched-deps.c: Likewise.
32417 * config/s390/s390.c: Likewise.
32418 * config/m32r/m32r.c: Likewise.
32419 * config/rs6000/spe.md: Likewise.
32420 * config/rs6000/rs6000.c: Likewise.
32421 * config/pa/pa.c: Likewise.
32422 * config/stormy16/stormy16.c: Likewise.
32423 * config/cris/cris.c: Likewise.
32424 * config/arc/arc.md: Likewise.
32425 * config/arc/arc.c: Likewise.
32426 * config/sh/sh.md: Likewise.
32427 * config/sh/sh.c: Likewise.
32428 * config/frv/frv.c: Likewise.
32430 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32433 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
32434 call as cleanup of the whole body.
32435 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
32436 * tsan.c (replace_func_exit): New function.
32437 (instrument_func_exit): Moved earlier.
32438 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
32439 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
32441 (tsan_pass): Don't call instrument_func_exit.
32442 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
32443 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
32447 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
32448 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
32449 it to libubsan handler instead of EXPR. Fold comparisons earlier,
32450 if the result is integer_zerop, return NULL_TREE.
32451 * convert.c (convert_to_integer): Pass expr as ARG.
32453 PR tree-optimization/64465
32454 * tree-inline.c (redirect_all_calls): During inlining
32455 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
32456 changed the stmt to a non-throwing call.
32458 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
32460 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
32461 etc markup throughout the file.
32463 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32465 Enable experimental TSAN support for Ada.
32466 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
32468 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32470 PR tree-optimization/64494
32471 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
32472 clear SSA_NAME_ANTI_RANGE_P flag.
32474 2015-01-05 Marek Polacek <polacek@redhat.com>
32476 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
32478 2015-01-05 Jakub Jelinek <jakub@redhat.com>
32480 Update copyright years.
32482 * gcc.c (process_command): Update copyright notice dates.
32483 * gcov-dump.c: Ditto.
32485 * doc/cpp.texi: Bump @copying's copyright year.
32486 * doc/cppinternals.texi: Ditto.
32487 * doc/gcc.texi: Ditto.
32488 * doc/gccint.texi: Ditto.
32489 * doc/gcov.texi: Ditto.
32490 * doc/install.texi: Ditto.
32491 * doc/invoke.texi: Ditto.
32493 * auto-profile.c, auto-profile.h: Fix up Copyright line.
32495 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
32497 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
32499 ([-fvtable-verify], [-fvtv-debug]): Likewise.
32500 ([-Wabi]): Likewise.
32501 ([-fmessage-length]): Likewise.
32502 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
32503 ([-Wno-discarded-qualifiers]): Likewise.
32504 ([-Wnodiscarded-array-qualifiers]): Likewise.
32505 ([-Wno-virtual-move-assign]): Likewise.
32506 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
32507 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
32508 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
32509 ([-fsanitize-undefined-trap-on-error]): Likewise.
32510 ([-floop-interchange]): Likewise.
32511 ([-ftree-coalesce-inlined-vars]): Likewise.
32512 ([-fvect-cost-model]): Likewise.
32513 ([-flto]): Likewise.
32514 ([--param]): Likewise.
32515 (Spec Files): Likewise.
32516 ([-mstrict-align]): Likewise.
32517 ([-mfix-cortex-a53-835769]): Likewise.
32518 ([-march], [-mtune]): Likewise.
32519 ([-mpic-register]): Likewise.
32520 ([-munaligned-access]): Likewise.
32521 ([-msp8]): Likewise.
32522 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
32523 (AVR Built-in Macros): Likewise.
32524 ([-mpreferred-stack-boundary]): Likewise.
32525 ([-mtune-crtl]): Likewise.
32526 ([-mashf]): Likewise.
32527 ([-mmcu=]): Likewise.
32528 ([-minrt]): Likewise.
32529 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
32530 ([-mupper-regs]): Likewise.
32531 ([-matomic-model]): Likewise.
32532 ([-mdiv]): Likewise.
32533 ([-mzdcbranch]): Likewise.
32534 ([-mdisable-callt]): Likewise.
32535 ([-msoft-float]): Likewise.
32536 ([-m8byte-align]): Likewise.
32537 ([-fstack-reuse]): Likewise.
32539 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32541 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
32542 Fix markup, light copy-editing.
32543 ([-fauto-profile]): Rewrite to fix formatting and content
32546 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32548 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
32549 Copy-edit description.
32550 ([-fisolate-erroneous-paths-attribute]): Likewise.
32551 * common.opt (fisolate-erroneous-paths-dereference):
32552 Copy-edit description.
32553 (fisolate-erroneous-paths-attribute): Likewise.
32555 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32557 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
32560 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
32562 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
32563 ([-fvtv-debug]): Likewise.
32564 ([-Wc++-compat]): Likewise.
32565 ([-Wc++11-compat]): Likewise.
32566 ([-Wc++14-compat]): Likewise.
32567 ([-Wno-sized-deallocation]): Likewise.
32568 ([-femit-class-debug-always]): Likewise.
32569 ([-femit-struct-debug-detailed]): Likewise.
32570 ([-fno-keep-inline-dllexport]): Likewise.
32571 ([-fira-algorithm]): Likewise.
32572 ([-fira-region]): Likewise.
32573 ([-flra-remat]): Likewise.
32574 ([-fipa-ra]): Likewise.
32575 ([-fhoist-adjacent-loads]): Likewise.
32576 ([-fisolate-erroneous-paths-dereference]): Likewise.
32577 ([-fisolate-erroneous-paths-attribute]): Likewise.
32578 ([-ftree-switch-conversion]): Likewise.
32579 ([-ftree-tail-merge]): Likewise.
32580 ([-ftree-loop-if-convert]): Likewise.
32581 ([-ftree-loop-if-convert-stores]): Likewise.
32582 ([-ftree-loop-distribution]): Likewise.
32583 ([-ftree-loop-distribute-patterns]): Likewise.
32584 ([-flto-compression-level]): Likewise.
32585 ([-flto-report]): Likewise.
32586 ([-flto-report-wpa]): Likewise.
32587 ([-fuse-linker-plugin]): Likewise.
32588 ([-mfix-cortex-a53-835769]): Likewise.
32589 ([-mno-fix-cortex-a53-835769]): Likewise.
32590 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
32591 explicit listing; add a note to the discussion indicating they
32592 exist. Reorder table to group similar options. Add missing
32593 @opindex entries. Add @need commands throughout the table to
32594 allow it to be split across multiple pages.
32595 ([-m8bit-idiv]): Fix @opindex.
32596 ([-mavx256-split-unaligned-load]): Likewise.
32597 ([-mavx256-split-unaligned-store]): Likewise.
32598 ([-mstack-protector-guard]): Likewise.
32599 ([-mcpu=]): Likewise.
32600 ([-mcpu]): Likewise.
32601 ([-mpointer-size=]): Likewise.
32603 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
32605 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
32606 instead of `m' constraint. Likewise for unnamed movb comparison
32607 patterns using reg_before_reload_operand predicate.
32608 * config/pa/predicates.md (reg_before_reload_operand): Tighten
32609 predicate to reject register index and LO_SUM DLT memory forms
32612 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32614 * doc/invoke.texi (Option Summary): Fix spelling of
32615 -fdevirtualize-at-ltrans.
32616 ([-fdevirtualize]): Fix markup.
32617 ([-fdevirtualize-speculatively]): Fix typo.
32618 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
32619 implementor-speaky.
32620 * common.opt (fdevirtualize-at-ltrans): Likewise.
32621 * ipa-devirt.c: Fix typos in comments throughout the file.
32622 (ipa_devirt): Fix typos in format strings for dump output.
32624 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
32626 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
32627 discussion of defaults, light copy-editing.
32629 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
32631 * tsan.c (instrument_expr): corrected previous checkin.
32633 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
32635 Instrument bit field and unaligned accesses for TSAN.
32636 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
32637 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
32638 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
32639 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
32640 unaligned memory regions.
32642 2015-01-01 Anthony Green <green@moxielogic.com>
32644 * config/moxie/predicates.md (moxie_general_movsrc_operand):
32645 Restrict move source register offsets to 16 bits.
32647 Copyright (C) 2015 Free Software Foundation, Inc.
32649 Copying and distribution of this file, with or without modification,
32650 are permitted in any medium without royalty provided the copyright
32651 notice and this notice are preserved.