1 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
4 * internal-fn.c: Don't undef it here.
5 * tree-core.h: Likewise.
7 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
9 * builtins.c (fold_builtin_nan): Delete.
10 (fold_builtin_memcmp): Remove case where both arguments are constant.
11 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
12 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
13 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
14 * fold-const-call.c: Include fold-const.h.
15 (host_size_t_cst_p): New function.
16 (build_cmp_result, fold_const_builtin_nan): Likewise.
17 (fold_const_call_1): New function, split out from...
18 (fold_const_call): ...here (for all three interfaces). Handle
19 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
21 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
23 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
24 (fold_builtin_1): Don't call them.
25 * fold-const-call.c: Include tm.h.
26 (fold_const_call_ss): New variant for integer-to-integer folds.
27 (fold_const_call): Call it.
29 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
31 * builtins.c (fold_builtin_classify): Move constant cases to...
32 * fold-const-call.c (fold_const_call_ss): ...here.
34 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
36 * builtins.h (c_getstr): Move to...
37 * fold-const.h (c_getstr): ...here.
38 * builtins.c (c_getstr): Move to...
39 * fold-const.c (c_getstr): ...here.
41 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
43 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
44 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
46 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
48 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
49 the dominance info; free it if we can't.
50 (pass_call_cdce::execute): Don't free the dominance info here.
52 2015-11-06 Jeff Law <jeff@redhat.com>
54 * tree-ssa-threadedge.c (dummy_simplify): Remove.
55 (thread_around_empty_blocks): Remove backedge_seen_p argument.
56 If we thread to a backedge, then return false. Update recursive
57 call to eliminate backedge_seen_p argument.
58 (thread_through_normal_block): Remove backedge_seen_p argument.
59 Remove backedge_seen_p argument from calls to
60 thread_around_empty_blocks. Remove checks on backedge_seen_p.
61 If we thread to a backedge, then return 0.
62 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
63 pass it to thread_through_normal_block or thread_through_empty_blocks.
64 For joiner handling, if we see a backedge, do not try normal
67 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
69 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
70 * graphite-poly.c (new_scop): Initialize original_schedule.
71 (free_scop): Free original_schedule.
72 * graphite-poly.h (struct scop): Add field original_schedule.
73 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
74 (build_poly_scop): Call build_scop_original_schedule.
76 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
78 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
79 (build_pbb_minimal_scattering_polyhedrons): New.
80 (build_scop_scattering): Remove.
81 (build_scop_minimal_scattering): New.
82 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
83 (build_poly_scop): Call build_scop_minimal_scattering.
85 2015-11-06 Jeff Law <jeff@redhat.com>
87 * cfg-flags.def (IGNORE): New edge flag.
88 * tree-vrp.c (identify_jump_threads): Mark and clear edges
89 scheduled for removal with EDGE_IGNORE around call into
90 jump threader. Do no thread across edges with EDGE_IGNORE,
91 but do allow threading across those with EDGE_DFS_BACK.
93 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
95 * doc/md.texi (multi-alternative constraints): Don't document
96 alternatives inherently tied to reload for the user documentation.
98 2015-11-06 Michael Collison <michael.collison@linaro.org
99 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
102 2015-08-01 Michael Collison <michael.collison@linaro.org
103 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
105 * config/arm/arm.md (*arm_smin_cmp): New pattern.
106 (*arm_umin_cmp): Likewise.
108 2015-11-06 Jakub Jelinek <jakub@redhat.com>
110 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
112 * omp-low.c (check_omp_nesting_restrictions): Update for the
113 various new OpenMP 4.5 nesting restrictions, clarified
114 nesting glossary, closely nested region relationship clarified
115 to mean explicit or implicit parallel regions (target/teams),
116 use %</%> or %qs where appropriate.
118 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
119 Sebastian Pop <s.pop@samsung.com>
121 * graphite-scop-detection.c (loop_is_valid_scop): Call
122 optimize_loop_nest_for_speed_p.
124 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
125 Sebastian Pop <s.pop@samsung.com>
127 * graphite-optimize-isl.c (optimize_isl): Call
128 isl_options_set_schedule_maximize_band_depth.
130 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
131 Sebastian Pop <s.pop@samsung.com>
133 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
134 and exit edges should not be a part of irreducible loop.
135 (scop_detection::can_represent_loop_1): Loops should not be
137 (scop_detection::harmful_stmt_in_region): All the basic block
138 should belong to reducible loops.
140 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
142 * config/aarch64/aarch64-simd-builtins.def: Update builtins
143 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
144 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
145 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
146 (aarch64_tbx4v8qi): Rename to...
147 aarch64_tbx4<mode>): ... this.
148 (aarch64_qtbl3<mode>): New pattern.
149 (aarch64_qtbx3<mode>): New pattern.
150 (aarch64_qtbl4<mode>): New pattern.
151 (aarch64_qtbx4<mode>): New pattern.
152 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
153 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
154 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
155 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
156 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
157 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
158 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
159 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
162 2015-11-06 Mike Stump <mikestump@comcast.net>
165 * dwarf2out.c (get_full_len): Return a value based upon the actual
166 precision needed for the value.
167 (add_const_value_attribute): Use a maximal wide-int for
168 CONST_WIDE_INTs, not VOIDmode.
169 (output_die): Don't ever output NULL with printf.
171 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
172 BLKmode nor VOIDmode values.
174 2015-11-06 David Malcolm <dmalcolm@redhat.com>
176 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
178 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
179 * diagnostic-core.h (warning_at_rich_loc): New declaration.
180 (error_at_rich_loc): New declaration.
181 (permerror_at_rich_loc): New declaration.
182 (inform_at_rich_loc): New declaration.
183 * diagnostic-show-locus.c (adjust_line): Delete.
184 (struct point_state): New struct.
185 (class colorizer): New class.
186 (class layout_point): New class.
187 (class layout_range): New class.
188 (struct line_bounds): New.
189 (class layout): New class.
190 (colorizer::colorizer): New ctor.
191 (colorizer::~colorizer): New dtor.
192 (layout::layout): New ctor.
193 (layout::print_source_line): New method.
194 (layout::print_annotation_line): New method.
195 (layout::get_state_at_point): New method.
196 (layout::get_x_bound_for_row): New method.
197 (diagnostic_show_locus): Reimplement in terms of class layout.
198 (diagnostic_print_caret_line): Delete.
199 * diagnostic.c (diagnostic_initialize): Replace
200 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
201 (diagnostic_set_info_translated): Convert param from location_t
202 to rich_location *. Eliminate calls to set_location on the
203 message in favor of storing the rich_location ptr there.
204 (diagnostic_set_info): Convert param from location_t to
206 (diagnostic_build_prefix): Break out array into...
207 (diagnostic_kind_color): New variable.
208 (diagnostic_get_color_for_kind): New function.
209 (diagnostic_report_diagnostic): Colorize the option_text
210 using the color for the severity.
211 (diagnostic_append_note): Update for change in signature of
213 (diagnostic_append_note_at_rich_loc): New function.
214 (emit_diagnostic): Update for change in signature of
217 (inform_at_rich_loc): New function.
218 (inform_n): Update for change in signature of diagnostic_set_info.
220 (warning_at): Likewise.
221 (warning_at_rich_loc): New function.
222 (warning_n): Update for change in signature of diagnostic_set_info.
224 (permerror): Likewise.
225 (permerror_at_rich_loc): New function.
226 (error): Update for change in signature of diagnostic_set_info.
228 (error_at): Likewise.
229 (error_at_rich_loc): New function.
230 (sorry): Update for change in signature of diagnostic_set_info.
231 (fatal_error): Likewise.
232 (internal_error): Likewise.
233 (internal_error_no_backtrace): Likewise.
234 (source_range::debug): New function.
235 * diagnostic.h (struct diagnostic_info): Eliminate field
236 "override_column". Add field "richloc".
237 (struct diagnostic_context): Add field "colorize_source_p".
238 (diagnostic_override_column): Delete.
239 (diagnostic_set_info): Convert param from location_t to
241 (diagnostic_set_info_translated): Likewise.
242 (diagnostic_append_note_at_rich_loc): New function.
243 (diagnostic_num_locations): New function.
244 (diagnostic_expand_location): Get the location from the
246 (diagnostic_print_caret_line): Delete.
247 (diagnostic_get_color_for_kind): New declaration.
248 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
249 (error_cb): Update for change in signature of "error" callback.
250 (fatal_at): Likewise.
251 (warning_at): Likewise.
252 * input.c (linemap_client_expand_location_to_spelling_point): New.
253 * pretty-print.c (text_info::set_range): New method.
254 (text_info::get_location): New method.
255 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
256 (struct text_info): Eliminate "locations" array in favor of
257 "m_richloc", a rich_location *.
258 (textinfo::set_location): Add a "caret_p" param, and reimplement
259 in terms of a call to set_range.
260 (textinfo::get_location): Eliminate inline implementation in favor of
261 an out-of-line reimplementation.
262 (textinfo::set_range): New method.
263 * rtl-error.c (diagnostic_for_asm): Update for change in signature
264 of diagnostic_set_info.
265 * tree-diagnostic.c (default_tree_printer): Update for new
266 "caret_p" param for textinfo::set_location.
267 * tree-pretty-print.c (percent_K_format): Likewise.
269 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
272 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
273 * config/aarch64/aarch64.c
274 (aarch64_can_use_per_function_literal_pools_p): New.
275 (aarch64_use_blocks_for_constant_p): Adjust declaration
276 and use aarch64_can_use_function_literal_pools_p.
277 (aarch64_select_rtx_section): Update.
279 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
281 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
282 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
283 (arm_output_multireg_pop): Likewise.
284 (output_move_double): Likewise.
285 (output_move_quad): Likewise.
286 (output_return_instruction): Likewise.
287 (arm_print_operand): Remove support for %( and %. print modifiers.
288 (arm_output_shift): Make unified asm.
289 (arm_declare_function_name): Likewise.
290 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
291 (ASM_APP_OFF): Adjust.
292 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
293 (ASM_OUTPUT_REG_POP): Likewise.
294 * config/arm/arm.md: Adjust uses of %., %(, %)
295 * config/arm/sync.md: Likewise.
296 * config/arm/thumb2.md: Likewise.
297 * config/arm/ldmstm.md: Regenerate.
298 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
299 * doc/invoke.texi (masm-unified-syntax): Update documentation.
301 2015-11-06 David Malcolm <dmalcolm@redhat.com>
303 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
305 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
307 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
308 add OEP_MATCH_SIDE_EFFECTS.
309 * fold-const.c (operand_equal_p): Update documentation; handle
310 OEP_MATCH_SIDE_EFFECTS.
311 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
312 OEP_MATCH_SIDE_EFFECTS.
314 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
315 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
317 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
318 * config/aarch64/aarch64-protos.h: Declare.
319 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
321 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
322 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation code when
324 * config/aarch64/aarch64.md: Added enum entries.
325 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
326 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common macros for
328 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
329 frsqrts and frsqrte are not emitted.
330 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure frsqrts and
332 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
334 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
338 * ipa-polymorphic-call.c
339 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
340 issue when offset is out of range.
341 (contains_type_p): Fix out of range check, clear dynamic flag.
343 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
345 * config.gcc (e6500): Fix cpu_is_64bit typo.
347 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
349 * tree-sra.c (completely_scalarize): Properly handle negative array
350 indices using offset_int.
352 2015-11-06 Richard Biener <rguenther@suse.de>
354 * alloc-pool.h (object_allocator::allocate): Default-initialize
357 2015-11-06 Richard Biener <rguenther@suse.de>
359 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
360 * lra.c (init_reg_info): Truncate copy_vec instead of
361 re-allocating a new one and leaking the old.
362 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
364 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
365 * postreload-gcse.c (free_mem): Free modify_mem_list and
366 canon_modify_mem_list.
368 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
370 PR tree-optimization/68145
371 * tree-vect-stmts.c (vectorizable_operation): Fix
372 determination for booleans.
374 2015-11-06 Tom de Vries <tom@codesourcery.com>
376 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
377 cond_jump, instead of split after last nondebug insn before cond_jump.
378 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
381 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
384 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
385 subregs from accumulator and make sure it's a register.
387 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
389 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
391 (reduc_uplus_<mode>): Remove.
392 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
393 loongson_extract_lo_<mode>.
394 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
395 reduc_smax_<mode>, reduc_smax_<mode>, use vec
396 loongson_extract_lo_<mode>.
397 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
399 2015-11-06 Richard Biener <rguenther@suse.de>
401 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
403 (vect_stmt_in_region_p): Declare.
404 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
405 (destroy_bb_vec_info): Likewise.
406 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
407 (vect_get_and_check_slp_defs): Likewise.
408 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
409 (vect_slp_bb): Likewise.
410 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
411 in terms of vect_stmt_in_region_p.
412 (vect_pattern_recog): Iterate over the BB region.
413 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
414 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
415 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
416 * config/i386/i386.c: Include gimple-iterator.h.
417 * config/aarch64/aarch64.c: Likewise.
419 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
421 PR rtl-optimization/67753
422 PR rtl-optimization/64164
423 * function.c (assign_parm_setup_block): Avoid allocating a
424 stack slot if we don't have an ABI-reserved one. Emit the
425 copy to target_reg in the conversion seq if the copy from
426 entry_parm is in it too. Don't use the conversion seq to copy
427 a PARALLEL to a REG or a CONCAT.
429 2015-11-06 Richard Biener <rguenther@suse.de>
431 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
434 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
435 Thomas Schwinge <thomas@codesourcery.com>
436 James Norris <jnorris@codesourcery.com>
439 * gimplify.c (gimplify_scan_omp_clauses): Add support for
440 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
441 (gimplify_adjust_omp_clauses): Likewise.
442 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
443 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
444 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
445 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
446 (omp_clause_code_name): Likewise.
447 (walk_tree_1): Handle OMP_CLAUSE_TILE.
448 * tree.h (OMP_TILE_LIST): New macro.
450 2015-11-05 Martin Sebor <msebor@redhat.com>
453 * doc/invoke.texi (-Wplacement-new): Document new option.
455 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
457 PR tree-optimization/65963
458 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
459 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
461 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
463 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
464 (noce_convert_multiple_sets): Likewise.
465 (noce_process_if_block): Call them.
467 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
469 * gimple-fold.c: Include omp-low.h.
470 (fold_internal_goacc_dim): New.
471 (gimple_fold_call): Call it.
473 2015-11-05 Jakub Jelinek <jakub@redhat.com>
474 Ilya Verbin <ilya.verbin@intel.com>
477 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
478 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
479 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
480 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
481 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
482 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
483 (struct cgraph_simd_clone_arg): Adjust comment.
484 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
485 to GOMP_target_ext. Add num_teams and thread_limit arguments.
486 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
487 to GOMP_target_data_ext.
488 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
489 to GOMP_target_update_ext.
490 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
491 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
492 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
493 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
494 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
495 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
496 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
497 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
498 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
499 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
500 * tree-core.h (enum omp_clause_schedule_kind): Add
501 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
502 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
503 OMP_CLAUSE_SCHEDULE_LAST value.
504 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
505 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
506 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
507 OMP_FOR_CHECK. Remove comment.
508 * tree-pretty-print.c (dump_omp_clause): Handle
509 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
510 Simplify. Print schedule clause modifiers.
511 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
512 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
514 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
515 (omp_default_clause): Tweak for
516 private/firstprivate/is_device_ptr variables on target
517 construct and use_device_ptr on target data.
518 (omp_check_private): Likewise.
519 (omp_notice_variable): For references check whether what it refers
520 to has mappable type, rather than the reference itself.
521 (omp_is_private): Diagnose linear iteration variables on non-simd
523 (omp_no_lastprivate): Return true only for Fortran.
524 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
525 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
526 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
527 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
528 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
529 lastprivate and linear when combined with distribute. Gimplify
530 variable low-bound for array reduction. Look through
531 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
533 (gimplify_adjust_omp_clauses_1): For implicit references to
534 variables with reference type and when not ref to scalar or
535 ref to pointer, map what they refer to using tofrom and
536 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
537 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
538 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
539 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
540 Diagnose the same var on both firstprivate and lastprivate on
541 distribute construct.
542 (gimplify_omp_for): Fix up handling of predetermined
543 lastprivate or linear iter vars when combined with distribute.
544 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
546 (gimplify_omp_workshare): Call optimize_target_teams.
547 * omp-low.c (struct omp_region): Add sched_modifiers field.
548 (struct omp_for_data): Likewise.
549 (omp_any_child_fn_dumped): New variable.
550 (extract_omp_for_data): Fill in sched_modifiers, and mask out
551 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
553 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
554 bits of OMP_CLAUSE_SCHED_KIND.
555 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
556 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
557 for array section reductions.
558 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
559 for distribute parallel for, if there are lastprivate clauses on the
561 (lower_rec_input_clauses): Handle non-zero low-bound on array
563 (lower_reduction_clauses): Likewise.
564 (lower_send_clauses): Look through POINTER_PLUS_EXPR
565 for array section reductions.
566 (expand_parallel_call): Use nonmonotonic entrypoints for
567 nonmonotonic: dynamic/guided.
568 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
569 child_fn if current_function_decl has assembler name set, but child_fn
570 does not. Dump the header and IL of the child function when not in SSA
572 (expand_omp_target): Likewise. Pass num_teams and thread_limit
573 arguments to BUILT_IN_GOMP_TARGET.
574 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
575 Initialize the extra _looptemp_ clause to fd->loop.n2.
576 (expand_omp_for): Use nonmonotonic entrypoints for
577 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
578 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
579 again if we have dumped any child functions.
580 (lower_omp_for_lastprivate): Determine the right count variable
581 for distribute simd, or distribute parallel for{, simd}.
582 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
583 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
585 (simd_clone_clauses_extract): Handle variable step
586 for references and arguments passed by reference.
587 (simd_clone_mangle): Mangle ref/uval/val variable steps.
588 (simd_clone_adjust_argument_types): Handle
589 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
590 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
591 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
592 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
593 (simd_clone_linear_addend): New function.
594 (simd_clone_adjust): Handle variable step like similarly
595 to constant step, use simd_clone_linear_addend to determine
596 the actual step at runtime.
598 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
600 * target.def (goacc.dim_limit): New hook.
601 * targhooks.h (default_goacc_dim_limit): Declare.
602 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
603 * doc/tm.texi: Rebuilt.
604 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
605 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
606 (default_goacc_dim_limit): New.
607 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
608 (nvptx_goacc_dim_limit) New.
609 (TARGET_GOACC_DIM_LIMIT): Override.
610 * tree-vrp.c: Include omp-low.h, target.h.
611 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
614 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
616 * tree-vect-generic.c (do_compare): Use -1 for true
619 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
621 * config/aarch64/aarch64.c
622 (aarch64_can_use_per_function_literal_pools_p): New.
623 (aarch64_use_blocks_for_constant_p): Adjust declaration
624 and use aarch64_can_use_function_literal_pools_p.
625 (aarch64_select_rtx_section): Update.
627 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
629 * targhooks.c (default_get_mask_mode): Use BLKmode in
630 case target doesn't support required vector mode.
631 * stor-layout.c (layout_type); Check for BLKmode.
633 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
634 Sebastian Pop <s.pop@samsung.com>
636 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
637 Remove use of parameter_rename_map.
639 (copy_internal_parameters): Remove.
640 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
641 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
642 (free_sese_info): Do not free parameter_rename_map.
643 (set_rename): Do not use parameter_rename_map.
644 (rename_uses): Update call to set_rename.
645 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
646 * sese.h (parameter_rename_map_t): Remove.
647 (struct sese_info_t): Remove field parameter_rename_map.
649 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
650 Sebastian Pop <s.pop@samsung.com>
652 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
653 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
654 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
656 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
657 (isl_id_for_pbb): Use a buffer of size 10.
658 (isl_id_for_ssa_name): Same.
659 * sese.c (set_rename): Add more dumps.
661 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
663 * omp-low.c (struct omp_context): Remove reduction_map field.
664 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
665 (new_omp_context, delete_omp_context, scan_omp_target): Remove
666 reduction_map handling.
667 (lower_omp_target): Remove obsolete openacc reduction handling.
669 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
671 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
673 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
674 Cesar Philippidis <cesar@codesourcery.com>
676 * config/nvptx/nvptx.c: Include gimple headers.
677 (worker_red_size, worker_red_align, worker_red_name,
678 worker_red_sym): New.
679 (nvptx_option_override): Initialize worker reduction buffer.
680 (nvptx_file_end): Write out worker reduction buffer var.
681 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
682 nvptx_expand_cmp_swap): New builtin expanders.
683 (enum nvptx_builtins): New.
684 (nvptx_builtin_decls): New.
685 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
686 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
687 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
688 nvptx_lockless_update): New helpers.
689 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
690 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
691 (nvptx_goacc_reduction): New.
692 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
693 TARGET_BUILTIN_DECL): Override.
694 (TARGET_GOACC_REDUCTION): Override.
696 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
697 Cesar Philippidis <cesar@codesourcery.com>
699 * internal-fn.def (GOACC_REDUCTION): New.
700 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
701 * internal-fn.c (expand_GOACC_REDUCTION): New.
702 * target.def (goacc.reduction): New OpenACC hook.
703 * targhooks.h (default_goacc_reduction): Declare.
704 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
705 * doc/tm.texi: Rebuilt.
706 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
707 scan_sharing_clauses): Remove oacc reduction handling here.
708 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
709 (oacc_lower_reduction_var_helper): Delete.
710 (lower_oacc_reductions): New.
711 (lower_reduction_clauses): Don't handle OpenACC reductions here.
712 (lower_oacc_head_tail): Call lower_oacc_reductions.
713 (oacc_gimple_assign, oacc_init_reduction_array,
714 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
715 oacc_process_reduction_data): Delete.
716 (lower_omp_target): Remove old OpenACC reduction handling. Insert
717 dummy OpenACC gang reduction for reductions at outer level.
718 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
719 (default_goacc_reduction): New.
720 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
722 2015-11-04 Martin Liska <mliska@suse.cz>
724 * cgraphunit.c (cgraph_node::expand_thunk): Call
725 allocate_struct_function before init_function_start.
726 (cgraph_node::expand): Use push_cfun and pop_cfun.
727 * config/i386/i386.c (ix86_code_end): Call
728 allocate_struct_function before init_function_start.
729 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
730 * function.c (init_function_start): Move preamble to all
732 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
733 (execute_one_pass): Handle newly added TODO_discard_function.
734 (execute_pass_list_1): Terminate if cfun equals to NULL.
735 (execute_pass_list): Do not push and pop cfun, expect that
737 * tree-pass.h (TODO_discard_function): Define.
739 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
741 * cfganal.c (inverted_post_order_compute): Remove conditional
742 compilation, use flag_checking.
743 * config.in: Regenerate.
744 * configure: Regenerate.
745 * configure.ac: Remove ENABLE_CHECKING.
746 * genconditions.c: Do not #undef ENABLE_CHECKING.
747 * sese.h (bb_in_region): Comment out broken check.
748 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
749 conditional compilation, use flag_checking.
751 2015-11-04 Tom de Vries <tom@codesourcery.com>
753 PR tree-optimization/67742
754 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
756 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
757 (create_variable_info_for_1): Add and handle handle_param parameter.
758 Add restrict handling.
759 (create_variable_info_for): Call create_variable_info_for_1 with extra
761 (make_param_constraints): Drop restrict_name parameter. Ignore
762 vi->only_restrict_pointers.
763 (intra_create_variable_infos): Call create_variable_info_for_1 with
764 extra arg. Remove restrict handling. Call make_param_constraints with
767 2015-11-04 Tom de Vries <tom@codesourcery.com>
769 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
772 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
774 * config/arm/coff.h: Remove.
776 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
778 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
779 check for aggregate types and beef up comment for mode check.
781 2015-11-03 Richard Biener <rguenther@suse.de>
783 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
784 data references here.
785 * tree-vect-loop.c: Include cgraph.h.
786 (vect_analyze_loop_2): Collect data references here.
787 * tree-vect-slp.c (find_bb_location): Inline ...
788 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
789 Factor in vect_slp_transform_bb.
790 (vect_slp_transform_bb): Removed.
791 (vect_slp_analyze_bb_1): Collect data references here.
792 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
794 * tree-vectorizer.h (vect_slp_bb): Declare.
795 (vect_slp_analyze_bb): Remove.
796 (vect_slp_transform_bb): Remove.
797 (find_bb_location): Remove.
798 (vect_analyze_data_refs): Remove stmt count reference parameter.
800 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
802 * multiple_target.c (create_dispatcher_calls): Add target check
804 (create_target_clone): Change assembler name for versioned declarations.
806 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
807 Chung-Lin Tang <cltang@codesourcery.com>
809 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
810 * omp-low.c (check_omp_nesting_restrictions): Allow
811 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
814 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
816 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
817 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
818 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
820 (vmulxq_f32): Likewise.
822 (vmulxq_f64): Rewrite to call fmulx builtin.
823 (vmulxs_f32): Likewise.
824 (vmulxd_f64): Likewise.
825 (vmulx_lane_f32): Remove.
826 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
828 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
830 * config/aarch64/aarch64.md (*movhf_aarch64): Use
831 aarch64_reg_or_fp_zero for second operand.
833 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
835 * gimple-expr.c: Include hash-set.h and rtl.h.
836 (mark_addressable_queue): New var.
837 (mark_addressable): Factor actual marking into...
838 (mark_addressable_1): ... this. Queue it up during expand.
839 (mark_addressable_2): New.
840 (flush_mark_addressable_queue): New.
841 * gimple-expr.h (flush_mark_addressable_queue): Declare.
842 * cfgexpand.c: Include gimple-expr.h.
843 (pass_expand::execute): Flush mark_addressable queue.
845 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
847 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
848 bb_no_side_effects_p tests...
849 (tree_ssa_ifcombine_bb): ... here.
851 PR tree-optimization/68083
852 * tree-ssa-ifcombine.c: Include tree-ssa.h.
853 (bb_no_side_effects_p): Test for undefined uses too.
854 * tree-ssa.c (gimple_uses_undefined_value_p): New.
855 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
857 2015-11-02 Jeff Law <jeff@redhat.com>
859 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
860 cases where the loop latch edge is in the middle of an FSM path.
862 2015-11-03 Tom de Vries <tom@codesourcery.com>
864 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
865 (make_param_constraints): ... this. Add and handle restrict_name
866 parameter. Handle is_full_var case.
867 (intra_create_variable_infos): Use make_param_constraints.
869 2015-11-03 Tom de Vries <tom@codesourcery.com>
871 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
872 make_copy_constraint call with make_constraint_from call.
874 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
876 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
879 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
881 * builtins.h (fold_fma): Move to fold-const-call.h.
882 * builtins.c: Include fold-const-call.h.
883 (mathfn_built_in_2): New function, split out from...
884 (mathfn_built_in_1): ...here.
885 (do_real_to_int_conversion, fold_const_builtin_pow)
886 (fold_const_builtin_logb, fold_const_builtin_significand)
887 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
888 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
889 (fold_builtin_sincos): Use fold_const_call to handle constants.
890 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
891 checks for ERROR_MARK. Use fold_const_call to handle constant
892 folds for math functions.
893 (fold_fma): Move to fold-const-call.c.
894 * fold-const.c: Include fold-const-call.h.
895 * Makefile.in (OBJS): Add fold-const-call.o.
896 (PLUGIN_HEADERS): Add fold-const-call.h.
897 * realmpfr.h (real_from_mpfr): Allow the format to be specified
899 * realmpfr.c (real_from_mpfr): Likewise.
900 * fold-const-call.h, fold-const-call.c: New files.
902 2015-11-02 Julian Brown <julian@codesourcery.com>
904 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
905 brackets and semicolon.
907 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
910 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
912 PR tree-optimization/65963
913 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
914 LSHIFT_EXPRs as equivalent MULT_EXPRs.
916 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
919 * fold-const.c: Include "md5.h".
921 2015-11-01 Jeff Law <jeff@redhat.com>
923 * vmsdbgout.c: Revert unused header file reduction patch.
925 * config/mcore/mcore.c: Include regs.h.
927 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
929 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
931 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
933 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
934 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
935 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
937 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
939 * ggc-common.c: Restore needed header for checking=release.
941 2015-10-31 Tom de Vries <tom@codesourcery.com>
943 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
945 2015-10-31 Tom de Vries <tom@codesourcery.com>
947 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
948 existing varinfo for arguments.
950 2015-10-31 Tom de Vries <tom@codesourcery.com>
952 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
953 create_function_info_for. Dump constraints generated during
954 create_function_info_for. Move intra_create_variable_infos call and
955 function-return-values-escape bit to ...
956 (create_function_info_for): ... here, and merge
957 intra_create_variable_infos call with argument loop. Add and handle
958 nonlocal_p parameter.
960 2015-10-31 Tom de Vries <tom@codesourcery.com>
962 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
963 updating is alap, and seperated from preceding code. Make sure
964 insert_vi_for_tree is seperated from surrounding code.
966 2015-10-31 Tom de Vries <tom@codesourcery.com>
968 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
970 2015-10-30 Jeff Law <jeff@redhat.com>
971 Nathan Sidwell <nathan@acm.org>
973 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
975 (MOVE_MAX): Set to 8.
977 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
979 * cgraph.c: Include context.h for offloading.
980 * varpool.c: Include context.h and omp-low.h.
982 2015-10-30 Anatoly Sokolov <aesok@post.ru>
984 * rtl.h (contains_symbol_ref_p): Declare.
985 (SYMBOL_REF_P): Define.
986 * rtlanal.c (contains_symbol_ref_p: New function.
987 * lra-constraints.c (contains_symbol_ref_p): Remove.
988 * var-tracking.c (contains_symbol_ref): Remove.
989 (track_expr_p): Use contains_symbol_ref_p instead of
992 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
994 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
995 * fold-const.c (get_array_ctor_element_at_index): New.
996 (fold): Remove binary-search through CONSTRUCTOR, call previous.
998 * fold-const.h (get_array_ctor_element_at_index): New.
1000 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1002 * Makefile.in (OBJS): Add multiple_target.o.
1003 * attrib.c (make_attribute): Moved from config/i386/i386.c
1004 * config/i386/i386.c (make_attribute): Deleted.
1005 * multiple_target.c (create_dispatcher_calls): New.
1006 (get_attr_len): Ditto.
1007 (get_attr_str): Ditto.
1008 (separate_attrs): Ditto.
1009 (is_valid_asm_symbol): Ditto.
1010 (create_new_asm_name): Ditto.
1011 (create_target_clone): Ditto.
1012 (expand_target_clones): Ditto.
1013 (ipa_target_clone): Ditto.
1014 (ipa_dispatcher_calls): Ditto.
1015 * passes.def (pass_target_clone): Two new ipa passes.
1016 * tree-pass.h (make_pass_target_clone): Ditto.
1017 * doc/extend.texi (target_clones): New attribute description.
1019 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
1021 PR rtl-optimization/68106
1022 * lra-remat.c (input_regno_present_p): Process hard regs
1023 explicitly present in machine description insns.
1024 (call_used_input_regno_present_p): Ditto.
1025 (calculate_gen_cands): Ditto.
1028 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
1030 * config/arm/neon-testgen.ml: Fix comment typo.
1032 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1034 * rtlanal.c (reg_set_p): Expand function comment.
1036 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
1038 * alias.c: Remove unused headers.
1040 * attribs.c: Likewise.
1041 * auto-inc-dec.c: Likewise.
1042 * auto-profile.c: Likewise.
1043 * bb-reorder.c: Likewise.
1044 * bitmap.c: Likewise.
1045 * bt-load.c: Likewise.
1046 * builtins.c: Likewise.
1047 * caller-save.c: Likewise.
1048 * calls.c: Likewise.
1051 * cfganal.c: Likewise.
1052 * cfgbuild.c: Likewise.
1053 * cfgcleanup.c: Likewise.
1054 * cfgexpand.c: Likewise.
1055 * cfghooks.c: Likewise.
1056 * cfgloop.c: Likewise.
1057 * cfgloopanal.c: Likewise.
1058 * cfgloopmanip.c: Likewise.
1059 * cfgrtl.c: Likewise.
1060 * cgraph.c: Likewise.
1061 * cgraphbuild.c: Likewise.
1062 * cgraphclones.c: Likewise.
1063 * cgraphunit.c: Likewise.
1064 * cilk-common.c: Likewise.
1065 * combine-stack-adj.c: Likewise.
1066 * combine.c: Likewise.
1067 * compare-elim.c: Likewise.
1068 * convert.c: Likewise.
1069 * coverage.c: Likewise.
1070 * cppbuiltin.c: Likewise.
1071 * cprop.c: Likewise.
1073 * cselib.c: Likewise.
1074 * data-streamer-in.c: Likewise.
1075 * data-streamer-out.c: Likewise.
1076 * data-streamer.c: Likewise.
1077 * dbxout.c: Likewise.
1080 * debug.c: Likewise.
1081 * df-core.c: Likewise.
1082 * df-problems.c: Likewise.
1083 * df-scan.c: Likewise.
1085 * dojump.c: Likewise.
1086 * dominance.c: Likewise.
1087 * domwalk.c: Likewise.
1088 * double-int.c: Likewise.
1090 * dumpfile.c: Likewise.
1091 * dwarf2asm.c: Likewise.
1092 * dwarf2cfi.c: Likewise.
1093 * dwarf2out.c: Likewise.
1094 * emit-rtl.c: Likewise.
1095 * except.c: Likewise.
1096 * explow.c: Likewise.
1097 * expmed.c: Likewise.
1099 * final.c: Likewise.
1100 * fixed-value.c: Likewise.
1101 * fold-const.c: Likewise.
1102 * function.c: Likewise.
1103 * fwprop.c: Likewise.
1105 * generic-match-head.c: Likewise.
1106 * ggc-common.c: Likewise.
1107 * gimple-builder.c: Likewise.
1108 * gimple-expr.c: Likewise.
1109 * gimple-fold.c: Likewise.
1110 * gimple-iterator.c: Likewise.
1111 * gimple-low.c: Likewise.
1112 * gimple-match-head.c: Likewise.
1113 * gimple-pretty-print.c: Likewise.
1114 * gimple-ssa-isolate-paths.c: Likewise.
1115 * gimple-ssa-strength-reduction.c: Likewise.
1116 * gimple-streamer-in.c: Likewise.
1117 * gimple-streamer-out.c: Likewise.
1118 * gimple-walk.c: Likewise.
1119 * gimple.c: Likewise.
1120 * gimplify-me.c: Likewise.
1121 * gimplify.c: Likewise.
1122 * godump.c: Likewise.
1123 * graph.c: Likewise.
1124 * graphds.c: Likewise.
1125 * haifa-sched.c: Likewise.
1126 * hw-doloop.c: Likewise.
1127 * ifcvt.c: Likewise.
1128 * init-regs.c: Likewise.
1129 * internal-fn.c: Likewise.
1130 * ipa-chkp.c: Likewise.
1131 * ipa-comdats.c: Likewise.
1132 * ipa-cp.c: Likewise.
1133 * ipa-devirt.c: Likewise.
1134 * ipa-icf-gimple.c: Likewise.
1135 * ipa-icf.c: Likewise.
1136 * ipa-inline-analysis.c: Likewise.
1137 * ipa-inline-transform.c: Likewise.
1138 * ipa-inline.c: Likewise.
1139 * ipa-polymorphic-call.c: Likewise.
1140 * ipa-profile.c: Likewise.
1141 * ipa-prop.c: Likewise.
1142 * ipa-pure-const.c: Likewise.
1143 * ipa-ref.c: Likewise.
1144 * ipa-reference.c: Likewise.
1145 * ipa-split.c: Likewise.
1146 * ipa-utils.c: Likewise.
1147 * ipa-visibility.c: Likewise.
1149 * ira-build.c: Likewise.
1150 * ira-color.c: Likewise.
1151 * ira-conflicts.c: Likewise.
1152 * ira-costs.c: Likewise.
1153 * ira-emit.c: Likewise.
1154 * ira-lives.c: Likewise.
1157 * langhooks.c: Likewise.
1159 * lists.c: Likewise.
1160 * loop-doloop.c: Likewise.
1161 * loop-init.c: Likewise.
1162 * loop-invariant.c: Likewise.
1163 * loop-iv.c: Likewise.
1164 * loop-unroll.c: Likewise.
1165 * lower-subreg.c: Likewise.
1166 * lra-assigns.c: Likewise.
1167 * lra-coalesce.c: Likewise.
1168 * lra-constraints.c: Likewise.
1169 * lra-eliminations.c: Likewise.
1170 * lra-lives.c: Likewise.
1171 * lra-remat.c: Likewise.
1172 * lra-spills.c: Likewise.
1174 * lto-cgraph.c: Likewise.
1175 * lto-compress.c: Likewise.
1176 * lto-opts.c: Likewise.
1177 * lto-section-in.c: Likewise.
1178 * lto-section-out.c: Likewise.
1179 * lto-streamer-in.c: Likewise.
1180 * lto-streamer-out.c: Likewise.
1181 * lto-streamer.c: Likewise.
1183 * mode-switching.c: Likewise.
1184 * modulo-sched.c: Likewise.
1185 * optabs.c: Likewise.
1186 * opts-global.c: Likewise.
1187 * passes.c: Likewise.
1188 * plugin.c: Likewise.
1189 * postreload-gcse.c: Likewise.
1190 * postreload.c: Likewise.
1191 * predict.c: Likewise.
1192 * print-tree.c: Likewise.
1193 * profile.c: Likewise.
1195 * realmpfr.c: Likewise.
1196 * recog.c: Likewise.
1198 * reg-stack.c: Likewise.
1199 * regcprop.c: Likewise.
1200 * reginfo.c: Likewise.
1201 * regrename.c: Likewise.
1202 * regstat.c: Likewise.
1203 * reload.c: Likewise.
1204 * reload1.c: Likewise.
1205 * reorg.c: Likewise.
1206 * resource.c: Likewise.
1207 * rtl-chkp.c: Likewise.
1208 * rtl-error.c: Likewise.
1209 * rtlanal.c: Likewise.
1210 * rtlhooks.c: Likewise.
1211 * sanopt.c: Likewise.
1212 * sched-deps.c: Likewise.
1213 * sched-ebb.c: Likewise.
1214 * sched-rgn.c: Likewise.
1215 * sdbout.c: Likewise.
1216 * sel-sched-dump.c: Likewise.
1217 * sel-sched-ir.c: Likewise.
1218 * sel-sched.c: Likewise.
1220 * shrink-wrap.c: Likewise.
1221 * simplify-rtx.c: Likewise.
1222 * stack-ptr-mod.c: Likewise.
1223 * statistics.c: Likewise.
1225 * stor-layout.c: Likewise.
1226 * store-motion.c: Likewise.
1227 * stringpool.c: Likewise.
1228 * symtab.c: Likewise.
1229 * target-globals.c: Likewise.
1230 * targhooks.c: Likewise.
1231 * toplev.c: Likewise.
1232 * tracer.c: Likewise.
1233 * trans-mem.c: Likewise.
1234 * tree-affine.c: Likewise.
1235 * tree-call-cdce.c: Likewise.
1236 * tree-cfg.c: Likewise.
1237 * tree-cfgcleanup.c: Likewise.
1238 * tree-chkp-opt.c: Likewise.
1239 * tree-chkp.c: Likewise.
1240 * tree-chrec.c: Likewise.
1241 * tree-complex.c: Likewise.
1242 * tree-data-ref.c: Likewise.
1243 * tree-dfa.c: Likewise.
1244 * tree-diagnostic.c: Likewise.
1245 * tree-dump.c: Likewise.
1246 * tree-eh.c: Likewise.
1247 * tree-emutls.c: Likewise.
1248 * tree-if-conv.c: Likewise.
1249 * tree-inline.c: Likewise.
1250 * tree-into-ssa.c: Likewise.
1251 * tree-iterator.c: Likewise.
1252 * tree-loop-distribution.c: Likewise.
1253 * tree-nested.c: Likewise.
1254 * tree-nrv.c: Likewise.
1255 * tree-object-size.c: Likewise.
1256 * tree-outof-ssa.c: Likewise.
1257 * tree-parloops.c: Likewise.
1258 * tree-phinodes.c: Likewise.
1259 * tree-predcom.c: Likewise.
1260 * tree-pretty-print.c: Likewise.
1261 * tree-profile.c: Likewise.
1262 * tree-scalar-evolution.c: Likewise.
1263 * tree-sra.c: Likewise.
1264 * tree-ssa-address.c: Likewise.
1265 * tree-ssa-alias.c: Likewise.
1266 * tree-ssa-ccp.c: Likewise.
1267 * tree-ssa-coalesce.c: Likewise.
1268 * tree-ssa-copy.c: Likewise.
1269 * tree-ssa-dce.c: Likewise.
1270 * tree-ssa-dse.c: Likewise.
1271 * tree-ssa-forwprop.c: Likewise.
1272 * tree-ssa-ifcombine.c: Likewise.
1273 * tree-ssa-live.c: Likewise.
1274 * tree-ssa-loop-ch.c: Likewise.
1275 * tree-ssa-loop-im.c: Likewise.
1276 * tree-ssa-loop-ivcanon.c: Likewise.
1277 * tree-ssa-loop-ivopts.c: Likewise.
1278 * tree-ssa-loop-manip.c: Likewise.
1279 * tree-ssa-loop-niter.c: Likewise.
1280 * tree-ssa-loop-prefetch.c: Likewise.
1281 * tree-ssa-loop-unswitch.c: Likewise.
1282 * tree-ssa-loop.c: Likewise.
1283 * tree-ssa-math-opts.c: Likewise.
1284 * tree-ssa-operands.c: Likewise.
1285 * tree-ssa-phiopt.c: Likewise.
1286 * tree-ssa-phiprop.c: Likewise.
1287 * tree-ssa-pre.c: Likewise.
1288 * tree-ssa-propagate.c: Likewise.
1289 * tree-ssa-reassoc.c: Likewise.
1290 * tree-ssa-scopedtables.c: Likewise.
1291 * tree-ssa-sink.c: Likewise.
1292 * tree-ssa-strlen.c: Likewise.
1293 * tree-ssa-structalias.c: Likewise.
1294 * tree-ssa-tail-merge.c: Likewise.
1295 * tree-ssa-ter.c: Likewise.
1296 * tree-ssa-threadupdate.c: Likewise.
1297 * tree-ssa-uncprop.c: Likewise.
1298 * tree-ssa-uninit.c: Likewise.
1299 * tree-ssa.c: Likewise.
1300 * tree-ssanames.c: Likewise.
1301 * tree-stdarg.c: Likewise.
1302 * tree-streamer-in.c: Likewise.
1303 * tree-streamer-out.c: Likewise.
1304 * tree-streamer.c: Likewise.
1305 * tree-switch-conversion.c: Likewise.
1306 * tree-tailcall.c: Likewise.
1307 * tree-vect-data-refs.c: Likewise.
1308 * tree-vect-generic.c: Likewise.
1309 * tree-vect-loop-manip.c: Likewise.
1310 * tree-vect-loop.c: Likewise.
1311 * tree-vect-patterns.c: Likewise.
1312 * tree-vect-slp.c: Likewise.
1313 * tree-vect-stmts.c: Likewise.
1314 * tree-vectorizer.c: Likewise.
1315 * tree-vrp.c: Likewise.
1318 * ubsan.c: Likewise.
1319 * value-prof.c: Likewise.
1320 * var-tracking.c: Likewise.
1321 * varasm.c: Likewise.
1322 * varpool.c: Likewise.
1323 * vmsdbgout.c: Likewise.
1324 * vtable-verify.c: Likewise.
1326 * wide-int-print.cc: Likewise.
1327 * wide-int.cc: Likewise.
1328 * xcoffout.c: Likewise.
1330 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
1332 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
1333 between pass numbering and execution order.
1335 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1337 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
1338 check for dependencies.
1340 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1342 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
1345 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1347 * real.h (format_helper): New.
1348 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
1349 (real_from_target, real_nan, real_2expN, real_value_truncate)
1350 (significand_size, real_from_string2, exact_real_inverse)
1351 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
1352 (real_round, real_isinteger, real_from_integer): Replace
1353 machine_mode arguments with format_helper arguments.
1354 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
1355 (real_from_integer, real_nan, real_2expN, real_convert)
1356 (real_value_truncate, exact_real_truncate, real_to_target)
1357 (real_from_target, significand_size, real_powi, real_trunc)
1358 (real_floor, real_ceil, real_round, real_isinteger): Replace
1359 machine_mode arguments with format_helper arguments.
1360 (real_to_target_fmt, real_from_target_fmt): Delete.
1361 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
1362 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
1363 argument with real_format.
1364 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
1366 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1368 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
1369 (fixed_to_decimal, fixed_convert_from_real)
1370 (real_convert_from_fixed): Fix mode arguments to real_2expN.
1372 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
1374 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
1375 SCALAR_FLOAT_MODE_P.
1377 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
1379 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
1380 (completely_scalarize): Comment zero-length arrays.
1381 (get_access_replacement): Correct comment re. precondition.
1383 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1385 * config/i386/i386.c (get_builtin_code_for_version): Set priority
1386 for PROCESSOR_ZNVER1.
1387 (enum processor_model): Add M_AMDFAM17H_znver1.
1388 (struct arch_names_table): Likewise.
1389 * doc/extend.texi: ADD znver1.
1391 2015-10-30 Richard Biener <rguenther@suse.de>
1393 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
1394 fold () on single RHSs. Allow CONSTRUCTORS with trailing
1395 zeros to be folded to VECTOR_CSTs.
1396 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
1397 * fold-const.c (fold): Use build_vector_from_ctor.
1399 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
1401 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
1402 "mov %0.h[0], %1.h[0] to "neon_move".
1403 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
1404 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
1406 (*cmovsi_insn_uxtw): Likewise.
1408 2015-10-30 Tom de Vries <tom@codesourcery.com>
1410 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
1411 unsigned, and initialize, and use initial value instead of hardcoded
1412 constant. Add generic constraints dumping section. Don't dump global
1413 initializers constraints dumping section if empty. Don't update
1414 variable from if unused.
1416 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
1418 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
1419 flag_checking and/or CHECKING_P to eliminate conditional compilation
1421 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
1422 * config/bfin/bfin.c (hwloop_optimize): Likewise.
1423 * config/i386/i386.c (ix86_print_operand_address): Likewise.
1424 (output_387_binary_op): Likewise.
1425 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
1426 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
1427 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
1429 * config/rs6000/rs6000.h: Likewise.
1430 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1432 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
1434 * config/sh/sh.opt (mfdpic): Add missing period.
1436 2015-08-29 Anatoly Sokolov <aesok@post.ru>
1438 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1439 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
1440 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1441 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
1442 mcore_base_register_rtx_p, mcore_legitimate_index_p,
1443 mcore_legitimate_address_p): New functions.
1444 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1446 2015-10-29 Jeff Law <law@redhat.com>
1448 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
1450 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
1451 * tree-ssa-threadedge.c
1452 (record_temporary_equivalences_from_stmts_at_dest): Remove
1453 backedge_seen argument and associated code which invalidated
1454 equivalences based on the value of that argument.
1455 (thread_through_normal_block): Corresponding changes.
1457 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
1459 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
1460 function earlier in the file.
1461 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
1462 df_regs_ever_live_p.
1464 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
1466 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
1469 2015-10-29 Richard Henderson <rth@redhat.com>
1473 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1474 sse check to the exact conditions of PR 67609.
1476 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1478 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
1479 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
1480 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
1481 of the traditional names that TFmode uses for handling IEEE
1482 extended double. If -mfloat128, add KFmode functions for all of
1483 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
1484 make TFmode use the same emulation functions as KFmode.
1485 (init_float128_ibm): Likewise.
1486 (init_float128_ieee): Likewise.
1487 (rs6000_generate_compare): For IEEE 128-bit floating point
1488 comparisons, call the unordered comparison function instead of the
1489 ordered comparison function.
1490 (rs6000_expand_float128_convert): Deal with operands that are
1491 memory operands. Restructure the code to use a switch statement on
1492 the mode. Add support for TFmode defaulting to either IBM extended
1493 double or IEEE 128-bit floating point. If the underlying types are
1494 the same, use a move instead of a conversion function.
1495 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
1496 use for IEEE 128-bit floating point constants with -mfloat128.
1497 (rs6000_c_mode_for_suffix): Likewise.
1498 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
1499 128-bit floating point with IBM extended double floating point.
1500 (rs6000_invalid_binary_op): Likewise.
1501 (rs6000_gen_le_vsx_permute): On little endian systems generate a
1502 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
1503 types that can go in vector registers.
1504 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
1505 point types that can go in vector registers on little endian
1507 (mark_swaps_for_removal): Likewise.
1508 (rs6000_analyze_swaps): Likewise.
1509 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
1511 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
1512 rework IEEE 128-bit floating point insns to deal with TFmode being
1513 either IBM extended double or IEEE 128-bit floating point.
1515 (IBM128): Update iterator to add condition that the mode is IBM
1517 (IEEE128): New iterator for IEEE 128-bit floating point.
1518 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
1519 (FLOAT128): Likewise.
1520 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
1522 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
1523 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
1524 instead of hard coding TFmode or KFmode.
1525 (negtf2_internal): Likewise.
1526 (neg<mode>2_internal): Likewise.
1527 (abs<mode>2): Likewise.
1528 (abstf2_internal): Likewise.
1529 (abs<mode>2_internal): Likewise.
1530 (ieee_128bit_neg<mode>2): Likewise.
1531 (ieee_128bit_neg<mode>2_internal): Likewise.
1532 (ieee_128bit_abs<mode>2): Likewise.
1533 (ieee_128bit_abs<mode>2_internal): Likewise.
1534 (ieee_128bit_nabs<mode>2): Likewise.
1535 (ieee_128bit_nabs<mode>2_internal): Likewise.
1536 (extendiftf2): Add explicit conversions between 128-bit floating
1537 point types. Drop the old conversions that had become unwieldy.
1538 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
1539 (extendifkf2): Likewise.
1540 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
1541 (extendtfkf2): Likewise.
1542 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
1543 (trunciftf2): Likewise.
1544 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
1545 (truncifkf2): Likewise.
1546 (float<SDI:mode><IFKF:mode>2): Likewise.
1547 (trunckftf2): Likewise.
1548 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
1549 (trunctfif2): Likewise.
1550 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
1551 (extenddftf2): Rework 128-bit floating point conversions to
1552 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
1553 KFmode expanders into one function.
1554 (extenddf<mode>2): Likewise.
1555 (extenddftf2_fprs): Likewise.
1556 (extenddf<mode>2_fprs): Likewise.
1557 (extenddftf2_vsx): Likewise.
1558 (extenddf<mode>2_vsx): Likewise.
1559 (extendsftf2): Likewise.
1560 (extendsf<mode>2): Likewise.
1561 (trunctfdf2): Likewise.
1562 (trunc<mode>df2): Likewise.
1563 (trunctfdf2_internal1): Likewise.
1564 (trunc<mode>df2_internal1): Likewise.
1565 (trunctfdf2_internal2): Likewise.
1566 (trunc<mode>df2_internal2): Likewise.
1567 (trunctfsf2): Likewise.
1568 (trunc<mode>sf2): Likewise.
1569 (trunctfsf2_fprs): Likewise.
1570 (trunc<mode>sf2_fprs): Likewise.
1571 (floatsit2f): Likewise.
1572 (floatsi<mode>2): Likewise.
1573 (fix_trunc_helper): Likewise.
1574 (fix_trunc_helper<mode>): Likewise.
1575 (fix_trunctfsi2): Likewise.
1576 (fix_trunc<mode>si2): Likewise.
1577 (fix_trunctfsi2_fprs): Likewise.
1578 (fix_trunc<mode>si2_fprs): Likewise.
1579 (fix_trunctfsi2_internal): Likewise.
1580 (fix_trunc<mode>si2_internal): Likewise.
1581 (fix_trunctfdi2): Likewise.
1582 (fix_trunc<mode>di2): Likewise.
1583 (fixuns_trunctf<mode>2): Likewise.
1584 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1585 (floatditf2): Likewise.
1586 (floatdi<mode>2): Likewise.
1587 (floatuns<mode>tf2): Likewise.
1588 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
1589 (cmptf_internal1): Use a mode iterator to add support for both
1590 types (IFmode, TFmode) that support IBM extended double.
1591 (cmp<mode>_internal1): Likewise.
1592 (cmptf_internal2): Likewise.
1593 (cmp<mode>_internal2): Likewise.
1595 * doc/extend.texi (Floating Types): Document __ibm128 and
1596 __float128 on PowerPC.
1598 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1599 -mfloat128 and -mno-float128.
1601 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1603 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
1604 floating point modes that can go in vector registers.
1605 (MODES_TIEABLE_P): Move tests for vector modes before tests for
1606 scalar floating point, so that IEEE 128-bit floating point that
1607 can go in vector registers bind with vectors and not FP.
1608 (struct rs6000_args): Add libcall field.
1610 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
1611 and -mfloat128-software switches. Replace them with a binary
1613 (-mfloat128): Likewise.
1615 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
1616 128-bit floating point types in GPRs, even if the appropriate
1617 option enabling the type was not used.
1618 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
1620 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
1621 pre-decrement on IEEE 128-bit floating point values.
1622 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
1623 is IEEE 128-bit floating point.
1624 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
1625 128-bit floating point types that can go in vector registers.
1626 (rs6000_option_override_internal): Change -mfloat128-none and
1627 -mfloat128-software to -mfloat128, and move code to be near other
1628 VSX option handling.
1629 (rs6000_option_override_internal): Disable -mfloat128 if we don't
1630 have the Altivec ABI.
1631 (rs6000_init_builtins): Don't make TFmode use either IFmode or
1632 KFmode floating point nodes. Instead, have three separate nodes.
1633 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
1634 eventually moving the long double default to IEEE 128-bit floating
1636 (rs6000_opt_masks): Add -mfloat128.
1637 (struct rs6000_opt_var): Fix typo in comment.
1638 (init_cumulative_args): Initialize libcall field in
1640 (rs6000_function_arg): Treat library functions as if they had
1641 prototypes to prevent IEEE 128-bit support functions from passing
1642 arguments in both GPRs and vector registers.
1643 (rs6000_arg_partial_bytes): Likewise.
1645 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
1646 an option that can be turned on via -mcpu=<xxx>.
1648 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
1651 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1652 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
1653 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
1654 double is IBM extended double.
1656 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
1659 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
1661 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
1662 * genconditions.c: Define CHECKING_P in the generated code.
1663 * genextract.c: Use flag_checking in insn_extract.
1664 * gengtype.c (main): Remove conditional compilation.
1665 * gengtype.h: Likewise.
1667 2015-10-29 Jeff Law <law@redhat.com>
1669 PR tree-optimization/67892
1670 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
1672 (thread_through_normal_block): If we have seen a backedge, then
1673 do nothing. No longer call find_jump_threads_backwards here.
1674 (thread_across_edge): Use find_jump_threads_backwards to find
1675 jump threads if the old style threader was not successful.
1676 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
1677 gsi_last_nondebug_bb. Return NULL if the block does not end
1678 with a control statement.
1679 (find_jump_threads_backwards): Setup code moved here from
1680 tree-ssa-threadedge.c::thread_through_normal_block. Accept
1681 single edge argument instead of name & block.
1682 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
1685 2015-10-29 Tom de Vries <tom@codesourcery.com>
1687 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
1690 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1692 * omp-low.c (lower_omp_target): Remove unreachable code & merge
1695 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
1697 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
1699 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
1701 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
1702 guard_bb0 and use guard_bb throughout.
1704 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
1706 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
1709 2015-10-29 Richard Biener <rguenther@suse.de>
1712 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
1715 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1717 * alias.c: Reorder #include statements and remove duplicates.
1719 * attribs.c: Likewise.
1720 * auto-inc-dec.c: Likewise.
1721 * auto-profile.c: Likewise.
1722 * bb-reorder.c: Likewise.
1723 * bt-load.c: Likewise.
1724 * builtins.c: Likewise.
1725 * caller-save.c: Likewise.
1726 * calls.c: Likewise.
1729 * cfganal.c: Likewise.
1730 * cfgbuild.c: Likewise.
1731 * cfgcleanup.c: Likewise.
1732 * cfgexpand.c: Likewise.
1733 * cfghooks.c: Likewise.
1734 * cfgloop.c: Likewise.
1735 * cfgloopanal.c: Likewise.
1736 * cfgloopmanip.c: Likewise.
1737 * cfgrtl.c: Likewise.
1738 * cgraph.c: Likewise.
1739 * cgraphbuild.c: Likewise.
1740 * cgraphclones.c: Likewise.
1741 * cgraphunit.c: Likewise.
1742 * cilk-common.c: Likewise.
1743 * combine-stack-adj.c: Likewise.
1744 * combine.c: Likewise.
1745 * compare-elim.c: Likewise.
1746 * convert.c: Likewise.
1747 * coverage.c: Likewise.
1748 * cppbuiltin.c: Likewise.
1749 * cprop.c: Likewise.
1751 * cselib.c: Likewise.
1752 * data-streamer-in.c: Likewise.
1753 * data-streamer-out.c: Likewise.
1754 * data-streamer.c: Likewise.
1755 * dbxout.c: Likewise.
1758 * debug.c: Likewise.
1759 * df-core.c: Likewise.
1760 * df-problems.c: Likewise.
1761 * df-scan.c: Likewise.
1763 * dojump.c: Likewise.
1764 * dominance.c: Likewise.
1765 * double-int.c: Likewise.
1767 * dumpfile.c: Likewise.
1768 * dwarf2asm.c: Likewise.
1769 * dwarf2cfi.c: Likewise.
1770 * dwarf2out.c: Likewise.
1771 * emit-rtl.c: Likewise.
1772 * except.c: Likewise.
1773 * explow.c: Likewise.
1774 * expmed.c: Likewise.
1776 * final.c: Likewise.
1777 * fixed-value.c: Likewise.
1778 * fold-const.c: Likewise.
1779 * function.c: Likewise.
1780 * fwprop.c: Likewise.
1782 * generic-match-head.c: Likewise.
1783 * ggc-common.c: Likewise.
1784 * gimple-builder.c: Likewise.
1785 * gimple-expr.c: Likewise.
1786 * gimple-fold.c: Likewise.
1787 * gimple-iterator.c: Likewise.
1788 * gimple-low.c: Likewise.
1789 * gimple-match-head.c: Likewise.
1790 * gimple-pretty-print.c: Likewise.
1791 * gimple-ssa-isolate-paths.c: Likewise.
1792 * gimple-ssa-strength-reduction.c: Likewise.
1793 * gimple-streamer-in.c: Likewise.
1794 * gimple-streamer-out.c: Likewise.
1795 * gimple-walk.c: Likewise.
1796 * gimple.c: Likewise.
1797 * gimplify-me.c: Likewise.
1798 * gimplify.c: Likewise.
1799 * godump.c: Likewise.
1800 * graph.c: Likewise.
1801 * graphite-poly.c: Likewise.
1802 * haifa-sched.c: Likewise.
1803 * hw-doloop.c: Likewise.
1804 * ifcvt.c: Likewise.
1805 * incpath.c: Likewise.
1806 * init-regs.c: Likewise.
1807 * internal-fn.c: Likewise.
1808 * ipa-chkp.c: Likewise.
1809 * ipa-comdats.c: Likewise.
1810 * ipa-cp.c: Likewise.
1811 * ipa-devirt.c: Likewise.
1812 * ipa-icf-gimple.c: Likewise.
1813 * ipa-icf.c: Likewise.
1814 * ipa-inline-analysis.c: Likewise.
1815 * ipa-inline-transform.c: Likewise.
1816 * ipa-inline.c: Likewise.
1817 * ipa-polymorphic-call.c: Likewise.
1818 * ipa-profile.c: Likewise.
1819 * ipa-prop.c: Likewise.
1820 * ipa-pure-const.c: Likewise.
1821 * ipa-ref.c: Likewise.
1822 * ipa-reference.c: Likewise.
1823 * ipa-split.c: Likewise.
1824 * ipa-utils.c: Likewise.
1825 * ipa-visibility.c: Likewise.
1827 * ira-build.c: Likewise.
1828 * ira-color.c: Likewise.
1829 * ira-conflicts.c: Likewise.
1830 * ira-costs.c: Likewise.
1831 * ira-emit.c: Likewise.
1832 * ira-lives.c: Likewise.
1835 * langhooks.c: Likewise.
1837 * lists.c: Likewise.
1838 * loop-doloop.c: Likewise.
1839 * loop-init.c: Likewise.
1840 * loop-invariant.c: Likewise.
1841 * loop-iv.c: Likewise.
1842 * loop-unroll.c: Likewise.
1843 * lower-subreg.c: Likewise.
1844 * lra-assigns.c: Likewise.
1845 * lra-coalesce.c: Likewise.
1846 * lra-constraints.c: Likewise.
1847 * lra-eliminations.c: Likewise.
1848 * lra-lives.c: Likewise.
1849 * lra-remat.c: Likewise.
1850 * lra-spills.c: Likewise.
1852 * lto-cgraph.c: Likewise.
1853 * lto-compress.c: Likewise.
1854 * lto-opts.c: Likewise.
1855 * lto-section-in.c: Likewise.
1856 * lto-section-out.c: Likewise.
1857 * lto-streamer-in.c: Likewise.
1858 * lto-streamer-out.c: Likewise.
1859 * lto-streamer.c: Likewise.
1860 * mode-switching.c: Likewise.
1861 * modulo-sched.c: Likewise.
1862 * omp-low.c: Likewise.
1863 * optabs.c: Likewise.
1864 * opts-global.c: Likewise.
1865 * passes.c: Likewise.
1866 * plugin.c: Likewise.
1867 * postreload-gcse.c: Likewise.
1868 * postreload.c: Likewise.
1869 * predict.c: Likewise.
1870 * print-tree.c: Likewise.
1871 * profile.c: Likewise.
1873 * realmpfr.c: Likewise.
1874 * recog.c: Likewise.
1876 * reg-stack.c: Likewise.
1877 * regcprop.c: Likewise.
1878 * reginfo.c: Likewise.
1879 * regrename.c: Likewise.
1880 * regstat.c: Likewise.
1881 * reload.c: Likewise.
1882 * reload1.c: Likewise.
1883 * reorg.c: Likewise.
1884 * resource.c: Likewise.
1885 * rtl-chkp.c: Likewise.
1886 * rtl-error.c: Likewise.
1887 * rtlanal.c: Likewise.
1888 * rtlhooks.c: Likewise.
1889 * sanopt.c: Likewise.
1890 * sched-deps.c: Likewise.
1891 * sched-ebb.c: Likewise.
1892 * sched-rgn.c: Likewise.
1894 * shrink-wrap.c: Likewise.
1895 * simplify-rtx.c: Likewise.
1896 * stack-ptr-mod.c: Likewise.
1897 * statistics.c: Likewise.
1899 * stor-layout.c: Likewise.
1900 * store-motion.c: Likewise.
1901 * stringpool.c: Likewise.
1902 * symtab.c: Likewise.
1903 * target-globals.c: Likewise.
1904 * targhooks.c: Likewise.
1905 * toplev.c: Likewise.
1906 * tracer.c: Likewise.
1907 * trans-mem.c: Likewise.
1908 * tree-affine.c: Likewise.
1909 * tree-call-cdce.c: Likewise.
1910 * tree-cfg.c: Likewise.
1911 * tree-cfgcleanup.c: Likewise.
1912 * tree-chkp-opt.c: Likewise.
1913 * tree-chkp.c: Likewise.
1914 * tree-chrec.c: Likewise.
1915 * tree-complex.c: Likewise.
1916 * tree-data-ref.c: Likewise.
1917 * tree-dfa.c: Likewise.
1918 * tree-diagnostic.c: Likewise.
1919 * tree-dump.c: Likewise.
1920 * tree-eh.c: Likewise.
1921 * tree-emutls.c: Likewise.
1922 * tree-if-conv.c: Likewise.
1923 * tree-inline.c: Likewise.
1924 * tree-into-ssa.c: Likewise.
1925 * tree-iterator.c: Likewise.
1926 * tree-loop-distribution.c: Likewise.
1927 * tree-nested.c: Likewise.
1928 * tree-nrv.c: Likewise.
1929 * tree-object-size.c: Likewise.
1930 * tree-outof-ssa.c: Likewise.
1931 * tree-parloops.c: Likewise.
1932 * tree-phinodes.c: Likewise.
1933 * tree-predcom.c: Likewise.
1934 * tree-pretty-print.c: Likewise.
1935 * tree-profile.c: Likewise.
1936 * tree-scalar-evolution.c: Likewise.
1937 * tree-sra.c: Likewise.
1938 * tree-ssa-address.c: Likewise.
1939 * tree-ssa-alias.c: Likewise.
1940 * tree-ssa-ccp.c: Likewise.
1941 * tree-ssa-coalesce.c: Likewise.
1942 * tree-ssa-copy.c: Likewise.
1943 * tree-ssa-dce.c: Likewise.
1944 * tree-ssa-dom.c: Likewise.
1945 * tree-ssa-dse.c: Likewise.
1946 * tree-ssa-forwprop.c: Likewise.
1947 * tree-ssa-ifcombine.c: Likewise.
1948 * tree-ssa-live.c: Likewise.
1949 * tree-ssa-loop-ch.c: Likewise.
1950 * tree-ssa-loop-im.c: Likewise.
1951 * tree-ssa-loop-ivcanon.c: Likewise.
1952 * tree-ssa-loop-ivopts.c: Likewise.
1953 * tree-ssa-loop-manip.c: Likewise.
1954 * tree-ssa-loop-niter.c: Likewise.
1955 * tree-ssa-loop-prefetch.c: Likewise.
1956 * tree-ssa-loop-unswitch.c: Likewise.
1957 * tree-ssa-loop.c: Likewise.
1958 * tree-ssa-math-opts.c: Likewise.
1959 * tree-ssa-operands.c: Likewise.
1960 * tree-ssa-phiopt.c: Likewise.
1961 * tree-ssa-phiprop.c: Likewise.
1962 * tree-ssa-pre.c: Likewise.
1963 * tree-ssa-propagate.c: Likewise.
1964 * tree-ssa-reassoc.c: Likewise.
1965 * tree-ssa-sccvn.c: Likewise.
1966 * tree-ssa-scopedtables.c: Likewise.
1967 * tree-ssa-sink.c: Likewise.
1968 * tree-ssa-strlen.c: Likewise.
1969 * tree-ssa-structalias.c: Likewise.
1970 * tree-ssa-tail-merge.c: Likewise.
1971 * tree-ssa-ter.c: Likewise.
1972 * tree-ssa-threadedge.c: Likewise.
1973 * tree-ssa-threadupdate.c: Likewise.
1974 * tree-ssa-uncprop.c: Likewise.
1975 * tree-ssa-uninit.c: Likewise.
1976 * tree-ssa.c: Likewise.
1977 * tree-ssanames.c: Likewise.
1978 * tree-stdarg.c: Likewise.
1979 * tree-streamer-in.c: Likewise.
1980 * tree-streamer-out.c: Likewise.
1981 * tree-streamer.c: Likewise.
1982 * tree-switch-conversion.c: Likewise.
1983 * tree-tailcall.c: Likewise.
1984 * tree-vect-data-refs.c: Likewise.
1985 * tree-vect-generic.c: Likewise.
1986 * tree-vect-loop-manip.c: Likewise.
1987 * tree-vect-loop.c: Likewise.
1988 * tree-vect-patterns.c: Likewise.
1989 * tree-vect-slp.c: Likewise.
1990 * tree-vect-stmts.c: Likewise.
1991 * tree-vectorizer.c: Likewise.
1992 * tree-vrp.c: Likewise.
1995 * ubsan.c: Likewise.
1996 * value-prof.c: Likewise.
1997 * var-tracking.c: Likewise.
1998 * varasm.c: Likewise.
1999 * varpool.c: Likewise.
2000 * vtable-verify.c: Likewise.
2002 * wide-int-print.cc: Likewise.
2003 * wide-int.cc: Likewise.
2004 * xcoffout.c: Likewise.
2006 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
2008 * Makefile.in (NO_PIE_CFLAGS): New.
2009 (NO_PIE_FLAG): Likewise.
2010 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2011 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2012 (BUILD_NO_PIE_CFLAGS): Likewise.
2013 (BUILD_NO_PIE_FLAG): Likewise.
2014 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2015 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2016 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2017 $(BUILD_NO_PIE_CFLAGS).
2018 (BUILD_CXXFLAGS): Likewise.
2019 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2020 $(BUILD_NO_PIE_FLAG).
2021 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
2022 (BUILD_NO_PIE_FLAG): Likewise.
2023 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2024 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2025 * configure: Regenerated.
2027 2015-10-29 Richard Biener <rguenther@suse.de>
2030 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2031 unsigned conditonal negation to ABS_EXPR.
2033 2015-10-29 Richard Biener <rguenther@suse.de>
2035 * gimple-match-head.c (gimple_simplify): Remove premature checking
2036 of builtin_decl_implicit of function calls we simplify.
2038 2015-10-29 Bin Cheng <bin.cheng@arm.com>
2040 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2041 (get_computation_cost_at): Ditto.
2042 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2045 2015-10-28 Tom de Vries <tom@codesourcery.com>
2047 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2050 2015-10-28 Jason Merrill <jason@redhat.com>
2052 * Makefile.in (TAGS): Include libcpp and libiberty.
2054 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2056 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2057 (extract_omp_for_data): Remove OpenACC special handling of
2060 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2061 (struct parallel): Update comment.
2062 (nvptx_reorg): Likewise.
2063 (nvptx_neuter): Cleanup whitespace.
2065 2015-10-28 Richard Henderson <rth@redhat.com>
2067 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2069 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2072 * config/avr/predicates.md (low_io_address_operand): Don't
2073 consider MODE when computing upper bound.
2074 (io_address_operand): Likewise.
2076 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
2078 * fold-const.c (operand_equal_p): Do not verify that types are
2079 compatible for MEM_REFs.
2081 2015-10-28 Richard Biener <rguenther@suse.de>
2083 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2084 in simplifying VEC_COND_EXPR conditions.
2086 2015-10-28 Tom de Vries <tom@codesourcery.com>
2088 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2089 into vi_next of a full_var.
2091 2015-10-28 Tom de Vries <tom@codesourcery.com>
2093 * tree-ssa-structalias.c (new_var_info, make_heapvar)
2094 (make_constraint_from_restrict, make_constraint_from_global_restrict)
2095 (create_function_info_for, create_variable_info_for_1)
2096 (create_variable_info_for): Add and handle add_id parameter.
2097 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2098 (init_base_vars): Add extra argument to calls to new_var_info.
2099 (get_vi_for_tree): Add extra argument to call to
2100 create_variable_info_for.
2101 (process_constraint, do_deref, process_all_all_constraints): Add extra
2102 argument to calls to new_scalar_tmp_constraint_exp.
2103 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2104 argument to calls to make_heapvar.
2105 (make_restrict_var_constraints): Add extra argument to call to
2106 make_constraint_from_global_restrict.
2107 (intra_create_variable_infos): Add extra argument to call to
2108 create_variable_info_for_1.
2109 (ipa_pta_execute): Add extra argument to call to
2110 create_function_info_for.
2112 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2114 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
2115 (sibcall_value): Likewise.
2117 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2119 * config/nvptx/nvptx.h (struct machine_function): Add
2121 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
2122 nvptx_expand_oacc_join): Declare.
2123 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
2124 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
2125 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
2126 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
2127 UNSPECV_JOINING, UNSPECV_JOIN): New.
2128 (BITS, BITD): New mode iterators.
2129 (br_true_uni, br_false_uni): New.
2130 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
2131 (oacc_dim_size, oacc_dim_pos): New.
2132 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
2133 (oacc_fork, oacc_join): New.
2134 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
2135 (worker_load<mode>, worker_store<mode>): New.
2136 (nvptx_barsync): New.
2137 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
2138 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
2139 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
2140 worker_bcast_sym): New.
2141 (nvptx_option_override): Initialize worker broadcast buffer.
2142 (nvptx_emit_forking, nvptx_emit_joining): New.
2143 (nvptx_init_axis_predicate): New.
2144 (nvptx_declare_function_name): Init axis predicates.
2145 (nvptx_expand_call): Add fork/join markers around routine call.
2146 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
2147 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
2148 (nvptx_gen_vcast): New.
2149 (struct wcast_data_t): New.
2150 (enum propagate_mask): New.
2151 (nvptx_gen_wcast): New.
2152 (nvptx_print_operand): Add 'S' case.
2153 (struct parallel): New.
2154 (parallel::parallel, parallel::~parallel): New.
2155 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
2156 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
2157 nvptx_find_par, nvptx_discover_pars): New.
2158 (nvptx_propagate): New.
2159 (vprop_gen, nvptx_vpropagate): New.
2160 (wprop_gen, nvptx_wpropagate): New.
2162 (nvptx_single, nvptx_skip_par): New.
2163 (nvptx_process_pars, nvptx_neuter_pars): New.
2164 (ntptx_reorg): Split blocks, generate parallel structure, apply
2166 (nvptx_cannot_copy_insn_p): New.
2167 (nvptx_file_end): Emit worker broadcast decl.
2168 (nvptx_goacc_fork_join): New.
2169 (TARGET_CANNOT_COPY_INSN_P): Override.
2170 (TARGET_GOACC_FORK_JOIN): Override.
2172 2015-10-28 Richard Biener <rguenther@suse.de>
2174 * fold-const.c (negate_expr_p): Adjust the division case to
2175 properly avoid introducing undefined overflow.
2176 (fold_negate_expr): Likewise.
2178 2015-10-28 Richard Biener <rguenther@suse.de>
2180 PR tree-optimization/65962
2181 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2182 Avoid creating loop carried dependences also for outer loops
2183 of the loop a use to replace is in.
2185 2015-10-28 Richard Biener <rguenther@suse.de>
2187 * common.opt (fchecking): New flag controlling flag_checking.
2188 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
2189 * timevar.c (timer::print): Adjust output.
2190 * doc/invoke.texi (fchecking): Document.
2192 2015-10-28 Richard Biener <rguenther@suse.de>
2195 * fold-const.c (negate_expr_p): We cannot negate plus or minus
2196 if overflow is not wrapping. Likewise multiplication unless
2197 one operand is constant and not power of two.
2198 (fold_negate_expr): Adjust accordingly.
2200 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2202 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
2204 (is_oacc_parallel, is_oacc_kernels): New.
2205 (enclosing_target_ctx): May return NULL.
2206 (ctx_in_oacc_kernels_region): New.
2207 (check_oacc_kernel_gwv): New.
2208 (oacc_loop_or_target_p): Delete.
2209 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
2210 operands. Strip reductions fro kernels.
2211 (scan_omp_target): Don't calculate gwv mask.
2212 (lower_oacc_head_mark, lower_oacc_loop_marker,
2213 lower_oacc_head_tail): New.
2214 (struct oacc_collapse): New.
2215 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
2216 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2217 Remove OpenACC handling.
2218 (expand_oacc_for): New.
2219 (expand_omp_for): Call expand_oacc_for.
2220 (lower_omp_for): Call lower_oacc_head_tail.
2222 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
2224 * attribs.c (check_attribute_tables): New function, broken out from...
2225 (init_attributes): Use it.
2226 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
2227 gcc_checking_assert and checking_* functions to eliminate
2228 ENABLE_CHECKING conditionals.
2229 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
2230 (pass_expand::execute): Likewise.
2231 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2232 * cgraphunit.c (mark_functions_to_output): Likewise.
2233 (cgraph_node::expand_thunk): Likewise.
2234 (symbol_table::compile): Likewise.
2235 * ddg.c (add_cross_iteration_register_deps): Likewise.
2236 (create_ddg_all_sccs): Likewise.
2237 * df-core.c (df_finish_pass, df_analyze): Likewise.
2238 * diagnostic-core.h: Likewise.
2239 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
2240 * dominance.c (calculate_dominance_info): Likewise.
2241 * dwarf2out.c (add_AT_die_ref): Likewise.
2242 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
2243 (loc_list_from_tree, gen_lexical_block_die): Likewise.
2244 gen_type_die_with_usage, gen_type_die): Likewise.
2245 (dwarf2out_decl): Likewise.
2246 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
2247 * except.c (duplicate_eh_regions): Likewise.
2248 * fwprop.c (register_active_defs, update_df_init): Likewise.
2249 (fwprop_init, fwprop_done): Likewise.
2250 (update_uses): Likewise.
2251 * ggc-page.c (ggc_grow): Likewise.
2252 * gimplify.c (gimplify_body): Likewise.
2253 (gimplify_hasher::equal): Likewise.
2254 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
2255 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
2257 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
2258 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
2259 * hash-table.h (::find_empty_slot_for_expand): Likewise.
2260 * ifcvt.c (if_convert): Likewise.
2261 * ipa-cp.c (ipcp_propagate_stage): Likewise.
2262 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
2263 (odr_type_p, odr_types_equivalent_p): Likewise.
2264 (add_type_duplicate, get_odr_type): Likewise.
2265 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
2266 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
2267 (sem_item_optimizer::verify_classes): Likewise.
2268 (sem_item_optimizer::traverse_congruence_split): Likewise.
2269 (sem_item_optimizer::checking_verify_classes): New.
2270 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
2272 * cfgrtl.c (commit_edge_insertions): Likewise.
2273 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
2274 (rtl_flow_call_edges_add): Likewise.
2275 * cgraph.c (symbol_table::create_edge): Likewise.
2276 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2277 * cgraph.h (symtab_node): Likewise.
2278 (symtab_node::checking_verify_symtab_nodes): Define.
2279 (cgraph_node::checking_verify_cgraph_nodes): Define.
2280 * cfghooks.h (checking_verify_flow_info): Define.
2281 * cfgloop.h (checking_verify_loop_structure): Define.
2282 * dominance.h (checking_verify_dominators): Define.
2283 * et-forest.c: Fix comment.
2284 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
2285 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2286 ENABLE_CHECKING conditionals.
2287 * ipa-inline-transform.c (save_inline_function_body): Likewise.
2288 * ipa-inline.c (inline_small_functions): Likewise.
2289 (early_inliner): Likewise.
2290 * ipa-inline.h (estimate_edge_growth): Likewise.
2291 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2292 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2293 (ipa_single_use): Likewise.
2294 * ira-int.h: Likewise.
2295 * ira.c (ira): Likewise.
2296 * loop-doloop.c (doloop_optimize_loops): Likewise.
2297 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
2298 * loop-invariant.c (move_loop_invariants): Likewise.
2299 * lra-assigns.c (lra_assign): Likewise.
2300 * lra-constraints.c (lra_constraints): Likewise.
2301 * lra-eliminations.c (lra_eliminate): Likewise.
2302 * lra-int.h (struct lra_reg): Likewise.
2303 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2304 (lra_create_live_ranges_1): Likewise.
2305 * lra-remat.c (create_remat_bb_data): Likewise.
2306 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
2308 (check_rtl): Always define. Remove incorrect guard around
2309 extract_constrain_insn call.
2310 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
2311 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2312 ENABLE_CHECKING conditionals.
2313 * lto-streamer-out.c (DFS::DFS): Likewise.
2314 (lto_output): Likewise.
2315 * lto-streamer.c (lto_streamer_init): Likewise.
2316 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
2317 expand_omp_target, execute_expand_omp): Likewise.
2318 (lower_omp_target): Likewise.
2319 * passes.c (execute_function_todo): Likewise.
2320 (execute_todo, execute_one_pass): Likewise.
2321 (verify_curr_properties): Always define.
2322 * predict.c (tree_estimate_probability: Use flag_checking,
2323 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
2324 ENABLE_CHECKING conditionals.
2325 (propagate_freq): Likewise.
2326 * pretty-print.c (pp_format): Likewise.
2327 * real.c (real_to_decimal_for_mode): Likewise.
2328 * recog.c (split_all_insns): Likewise.
2329 * regcprop.c (kill_value_one_regno): Likewise.
2330 (copy_value): Likewise.
2331 (validate_value_data): Define unconditionally.
2332 * reload.c: Fix comment.
2333 * timevar.c: Include options.h
2334 * tree-ssa.h (checking_verify_ssa): Define.
2335 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
2336 * sched-deps.c (CHECK): Remove unused macro.
2337 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
2338 gcc_checking_assert and checking_* functions to eliminate
2339 ENABLE_CHECKING conditionals.
2340 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
2341 * sel-sched.c (struct moveop_static_params): Likewise.
2342 (find_best_reg_for_expr, move_cond_jump): Likewise.
2343 (move_op_orig_expr_not_found): Likewise.
2344 (code_motion_process_successors, move_op): Likewise.
2345 * ssa-iterators.h (first_readonly_imm_use): Likewise.
2346 (next_readonly_imm_use): Likewise.
2347 * store-motion.c (compute_store_table): Likewise.
2348 * symbol-summary.h (function_summary::function_summary): Likewise.
2349 * target.h (cumulative_args_t): Likewise.
2350 (get_cumulative_args, pack_cumulative_args): Likewise.
2351 * timevar.c: (timer::print): Likewise.
2352 * trans-mem.c (ipa_tm_execute): Likewise.
2353 * tree-cfg.c (move_stmt_op): Likewise.
2354 (move_sese_region_to_fn): Likewise.
2355 (gimple_flow_call_edges_add): Likewise.
2356 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
2358 * tree-eh.c (remove_unreachable_handlers): Likewise.
2359 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2360 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
2361 * tree-into-ssa.c (update_ssa): Likewise.
2362 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
2363 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
2364 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
2365 * tree-predcom.c (suitable_component_p): Likewise.
2366 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
2367 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
2368 * tree-ssa-live.c (verify_live_on_entry): Likewise.
2369 * tree-ssa-live.h (register_ssa_partition): Likewise.
2370 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
2371 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
2372 (tree_transform_and_unroll_loop): Likewise.
2373 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2374 * tree-ssa-operands.c (get_expr_operands): Likewise.
2375 * tree-ssa-propagate.c (replace_exp_1): Likewise.
2376 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
2377 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
2378 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
2379 * tree-ssanames.c (release_ssa_name_fn): Likewise.
2380 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
2381 * tree-vect-loop-manip.c
2382 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
2383 (slpeel_checking_verify_cfg_after_peeling): Likewise.
2384 (vect_do_peeling_for_loop_bound): Likewise.
2385 (vect_do_peeling_for_alignment): Likewise.
2386 * tree-vrp.c (supports_overflow_infinity): Likewise.
2387 (set_value_range): Likewise.
2388 * tree.c (free_lang_data_in_cgraph): Likewise.
2389 * value-prof.c (gimple_remove_histogram_value): Likewise.
2390 (free_hist): Likewise.
2391 * var-tracking.c (canonicalize_values_star): Likewise.
2392 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
2394 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2396 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
2397 IFN_GOACC_LOOP): New.
2398 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
2399 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
2400 IFN_UNIQUE_OACC_TAIL_MARK.
2401 (enum ifn_goacc_loop_kind): New.
2402 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
2403 IFN_UNIQUE_OACC_JOIN cases.
2404 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
2405 (expand_GOACC_LOOP): New.
2406 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
2407 * omp-low.c: Include gimple-pretty-print.h.
2408 (struct oacc_loop): New.
2409 (enum oacc_loop_flags): New.
2410 (oacc_thread_numbers): New.
2411 (oacc_xform_loop): New.
2412 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
2413 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
2414 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
2415 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
2416 oacc_loop_discovery): New.
2417 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
2418 oacc_loop_process): New.
2419 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
2420 (execute_oacc_device_lower): Discover & process loops. Process
2422 * target.def (goacc.fork_join): Change sense of hook, clarify
2424 * doc/tm.texi: Regenerated.
2426 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2428 * target-insns.def (oacc_fork, oacc_join): Define.
2429 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
2430 (goacc.fork_join): New GOACC hook.
2431 * targhooks.h (default_goacc_fork_join): Declare.
2432 * omp-low.c (default_goacc_forkjoin): New.
2433 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
2434 * doc/tm.texi: Regenerate.
2436 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2438 * omp-low.c (oacc_init_rediction_array): New.
2439 (oacc_initialize_reduction_data): Initialize array.
2441 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2443 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
2445 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2447 * internal-fn.c (expand_UNIQUE): New.
2448 * internal-fn.h (enum ifn_unique_kind): New.
2449 * internal-fn.def (IFN_UNIQUE): New.
2450 * target-insns.def (unique): Define.
2451 * gimple.h (gimple_call_internal_unique_p): New.
2452 * gimple.c (gimple_call_same_target_p): Check internal fn
2454 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
2455 * tree-ssa-threadedge.c
2456 (record_temporary_equivalences_from_stmts): Likewise.
2457 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
2459 2015-10-27 Richard Henderson <rth@redhat.com>
2462 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
2463 narrowing subregs on SSE and MMX registers.
2464 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
2465 appear to be sub-words of multi-register pseudos must be rejected.
2466 * doc/tm.texi: Regenerate.
2468 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2471 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
2472 operands[0] is a reg before taking its REGNO in split condition.
2473 (*movdi_aarch64): Likewise.
2475 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2477 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
2478 Handle floating point inner modes properly.
2480 2015-10-27 Alan Hayward <alan.hayward@arm.com>
2483 (vectorizable_live_operation): Change iterator.
2485 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2486 Aditya Kumar <aditya.k7@samsung.com>
2488 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
2489 function to schedule based on isl_schedule_node.
2490 (get_schedule_map_st): New schedule optimizer based on
2492 (scop_get_domains): New. Return the isl_union_set containing the
2493 domains of all the pbbs.
2494 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
2496 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
2499 * calls.c (prepare_call_address): Don't handle -fno-plt here.
2500 * config/i386/i386.c (ix86_expand_call): Generate indirect call
2501 via GOT for -fno-plt. Support indirect call via GOT for x32.
2502 * config/i386/predicates.md (sibcall_memory_operand): Allow
2505 2015-10-27 Richard Biener <rguenther@suse.de>
2507 PR tree-optimization/68104
2508 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
2509 strided access check ...
2510 (vect_compute_data_refs_alignment): ... here.
2512 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
2513 Joseph Myers <joseph@codesourcery.com>
2514 Mark Shinwell <shinwell@codesourcery.com>
2515 Andrew Stubbs <ams@codesourcery.com>
2516 Rich Felker <dalias@libc.org>
2518 * config.gcc: Handle --enable-fdpic.
2519 * config/sh/constraints.md (Ccl): New constraint.
2520 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
2521 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
2523 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
2525 * config/sh/sh-protos.h (function_symbol_result): New struct.
2526 (function_symbol): Return function_symbol_result.
2527 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
2529 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
2531 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
2532 (sh_option_override): Force -fPIC if FDPIC is in effect.
2533 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
2534 UNSPEC_GOTOFFFUNCDESC cases.
2535 (prepare_move_operands): Use FDPIC initial GOT register for
2536 TLS-related GOT access; inhibit cross-section address offset constants
2538 (sh_assemble_integer): New function.
2539 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
2540 PC-relative call sites.
2541 (expand_ashiftrt): Adapt invocation of function_symbol.
2542 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
2543 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
2544 UNSPEC_GOTOFFFUNCDESC.
2545 (legitimize_pic_address): Resolve function symbols to function
2546 descriptors for FDPIC. Do not use GOT-relative addressing for local
2547 data that may be read-only on FDPIC.
2548 (sh_emit_storesi, sh_emit_storehi): New functions.
2549 (sh_trampoline_init): Generate FDPIC trampolines.
2550 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
2551 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
2552 (sh_output_mi_thunk): Generate FDPIC call.
2553 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
2554 FDPIC, generate call site labels to use PC-relative addressing rather
2555 than GOT-relative addressing.
2556 (sh_conditional_register_usage): Make PIC register fixed and call used
2557 when FDPIC is in effect.
2558 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
2559 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
2560 sh_get_fdpic_reg_initial_val): New functions.
2561 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
2563 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
2564 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
2565 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
2566 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
2568 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
2569 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
2570 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
2571 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
2573 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
2574 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
2575 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
2576 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
2577 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
2578 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
2579 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
2580 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
2581 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2582 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
2583 block_move_real, block_lump_real, block_move_real_i4,
2584 block_lump_real_i4): Add support for FDPIC calls.
2585 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
2586 call_value_pop): Adjust for new function_symbol signature.
2587 * config/sh/sh.opt (-mfdpic): New option.
2588 * doc/install.texi (Options specification): Document --enable-fdpic.
2589 * doc/invoke.texi (SH Options): Document -mfdpic.
2592 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2594 PR tree-optimization/65963
2595 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2596 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2598 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2601 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
2602 * config/arm/constraints.md (Dp): Update callsite.
2603 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
2605 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2607 * builtins.c (fold_builtin_load_exponent): Rename to...
2608 (fold_const_builtin_load_exponent): ...this and only handle
2610 (fold_builtin_2): Update accordingly.
2611 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
2613 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2615 * builtins.c (fold_builtin_logb): Rename to...
2616 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
2617 (fold_builtin_significand): Rename to...
2618 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
2619 (fold_builtin_1): Update accordingly.
2621 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2623 * builtins.c (fold_builtin_fmin_fmax): Delete.
2624 (fold_builtin_2): Handle constant fmin and fmax arguments here.
2625 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
2627 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
2629 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
2630 for register extension into sign and zero register extension.
2631 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
2632 for sign and zero register extension.
2633 (cortexa57_addrcost_table): Likewise.
2634 (xgene1_addrcost_table): Likewise.
2636 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2638 * fold-const.c (fold_minmax): Delete.
2639 (fold_binary_loc): Don't call it.
2640 * match.pd: Add rules previously handled by fold_minmax.
2642 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2644 * builtins.c (fold_builtin_fma): Remove constant handling.
2645 (fold_builtin_3): Handle constant fma arguments here.
2647 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2649 * builtins.c (fold_builtin_fabs): Remove constant handling.
2650 (fold_builtin_abs): Likewise.
2652 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2654 * builtins.c (fold_builtin_copysign): Delete.
2655 (fold_builtin_2): Handle constant copysign arguments here.
2656 * match.pd: Add rules previously handled by fold_builtin_copysign.
2658 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2660 * builtins.c (fold_builtin_signbit): Delete.
2661 (fold_builtin_2): Handle constant signbit arguments here.
2662 * match.pd: Add rules previously handled by fold_builtin_signbit.
2664 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2666 * match.pd: Handle sqrt(x) cmp 0 specially.
2668 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
2670 * tree-vect-generic.c (expand_vector_operations_1): Check
2671 optab type before using it.
2673 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2675 * config/aarch64/aarch64-protos.h
2676 (struct tune_params): Add autoprefetcher_model field.
2677 * config/aarch64/aarch64.c: Include params.h
2678 (generic_tunings): Specify autoprefetcher_model value.
2679 (cortexa53_tunings): Likewise.
2680 (cortexa57_tunings): Likewise.
2681 (cortexa72_tunings): Likewise.
2682 (thunderx_tunings): Likewise.
2683 (xgene1_tunings): Likewise.
2684 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
2685 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
2686 (aarch64_override_options_internal): Set
2687 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
2689 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2691 * builtins.c (fold_builtin_exponent): Delete.
2692 (fold_builtin_2): Handle constant expN arguments here.
2693 * match.pd: Fold expN(logN(x)) -> x.
2695 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2697 * builtins.c (fold_builtin_powi): Delete.
2698 (fold_builtin_2): Handle constant powi arguments here.
2699 * match.pd: Add rules previously handled by fold_builtin_powi.
2701 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2703 * builtins.c (fold_builtin_pow): Delete in favor of...
2704 (fold_const_builtin_pow): ...this new function. Only handle constant
2706 (fold_builtin_2): Update accordingly.
2707 * match.pd: Add rules previously handled by fold_builtin_pow.
2709 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2711 * builtins.c (fold_builtin_hypot): Delete.
2712 (fold_builtin_2): Handle constant hypot arguments here.
2713 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
2714 hypot(x, x) to fabs(x)*sqrt(2).
2716 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2718 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
2719 instead of make_ssa_name if not yet in SSA form.
2721 2015-10-27 Richard Biener <rguenther@suse.de>
2723 * cfg.c (free_edge): Add function argument and use it instead of cfun.
2724 (clear_edges): Likewise.
2725 * cfg.h (clear_edges): Adjust prototype.
2726 * cfgexpand.c (pass_expand::execute): Adjust.
2727 * cfgloop.c (release_recorded_exits): Add function argument and use
2729 * cfgloop.h (release_recorded_exits): Adjust prototype.
2730 (loops_state_satisfies_p): Add overload with function argument.
2731 (loops_state_set): Likewise.
2732 (loops_state_clear): Likewise.
2733 (struct loop_iterator): Add function argument to constructor
2734 and iterator and use it instead of cfun.
2735 (FOR_EACH_LOOP_FN): New macro.
2736 (loop_optimizer_finalize): Add overload with function argument.
2737 * loop-init.c (loop_optimizer_init): Adjust.
2738 (fix_loop_structure): Likewise.
2739 (loop_optimizer_finaliz): Add function argument and use it
2741 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2742 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
2743 * cgraph.c (release_function_body): Do not push/pop cfun.
2744 * final.c (rest_of_clean_state): Adjust.
2745 * graphite.c (graphite_finalize): Likewise.
2746 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2747 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2748 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2749 (tree_unroll_loops_completely): Likewise.
2750 (pass_complete_unrolli::execute): Likewise.
2751 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
2752 Add function argument and use it instead of cfun.
2753 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
2755 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
2756 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
2758 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
2759 * tree-ssanames.c (fini_ssanames): Add function argument and use it
2761 * tree-ssanames.c (fini_ssanames): Adjust prototype.
2762 * tree-vrp.c (execute_vrp): Adjust.
2763 * value-prof.c (free_histograms): Add function argument and use it
2765 * value-prof.h (free_histograms): Adjust prototype.
2767 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2769 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
2770 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
2771 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
2773 2015-10-27 Tom de Vries <tom@codesourcery.com>
2775 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
2778 2015-10-27 Bin Cheng <bin.cheng@arm.com>
2780 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
2781 (inv_can_prop_to_addr_use): New function.
2782 (record_use): Call can_prop_to_addr_uses, set the new field.
2783 (get_inv_cost): Count cost if inv can't be propagated into its
2786 2015-10-26 Doug Evans <dje@google.com>
2788 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
2790 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
2792 * match.pd (fold_widened_comparison): Apply simplifications to all
2795 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
2797 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
2798 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
2799 * doc/tm.texi: Regenerated.
2800 * reorg.c (dbr_schedule): Use new hook.
2801 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
2803 2015-10-26 Jeff Law <law@redhat.com>
2805 PR tree-optimization/68013
2806 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2807 Make sure the first block in the path is in VISITED_BBs.
2809 2015-10-26 Richard Biener <rguenther@suse.de>
2810 Dominik Vogt <vogt@linux.vnet.ibm.com>
2813 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
2814 Properly prune ref->ref for accesses outside of ref.
2816 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2818 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
2819 new statements to be inserted if inplace. Allow calls to have
2822 2015-10-26 Richard Biener <rguenther@suse.de>
2824 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
2825 (do_valueize): New function.
2826 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
2828 * tree-ssa-threadedge.c: Remove builtins.h include, include
2830 (fold_assignment_stmt): Remove.
2831 (threadedge_valueize): New function.
2832 (record_temporary_equivalences_from_stmts): Use
2833 gimple_fold_stmt_to_constant_1, note additional cleanup
2836 2015-10-26 Richard Biener <rguenther@suse.de>
2838 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
2839 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
2841 2015-10-26 Alan Hayward <alan.hayward@arm.com>
2843 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2844 VEC_COND_EXPR types.
2846 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2848 * auto-inc-dec.c (insert_move_insn_before): Delete.
2849 (attempt_change): Remember to cost the simple move in the
2850 FORM_PRE_ADD and FORM_POST_ADD cases.
2852 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
2855 * config/sh/sh.c (sh_vector_mode_supported_p): Use
2856 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2858 2015-10-26 Tom de Vries <tom@codesourcery.com>
2860 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2862 (intra_create_variable_infos): ... here.
2864 2015-10-26 Tom de Vries <tom@codesourcery.com>
2866 * tree-ssa-structalias.c (intra_create_variable_infos): Add
2867 restrict_pointer_p and recursive_restrict_p variables.
2869 2015-10-26 Tom de Vries <tom@codesourcery.com>
2871 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2872 get_vi_for_tree call.
2874 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2877 * optabs.c (expand_atomic_compare_and_swap): Handle case when
2878 ptarget_oval or ptarget_bool are const0_rtx.
2880 2015-10-26 Christian Bruel <christian.bruel@st.com>
2882 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2883 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2884 * cp/method.c (implicitly_declare_fn): Likewise.
2885 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2886 * java/class.c (add_method_1): Likewise.
2888 2015-10-26 Richard Biener <rguenther@suse.de>
2890 * alloc-pool.h (base_pool_allocator): Use placement new.
2891 (base_pool_allocator::remove): Likewise. Compute size outside of
2894 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2896 * builtins.c (do_real_to_int_conversion): New function.
2897 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2898 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2900 * match.pd: Add rules previously handled by fold_fixed_mathfn
2901 and fold_builtin_int_roundingfn.
2903 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2905 * match.pd: Use macros to define built-in operator lists.
2907 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
2908 Richard Biener <rguenther@suse.de>
2910 * genmatch.c (dt_simplify::gen): Skip captures that are
2912 (parser::parse_expr): Allow captures in results too.
2913 * builtins.c (fold_builtin_cexp): Delete.
2914 (fold_builtin_1): Handle constant cexp arguments here.
2915 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2917 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
2919 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2920 conditional compilation.
2921 (base_pool_allocator::remove): Use flag_checking.
2923 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
2925 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2928 * dojump.c (do_compare_and_jump): Canonicalize both function and
2931 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
2934 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2937 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2940 * ipa-polymorphic-call.c
2941 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2942 instance offset with offset of outer type.
2944 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2946 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2948 2015-10-23 Caroline Tice <cmtice@google.com>
2950 (from Richard Biener
2951 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
2952 call to iterative_hash_host_wide_int.
2954 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2956 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2959 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2961 * tree-vect-generic.c (expand_vector_operations_1): Check
2962 optab exists before use it.
2964 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2966 * tree-vect-generic.c (expand_vector_condition): Avoid
2967 uninitialized variable warning.
2969 2015-10-23 Jeff Law <law@redhat.com>
2971 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2973 (execute_todo): Call it here.
2974 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2976 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2978 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2979 Szabolcs Nagy <szabolcs.nagy@arm.com>
2981 * config.gcc (enable_secureplt): Add *-linux*-musl*.
2983 2015-10-23 Jeff Law <law@redhat.com>
2985 PR tree-optimization/67830
2986 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2987 Explicitly verify the mask has no bits outside the type of
2988 the innermost operands.
2990 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2991 Szabolcs Nagy <szabolcs.nagy@arm.com>
2993 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2994 (MUSL_DYNAMIC_LINKER64): Define.
2995 (GNU_USER_DYNAMIC_LINKER32): Update.
2996 (GNU_USER_DYNAMIC_LINKER64): Update.
2997 (CHOOSE_DYNAMIC_LINKER): Update.
2999 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3000 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3001 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3002 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3003 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3004 (CHOOSE_DYNAMIC_LINKER): Update.
3005 (INCLUDE_DEFAULTS): Redefine.
3007 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3009 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3011 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3012 comparing addresses.
3014 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3016 * fold-const.c (operand_equal_p): Handle matching of vector
3019 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3021 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3023 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
3024 Andrew Pinski <apinski@cavium.com>
3026 PR rtl-optimization/67736
3027 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3030 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3033 * tree.c (build_truth_vector_type): Support BLK mode
3034 returned for boolean vector.
3036 2015-10-23 Alan Hayward <alan.hayward@arm.com>
3038 PR tree-optimization/65947
3040 (vect_is_simple_reduction_1): Find condition reductions.
3041 (vect_model_reduction_cost): Add condition reduction costs.
3042 (get_initial_def_for_reduction): Add condition reduction initial var.
3043 (vect_create_epilog_for_reduction): Add condition reduction epilog.
3044 (vectorizable_reduction): Condition reduction support.
3045 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3046 * doc/sourcebuild.texi (Vector-specific attributes): Document
3049 2015-10-23 Richard Biener <rguenther@suse.de>
3051 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3054 2015-10-23 Richard Biener <rguenther@suse.de>
3055 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3057 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3058 into (A ^ B) - B to match.pd
3059 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3061 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3063 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3065 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3067 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3069 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3070 INTEGER_CST@1)): New simplifier.
3072 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
3074 * builtins.c (integer_valued_real_p): Move to fold-const.c.
3075 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3076 (fold_builtin_ceil, fold_builtin_round): Delete.
3077 (fold_builtin_1): Handle constant trunc, floor, ceil and round
3079 * convert.c (convert_to_real): Remove narrowing of rounding
3081 * fold-const.h (integer_valued_real_unary_p)
3082 (integer_valued_real_binary_p, integer_valued_real_call_p)
3083 (integer_valued_real_single_p, integer_valued_real_p): Declare.
3084 * fold-const.c (tree_single_nonnegative_warnv_p): Move
3085 name_registered_for_update_p check to SSA_NAME case statement.
3086 Don't call tree_simple_nonnegative_warnv_p for SSA names.
3087 (integer_valued_real_unary_p, integer_valued_real_binary_p)
3088 (integer_valued_real_call_p, integer_valued_real_single_p)
3089 (integer_valued_real_invalid_p): New functions.
3090 (integer_valued_real_p): Move from fold-const.c and rework
3091 to call the functions above. Handle SSA names.
3092 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3093 * gimple-fold.c (gimple_assign_integer_valued_real_p)
3094 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3095 (gimple_stmt_integer_valued_real_p): New functions.
3096 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3097 Fold f(x)->x for the same f if x is known to be integer-valued.
3098 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3099 the result. Canonicalize floor(x) as trunc(x) if x is
3102 2015-10-23 Tom de Vries <tom@codesourcery.com>
3104 * tree-ssa-structalias.c (intra_create_variable_infos): Use
3105 make_constraint_from.
3107 2015-10-23 Tom de Vries <tom@codesourcery.com>
3109 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
3110 setting of is_full_var in case of a single field.
3112 2015-10-22 Martin Sebor <msebor@redhat.com>
3115 * config/i386/i386.opt: Add missing periods to the ends of sentences.
3116 * config/msp430/msp430.opt: Same.
3118 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
3120 * doc/extend.exp (Global Register Variables): Rewrite.
3122 2015-10-22 Jeff Law <law@redhat.com>
3124 * genattrtab.c (main): If we do not have any annul-true or annul-false
3125 slots, then write out a dummy eligible_for_annul_true or
3126 eligible_for_annul_false as needed.
3128 2015-10-22 Nick Clifton <nickc@redhat.com>
3130 * config/msp430/msp430.opt: Add -msilicon-errata and
3131 -msilicon-errata-warn.
3132 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
3134 * doc/invoke.texi: Document new options.
3136 2015-10-22 Richard Biener <rguenther@suse.de>
3138 PR tree-optimization/58497
3139 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
3140 (expand_vector_operations_1): Use it. Lower operations on
3141 all uniform vectors to scalar operations if the HW supports it.
3143 2015-10-22 Richard Biener <rguenther@suse.de>
3145 PR tree-optimization/19049
3146 PR tree-optimization/65962
3147 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
3148 to strided accesses if single-element interleaving doesn't work.
3150 2015-10-22 Richard Biener <rguenther@suse.de>
3154 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
3155 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
3156 (expand_unop): Likewise.
3158 2015-10-22 Richard Biener <rguenther@suse.de>
3160 * fold-const.c (fold_addr_of_array_ref_difference): Properly
3161 convert operands before folding a MINUS_EXPR.
3162 (fold_binary_loc): Move simplification of MINUS_EXPR on
3163 converted POINTER_PLUS_EXPRs ...
3164 * match.pd: ... here.
3166 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
3168 * builtins.c (fold_builtin_tan): Delete.
3169 (fold_builtin_1): Handle constant tan arguments here.
3170 * match.pd: Simplify (tan (atan x)) to x.
3172 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
3174 * builtins.c (fold_builtin_cproj): Delete.
3175 (fold_builtin_1): Handle constant arguments here.
3176 (build_complex_cproj): Move and rename to...
3177 * tree.c: (build_complex_inf): ...this.
3178 * tree.h (build_complex_inf): Declare.
3179 * match.pd: Fold cproj(x)->x if x has no infinity.
3180 Use build_complex_inf for existing cproj rules.
3182 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3185 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
3186 already have a comparison result.
3188 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3191 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
3192 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
3193 (aarch64_classify_address): Likewise.
3194 (aarch64_secondary_reload): Likewise.
3195 (aarch64_override_options_after_change_1): Adjust.
3196 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3197 Use aarch64_nopcrelative_literal_loads.
3198 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3199 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3202 2015-10-21 Martin Sebor <msebor@redhat.com>
3205 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
3206 (print_filtered_help): Reference aliased option's name and encourage
3207 readers to use it in preference to the alias if the former is not
3208 documented. Mention when using an option is diagnosed.
3209 * gcc.c (display_help): End each sentence with a period.
3211 * common.opt: End each sentence that describes an option with
3213 * config/aarch64/aarch64.opt: Same.
3214 * config/alpha/alpha.opt: Same.
3215 * config/arc/arc.opt: Same.
3216 * config/arm/arm.opt: Same.
3217 * config/avr/avr.opt: Same.
3218 * config/bfin/bfin.opt: Same.
3219 * config/c6x/c6x.opt: Same.
3220 * config/cr16/cr16.opt: Same.
3221 * config/cris/cris.opt: Same.
3222 * config/cris/linux.opt: Same.
3223 * config/darwin.opt: Same.
3224 * config/epiphany/epiphany.opt: Same.
3225 * config/fr30/fr30.opt: Same.
3226 * config/frv/frv.opt: Same.
3227 * config/ft32/ft32.opt: Same.
3228 * config/g.opt: Same.
3229 * config/h8300/h8300.opt: Same.
3230 * config/i386/cygming.opt: Same.
3231 * config/i386/djgpp.opt: Same.
3232 * config/i386/i386.opt: Same.
3233 * config/i386/interix.opt: Same.
3234 * config/i386/mingw-w64.opt: Same.
3235 * config/i386/mingw.opt: Same.
3236 * config/ia64/ia64.opt: Same.
3237 * config/ia64/ilp32.opt: Same.
3238 * config/iq2000/iq2000.opt: Same.
3239 * config/linux.opt: Same.
3240 * config/lm32/lm32.opt: Same.
3241 * config/lynx.opt: Same.
3242 * config/m32c/m32c.opt: Same.
3243 * config/m32r/m32r.opt: Same.
3244 * config/m68k/ieee.opt: Same.
3245 * config/m68k/m68k.opt: Same.
3246 * config/mcore/mcore.opt: Same.
3247 * config/mep/mep.opt: Same.
3248 * config/microblaze/microblaze.opt: Same.
3249 * config/mips/mips.opt: Same.
3250 * config/mmix/mmix.opt: Same.
3251 * config/mn10300/mn10300.opt: Same.
3252 * config/moxie/moxie.opt: Same.
3253 * config/msp430/msp430.opt: Same.
3254 * config/nios2/elf.opt: Same.
3255 * config/nios2/nios2.opt: Same.
3256 * config/nvptx/nvptx.opt: Same.
3257 * config/pa/pa-hpux.opt: Same.
3258 * config/pa/pa-hpux1010.opt: Same.
3259 * config/pa/pa-hpux1111.opt: Same.
3260 * config/pa/pa-hpux1131.opt: Same.
3261 * config/pa/pa.opt: Same.
3262 * config/pa/pa64-hpux.opt: Same.
3263 * config/pdp11/pdp11.opt: Same.
3264 * config/rl78/rl78.opt: Same.
3265 * config/rs6000/476.opt: Same.
3266 * config/rs6000/aix64.opt: Same.
3267 * config/rs6000/darwin.opt: Same.
3268 * config/rs6000/linux64.opt: Same.
3269 * config/rs6000/rs6000.opt: Same.
3270 * config/rs6000/sysv4.opt: Same.
3271 * config/s390/s390.opt: Same.
3272 * config/s390/tpf.opt: Same.
3273 * config/sh/sh.opt: Same.
3274 * config/sol2.opt: Same.
3275 * config/sparc/long-double-switch.opt: Same.
3276 * config/sparc/sparc.opt: Same.
3277 * config/spu/spu.opt: Same.
3278 * config/stormy16/stormy16.opt: Same.
3279 * config/tilegx/tilegx.opt: Same.
3280 * config/tilepro/tilepro.opt: Same.
3281 * config/v850/v850.opt: Same.
3282 * config/vax/vax.opt: Same.
3283 * config/visium/visium.opt: Same.
3284 * config/vms/vms.opt: Same.
3285 * config/vxworks.opt: Same.
3286 * config/xtensa/xtensa.opt: Same.
3288 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3289 Sebastian Pop <s.pop@samsung.com>
3291 * graphite-scop-detection.c (parameter_index_in_region): Update call to
3292 invariant_in_sese_p_rec.
3293 * graphite-sese-to-poly.c (extract_affine): Same.
3294 * sese.c (invariant_in_sese_p_rec): Pass in an extra
3295 parameter has_vdefs.
3296 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
3297 variable depends on virtual definitions in the current region.
3298 * sese.h (invariant_in_sese_p_rec): Update declaration.
3300 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3301 Sebastian Pop <s.pop@samsung.com>
3303 * graphite-scop-detection.c (build_scops): Do not handle scops
3304 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
3305 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
3307 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
3309 * config.in: Regenerate.
3310 * configure: Regenerate.
3311 * configure.ac (CHECKING_P): Define.
3312 * system.h: Use CHECKING_P.
3314 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3317 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
3318 is negative we don't know the type.
3319 (check_stmt_for_type_change): Skip constructors of non-polymorphic
3320 types as those won't help devirutalization.
3322 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3324 * fold-const.c (operand_equal_p): Add code matching empty constructors.
3326 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
3328 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
3330 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
3331 Add comments on sign of the result.
3332 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
3333 Recurse on operand #1 instead of operand #0.
3334 <CEIL_MOD_EXPR>: Do not recurse.
3335 <ROUND_MOD_EXPR>: Likewise.
3337 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3339 * cfgrtl.c (pass_free_cfg::execute): Adjust.
3340 * final.c (dbr_sequence_length): Always define.
3341 (shorten_branches): Adjust.
3342 * genattr-common.c (main): Always define DELAY_SLOTS.
3343 * genattr.c (main): Unconditionally declare functions and define
3344 macros related to delay slots.
3345 * genattrtab.c (write_eligible_delay): Adjust.
3346 (main): Always write out delay slot functions.
3347 * opts.c (default_options_table): Adjust.
3348 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
3349 (redirect_with_delay_list_safe_p): Likewise.
3350 (fill_simple_delay_slots): Likewise.
3351 (fill_slots_from_thread): Likewise.
3352 (make_return_insns): Likewise.
3353 (dbr_schedule): Likewise.
3354 (rest_of_handle_delay_slots): Likewise.
3355 (pass_delay_slots::gate): Likewise.
3356 * toplev.c (process_options): Likewise.
3358 2015-10-21 Richard Henderson <rth@redhat.com>
3360 * targhooks.c (default_addr_space_pointer_mode): Remove check
3361 for generic address space.
3362 (default_addr_space_address_mode): Likewise.
3363 (default_addr_space_valid_pointer_mode): Likewise.
3364 (default_addr_space_legitimate_address_p): Likewise.
3365 (default_addr_space_legitimize_address): Likewise.
3366 * target.def (addr_space.pointer_mode): Update documentation
3367 of default behavior.
3368 (addr_space.address_mode): Likewise.
3371 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
3374 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3376 * builtins.c (fold_builtin_cabs): Delete.
3377 (fold_builtin_1): Update accordingly. Handle constant arguments here.
3378 * match.pd: Add rules previously handled by fold_builtin_cabs.
3380 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3382 * fold-const.h (fold_strip_sign_ops): Delete.
3383 * fold-const.c (fold_strip_sign_ops): Likewise.
3384 (fold_unary_loc, fold_binary_loc): Remove calls to it.
3385 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
3386 (fold_builtin_ccos): Delete.
3387 (fold_builtin_pow): Don't call fold_strip_sign_ops.
3388 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
3389 Remove fndecl argument.
3390 (fold_builtin_1): Update calls accordingly. Handle constant
3391 cos, cosh, ccos and ccosh here.
3393 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3395 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
3396 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
3397 * common.opt (fssa-backprop): New option.
3398 * fold-const.h (negate_mathfn_p): Declare.
3399 * fold-const.c (negate_mathfn_p): Make public.
3400 * timevar.def (TV_TREE_BACKPROP): New.
3401 * tree-pass.h (make_pass_backprop): Declare.
3402 * passes.def (pass_backprop): Add.
3403 * gimple-ssa-backprop.c: New file.
3405 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3406 Sebastian Pop <s.pop@samsung.com>
3408 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
3409 Do not call create_empty_if_region_on_edge when cond_expr is true.
3410 (translate_isl_ast_node_for): Check whether a guard has been generated.
3412 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3414 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
3415 (operator=): Removed.
3416 (dr_info): Make alias_set number the last argument with default
3417 value of invalid_alias_set.
3418 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
3420 (rewrite_reductions_out_of_ssa): Iterate only through the
3421 basic blocks which are inside region.
3422 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
3423 * sese.h (struct sese_l): Removed assignment operator.
3424 (split_region_for_bb): Removed dead code.
3426 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
3428 * graphite-poly.h (struct dr_info): Removed conversion constructor.
3429 (struct scop): Renamed scop::region to scop::scop_info
3430 (scop_set_region): Same.
3431 (SCOP_REGION): Removed
3432 (SCOP_CONTEXT): Removed.
3433 (POLY_SCOP_P): Removed.
3434 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3435 Rename scop->region to scop->scop_info.
3436 (add_parameters_to_ivs_params): Same.
3437 (graphite_regenerate_ast_isl): Same.
3438 * graphite-poly.c (new_scop): Same.
3440 (print_scop_params): Same.
3441 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
3442 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
3443 (dot_all_scops_1): Rename scop->region to scop->scop_info.
3444 (scop_detection::nb_pbbs_in_loops): Same.
3445 (find_scop_parameters): Same.
3446 (try_generate_gimple_bb): Same.
3447 (gather_bbs::before_dom_children): Same.
3448 (gather_bbs::after_dom_children): Same.
3449 (build_scops): Same.
3450 * graphite-sese-to-poly.c (build_scop_scattering): Same.
3451 (extract_affine_chrec): Same.
3452 (extract_affine): Same.
3453 (set_scop_parameter_dim): Same.
3454 (build_loop_iteration_domains): Same.
3455 (create_pw_aff_from_tree): Same.
3456 (add_param_constraints): Same.
3457 (build_scop_iteration_domain): Same.
3458 (build_scop_drs): Same.
3459 (analyze_drs_in_stmts): Same.
3460 (insert_out_of_ssa_copy_on_edge): Same.
3461 (rewrite_close_phi_out_of_ssa):Same.
3462 (rewrite_reductions_out_of_ssa):Same.
3463 (handle_scalar_deps_crossing_scop_limits):Same.
3464 (rewrite_cross_bb_scalar_deps):Same.
3465 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
3466 (build_poly_scop):Same.
3467 (build_alias_set): Use pointer to dr_info.
3468 * graphite.c (print_graphite_scop_statistics):
3469 (graphite_transform_loops):
3470 * sese.h (struct sese_l): Remove conversion constructor.
3472 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3475 * tree.c (verify_type): Verify that TYPE_MODE match
3476 between TYPE_CANONICAL and type.
3477 * expr.c (store_expr_with_bounds): Revert my previous change.
3478 * expmed.c (store_bit_field_1): Revert prevoius change.
3479 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
3480 to match for all types.
3482 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
3484 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
3487 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
3489 * doc/tm.texi: Regenerated.
3490 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
3491 * stor-layout.c (layout_type): Use mode to get vector mask size.
3492 * target.def (get_mask_mode): New.
3493 * targhooks.c (default_get_mask_mode): New.
3494 * targhooks.h (default_get_mask_mode): New.
3495 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
3497 * tree.c (MAX_BOOL_CACHED_PREC): New.
3498 (nonstandard_boolean_type_cache): New.
3499 (build_nonstandard_boolean_type): New.
3500 (make_vector_type): Vector mask has no canonical type.
3501 (build_truth_vector_type): New.
3502 (build_same_sized_truth_vector_type): New.
3503 (truth_type_for): Support vector masks.
3504 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
3505 (build_truth_vector_type): New.
3506 (build_same_sized_truth_vector_type): New.
3507 (build_nonstandard_boolean_type): New.
3508 * tree-cfg.c (verify_gimple_comparison) Require boolean
3509 vector type for vector comparison.
3510 (verify_gimple_assign_ternary): Likewise.
3511 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
3513 * tree-vect-stmts.c (vectorizable_condition): Use boolean
3514 vector type for vector comparison.
3515 * tree-vect-generic.c (elem_op_func): Add new operand to hold
3517 (do_unop): Adjust to modified function type.
3518 (do_binop): Likewise.
3519 (do_plus_minus): Likewise.
3520 (do_negate); Likewise.
3521 (expand_vector_piecewise): Likewise.
3522 (do_cond): Likewise.
3523 (do_compare): Use comparison instead of condition.
3524 (expand_vector_divmod): Use boolean vector type for comparison.
3525 (expand_vector_operations_1): Skip scalar mask operations.
3527 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
3529 * omp-low.c (simd_clone_create): Set in_other_partition
3532 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
3534 * doc/extend.exp (Local Register Variables): Rewrite.
3536 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
3538 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
3539 and x*x in cases where the operands are sign ops. Extend these
3540 rules to handle copysign as a sign op (including for cos, cosh
3541 and pow, which already treated negate and abs as sign ops).
3543 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
3546 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
3547 for 64-bit MS_ABI targets also when default incoming stack boundary
3550 2015-10-21 Richard Biener <rguenther@suse.de>
3552 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
3553 cond stmts, enhanced and split out from ...
3554 (vn_phi_eq): ... here.
3556 2015-10-21 Richard Biener <rguenther@suse.de>
3559 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
3560 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
3561 (tree_single_nonnegative_warnv_p): ... here. For SSA names
3562 make sure they are not registered for update.
3564 2015-10-21 Richard Biener <rguenther@suse.de>
3566 PR tree-optimization/68026
3567 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
3568 unsigned VARYING values.
3570 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
3572 * asan.c (asan_emit_stack_protection): Don't pass local stack to
3573 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
3574 NULL and use local stack than.
3575 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
3576 in addition to __asan_init.
3577 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
3578 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
3579 * asan.h (asan_intercepted_p): Handle new string builtins.
3580 * ubsan.c (ubsan_use_new_style_p): New function.
3581 (ubsan_instrument_float_cast): If location is unknown, assign
3582 input_location to loc. Propagate loc to ubsan_create_data if
3583 ubsan_use_new_style_p returned true.
3585 2015-10-21 Jeff Law <law@redhat.com>
3587 * Makefile.in (OBJS): Remove sched-vis.c
3588 * sched-vis.c: Removed. Code moved into...
3589 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
3590 * rtl.h: Remove prototypes for functions now living in print-rtl.c
3591 * print-rtl.h Add prototypes for new functions in print-rtl.c.
3592 * auto-inc-dec.c: Include print-rtl.h
3593 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
3594 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
3596 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
3599 2015-10-21 Richard Biener <rguenther@suse.de>
3600 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3602 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
3604 Move (a * (1 << b)) is (a << b) to match.pd.
3605 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
3606 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
3607 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
3609 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
3611 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
3612 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
3613 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
3615 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
3617 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
3619 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
3620 Szabolcs Nagy <szabolcs.nagy@arm.com>
3621 Alan Modra <amodra@gmail.com>
3623 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
3624 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
3625 (LINK_SPEC): Add %(link_secure_plt).
3626 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
3627 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
3629 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
3630 Szabolcs Nagy <szabolcs.nagy@arm.com>
3632 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
3633 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
3635 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3637 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
3639 (fusion_load_store): Use it.
3640 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
3641 ldp and stp in VD modes.
3642 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
3643 (store_pair<mode>, VD): Likewise.
3645 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
3647 PR rtl-optimization/67609
3648 * lra-splill.c (lra_final_code_change): Don't remove all
3651 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3653 * simplify-rtx.c (simplify_binary_operation): If either operand was
3654 a constant pool reference use them if all other simplifications failed.
3656 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3658 * config/aarch64/aarch64.md
3659 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
3660 * config/aarch64/aarch64-simd.md
3661 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
3662 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
3663 (aarch64_fpconst_pow_of_2): New function.
3664 (aarch64_vec_fpconst_pow_of_2): Likewise.
3665 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
3667 (aarch64_vec_fpconst_pow_of_2): Likewise.
3668 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
3669 (aarch64_fp_vec_pow2): Likewise.
3671 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
3673 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
3674 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
3675 * config/alpha/alpha.c (alpha_function_arg_advance): Update
3676 ALPHA_ARG_SIZE usage.
3677 (alpha_arg_partial_bytes): Ditto.
3679 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3682 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
3683 error_mark_node decls.
3685 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3689 * common/config/i386/i386-common.c (ix86_handle_option): Remove
3690 OPT_miamcu handling.
3691 * config/i386/i386.c (PTA_NO_80387): New macro.
3692 (processor_alias_table): Add PTA_NO_80387 to lakemont.
3693 (ix86_option_override_internal): Update MASK_80387 from
3694 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
3695 SSE math only if 80387 is supported. Don't change
3697 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
3699 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
3700 if TARGET_80387 is true and TARGET_IAMCU is false.
3701 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
3702 is true and TARGET_IAMCU_P is false.
3704 2015-10-20 Richard Biener <rguenther@suse.de>
3706 PR tree-optimization/68017
3707 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
3709 2015-10-20 Martin Liska <mliska@suse.cz>
3711 * cgraphclones.c (cgraph_node::create_virtual_clone):
3712 Verify cgraph_node.local.versionable instead of calling
3713 tree_versionable_function_p.
3714 * ipa-cp.c (determine_versionability): Save the information
3715 to ipa_node_params summary.
3716 (ipcp_versionable_function_p): Use it.
3717 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
3718 (ipcp_generate_summary): Do not compute cgraph_node
3720 * ipa-inline-analysis.c (inline_generate_summary): Compute
3721 versionability for all cgraph nodes.
3722 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
3723 ipa_node_params::versionability.
3724 * ipa-prop.h (struct ipa_node_params): Declare it.
3726 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3729 * varasm.c (assemble_variable): Move special vtv handling to..
3730 (handle_vtv_comdat_sections): .. here. New function.
3731 (output_object_block): Handle vtv sections.
3733 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
3736 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
3738 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
3740 * doc/extend.texi: Update documentation WRT inline functions.
3742 2015-10-20 Alan Modra <amodra@gmail.com>
3745 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
3746 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3747 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3749 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
3751 PR rtl-optimization/66790
3752 * df.h (DF_MIR): New macro.
3753 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
3754 (DF_MIR_INFO_BB): New macro.
3755 (DF_MIR_IN, DF_MIR_OUT): New macros.
3756 (struct df_mir_bb_info): New.
3757 (df_mir): New macro.
3758 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
3760 (df_mir_get_bb_info): New.
3761 * df-problems.c (struct df_mir_problem_data): New.
3762 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
3763 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
3764 df_mir_confluence_0, df_mir_confluence_n,
3765 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
3766 df_mir_bottom_dump, df_mir_verify_solution_start,
3767 df_mir_verify_solution_end): New.
3769 (df_mir_add_problem, df_mir_simulate_one_insn): New.
3770 * timevar.def (TV_DF_MIR): New.
3771 * ree.c: Include bitmap.h
3772 (add_removable_extension): Add an INIT_REGS parameter. Use it
3773 to skip zero-extensions that may get an uninitialized register.
3774 (find_removable_extensions): Compute must-initialized registers
3775 using the MIR dataflow problem. Update the call to
3776 add_removable_extension.
3777 (find_and_remove_re): Call df_mir_add_problem.
3779 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
3781 * common/config/mn10300/mn10300-common.c
3782 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
3783 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
3785 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
3787 * doc/extend.texi (Explicit Register Variables): Simplify and
3788 avoid unnecessary and confusion abbreviations. Update cross
3790 doc/implement-c.tex: Update cross reference.
3792 2015-10-19 Jeff Law <law@redhat.com>
3794 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
3795 that create irreducible loops unless the path elimiantes a multiway
3798 2015-10-19 Richard Biener <rguenther@suse.de>
3800 PR tree-optimization/67975
3801 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
3802 * tree-cfg.c (extract_true_false_controlled_edges): Split out
3803 core worker from ...
3804 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
3805 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
3806 instead of block number for PHIs with two or one args.
3807 (vn_phi_eq): Compare edge predicates of PHIs that are in different
3810 2015-10-19 Richard Biener <rguenther@suse.de>
3812 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
3813 (gimple_stmt_nonnegative_warnv_p): Use it.
3814 * match.pd (CPROJ): New operator list.
3815 (cproj (complex ...)): Move simplifications from ...
3816 * builtins.c (fold_builtin_cproj): ... here.
3818 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3820 * config/i386/i386.c (ix86_expand_vector_move): Use
3821 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
3824 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3826 * doc/invoke.texi: Replace @optindex with @opindex.
3828 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3831 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
3832 arch= is set, clear all bits in x_ix86_isa_flags, except for
3833 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
3835 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
3838 * common.opt (fkeep-static-functions): New option.
3839 * doc/invoke.texi: Document it.
3840 * cgraphunit.c (cgraph_node::finalize_function): Use it.
3842 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3844 * sched-int.h (struct autopref_multipass_data_): Remove offset
3845 field. Add min_offset, max_offset, multi_mem_insn_p fields.
3846 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3847 (autopref_multipass_init): Use it. Handle PARALLEL sets.
3848 (autopref_rank_data): New function.
3849 (autopref_rank_for_schedule): Use it.
3850 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3852 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
3855 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3857 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3859 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3860 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
3861 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3862 (STANDARD_STARTFILE_PREFIX_1): New.
3863 (STANDARD_STARTFILE_PREFIX_2): New.
3865 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3867 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3868 (darwin_driver_init): Note a version-min when provided on the c/l.
3869 * config/darwin.h (%darwin_minversion): Remove.
3870 * config/i386/darwin.h: Likewise.
3871 * config/rs6000/darwin.h: Likewise.
3872 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3873 rather than an arbitrary constant.
3875 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3877 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3878 PPC, detect conflicts between -arch and multilib settings. Detect
3879 and warn about conflicts between multiple -arch definitions.
3881 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3883 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3885 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3887 * lra-constraints.c (add_next_usage_insn): Change argument type
3888 from rtx to rtx_insn *.
3890 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
3892 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3895 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
3897 * config/tilepro/gen-mul-tables.cc: Adjust include files.
3898 * config/tilegx/mul-tables.c: Regenerate.
3899 * config/tilepro/mul-tables.c: Regenerate.
3901 * config/tilegx/tilegx-c.c: Adjust include files.
3902 * config/tilegx/tilegx.c: Likewise.
3903 * config/tilepro/tilepro-c.c: Likewise.
3904 * config/tilepro/tilepro.c: Likewise.
3905 * config/aarch64/aarch64-builtins.c: Likewise.
3906 * config/aarch64/aarch64.c: Likewise.
3907 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3908 * config/alpha/alpha.c: Likewise.
3909 * config/arc/arc.c: Likewise.
3910 * config/arm/aarch-common.c: Likewise.
3911 * config/arm/arm-builtins.c: Likewise.
3912 * config/arm/arm-c.c: Likewise.
3913 * config/arm/arm.c: Likewise.
3914 * config/avr/avr-c.c: Likewise.
3915 * config/avr/avr-devices.c: Likewise.
3916 * config/avr/avr-log.c: Likewise.
3917 * config/avr/avr.c: Likewise.
3918 * config/bfin/bfin.c: Likewise.
3919 * config/c6x/c6x.c: Likewise.
3920 * config/cr16/cr16.c: Likewise.
3921 * config/cris/cris.c: Likewise.
3922 * config/darwin-c.c: Likewise.
3923 * config/darwin-driver.c: Likewise.
3924 * config/darwin.c: Likewise.
3925 * config/default-c.c: Likewise.
3926 * config/epiphany/epiphany.c: Likewise.
3927 * config/epiphany/mode-switch-use.c: Likewise.
3928 * config/epiphany/resolve-sw-modes.c: Likewise.
3929 * config/fr30/fr30.c: Likewise.
3930 * config/frv/frv.c: Likewise.
3931 * config/ft32/ft32.c: Likewise.
3932 * config/glibc-c.c: Likewise.
3933 * config/h8300/h8300.c: Likewise.
3934 * config/i386/host-cygwin.c: Likewise.
3935 * config/i386/host-mingw32.c: Likewise.
3936 * config/i386/i386-c.c: Likewise.
3937 * config/i386/i386.c: Likewise.
3938 * config/i386/msformat-c.c: Likewise.
3939 * config/i386/winnt-cxx.c: Likewise.
3940 * config/i386/winnt-stubs.c: Likewise.
3941 * config/i386/winnt.c: Likewise.
3942 * config/ia64/ia64-c.c: Likewise.
3943 * config/ia64/ia64.c: Likewise.
3944 * config/iq2000/iq2000.c: Likewise.
3945 * config/lm32/lm32.c: Likewise.
3946 * config/m32c/m32c-pragma.c: Likewise.
3947 * config/m32c/m32c.c: Likewise.
3948 * config/m32r/m32r.c: Likewise.
3949 * config/mcore/mcore.c: Likewise.
3950 * config/mep/mep-pragma.c: Likewise.
3951 * config/mep/mep.c: Likewise.
3952 * config/microblaze/microblaze-c.c: Likewise.
3953 * config/microblaze/microblaze.c: Likewise.
3954 * config/mips/mips-tables.opt
3955 * config/mips/mips.c: Likewise.
3956 * config/mmix/mmix.c: Likewise.
3957 * config/mn10300/mn10300.c: Likewise.
3958 * config/moxie/moxie.c: Likewise.
3959 * config/msp430/msp430-c.c: Likewise.
3960 * config/msp430/msp430.c: Likewise.
3961 * config/nds32/nds32-cost.c: Likewise.
3962 * config/nds32/nds32-fp-as-gp.c: Likewise.
3963 * config/nds32/nds32-intrinsic.c: Likewise.
3964 * config/nds32/nds32-isr.c: Likewise.
3965 * config/nds32/nds32-md-auxiliary.c: Likewise.
3966 * config/nds32/nds32-memory-manipulation.c: Likewise.
3967 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3968 * config/nds32/nds32-predicates.c: Likewise.
3969 * config/nds32/nds32.c: Likewise.
3970 * config/nios2/nios2.c: Likewise.
3971 * config/nvptx/mkoffload.c: Likewise.
3972 * config/nvptx/nvptx.c: Likewise.
3973 * config/pa/pa.c: Likewise.
3974 * config/pdp11/pdp11.c: Likewise.
3975 * config/rl78/rl78-c.c: Likewise.
3976 * config/rl78/rl78.c: Likewise.
3977 * config/rs6000/host-darwin.c: Likewise.
3978 * config/rs6000/rs6000-c.c: Likewise.
3979 * config/rs6000/rs6000-linux.c: Likewise.
3980 * config/rs6000/rs6000.c: Likewise.
3981 * config/rx/rx.c: Likewise.
3982 * config/s390/s390-c.c: Likewise.
3983 * config/s390/s390.c: Likewise.
3984 * config/sh/sh-c.c: Likewise.
3985 * config/sh/sh-mem.cc: Likewise.
3986 * config/sh/sh.c: Likewise.
3987 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3988 * config/sh/sh_treg_combine.cc: Likewise.
3989 * config/sol2-c.c: Likewise.
3990 * config/sol2-cxx.c: Likewise.
3991 * config/sol2-stubs.c: Likewise.
3992 * config/sol2.c: Likewise.
3993 * config/sparc/sparc-c.c: Likewise.
3994 * config/sparc/sparc.c: Likewise.
3995 * config/spu/spu-c.c: Likewise.
3996 * config/spu/spu.c: Likewise.
3997 * config/stormy16/stormy16.c: Likewise.
3998 * config/v850/v850-c.c: Likewise.
3999 * config/v850/v850.c: Likewise.
4000 * config/vax/vax.c: Likewise.
4001 * config/visium/visium.c: Likewise.
4002 * config/vms/vms-c.c: Likewise.
4003 * config/vms/vms.c: Likewise.
4004 * config/vxworks.c: Likewise.
4005 * config/winnt-c.c: Likewise.
4006 * config/xtensa/xtensa.c: Likewise.
4008 2015-10-16 Christian Bruel <christian.bruel@st.com>
4011 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4012 (FUNCTION_BOUNDARY_P): New macro:
4013 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4015 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4016 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4017 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4018 * function.c (allocate_struct_function): Call
4019 relayout_function hook.
4020 * passes.c (rest_of_decl_compilation): Likewise.
4022 2015-10-16 Christian Bruel <christian.bruel@st.com>
4025 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4026 * config/arm/arm.c (arm_option_override_internal): Call
4027 arm_override_options_after_change_1.
4028 (arm_override_options_after_change): New function.
4029 (arm_override_options_after_change_1): Likewise.
4030 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4032 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4035 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4038 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
4040 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4041 argument is an ADDR_EXPR.
4043 2015-10-16 Richard Biener <rguenther@suse.de>
4045 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4046 and get rid of force_gimple_operand_gsi.
4047 (gimple_fold_builtin_memory_chk): Likewise.
4048 (gimple_fold_builtin_stxcpy_chk): Likewise.
4049 (rewrite_to_defined_overflow): Likewise.
4050 (gimple_convert_to_ptrofftype): New function.
4051 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4053 2015-10-16 Richard Biener <rguenther@suse.de>
4055 * tree-nested.h (build_addr): Adjust prototype.
4056 * tree-nested.c (build_addr): Remove context argument and use
4058 (get_static_chain): Adjust calls to build_addr.
4059 (convert_nl_goto_reference): Likewise.
4060 (convert_tramp_reference_op): Likewise.
4061 (finalize_nesting_tree_1): Likewise.
4062 * value-prof.c (gimple_ic): Likewise.
4063 * gimple-low.c (lower_builtin_setjmp): Likewise.
4064 * tree-parloops.c (take_address_of): Likewise.
4065 (create_call_for_reduction_1): Likewise.
4066 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4067 (gimple_gen_ic_func_profiler): Likewise.
4069 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4071 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4074 2015-10-16 Michael Collison <michael.collison@linaro.org>
4075 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4077 * match.pd ((x < y) && (x < z) -> x < min (y,z),
4078 (x > y) and (x > z) -> x > max (y,z))
4080 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
4081 Szabolcs Nagy <szabolcs.nagy@arm.com>
4083 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4084 (DYNAMIC_LINKER): Renamed to ...
4085 (GLIBC_DYNAMIC_LINKER): This.
4086 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4088 2015-10-15 Marek Polacek <polacek@redhat.com>
4090 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4091 gimple_call_builtin instead of is_gimple_call.
4093 2015-10-15 Richard Biener <rguenther@suse.de>
4095 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4097 2015-10-15 Richard Biener <rguenther@suse.de>
4099 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4100 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4101 * tree-vect-loop.c (get_initial_def_for_induction): Drop
4102 use of force_gimple_operand in favor of gimple_build.
4103 Use vect_get_new_ssa_name.
4104 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
4105 (vectorizable_mask_load_store): Likewise.
4106 (vectorizable_call): Likewise.
4107 (vectorizable_store): Likewise.
4108 (vectorizable_load): Likewise.
4109 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
4111 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
4113 PR tree-optimization/67945
4114 * tree-pass.h (PROP_gimple_opt_math): New property flag.
4115 * generic-match-head.c (canonicalize_math_p): New function.
4116 * gimple-match-head.c: Include tree-pass.h.
4117 (canonicalize_math_p): New function.
4118 * match.pd: Group math built-in rules into simplifications
4119 and canonicalizations. Guard the latter with canonicalize_math_p.
4120 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
4121 PROP_gimple_opt_math property.
4123 2015-10-15 Marek Polacek <polacek@redhat.com>
4125 PR tree-optimization/67953
4126 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
4128 2015-10-15 Jiong Wang <jiong.wang@arm.com>
4130 * config.gcc: Recognize "." in architecture base name for AArch64.
4132 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
4134 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
4136 * config/mips/mips.c (mips_setup_incoming_varargs): Use
4137 ROUND_DOWN to calculate off.
4138 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
4139 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
4142 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
4144 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
4146 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
4147 Torvald Riegel <triegel@redhat.com>
4150 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
4151 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4152 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
4153 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
4154 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
4155 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4156 trechkpt, treclaim, tsr, ttest): New define_expands.
4157 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4158 __TM_FENCE__ for htm.
4159 * doc/extend.texi: Update documentation for htm builtins.
4161 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
4164 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
4165 REG_CFA_EXPRESSION to aligned SSE stores.
4167 2015-10-14 Jeff Law <law@redhat.com>
4169 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
4170 num_threaded_edges for successful FSM threads too.
4172 2015-10-14 Richard Biener <rguenther@suse.de>
4174 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
4175 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
4176 (vect_get_vec_def_for_operand): Remove unused parameter.
4177 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
4178 (vect_create_epilog_for_reduction): Likewise.
4179 (vectorizable_reduction): Likewise.
4180 (vectorizable_live_operation): Likewise.
4181 * tree-vect-patterns.c (type_conversion_p): Likewise.
4182 (vect_recog_vector_vector_shift_pattern): Likewise.
4183 (check_bool_pattern): Likewise.
4184 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4185 (vect_analyze_slp_cost_1): Likewise.
4186 * tree-vect-stmts.c (process_use): Likewise.
4187 (vect_get_vec_def_for_operand): Do not handle reductions.
4188 (vect_get_vec_defs): Adjust.
4189 (vectorizable_mask_load_store): Likewise.
4190 (vectorizable_call): Likewise.
4191 (vectorizable_simd_clone_call): Likewise.
4192 (vect_get_loop_based_defs): Likewise.
4193 (vectorizable_conversion): Likewise.
4194 (vectorizable_assignment): Likewise.
4195 (vectorizable_shift): Likewise.
4196 (vectorizable_operation): Likewise.
4197 (vectorizable_store): Likewise.
4198 (vectorizable_load): Likewise.
4199 (vect_is_simple_cond): Likewise.
4200 (vectorizable_condition): Likewise.
4201 (vect_is_simple_use): Remove unused parameters.
4202 (vect_is_simple_use_1): Adjust and rename.
4204 2015-10-14 Richard Biener <rguenther@suse.de>
4206 PR tree-optimization/67915
4207 * match.pd: Handle comparisons of addresses of STRING_CSTs.
4208 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
4209 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
4210 stmt folding in favor of GIMPLE one.
4212 2015-10-14 Marek Polacek <polacek@redhat.com>
4214 PR tree-optimization/67815
4215 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
4216 (reassociate_bb): Call it.
4218 2015-10-14 Richard Biener <rguenther@suse.de>
4220 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4221 Reset info at start.
4222 (vect_analyze_group_access_1): Add debug print.
4223 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
4224 (vect_compute_single_scalar_iteration_cost): ... to this.
4225 (vect_analyze_loop_2): Adjust.
4226 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
4227 * tree-vectorizer.h: ... here.
4228 (add_stmt_info_to_vec): Remove.
4229 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
4231 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
4233 * targhooks.c (default_target_option_pragma_parse): Do not warn if
4234 called on behalf of "#pragma GCC pop_options".
4236 2015-10-14 Tom de Vries <tom@codesourcery.com>
4238 * cfganal.c (verify_no_unreachable_blocks): New function.
4239 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
4240 verify_no_unreachable_blocks.
4241 cfganal.h (verify_no_unreachable_blocks): Declare.
4243 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
4245 * common.opt: Add flag_checking.
4246 * system.h (CHECKING_P): Define.
4248 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4249 Aldy Hernandez <aldyh@redhat.com>
4250 Ilya Verbin <ilya.verbin@intel.com>
4252 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
4253 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
4254 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
4255 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
4256 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
4257 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
4258 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
4259 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
4260 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
4261 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
4262 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
4263 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
4264 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
4265 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4266 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
4267 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4268 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4269 (struct cgraph_simd_clone_arg): Adjust comment.
4270 * coretypes.h (struct gomp_ordered): New forward decl.
4271 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
4272 set critical clauses to it.
4273 (gimple_build_omp_ordered): Return gomp_ordered * instead of
4274 gimple *. Add CLAUSES argument, set ordered clauses to it.
4275 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
4277 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
4278 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
4279 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
4280 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
4281 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
4282 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
4283 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
4284 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
4286 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
4287 (gomp_critical): Add clauses field.
4288 (gomp_ordered): New struct.
4289 (is_a_helper <gomp_ordered *>::test): New inline.
4290 (gimple_build_omp_critical): Add CLAUSES argument.
4291 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
4292 instead of gimple *.
4293 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
4294 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
4295 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
4296 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
4298 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
4299 (dump_gimple_omp_target): Handle enter data and exit data.
4300 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
4301 (dump_gimple_omp_critical): Print clauses.
4302 (dump_gimple_omp_ordered): New function.
4303 (dump_gimple_omp_task): Handle taskloop.
4304 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
4306 * gimple-walk.c (walk_gimple_op): Walk clauses on
4307 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
4308 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
4309 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
4310 (struct gimplify_omp_ctx): Add loop_iter_var,
4311 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
4312 and target_firstprivatize_array_bases fields.
4313 (delete_omp_context): Release loop_iter_var.
4314 (gimplify_bind_expr): Handle ORT_NONE.
4315 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
4316 ORT_COMBINED_TARGET.
4317 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
4318 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
4319 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
4320 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
4321 ctx->target_map_scalars_firstprivate.
4322 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
4323 data sharing clauses. For data sharing clause with VLA decl
4324 on omp target/target data don't add firstprivate for the pointer.
4325 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
4326 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
4327 the addition of ORT_COMBINED_TARGET.
4328 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
4329 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
4330 pointers as zero length array sections and
4331 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
4333 (omp_check_private): Handle omp_member_access_dummy_var vars.
4334 (find_decl_expr): New function.
4335 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
4336 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
4337 Handle OMP_CLAUSE_GANG separately. Handle
4338 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4339 clauses. Diagnose linear clause on combined
4340 distribute {, parallel for} simd construct, unless it is the loop
4341 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
4342 Handle map clauses with COMPONENT_REF. Initialize
4343 ctx->target_map_scalars_firstprivate,
4344 ctx->target_firstprivatize_array_bases and
4345 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
4346 linear clause even to target region if combined. Remove
4347 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
4348 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
4349 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
4350 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
4351 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
4352 For linear clause on worksharing loop combined with parallel add
4353 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
4354 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
4355 omp_member_access_dummy_var vars. Add lastprivate clause to outer
4357 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
4358 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
4359 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
4361 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
4362 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
4363 in target body. Handle removal of struct mapping if struct is not
4364 seen in target body. Remove GOMP_MAP_STRUCT map clause on
4365 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
4366 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
4367 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
4368 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
4369 clause appear together. Handle
4370 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
4371 clause if it has map-type-modifier always. Handle
4372 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
4374 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
4375 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
4377 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
4378 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
4379 iterators in doacross loops.
4380 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
4381 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
4382 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
4383 for the addition of ORT_COMBINED_TARGET.
4384 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
4385 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
4386 and OMP_TARGET_EXIT_DATA.
4387 (gimplify_omp_ordered): New function.
4388 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
4389 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
4390 Gimplify clauses on OMP_CRITICAL.
4391 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
4392 expand_GOMP_SIMD_ORDERED_END): New functions.
4393 * internal-fn.def (GOMP_SIMD_ORDERED_START,
4394 GOMP_SIMD_ORDERED_END): New internal functions.
4395 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
4396 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
4397 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
4398 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
4399 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
4400 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
4401 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
4402 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
4403 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
4404 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
4405 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
4406 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
4407 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
4408 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
4410 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
4411 GOMP_target_data_41, adjust type.
4412 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
4413 GOMP_target_update_41, adjust type.
4414 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
4416 (struct omp_for_data): Add ordered and simd_schedule fields.
4417 (omp_member_access_dummy_var, unshare_and_remap_1,
4418 unshare_and_remap, is_taskloop_ctx): New functions.
4419 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
4420 (extract_omp_for_data): Handle taskloops and doacross loops
4421 and simd schedule modifier.
4422 (omp_adjust_chunk_size): New function.
4423 (get_ws_args_for): Use it.
4424 (lookup_sfield): Change first argument to splay_tree_key,
4425 add overload with first argument tree.
4426 (maybe_lookup_field): Likewise.
4427 (use_pointer_for_field): Handle omp_member_access_dummy_var.
4428 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
4429 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
4430 (build_outer_var_ref): Add LASTPRIVATE argument, handle
4431 taskloops and omp_member_access_dummy_var vars.
4432 (build_sender_ref): Change first argument to splay_tree_key,
4433 add overload with first argument tree.
4434 (install_var_field): For mask & 8 use &DECL_UID as key instead
4436 (fixup_child_record_type): Const qualify *.omp_data_i.
4437 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
4438 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
4439 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
4440 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
4441 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
4442 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
4443 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
4445 (add_taskreg_looptemp_clauses): New function.
4446 (scan_omp_parallel): Use it.
4447 (scan_omp_task): Likewise.
4448 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
4449 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
4450 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
4451 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
4452 sandwiched taskloop constructs. Type check
4453 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
4454 region. Diagnose depend(source) or depend(sink:...) on
4455 target constructs or task/taskloop.
4456 (handle_simd_reference): Use get_name.
4457 (lower_rec_input_clauses): Likewise. Ignore all
4458 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
4459 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
4460 before passing it to omp_clause_{default,copy}_ctor. Handle
4461 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
4462 lastprivate_firstprivate flag for linear that needs copyin and
4463 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
4464 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
4465 on taskloop lookup decl in outer context. Pass true to
4466 build_outer_var_ref lastprivate argument. Handle
4467 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
4468 outside of outer taskloop for.
4469 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
4471 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
4472 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
4473 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
4474 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
4475 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
4476 abstract origin. Handle omp_member_access_dummy_var vars.
4477 (expand_parallel_call): Use expand_omp_build_assign.
4478 (expand_task_call): Handle taskloop construct expansion. Add
4479 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
4480 integers. Add priority argument to GOMP_task* calls. Or in
4481 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
4483 (expand_omp_build_assign): Add prototype. Add AFTER
4484 argument, if true emit statements after *GSI_P and continue linking.
4485 (expand_omp_taskreg): Adjust expand_task_call caller.
4486 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
4487 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
4488 zero_iter2_bb and first_zero_iter2 arguments, handle computation
4489 of counts even for ordered loops.
4490 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
4491 (expand_omp_ordered_source, expand_omp_ordered_sink,
4492 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
4494 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
4495 clauses on worksharing loop. Handle DOACROSS loop expansion.
4496 (expand_omp_for_static_nochunk): Handle linear clauses on
4497 worksharing loop. Adjust expand_omp_for_init_counts
4499 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
4500 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
4501 expand_omp_for_init_counts callers.
4502 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
4504 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
4505 Handle doacross loops.
4506 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4507 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
4508 GOMP_target_{41,update_41,enter_exit_data} libcalls.
4509 (expand_omp): Don't expand ordered depend constructs here, record
4510 ord_stmt instead for later expand_omp_for_generic.
4511 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4512 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
4513 clause as stand-alone directive.
4514 (lower_omp_ordered_clauses): New function.
4515 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
4516 don't lower anything.
4517 (lower_omp_for_lastprivate): Use last _looptemp_ clause
4518 on taskloop for comparison.
4519 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
4520 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
4521 expansion for linear adjustments.
4522 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
4523 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
4524 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
4525 to tree * pointing to the stmt's clauses.
4526 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
4527 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
4528 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
4529 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
4530 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
4531 clauses. Always use short kind and 8-bit align shift.
4532 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
4533 (struct lower_omp_regimplify_operands_data): New type.
4534 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
4536 (lower_omp_1): Use lower_omp_regimplify_operands instead of
4537 gimple_regimplify_operands.
4538 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
4539 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
4540 clause as stand-alone directive.
4541 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
4542 (simd_clone_mangle): Mangle the various linear kinds
4544 (simd_clone_adjust_argument_types): Handle
4545 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
4546 (simd_clone_init_simd_arrays): Don't do anything for uval.
4547 (simd_clone_adjust): Handle
4548 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4549 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
4550 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
4551 * omp-low.h (omp_member_access_dummy_var): New prototype.
4552 * passes.def (pass_simduid_cleanup): Schedule another copy of the
4553 pass after all optimizations.
4554 * tree.c (omp_clause_code_name): Add entries for
4555 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4556 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
4557 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
4558 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
4559 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
4560 OMP_CLAUSE_REDUCTION 5 arguments. Handle
4561 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4562 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
4564 * tree-core.h (enum omp_clause_linear_kind): New.
4565 (struct tree_omp_clause): Change type of map_kind
4566 from unsigned char to unsigned int. Add subcode.if_modifier
4567 and subcode.linear_kind fields.
4568 (enum omp_clause_code): Add
4569 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
4570 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
4571 (OMP_CLAUSE_REDUCTION): Document
4572 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
4573 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
4574 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
4575 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
4577 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
4579 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
4581 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
4582 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
4584 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
4585 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
4586 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
4587 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
4588 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
4589 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
4590 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
4591 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
4592 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
4593 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
4594 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
4595 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
4596 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
4597 * tree-inline.c (remap_gimple_stmt): Handle clauses on
4598 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
4599 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
4600 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
4601 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
4602 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
4603 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
4604 (convert_local_omp_clauses): Likewise.
4605 * tree-pretty-print.c (dump_omp_clause): Handle
4606 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
4607 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
4608 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
4609 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
4610 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
4611 GOMP_MAP_FORCE_DEALLOC. Handle
4612 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
4613 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
4614 and clauses on OMP_ORDERED and OMP_CRITICAL.
4615 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
4616 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
4617 (vectorize_loops): Adjust comments.
4618 (pass_simduid_cleanup::execute): Likewise.
4619 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4620 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
4621 * wide-int.h (wi::gcd): New.
4623 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
4625 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
4626 (ix86_function_arg_advance): Ditto.
4627 (ix86_function_arg): Ditto.
4628 (ix86_gimplify_va_arg): Ditto.
4629 (ix86_class_max_nregs): Ditto.
4630 (inline_memory_move_cost): Ditto.
4631 (ix86_set_reg_reg_cost): Ditto.
4632 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
4634 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
4637 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
4639 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
4641 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
4642 ROUND_UP macro and UNITS_PER_WORD * 2.
4643 * config/sparc/sparc.c (sparc_compute_frame_size):
4644 Use ROUND_UP and ROUND_DOWN macros where applicable.
4645 (function_arg_record_value, function_arg_record_value_1)
4646 (function_arg_record_value_1): Ditto.
4647 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
4648 alignment to double-word.
4649 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
4650 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
4653 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
4655 * rtl.h (print_insn): Fix prototype.
4657 2015-10-13 Tom de Vries <tom@codesourcery.com>
4659 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
4660 -1. Add assert that returned entry matches phi argument.
4661 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
4662 free_stmt_vec_info_vec ...
4663 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
4666 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
4668 PR tree-optimization/67909, 67947
4669 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
4670 really skip the inner loop.
4672 2015-10-13 Jeff Law <law@redhat.com>
4674 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4675 Allow single block jump threading paths.
4677 2015-10-13 Tom de Vries <tom@codesourcery.com>
4679 PR tree-optimization/67476
4680 * doc/invoke.texi (@item parloops-schedule): New item.
4681 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
4682 * tree-parloops.c: Include params-enum.h.
4683 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
4685 2015-10-13 Tom de Vries <tom@codesourcery.com>
4687 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
4688 * params-enum.h: New file.
4689 * opts.c (handle_param): Handle case that param arg is a string.
4690 * params-list.h: Handle DEFPARAMENUM5 in params.def.
4691 * params.c (find_param): New function, factored out of ...
4692 (set_param_value): ... here.
4693 (param_string_value_p): New function.
4694 * params.h (struct param_info): Add value_names field.
4695 (find_param, param_string_value_p): Declare.
4697 2015-10-13 Tom de Vries <tom@codesourcery.com>
4699 PR tree-optimization/67476
4700 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
4702 2015-10-13 Richard Biener <rguenther@suse.de>
4704 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
4705 the data dependence vector.
4706 (vect_peeling_hash_insert): Get the peeling hash table as argument.
4707 (vect_peeling_hash_get_lowest_cost): Likewise.
4708 (vect_enhance_data_refs_alignment): Adjust.
4709 (struct _vect_peel_info, struct _vect_peel_extended_info,
4710 struct peel_info_hasher): Move from ...
4711 * tree-vectorizer.h: ... here.
4712 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
4713 (LOOP_VINFO_PEELING_HTAB): Likewise.
4714 (struct _loop_vec_info): Remove min_profitable_iters and
4715 peeling_htab members.
4716 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
4718 (destroy_loop_vec_info): Adjust.
4719 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
4720 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
4721 to estimate alias versioning cost.
4722 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
4724 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
4726 * real.h (real_isinteger): Declare.
4727 * real.c (real_isinteger): New function.
4728 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
4729 if y is an even integer.
4731 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4734 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4735 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4736 counts when these are more informative.
4738 2015-10-12 Jeff Law <law@redhat.com>
4740 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
4741 (fsm_find_control_stmt_paths): Change name of first argument to
4742 more accurately relfect what it really is. Handle simplification
4743 of GIMPLE_COND after finding a thread path for NAME.
4744 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
4745 nontrivial conditions to be handled by FSM threader.
4746 (thread_through_normal_block): Extract the name to looup via
4747 FSM threader from COND_EXPR.
4749 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
4750 restriction that traced SSA_NAME is a user variable.
4752 2015-10-12 Tom de Vries <tom@codesourcery.com>
4754 PR tree-optimization/67476
4755 * omp-low.c (expand_omp_for_generic): Add missing phis.
4757 2015-10-12 Tom de Vries <tom@codesourcery.com>
4759 PR tree-optimization/67476
4760 * omp-low.c (expand_omp_for_generic): Handle simple latch.
4762 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
4764 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4765 tables: add tbl3 and tbx4.
4766 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
4767 (aarch64_tbx4v8qi): New.
4768 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
4769 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
4770 Rewrite using builtin functions.
4771 * config/aarch64/iterators.md (UNSPEC_TBX): New.
4773 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4775 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
4777 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4778 Use ROUND_UP and ROUND_DOWN macros where applicable.
4779 (rs6000_darwin64_record_arg_flush): Ditto.
4780 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
4781 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
4784 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4786 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
4787 (AARCH64_ROUND_DOWN): Ditto.
4788 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
4790 2015-10-12 Richard Biener <rguenther@suse.de>
4793 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
4794 code that analyzes IVs on each stmt but in a cheaper way avoiding
4797 2015-10-12 Nick Clifton <nickc@redhat.com>
4799 * config/msp430/msp430.c (msp430_mcu_names): Rename to
4800 msp430_mcu_data, add fields for ISA and hardware multiply
4801 support. Import latest data from the devices.csv file.
4802 (msp430_override_option): Use the data from the new array.
4803 (msp430_use_f5_series_hwmult): Likewise.
4804 (use_32bit_hwmult): Likewise.
4805 (msp430_no_hwmult): Likewise.
4806 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
4808 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
4809 not recognised then no hardware multiply support is assumed and
4810 that only the MSP430 ISA is allowed.
4812 2015-10-12 Richard Biener <rguenther@suse.de>
4814 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
4816 (vect_analyze_loop_2): ... here.
4818 2015-10-11 Jason Merrill <jason@redhat.com>
4821 * expr.c (store_field): Call store_constructor directly when
4822 storing a CONSTRUCTOR into a target smaller than its type.
4823 Guard against unsafe bitwise copy.
4825 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4827 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4828 counts when these are more informative.
4830 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4832 * tree-profile.c (tree_profiling): Do not clear
4833 pure/const when not instrumenting.
4834 (pass tree_profile): Add dump of symtab.
4836 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4838 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
4840 (fold_addr_of_array_ref_difference): Likewise.
4842 2015-10-11 Jeff Law <law@redhat.com>
4844 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
4845 tree-ssa-threadbackward.c.
4846 (fsm_find_control_statement_thread_paths): Likewise.
4847 (thread_through_normal_block): Break out FSM bits and move them
4848 into a new function in tree-ssa-threadbackward.c. Call new function
4850 Minimize header file usage.
4851 * tree-ssa-threadbackward.h: New file.
4852 * tree-ssa-threadbackward.c: Likewise.
4853 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4855 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
4857 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4859 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
4861 PR rtl-optimization/67864
4862 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
4863 fallthrough edges for conditional jumps. Don't sort candidate
4864 edges if not optimizing for speed.
4866 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4868 * defaults.h (REVERSE_CONDITION): New default definition.
4869 * jump.c (reversed_comparison_code_parts): Adjust.
4871 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4873 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4874 check HARD_FRAME_POINTER_IS_ARG_POINTER.
4876 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4878 * defaults.h (FRAME_ADDR_RTX): New default definition.
4879 * builtins.c (expand_builtin_return_addr): Adjust.
4881 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4883 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4884 * builtins.c (expand_builtin_return_addr): Adjust.
4886 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4888 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4889 * builtins.c (expand_builtin_return_addr): Adjust.
4890 * doc/tm.texi: Likewise.
4891 * doc/tm.texi.in: Likewise.
4892 * except.c (expand_builtin_unwind_init): Likewise.
4894 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4896 * builtins.c (expand_builtin_return_addr): Adjust.
4897 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4899 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4901 * tree.c (type_with_interoperable_signedness): New.
4902 (gimple_canonical_types_compatible_p): Use it.
4903 * tree.h (type_with_interoperable_signedness): Declare
4905 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4907 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4908 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4909 when OEP_ADDRESS_OF is se.
4911 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4912 Sebastian Pop <s.pop@samsung.com>
4914 * graphite-dependences.c (scop_get_dependences): Add dump of the
4915 data dependence graph.
4916 * graphite-poly.c (print_isl_union_map): New.
4917 (debug_isl_union_map): New.
4918 * graphite-poly.h (print_isl_union_map): Declare.
4919 (debug_isl_union_map): Declare.
4921 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4922 Sebastian Pop <s.pop@samsung.com>
4924 * graphite-poly.c (print_iteration_domain): Remove verbosity.
4925 Remove OpenScop formatting.
4926 (print_iteration_domains): Same.
4927 (debug_iteration_domain): Same.
4928 (debug_iteration_domains): Same.
4931 (dump_gbb_cases): Same.
4932 (dump_gbb_conditions): Same.
4935 (print_pbb_body): Same.
4937 (print_scop_params): Same.
4938 (print_scop_context): Same.
4940 (debug_pbb_domain): Same.
4942 (debug_scop_context): Same.
4944 (debug_scop_params): Same.
4945 * graphite-poly.h: Same.
4946 * graphite.c (graphite_transform_loops): Same.
4948 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4950 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4951 call that isn't needed.
4953 2015-10-09 Jeff Law <law@redhat.com>
4955 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4956 rather than moving each name to the freelist individually.
4958 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
4960 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4961 * frame-header-opt.c: New file.
4962 * config/mips/mips-proto.h (mips_register_frame_header_opt):
4964 * config/mips/mips.c (mips_compute_frame_info): Check
4965 optimize_call_stack flag.
4966 (mips_option_override): Register new frame_header_opt pass.
4967 (mips_frame_info, mips_int_mask, mips_shadow_set,
4968 machine_function): Move these types to...
4969 * config/mips/mips.h: here.
4970 (machine_function): Add does_not_use_frame_header and
4971 optimize_call_stack fields.
4972 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4973 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4975 * config/mips/mips.opt (mframe-header-opt): Add new option.
4977 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
4979 * config/i386/i386.c
4980 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4981 ROUND_DOWN where applicable.
4983 2015-10-09 Jeff Law <law@redhat.com>
4985 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4988 2015-10-09 Renlin Li <renlin.li@arm.com>
4990 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4991 operands[0] and operands[2].
4992 (neon_vtrn<mode>_insn): Likewise.
4993 (neon_vzip<mode>_insn): Likewise.
4995 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
4997 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4998 ((X & C2) << C1): Expand to...
4999 (X {&,^,|} C2 << C1): ...This.
5000 ((X & C2) >> C1): Expand to...
5001 (X {&,^,|} C2 >> C1): ...This.
5003 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
5006 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5007 Adjust embedded rounding/SAE specifier position.
5008 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5009 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5010 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5011 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5012 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5014 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5016 2015-10-09 Martin Jambor <mjambor@suse.cz>
5018 tree-optimization/67794
5019 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5020 between types of state,ents but accept original definitions as a
5022 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5023 iterate over definitions.
5025 2015-10-09 James Norris <jnorris@codesourcery.com>
5027 * config/rs6000/rs6000.c (rs6000_offload_options): New.
5028 (TARGET_OFFLOAD_OPTIONS): New.
5030 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
5033 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5036 * function.c (expand_function_end): Move return value
5037 promotion past the handling of PARALLELs and CONCATs.
5039 PR rtl-optimization/67828
5040 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5041 (tree_may_unswitch_on): Don't unswitch on expressions
5042 involving undefined values.
5044 2015-10-09 Richard Biener <rguenther@suse.de>
5046 * genmatch.c (print_operand): Fix formatting.
5047 (dt_node::append_simplify): Warn for multiple simplifiers
5048 that match the same pattern.
5049 * match.pd (log (exp @0)): Remove duplicates.
5051 2015-10-09 Richard Biener <rguenth@suse.de>
5054 * gimple-fold.c (optabs-query.h): Include
5055 (gimple_fold_builtin_memory_op): Allow unaligned stores
5056 when movmisalign_optabs are available.
5058 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5061 * config/arm/arm.md (movmisalign<mode>): New.
5062 * config/arm/iterators.md (HSI): New.
5064 2015-10-09 Richard Biener <rguenther@suse.de>
5066 PR tree-optimization/67891
5067 * gimple-match.h (gimple_simplified_result_is_gimple_val):
5069 (gimple_resimplify1): Declare.
5070 (gimple_resimplify2): Likewise.
5071 (gimple_resimplify3): Likewise.
5072 * gimple-match-head.c (gimple_resimplify1): Export.
5073 (gimple_resimplify2): Likewise.
5074 (gimple_resimplify3): Likewise.
5075 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5076 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5077 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5078 to avoid creating stmts without VN info.
5080 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
5082 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5085 2015-10-08 Jeff Law <law@redhat.com>
5087 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5088 and release_ssa_name in two places.
5089 (gimple_stringop_fixed_value): Similarly.
5091 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5094 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5095 unlink_stmt_vdef and release_ssa_name_fn.
5097 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5100 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
5102 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5103 SSE register save area to 16 bytes only if the incoming stack
5104 boundary is no less than 16 bytes.
5106 2015-10-08 Jeff Law <law@redhat.com>
5108 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
5109 release_ssa_name. Fix typo in comment.
5111 2015-10-08 Nathan Sidwell <nathan@acm.org>
5113 * config/nvptx/nvptx.h (struct machine_function): Add comment.
5114 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
5115 may return pointer as well as in memory.
5116 (nvptx_output_return): Likewise.
5118 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5120 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
5121 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5122 * match.pd: Add rules previously handled by fold_builtin_sqrt
5123 and fold_builtin_cbrt.
5125 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5127 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
5128 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
5129 * fold-const.h (tree_unary_nonnegative_warnv_p)
5130 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5131 (tree_expr_nonnegative_warnv_p): Add depth parameters.
5132 * fold-const.c: Include gimple-fold.h and params.h.
5133 (tree_ssa_name_nonnegative_warnv_p): New function.
5134 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
5135 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5136 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
5137 Add a depth parameter and increment it for recursive calls to
5138 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
5139 to handle SSA names.
5140 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
5141 (gimple_stmt_nonnegative_warnv_p): Declare.
5142 * tree-vrp.c (remove_range_assertions): Remove assert that condition
5143 cannot be proven false.
5144 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
5145 (gimple_stmt_nonnegative_warnv_p): Move to...
5146 * gimple-fold.c: ...here. Add depth parameters and pass them
5147 down to the tree routines. Accept statements that aren't
5148 assignments or calls but just return false for them.
5149 (gimple_val_nonnegative_real_p): Delete.
5150 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
5151 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
5152 Check HONOR_NANs first.
5154 2015-10-08 Martin Jambor <mjambor@suse.cz>
5156 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
5159 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5161 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
5162 in the tail of outer-loop.
5164 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
5166 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
5169 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5171 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
5172 "cfghooks.h", add prototypes for introduced new functions.
5173 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
5174 checks on ability of loop unswitching to tree_unswitch_single_loop;
5175 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
5176 on innermost loop check.
5177 (tree_unswitch_single_loop): Add all required checks on ability of
5178 loop unswitching under zero recursive level guard.
5179 (tree_unswitch_outer_loop): New function.
5180 (find_loop_guard): Likewise.
5181 (empty_bb_without_guard_p): Likewise.
5182 (used_outside_loop_p): Likewise.
5183 (get_vop_from_header): Likewise.
5184 (hoist_guard): Likewise.
5185 (check_exit_phi): Likewise.
5187 2015-10-08 Marek Polacek <polacek@redhat.com>
5189 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
5192 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5195 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5196 create_tmp_var_raw instead of create_tmp_var.
5198 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
5200 * expr.c (store_expr_with_bounds): Handle aggregate moves from
5202 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
5203 to define gimple type system; compare aggregates only by size.
5205 2015-10-07 Jeff Law <law@redhat.com>
5207 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
5208 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
5209 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
5212 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5213 Sebastian Pop <s.pop@samsung.com>
5215 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
5216 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
5217 (generate_isl_schedule): Same.
5218 * graphite-optimize-isl.c (scop_get_domains): Same.
5219 (apply_schedule_map_to_scop): Same.
5220 * graphite-poly.c (print_iteration_domains): Same.
5221 (remove_gbbs_in_scop): Same.
5225 * graphite-poly.h (struct scop): Rename bbs to pbbs.
5227 * graphite-scop-detection.c (compare_bb_depths): Remove.
5228 (graphite_sort_dominated_info): Remove.
5229 (try_generate_gimple_bb): Move out of scop_detection.
5230 (all_non_dominated_preds_marked_p): Remove.
5231 (build_scop_bbs_1): Remove.
5232 (build_scop_bbs): Remove.
5233 (nb_pbbs_in_loops): Do not use SCOP_BBS.
5234 (find_scop_parameters): Same.
5235 (sese_dom_walker): Rename gather_bbs.
5236 (before_dom_children): Call try_generate_gimple_bb and collect gbb
5238 (build_scops): Call gather_bbs.
5239 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
5240 (add_conditions_to_constraints): Same.
5241 (build_scop_iteration_domain): Same.
5242 (build_scop_drs): Same.
5243 (new_pbb_from_pbb): Same.
5244 * sese.c (new_sese_info): Create bbs.
5245 * sese.h (struct sese_info_t): Add bbs.
5247 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
5249 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
5250 encoding in 64-bit mode.
5252 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
5255 * config/i386/i386.c (ix86_option_override_internal): Always use
5256 8-byte minimum stack boundary in 64-bit mode.
5257 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
5258 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
5259 Add a REG_CFA_EXPRESSION note if needed.
5260 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
5261 (ix86_handle_force_align_arg_pointer_attribute): New.
5262 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
5263 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
5264 with ix86_handle_force_align_arg_pointer_attribute.
5265 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
5267 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5268 Sebastian Pop <s.pop@samsung.com>
5270 * graphite-scop-detection.c (parameter_index_in_region): Remove
5271 use of SESE_ADD_PARAMS.
5272 (find_scop_parameters): Same.
5273 * sese.c (new_sese_info): Same.
5274 * sese.h (struct sese_info_t): Remove add_params.
5275 (SESE_ADD_PARAMS): Remove.
5277 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5278 Sebastian Pop <s.pop@samsung.com>
5280 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
5283 (copy_internal_parameters): Same.
5284 (translate_isl_ast_to_gimple): Use an sese_l.
5285 (build_iv_mapping): Same.
5286 * graphite-poly.c (new_sese): Rename new_sese_info.
5287 (free_sese): Rename free_sese_info.
5288 * graphite-poly.h (struct scop): Use an sese_info_p.
5289 (scop_set_region): Same.
5290 * graphite-scop-detection.c (struct sese_l): Moved...
5291 (get_entry_bb): Moved...
5292 (get_exit_bb): Moved...
5293 (parameter_index_in_region_1): Use an sese_info_p.
5294 (parameter_index_in_region): Same.
5295 (scan_tree_for_params): Same.
5296 (find_params_in_bb): Same.
5297 (sese_dom_walker): Use an sese_l.
5298 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
5299 (reduction_phi_p): Same.
5300 (parameter_index_in_region_1): Use an sese_info_p.
5301 (propagate_expr_outside_region): Use an sese_l.
5302 * graphite.c: Replace uses of SCOP_REGION.
5303 * sese.c (sese_record_loop): Use an sese_info_p.
5304 (build_sese_loop_nests): Same.
5305 (sese_build_liveouts_use): Same.
5306 (sese_build_liveouts_bb): Same.
5307 (sese_build_liveouts_bb): Same.
5308 (sese_bad_liveouts_use): Same.
5309 (sese_reset_debug_liveouts_bb): Same.
5310 (sese_build_liveouts): Same.
5311 (new_sese): Renamed new_sese_info.
5312 (free_sese): Renamed free_sese_info.
5313 (set_rename): Use an sese_info_p.
5314 (graphite_copy_stmts_from_block): Same.
5315 (copy_bb_and_scalar_dependences): Same.
5316 (outermost_loop_in_sese_1): Use an sese_l.
5317 (outermost_loop_in_sese): Same.
5318 (if_region_set_false_region): Use an sese_info_p.
5319 (move_sese_in_condition): Same.
5320 (scalar_evolution_in_region): Use an sese_l.
5321 * sese.h (struct sese_l): ... here.
5322 (SESE_ENTRY): Remove.
5323 (SESE_ENTRY_BB): Remove.
5324 (SESE_EXIT): Remove.
5325 (SESE_EXIT_BB): Remove.
5326 (sese_contains_loop): Use an sese_info_p.
5327 (sese_nb_params): Same.
5328 (bb_in_sese_p): Use an sese_l.
5329 (stmt_in_sese_p): Same.
5330 (defined_in_sese_p): Same.
5331 (loop_in_sese_p): Same.
5332 (sese_loop_depth): Same.
5333 (struct ifsese_s): Use an sese_info_p.
5334 (gbb_loop_at_index): Use an sese_l.
5335 (nb_common_loops): Same.
5336 (scev_analyzable_p): Same.
5338 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
5340 * config/i386/i386.c (ix86_conditional_register_usage): Use
5341 CALL_USED_REGISTERS_MASK.
5342 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
5344 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
5347 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
5348 * configure: Regenerated.
5350 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
5353 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
5354 (ix86_set_current_function): This.
5355 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
5357 2015-10-07 Richard Biener <rguenther@suse.de>
5359 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
5360 (vinfo_for_stmt): Adjust.
5361 (set_vinfo_for_stmt): Likewise.
5362 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
5363 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
5364 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
5366 (vect_analyze_loop_1): Remove.
5367 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
5368 inner loop when vectorizing an outer loop by splitting out from ...
5369 (vect_analyze_loop_form): ... here.
5371 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5374 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
5375 Use create_tmp_var_raw instead of create_tmp_var.
5377 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
5379 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
5380 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
5381 * real.c (CACHED_FRACTION): New helper macro.
5382 (dconst_third_ptr): Use it.
5383 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
5384 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
5386 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
5388 2015-10-06 Jeff Law <law@redhat.com>
5390 PR tree-optimization/67816
5391 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
5392 from remove_jump_threads_starting_at. Accept an edge rather than
5394 * tree-ssa-threadupdate.c (removed_edges): New hash table.
5395 (remove_jump_threads_including): Note edges that get removed from
5396 the CFG for later pruning of jump threading paths including them.
5397 (thread_through_all_blocks): Remove paths which include edges that
5399 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
5400 on each outgoing edges when optimizing away a control statement.
5402 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5404 * reorg.c (emit_delay_sequence): Store list of delay slot insns
5405 in a vector instead of rtx_insn_list.
5406 (add_to_delay_list): Likewise.
5407 (delete_from_delay_slot): Likewise.
5408 (optimize_skip): Likewise.
5409 (redirect_with_delay_list_safe_p): Likewise.
5410 (check_annul_list_true_false): Likewise.
5411 (steal_delay_list_from_target): Likewise.
5412 (steal_delay_list_from_fallthrough): Likewise.
5413 (redundant_insn): Likewise.
5414 (fill_simple_delay_slots): Likewise.
5415 (fill_slots_from_thread): Likewise.
5416 (fill_eager_delay_slots): Likewise.
5417 (relax_delay_slots): Likewise.
5419 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
5421 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
5422 For -mgpopt=local, also exclude unintialized common symbols.
5423 * doc/invoke.texi (Nios II Options): Document the change.
5425 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
5427 * config/aarch64/iterators.md (vwcore): Add missing cases for
5430 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
5431 Sebastian Pop <s.pop@samsung.com>
5433 * graphite-poly.c (new_scop): Initialize drs.
5434 * graphite-poly.h (struct dr_info): New.
5435 (struct scop): Add drs.
5436 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
5437 (pdr_add_memory_accesses): Same.
5438 (build_poly_dr): Same.
5439 (build_alias_set): Same.
5440 (build_scop_drs): Same.
5441 (build_pbb_drs): Remove.
5442 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
5443 * tree-data-ref.h (data_reference): Remove alias_set.
5445 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
5446 Sebastian Pop <s.pop@samsung.com>
5448 * graphite-poly.c (free_data_refs_aux): Remove.
5449 (free_gimple_poly_bb): Do not call free_data_refs_aux.
5450 * graphite-poly.h (struct base_alias_pair): Remove.
5451 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
5452 base_alias_pair and dr->aux.
5453 (build_alias_set): Same.
5454 * tree-data-ref.c (create_data_ref): Initialize alias_set.
5455 * tree-data-ref.h (data_reference): Add alias_set.
5457 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
5458 Sebastian Pop <s.pop@samsung.com>
5460 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
5461 Do not set PDR_BASE_OBJECT_SET.
5462 * graphite-poly.h (poly_dr): Same.
5463 (PDR_BASE_OBJECT_SET): Remove.
5464 (new_poly_dr): Update decl.
5465 * graphite-sese-to-poly.c (build_poly_dr): Update call to
5467 (write_alias_graph_to_ascii_dimacs): Remove.
5468 (write_alias_graph_to_ascii_dot): Remove.
5469 (write_alias_graph_to_ascii_ecc): Remove.
5470 (dr_same_base_object_p): Remove.
5471 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
5473 (build_base_obj_set_for_drs): Remove.
5474 (dump_alias_graphs): Remove.
5475 (build_scop_drs): Remove dead code.
5477 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
5478 Peter Bergner <bergner@vnet.ibm.com>
5481 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
5482 allow registers, but provide insns for the combiner to create for
5483 loads from memory. Separate VSX code from non-VSX code. For
5484 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
5485 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
5486 so that registers come before memory operations. Drop support from
5487 converting DFmode to TFmode, if the DFmode value is in a GPR
5489 (extenddftf2_fprs): Likewise.
5490 (extenddftf2_internal): Likewise.
5491 (extenddftf2_vsx): Likewise.
5492 (extendsftf2): In the expander, only allow registers, but provide
5493 insns for the combiner to create for stores and loads.
5495 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5497 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
5498 from the decl parameter.
5500 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
5503 * gimple-fold.c (gimple_fold_builtin): Add break after
5504 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
5506 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
5508 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
5509 to scop->isl_context.
5511 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
5513 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
5514 (output_probe_stack_range): Rotate the loop and simplify.
5515 (thumb1_expand_prologue): Tweak sorry message.
5516 * config/arm/arm.md (probe_stack): Use bare string.
5518 2015-10-06 Nick Clifton <nickc@redhat.com>
5520 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
5522 2015-10-06 Nick Clifton <nickc@redhat.com>
5524 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
5525 (ATTR_PERSIST): New constant.
5526 (msp430_data_attr): New function - verifies an attribute that only
5527 applies to variables.
5528 (msp430_attributes): Add noinit and persistent attributes.
5529 (noinit_section): New variable.
5530 (presis_section): New variable.
5531 (TARGET_ASM_INIT_SECTIONS): Define.
5532 (msp430_init_sections): New function - initialises the noinit and
5533 persist section variables.
5534 (msp430_select_section): Add support for noinit and persist
5536 (msp430_section_type_flags): Likewise.
5537 * doc/extend.texi: Document the reent, critical, wakeup, noinit
5538 and persistent attributes.
5540 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5541 Sebastian Pop <s.pop@samsung.com>
5543 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
5544 (no_violations): Remove.
5545 (subtract_commutative_associative_deps): Remove.
5546 (compute_deps): Do not call subtract_commutative_associative_deps.
5547 (transform_is_safe): Remove.
5548 (graphite_legal_transform): Remove.
5549 * graphite-poly.h (graphite_legal_transform): Remove.
5551 2015-10-05 Aditya Kumar <hiraditya@msn.com>
5553 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
5554 which are in this region are passed so gcc_assert and remove redundant
5556 * sese.c (sese_build_liveouts): Pass only those bbs which are not
5558 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
5559 gcc_assert on that and remove unnecessary computation.
5560 (sese_build_liveouts_use): Same.
5562 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5564 * graphite-dependences.c (scop_get_reads): Renamed scop->context
5565 to scop->param_context.
5566 (scop_get_must_writes): Same.
5567 (scop_get_may_writes): Same.
5568 (scop_get_original_schedule): Same.
5569 (scop_get_transformed_schedule): Same.
5570 (subtract_commutative_associative_deps): Same.
5571 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
5572 (generate_isl_context): Same.
5573 (generate_isl_schedule): Same.
5574 (scop_to_isl_ast): Same.
5575 (graphite_regenerate_ast_isl): Same.
5576 * graphite-optimize-isl.c (scop_get_domains): Same.
5577 (optimize_isl): Renamed scop->context to scop->param_context.
5578 * graphite-poly.c (new_poly_bb): Change the type of argument to
5580 (new_scop): Renamed scop->context to scop->param_context.
5582 (print_scop_context): Same.
5583 * graphite-poly.h (new_poly_dr): Change the type of argument from
5584 void* to data_reference_p.
5585 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
5586 (new_poly_bb): Change the type of argument from void* to
5588 (pbb_set_black_box): Same.
5589 (struct scop): Rename context to param_context, ctx to isl_context.
5590 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
5591 Move declarations closer to assignment.
5592 (find_params_in_bb): Same.
5593 (find_scop_parameters): Same.
5594 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
5595 Global to be used for statement IDs.
5596 (isl_id_for_pbb): Use ssa_name_version_typesize.
5597 (simple_copy_phi_p): Move declarations closer to assignment.
5598 (build_pbb_scattering_polyhedrons): Same.
5599 (build_scop_scattering): Same.
5600 (isl_id_for_ssa_name): Same.
5601 (extract_affine_name): Same.
5602 (extract_affine_int): Same.
5603 (extract_affine): Same.
5604 (set_scop_parameter_dim): Use renamed member.
5605 (build_loop_iteration_domains): Same.
5606 (add_param_constraints): Same.
5607 (build_scop_iteration_domain): Same.
5608 (pdr_add_data_dimensions): Same.
5609 (build_poly_dr): Same.
5610 (build_scop_drs): Move declarations closer to assignment.
5611 (analyze_drs_in_stmts): Same.
5612 (insert_out_of_ssa_copy): Same.
5613 (insert_out_of_ssa_copy_on_edge): Same.
5614 (propagate_expr_outside_region): Same.
5615 (rewrite_phi_out_of_ssa): Same.
5616 (rewrite_degenerate_phi): Same.
5617 (rewrite_reductions_out_of_ssa): Same.
5618 (rewrite_cross_bb_scalar_dependence): Same.
5619 (handle_scalar_deps_crossing_scop_limits): Same.
5620 (rewrite_cross_bb_scalar_deps): Same.
5621 * graphite.c (graphite_transform_loops): Use renamed member.
5623 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
5626 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
5627 create_tmp_var_raw instead of create_tmp_var.
5629 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5632 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
5633 Use create_tmp_var_raw instead of create_tmp_var.
5635 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
5638 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
5639 split for upper-bank registers when target does not support
5641 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
5642 split when target does not support AVX512VL.
5644 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
5647 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
5648 Adjust to use create_tmp_var_raw instead of create_tmp_var.
5650 2015-10-06 Nick Clifton <nickc@redhat.com>
5652 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
5655 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5657 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
5658 (case ${target}): Add znver1.
5659 * config/i386/cpuid.h(bit_CLZERO): Define.
5660 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5661 -march=native recognize znver1 processors.
5662 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5663 znver1, clzero def_and_undef.
5664 * config/i386/i386.c (struct processor_costs znver1_cost): New.
5665 (m_znver1): New definition.
5666 (m_AMD_MULTIPLE): Includes m_znver1.
5667 (processor_target_table): Add znver1 entry.
5668 (ix86_target_string) : Add clzero entry.
5669 (static const char *const cpu_names): Add znver1 entry.
5670 (ix86_option_override_internal): Add znver1 instruction sets.
5671 (PTA_CLZERO) : New definition.
5672 (ix86_option_override_internal): Handle new clzerooption.
5673 (ix86_issue_rate): Add znver1.
5674 (ix86_adjust_cost): Add znver1.
5675 (ia32_multipass_dfa_lookahead): Add znver1.
5676 (has_dispatch): Add znver1.
5677 * config/i386/i386.h (TARGET_znver1): New definition.
5678 (TARGET_CLZERO): Define.
5679 (TARGET_CLZERO_P): Define.
5680 (struct ix86_size_cost): Add TARGET_ZNVER1.
5681 (enum processor_type): Add PROCESSOR_znver1.
5682 * config/i386/i386.md (define_attr "cpu"): Add znver1.
5683 (set_attr znver1_decode): New definitions for znver1.
5684 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
5686 * config/i386/mmx.md (set_attr znver1_decode): New definitions
5688 * config/i386/sse.md (set_attr znver1_decode): Likewise.
5689 * config/i386/x86-tune.def: Add znver1 tunings.
5690 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
5691 * doc/invoke.texi: Add details about znver1
5693 2015-10-06 Richard Biener <rguenther@suse.de>
5695 PR tree-optimization/67859
5696 * tree-ssa-pre.c (create_expression_by_pieces): Properly
5697 discard not inserted stmts.
5699 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
5701 * doc/extend.texi (Template Instantiation): Reorder options and
5702 de-emphasize -frepo.
5703 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
5704 example instead of -frepo.
5706 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
5709 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
5710 use create_tmp_var_raw rather than create_tmp_var.
5712 2015-10-06 Richard Biener <rguenther@suse.de>
5714 * tree-vectorizer.h (vec_info): New base class for...
5715 (_loop_vec_info): ... this and ...
5716 (_bb_vec_info): ... this.
5717 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
5718 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
5719 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
5720 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
5721 vect_destroy_datarefs): Adjust interface to take a vec_info *
5722 rather than both a loop_vec_info and a bb_vec_info argument.
5723 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
5724 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
5725 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
5726 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
5728 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
5729 (destroy_loop_vec_info, vect_analyze_loop_2,
5730 vect_is_simple_reduction_1, get_initial_def_for_induction,
5731 vect_create_epilog_for_reduction, vectorizable_reduction,
5732 vectorizable_live_operation, vect_transform_loop): Adjust.
5733 * tree-vect-patterns.c (type_conversion_p,
5734 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
5735 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
5736 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
5737 check_bool_pattern, vect_recog_bool_pattern,
5738 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
5739 * tree-vect-slp.c (vect_get_and_check_slp_defs,
5740 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
5741 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
5742 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
5743 (new_bb_vec_info): Initialize base classs.
5744 * tree-vect-stmts.c (record_stmt_cost, process_use,
5745 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
5746 vectorizable_mask_load_store, vectorizable_call,
5747 vectorizable_simd_clone_call, vectorizable_conversion,
5748 vectorizable_assignment, vectorizable_shift,
5749 vectorizable_operation, vectorizable_store,
5750 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
5751 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
5752 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
5754 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5757 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
5758 create_tmp_var_raw rather than create_tmp_var.
5760 2015-10-05 Marek Polacek <polacek@redhat.com>
5762 * tree-ssa-loop-im.c
5763 (move_computations_dom_walker::before_dom_children): Don't set
5764 SSA_NAME_ANTI_RANGE_P.
5765 * tree-ssa-phiopt.c (value_replacement): Likewise.
5767 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5768 Sebastian Pop <s.pop@samsung.com>
5770 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
5772 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5773 Sebastian Pop <s.pop@samsung.com>
5775 * graphite-poly.c (new_gimple_poly_bb): ... here.
5776 (free_data_refs_aux): ... here.
5777 (free_gimple_poly_bb): ... here.
5778 (remove_gbbs_in_scop): ... here.
5779 (new_scop): Call new_sese.
5780 (free_scop): Call remove_gbbs_in_scop and free_sese.
5781 * graphite-poly.h (base_alias_pair): ... here.
5782 (new_gimple_poly_bb): Declare.
5783 (free_gimple_poly_bb): Declare.
5784 * graphite-scop-detection.c (parameter_index_in_region_1):
5785 (parameter_index_in_region): ... here.
5786 (scan_tree_for_params): ... here.
5787 (find_params_in_bb): ... here.
5788 (find_scop_parameters): ... here.
5789 (build_scops): Call find_scop_parameters.
5790 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
5791 (free_scops): Move...
5792 (single_pred_cond_non_loop_exit): Move...
5793 (sese_dom_walker::before_dom_children): Move...
5794 (sese_dom_walker::after_dom_children): Move...
5795 (build_poly_scop): Move...
5796 * graphite-sese-to-poly.h (base_alias_pair): Move...
5797 * graphite.c (free_scops): ... here.
5799 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5800 Sebastian Pop <s.pop@samsung.com>
5802 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
5803 (trivially_empty_bb_p): Move...
5804 (same_close_phi_node): Move...
5805 (new_gimple_poly_bb): Move...
5806 (compare_bb_depths): Move...
5807 (graphite_sort_dominated_info): Move...
5808 (remove_duplicate_close_phi): Move...
5809 (make_close_phi_nodes_unique): Move...
5810 (canonicalize_loop_closed_ssa): Move...
5811 (canonicalize_loop_closed_ssa_form): Move...
5812 (loop_ivs_can_be_represented): Move...
5813 (single_pred_cond_non_loop_exit): Move...
5814 (graphite_can_represent_init): Move...
5815 (graphite_can_represent_scev): Move...
5816 (stmt_has_simple_data_refs_p): Move...
5817 (stmt_has_side_effects): Move...
5818 (graphite_can_represent_stmt): Move...
5819 (scop_detection): ... here.
5820 (sese_dom_walker): ... and here.
5821 (build_scops): Call all moved functions.
5822 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
5823 (all_non_dominated_preds_marked_p): Move...
5824 (build_scop_bbs_1): Move...
5825 (build_scop_bbs): Move...
5826 (set_scop_parameter_dim): Move...
5827 (nb_pbbs_in_loops): Move...
5828 (build_poly_scop): Do not call all the moved functions.
5830 2015-10-05 Martin Jambor <mjambor@suse.cz>
5831 Jan Hubicka <hubicka@ucw.cz>
5833 * ipa-cp.c (ipcp_alignment_lattice): New type.
5834 (ipcp_param_lattices): Use the above to represent alignment.
5835 (ipcp_alignment_lattice::print): New function.
5836 (print_all_lattices): Use it to print alignment information.
5837 (ipcp_alignment_lattice::top_p): New function.
5838 (ipcp_alignment_lattice::bottom_p): Likewise.
5839 (ipcp_alignment_lattice::set_to_bottom): Likewise.
5840 (ipcp_alignment_lattice::meet_with_1): Likewise.
5841 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
5842 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
5843 (initialize_node_lattices): Likewise.
5844 (propagate_alignment_accross_jump_function): Work with the new class
5845 for alignment lattices.
5846 (propagate_constants_accross_call): Pass only the alignment lattice to
5847 propagate_alignment_accross_jump_function.
5848 (ipcp_store_alignment_results): Work with the new class for alignment
5851 2015-10-05 Marek Polacek <polacek@redhat.com>
5853 PR tree-optimization/67821
5854 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5856 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
5859 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5861 (mkoffload_cleanup): ... this. Adjust all users.
5862 (maybe_unlink): Look at save_temps and verbose flags instead of
5864 (main): Parse "-save-temps" flag.
5865 (generate_target_descr_file, generate_target_offloadend_file)
5866 (generate_host_descr_file, prepare_target_image): Pass it on.
5867 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5868 (mkoffload_cleanup): New function.
5869 (maybe_unlink): Look at save_temps and verbose flags instead of
5871 (main): Instead of calling utils_cleanup, register atexit handler
5872 for mkoffload_cleanup.
5873 (main): Parse "-save-temps" flag.
5874 (compile_native, main): Pass it on.
5875 * lto-wrapper.c (compile_offload_image): Likewise.
5877 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5879 * gimple.h (gimple_op_ptr): Require a non const gimple *.
5880 (gimple_assign_lhs_ptr): Likewise.
5881 (gimple_assign_rhs1_ptr): Likewise.
5882 (gimple_assign_rhs2_ptr): Likewise.
5883 (gimple_assign_rhs3_ptr): Likewise.
5884 (gimple_call_lhs_ptr): Likewise.
5885 (gimple_call_fn_ptr): Likewise.
5886 (gimple_call_chain_ptr): Likewise.
5887 (gimple_call_arg_ptr): Likewise.
5888 (gimple_cond_lhs_ptr): Likewise.
5889 (gimple_cond_rhs_ptr): Likewise.
5890 (gimple_switch_index_ptr): Likewise.
5891 (gimple_return_retval_ptr): Likewise.
5893 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5895 * gimple.h (gimple_asm_input_op_ptr): Remove.
5896 (gimple_asm_output_op_ptr): Likewise.
5898 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5900 * gimple.h (gimple_location_ptr): Remove.
5901 * tree-vrp.c (check_all_array_refs): Adjust.
5903 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5905 * tree-ssa-operands.c (build_uses): store tree * instead of
5907 (finalize_ssa_uses): Adjust.
5908 (append_use): Likewise.
5909 (verify_ssa_operands): Likewise.
5911 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5913 * real.h (build_real_truncate): Declare.
5914 * tree.c (build_real_truncate): New function.
5915 (strip_float_extensions): Use it.
5916 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5917 (fold_builtin_hypot, fold_builtin_pow): Likewise.
5918 * match.pd: Likewise.
5920 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5921 Jiong Wang <jiong.wang@arm.com>
5923 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5925 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5927 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5928 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5929 (aarch64_print_operand, aarch64_float_const_representable_p)
5930 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5931 instead of REAL_VALUE_FROM_CONST_DOUBLE.
5932 * config/arc/arc.c (arc_print_operand): Likewise.
5933 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5934 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5935 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5937 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5938 (consttable_16): Likewise.
5939 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5940 * config/avr/avr.c (avr_print_operand): Likewise.
5941 * config/bfin/bfin.md: Likewise (in a define_split).
5942 * config/c6x/c6x.md: Likewise (in a define_split).
5943 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5944 (cr16_print_operand): Likewise.
5945 * config/cris/cris.c (cris_print_operand): Likewise.
5946 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5947 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5948 (fr30_const_double_is_zero): Likewise.
5949 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5950 * config/frv/frv.md: Likewise (in a define_split).
5951 * config/frv/predicates.md (int_2word_operand): Likewise.
5952 * config/h8300/h8300.c (h8300_print_operand): Likewise.
5953 * config/i386/i386.c (standard_80387_constant_p): Likewise.
5954 (ix86_print_operand, ix86_split_to_parts): Likewise.
5955 * config/i386/i386.md: Likewise (in a define_split).
5956 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5957 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5958 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5959 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5960 (print_operand): Likewise.
5961 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5962 * config/mep/mep.md: Likewise (in define_split).
5963 * config/microblaze/microblaze.c (microblaze_const_double_ok)
5964 (print_operand): Likewise.
5965 * config/mips/mips.md (consttable_float): Likewise.
5966 * config/mmix/mmix.c (mmix_intval): Likewise.
5967 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5968 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5969 * config/pa/pa.c (pa_singlemove_string): Likewise.
5970 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5971 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5972 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5973 (output_toc): Likewise.
5974 * config/rs6000/rs6000.md: Likewise (in define_splits).
5975 * config/rx/rx.c (rx_print_operand): Likewise.
5976 * config/s390/s390.c (s390_output_pool_entry): Likewise.
5977 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5978 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5979 (and also in define_splits).
5980 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5981 (fp_high_losum_p): Likewise.
5982 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5983 (*movsf_high): Likewise.
5984 * config/spu/spu.c (const_double_to_hwint): Likewise.
5985 * config/v850/v850.c (const_double_split): Likewise.
5986 * config/vax/vax.c (vax_float_literal): Likewise.
5987 * config/visium/visium.c (visium_expand_copysign): Likewise.
5988 * config/visium/visium.md: Likewise (in define_split).
5989 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5990 * config/xtensa/xtensa.c (print_operand): Likewise.
5991 (xtensa_output_literal): Likewise.
5992 * cprop.c (implicit_set_cond_p): Likewise.
5993 * dwarf2out.c (insert_float): Likewise.
5994 * expmed.c (expand_mult, make_tree): Likewise.
5995 * expr.c (compress_float_constant): Likewise.
5996 * rtlanal.c (split_double): Likewise.
5997 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5998 (simplify_const_unary_operation, simplify_binary_operation_1)
5999 (simplify_const_binary_operation): Likewise.
6000 (simplify_const_relational_operation): Likewise.
6001 * varasm.c (output_constant_pool_2): Likewise.
6003 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6005 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6006 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6007 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6008 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6009 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6010 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6011 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6012 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6013 (ix86_emit_swsqrtsf): Likewise.
6014 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6015 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6016 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6017 * config/pa/pa.c (pa_expand_builtin): Likewise.
6018 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6019 (rs6000_scale_v2df): Likewise.
6020 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6021 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6022 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6023 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6024 (vec_ctul): Likewise.
6025 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6026 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6027 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6028 * cse.c (fold_rtx): Likewise.
6029 * emit-rtl.c (immed_double_const): Likewise (in comments).
6030 (init_emit_once): Likewise.
6031 * expr.c (compress_float_constant, expand_expr_real_1)
6032 (const_vector_from_tree): Likewise.
6033 * optabs.c (expand_float, expand_fix): Likewise.
6034 * reg-stack.c (reg_to_stack): Likewise.
6035 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6036 (simplify_const_unary_operation, simplify_binary_operation_1)
6037 (simplify_const_binary_operation, simplify_relational_operation)
6038 (simplify_immed_subreg): Likewise.
6040 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6042 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6043 * doc/tm.texi: Regenerate.
6044 * real.h (REAL_ARITHMETIC): Delete.
6045 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6046 (ix86_expand_round_sse4): Use real_arithmetic instead of
6048 * config/i386/sse.md (round<mode>2): Likewise.
6049 * rtl.h (rtx_to_tree_code): Likewise (in comment).
6050 * explow.c (rtx_to_tree_code): Likewise (in comment).
6051 * match.pd: Likewise.
6052 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6053 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6054 (expand_pow_as_sqrts): Likewise.
6055 * tree-pretty-print.c (dump_generic_node): Remove code that
6056 was conditional on REAL_ARITHMETIC being undefined.
6058 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6060 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6061 * doc/tm.texi: Regenerate.
6062 * real.h (real_less): Declare.
6063 (REAL_VALUES_LESS): Delete.
6064 * real.c (real_less): New function.
6065 (real_compare): Use it.
6066 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6067 of REAL_VALUES_LESS.
6068 * config/microblaze/microblaze.c (microblaze_const_double_ok):
6070 * fold-const.c (fold_convert_const_int_from_real): Likewise.
6071 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6072 (simplify_const_relational_operation): Likewise.
6073 * tree-call-cdce.c (check_pow): Likewise.
6074 (gen_conditions_for_pow_cst_base): Likewise.
6076 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6078 * real.h (REAL_VALUES_IDENTICAL): Delete.
6079 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6080 instead of REAL_VALUES_IDENTICAL.
6081 * fold-const.c (operand_equal_p): Likewise.
6082 * ipa-icf.c (sem_variable::equals): Likewise.
6083 * tree-complex.c (some_nonzerop): Likewise.
6084 (expand_complex_multiplication): Likewise.
6085 * tree.c (simple_cst_equal): Likewise.
6086 * varasm.c (compare_constant): Likewise.
6088 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6090 * real.h (real_equal): Declare.
6091 (REAL_VALUES_EQUAL): Delete.
6092 * real.c (real_equal): New function.
6093 (real_compare): Use it.
6094 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6095 * doc/tm.texi: Regenerate.
6096 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6097 real_equal instead of REAL_VALUES_EQUAL.
6098 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6099 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6100 (fp_const_from_val): Likewise.
6101 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6102 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6103 (floating_exact_log2): Likewise.
6104 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6105 * config/vax/vax.c (vax_float_literal): Likewise.
6106 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6107 * cprop.c (implicit_set_cond_p): Likewise.
6108 * expmed.c (expand_mult): Likewise.
6109 * fold-const.c (const_binop): Likewise.
6110 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6111 (simplify_const_binary_operation): Likewise.
6112 (simplify_const_relational_operation): Likewise.
6113 * tree-call-cdce.c (check_pow): Likewise.
6114 (gen_conditions_for_pow_cst_base): Likewise.
6115 * tree-inline.c (estimate_num_insns): Likewise.
6116 * tree-ssa-dom.c (record_equality): Likewise.
6117 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6118 (gimple_expand_builtin_pow): Likewise.
6119 (pass_optimize_widening_mul::execute): Likewise.
6120 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6121 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
6122 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
6124 2015-10-05 Richard Biener <rguenther@suse.de>
6127 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
6128 consider loop header PHI defs as IVs.
6130 2015-10-05 Richard Biener <rguenther@suse.de>
6132 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
6134 (create_expression_by_pieces): ... here and build GIMPLE
6135 calls directly. Use gimple_build API and avoid force_gimple_operand.
6136 (insert_into_preds_of_block): Simplify.
6137 (do_regular_insertion): Add comment.
6139 2015-10-04 Jason Merrill <jason@redhat.com>
6141 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
6143 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
6145 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
6146 check for general register.
6147 (ix86_emit_save_regs): Ditto.
6148 (ix86_emit_save_regs_using_mov): Ditto.
6149 (ix86_emit_restore_regs_using_pop): Ditto.
6150 (ix86_emit_restore_regs_using_mov): Ditto.
6152 2015-10-03 Marek Polacek <polacek@redhat.com>
6154 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
6155 (insn-dfatab.o): Likewise.
6157 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
6159 * config.gcc (xtensa*-*-uclinux*): New configuration.
6160 * config/xtensa/uclinux.h: New file.
6161 * config/xtensa/uclinux.opt: New file.
6163 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
6165 * doc/cpp.texi (Standard Predefined Macros): Document value of
6166 __cplusplus for C++14.
6168 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
6170 * gcc.c (process_command): Use spec_machine rather than
6171 spec_host_machine to build tooldir_prefix2.
6173 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6174 Bernd Schmidt <bernds@codesourcery.com>
6176 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
6177 (Token, Stmt): Remove structs.
6178 (decls, vars, fns): Remove variables.
6179 (alloc_comment, append_stmt, is_keyword): Remove macros.
6180 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
6181 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
6182 (parse_init, parse_file): Remove functions.
6183 (read_file): Accept a pointer to a length and store into it.
6184 (process): Don't try to parse the input file, just write it out as
6185 a string, but looking for maps. Also write out the length.
6186 (main): Don't use "-S" to compile PTX code.
6188 2015-10-02 Jeff Law <law@redhat.com>
6190 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
6193 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6196 * config/nvptx/mkoffload.c (main): Scan the argument vector for
6197 -fopenmp, and skip generating an offloading image if specified.
6199 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
6201 * system.h (ROUND_UP): New macro definition.
6202 (ROUND_DOWN): Ditto.
6203 * ggc-page.c (ROUND_UP): Remove local macro definition.
6204 (PAGE_ALIGN): Implement using ROUND_UP macro.
6206 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
6207 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
6209 (ix86_compute_frame_layout): Ditto.
6210 (ix86_expand_prologue): Ditto.
6211 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
6212 to round down values.
6213 (expand_set_or_movmem_via_rep): Ditto.
6215 2015-10-02 Marek Polacek <polacek@redhat.com>
6217 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
6219 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
6221 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
6222 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
6223 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
6224 (free_gimple_bb): Renamed free_gimple_poly_bb.
6225 (try_generate_gimple_bb): Hoist loop invariant code.
6226 (analyze_drs_in_stmts): Same.
6227 (build_scop_drs): Call renamed functions.
6228 (new_pbb_from_pbb): Same.
6229 (scop_ivs_can_be_represented): Delete as functionality now moved to
6230 graphite-scop-detection.c
6231 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
6233 2015-10-02 Aditya Kumar <hiraditya@msn.com>
6235 * graphite-scop-detection.c (stmt_has_side_effects): New function
6236 outlined from stmt_simple_for_scop_p.
6237 (graphite_can_represent_stmt): Same.
6238 (stmt_simple_for_scop_p): Moved code out of this function for better
6241 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6243 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
6245 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
6247 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6249 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
6251 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
6253 PR rtl-optimization/67756
6254 * lra-constraints.c (match_reload): Add a new parameter. Use it
6255 for creating a pseudo with the same value.
6256 (curr_insn_transform): Pass a new argument to match_reload.
6258 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6260 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
6261 (expand_vec_perm_even_odd_1): Handle V64QImode.
6262 (ix86_expand_vec_perm_const_1): Try expansion with
6263 expand_vec_perm_even_odd_trunc as well.
6264 * config/i386/sse.md (VI124_AVX512F): Rename to ...
6265 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
6267 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
6268 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
6270 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
6271 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
6272 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
6273 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
6274 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
6275 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
6277 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6279 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
6280 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
6282 2015-10-02 Jason Merrill <jason@redhat.com>
6285 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
6286 (diagnose_tm_1_op): Also diagnose volatile accesses in
6287 transaction_safe function.
6289 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
6291 * system.h (malloc.h): Don't include obsolete header.
6293 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6295 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
6296 (TLS_SECTION_ASM_FLAG): Delete.
6298 2015-10-02 Marek Polacek <polacek@redhat.com>
6301 * doc/invoke.texi: Document -Wduplicated-cond.
6302 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
6303 (insn-dfatab.o): Likewise.
6304 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
6307 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
6309 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
6312 2015-10-02 Renlin Li <renlin.li@arm.com>
6314 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
6316 2015-10-02 Renlin Li <renlin.li@arm.com>
6319 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
6321 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6323 PR rtl-optimization/67786
6324 PR rtl-optimization/67787
6325 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
6326 it modifies a reg used in the condition calculation.
6328 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
6330 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
6331 alternatives for reads from memory and moves from general-purpose
6333 (*aarch64_combinez_be<mode>): Likewise.
6335 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
6338 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
6339 selectany within this function without need to keep attribute.
6340 (i386_pe_encode_section_info): Remove selectany-code.
6342 2015-10-02 Richard Biener <rguenther@suse.de>
6344 * tree-ssa-sccvn.c (has_VN_INFO): New function.
6345 (free_scc_vn): Use it.
6346 (visit_use): Remove dead code and refactor to use gassign
6347 and use less indentation.
6349 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6353 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
6354 (rs6000_cannot_copy_insn_p): New function.
6355 * config/rs6000/rs6000.md (cannot_copy): New attribute.
6356 (load_toc_v4_PIC_1_normal): Set cannot_copy.
6357 (load_toc_v4_PIC_1_476): Ditto.
6359 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
6361 * graphite-scop-detection.c (struct sese_l): New conversion constructor
6362 so that this type can be pushed into a vec.
6363 (class scop_builder): use sese_l to collect scops.
6364 (get_scops): New getter function.
6365 (remove_intersecting_scops): Use sese_l instead of scops_p.
6369 (remove_subscops): Same.
6370 (build_scops): Add scops to vec<scops_p> once all the scops have been
6373 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
6375 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6376 Renamed type from gimple_bb_p to gimple_poly_bb_p.
6377 (translate_isl_ast_node_user): Same.
6378 * graphite-poly.c (new_poly_bb): Same.
6379 * graphite-poly.h (gbb_from_bb): Same.
6381 * graphite-sese-to-poly.c (new_gimple_bb):
6382 gimple_bb_p -> gimple_poly_bb_p
6383 (build_scop_scattering): Same.
6384 (find_params_in_bb): Same.
6385 (add_conditions_to_domain): Same.
6386 (sese_dom_walker::before_dom_children): Same.
6387 (analyze_drs_in_stmts): Same.
6388 (new_pbb_from_pbb): Same.
6389 (free_data_refs_aux): New pointer to type base_alias_pair.
6390 * graphite-sese-to-poly.h: Same.
6391 * sese.c (if_region_set_false_region): Fixed Indentation.
6392 (move_sese_in_condition): Same.
6394 2015-10-01 Sebastian Pop <s.pop@samsung.com>
6395 Aditya Kumar <aditya.k7@samsung.com>
6397 PR tree-optimization/66980
6398 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
6399 when data reference analysis has failed.
6401 2015-10-01 Sebastian Pop <s.pop@samsung.com>
6402 Aditya Kumar <aditya.k7@samsung.com>
6404 PR tree-optimization/67754
6405 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
6406 scev analysis on the same loop nest as analyze_drs_in_stmts.
6407 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
6409 (try_generate_gimple_bb): Call outermost_loop_in_sese.
6410 (analyze_drs_in_stmts): Same.
6411 * sese.c (outermost_loop_in_sese): ...here.
6413 2015-10-01 Sebastian Pop <s.pop@samsung.com>
6414 Aditya Kumar <aditya.k7@samsung.com>
6416 PR tree-optimization/67754
6417 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
6418 recursion on the inner loops.
6420 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6422 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
6423 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
6424 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
6425 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
6426 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
6428 2015-10-01 Marek Polacek <polacek@redhat.com>
6431 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
6432 create_tmp_var_raw rather than create_tmp_var.
6434 2015-10-01 Marek Polacek <polacek@redhat.com>
6436 PR tree-optimization/67769
6437 * tree-ssa-phiopt.c (conditional_replacement): Call
6438 reset_flow_sensitive_info_in_bb.
6439 (minmax_replacement): Likewise.
6440 (abs_replacement): Likewise.
6442 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
6444 * builtins.c: Don't include gomp-constants.h.
6445 (fold_builtin_1): Don't fold acc_on_device here.
6446 * gimple-fold.c: Include gomp-constants.h.
6447 (gimple_fold_builtin_acc_on_device): New.
6448 (gimple_fold_builtin): Call it.
6450 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
6452 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
6453 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
6455 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
6457 * config/arm/aarch-common-protos.h
6458 (aarch_accumulator_forwarding): New.
6459 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6460 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
6461 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
6462 * config/arm/cortex-a53.md: Rewrite.
6464 2015-10-01 Richard Biener <rguenther@suse.de>
6466 * gimple-match.h (mprts_hook): Declare.
6467 * gimple-match.head.c (mprts_hook): Define.
6468 (maybe_push_res_to_seq): Use new hook.
6469 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6470 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
6471 (vn_ssa_aux::has_constants): Remove.
6472 * tree-ssa-sccvn.c: Include gimple-match.h.
6473 (VN_INFO_GET): Assert we don't re-use SSA names.
6474 (vn_get_expr_for): Remove.
6475 (expr_has_constants): Likewise.
6476 (stmt_has_constants): Likewise.
6477 (simplify_binary_expression): Likewise.
6478 (simplify_unary_expression): Likewise.
6479 (vn_lookup_simplify_result): New hook.
6480 (visit_copy): Adjust.
6481 (visit_reference_op_call): Likewise.
6482 (visit_phi): Likewise.
6483 (visit_use): Likewise.
6484 (process_scc): Likewise.
6485 (init_scc_vn): Likewise.
6486 (visit_reference_op_load): Likewise. Use match-and-simplify and
6487 a gimple seq for inserted expressions.
6488 (try_to_simplify): Remove GENERIC stmt combining code.
6489 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
6490 * tree-ssa-pre.c (eliminate_insert): Adjust.
6491 (eliminate_dom_walker::before_dom_children): Likewise.
6493 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6495 * doc/invoke.texi (Optimization Options): Add
6496 -freorder-blocks-algorithm=.
6497 (Optimize Options) <-O>: Add -freorder-blocks.
6498 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
6499 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
6500 <-freorder-blocks>: Also enabled at levels -O and -Os.
6501 <-freorder-blocks-algorithm=>: Document new option.
6503 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6505 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
6506 with flag_reorder_blocks_algorithm.
6507 * common.opt (freorder-blocks-algorithm=): New flag.
6508 (reorder_blocks_algorithm): New enum.
6509 * flag-types.h (reorder_blocks_algorithm): New enum.
6510 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
6511 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
6513 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6515 * bb-reorder.c: Add intro comment.
6516 (reorder_basic_blocks_software_trace_cache): Print a header to
6518 (edge_order): New function.
6519 (reorder_basic_blocks_simple): New function.
6520 (reorder_basic_blocks): Choose between the STC and the simple
6521 algorithms (always choose the former).
6523 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
6525 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
6526 function, factored out from ...
6527 (reorder_basic_blocks): ... here.
6529 2015-10-01 Tom de Vries <tom@codesourcery.com>
6531 * tree-cfg.c (dump_function_to_file): Dump function attributes using
6532 __attribute__(()) string. Move dumping of function attributes to before
6535 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
6538 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
6539 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
6540 based on gold linker version.
6541 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
6542 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
6543 * configure, config.in: Regenerate.
6545 2015-10-01 Alan Modra <amodra@gmail.com>
6547 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
6548 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
6549 (rs6000_output_mi_thunk): Likewise.
6551 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6553 * config/nvptx/mkoffload.c (process): Change offload data format.
6555 2015-09-30 Jeff Law <law@redhat.com>
6557 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
6558 with constant conditions.
6559 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
6560 (remove_ctrl_stmt_and_useless_edges): No longer static.
6561 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
6562 (remove_ctrl_stmt_and_useless_edges): Likewise.
6564 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6565 Cesar Philippidis <cesar@codesourcery.com>
6567 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
6568 (TARGET_GOACC_VALIDATE_DIMS): Override.
6569 * target.def (TARGET_GOACC): New target hook prefix.
6570 (validate_dims): New hook.
6571 * targhooks.h (default_goacc_validate_dims): New.
6572 * omp-low.c (oacc_validate_dims): New.
6573 (execute_oacc_device_lower): New.
6574 (default_goacc_validate_dims): New.
6575 (pass_data_oacc_device_lower): New.
6576 (pass_oacc_device_lower): New pass.
6577 (make_pass_oacc_device_lower): New.
6578 * tree-pass.h (make_pass_oacc_device_lower): Declare.
6579 * passes.def (pass_oacc_device_lower): Add it.
6580 * doc/tm.texi: Rebuilt.
6581 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
6582 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
6584 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6586 PR rtl-optimization/67037
6587 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
6589 2015-09-30 Bernd Schmidt <bernds@redhat.com>
6591 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
6592 * passes.c: Include tree-ssanames.h.
6593 (execute_function_todo): Flush the pending free SSA_NAMEs after
6594 eliminating unreachable basic blocks.
6595 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
6596 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
6597 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
6598 (flush_ssanames_freelist): New function.
6599 (release_ssaname_fn): Put released names on the queue.
6600 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
6601 * tree-ssanames.h (flush_ssanames_freelist): Declare.
6603 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6605 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
6606 (generate_target_descr_file, generate_target_offloadend_file)
6607 (generate_host_descr_file, prepare_target_image): Pass it on.
6608 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
6609 (compile_native, main): Pass it on.
6610 * lto-wrapper.c (compile_offload_image): Likewise.
6612 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6613 Ilya Verbin <ilya.verbin@intel.com>
6614 Andrey Turetskiy <andrey.turetskiy@intel.com>
6616 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
6617 (prepare_target_image, main): Refactor argv building to use
6620 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6622 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
6623 * config/spu/spu.c (spu_expand_atomic_op): New function.
6624 * config/spu/spu.md (AINT): New mode iterator.
6625 (ATOMIC): New code iterator.
6626 (atomic_name, atomic_pred): New code predicates.
6627 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
6628 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
6629 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
6630 "atomic_<atomic_name>_fetch<mode>"): Likewise.
6632 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
6634 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
6636 (scalar_chain::convert_reg): Likewise.
6638 2015-09-30 Richard Biener <rguenther@suse.de>
6640 * builtins.c: Add comment that no new simplifications should
6643 2015-09-30 Marek Polacek <polacek@redhat.com>
6645 PR tree-optimization/67690
6646 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
6647 reset_flow_sensitive_info_in_bb.
6648 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
6649 * tree-ssanames.c: Include "gimple-iterator.h".
6650 (reset_flow_sensitive_info_in_bb): New function.
6651 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
6653 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6655 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
6656 variable, replacing it with...
6657 (offload_abi): ... this new variable. Adjust all users.
6658 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
6660 2015-09-30 Matthias Klose <doko@ubuntu.com>
6662 * configure.ac: Remove extraneous ;;.
6663 * configure: Regenerate.
6665 2015-09-29 James Bowman <james.bowman@ftdichip.com>
6667 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
6668 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
6669 predicate, disallow register for operand 2.
6671 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
6673 * graphite-dependences.c (scop_get_dependences): Moved in down
6674 in order to be visible to its caller.
6675 * graphite-poly.h: Removed compute_deps, and extend_schedule.
6677 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6678 Aditya Kumar <aditya.k7@samsung.com>
6680 PR tree-optimization/67754
6681 * graphite-optimize-isl.c (optimize_isl): Call
6682 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
6684 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6686 * builtins.c (expand_builtin_acc_on_device): Delete.
6687 (expand_builtin): Don't call it.
6688 (fold_builtin_1): Fold acc_on_device.
6690 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
6692 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
6693 (ix86_nsaved_sseregs): Likewise.
6695 2015-09-29 Jeff Law <law@redhat.com>
6697 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
6698 computation of unused value.
6700 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
6701 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
6702 inline macro expansion.
6704 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
6706 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
6707 (gen_shl_sext): Likewise.
6708 * config/sh/sh.md (divsi3): Likewise.
6709 (imm->ext_dest_operand splitter): Likewise.
6711 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6712 Aditya Kumar <aditya.k7@samsung.com>
6714 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
6715 (nb_data_writes_in_bb): Remove.
6716 (split_pbb): Remove.
6717 (split_reduction_stmt): Remove.
6718 (is_reduction_operation_p): Remove.
6719 (phi_contains_arg): Remove.
6720 (follow_ssa_with_commutative_ops): Remove.
6721 (detect_commutative_reduction_arg): Remove.
6722 (detect_commutative_reduction_assign): Remove.
6723 (follow_inital_value_to_phi): Remove.
6724 (edge_initial_value_for_loop_phi): Remove.
6725 (initial_value_for_loop_phi): Remove.
6726 (used_outside_reduction): Remove.
6727 (detect_commutative_reduction): Remove.
6728 (translate_scalar_reduction_to_array_for_stmt): Remove.
6729 (remove_phi): Remove.
6730 (dr_indices_valid_in_loop): Remove.
6731 (close_phi_written_to_memory): Remove.
6732 (translate_scalar_reduction_to_array): Remove.
6733 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
6734 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
6735 (rewrite_commutative_reductions_out_of_ssa): Remove.
6736 (build_poly_scop): Remove call to
6737 rewrite_commutative_reductions_out_of_ssa.
6739 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
6741 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
6742 Add new insn types for vector load and store pairs.
6743 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
6744 types "neon_ldp{,_q}".
6745 * config/arm/cortex-a57.md (neon_load_c): Add insn types
6747 (neon_store_complex): Add insn types "neon_stp{,_q}".
6748 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
6751 2015-09-29 Jeff Law <law@redhat.com>
6753 * config/rx/constraints.md (Int08): Fix undefined left shift
6755 (Sint08, Sint16, Sint24): Likewise.
6756 * config/rx/rx.c (rx_get_stack_layout): Likewise.
6758 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
6761 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
6762 left shift behaviour.
6763 * config/msp430/constraints.md ('L' constraint): Similarly.
6764 ('Ys' constraint): Similarly.
6766 2015-09-29 Richard Biener <rguenther@suse.de>
6768 PR tree-optimization/67170
6769 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
6770 the translate function pointer parameter to get the
6771 bool whether to disambiguate only by reference.
6772 (walk_non_aliased_vuses): Likewise.
6773 * tree-ssa-alias.c (maybe_skip_until): Adjust.
6774 (get_continuation_for_phi_1): Likewise.
6775 (get_continuation_for_phi): Likewise.
6776 (walk_non_aliased_vuses): Likewise.
6777 * tree-ssa-sccvn.c (const_parms): New bitmap.
6778 (vn_reference_lookup_3): Adjust for interface change.
6779 Disambiguate parameters pointing to readonly memory.
6780 (free_scc_vn): Free const_parms.
6781 (run_scc_vn): Initialize const_parms from a fn spec attribute.
6783 2015-09-29 Richard Biener <rguenther@suse.de>
6785 PR tree-optimization/67741
6786 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
6787 builtin calls with correct signature.
6789 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
6792 * config/i386/i386.c: Include dbgcnt.h.
6793 (has_non_address_hard_reg): New.
6794 (convertible_comparison_p): New.
6795 (scalar_to_vector_candidate_p): New.
6796 (remove_non_convertible_regs): New.
6797 (scalar_chain): New.
6798 (scalar_chain::scalar_chain): New.
6799 (scalar_chain::~scalar_chain): New.
6800 (scalar_chain::add_to_queue): New.
6801 (scalar_chain::mark_dual_mode_def): New.
6802 (scalar_chain::analyze_register_chain): New.
6803 (scalar_chain::add_insn): New.
6804 (scalar_chain::build): New.
6805 (scalar_chain::compute_convert_gain): New.
6806 (scalar_chain::replace_with_subreg): New.
6807 (scalar_chain::replace_with_subreg_in_insn): New.
6808 (scalar_chain::emit_conversion_insns): New.
6809 (scalar_chain::make_vector_copies): New.
6810 (scalar_chain::convert_reg): New.
6811 (scalar_chain::convert_op): New.
6812 (scalar_chain::convert_insn): New.
6813 (scalar_chain::convert): New.
6814 (convert_scalars_to_vector): New.
6815 (pass_data_stv): New.
6817 (make_pass_stv): New.
6818 (ix86_option_override): Created and register stv pass.
6819 (flag_opts): Add -mstv.
6820 (ix86_option_override_internal): Likewise.
6821 * config/i386/i386.md (SWIM1248x): New.
6822 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
6823 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
6824 (*anddi3_doubleword): New.
6825 (*zext<mode>_doubleword): New.
6826 (*zextsi_doubleword): New.
6827 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
6828 (*<code>di3_doubleword): New.
6829 * config/i386/i386.opt (mstv): New.
6830 * dbgcnt.def (stv_conversion): New.
6832 2015-09-29 Tom de Vries <tom@codesourcery.com>
6834 * tree-cfg.c (dump_function_to_file): Dump function attributes.
6836 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
6839 * config/sh/sh.c (sh_override_options_after_change): New.
6840 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6841 (sh_option_override): Move align_loops, align_jumps and
6842 align_functions handling into sh_override_options_after_change.
6844 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6846 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6847 (nvptx_record_offload_symbol): Record function execution geometry.
6848 * config/nvptx/mkoffload.c (process): Include launch geometry in
6850 * omp-low.c (oacc_launch_pack): New.
6851 (replace_oacc_fn_attrib): New.
6852 (set_oacc_fn_attrib): New.
6853 (get_oacc_fn_attrib): New.
6854 (expand_omp_target): Create keyed varargs for GOACC_parallel call
6856 * omp-low.h (get_oacc_fn_attrib): Declare.
6857 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6858 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6859 * tree.h (OMP_CLAUSE_EXPR): New.
6860 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6862 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6863 Sebastian Pop <s.pop@samsung.com>
6865 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6867 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6868 Sebastian Pop <s.pop@samsung.com>
6870 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6871 * graphite-scop-detection.c (struct sese_l): New type.
6872 (get_entry_bb): API for getting entry bb of SESE.
6873 (get_exit_bb): API for getting exit bb of SESE.
6874 (class debug_printer): New type. Simple printer in debug mode.
6875 (trivially_empty_bb_p): New. Return true when BB is empty or
6876 contains only debug instructions.
6877 (graphite_can_represent_expr): Call scalar_evoution_in_region
6878 instead of analyze_scalar_evolution. Pass in scop instead of only
6880 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6882 (stmt_simple_for_scop_p): Same.
6883 (harmful_stmt_in_bb): Same.
6884 (graphite_can_represent_loop): Deleted.
6885 (struct scopdet_info): Deleted.
6886 (scopdet_basic_block_info): Deleted.
6887 (build_scops_1): Deleted.
6888 (bb_in_sd_region): Deleted.
6889 (find_single_entry_edge): Deleted.
6890 (find_single_exit_edge): Deleted.
6891 (create_single_entry_edge): Deleted.
6892 (sd_region_without_exit): Deleted.
6893 (create_single_exit_edge): Deleted.
6894 (unmark_exit_edges): Deleted.
6895 (mark_exit_edges): Deleted.
6896 (create_sese_edges): Deleted.
6897 (build_graphite_scops): Deleted.
6898 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6899 (build_scops): Use the new scop_builder to build scops.
6900 (dot_all_scops_1): Use the new pretty printer. Print loop father
6902 (loop_body_is_valid_scop): New. Return true if loop body is a
6904 (class scop_builder): New. Builds SCoPs for polyhedral
6906 (scop_builder): New constructor.
6907 (static sese_l invalid_sese): sese_l with invalid edges.
6908 (get_sese): Get an sese (from a loop) if possible, invalid_sese
6910 (get_nearest_dom_with_single_entry): Get nearest dominator of a
6911 basic_block with single entry. Return NULL if we get to the
6912 beginning of a function.
6913 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6914 a basic_block with single exit. Return NULL if we get to the
6915 beginning of a function.
6916 (print_sese): Pretty-print SESE.
6917 (merge_sese): Merge two SESEs if possible and return the new SESE.
6918 (build_scop_depth): Start building the SCoP within a loop nest.
6919 (build_scop_breadth): Start building the SCoP at a single loop
6920 depth. Merge adjacent SESEs if valid.
6921 (can_represent_loop_1): Returns true if Graphite can represent
6922 loop inside SCoP. Helper for can_represent_loop.
6923 (can_represent_loop): Returns true if Graphite can represent LOOP
6924 and all its nested loops in SCoP.
6925 (loop_is_valid_scop): Returns true if LOOP and all its nests
6926 constitute a valid SCoP.
6927 (region_has_one_loop): Returns true of a region has only one loop.
6928 (add_scop): Add SCoP to the list of valid scops. Removes an
6929 already existing scop if it intersects with or subsumed by this one.
6930 (harmful_stmt_in_region): Returns true if SCoP has any statment
6931 which cannot be represented by Graphite.
6932 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6933 (remove_subscops): Remove any SCoP from the list of already found
6934 SCoPs, if subsumed by S1.
6935 (intersects): Return true if region bounded by SCoPs S1 and S2
6937 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6938 * graphite.c (print_graphite_scop_statistics):
6939 (print_graphite_statistics): Print SCoP info while debugging.
6940 (graphite_initialize): Early exit in case number of loops in a
6941 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6942 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6943 (graphite_finalize):
6944 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6945 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6946 (recompute_all_dominators): Recalculate POST_DOMINATORS.
6947 * tree-cfg.c (print_loops): Print the function name while printing
6950 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6951 Sebastian Pop <s.pop@samsung.com>
6953 PR tree-optimization/67700
6954 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6955 invariant_in_sese_p_rec.
6956 (extract_affine): Same.
6957 (rewrite_cross_bb_scalar_deps): Call update_ssa.
6958 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
6959 * sese.h (invariant_in_sese_p_rec): Declare.
6961 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
6963 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6965 2015-09-28 Jiong Wang <jiong.wang@arm.com>
6968 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6969 Jiong Wang <jiong.wang@arm.com>
6971 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6972 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6973 (REG_CLASS_NAMES): Likewise.
6974 (REG_CLASS_CONTENTS): Likewise.
6975 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6976 (aarch64_register_move_cost): Likewise.
6977 (aarch64_load_symref_appropriately): Invoke the new added pattern if
6979 * config/aarch64/constraints.md (Uc0): New constraint.
6981 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
6983 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6985 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
6987 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6988 SECTION_EXCLUDE in XO mapping class.
6990 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6993 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6994 and handle ne and eq codes.
6995 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6996 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
6997 CONST_INT_P. Use reverse_condition.
6998 (sh_split_treg_set_expr): Likewise.
7000 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
7002 * config/arm/types.md (type): Add rotate_imm.
7003 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7005 (*rorsi3_insn_uxtw): Likewise.
7006 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7007 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7008 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7010 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7012 PR rtl-optimization/67481
7013 * ifcvt.c (contains_ccmode_rtx_p): New function.
7014 (insn_valid_noce_process_p): Use it.
7016 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7018 PR rtl-optimization/67456
7019 PR rtl-optimization/67464
7020 PR rtl-optimization/67465
7021 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7022 move in the mode of x. Handle combination of complex and simple
7023 block pairs as well as the case when one is empty.
7025 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7027 * doc/gimple.texi: Update references to gimple_statement_base.
7028 * gdbhooks.py: Likewise.
7029 * gimple.h: Likewise.
7031 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7033 * config/sparc/driver-sparc.c: map LEON to leon3
7035 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7037 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7038 and make it inverse to change default
7039 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7041 * doc/invoke.texi: Document change of default
7043 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7045 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7046 true on %f0 for a target without FPU.
7047 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7049 (untyped_return): Do not load %f0 for a target without FPU.
7051 2015-09-28 Andrew Pinski <apinski@cavium.com>
7053 * config/aarch64/aarch64.md (prefetch):
7054 Change the predicate of operand 0 to register_operand.
7056 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
7058 * config/i386/predicates.md (register_sse4nonimm_operand): New
7060 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7061 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7062 Use register_sse4nonimm_operand as operand 0 predicate.
7063 (*vec_extractv8hi_sse2): Remove insn pattern.
7064 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7065 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7067 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7068 Kaz Kojima <kkojima@gcc.gnu.org>
7071 * config/sh/sh-protos.h (sh_lra_p): Declare.
7072 * config/sh/sh.c (sh_lra_p): Make non-static.
7073 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7074 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
7075 Expand into addsi3_scr if operands[2] if needed.
7076 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
7077 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
7078 (addsi3_scr, *addsi3): New insn_and_split patterns.
7080 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
7082 PR rtl-optimization/64164
7083 PR tree-optimization/67312
7087 * cfgexpand.c (parm_in_stack_slot_p): Remove.
7088 (ssa_default_def_partition): Remove.
7089 (get_rtl_for_parm_ssa_default_def): Remove.
7090 (set_rtl): Check that RTL assignments match expectations.
7091 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
7092 default def location for params and results. Record SSA names
7093 or types in REG and MEM attrs, respectively.
7094 (set_parm_rtl): New.
7095 (expand_one_ssa_partition): Drop logic that assigned MEMs with
7096 unassigned addresses.
7097 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7098 deferred stack alloc vars.
7099 (expand_used_vars): Skip partitions holding parm default defs.
7100 Move adjust_one_expanded_partition_var loop...
7101 (pass_expand::execute): ... here. Drop redundant assert.
7102 Adjust comments before the final loop over all ssa names.
7103 Require assigned rtl of parms and results to match exactly.
7104 Reset its attributes to match them, not any other variables in
7106 (expand_debug_expr): Use entry value for PARM's default defs
7107 only iff they have zero nondebug uses.
7108 * cfgexpand.h (parm_in_stack_slot_p): Remove.
7109 (get_rtl_for_parm_ssa_default_def): Remove.
7110 (set_parm_rtl): Declare.
7111 * doc/invoke.texi: Improve wording.
7112 * explow.c (promote_decl_mode): Fix promote_function_mode for
7113 result decls not by reference.
7114 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
7115 bypass TYPE_MODE to get the actual vector mode.
7116 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
7117 2015-08-19's changes as follows. Drop include of
7118 basic-block.h and df.h.
7119 (rtl_for_parm): Remove.
7120 (maybe_reset_rtl_for_parm): Remove.
7121 (parm_in_unassigned_mem_p): Remove.
7122 (use_register_for_decl): Add logic for RESULT_DECLs matching
7123 assign_parms' behavior.
7124 (split_complex_args): Revert.
7125 (assign_parms_augmented_arg_list): Revert. Add comment
7126 referencing the logic above.
7127 (assign_parm_adjust_stack_rtl): Revert.
7128 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
7129 of SET_DECL_RTL. Set up a REG if the parm demands so.
7130 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
7131 calls into a single set_parm_rtl. Set up a temporary RTL
7132 temporarily for expand_assignment.
7133 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
7134 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
7135 (assign_bounds): Revert.
7136 (assign_parms): Revert. Use set_parm_rtl.
7137 (allocate_struct_function): Relayout result and parms of
7138 non-abstruct functions.
7139 (expand_function_start): Revert. Use set_parm_rtl. If the
7140 result is not a hard reg, create a pseudo from the promoted
7141 mode of the default def. Promote static chain mode.
7142 * tree-outof-ssa.c (remove_ssa_form): Drop unused
7143 partition_has_default_def. Set up
7144 partitions_for_parm_default_defs.
7145 (finish_out_of_ssa): Remove partition_has_default_def.
7146 Release partitions_for_parm_default_defs.
7147 * tree-outof-ssa.h (struct ssaexpand): Remove
7148 partition_has_default_def. Add
7149 partitions_for_parm_default_defs.
7150 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
7152 (build_ssa_conflict_graph): Fix conflict-detection of default
7153 defs of even unused default defs of params and results.
7154 (for_all_parms): New.
7155 (create_default_def): New.
7156 (register_default_def): New.
7157 (coalesce_with_default): New.
7158 (create_outofssa_var_map): Create default defs for all parms
7159 and results, and register their partitions. Add GIMPLE_RETURN
7160 operands as coalesce candidates with results. Add default
7161 defs of each parm or result as coalesce candidates with its
7162 other defs. Mark each result def, and each default def of
7163 parms, as used_in_copy.
7164 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
7165 with the ssa names, even anonymous ones. Drop
7166 parm_in_stack_slot_p calls. Require same signedness and
7168 (coalesce_ssa_name): Add coalesce candidates for all defs of
7169 each parm and result, even unused ones.
7170 (parm_default_def_partition_arg): New type.
7171 (set_parm_default_def_partition): New.
7172 (get_parm_default_def_partitions): New.
7173 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
7174 * tree-ssa-live.c (partition_view_init): Regard unused defs of
7175 parms and results as used.
7176 (verify_live_on_entry): Don't error out just because they're
7179 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
7181 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7182 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
7183 (output_fde): Don't output length for debug_frame on AIX.
7184 (output_call_frame_info): Don't output length for debug_frame on AIX.
7185 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
7186 HAVE_XCOFF_DWARF_EXTRAS.
7187 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
7188 HAVE_XCOFF_DWARF_EXTRAS.
7189 (output_compilation_unit_header): Don't output length on AIX.
7190 (output_pubnames): Don't output length on AIX.
7191 (output_aranges): Delete argument. Compute length locally. Don't
7192 output length on AIX.
7193 (output_line_info): Don't output length on AIX.
7194 (dwarf2out_finish): Don't compute aranges_length.
7195 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7196 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
7197 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
7198 symbol decoration for AIX.
7199 (rs6000_xcoff_debug_unwind_info): New.
7200 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
7202 (rs6000_xcoff_declare_function_name): Emit different
7203 .function pseudo-op when DWARF2_DEBUG. Don't call
7204 xcoffout_declare_function for DWARF2_DEBUG.
7205 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
7207 * config/rs6000/aix71.h: New.
7208 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
7210 * configure: Regenerate.
7211 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
7214 2015-09-26 Jeff Law <law@redhat.com>
7216 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
7218 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
7221 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
7224 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
7225 undefined behaviour.
7227 * config/cris/cris.md (asrandb): Fix left shift undefined
7229 (asrandw): Likewise.
7231 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
7234 * lra-constarints.c (match_reload): Check presence of the input pseudo
7235 in the output operand.
7237 2015-09-25 Tobias Burnus <burnus@net-b.de>
7239 * doc/invoke.texi (-fsanitize): Minor wording tweak.
7241 2015-09-25 Tobias Burnus <burnus@net-b.de>
7243 * doc/invoke.texi (-fsanitize): Update URLs.
7245 2015-09-25 Teresa Johnson <tejohnson@google.com>
7247 * opts.c (finish_options): Unset -freorder-blocks-and-partition
7248 if not using profile.
7250 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
7252 PR pretty-print/67567
7253 * pretty-print.c (pp_string): Add gcc_checking_assert.
7254 * pretty-print.h (output_buffer_append_r): Likewise.
7256 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7259 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
7260 addr2 individually. Don't emit logical or insn if one is known to
7261 be aligned approriately.
7262 (sh_expand_cmpnstr): Likewise.
7264 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
7266 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
7267 __builtin_aarch64_fp[sc]r arguments into a register.
7269 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
7271 * config.gcc (x86_archs): Replace lakemount with lakemont.
7272 (with_cpu): Likewise.
7273 (with_arch): Likewise.
7274 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7275 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
7276 __tune_lakemount__ with __tune_lakemont__.
7277 * config/i386/i386.c (lakemount_cost): Renamed to ...
7278 (lakemont_cost): This.
7279 (m_LAKEMOUNT): Renamed to ...
7281 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
7282 (processor_target_table): Replace "lakemount" with "lakemont".
7283 (processor_alias_table): Likewise.
7284 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
7286 (ix86_adjust_cost): Likewise.
7287 (ia32_multipass_dfa_lookahead): Likewise.
7288 * config/i386/i386.h (processor_type): Likewise.
7289 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
7290 * doc/invoke.texi: Replace lakemount with lakemont. Replace
7291 Lakemount with Lakemont.
7293 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
7295 * config.gcc (x86_archs): Replace iamcu with lakemount.
7296 (with_cpu): Likewise.
7297 (with_arch): Likewise.
7298 * doc/invoke.texi: Likewise.
7299 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7300 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
7301 __tune_iamcu__ with __tune_lakemount__.
7302 * config/i386/i386.c (iamcu_cost): Renamed to ...
7303 (lakemount_cost): This.
7304 (m_IAMCU): Renamed to ...
7305 (m_LAKEMOUNT): This.
7306 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
7307 (processor_target_table): Replace "iamcu" with "lakemount".
7308 (processor_alias_table): Likewise.
7309 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
7310 PROCESSOR_LAKEMOUNT.
7311 (ix86_adjust_cost): Likewise.
7312 (ia32_multipass_dfa_lookahead): Likewise.
7313 * config/i386/i386.h (processor_type): Likewise.
7314 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
7316 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
7318 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
7319 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
7321 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
7322 (pa_expand_compare_and_swap_loop): New.
7323 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
7324 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
7325 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
7326 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
7327 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
7330 2015-09-24 Michael Collison <michael.collison@linaro.org>
7333 * read-md.c (read_name): Allow mode iterators inside angle
7334 brackets in rtl expressions.
7336 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
7339 * ira-color.c (update_allocno_cost): Add parameter.
7340 (update_costs_from_allocno): Decrease conflict cost. Pass the new
7343 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7346 * opts-common.c (prune_options): Discard all -fdiagnostics-color
7347 but the last one, which is moved to the front to be processed
7349 * opts.c (enable_warning_as_error): Reject options that do not
7352 2015-09-24 Jiong Wang <jiong.wang@arm.com>
7354 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
7356 2015-09-24 Jiong Wang <jiong.wang@arm.com>
7358 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
7359 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
7360 (aarch64_cannot_force_const_mem): Likewise.
7361 (aarch64_classify_address): Likewise.
7362 (aarch64_classify_symbolic_expression): Likewise.
7363 (aarch64_print_operand): Likewise.
7364 (aarch64_classify_symbol): Likewise.
7365 (aarch64_mov_operand_p): Likewise.
7366 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
7367 (aarch64_mov_operand): Likewise.
7369 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
7371 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
7372 for info->spe_gp_size.
7374 2015-09-24 Richard Biener <rguenther@suse.de>
7377 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
7380 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
7382 * tree-object-size.c (plus_stmt_object_size)
7383 (cond_expr_object_size): Change the formal parameters from gimple
7385 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
7386 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
7387 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
7389 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7391 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
7392 Check for ld -type pie on Solaris 11.x and 12.
7393 * configure: Regenerate.
7394 * config.in: Regenerate.
7396 * gcc.c (LD_PIE_SPEC): Allow redefinition.
7398 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
7399 (STARTFILE_SPEC): Use it.
7400 (ENDFILE_CRTEND_SPEC): Define.
7401 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
7402 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
7403 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
7404 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
7405 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
7406 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
7407 (ENDFILE_ARCH_SPEC): Define.
7408 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
7410 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7412 * configure.ac (gcc_cv_solaris_crts): New test.
7413 * configure. Regenerate.
7414 * config.in: Regenerate.
7415 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
7416 HAVE_SOLARIS_CRTS variant.
7418 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7420 * tree-inline.h (count_insns_seq): Delete prototype.
7421 (estimate_num_insns_seq): Define prototype.
7422 * tree-inline.c (count_insns_seq): Delete.
7423 (estimate_num_insns_seq): Remove static qualifier.
7424 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
7425 with estimate_num_insns_seq.
7427 2015-09-24 Richard Biener <rguenther@suse.de>
7429 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
7431 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
7432 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
7434 (ao_ref_init_from_vn_reference): Record clique and base in the
7436 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
7438 2015-09-24 Richard Biener <rguenther@suse.de>
7440 PR tree-optimization/48885
7441 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
7442 as not including any restrict tags from other pointers.
7444 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
7446 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
7447 character when appending to offload_targets.
7449 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
7450 offload targets by commas, not colons.
7451 * config.in: Regenerate.
7452 * configure: Likewise.
7453 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
7454 instead of setting up the default offload targets here...
7455 (process_command): ..., do it here.
7457 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
7458 targets are separated by commas.
7459 * config.h.in: Regenerate.
7461 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
7462 Nathan Sidwell <nathan@codesourcery.com>
7464 * omp-low.h (omp_reduction_init_op): Declare.
7465 * omp-low.c (omp_reduction_init_op): New, broken out of ...
7466 (omp_reduction_init): ... here. Call it.
7467 * tree-parloops.c (initialize_reductions): Use
7468 omp_reduction_init_op.
7470 2015-09-23 Richard Biener <rguenther@suse.de>
7473 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
7474 undefined overflow unless they will cancel out.
7476 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
7478 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
7481 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7484 * opts.h (write_langs): Declare.
7485 * opts-global.c (write_langs): Make it extern.
7487 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
7490 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
7491 overlapping regs when matching the pattern.
7493 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
7495 * config/aarch64/aarch64-simd.md
7496 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
7497 (aarch64_float_truncate_hi_v4sf_le): New.
7498 (aarch64_float_truncate_hi_v4sf_be): Likewise.
7500 2015-09-23 Richard Biener <rguenther@suse.de>
7502 * tree-ssa-structalias.c (intra_create_variable_infos): Build
7503 representatives for all restrict qualified pointer destinations.
7505 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
7507 * config/i386/i386.md (define_code_attr mshift): New.
7508 (define_mode_iterator SWI1248_AVX512BW): Rename ...
7509 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
7511 (define_insn "*k<logic><mode>"): Use new iterator name.
7512 (define_insn "*<mshift><mode>3"): New.
7514 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
7517 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
7518 mark the block as accessible.
7520 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
7522 * function.c (thread_prologue_and_epilogue_insns): Delete
7523 orig_entry_edge argument to try_shrink_wrapping.
7524 * shrink-wrap.c (can_get_prologue): New function.
7525 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
7526 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
7527 can_get_prologue where needed. Remove code that finds a single
7528 edge for the prologue. Remove code that tests if any reg clobbered
7529 by the prologue is live on the prologue edge. Remove code that finds
7530 the new prologue edge after duplicating blocks. Make a new prologue
7532 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
7534 2015-09-22 Jeff Law <law@redhat.com>
7536 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
7539 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
7541 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
7542 -Wtemplates, -Wnamespaces): Document.
7544 2015-09-22 Tom de Vries <tom@codesourcery.com>
7546 PR tree-optimization/67671
7547 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
7548 pointer references as restrict.
7550 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7552 * config/nios2/nios2.c (nios2_legitimize_address): When handling
7553 'reg + reloc' cases, allow first operand to be non-REG, and use
7554 force_reg() to enforce address pattern.
7556 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
7559 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
7560 (define_mode_iterator VI12_AVX_AVX512F): New.
7561 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
7562 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
7563 (define_insn "*<code><mode>3"): ... Into new pattern using
7564 VI12_AVX_AVX512F iterators without masking.
7566 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
7568 * config.gcc: Support "skylake-avx512".
7569 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7570 PROCESSOR_SKYLAKE_AVX512.
7571 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
7572 (processor_target_table): Add "skylake-avx512".
7573 (PTA_SKYLAKE_AVX512): Define.
7574 (ix86_option_override_internal): Add "skylake_avx512".
7575 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
7576 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
7577 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
7578 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
7579 * doc/invoke.texi (skylake-avx512): New.
7581 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
7583 * config/i386/i386.md (define_insn "kunpckhi"): Fix
7585 (define_insn "kunpcksi"): Ditto.
7586 (define_insn "kunpckdi"): Ditto.
7588 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
7590 * config/i386/i386.md (define_split not/xor SWI1248x): Use
7591 iterator instead of fixed modes.
7593 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7595 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7597 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
7598 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
7599 out_result. Update to support update-fetch operations.
7600 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
7601 Adjust for change to aarch64_gen_atomic_ldop.
7602 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
7603 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
7604 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
7605 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
7606 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
7608 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7610 * config/aarch64/aarch64-protos.h
7611 (aarch64_atomic_ldop_supported_p): Declare.
7612 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
7613 (enum aarch64_atomic_load_op_code): New.
7614 (aarch64_emit_atomic_load_op): New.
7615 (aarch64_gen_atomic_ldop): Update to support load-operate
7617 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
7619 (aarch64_atomic_<atomic_optab><mode>): New.
7620 (aarch64_atomic_<atomic_optab><mode>_lse): New.
7621 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
7622 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
7623 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
7625 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7627 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
7628 (UNSPECV_ATOMIC_LDOP_OR): New.
7629 (UNSPECV_ATOMIC_LDOP_BIC): New.
7630 (UNSPECV_ATOMIC_LDOP_XOR): New.
7631 (UNSPECV_ATOMIC_LDOP_PLUS): New.
7634 (aarch64_atomic_load<atomic_ldop><mode>): New.
7636 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7638 * config/aarch64/aarch64.md
7639 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
7642 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7644 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7646 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
7647 (aarch64_gen_atomic_ldop): New.
7648 (aarch64_split_atomic_op): Fix whitespace and add a comment.
7649 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
7650 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
7651 (atomic_exchange<mode>): Replace with an expander.
7652 (aarch64_atomic_exchange<mode>): New.
7653 (aarch64_atomic_exchange<mode>_lse): New.
7654 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
7655 (aarch64_atomic_swp<mode>): New.
7657 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7659 * tree-inline.c (expand_call_inline): Use inform for extra note.
7660 Do not give a note with UNKNOWN_LOCATION.
7661 Replace input_location with gimple_location (stmt).
7662 Use true/false instead of TRUE/FALSE.
7664 2015-09-22 Tom de Vries <tom@codesourcery.com>
7666 PR tree-optimization/67666
7667 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
7668 with single field non-conservative.
7670 2015-09-21 David S. Miller <davem@davemloft.net>
7674 2015-09-11 David S. Miller <davem@davemloft.net>
7676 * config/sparc/constraints.md: Make "U" constraint a real register
7678 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7679 (D_MODES, DF_MODES): Add missing cast.
7680 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7681 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7682 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7684 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7685 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7686 provide these insn when flag_pic.
7688 2015-09-17 David S. Miller <davem@davemloft.net>
7690 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
7692 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
7694 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7695 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7696 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7697 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7698 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7699 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7700 provide when flag_pic.
7702 2015-09-21 Jeff Law <law@redhat.com>
7704 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
7707 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7709 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
7711 2015-09-21 Richard Biener <rguenther@suse.de>
7713 * passes.c (rest_of_decl_compilation): Do not call
7714 dwarf2out_early_global_decl for aliases.
7716 2015-09-21 Richard Biener <rguenther@suse.de>
7719 * dwarf2out.c (add_location_or_const_value_attribute): Remove
7720 attribute parameter. Early exit if either DW_AT_const_value
7721 or DW_AT_location are present already.
7722 (gen_variable_die): Adjust caller.
7723 (dwarf2out_late_global_decl): Likewise.
7725 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7728 * config/sh/sh.c (sh_remove_overlapping_post_inc,
7729 sh_peephole_emit_move_insn): Add new functions.
7730 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
7731 sh_peephole_emit_move_insn): Declere them.
7732 * config/sh/sh.md: Use them in various peephole2 patterns.
7734 2015-09-21 Richard Biener <rguenther@suse.de>
7737 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
7738 address with -fno-delete-null-pointer-checks.
7740 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
7742 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
7743 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
7744 (reduc_uplus_v16qi): Remove.
7746 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
7747 (reduc_<VEC_reduc_name>_v2df): Remove.
7748 (reduc_<VEC_reduc_name>_v4sf): Remove.
7749 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
7751 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
7752 gen_ function by removing * prefix.
7753 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
7755 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7758 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
7759 Print i_bound without converting it to a tree.
7761 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
7763 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
7764 operands[4] operands[5] swap with std::swap, removed tmp variable.
7765 (arm_evpc_neon_vzip): Replaced in0/in1 and
7766 out0/out1 swaps with std::swap, removed x variable.
7767 (arm_evpc_neon_vtrn): Replaced in0/int1 and
7768 out0/out1 swaos with std::swap, removed x variable.
7769 (arm_expand_vec_perm_const_1): Replaced
7770 d->op0/d->op1 swap with std::swap, removed x variable.
7771 (arm_evpc_neon_vuzp): Replaced in0/in1 and
7772 out0/out1 swaps with std::swap, removed x variable.
7774 2015-09-21 Jonathan Yong <10walls@gmail.com>
7776 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
7777 sysroot/usr/lib/32api for additional win32 libraries,
7778 fixes failing Cygwin bootstrapping.
7780 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7782 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
7784 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7787 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
7788 (*mov_t_msb_neg): Rewrite negc pattern.
7790 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7792 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
7793 immediate generation code.
7795 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7797 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
7798 redundant immediate generation code.
7800 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7802 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
7803 (AARCH64_NUM_BITMASKS): Remove.
7804 (aarch64_bitmasks_cmp): Remove.
7805 (aarch64_build_bitmask_table): Remove.
7807 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7809 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
7810 slow immediate matching loops with a faster algorithm.
7812 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7814 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
7817 2015-09-20 Jeff Law <law@redhat.com>
7819 PR tree-optimization/47679
7820 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
7821 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
7822 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
7823 (thread_through_normal_block): Use record_temporary_equivalences.
7825 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
7827 * coretypes.h (gimple): Change typedef to be a forward declaration.
7828 * gimple.h (gimple_statement_base): rename to gimple.
7829 * (all functions and types using gimple): Adjust.
7832 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
7833 David Edelsohn <dje.gcc@gmail.com>
7835 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
7836 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7837 (EH_FRAME_THROUGH_COLLECT2): Define.
7838 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7839 (ASM_OUTPUT_DWARF_PCREL): Define.
7840 (ASM_OUTPUT_DWARF_DATAREL): Define.
7842 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
7844 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7847 2015-09-18 Jeff Law <law@redhat.com>
7849 PR tree-optimization/47679
7850 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
7852 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7853 object. Update constructor.
7854 (pass_dominator::execute): Corresponding chagnes to declaration
7855 and initialization of avail_exprs_stack. Update constructor call
7856 for dom_opt_dom_walker object.
7857 (lookup_avail_expr, record_cond): Accept additional argument. Pass
7858 it down to children as needed.
7859 (record_equivalences_from_incoming_edge): Likewise.
7860 (eliminate_redundant_computations): Likewise.
7861 (record_equivalences_from_stmt): Likewise.
7862 (simplify_stmt_for_jump_threading): Likewise.
7863 (record_temporary_equivalences): Likewise.
7864 (optimize_stmt): Likewise.
7865 (dom_opt_dom_walker::thread_across_edge): Update access to
7866 avail_exprs_stack object and pass it to children as needed.
7867 (dom_opt_dom_walker::before_dom_children): Similarly.
7868 (dom_opt_dom_walker::after_dom_children): Similarly.
7869 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7870 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7871 Add avail_expr_stack argument. Pass it to children as needed.
7872 (dummy_simplify): Likewise.
7873 (simplify_control_stmt_condition): Likewise.
7874 (thread_around_empty_blocks): Likewise.
7875 (thread_through_normal_block): Likewise.
7876 (thread_across_edge): Likewise.
7877 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7878 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7880 PR tree-optimization/47679
7881 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
7883 (dom_opt_dom_walker): New private member holding the const_and_copies
7884 object. Update constructor.
7885 (pass_dominator::execute): Corresponding changes to declaration
7886 and initialization of const_and_copies. Update constructor call
7887 for the dom_opt_dom_walker object.
7888 (record_temporary_equivalences): Accept const_and_copies argument
7889 pass it down to children as needed.
7890 (record_equality): Likewise.
7891 (record_equivalences_from_incoming_edge): Likewise.
7892 (cprop_into_successor_phis, optimize_stmt): Likewise.
7893 (eliminate_redundant_computations): Likewise.
7894 (dom_opt_dom_walker::thread_across_edge): Update access to
7895 const_and_copies object and pass it to children as needed.
7896 (dom_opt_dom_walker::before_dom_children): Similarly.
7897 (dom_opt_dom_walker::after_dom_children): Similarly.
7899 PR tree-optimization/47679
7900 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
7901 it into the avail_exprs_stack class.
7902 (pass_dominator::execute): Corresponding changes to declaration
7903 and initialization of avail_exprs. Pass avail_exprs to
7904 dump_dominator_optimization_stats.
7905 (record_cond): Extract avail_exprs from avail_exprs_stack.
7906 (lookup_avail_expr): Similarly.
7907 (htab_staticstics): Remove unnecessary prototype. Move to earlier
7909 (dump_dominator_optimization_stats): Make static and prototype.
7910 Add argument for the hash table to dump.
7911 (debug_dominator_optimization_stats): Remove.
7912 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7914 (debug_dominator_optimization_stats): Similarly.
7915 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7916 "void" in prototype for pop_to_marker method. Add accessor method
7917 for the underlying avail_exprs table.
7919 * tree-ssa-threadedge.c: Remove trailing whitespace.
7921 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
7923 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7925 (pa_ldil_cint_p): Likewise.
7926 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7927 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7929 * config/pa/pa.md: Likewise.
7931 2015-09-18 David Malcolm <dmalcolm@redhat.com>
7933 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7934 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7935 (diagnostic_show_locus): Likewise.
7936 (diagnostic_print_caret_line): Likewise.
7937 * diagnostic-show-locus.c: New file.
7939 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
7941 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7942 "back" parameter. Declare label in #if block.
7944 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
7947 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7948 the address to a register.
7950 2015-09-18 Jeff Law <law@redhat.com>
7952 PR tree-optimization/47679
7953 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7954 * tree-ssa-dom.c: Remove unnecessary header includes.
7955 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7956 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7957 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7958 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7959 (pass_phi_only_cprop::execute): Likewise.
7960 (make_pass_phi_only_cprop): Likewise.
7961 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
7962 uses of file scoped statics by passing the required objects
7963 as parameters wherever needed.
7965 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
7966 David Edelsohn <dje.gcc@gmail.com>
7968 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7969 EH_FRAME_THROUGH_COLLECT2.
7970 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7972 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7973 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
7974 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7975 * except.c (switch_to_exception_section): Use a read-only section
7976 even if EH_FRAME_SECTION_NAME is undefined.
7977 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7978 * collect2.c (write_c_file_stat): Provide dbase on AIX.
7979 (scan_prog_file): Don't export __dso_handle nor
7981 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7982 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7983 (ASM_OUTPUT_DWARF_PCREL): Define.
7984 (ASM_OUTPUT_DWARF_DATAREL): Define.
7985 (EH_FRAME_THROUGH_COLLECT2): Define.
7986 (EH_FRAME_IN_DATA_SECTION): Delete.
7987 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7988 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7990 (rs6000_asm_output_dwarf_datarel): Declare.
7991 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7992 (rs6000_aix_asm_output_dwarf_datarel): New.
7993 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7994 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7995 (EH_FRAME_THROUGH_COLLECT2): Define.
7996 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7997 (EH_FRAME_THROUGH_COLLECT2): Define.
7998 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7999 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8000 (EH_FRAME_THROUGH_COLLECT2): New.
8001 (ASM_OUTPUT_DWARF_DATAREL): New.
8002 * doc/tm.texi: Regenerate.
8004 2015-09-18 Richard Biener <rguenther@suse.de>
8006 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8007 we're in early phase.
8008 (schedule_generic_params_dies_gen): Likewise.
8009 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8010 work as possible, retaining unhandled cases.
8011 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8012 clear out generic_type_instances at the end.
8013 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8014 (dwarf2out_early_finish): ... here. Do most of
8015 gen_remaining_tmpl_value_param_die_attribute here.
8017 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
8019 PR tree-optimization/67283
8020 * tree-sra.c (type_consists_of_records_p): Rename to...
8021 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8022 (completely_scalarize_record): Rename to...
8023 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8024 (scalarize_elem): New.
8025 (analyze_all_variable_accesses): Follow renamings.
8027 2015-09-18 Richard Biener <rguenther@suse.de>
8029 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8032 2015-09-18 Richard Biener <rguenther@suse.de>
8034 PR tree-optimization/66142
8035 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8036 treat MEM[&x] and x the same.
8037 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8038 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8039 when we simplified sth.
8040 (vn_reference_maybe_forwprop_address): Likewise.
8041 (valueize_refs_1): When we simplified through
8042 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8043 set valueized_anything to true.
8044 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8045 one ref kills the other instead of just a offset-based test.
8046 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8047 for the operand_equal_p test to compare bases and also compare
8050 2015-09-17 Christian Bruel <christian.bruel@st.com>
8052 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8054 2015-09-17 Richard Henderson <rth@redhat.com>
8057 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8058 pointers that encode the alignment of the object.
8060 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8062 PR rtl-optimization/66790
8063 * df-problems.c (LIVE): Amend documentation.
8065 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
8067 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8069 (GTFILES): Replace optabs.c with optabs-libfunc.c.
8070 * genopinit.c (main): Add an include guard to insn-opinit.h.
8071 Protect the rtx_code parts with NUM_RTX_CODE.
8072 * optabs.h: Split parts out to...
8073 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8074 * optabs.c: Split parts out to...
8075 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8076 * cilk-common.c: Include optabs-query.h rather than optabs.h.
8077 * fold-const.c: Likewise.
8078 * target-globals.c: Likewise.
8079 * tree-if-conv.c: Likewise.
8080 * tree-ssa-forwprop.c: Likewise.
8081 * tree-ssa-loop-prefetch.c: Likewise.
8082 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8083 Remove unncessary include files.
8084 * tree-ssa-phiopt.c: Likewise.
8085 * tree-ssa-reassoc.c: Likewise.
8086 * tree-switch-conversion.c: Likewise.
8087 * tree-vect-data-refs.c: Likewise.
8088 * tree-vect-generic.c: Likewise.
8089 * tree-vect-loop.c: Likewise.
8090 * tree-vect-patterns.c: Likewise.
8091 * tree-vect-slp.c: Likewise.
8092 * tree-vect-stmts.c: Likewise.
8093 * tree-vrp.c: Likewise.
8094 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8095 rather than optabs.h.
8096 * expr.c: Include optabs-tree.h.
8097 * function.c: Likewise.
8099 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8102 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8103 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8104 * config/arm/arm.c: Include common/common-target.h.
8105 (use_return_insn): Return 0 if the static chain register was saved
8106 above a non-APCS frame.
8107 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
8108 (struct scratch_reg): New.
8109 (get_scratch_register_on_entry): New function.
8110 (release_scratch_register_on_entry): Likewise.
8111 (arm_emit_probe_stack_range): Likewise.
8112 (output_probe_stack_range): Likewise.
8113 (arm_expand_prologue): Factor out code dealing with the IP register
8114 for nested function and adjust it for stack checking.
8115 Invoke arm_emit_probe_stack_range if static builtin stack checking
8117 (thumb1_expand_prologue): Sorry out if static builtin stack checking
8119 (arm_expand_epilogue): Add the saved static chain register, if any, to
8120 the amount of pre-pushed registers to pop.
8121 (arm_frame_pointer_required): Return true if static stack checking is
8122 enabled and we want to catch the exception with the EABI unwinder.
8123 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
8124 (UNSPEC_PROBE_STACK_RANGE): Likewise.
8125 * config/arm/arm.md (probe_stack): New insn.
8126 (probe_stack_range): Likewise.
8128 2015-09-17 Richard Biener <rguenther@suse.de>
8130 * genmatch.c (parser::parse_expr): Improve error message
8131 for mis-placed flags.
8133 2015-09-17 Richard Biener <rguenther@suse.de>
8135 * passes.c (rest_of_decl_compilation): Always call early_global_decl
8136 debug hook when we created a varpool node.
8137 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
8138 dwarf2out_early_global_decl, when not just add location or
8139 value attributes to existing DIEs.
8141 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
8143 * config/aarch64/aarch64.md (copysigndf3): New.
8144 (copysignsf3): Likewise.
8146 2015-09-17 David S. Miller <davem@davemloft.net>
8148 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
8149 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
8150 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8151 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8152 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8153 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8154 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8155 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8156 provide when flag_pic.
8158 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
8160 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
8161 object_allocator change.
8163 2015-09-17 Bin Cheng <bin.cheng@arm.com>
8165 PR tree-optimization/66388
8166 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
8167 (dump_iv): Dump no_overflow information.
8168 (alloc_iv): Initialize new field for struct iv.
8169 (mark_bivs): Count number of no_overflow bivs.
8170 (find_deriving_biv_for_expr, record_biv_for_address_use): New
8172 (idx_find_step): Call new functions above.
8173 (add_candidate_1, add_candidate): New paramter.
8174 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
8175 (get_computation_aff): Simplify convertion of cand for BIV.
8176 (get_computation_cost_at): Step cand's base if necessary.
8178 2015-09-17 Bin Cheng <bin.cheng@arm.com>
8180 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
8182 (tree_simplify_using_condition): Ditto.
8183 (simplify_using_initial_conditions): Ditto.
8184 (loop_exits_before_overflow): Pass new argument to function
8185 simplify_using_initial_conditions. Remove case for type conversions
8187 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
8189 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
8190 in iv base using loop initial conditions.
8192 2015-09-16 Jeff Law <law@redhat.com>
8194 PR tree-optimization/47679
8195 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
8196 (free_all_edge_infos): Use it.
8197 (allocate_edge_info): Free preexisting edge info data.
8198 (pass_dominator::execute): Set up initial edge info structures.
8199 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
8201 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
8202 If non-null, then push/pop markers appropriately.
8203 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8204 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
8207 2015-09-16 James Bowman <james.bowman@ftdichip.com>
8209 * config/ft32/ft32.c: Fix the memory address space predicate.
8211 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
8214 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
8215 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8217 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8219 * toplev.h (check_global_declaration): Remove declaration.
8220 * toplev.c (check_global_declaration): Move to ...
8221 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
8222 (analyze_functions): Update call.
8224 2015-09-16 David S. Miller <davem@davemloft.net>
8226 * lra-constraints.c (simplify_operand_subreg): Do not assume that
8227 lowpart of a SUBREG has offset zero.
8229 2015-09-16 Jeff Law <law@redhat.com>
8231 PR tree-optimization/47679
8232 * tree-ssa-dom.c (enum expr_kind): Moved from here to
8233 tree-ssa-scopedtables.h.
8234 (struct hashable_expr, class expr_hash_elt): Likewise.
8235 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
8236 Move associated methods into tree-ssa-scopedtables.c.
8237 (avail_expr_hash, initialize_expr_from_cond): Similarly.
8238 (hashable_expr_equal_p, add_expr_commutative): Likewise.
8239 (add_hashable_expr): Likewise.
8240 (record_cond): Delete element directly.
8241 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
8242 private copy ctor and assignment operator methods.
8243 (expr_elt_hasher): Inline trivial methods.
8244 (initialize_expr_from_cond): Prototype.
8245 * tree-ssa-scopedtables.c: Add necessary includes, functions and
8246 methods that were previously in tree-ssa-dom.c. Improve various
8249 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
8251 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
8253 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
8256 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
8259 2015-09-16 Richard Biener <rguenther@suse.de>
8262 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
8263 location of possibly shared trees.
8265 2015-09-16 Richard Biener <rguenther@suse.de>
8268 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
8270 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
8272 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
8273 offset and size computations instead of HOST_WIDE_INT.
8275 2015-09-16 Richard Biener <rguenther@suse.de>
8278 * fold-const.c (extract_muldiv_1): Properly extend multiplication
8279 result before builting a tree via wide_int_to_tree.
8281 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
8283 * Makefile.in: Add memory-block.cc
8284 (pool_allocator::initialize): Use fixed block size.
8285 (pool_allocator::release): Use memory_block_pool.
8286 (pool_allocator::allocate): Likewise.
8287 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
8289 * cfg.c (initialize_original_copy_tables): Likewise.
8290 * cselib.c (elt_list_pool, elt_loc_list_pool,
8291 cselib_val_pool): Likewise.
8292 * df-problems.c (df_chain_alloc): Likewise.
8293 * df-scan.c (df_scan_alloc): Likewise.
8294 * dse.c (cse_store_info_pool, rtx_store_info_pool,
8295 read_info_type_pool, insn_info_type_pool, bb_info_pool,
8296 group_info_pool, deferred_change_pool): Likewise.
8297 * et-forest.c (et_nodes, et_occurrences): Likewise.
8298 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
8299 ipcp_agg_lattice_pool): Likewise.
8300 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
8301 * ipa-profile.c (histogram_pool): Likewise.
8302 * ipa-prop.c (ipa_refdesc_pool): Likewise.
8303 * ira-build.c (live_range_pool, allocno_pool, object_pool,
8304 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
8305 * ira-color.c (update_cost_record_pool): Likewise.
8306 * lra-lives.c (lra_live_range_pool): Likewise.
8307 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
8308 * memory-block.cc: New file.
8309 * memory-block.h: New file.
8310 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
8311 * sched-deps.c (sched_deps_init): Likewise.
8312 * sel-sched-ir.c (sched_lists_pool): Likewise.
8313 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
8314 * tree-sra.c (access_pool): Likewise.
8315 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8316 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
8317 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
8318 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8319 * tree-ssa-strlen.c (strinfo_pool): Likewise.
8320 * tree-ssa-structalias.c (variable_info_pool): Likewise.
8321 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
8322 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
8324 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
8326 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
8328 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
8331 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
8333 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
8334 to pass TLS call argument, according to current ABI.
8335 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
8336 callx0 for TLS call, according to current ABI.
8338 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
8340 * tree-eh.c (lower_try_finally_dup_block): Clear location information
8341 on stack restore statements.
8342 (decide_copy_try_finally): Do not consider a stack restore statement as
8343 coming from sources.
8345 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
8347 * config/alpha/alpha.c (alpha_expand_block_clear): Use
8348 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
8350 2015-09-15 Jeff Law <law@redhat.com>
8352 PR tree-optimization/47679
8353 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
8354 methods and private members.
8355 (avail_exprs_stack): Similarly. Change type of global
8356 from a pair of expr_hash_elt_t to the new class.
8357 (expr_elt_hasher::hash): Corresponding changes.
8358 (expr_elt_hasher::equal): Similarly.
8359 (avail_expr_hash): Similarly.
8360 (pass_dominator::execute): Similarly.
8361 (dom_opt_dom_walker::thread_across_edge): Similarly.
8362 (record_cond): Similarly.
8363 (dom_opt_dom_walker::before_dom_children): Similarly.
8364 (dom_opt_dom_walker::after_dom_children): Similarly.
8365 (lookup_avail_expr): Likewise.
8366 (initialize_hash_element): Now a expr_hash_elt constructor.
8367 (initialize_hash_element_from_expr): Similarly.
8368 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
8369 (free_expr_hash_elt): Call dtor for the element.
8370 (remove_local_expressions_from_table): Now the "pop_to_marker"
8371 method in the available_exprs_stack class.
8372 (avail_expr_stack::record_expr): Method factored out.
8373 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
8375 (hashable_expr_equal_p): Fix formatting.
8377 2015-09-15 David Malcolm <dmalcolm@redhat.com>
8379 * input.h (location_get_source_line): Drop "expanded_location"
8380 param in favor of a file and line number.
8381 * input.c (location_get_source_line): Likewise.
8382 (dump_location_info): Update for change in signature of
8383 location_get_source_line.
8384 * diagnostic.c (diagnostic_print_caret_line): Likewise.
8386 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
8388 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
8389 Bump to 4KB for SJLJ exceptions.
8390 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
8391 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
8392 * doc/tm.texi: Regenerate.
8394 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8396 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
8397 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
8400 2015-09-15 Richard Biener <rguenther@suse.de>
8402 PR tree-optimization/67470
8403 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
8404 structure for PHI hoisting by inserting a forwarder block
8407 2015-09-15 Christian Bruel <christian.bruel@st.com>
8409 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
8410 (arm_option_print): New function.
8412 2015-09-15 Christian Bruel <christian.bruel@st.com>
8415 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
8416 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
8417 Remove flags parameter.
8418 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
8419 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
8420 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
8421 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
8422 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
8423 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
8424 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
8425 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
8427 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8429 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
8431 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
8432 AARCH64_VALID_SIMD_DREG_MODE.
8434 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8436 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
8437 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
8438 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
8439 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
8440 aarch64_ld4_lane<mode>): Combine together, making...
8441 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
8442 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
8443 aarch64_st4_lane<mode>): Combine together, making...
8444 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
8445 * config/aarch64/iterators.md (nregs): Add comment.
8447 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8449 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
8450 Change operand mode from <V_TWO_ELEM> to BLK.
8451 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
8452 (aarch64_vec_store_lanesoi_lane<mode): Likewise
8453 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8454 (aarch64_ld2_lane<mode>): Likewise.
8455 (aarch64_st2_lane<VQ:mode>): Likewise.
8456 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
8458 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8460 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
8461 Change operand mode from <V_FOUR_ELEM> to BLK.
8462 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
8463 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
8464 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8465 (aarch64_ld4_lane<mode>): Likewise.
8466 (aarch64_st4_lane<mode>): Likewise.
8467 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
8469 2015-09-15 Richard Biener <rguenther@suse.de>
8472 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
8473 transfer EH info from old to new stmt.
8474 (replace_call_with_value): Likewise.
8475 (replace_call_with_call_and_fold): Likewise.
8476 (gimple_fold_builtin_memory_op): Likewise.
8477 (gimple_fold_builtin_memset): Likewise.
8478 (gimple_fold_builtin_stpcpy): Likewise.
8479 (gimple_fold_call): Likewise.
8481 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8483 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
8485 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
8486 (aarch64_simd_intEI_type_node): Likewise.
8487 (aarch64_simd_builtin_std_type): Remove EImode case.
8488 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
8489 * config/aarch64/aarch64-modes.def: Remove EImode.
8491 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8493 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
8494 Change operand mode from <V_THREE_ELEM> to BLK.
8495 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
8496 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
8497 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
8498 (aarch64_ld3_lane<mode>): Likewise.
8499 (aarch64_st3_lane<mode>): Likewise.
8500 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
8502 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8504 * config/aarch64/aarch64-simd.md
8505 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
8506 Change all TImode operands to BLKmode.
8507 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
8508 Change all EImode operands to BLKmode.
8509 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
8510 Change all OImode operands to BLKmode.
8512 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
8513 and call set_mem_size.
8514 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
8516 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
8518 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
8520 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
8522 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
8524 (vec_store_lanesci_lane<mode>): Rename to...
8525 (aarch64_vec_store_lanesci_lane<mode>): ...this.
8527 (vec_store_lanesxi_lane<mode>): Rename to...
8528 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
8530 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
8531 aarch64_st4_lane<mode>): Follow renaming.
8533 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8535 * config/s390/s390.c (s390_const_operand_ok): Add missing
8538 2015-09-15 Richard Biener <rguenther@suse.de>
8541 * lto-streamer.h (lto_location_cache::current_sysp): Properly
8543 * lto-streamer-out.c (clear_line_info): Likewise.
8545 2015-09-15 Richard Biener <rguenther@suse.de>
8547 * doc/match-and-simplify.texi: Fix wording.
8549 2015-09-15 Bin Cheng <bin.cheng@arm.com>
8551 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
8552 unnecessary type conversion in op1.
8554 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
8556 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
8557 (dup_block_and_redirect): Delete function.
8558 (can_dup_for_shrink_wrapping): New function.
8559 (fix_fake_fallthrough_edge): New function.
8560 (try_shrink_wrapping): Rewrite function.
8561 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
8563 2015-09-14 Rich Felker <dalias@libc.org>
8565 * configure.ac: Change target pattern for sh TLS support
8566 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
8567 * configure: Regenerate.
8569 2015-09-14 Jeff Law <law@redhat.com>
8571 PR tree-optimization/47679
8572 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
8573 type rather than void *.
8575 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8578 * diagnostic.c (diagnostic_initialize): Do not set
8579 some_warnings_are_errors.
8580 (diagnostic_finish): Use DK_WERROR count instead.
8581 (diagnostic_report_diagnostic): Do not set
8582 some_warnings_are_errors.
8583 * diagnostic.h (struct diagnostic_context): Remove
8584 some_warnings_are_errors.
8586 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
8588 * config/sparc/predicates.md (const_all_ones_operand): Use
8589 CONSTM1_RTX to simplify definition.
8591 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
8594 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
8597 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
8599 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
8600 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
8601 OPT_fshow_column to handled saved option cases.
8602 (append_compiler_options): Do not skip the above added options.
8604 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8607 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
8608 nopcrelative_literal_loads.
8609 (aarch64_classify_address): Likewise.
8610 (aarch64_constant_pool_reload_icode): Define.
8611 (aarch64_secondary_reload): Handle secondary reloads for
8613 (aarch64_override_options): Handle nopcrelative_literal_loads.
8614 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
8615 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8617 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8618 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
8619 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
8621 * doc/invoke.texi (mpc-relative-literal-loads): Document.
8623 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
8626 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
8627 sync_compare_and_swap_optab libcall to target_oval.
8629 2015-09-14 Marek Polacek <polacek@redhat.com>
8631 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
8633 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
8635 2015-09-11 Mark Wielaard <mjw@redhat.com>
8638 * toplev.c (check_global_declaration): Check and use
8639 warn_unused_const_variable.
8640 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
8641 (-Wunused-variable): Remove non-constant. For C implies
8642 -Wunused-const-variable.
8643 (-Wunused-const-variable): New.
8645 2015-09-14 Richard Biener <rguenther@suse.de>
8647 * doc/match-and-simplify.texi: Update for changed syntax
8648 of inner ifs and the new switch expression.
8650 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
8652 * config/i386/haswell.md: New file describing Haswell pipeline.
8653 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
8654 haswell-like processors.
8655 (ix86_reassociation_width): Increase reassociation width for 64-bit
8656 Haswell processor family.
8657 * config/i386/i386.md: Introduce haswell cpu and include new md file.
8659 2015-09-14 Richard Biener <rguenther@suse.de>
8661 * doc/match-and-simplify.texi: Fixup some formatting issues
8662 and document the 's' flag.
8664 2015-09-13 Olivier Hainque <hainque@adacore.com>
8665 Eric Botcazou <ebotcazou@adacore.com>
8667 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
8668 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
8669 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
8670 (TARGET_CPU_gr5): Likewise.
8671 (TARGET_CPU_gr6): Likewise.
8672 (MULTILIB_DEFAULTS): Likewise.
8673 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
8674 for mcpu=gr5 and mcpu=gr6.
8675 (MULTILIB_DIRNAMES): Adjust accordingly.
8677 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8679 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
8680 (mem_ref_p): Likewise.
8681 (outermost_indep_loop): Adjust.
8682 (mem_ref_in_stmt): Likewise.
8683 (determine_max_movement): Likewise.
8684 (mem_ref_alloc): Likewise.
8685 (record_mem_ref_loc): Likewise.
8686 (set_ref_stored_in_loop): Likewise.
8687 (mark_ref_stored): Likewise.
8688 (gather_mem_refs_stmt): Likewise.
8689 (mem_refs_may_alias_p): Likewise.
8690 (for_all_locs_in_loop): Likewise.
8691 (struct rewrite_mem_ref_loc): Likewise.
8692 (rewrite_mem_refs): Likewise.
8693 (struct first_mem_ref_loc_1): Likewise.
8694 (first_mem_ref_loc): Likewise.
8695 (struct sm_set_flag_if_changed): Likewise.
8696 (execute_sm_if_changed_flag_set): Likewise.
8697 (execute_sm): Likewise.
8698 (hoist_memory_references):
8699 (struct ref_always_accessed): Likewise.
8700 (ref_always_accessed_p): Likewise.
8701 (refs_independent_p): Likewise.
8702 (record_dep_loop): Likewise.
8703 (ref_indep_loop_p_1): Likewise.
8704 (ref_indep_loop_p_2): Likewise.
8705 (ref_indep_loop_p): Likewise.
8706 (can_sm_ref_p): Likewise.
8707 (find_refs_for_sm): Likewise.
8708 (tree_ssa_lim_finalize): Likewise.
8710 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8712 * dwarf2out.c (dw_attr_ref): Remove typedef.
8713 (dw_line_info_ref): Likewise.
8714 (pubname_ref): Likewise.
8715 (dw_ranges_ref): Likewise.
8716 (dw_ranges_by_label_ref): Likewise.
8717 (comdat_type_node_ref): Likewise.
8719 (get_AT_low_pc): Likewise.
8720 (get_AT_hi_pc): Likewise.
8721 (get_AT_string): Likewise.
8722 (get_AT_flag): Likewise.
8723 (get_AT_unsigned): Likewise.
8724 (get_AT_ref): Likewise.
8725 (get_AT_file): Likewise.
8726 (remove_AT): Likewise.
8727 (print_die): Likewise.
8728 (check_die): Likewise.
8729 (die_checksum): Likewise.
8730 (attr_checksum_ordered): Likewise.
8731 (struct checksum_attributes): Likewise.
8732 (collect_checksum_attributes): Likewise.
8733 (die_checksum_ordered): Likewise.
8734 (same_die_p): Likewise.
8735 (is_declaration_die): Likewise.
8736 (clone_die): Likewise.
8737 (clone_as_declaration): Likewise.
8738 (copy_declaration_context): Likewise.
8739 (break_out_comdat_types): Likewise.
8740 (copy_decls_walk): Likewise.
8741 (output_location_lists): Likewise.
8742 (external_ref_hasher::hash): Likewise.
8743 (optimize_external_refs_1): Likewise.
8744 (build_abbrev_table): Likewise.
8745 (size_of_die): Likewise.
8746 (unmark_all_dies): Likewise.
8747 (size_of_pubnames): Likewise.
8748 (output_die_abbrevs): Likewise.
8749 (output_die): Likewise.
8750 (output_pubnames): Likewise.
8751 (add_ranges_num): Likewise.
8752 (add_ranges_by_labels): Likewise.
8753 (add_high_low_attributes): Likewise.
8754 (gen_producer_string): Likewise.
8755 (dwarf2out_set_name): Likewise.
8756 (new_line_info_table): Likewise.
8757 (prune_unused_types_walk_attribs): Likewise.
8758 (prune_unused_types_update_strings): Likewise.
8759 (prune_unused_types): Likewise.
8760 (resolve_addr): Likewise.
8761 (optimize_location_lists_1): Likewise.
8762 (index_location_lists): Likewise.
8763 (dwarf2out_finish): Likewise.
8765 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8767 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
8769 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8771 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
8772 (dump_asserts_for): Adjust.
8773 (register_new_assert_for): Likewise.
8774 (process_assert_insertions): Likewise.
8775 (insert_range_assertions): Likewise.
8777 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8779 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
8781 (new_temp_expr_table): Adjust.
8782 (free_temp_expr_table): Likewise.
8783 (version_to_be_replaced_p): Likewise.
8784 (make_dependent_on_partition): Likewise.
8785 (add_to_partition_kill_list): Likewise.
8786 (remove_from_partition_kill_list): Likewise.
8787 (add_dependence): Likewise.
8788 (finished_with_expr): Likewise.
8789 (process_replaceable): Likewise.
8790 (kill_expr): Likewise.
8791 (kill_virtual_exprs): Likewise.
8792 (mark_replaceable): Likewise.
8793 (find_replaceable_in_bb): Likewise.
8794 (find_replaceable_exprs): Likewise.
8795 (debug_ter): Likewise.
8797 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8799 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
8800 (struct btr_user): Rename from btr_user_s.
8801 (struct btr_def): Rename from btr_def_s.
8802 (find_btr_def_group): Adjust.
8803 (add_btr_def): Likewise.
8804 (new_btr_user): Likewise.
8805 (note_other_use_this_block): Likewise.
8806 (compute_defs_uses_and_gen): Likewise.
8807 (link_btr_uses): Likewise.
8808 (build_btr_def_use_webs): Likewise.
8809 (block_at_edge_of_live_range_p): Likewise.
8810 (btr_def_live_range): Likewise.
8811 (combine_btr_defs): Likewise.
8812 (move_btr_def): Likewise.
8813 (migrate_btr_def): Likewise.
8814 (migrate_btr_defs): Likewise.
8816 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8818 * var-tracking.c (shared_hash_def): Rename to shared_hash.
8819 (shared_hash): Remove typedef.
8820 (struct dataflow_set): Adjust.
8821 (shared_hash_unshare): Likewise.
8822 (dataflow_set_merge): Likewise.
8823 (vt_initialize): Likewise.
8824 (vt_finalize): Likewise.
8826 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8828 * var-tracking.c (struct location_chain): Rename from
8830 (struct variable_part): Adjust.
8831 (variable_htab_free): Likewise.
8832 (unshare_variable): Likewise.
8833 (get_init_value): Likewise.
8834 (get_addr_from_local_cache): Likewise.
8835 (drop_overlapping_mem_locs): Likewise.
8836 (val_reset): Likewise.
8837 (struct variable_union_info): Likewise.
8838 (variable_union): Likewise.
8839 (find_loc_in_1pdv): Likewise.
8840 (insert_into_intersection): Likewise.
8841 (intersect_loc_chains): Likewise.
8842 (canonicalize_loc_order_check): Likewise.
8843 (canonicalize_values_mark): Likewise.
8844 (canonicalize_values_star): Likewise.
8845 (canonicalize_vars_star): Likewise.
8846 (variable_merge_over_cur): Likewise.
8847 (remove_duplicate_values): Likewise.
8848 (variable_post_merge_new_vals): Likewise.
8849 (variable_post_merge_perm_vals): Likewise.
8850 (find_mem_expr_in_1pdv): Likewise.
8851 (dataflow_set_preserve_mem_locs): Likewise.
8852 (dataflow_set_remove_mem_locs): Likewise.
8853 (variable_part_different_p): Likewise.
8854 (onepart_variable_different_p): Likewise.
8855 (find_src_set_src): Likewise.
8856 (dump_var): Likewise.
8857 (set_slot_part): Likewise.
8858 (clobber_slot_part): Likewise.
8859 (delete_slot_part): Likewise.
8860 (vt_expand_var_loc_chain): Likewise.
8861 (emit_note_insn_var_location): Likewise.
8862 (vt_finalize): Likewise.
8864 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8866 * dse.c (store_info_t): Remove typedef.
8867 (group_info_t): Likewise.
8868 (const_group_info_t): Likewise.
8869 (deferred_change_t): Likewise.
8870 (get_group_info): Adjust.
8871 (free_store_info): Likewise.
8872 (canon_address): Likewise.
8873 (clear_rhs_from_active_local_stores): Likewise.
8874 (record_store): Likewise.
8875 (replace_read): Likewise.
8876 (check_mem_read_rtx): Likewise.
8877 (scan_insn): Likewise.
8878 (remove_useless_values): Likewise.
8879 (dse_step1): Likewise.
8880 (dse_step2_init): Likewise.
8881 (dse_step2_nospill): Likewise.
8882 (scan_stores_nospill): Likewise.
8883 (scan_reads_nospill): Likewise.
8884 (dse_step3_exit_block_scan): Likewise.
8885 (dse_step3): Likewise.
8886 (dse_step5_nospill): Likewise.
8887 (dse_step6): Likewise.
8889 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8891 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8892 (alias_set_entry): Remove typedef.
8893 (alias_set_subset_of): Adjust.
8894 (alias_sets_conflict_p): Likewise.
8895 (init_alias_set_entry): Likewise.
8896 (get_alias_set): Likewise.
8897 (new_alias_set): Likewise.
8898 (record_alias_subset): Likewise.
8900 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
8902 * doc/install.texi (Downloading the source): Mark up
8903 contrib/download_prerequisites properly and drop leading "./".
8905 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8907 * config/arc/arc.h: Remove define of STRUCT_VALUE.
8908 * config/lm32/lm32.h: Likewise.
8909 * config/mep/mep.h: Likewise.
8910 * config/visium/visium.h: Likewise.
8911 * system.h: Poison STRUCT_VALUE macro.
8913 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
8915 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8916 CONSTANT_P operands.
8918 2015-09-11 David S. Miller <davem@davemloft.net>
8920 * config/sparc/constraints.md: Make "U" constraint a real register
8922 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8923 (D_MODES, DF_MODES): Add missing cast.
8924 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8925 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8926 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8928 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8929 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8930 provide these insn when flag_pic.
8932 2015-09-11 Jeff Law <law@redhat.com>
8934 PR tree-optimization/47679
8935 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8936 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8937 member with m_. Update inline member functions as necessary. Add
8939 * tree-ssa-scopedtables.c: Update const_and_copies's member
8940 functions to use m_ prefix to access the stack.
8942 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8944 * graphite-optimize-isl.c (disable_tiling): Remove.
8945 (get_schedule_for_band): Do not use disable_tiling.
8946 (get_prevector_map): Delete function.
8947 (enable_polly_vector): Remove.
8948 (get_schedule_for_band_list): Remove dead code.
8950 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8952 * graphite-optimize-isl.c (get_tile_map): Refactor.
8953 (get_schedule_for_band): Same.
8954 (getScheduleForBand): Same.
8955 (get_prevector_map): Same.
8956 (get_schedule_for_band_list): Same.
8957 (get_schedule_map): Same.
8958 (get_single_map): Same.
8959 (apply_schedule_map_to_scop): Same.
8960 (optimize_isl): Same.
8962 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8965 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8967 * config/aarch64/iterators.md (GPF_TF_F16): New.
8970 2015-09-10 Nathan Sidwell <nathan@acm.org>
8972 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8973 (nvptx_reorg): Adjust comments.
8975 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
8978 * configure.ac: Check if setenv and unsetenv are declared.
8979 * configure: Rebuild.
8980 * config.in: Rebuild.
8981 * system.h: Declare setenv and unsetenv if not declared.
8983 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8985 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8986 commentary to simplify permute mask adjustment equation.
8987 (special_handling_values): Add SH_VPERM.
8988 (const_load_sequence_p): New function.
8989 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8990 the mask loaded from the constant pool.
8991 (adjust_vperm): New function.
8992 (handle_special_swappables): Call adjust_vperm.
8993 (dump_swap_insn_table): Handle SH_VPERM.
8995 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
8997 * shrink-wrap.c (requires_stack_frame_p): Remove static.
8998 * shrink-wrap.h (requires_stack_frame_p): Put back.
9000 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
9002 * reload1.c (elimination_costs_in_insn): Locally turn
9003 -Wmaybe-uninitialized into a warning.
9005 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
9007 * shrink-wrap.c (requires_stack_frame_p): Make static.
9008 (prepare_shrink_wrap): Likewise.
9009 (dup_block_and_redirect): Likewise.
9010 * shrink-wrap.h: Remove declarations of those functions.
9012 2015-09-10 Mark Wielaard <mjw@redhat.com>
9014 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9016 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
9019 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9020 missing simplify_gen_subreg.
9022 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9024 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9025 the vector element is bigger than 64 bit.
9027 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9029 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9030 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9032 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9034 * config/s390/s390.c: Add V1TImode to constant pool modes.
9036 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9039 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9040 predicate. Set predicable_short_it attr to "no".
9042 2015-09-10 Jiong Wang <jiong.wang@arm.com>
9044 PR rtl-optimization/67421
9045 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9046 left wide shift tranformation.
9048 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9050 * common/config/arc/arc-common.c: Remove references to A5.
9051 * config/arc/arc-opts.h: Likewise.
9052 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9053 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9054 * config/arc/t-arc-newlib: Likewise.
9056 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9058 * config/arc/arc.md (length): Fix attribute length for conditional
9059 executed instructions with long immediate.
9061 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9063 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9064 type for second alternative.
9066 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
9068 * doc/invoke.texi (Downloading GCC): Mention
9069 contrib/download_prerequisites script.
9071 2015-09-10 Jakub Jelinek <jakub@redhat.com>
9074 * gimplify.c (gimplify_omp_for): If inner stmt is not found
9075 for combined loop, assert seen_error () and return GS_ERROR.
9078 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9079 if decl is already in outer->variables.
9082 * gimplify.c (gimplify_scan_omp_clauses): Instead of
9083 asserting that decl is not specified in octx->variables,
9084 break out of the loop if it is.
9087 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9088 iterator is not explicitly determined, but is defined inside
9089 of the combined workshare region, handle it like if it has
9090 DECL_EXPR in OMP_FOR_PRE_BODY.
9092 2015-09-09 Nathan Sidwell <nathan@acm.org>
9094 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9095 (*cmp<mode>): Add assembler spacing.
9096 (setcc_int<mode>, set_cc_float<mode>): Likewise.
9097 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9099 (write_func_decl_from_insn): Refactor argument loops & comma emission.
9100 (nvptx_expand_call): Likewise.
9101 (nvptx_output_call_insn): Likewise.
9102 (nvptx_reorg_subreg): Add spacing.
9104 2015-09-09 Marek Polacek <polacek@redhat.com>
9107 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
9110 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9113 * doc/invoke.texi ([Wsubobject-linkage]): Document.
9115 2015-09-09 Tom de Vries <tom@codesourcery.com>
9117 * params-list.h: Add missing copyright notice.
9119 2015-09-09 Nathan Sidwell <nathan@acm.org>
9121 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
9122 sel_truesi, not andsi.
9124 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9126 * config/arm/arm.md (*subsi3_compare0): Rename to...
9127 (subsi3_compare0): ... This.
9128 (modsi3): New define_expand.
9129 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
9130 when operand is power of 2.
9132 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9134 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
9135 (*neg<mode>2_compare0): Rename to...
9136 (neg<mode>2_compare0): ... This.
9137 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
9138 Move check for speed inside the if-then-elses. Reflect
9139 CSNEG sequence in MOD by power of 2 case.
9141 2015-09-09 Alan Modra <amodra@gmail.com>
9144 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
9145 reload replacement for PRE_MODIFY address reg.
9147 2015-09-09 Sebastian Pop <s.pop@samsung.com>
9149 PR tree-optimization/53852
9150 * config.in: Regenerate.
9151 * configure: Regenerate.
9152 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
9153 * graphite-optimize-isl.c (optimize_isl): Stop computation when
9154 PARAM_MAX_ISL_OPERATIONS is reached.
9155 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
9156 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
9157 result equal to isl_stat_ok as the status now can be isl_error_quota.
9158 (subtract_commutative_associative_deps): Same.
9159 (compute_deps): Same.
9161 2015-09-08 Aditya Kumar <hiraditya@msn.com>
9162 Sebastian Pop <s.pop@samsung.com>
9164 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9165 Return the parameter if it was saved in corresponding
9166 parameter_rename_map of the region.
9167 (copy_def): Copy def from sese region to the newly created region.
9168 (copy_internal_parameters): Copy all the internal parameters defined
9169 within a region to the newly created region.
9170 (graphite_regenerate_ast_isl): Copy parameters to the new region before
9171 translating isl to gimple.
9172 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
9173 the loop-nest does not have any data-references.
9174 (build_graphite_scops): Create a scop only when there is at least one
9176 (contains_only_close_phi_nodes): Deleted.
9177 (print_graphite_scop_statistics): Deleted
9178 (print_graphite_statistics): Deleted
9179 (limit_scops): Deleted.
9180 (build_scops): Removed call to limit_scops.
9181 * sese.c (new_sese): Construct.
9182 (free_sese): Destruct.
9183 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
9185 (set_rename): Pass sese region so that parameters inside the region can
9186 be added to its parameter_rename_map.
9187 (rename_uses): Pass sese region.
9188 (graphite_copy_stmts_from_block): Do not copy parameters that have been
9189 generated in the header of the scop. For each SSA_NAME in the
9190 parameter_rename_map rename its usage.
9191 (invariant_in_sese_p_rec): Return false if tree t is defined outside
9193 (scalar_evolution_in_region): If the tree t is invariant just return t.
9194 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
9195 struct sese to keep track of all the parameters which need renaming.
9196 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
9198 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
9200 2015-09-08 Tom de Vries <tom@codesourcery.com>
9202 * Makefile.in (generated_files): Add params.list.
9203 (params.list, s-params.list): Add rule.
9204 * params.h (enum compiler_param): Include params-list.h. Move define
9205 DEFPARAM, include params.def and undef DEFPARAM ...
9206 * params-list.h: ... here. New file.
9208 2015-09-08 David Malcolm <dmalcolm@redhat.com>
9210 * pretty-print.h (printer_fn): Fix typo in comment.
9212 2015-09-07 Jeff Law <law@redhat.com>
9214 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
9216 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9218 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
9219 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
9220 (arm_neon_fp16_hw): New.
9222 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9224 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
9225 UNITS_PER_WORD >= 4.
9227 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9229 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
9230 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
9231 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
9232 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
9233 (aarch64_float_extend_lo_v2df): Rename to...
9234 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
9236 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
9237 (float_extend_lo): Add v4sf.
9239 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
9240 * config/aarch64/iterators.md (VQ_HSF): New iterator.
9241 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
9242 (Vwide): New mode_attr.
9244 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9246 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
9247 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
9248 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
9249 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
9250 V4HF and V8HF variants to iterator.
9252 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
9254 * config/aarch64/iterators.md (VDQF_F16): New.
9255 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
9257 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9259 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
9260 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9261 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
9262 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
9263 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
9264 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9265 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
9266 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
9267 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
9268 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
9269 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
9270 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9271 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
9272 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
9273 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
9274 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
9275 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
9276 vld1q_dup_f16): New.
9278 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9280 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
9281 Reparameterize to...
9282 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
9283 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
9284 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
9286 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
9288 (float_truncate_lo_): Use BUILTIN_VDF iterator.
9290 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
9292 * config/aarch64/iterators.md (VDF, Vdtype): New.
9293 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
9295 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9297 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
9298 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
9299 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
9300 Add __builtin_aarch64_simd_hf.
9301 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
9302 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
9303 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
9304 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
9305 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
9306 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
9307 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
9308 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
9309 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
9311 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
9312 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
9313 (VDC, Vdbl): Add V4HF.
9315 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9317 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
9318 V4HFmode and V8HFmode.
9319 (aarch64_split_simd_move): Add case for V8HFmode.
9320 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
9321 (aarch64_simd_builtin_std_type): Handle HFmode.
9322 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
9324 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
9325 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
9326 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
9328 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
9331 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
9332 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
9334 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
9335 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
9336 vst1q_lane_f16): New.
9337 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
9338 (VALLDI_F16, VALL_F16): New.
9339 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
9340 Add cases for V4HF and V8HF.
9341 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
9343 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9345 * config/arm/arm-builtins.c (VAR11, VAR12): New.
9346 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
9347 vld4_dup): Add v4hf variant.
9348 (vget_high, vget_low): Add v8hf variant.
9349 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
9350 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
9351 v4hf and v8hf variants.
9353 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
9355 (V_DOUBLE): Add case for V4HF.
9357 (V_HALF): Add case for V8HF.
9358 (VDQX): Add V4HF, V8HF.
9359 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
9360 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
9362 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
9363 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
9364 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
9365 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
9366 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
9367 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
9368 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
9369 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
9370 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
9372 (neon_vcreate, neon_vreinterpretv8qi<mode>,
9373 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
9374 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
9375 Change VDX to VD_RE.
9377 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
9378 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
9379 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
9381 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
9382 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
9383 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
9384 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
9385 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
9386 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
9387 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
9388 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
9389 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
9391 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9393 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
9394 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
9395 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
9396 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
9397 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9398 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
9399 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
9400 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
9401 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
9402 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
9405 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9407 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
9409 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
9411 * config/arm/arm-builtins.c (v8hf_UP): New.
9412 (arm_init_simd_builtin_types): Initialise Float16x8_t.
9414 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
9416 * config/arm/arm_neon.h (float16x8_t): New typedef.
9418 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9420 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
9421 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
9422 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
9423 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
9424 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9425 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
9426 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
9427 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
9428 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9429 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
9431 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
9433 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
9434 non-alphanumeric characters in the symbol name.
9436 2015-09-07 Marek Polacek <polacek@redhat.com>
9439 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
9442 2015-09-07 Marek Polacek <polacek@redhat.com>
9444 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
9446 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
9448 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
9451 2015-09-04 Jakub Jelinek <jakub@redhat.com>
9454 * tree-ssa-live.c: Include cfgloop.h.
9455 (remove_unused_locals): Clear loop->simduid if simduid is about
9456 to be removed from cfun->local_decls.
9458 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9461 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
9464 2015-09-04 Tom de Vries <tom@codesourcery.com>
9466 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
9468 2015-09-04 Jeff Law <law@redhat.com>
9470 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
9471 unnecessary constructor. It's now trivial and implemented inside...
9472 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
9473 constructor. Add comments to various methods. Remove unused
9475 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
9476 * tree-vrp.c (identify_jump_threads): Likewise.
9477 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
9479 (thread_across_edge): Similarly.
9480 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
9481 arguments in constructor call.
9483 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9485 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
9486 temp path contains a '-'.
9488 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
9489 Petr Murzin <petr.murzin@intel.com>
9490 Kirill Yukhin <kirill.yukhin@intel.com>
9492 * config/i386/i386-builtin-types.def
9493 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
9494 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
9495 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
9496 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
9497 * config/i386/i386.c
9498 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
9499 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
9500 IX86_BUILTIN_SCATTERALTDIV16SI.
9501 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
9502 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
9503 __builtin_ia32_scatteraltdiv8si.
9504 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
9505 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
9506 IX86_BUILTIN_SCATTERALTDIV16SI.
9507 (ix86_vectorize_builtin_scatter): New.
9508 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
9509 ix86_vectorize_builtin_scatter.
9511 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
9512 Petr Murzin <petr.murzin@intel.com>
9513 Kirill Yukhin <kirill.yukhin@intel.com>
9515 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
9516 * doc/tm.texi: Regenerate.
9517 * target.def: Add scatter builtin.
9518 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
9519 for loads/stores in case of gather/scatter accordingly.
9520 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
9521 STMT_VINFO_GATHER_P(S).
9522 (vect_check_gather): Rename to ...
9523 (vect_check_gather_scatter): this.
9524 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
9525 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
9526 (vect_check_gather_scatter): Use it instead of vect_check_gather.
9527 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
9528 variable and new checkings for it accordingly.
9530 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
9531 STMT_VINFO_GATHER_P(S).
9532 (vect_check_gather_scatter): Use it instead of vect_check_gather.
9533 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
9535 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9537 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
9539 (mulv16qi3): New define_expand.
9541 2015-09-03 Martin Sebor <msebor@redhat.com>
9544 * doc/extend.texi (Other Builtins): Document when the address
9545 of a built-in function can be taken.
9547 2015-09-03 Richard Biener <rguenther@suse.de>
9549 * dwarf2out.c (flush_limbo_die_list): Split out from ...
9550 (dwarf2out_early_finish): ... here.
9551 (dwarf2out_finish): Do not call dwarf2out_early_finish but
9552 flush_limbo_die_list. Assert we have no deferred asm names.
9554 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9556 * optabs.c (expand_binop): Don't create a broadcast vector with a
9557 source element wider than the inner mode.
9559 2015-09-03 Richard Biener <rguenther@suse.de>
9561 * varasm.c (output_constant): Use fold_convert instead of
9564 2015-09-03 Tom de Vries <tom@codesourcery.com>
9566 PR tree-optimization/65637
9567 * omp-low.c (expand_omp_for_static_chunk): Handle case that
9568 fin_bb has 2 predecessors.
9570 2015-09-03 Tom de Vries <tom@codesourcery.com>
9572 PR tree-optimization/65637
9573 * omp-low.c (find_phi_with_arg_on_edge): New function.
9574 (expand_omp_for_static_chunk): Fix inner loop phi.
9576 2015-09-03 Tom de Vries <tom@codesourcery.com>
9578 PR tree-optimization/65637
9579 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
9582 2015-09-03 Tom de Vries <tom@codesourcery.com>
9584 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
9586 2015-09-03 Tom de Vries <tom@codesourcery.com>
9588 * doc/invoke.texi (parloops-chunk-size): Add item.
9589 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
9590 * tree-parloops.c: Include params.h.
9591 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
9592 param parloops-chunk-size is used.
9594 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9597 * fold-const.c (fold_binary_loc) : Move
9598 Transform (x >> c) << c into x & (-1<<c) or
9599 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
9600 types using simplify and match.
9601 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
9602 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
9604 2015-09-03 Richard Biener <rguenther@suse.de>
9607 * tree-ssa-structalias.c (ctor_for_analysis): New function.
9608 (create_variable_info_for_1): Use ctor_for_analysis instead
9610 (create_variable_info_for): Likewise.
9612 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
9615 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
9616 in new callgraph edge.
9618 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
9623 * config/aarch64/aarch64-simd.md
9624 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
9625 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
9626 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
9627 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
9629 2015-09-02 Alan Modra <amodra@gmail.com>
9631 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
9632 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
9633 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
9635 2015-09-02 Alan Modra <amodra@gmail.com>
9638 * config/rs6000/predicates.md (current_file_function_operand): Don't
9639 return true for weak symbols.
9640 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
9642 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
9643 Andrew Bennett <andrew.bennett@imgtec.com>
9645 * config/mips/mips-opts.h (mips_cb_setting): New enum.
9646 * config/mips/mips-protos.h: Add definitions for
9647 mips_output_jump and mips_output_equal_conditional_branch
9648 * config/mips/mips.c (MIPS_JR): Change to support the
9650 (mips_emit_compare): Add support for the MIPS R6 conditional
9652 (mips_process_sync_loop): Likewise.
9653 (mips_output_order_conditional_branch): Likewise.
9654 (mips16_build_call_stub): Change MIPS_CALL to
9656 (mips_print_operand_punctuation): Update 's' case to only
9657 apply to micromips r2.
9658 (mips_adjust_insn_length): Add support for forbidden slot
9660 (mips_avoid_hazard): Likewise.
9661 (mips_reorg_process_insns): Likewise.
9662 (mips_output_jump): New function.
9663 (mips_output_equal_conditional_branch): Likewise.
9664 (mips_output_conditional_branch): Use jrc/bc if compact
9665 branch support is enabled. Ensure the forbidden slots
9666 between the two branch instructions is filled with a nop.
9667 (mips_option_override): Add support to process the compact
9668 branch option and set the correct defaults. Prevent
9669 non-explict relocs being using for MIPS R6.
9670 (mips_trampoline_init): Add compact branch support.
9671 (mips_mult_zero_zero_cost): Allow zero initialisation of
9672 accumulators with TARGET_DSP.
9673 * config/mips/mips.h (TARGET_CB_NEVER): New define.
9674 (TARGET_CB_MAYBE): New define.
9675 (TARGET_CB_ALWAYS): New define.
9676 (ISA_HAS_DELAY_SLOTS): New define.
9677 (ISA_HAS_COMPACT_BRANCHES): New define.
9678 (ISA_HAS_JRC): New define.
9679 (MIPS_BRANCH_C): New define.
9680 (MIPS_CALL): Removed.
9681 (MICROMIPS_J): Removed.
9682 * config/mips/mips.md (compact_form): New attr.
9683 (hazard): Add support for forbidden slots.
9684 (define_delay): Add support for compact branches.
9685 (*branch_order<mode>): Likewise.
9686 (*branch_order<mode>_inverted): Likewise.
9687 (*branch_equality<mode>): Likewise.
9688 (*branch_equality<mode>_inverted): Likewise.
9689 (*jump_absolute): Likewise.
9690 (*jump_pic): Likewise.
9691 (indirect_jump): Use mips_output_jump to produce assembly output.
9692 (tablejump_<mode>"): Likewise.
9693 (*<optab>"): Likewise.
9694 (<optab>_internal): Likewise.
9695 (sibcall_internal): Likewise.
9696 (sibcall_value_internal): Likewise.
9697 (sibcall_value_multiple_internal): Likewise.
9698 (call_internal): Likewise.
9699 (call_split): Likewise.
9700 (call_internal_direct): Likewise.
9701 (call_direct_split): Likewise.
9702 (call_value_internal): Likewise.
9703 (call_value_split): Likewise.
9704 (call_value_internal_direct): Likewise.
9705 (call_value_direct_split): Likewise.
9706 (call_value_multiple_internal): Likewise.
9707 (call_value_multiple_split): Likewise.
9708 (mips_get_fcsr_mips16_<mode>): Likewise.
9709 (mips_set_fcsr_mips16_<mode>): Likewise.
9710 (tls_get_tp_mips16_<mode>): Likewise.
9711 * config/mips/mips.opt: Add -mcompact-branches option.
9712 * config/mips/predicates.md (order_operator): Ensure the
9713 conditional compact branches are only used if the ISA them.
9714 * doc/invoke.texi: Document -mcompact-branches option.
9716 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
9719 * lra-lives.c (process_bb_lives): Process move pseudos with the
9720 same value for copies and preferences
9721 * lra-constraints.c (match_reload): Create match reload pseudo
9722 with the same value from single dying input pseudo.
9724 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
9727 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
9729 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
9731 * trans-mem.c: Add contributed-by.
9732 * trans-mem.h: Same.
9734 2015-09-01 Richard Biener <rguenther@suse.de>
9736 * expr.c (expand_expr_real_1): For expanding TERed defs
9737 set the current location to that of the def if not UNKNOWN.
9739 2015-09-01 David Sherwood <david.sherwood@arm.com>
9741 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
9743 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9745 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
9746 then_cost, else_cost fields. Change branch_cost field to unsigned int.
9747 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
9749 (noce_simple_bbs): New function.
9750 (noce_try_move): Bail if basic blocks are not simple.
9751 (noce_try_store_flag): Likewise.
9752 (noce_try_store_flag_constants): Likewise.
9753 (noce_try_addcc): Likewise.
9754 (noce_try_store_flag_mask): Likewise.
9755 (noce_try_cmove): Likewise.
9756 (noce_try_minmax): Likewise.
9757 (noce_try_abs): Likewise.
9758 (noce_try_sign_mask): Likewise.
9759 (noce_try_bitop): Likewise.
9760 (bbs_ok_for_cmove_arith): New function.
9761 (noce_emit_all_but_last): Likewise.
9762 (noce_emit_insn): Likewise.
9763 (noce_emit_bb): Likewise.
9764 (noce_try_cmove_arith): Handle non-simple basic blocks.
9765 (insn_valid_noce_process_p): New function.
9766 (contains_mem_rtx_p): Likewise.
9767 (bb_valid_for_noce_process_p): Likewise.
9768 (noce_process_if_block): Allow non-simple basic blocks
9771 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
9773 * tree-ssa-dom.c (record_equivalences_from_phis,
9774 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
9775 (lookup_avail_expr): Likewise, and remove comment and unused temp.
9777 2015-09-01 Nick Clifton <nickc@redhat.com>
9779 * config/msp430/msp430.opt (mcpu): Fix typo.
9781 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9783 * config/aarch64/aarch64.c (aarch64_set_current_function):
9784 Re-layout any vector parameters have non-simd layout.
9785 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
9787 (aarch64_simd_expand_args): Delete call to the above.
9789 2015-08-31 Mike Frysinger <vapier@gentoo.org>
9791 * doc/invoke.texi (asan-stack): Add space before option.
9793 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9795 * tree.h (zerop): New function.
9796 * tree.c (zerop): Likewise.
9797 (element_precision): Handle expressions.
9798 * match.pd (define_predicates): Add zerop.
9799 (x <= +Inf): Fix comment.
9800 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
9801 * fold-const.c (fold_binary_loc): ... here. Remove.
9803 2015-08-31 Richard Biener <rguenther@suse.de>
9806 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
9808 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9810 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
9811 (CEXPI): New operator list.
9812 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
9813 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
9815 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
9817 2015-08-31 Tom de Vries <tom@codesourcery.com>
9819 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
9820 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
9822 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
9823 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
9824 (rewrite_into_loop_closed_ssa): ... here.
9825 (replace_uses_in_dominated_bbs): Remove function.
9826 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
9827 rewrite_into_loop_closed_ssa_1.
9829 2015-08-31 Michael Matz <matz@suse.de>
9831 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
9832 enter entry and exit blocks for reverse post order.
9834 2015-08-31 Richard Biener <rguenther@suse.de>
9836 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
9837 (lto_location_cache::current_sysp): Likewise.
9838 (output_block::current_sysp): Likewise.
9839 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
9840 (lto_location_cache::apply_location_cache): Properly record
9841 system header locations.
9842 (lto_location_cache::input_location): Input whether a file
9844 * lto-streamer-out.c (lto_output_location): Stream whether a file
9847 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9850 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9852 2015-08-31 Tom de Vries <tom@codesourcery.com>
9854 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9855 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9856 Improve function header comments.
9858 2015-08-30 Michael Collison <michael.collison@linaro.org>
9861 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9864 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9866 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9867 special_handling bitfield.
9868 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9869 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9870 that represents a general xxpermdi.
9871 (insn_is_swappable_p): Add handling for vec_concat of two
9872 doublewords, which maps to a specific xxpermdi.
9873 (adjust_xxpermdi): New function.
9874 (adjust_concat): Likewise.
9875 (handle_special_swappables): Call adjust_xxpermdi and
9877 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9879 2015-08-30 Rich Felker <dalias@libc.org>
9881 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9882 case instead of sh[123456ble]-*-*.
9884 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9886 * ira.c (print_unform_and_important_classes,
9887 print_translated_classes): Remove reg_class_names static array.
9888 (print_unform_and_important_classes): Rename to ...
9889 (print_uniform_and_important_classes): ... this.
9890 (ira_debug_allocno_classes): Update accordingly.
9892 2015-08-29 Tom de Vries <tom@codesourcery.com>
9894 PR tree-optimization/46193
9895 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9898 2015-08-28 Jeff Law <law@redhat.com>
9901 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9902 unable to find X NE 0 in the tables, return X as the simplified
9904 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9905 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9907 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9908 after removing the control flow statement and unnecessary edges.
9910 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
9913 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9915 PR tree-optimization/67283
9916 * tree-sra.c (type_consists_of_records_p): Rename to...
9917 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9919 (completely_scalarize_record): Rename to...
9920 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9922 (scalarize_elem): New.
9924 2015-08-28 Jiong Wang <jiong.wang@arm.com>
9926 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9927 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9928 (aarch64_symbol_type): Likewise.
9929 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9931 (aarch64_expand_mov_immediate): Likewise.
9932 (aarch64_print_operand): Likewise.
9933 (aarch64_classify_tls_symbol): Likewise.
9935 2015-08-28 Richard Biener <rguenther@suse.de>
9937 * cgraphunit.c (symbol_table::compile): Move early debug generation
9939 (symbol_table::finalize_compilation_unit): ... back here and
9940 add a !seen_error () guard.
9942 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9944 * toplev.c (process_options): Do not use flag_loop_block,
9945 flag_loop_interchange, and flag_loop_strip_mine. Add check for
9946 flag_loop_optimize_isl.
9948 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9950 * Makefile.in (OBJS): Remove graphite-blocking.o and
9951 graphite-interchange.o.
9952 * common.opt (floop-strip-mine, floop-interchange, floop-block):
9953 Alias of floop-nest-optimize.
9954 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9955 Document as alias of -floop-nest-optimize.
9956 * graphite-blocking.c: Remove.
9957 * graphite-interchange.c: Remove.
9958 * graphite-optimize-isl.c: Include dumpfile.h.
9959 (getScheduleForBand): Add dump for tiled loops. Use
9960 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9961 * graphite-poly.c (scop_max_loop_depth): Remove.
9962 (print_scattering_function_1): Remove.
9963 (print_scattering_function): Remove.
9964 (print_scattering_functions): Remove.
9965 (debug_scattering_function): Remove.
9966 (debug_scattering_functions): Remove.
9967 (apply_poly_transforms): Remove use of flag_loop_block,
9968 flag_loop_strip_mine, and flag_loop_interchange.
9969 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9971 (print_pdr_access_layout): Remove.
9972 (print_pdr): Print ISL representation.
9973 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9974 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9976 (openscop_print_pbb_domain): Remove.
9977 (print_pbb): Remove call to print_scattering_function.
9978 (openscop_print_scop_context): Remove.
9979 (print_scop_context): Do not print matrices anymore.
9980 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9981 SCOP_TRANSFORMED_SCHEDULE.
9982 (print_isl_set): Add printing of a new line.
9983 (print_isl_map): Same.
9984 (print_isl_aff): Same.
9985 (print_isl_constraint): Same.
9986 (loop_to_lst): Remove.
9987 (scop_to_lst): Remove.
9988 (lst_indent_to): Remove.
9989 (print_lst): Remove.
9990 (debug_lst): Remove.
9991 (dot_lst_1): Remove.
9993 (reverse_loop_at_level): Remove.
9994 (reverse_loop_for_pbbs): Remove.
9995 * graphite-poly.h (pdr_dim_iter_domain): Remove.
9996 (pdr_nb_params): Remove.
9997 (pdr_alias_set_dim): Remove.
9998 (pdr_subscript_dim): Remove.
9999 (pdr_iterator_dim): Remove.
10000 (pdr_parameter_dim): Remove.
10001 (same_pdr_p): Remove.
10002 (struct poly_scattering): Remove.
10003 (struct poly_bb): Remove _original, _transformed, _saved.
10004 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10005 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10006 (PBB_NB_LOCAL_VARIABLES): Remove.
10007 (PBB_NB_SCATTERING_TRANSFORM): Remove.
10008 (schedule_to_scattering): Remove.
10009 (number_of_write_pdrs): Remove.
10010 (pbb_dim_iter_domain): Remove.
10011 (pbb_nb_params): Remove.
10012 (pbb_nb_scattering_orig): Remove.
10013 (pbb_nb_scattering_transform): Remove.
10014 (pbb_nb_dynamic_scattering_transform): Remove.
10015 (pbb_nb_local_vars): Remove.
10016 (pbb_iterator_dim): Remove.
10017 (pbb_parameter_dim): Remove.
10018 (psco_scattering_dim): Remove.
10019 (psct_scattering_dim): Remove.
10020 (psct_local_var_dim): Remove.
10021 (psco_iterator_dim): Remove.
10022 (psct_iterator_dim): Remove.
10023 (psco_parameter_dim): Remove.
10024 (psct_parameter_dim): Remove.
10025 (psct_dynamic_dim): Remove.
10026 (psct_static_dim): Remove.
10027 (psct_add_local_variable): Remove.
10028 (new_lst_loop): Remove.
10029 (new_lst_stmt): Remove.
10030 (free_lst): Remove.
10031 (copy_lst): Remove.
10032 (lst_add_loop_under_loop): Remove.
10033 (lst_depth): Remove.
10034 (lst_dewey_number): Remove.
10035 (lst_dewey_number_at_depth): Remove.
10036 (lst_pred): Remove.
10037 (lst_succ): Remove.
10038 (lst_find_pbb): Remove.
10039 (find_lst_loop): Remove.
10040 (lst_find_first_pbb): Remove.
10041 (lst_empty_p): Remove.
10042 (lst_find_last_pbb): Remove.
10043 (lst_contains_p): Remove.
10044 (lst_contains_pbb): Remove.
10045 (lst_create_nest): Remove.
10046 (lst_remove_from_sequence): Remove.
10047 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10048 (lst_niter_for_loop): Remove.
10049 (pbb_update_scattering): Remove.
10050 (lst_update_scattering_under): Remove.
10051 (lst_update_scattering): Remove.
10052 (lst_insert_in_sequence): Remove.
10053 (lst_replace): Remove.
10054 (lst_substitute_3): Remove.
10055 (lst_distribute_lst): Remove.
10056 (lst_remove_all_before_including_pbb): Remove.
10057 (lst_remove_all_before_excluding_pbb): Remove.
10058 (struct scop): Remove original_schedule, transformed_schedule, and
10060 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10061 (SCOP_SAVED_SCHEDULE): Remove.
10062 (poly_scattering_new): Remove.
10063 (poly_scattering_free): Remove.
10064 (poly_scattering_copy): Remove.
10065 (store_scattering_pbb): Remove.
10066 (store_lst_schedule): Remove.
10067 (restore_lst_schedule): Remove.
10068 (store_scattering): Remove.
10069 (restore_scattering_pbb): Remove.
10070 (restore_scattering): Remove.
10071 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10072 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
10073 compute the scattering polyhedron dimension from the dimension of
10075 (build_scop_scattering): Update call to
10076 build_pbb_scattering_polyhedrons.
10077 (build_poly_scop): Remove call to scop_to_lst.
10078 * graphite.c (graphite_transform_loops): Add call to print_scop.
10079 (gate_graphite_transforms): Remove use of flag_loop_block,
10080 flag_loop_interchange, and flag_loop_strip_mine.
10082 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10084 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10085 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10086 -floop-nest-optimize.
10087 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10088 (generate_luj_sepclass): Remove.
10089 (generate_luj_options): Remove.
10090 (set_options): Remove opt_luj.
10091 (scop_to_isl_ast): Remove opt_luj.
10092 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10093 flag_loop_unroll_jam.
10094 (getPrevectorMap_full): Remove.
10095 (getScheduleForBandList): Remove map_sepcl.
10096 (getScheduleMap): Same.
10097 (apply_schedule_map_to_scop): Remove sepcl.
10098 (optimize_isl): Same.
10099 * graphite-poly.c (apply_poly_transforms): Remove check for
10100 flag_loop_unroll_jam.
10101 (new_poly_bb): Remove map_sepclass.
10102 * graphite-poly.h (struct poly_bb): Same.
10103 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10104 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
10105 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
10106 * toplev.c (process_options): Remove flag_loop_unroll_jam.
10108 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
10111 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
10112 (addqi3_cc): Ditto.
10113 (UNSPEC_ADD_CARRY): Remove.
10114 (addqi3_cconly_overflow): New expander.
10115 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
10116 Adjust for changed add<mode>3_carry.
10117 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
10118 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
10119 (<plusminus_insn><mode>3_carry): Remove expander.
10120 (*<plusminus_insn><mode>3_carry): Split insn pattern to
10121 add<mode>3_carry and sub<mode>3_carry.
10122 (plusminus_carry_mnemonic): Remove code attribute.
10123 (add<mode>3_carry): Canonicalize insn pattern.
10124 (*addsi3_carry_zext): Ditto.
10125 (sub<mode>3_carry): Ditto.
10126 (*subsi3_carry_zext): Ditto.
10127 (adcx<mode>3): Remove insn pattern.
10128 (addcarry<mode>): New insn pattern.
10129 (subborrow<mode>): Ditto.
10130 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
10131 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
10132 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
10133 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
10134 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
10135 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
10136 Rewrite expander to not clobber carry flag chains.
10138 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
10140 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
10141 instead of a rotate.
10143 2015-08-27 Marek Polacek <polacek@redhat.com>
10145 PR middle-end/67005
10146 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
10147 an entry into an irreducible region.
10149 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10151 * configure: Regenerate.
10153 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10155 PR tree-optimization/67283
10156 * tree-sra.c (type_consists_of_records_p): Rename to...
10157 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10159 (completely_scalarize_record): Rename to...
10160 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10161 (scalarize_elem): New.
10163 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10165 * tree-sra.c (completely_scalarize_var): Rename to...
10166 (create_total_scalarization_access): ... Here. Drop call to
10167 completely_scalarize_record.
10169 (analyze_all_variable_accesses): Replace completely_scalarize_var
10170 with create_total_scalarization_access and completely_scalarize_record.
10172 2015-08-27 Alan Modra <amodra@gmail.com>
10175 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
10178 2015-08-27 Richard Biener <rguenther@suse.de>
10180 * passes.c (rest_of_decl_compilation): Guard early_global_decl
10181 call with !seen_error ().
10182 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
10183 early debug generation and finish...
10184 (symbol_table::compile): ... here to put it after a !seen_error ()
10187 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10189 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
10192 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10193 Andre Vieira <andre.simoesdiasvieira@arm.com>
10195 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
10196 (*cb<optab><mode>1): Likewise.
10197 (*tb<optab><mode>1): Likewise.
10198 (*cb<optab><mode>1): Likewise.
10199 * config/aarch64/iterators.md (inv_cb): New code attribute.
10200 (inv_tb): Likewise.
10201 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
10202 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
10204 2015-08-27 Richard Biener <rguenther@suse.de>
10206 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
10208 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
10210 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
10213 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10215 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
10218 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
10220 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
10221 floating point in VSX registers.
10222 (rs6000_output_move_128bit): Always print out the set insn if we
10223 can't generate an appropriate 128-bit move.
10224 (rs6000_generate_compare): Add support for IEEE 128-bit floating
10225 point in VSX registers comparisons.
10226 (rs6000_expand_float128_convert): Likewise.
10228 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
10229 predicate for only GPR hard registers.
10231 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
10232 modes to iterators. Add new iterators for moving 128-bit values in
10233 scalar FPR registers and VSX registers.
10234 (FMOVE128): Likewise.
10235 (FMOVE128_FPR): Likewise.
10236 (FMOVE128_GPR): Likewise.
10237 (FMOVE128_VSX): Likewise.
10238 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
10241 (IBM128): Likewise.
10242 (TFIFKF): Likewise.
10243 (RELOAD): Add IEEE 128-bit floating point modes.
10244 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
10245 floating point in VSX registers modes.
10246 (signbit<mode>2, IBM128 iterator): Likewise.
10247 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
10248 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10249 (negtf2): Likewise.
10250 (neg<mode>2, TFIFKF iterator): Likewise.
10251 (negtf2_internal): Likewise.
10252 (abstf2): Likewise.
10253 (abs<mode>2, TFIFKF iterator): Likewise.
10254 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
10255 VSX insn support for negate, absolute value, and negative absolute
10257 (ieee_128bit_vsx_neg<mode>2): Likewise.
10258 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10259 (ieee_128bit_vsx_abs<mode>2): Likewise.
10260 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10261 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10262 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10263 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
10264 floating point in VSX registers.
10265 (unpack<mode>_dm): Likewise.
10266 (unpack<mode>_nodm): Likewise.
10267 (pack<mode>): Likewise.
10268 (unpackv1ti): Likewise.
10269 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
10270 (packv1ti): Likewise.
10271 (pack<mode>, FMOVE128_VSX iterator): Likewise.
10272 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
10274 (extenddftf2_internal): Likewise.
10275 (trunctfdf2): Likewise.
10276 (trunctfdf2_internal2): Likewise.
10277 (fix_trunc_helper): Likewise.
10278 (fix_trunctfdi2"): Likewise.
10279 (floatditf2): Likewise.
10280 (floatuns<mode>tf2): Likewise.
10281 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
10282 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
10283 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
10284 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
10285 (float<SDI:mode><IFKF:mode>2): Likewise.
10286 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
10288 2015-08-26 Renlin Li <renlin.li@arm.com>
10290 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
10292 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
10293 Jiong Wang <jiong.wang@arm.com>
10295 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
10296 (tlsie_tiny_<mode>): New define_insn.
10297 (tlsie_tiny_sidi): Likewise.
10298 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
10300 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
10301 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10303 (aarch64_expand_mov_immediate): Likewise.
10304 (aarch64_print_operand): Likewise.
10305 (arch64_classify_tls_symbol): Likewise.
10307 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10309 * config/arm/arm-arches.def: Replace single value flags with
10310 an initializer built from ARM_FSET_MAKE_CPU1.
10311 * config/arm/arm-cores.def: Likewise.
10312 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
10313 derivation from the ARM_CORE macro definition, use the given value
10315 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
10316 ARM_ARCH macro definition, use the given value instead.
10318 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10320 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
10322 (struct builtin_description): Replace field mask with field
10324 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
10325 (IWMMXT2_BUILTIN): Likewise.
10326 (IWMMXT2_BUILTIN2): Likewise.
10327 (FP_BUILTIN): Likewise.
10328 (CRC32_BUILTIN): Likewise.
10329 (CRYPTO_BUILTIN): Likewise.
10330 (iwmmx_mbuiltin): Likewise.
10331 (iwmmx2_mbuiltin): Likewise.
10332 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
10333 struct builtin_description.
10335 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10337 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
10338 (struct builtin_description): Change type of mask to unsigned
10340 * config/arm/arm-protos.h (insn_flags): Declare as type
10342 (tune_flags): Likewise.
10343 * config/arm/arm.c (feature_count): New.
10344 (insn_flags): Define as type arm_feature_set.
10345 (tune_flags): Likewise.
10346 (struct processors): Define field flags as type arm_feature_set.
10347 (all_cores): Update for change to struct processors.
10348 (all_architectures): Likewise.
10349 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
10351 (arm_option_override_internal): Likewise.
10352 (arm_option_override): Likewise.
10354 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
10355 Jiong Wang <jiong.wang@arm.com>
10357 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
10358 tls size for tiny, small, large memory model.
10359 (aarch64_load_symref_appropriately): Support new symbol types.
10360 (aarch64_expand_mov_immediate): Likewise.
10361 (aarch64_print_operand): Likewise.
10362 (aarch64_classify_tls_symbol): Likewise.
10363 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
10364 (aarch64_symbol_type): Likewise.
10365 * config/aarch64/aarch64.md (tlsle): Deleted.
10366 (tlsle12_<mode>): New define_insn.
10367 (tlsle24_<mode>): Likewise.
10368 (tlsle32_<mode>): Likewise.
10369 (tlsle48_<mode>): Likewise.
10370 * doc/sourcebuild.texi (AArch64-specific attributes): Document
10373 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10375 * config/arm/arm-protos.h (FL_NONE): New.
10377 (arm_feature_set): New.
10378 (ARM_FSET_MAKE): New.
10379 (ARM_FSET_MAKE_CPU1): New.
10380 (ARM_FSET_MAKE_CPU2): New.
10381 (ARM_FSET_CPU1): New.
10382 (ARM_FSET_CPU2): New.
10383 (ARM_FSET_EMPTY): New.
10384 (ARM_FSET_ANY): New.
10385 (ARM_FSET_HAS_CPU1): New.
10386 (ARM_FSET_HAS_CPU2): New.
10387 (ARM_FSET_HAS_CPU): New.
10388 (ARM_FSET_ADD_CPU1): New.
10389 (ARM_FSET_ADD_CPU2): New.
10390 (ARM_FSET_DEL_CPU1): New.
10391 (ARM_FSET_DEL_CPU2): New.
10392 (ARM_FSET_UNION): New.
10393 (ARM_FSET_INTER): New.
10394 (ARM_FSET_XOR): New.
10395 (ARM_FSET_EXCLUDE): New.
10396 (AFM_FSET_IS_EMPTY): New.
10397 (ARM_FSET_CPU_SUBSET): New.
10399 2015-08-26 Jiong Wang <jiong.wang@arm.com>
10401 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10402 SYMBOL_TLSLE to SYMBOL_TLSLE24.
10403 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10405 (aarch64_expand_mov_immediate): Likewise.
10406 (aarch64_print_operand): Likewise.
10407 (aarch64_classify_symbol): Likewise.
10409 2015-08-26 Jiong Wang <jiong.wang@arm.com>
10411 * config/aarch64/aarch64.opt (mtls-size): New entry.
10412 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
10413 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
10414 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
10416 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
10418 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
10419 ARM_CORE entry. Fix some white-space.
10420 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
10421 ARM_CORE definition.
10423 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10425 * fold-const.c (fold_binary_loc) : Move Optimize
10426 root(x)*root(y) as root(x*y) to match.pd.
10427 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
10428 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
10429 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
10430 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
10431 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
10432 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
10433 (mult (exps:s @0) (exps:s @1)) : New simplifier.
10434 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
10435 (rdiv @0 (exps:s @1)) : New simplifier.
10437 2015-08-25 Joseph Myers <joseph@codesourcery.com>
10439 * gcc.c (driver::finalize): Only assign to extra_specs if
10442 2015-08-25 Marek Polacek <polacek@redhat.com>
10444 PR middle-end/67330
10445 * varasm.c (declare_weak): Return after giving an error.
10447 2015-08-25 David Malcolm <dmalcolm@redhat.com>
10449 * gcc-main.c (main): Add params to driver ctor.
10450 * gcc.c (class env_manager): New.
10452 (env_manager::init): New.
10453 (env_manager::get): New.
10454 (env_manager::xput): New.
10455 (env_manager::restore): New.
10456 Poison getenv and putenv.
10457 (DEFAULT_TARGET_SYSTEM_ROOT): New.
10458 (target_system_root): Update initialization to use
10459 DEFAULT_TARGET_SYSTEM_ROOT.
10460 (struct spec_list): Add field "default_ptr".
10461 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
10462 (init_spec): Likewise.
10463 (set_spec): Clear field "default_ptr".
10464 (read_specs): Free "spec" and "buffer".
10465 (xputenv): Reimplement in terms of env_manager.
10466 (process_command): Replace ::getenv calls with calls to the
10467 env_manager singleton.
10468 (process_brace_body): Free string in three places.
10469 (driver::driver): New.
10470 (driver::~driver): New.
10471 (used_arg): Convert from a function to...
10472 (class used_arg_t): ...this class, and...
10473 (used_arg): ...this new global instance.
10474 (used_arg_t::finalize): New function.
10475 (getenv_spec_function): Add "const" to local "value". Replace
10476 ::getenv call with call to the env_manager singleton.
10477 (path_prefix_reset): New function.
10478 (driver::finalize): New function.
10479 * gcc.h (driver::driver): New.
10480 (driver::~driver): New.
10481 (driver::finalize): New.
10483 2015-08-25 Nathan Sidwell <nathan@acm.org>
10485 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
10486 target doesn't have one.
10488 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
10491 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
10493 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
10496 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
10497 a define_insn, remove second alternative.
10499 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
10500 Joseph Myers <joseph@codesourcery.com>
10502 * gcc.c (struct switchstr): Expand comment.
10504 2015-08-25 Nathan Sidwell <nathan@acm.org>
10506 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
10507 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
10509 2015-08-25 Richard Biener <rguenther@suse.de>
10511 PR middle-end/67306
10512 * genmatch.c (expr::gen_transform): Verify the result of
10513 builtin_decl_implicit.
10514 (dt_simplify::gen_1): Likewise.
10516 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
10518 * config/arm/constraints.md: Also list Cs and US ARM-specific
10519 constraints as used.
10521 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
10524 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
10526 (nonpic_symbol_mentioned_p): Likewise.
10527 (sh_delegitimize_address): Likewise.
10528 (sh_function_ok_for_sibcall): Take into account weak symbols.
10529 (sh_expand_sym_label2reg): New.
10530 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
10531 * config/sh/sh.md (UNSPEC_PCREL): New enum.
10532 (call_pcrel): Use sh_expand_sym_label2reg.
10533 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10534 (symPCREL_label2reg) New expand.
10536 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
10538 * graphite-poly.c: Change type of region from void* to sese.
10539 * graphite-poly.h (struct scop): Changing the type of scop::region
10540 from void* to sese. Change accessor macro accordingly.
10541 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
10543 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
10545 * graphite-scop-detection.c (stmt_simple_for_scop_p):
10546 Constrain only on INTEGER_TYPE.
10548 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10551 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
10552 -mefficient-unaligned-vsx on ISA 2.7.
10554 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
10555 option to a masked option.
10557 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
10558 logic for -mefficient-unaligned-vsx so that it is set via an arch
10559 ISA option, instead of being set if -mtune=power8 is set. Move
10560 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
10561 near other default option handling.
10563 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10565 * genflags.c (gen_macro): Delete.
10566 (gen_proto): Don't create GEN.*CALL.* macros.
10567 * gensupport.h (get_file_location): Declare.
10568 * gensupport.c (rtx_locs): New variable.
10569 (read_md_rtx): Record rtx locations.
10570 (get_file_location): New function.
10571 * target-insns.def (call, call_pop, call_value, call_value_pop)
10572 (sibcall, sibcall_value): New patterns.
10573 * gentarget-def.c (parse_argument): New function.
10574 (def_target_insn): Use it. Handle optional operands. Raise an
10575 error if an .md pattern has the wrong number of operands for the
10576 pattern name. Remove the names of unused operands from the prototype.
10577 * builtins.c (expand_builtin_apply): Use targetm functions
10578 instead of HAVE_call_value and GEN_CALL_VALUE.
10579 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
10580 and sibcall_value_pop.
10581 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
10583 * config/alpha/alpha.md (untyped_call): Likewise.
10584 * config/iq2000/iq2000.md (untyped_call): Likewise.
10585 * config/m68k/m68k.md (untyped_call): Likewise.
10586 * config/mips/mips.md (untyped_call): Likewise.
10587 * config/pa/pa.md (untyped_call): Likewise.
10588 * config/rs6000/rs6000.md (untyped_call): Likewise.
10589 * config/sparc/sparc.md (untyped_call): Likewise.
10590 * config/tilegx/tilegx.md (untyped_call): Likewise.
10591 * config/tilepro/tilepro.md (untyped_call): Likewise.
10592 * config/visium/visium.md (untyped_call): Likewise.
10593 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
10594 gen_call_value instead of GEN_CALL_VALUE.
10595 * config/arm/arm.md (untyped_call): Likewise.
10596 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
10599 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10601 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
10602 (have_cbranchcc4): New variable.
10603 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
10604 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
10605 (if_convert): Initialize have_cbranchcc4.
10607 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10609 * builtins.c (expand_cmpstrn): Rename to...
10610 (expand_cmpstrn_or_cmpmem): ...this.
10611 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
10612 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
10613 Remove mode argument.
10614 (expand_builtin): Update accordingly.
10616 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10618 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
10619 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
10620 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
10621 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
10622 Add predicates for operands 0 and 3.
10623 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
10625 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
10626 immediate_operand to nonmemory_operand.
10628 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10630 * df-scan.c (df_insn_info_init_fields): New function, split out
10632 (df_insn_create_insn_record): ...here.
10633 (df_insn_info_free_fields): New function, split out from...
10634 (df_insn_info_delete): ...here.
10635 (df_insn_rescan): Use the new functions instead of freeing and
10636 reallocating the df_insn_info.
10638 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10640 * doc/install.texi (Binaries): Remove links no longer valid.
10642 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10644 * config/nvptx/mkoffload.c (process): Replace
10645 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
10647 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
10650 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
10652 2015-08-24 Renlin Li <renlin.li@arm.com>
10654 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
10655 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
10656 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
10657 * config/arm/constraints.md ("j"): Add check for high code.
10659 2015-08-24 Tom de Vries <tom@codesourcery.com>
10661 PR tree-optimization/65468
10662 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
10665 2015-08-24 Nathan Sidwell <nathan@acm.org>
10667 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
10668 change to nvptx_type_from_mode call. Use arg_promotion for both
10669 split and non-split args.
10671 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10673 * target-insns.def (movstr): New pattern.
10674 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
10675 (expand_movstr): Use targetm rather than HAVE_movstr/
10678 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10680 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
10683 2015-08-24 Andrew Pinski <apinski@cavium.com>
10685 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
10686 AARCH64_EXTRA_TUNING_OPTION.
10687 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
10689 (aarch64_extra_tuning_flags): Base the shifted value on the index
10690 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
10691 * config/aarch64/aarch64.c: Remove the last argument to
10692 AARCH64_EXTRA_TUNING_OPTION.
10694 2015-08-23 Nathan Sidwell <nathan@acm.org>
10696 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
10698 (nvptx_declare_function_name): Insert formatting tabs for
10701 2015-08-23 Tom de Vries <tom@codesourcery.com>
10703 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
10704 parm_decl, rather than generating a dummy default def in cfun.
10705 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
10706 ssa_name from cfun and child_fn do not share a stmt as def stmt.
10707 (move_stmt_op): Handle PARM_DECl.
10708 (gather_ssa_name_hash_map_from): New function.
10709 (move_sese_region_to_fn): Add default defs for function params, and add
10710 them to vars_map. Release copied ssa names.
10711 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
10713 2015-08-23 Tom de Vries <tom@codesourcery.com>
10715 * doc/sourcebuild.texi: Rename vect_no_int_max with
10716 vect_no_int_min_max. Update description.
10718 2015-08-22 Andrew Pinski <apinski@cavium.com>
10720 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
10721 * config/aarch64/aarch64-protos.h
10722 (aarch64_fusion_pairs_index): New enum.
10723 (aarch64_fusion_pairs): Base the shifted value on the index instead
10724 Rewrite AARCH64_FUSE_ALL to be based on the end index.
10725 of the argument to AARCH64_FUSION_PAIR.
10726 * config/aarch64/aarch64.c: Remove the last argument to
10727 AARCH64_FUSION_PAIR.
10729 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
10731 * dominance.c (new_zero_array): Define.
10732 (dom_info): Redefine as class with proper encapsulation.
10733 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
10735 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
10736 allocations/deallocations. Pass function as parameter (instead of
10738 (dom_info::get_idom): Define accessor method.
10739 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
10740 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
10741 (calculate_dominance_info): Adjust to use dom_info class.
10742 (verify_dominators): Likewise.
10744 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
10746 * print-rtl.c (print_rtx): Check the correct range for
10747 flag_dump_unnumbered_links to behave as documented.
10749 PR rtl-optimization/67227
10750 PR rtl-optimization/64164
10751 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
10752 (nonoverlapping_memrefs_p): Test offsets and sizes when given
10753 identical gimple_reg exprs.
10755 2015-08-21 Nathan Sidwell <nathan@acm.org>
10757 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
10759 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
10760 crtl->stack_alignment_needed to determine alignment.
10761 (nvptx_get_drap_rtx): New.
10762 (TARGET_GET_DRAP_RTX): Override.
10763 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
10765 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10767 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
10769 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10771 * configure.ac: Remove uwin* cases.
10772 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
10773 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
10774 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
10775 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
10776 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
10777 i[34567]86-*-uwin*, powerpc-*-beos*.
10779 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
10781 * gencodes.c (gencodes): Print the comma for the preceding
10782 enum value rather than the current one. Use aliased enum values
10783 rather than #defines for compiled-out patterns.
10784 (main): Update accordingly. Replace LAST_INSN_CODE with
10786 * lra.c (insn_code_data): Update accordingly.
10787 (finish_insn_code_data_once, get_static_insn_data): Likewise.
10788 * recog.h (target_recog): Likewise.
10789 (preprocess_insn_constraints): Change parameter to unsigned int.
10790 * recog.c (preprocess_insn_constraints): Likewise.
10791 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
10792 * tree-vect-stmts.c (vectorizable_operation): Simplify.
10794 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
10796 PR rtl-optimization/61657
10797 * loop-iv.c (iv_number_of_iterations): Declare up and down as
10798 unsigned. Remove superflous uint64_t cast.
10800 2014-08-21 Felix Yang <felix.yang@huawei.com>
10801 Jiji Jiang <jiangjiji@huawei.com>
10803 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
10804 argument and get builtin function code directly from CALL.
10805 (gimple_stringop_fixed_value): Modified accordingly.
10806 (gimple_stringops_transform, gimple_stringops_values_to_profile):
10807 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
10809 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
10811 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
10813 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10815 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
10817 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
10818 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
10819 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
10820 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
10821 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
10822 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
10823 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
10824 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
10825 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
10826 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
10828 * match.pd (SIN ) : New Operator.
10829 (TAN) : New Operator.
10830 (mult (SQRT@1 @0) @1) : New simplifier.
10831 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
10832 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10833 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10834 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
10835 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
10836 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
10837 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
10838 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
10839 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
10840 (rdiv @0 (POW:s @1 @2)) : New simplifier.
10842 2015-08-21 Bin Cheng <bin.cheng@arm.com>
10844 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
10845 loop if EXPR is simplified to const value.
10847 2015-08-21 Yury Gribov <y.gribov@samsung.com>
10849 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10850 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10852 2015-08-21 Richard Biener <rguenther@suse.de>
10854 PR middle-end/67285
10855 * gimple-fold.c (replace_stmt_with_simplification): Assert
10856 seq is empty when replacing a call with itself but different
10858 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10859 a call require that it is const.
10861 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10863 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10864 * builtins.c (get_object_alignment_2): Adjust.
10865 * varasm.c (align_variable): Likewise.
10866 (get_variable_align): Likewise.
10867 (build_constant_desc): Likewise.
10868 (force_const_mem): Likewise.
10869 * doc/tm.texi.in: Likewise.
10870 * doc/tm.texi: Regenerate.
10872 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10874 * genconfig.c (main): Always define HAVE_cc0.
10875 * recog.c (rest_of_handle_peephole2): Adjust.
10877 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10879 * reorg.c (relax_delay_slots): Don't use #if to check value of
10882 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10884 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10885 * targhooks.c (default_have_conditional_execution): Adjust.
10887 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10889 * rtl.h (rtvec_all_equal_p): Declare.
10890 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10891 * rtl.c (rtvec_all_equal_p): New function.
10892 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10893 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10894 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10895 * config/arm/arm.c (neon_vdup_constant): Likewise.
10896 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10897 * config/tilegx/constraints.md (W, Y): Likewise.
10898 * config/tilepro/constraints.md (W, Y): Likewise.
10899 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10900 (classify_immediate): Use unwrap_const_vec_duplicate.
10901 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10902 (reg_or_v2s8bit_operand): Likewise.
10903 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10904 (reg_or_v4s8bit_operand): Likewise.
10906 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10908 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10909 (vec_shasigma_be): New #define.
10910 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10911 (VPMSUMH): Likewise.
10912 (VPMSUMW): Likewise.
10913 (VPMSUMD): Likewise.
10914 (VPMSUM): New BU_P8V_OVERLOAD_2.
10915 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10916 entries for VEC_MADD and VEC_VPMSUM.
10918 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
10920 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10921 Multiply argument avr_n_flash by 64 to match unit of "KiB".
10922 (avr_pgm_check_var_decl): Same.
10924 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
10926 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10927 initialization of HFmode scalar type (float16_t) to...
10928 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10931 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10933 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10934 having an -mfp16-format.
10936 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10938 * config/i386/predicates.md (vector_all_ones_operand): Use
10939 CONSTM1_RTX to simplify definition.
10941 2015-08-20 Richard Biener <rguenther@suse.de>
10943 * toplev.c (compile_file): Remove loop calling late_global_decl
10945 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10946 on decls we assembled.
10948 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
10950 * common/config/aarch64/aarch64-common.c
10951 (AARCH64_CPU_NAME_LENGTH): Delete.
10952 (aarch64_option_extension): New.
10953 (all_extensions): Likewise.
10954 (processor_name_to_arch): Likewise.
10955 (arch_to_arch_name): Likewise.
10957 (all_architectures): Likewise.
10958 (aarch64_get_extension_string_for_isa_flags): Likewise.
10959 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10960 architecture names.
10961 * config/aarch64/aarch64-protos.h
10962 (aarch64_get_extension_string_for_isa_flags): New.
10963 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10964 (aarch64_option_print): Get the string to print from
10965 aarch64_get_extension_string_for_isa_flags.
10966 (aarch64_declare_function_name): Likewise.
10967 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10968 (MCPU_TO_MARCH_SPEC): This.
10969 (ASM_CPU_SPEC): Use it.
10970 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10971 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10972 (EXTRA_SPEC_FUNCTIONS): Use it.
10974 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
10976 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10977 expansion when !ISA_HAS_LWL_LWR.
10978 (mips_block_move_straight): Update the size of elements copied to
10979 account for alignment when !ISA_HAS_LWL_LWR.
10980 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10982 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10984 * expr.c (expand_expr_real_2): Check gimple statement during
10985 LSHIFT_EXPR expand.
10987 2015-08-19 Magnus Granberg <zorry@gentoo.org>
10989 * common.opt (fstack-protector): Initialize to -1.
10990 (fstack-protector-all): Likewise.
10991 (fstack-protector-strong): Likewise.
10992 (fstack-protector-explicit): Likewise.
10993 * configure.ac: Add --enable-default-ssp.
10994 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
10995 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10997 * doc/install.texi: Document --enable-default-ssp.
10998 * config.in: Regenerated.
10999 * configure: Likewise.
11001 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
11003 PR rtl-optimization/64164
11004 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11005 (parm_in_stack_slot_p): ... this. Disregard mode, what
11006 matters is whether the parm will live in a pseudo or a stack
11008 (expand_one_ssa_partition): Deal with params without a default
11009 def. Disregard mode.
11010 * cfgexpand.h: Renamed function declaration.
11011 * tree-ssa-coalesce.c: Adjust.
11012 * function.c (split_complex_args): Allocate stack slot for
11013 unassigned parms before splitting.
11014 (parm_in_unassigned_mem_p): New. Use it instead of
11015 parm_maybe_byref_p throughout this file.
11016 (assign_parm_setup_block): Use it. Accept pseudos in the
11017 expand-assigned rtl.
11018 (assign_parm_setup_reg): Drop BLKmode requirement.
11019 (assign_parm_setup_stack): Allocate and fill in the address of
11020 unassigned MEM parms.
11022 2015-08-19 David Sherwood <david.sherwood@arm.com>
11024 * genmodes.c (emit_mode_unit_size_inline): New function.
11025 (emit_mode_unit_precision_inline): New function.
11026 (emit_insn_modes_h): Emit new #define. Emit new functions.
11027 (emit_mode_unit_size): New function.
11028 (emit_mode_unit_precision): New function.
11029 (emit_mode_adjustments): Add mode_unit_size adjustments.
11030 (emit_insn_modes_c): Emit new arrays.
11031 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11032 use new inline methods.
11034 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11036 * config/aarch64/aarch64.c (bit_count): Delete prototype
11038 (aarch64_print_operand): Use popcount_hwi instead of the above.
11040 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11042 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11045 2015-08-19 Marek Polacek <polacek@redhat.com>
11047 PR middle-end/67133
11048 * gimple-ssa-isolate-paths.c
11049 (insert_trap_and_remove_trailing_statements): Rename to ...
11050 (insert_trap): ... this. Don't remove trailing statements; split
11052 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11054 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
11057 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11058 conditionalize the whole on __GNUC__. Add fallback code
11059 depending neither on undefined nor implementation-defined behaviour.
11061 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11063 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11064 whitespaces with tab.
11066 2015-08-19 Florian Weimer <fweimer@redhat.com>
11068 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11069 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11070 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11071 Move Name_Ids instantiation to the Prj.Proc package, to avoid
11074 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11076 * config/arm/arm.c (bounds_check): Use %wd print format
11077 for HOST_WIDE_INT arguments.
11079 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
11081 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11082 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11083 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11084 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11085 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11086 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11087 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11088 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11089 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11092 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
11094 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11095 function.c, graphite-scop-detection.c, haifa-sched.c,
11096 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11097 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11098 varasm.c: Remove typedefs of structs.
11100 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11102 * config/rs6000/altivec.h (vec_adde): New define.
11103 (vec_addec): Likewise.
11104 (vec_double): Likewise.
11105 (vec_bperm): Likewise.
11106 (vec_gb): Likewise.
11107 * config/rs6000/rs6000-builtin.def (ADDE): New
11108 BU_ALTIVEC_OVERLOAD_3.
11110 (DOUBLE): New BU_VSX_OVERLOAD_1.
11111 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
11112 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
11113 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
11114 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
11115 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
11116 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
11117 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
11118 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
11119 and P8V_BUILTIN_VEC_VBPERMQ.
11121 2015-08-18 Jason Merrill <jason@redhat.com>
11123 * print-tree.c (print_node): Handle TREE_BINFO.
11125 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11127 PR middle-end/36757
11128 * builtins.c (expand_builtin_signbit): Add asserts to make sure
11129 we can expand BUILT_IN_SIGNBIT inline.
11130 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
11131 * doc/extend.texi: Document the type-generic __builtin_signbit.
11133 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
11135 PR rtl-optimization/67218
11136 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
11137 (simplify_unary_operation_1): Use it.
11139 2015-08-18 Marek Polacek <polacek@redhat.com>
11141 PR middle-end/67222
11142 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
11143 if the call isn't valid.
11144 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
11145 gimple_call_builtin_p.
11146 (call_may_clobber_ref_p_1): Likewise.
11147 (stmt_kills_ref_p): Likewise.
11149 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
11151 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
11152 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
11153 (mips_hard_regno_scratch_ok): Likewise.
11154 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
11155 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
11157 2015-08-18 Bin Cheng <bin.cheng@arm.com>
11159 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
11160 (determine_value_range): Call refine_value_range_using_guard for
11161 each loop initial condition to improve value range.
11163 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
11165 * config/i386/i386.c: Remove include of fibheap.h.
11167 2015-08-17 Richard Biener <rguenther@suse.de>
11169 PR tree-optimization/67221
11170 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
11171 (sccvn_dom_walker::before_dom_children): Mark backedges of
11172 non-executable blocks as not executable.
11174 2015-08-17 David Sherwood <david.sherwood@arm.com>
11176 * config/arm/arm.c (neon_element_bits): Replace call to
11177 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
11178 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
11179 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
11180 (neon_vdup_lane<mode>): Likewise.
11181 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
11182 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
11183 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
11184 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
11185 * config/spu/spu.c (arith_immediate_p): Likewise.
11186 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11187 * expr.c (expand_expr_real_2): Likewise.
11188 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
11189 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11190 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11191 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
11193 * fold-const.c (fold_binary_loc): Replace call to
11194 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
11195 GET_MODE_UNIT_PRECISION (m).
11197 2015-08-17 Mike Stump <mikestump@comcast.net>
11199 * config/arm/arm.c (arm_block_move_unaligned_straight):
11200 Emit normal move instead of unaligned load when source or destination
11201 are appropriately aligned.
11203 2015-08-17 Richard Biener <rguenther@suse.de>
11204 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11206 PR middle-end/16107
11207 * match.pd (div (coss (op @0) : New simplifier.
11209 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
11211 PR rtl-optimization/64164
11213 PR middle-end/66983
11214 PR rtl-optimization/67000
11215 PR middle-end/67034
11216 PR middle-end/67035
11217 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11218 * tree-ssa-copyrename.c: Removed.
11219 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11220 -ftree-coalesce-vars.
11221 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11222 * common.opt (ftree-copyrename): Ignore.
11223 (ftree-coalesce-inlined-vars): Likewise.
11224 * doc/invoke.texi: Remove the ignored options above.
11225 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11226 * tree-ssa-coalesce.h: ... here.
11227 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11228 headers required by it.
11229 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11230 across variables when flag_tree_coalesce_vars. Check register
11231 use and promoted modes to allow coalescing. Do not coalesce
11232 maybe-byref parms with SSA_NAMEs of other variables, or
11233 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
11234 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11235 with its member functions to tree-ssa-coalesce.c.
11236 (var_map_base_init): Likewise. Renamed to
11237 compute_samebase_partition_bases.
11238 (partition_view_normal): Drop want_bases parameter.
11239 (partition_view_bitmap): Likewise.
11240 * tree-ssa-live.h: Adjust declarations.
11241 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
11242 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11243 default defs at the entry point.
11244 (dump_part_var_map): New.
11245 (compute_optimized_partition_bases): New, called by...
11246 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11247 of compute_samebase_partition_bases. Adjust.
11248 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11249 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
11250 (ssa_default_def_partition): New.
11251 (get_rtl_for_parm_ssa_default_def): New.
11252 (align_local_variable, add_stack_var): Support anonymous SSA
11254 (defer_stack_allocation): Likewise. Declare earlier.
11255 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11256 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11257 Do no record deferred-allocation marker in
11258 SA.partition_to_pseudo.
11259 (expand_stack_vars): Adjust check for the marker in it.
11260 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11261 redundant MEM attr setting.
11262 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11264 (expand_one_stack_var): ... this. New wrapper to check and
11265 skip already expanded SSA partitions.
11266 (record_alignment_for_reg_var): New, factored out of...
11267 (expand_one_var): ... this.
11268 (expand_one_ssa_partition): New.
11269 (adjust_one_expanded_partition_var): New.
11270 (expand_one_register_var): Check and skip already expanded SSA
11272 (expand_used_vars): Don't create DECLs for anonymous SSA
11273 names. Expand all SSA partitions, then adjust all SSA names.
11274 (pass::execute): Replace the loops that set
11275 SA.partition_to_pseudo from partition leaders and cleared
11276 DECL_RTL for multi-location variables, and that which used to
11277 rename vars and set attrs, with one that clears DECL_RTL and
11278 checks that PARMs and RESULTs default_defs match DECL_RTL.
11279 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11280 * emit-rtl.c: Include stor-layout.h.
11281 (set_reg_attrs_for_parm): Handle NULL decl.
11282 (set_reg_attrs_for_decl_rtl): Take mode from expression if
11284 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
11285 rather than its possibly-NULL DECL.
11286 * explow.c (promote_ssa_mode): New.
11287 * explow.h (promote_ssa_mode): Declare.
11288 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11289 (read_complex_part): Export.
11290 * expr.h (read_complex_part): Declare.
11291 * cfgexpand.h (parm_maybe_byref_p): Declare.
11292 * function.c: Include cfgexpand.h.
11293 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11294 (use_register_for_parm_decl): Wrapper for the above to
11295 special-case the result_ptr.
11296 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11297 (split_complex_args): Take assign_parm_data_all argument.
11298 Pass it to rtl_for_parm. Set up rtl and context for split
11299 args. Reset complex parm before fetching its default decl
11301 (assign_parms_unsplit_complex): Use the default-def complex
11302 parm rtl if it matches the components.
11303 (assign_parms_augmented_arg_list): Adjust.
11304 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11305 multiple locations. Recognize split complex args.
11306 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11307 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11308 (assign_parm_setup_block): Prefer SSA-assigned location, and
11309 fill in its address if the memory location of a maybe-byref
11310 parm was not assigned by cfgexpand.
11311 (assign_parm_setup_reg): Likewise. Adjust its mode as
11312 needed. Use entry_parm for equiv if stack_parm is NULL. Make
11313 sure passed_pointer parms don't need conversion. Copy address
11314 or value as needed.
11315 (assign_parm_setup_stack): Prefer SSA-assigned location.
11316 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11317 rtl before testing for pointer bounds. Special-case result_ptr.
11318 (expand_function_start): Maybe reset DECL_RTL of result.
11319 Prefer SSA-assigned location for result and static chain.
11320 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
11321 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
11322 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11323 anonymous SSA names. Use promote_ssa_mode.
11324 (get_temp_reg): Likewise.
11325 (remove_ssa_form): Adjust.
11326 * stor-layout.c (layout_decl): Don't set mem attributes of
11328 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11329 and get its reg_usage for reg invalidation.
11330 (compute_bb_dataflow): Pass it insn.
11331 (emit_notes_in_bb): Likewise.
11333 2015-08-14 Marek Polacek <polacek@redhat.com>
11335 * tree-core.h (tree_base): Fix typo.
11337 2015-08-14 Marek Polacek <polacek@redhat.com>
11339 PR middle-end/67133
11340 * gimple.c (infer_nonnull_range_by_attribute): Check that the
11341 nonnull argument position is not outside function arguments.
11343 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
11346 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
11347 'lconst_atomic' with 'const_atomic'.
11348 (atomic_fetch_<optab><mode>): Likewise.
11349 (atomic_<optab>_fetch<mode>): Likewise.
11350 * config/aarch64/iterators.md (lconst-atomic): Move below
11352 (const_atomic): New.
11354 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
11355 Bernd Schmidt <bernds@codesourcery.com>
11357 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
11359 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
11360 (DWARF2_DEBUGGING_INFO): Don't define.
11361 * debug.h (dwarf2_lineno_debug_hooks): Declare.
11362 * toplev.c (process_options): Add a case for it.
11363 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
11364 (dwarf2out_init): Skip most initializations if
11365 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
11367 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
11368 DWARF2_LINENO_DEBUGGING_INFO.
11369 * opts.c (set_debug_level): Likewise.
11371 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
11373 * config/arm/types.md (is_neon_type): Add missing types.
11375 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
11377 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
11379 * config/i386/i386.c (PTA_SKYLAKE): New macros.
11380 (processor_alias_table): Add skylake description.
11381 (enum processor_model): Add skylake processor.
11382 (arch_names_table): Add skylake record.
11383 * doc/invoke.texi: Add skylake item.
11385 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
11387 * ira-int.h: Include recog.h.
11388 * ira-build.c: Don't include recog.h.
11389 * ira-color.c: Likewise.
11390 * ira-conflicts.c: Likewise.
11391 * ira-costs.c: Likewise.
11392 * ira-emit.c: Likewise.
11393 * ira-lives.c: Likewise.
11395 * sched-deps.c: Likewise.
11396 * sel-sched.c: Likewise.
11397 * target-globals.c: Likewise.
11399 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
11402 * reload1.c (elimination_costs_in_insn): Make it obvious to the
11403 compiler that the n_dups and n_operands loop bounds are invariant.
11405 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11407 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
11408 expressions in A and B.
11410 2015-08-13 Richard Biener <rguenther@suse.de>
11412 * tree.c (nonnull_arg_p): Move from ...
11413 * tree-vrp.c (nonnull_arg_p): ... here.
11414 * tree.h (nonnull_arg_p): Declare.
11415 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
11416 here, register ptr != 0 for nonnull_arg_p pointer arguments.
11417 Properly initialize static chain and by-reference result pointer.
11418 (run_scc_vn): Adjust.
11420 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
11422 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
11425 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
11427 * config/aarch64/aarch64-protos.h
11428 (aarch64_gen_atomic_cas): Declare.
11429 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
11430 Choose appropriate instruction pattern for the target.
11431 (aarch64_gen_atomic_cas): New.
11432 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
11433 (atomic_compare_and_swap<mode>_1): Rename to
11434 aarch64_compare_and_swap<mode>. Fix some indentation.
11435 (aarch64_compare_and_swap<mode>_lse): New.
11436 (aarch64_atomic_cas<mode>): New.
11438 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
11440 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
11443 2015-08-13 Richard Biener <rguenther@suse.de>
11445 PR tree-optimization/67191
11446 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
11447 assert we value-numbered last stmts operand because it can validly
11448 trigger for unreachable code.
11450 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11452 PR rtl-optimization/67103
11453 * ifcvt.c (noce_try_store_flag_constants): Move
11454 x = (-(test != 0) & (b - a)) + a transformation to...
11455 (noce_try_cmove): ... Here. Try it if normal conditional
11458 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
11460 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
11462 * config/mips/mips.md (processor): Remove w32 and w64.
11464 2015-08-13 Richard Biener <rguenther@suse.de>
11466 PR tree-optimization/66502
11467 PR tree-optimization/67167
11468 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
11469 backedge arguments.
11470 (vn_phi_lookup): Adjust.
11471 (vn_phi_insert): Likewise.
11472 (visit_phi): Prefer to value-number to another PHI node
11473 over value-numbering to a PHI argument.
11474 (init_scc_vn): Mark DFS back edges.
11476 2015-08-13 Richard Biener <rguenther@suse.de>
11478 * gimple.h (gcall::code_): New constant static member.
11479 (gcond::code_): Likewise.
11480 * gimple.c (gcall::code_): Define.
11481 (gcond::code_): Likewise.
11482 (is_a_helper <const gcond *>): Add.
11483 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
11484 and forward to a new gcall overload with less checking and a
11485 cheaper way to access the operand.
11486 (gimple_call_lhs_ptr): Likewise.
11487 (gimple_call_set_lhs): Likewise.
11488 (gimple_call_internal_p): Likewise.
11489 (gimple_call_with_bounds_p): Likewise.
11490 (gimple_call_set_with_bounds): Likewise.
11491 (gimple_call_internal_fn): Likewise.
11492 (gimple_call_set_ctrl_altering): Likewise.
11493 (gimple_call_ctrl_altering_p): Likewise.
11494 (gimple_call_fntype): Likewise.
11495 (gimple_call_fn): Likewise.
11496 (gimple_call_fn_ptr): Likewise.
11497 (gimple_call_set_fndecl): Likewise.
11498 (gimple_call_fndecl): Likewise.
11499 (gimple_call_chain): Likewise.
11500 (gimple_call_num_args): Likewise.
11501 (gimple_call_arg): Likewise.
11502 (gimple_call_arg_ptr): Likewise.
11503 (gimple_call_set_arg): Likewise.
11504 (gimple_call_noreturn_p): Likewise.
11505 (gimple_cond_code): Likewise.
11506 (gimple_cond_lhs): Likewise.
11507 (gimple_cond_rhs): Likewise.
11508 (gimple_has_lhs): Reduce checking.
11510 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11512 PR middle-end/25529
11513 * match.pd (div (mult @0 @1) @1) : New simplifier.
11515 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11518 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
11519 predicate to allow construction of vector constants using the
11520 VSLDOI vector shift instruction.
11522 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
11525 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
11526 the number of bytes to be shifted left and filled in with either
11527 all zero or all one bits.
11528 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
11530 (output_vec_const_move): On power8, generate XXLORC to generate
11531 a vector constant with all 1's. Do a split if we need to use a
11532 VSLDOI instruction.
11534 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
11535 properly test for the MSB.
11537 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
11538 vector constants that can be created with VSLDOI.
11540 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
11543 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11544 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11545 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11546 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11547 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11548 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11549 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11550 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11551 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11553 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
11555 * config/xtensa/constraints.md (define_constraint "Y"): New
11557 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
11558 * config/xtensa/linux.h (ASM_SPEC): Likewise.
11559 * config/xtensa/predicates.md (move_operand): Match constants
11560 and symbols in the presence of TARGET_AUTO_LITPOOLS.
11561 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
11562 immediate references to TLS data.
11563 (xtensa_emit_move_sequence): Don't force constants to memory in
11564 the presence of TARGET_AUTO_LITPOOLS.
11565 (print_operand): Add 'y' format, same as default, but capable of
11566 printing SF mode constants as well.
11567 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
11568 (movsf_internal): Add movi pattern that loads literal.
11569 (movsf, movdf): Don't force constants to memory in the presence
11570 of TARGET_AUTO_LITPOOLS.
11571 (movdf_internal): Add 'Y' constraint.
11572 * config/xtensa/xtensa.opt (mauto-litpools): New option.
11573 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
11575 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
11577 * config/arm/arm-fpus.def: Replace booleans with feature flags.
11579 * config/arm/arm.c (ARM_FPU): Update macro.
11580 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
11581 (TARGET_FP16): Likewise.
11582 (TARGET_CRYPTO): Likewise.
11583 (TARGET_NEON): Likewise.
11584 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
11587 2015-08-12 Tom de Vries <tom@codesourcery.com>
11591 * doc/install.texi: Remove --with_host_libstdcxx item. Update
11592 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
11593 accordingly. Mention default for --with-stage1-ldflags.
11595 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
11597 * config/arm/arm.h (arm_fpu_feature_set): New.
11598 (ARM_FPU_FSET_HAS): New.
11599 (FPU_FL_NONE): New.
11600 (FPU_FL_NEON): New.
11601 (FPU_FL_FP16): New.
11602 (FPU_FL_CRYPTO): New.
11604 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11606 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
11607 after -mcmodel=large -fPIC sorry.
11609 2015-08-12 Richard Biener <rguenther@suse.de>
11611 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
11612 comparison operand order and commutative ternary op operand order.
11613 (sccvn_dom_walker::cond_stack): New state to track temporary
11615 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
11617 (sccvn_dom_walker::record_cond): Add a single temporary conditional
11619 (sccvn_dom_walker::record_conds): Add a temporary conditional
11620 expressions and all related expressions also true/false.
11621 (sccvn_dom_walker::before_dom_children): Record temporary
11622 expressions based on the controlling condition of a single
11623 predecessor. When trying to simplify a conditional statement
11624 lookup expressions we might have inserted earlier.
11626 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
11629 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
11630 to ARM core registers.
11632 2015-08-12 Nathan Sidwell <nathan@acm.org>
11634 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
11635 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
11637 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
11639 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
11640 line with comments.
11641 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
11643 2015-08-12 Richard Biener <rguenther@suse.de>
11645 * gimple.h (remove_pointer): New trait.
11646 (GIMPLE_CHECK2): New inline template function.
11647 (gassign::code_): New constant static member.
11648 (is_a_helper<const gassign *>): Add.
11649 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
11650 and forward to a new gassign overload with less checking and a
11651 cheaper way to access the operand.
11652 (gimple_assign_lhs_ptr): Likewise.
11653 (gimple_assign_set_lhs): Likewise.
11654 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
11656 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
11658 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
11660 (gimple_assign_rhs_code): Likewise.
11661 * gimple.c (gassign::code_): Define.
11663 2015-08-12 Richard Biener <rguenther@suse.de>
11665 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11666 Eliminate edges marked as not executable by SCCVN.
11667 * tree-ssa-sccvn.c: Include gimple-iterator.h.
11668 (cond_dom_walker): Rename to sccvn_dom_walker.
11669 (sccvn_dom_walker::before_dom_children): Value-number defs
11671 (run_scc_vn): Remove loop value-numbering all SSA names.
11672 Drop not visited SSA names to varying.
11674 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
11676 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11677 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11678 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11679 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11680 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11681 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11682 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11683 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11684 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11686 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
11689 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
11690 to enum feature_priority and feature_list.
11691 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
11692 and isa_names_table.
11694 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
11696 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
11697 vect_induction_def.
11699 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11703 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
11704 account when deciding what was the command-line status.
11706 2015-08-11 Nathan Sidwell <nathan@acm.org>
11708 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
11710 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
11711 we're not the only contributor to target phi.
11713 2015-08-11 Jiong Wang <jiong.wang@arm.com>
11715 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
11718 2015-08-11 Tom de Vries <tom@codesourcery.com>
11720 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
11722 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
11724 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
11726 * config/i386/i386.md (cpu): Remove knl.
11728 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
11731 PR middle-end/66332
11732 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
11733 open-coded sequence.
11734 * omp-low.c (oacc_process_reduction_data): Remove handline of
11735 GOMP_DEVICE_HOST_NONSHM.
11737 * lto-streamer-in.c (lto_input_mode_table): Adjust to
11738 GET_MODE_INNER changes.
11740 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
11741 Ilya Verbin <ilya.verbin@intel.com>
11743 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
11745 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11747 * doc/options.texi (EnabledBy): Document that the argument must be
11749 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
11750 Not enabled by -Wall.
11751 * optc-gen.awk: Give nicer error messages. Detect if the argument
11752 of EnabledBy is not a Common option.
11753 * common.opt (Wnull-dereference): Not enabled by -Wall.
11754 * opt-functions.awk (lang_enabled_by): Nicer error messages.
11756 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
11758 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
11759 model == 0x4f as Broadwell.
11761 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
11763 PR rtl-optimization/67028
11764 * combine.c (simplify_comparison): Fix comment. Rearrange code.
11765 Add test to see if a const_int fits in the new mode.
11767 2015-08-07 DJ Delorie <dj@redhat.com>
11769 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
11771 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
11773 PR rtl-optimization/67029
11774 * ira-color.c: Include "recog.h" before including "ira-int.h".
11775 * target-globals.c: Likewise.
11776 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
11777 adds an alternative_mask argument and use it instead of
11778 preferred_alternatives.
11779 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
11780 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
11781 * sched-deps.c: Include "ira-int.h" after including "ira.h".
11782 (sched_analyze_insn): Update call to
11783 ira_implicitly_set_insn_hard_regs.
11784 * sel-sched.c: Include "ira-int.h" after including "ira.h".
11785 (implicit_clobber_conflict_p): Update call to
11786 ira_implicitly_set_insn_hard_regs.
11788 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11790 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
11792 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
11795 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
11796 currently_expanding_to_rtl is set.
11798 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
11800 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
11801 * configure: Regenerate.
11803 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11804 Jiong Wang <jiong.wang@arm.com>
11806 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11807 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11808 (REG_CLASS_NAMES): Likewise.
11809 (REG_CLASS_CONTENTS): Likewise.
11810 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11811 (aarch64_register_move_cost): Likewise.
11812 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11814 * config/aarch64/constraints.md (Uc0): New constraint.
11816 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11818 * config/aarch64/constraints.md (Usf): Add the test of
11819 aarch64_is_noplt_call_p.
11821 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11823 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
11825 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
11826 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
11827 (call_symbol): Likewise.
11829 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11831 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
11832 for vectorizing multiplication patterns.
11833 * tree-vectorizer.h: Adjust the number of patterns.
11835 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11837 * config/i386/sse.md (*vec_concatv2df): Declare added
11838 alternatives as sselog type.
11840 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11842 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
11845 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11847 * config/s390/s390.c (s390_expand_tbegin): Expand either
11848 tbegin_1_z13 or tbegin_1 depending on VX flag.
11849 * config/s390/s390.md ("tbegin_1_z13"): New expander.
11851 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11853 * config/s390/s390.opt: Clarify description for -mzvector
11854 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11857 2015-08-06 Richard Biener <rguenther@suse.de>
11859 * gimple.h (gimple_call_set_fn): Access op member directly.
11860 (gimple_call_chain_ptr): Likewise.
11861 (gimple_call_set_chain): Likewise.
11862 (gimple_cond_lhs_ptr): Likewise.
11863 (gimple_cond_set_lhs): Likewise.
11864 (gimple_cond_rhs_ptr): Likewise.
11865 (gimple_cond_set_rhs): Likewise.
11866 (gimple_cond_true_label): Likewise.
11867 (gimple_cond_set_true_label): Likewise.
11868 (gimple_cond_set_false_label): Likewise.
11869 (gimple_cond_false_label): Likewise.
11870 (gimple_label_label): Likewise.
11871 (gimple_label_set_label): Likewise.
11872 (gimple_goto_set_dest): Likewise.
11873 (gimple_asm_input_op): Likewise.
11874 (gimple_asm_input_op_ptr): Likewise.
11875 (gimple_asm_set_input_op): Likewise.
11876 (gimple_asm_output_op): Likewise.
11877 (gimple_asm_output_op_ptr): Likewise.
11878 (gimple_asm_set_output_op): Likewise.
11879 (gimple_asm_clobber_op): Likewise.
11880 (gimple_asm_set_clobber_op): Likewise.
11881 (gimple_asm_label_op): Likewise.
11882 (gimple_asm_set_label_op): Likewise.
11883 (gimple_switch_index): Likewise.
11884 (gimple_switch_index_ptr): Likewise.
11885 (gimple_return_retval_ptr): Likewise.
11886 (gimple_return_retval): Likewise.
11887 (gimple_return_set_retval): Likewise.
11888 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
11889 (gimple_switch_label): Likewise.
11890 (gimple_switch_set_label): Likewise.
11892 2015-08-06 Richard Biener <rguenther@suse.de>
11894 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11895 bool comparison canonicalization and restrict to integers.
11897 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
11899 * coretypes.h (enum symbol_visibility): Relocate here.
11900 * flag-types.h (enum symbol_visibility): Remove.
11901 * tree-core.h (enum symbol_visibility): Remove.
11903 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
11906 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11907 for no_split_stack function attribute along with
11909 (rs6000_expand_split_stack_prologue): Likewise.
11911 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11912 Jeff Law <law@redhat.com>
11915 * doc/invoke.texi (Wnull-dereference): New.
11916 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11917 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11918 Warn for potential NULL dereferences.
11919 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11920 * ubsan.c (instrument_nonnull_arg): Call
11921 infer_nonnull_range_by_attribute.
11922 (instrument_nonnull_return): Likewise.
11923 * common.opt (Wnull-dereference); New.
11924 * gimple.c (infer_nonnull_range): Remove bool arguments.
11925 (infer_nonnull_range_by_dereference): New.
11926 (infer_nonnull_range_by_attribute): New.
11927 * gimple.h: Update declarations.
11929 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11931 * gensupport.c (sequence_num): Replace with...
11932 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11933 ...these new variables.
11934 (init_rtx_reader_args_cb): Update accordingly.
11935 (get_num_code_insns): Likewise.
11936 (read_md_rtx): Rework to use a while loop and get_c_test.
11937 Use the new counters. Remove redundant DEFINE_SUBST case.
11938 * genoutput.c (gen_split): Delete.
11939 (main): Don't call it.
11941 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11943 * gensupport.h (get_c_test): Declare.
11944 * gensupport.c (get_c_test): New function.
11945 * genconditions.c (main): Use it.
11946 * genrecog.c (validate_pattern): Likewise.
11947 (match_pattern_1): Likewise. Remove c_test argument.
11948 (match_pattern): Update accordingly and remove c_test argument.
11949 (main): Update accordingly.
11951 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11953 * gensupport.h (get_num_insn_codes): Declare.
11954 * gensupport.c (get_num_insn_codes): New function.
11955 * genattrtab.c (optimize_attrs): Rename max_insn_code to
11957 (main): Likewise. Use get_num_insn_codes.
11958 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11960 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11962 PR middle-end/66311
11963 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11964 is zero- rather than sign-extended.
11966 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11968 * target-insns.def (can_extend): Delete.
11970 2015-08-05 Richard Biener <rguenther@suse.de>
11972 PR tree-optimization/67121
11973 * tree-if-conv.c (combine_blocks): Clear range-info produced
11974 by stmts no longer executed conditionally.
11976 2015-08-05 Nick Clifton <nickc@redhat.com>
11978 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11979 to allow identical far pointers to remain.
11981 2015-08-05 Richard Biener <rguenther@suse.de>
11983 PR middle-end/67120
11984 * match.pd: Compare address bases with == if they are decls
11985 or SSA names, not operand_equal_p. Otherwise fail.
11987 2015-08-05 Richard Biener <rguenther@suse.de>
11989 PR tree-optimization/67055
11990 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11993 * g++.dg/torture/pr67055.C: New testcase.
11995 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11997 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11999 (define_attr "enabled"): Handle avx521vl and noavx512vl.
12000 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12001 AVX-512 alternative out of SSE.
12002 (define_insn "*vec_concatv2df"): Ditto.
12004 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12006 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12007 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12008 CODE_FOR_avx_ptestv4di.
12009 * config/i386/sse.md (define_mode_iterator V_AVX): New.
12010 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12011 (define_insn "avx_ptest256"): Merge this ...
12012 (define_insn "sse4_1_ptest"): And this ...
12013 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12015 2015-08-05 Richard Biener <rguenther@suse.de>
12017 PR tree-optimization/67109
12018 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12019 against too big groups. Print whether this is a load or store
12020 group. Rename from ...
12021 (vect_analyze_group_access): ... this which is now a wrapper
12022 dissolving an invalid group.
12023 (vect_analyze_data_ref_accesses): Print whether this is a load
12026 2015-08-05 Richard Biener <rguenther@suse.de>
12028 PR middle-end/67107
12029 * match.pd: Guard const_binop result checking against NULL_TREE
12032 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12034 * cse.c (cse_insn): Restoring old behaviour for src_eqv
12035 when dest and value in the REG_EQUAL are same and dest
12036 is STRICT_LOW_PART.
12038 2015-08-04 Anatoly Sokolov <aesok@post.ru>
12040 * config/moxie/moxie.h (PRINT_OPERAND,
12041 PRINT_OPERAND_ADDRESS): Remove macros.
12042 * config/moxie/moxie-protos.h (moxie_print_operand,
12043 moxie_print_operand_address): Remove declaration.
12044 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12045 TARGET_PRINT_OPERAND_ADDRESS): Define.
12046 (moxie_print_operand, moxie_print_operand_address): Make static.
12048 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12051 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12052 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12054 2015-08-04 Richard Biener <rguenther@suse.de>
12056 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12058 (dt_operand::gen_gimple_expr): Adjust.
12060 2015-08-04 Richard Biener <rguenther@suse.de>
12062 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12063 bool compares on RHS.
12064 * match.pd: Add X ==/!= !X is false/true pattern.
12066 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
12068 * config/aarch64/aarch64.c: Change inner loop statement cost
12069 to be consistent with other targets.
12071 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
12073 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12076 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
12078 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12079 (machine_function): Remove pseudos field.
12081 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12083 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12084 Exit early and use target_option_current_node if processing current
12087 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12089 * doc/extend.texi (AArch64 Function Attributes): New node.
12090 (AArch64 Pragmas): Likewise.
12092 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12094 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12095 Initialize simd builtins if TARGET_SIMD.
12096 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12097 Make sure that the builtins are initialized only once no matter how
12098 many times the function is called.
12099 (aarch64_init_builtins): Unconditionally initialize crc builtins.
12100 (aarch64_relayout_simd_param): New function.
12101 (aarch64_simd_expand_args): Use above during argument expansion.
12102 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12103 simd builtins if TARGET_SIMD.
12104 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
12106 (aarch64_relayout_simd_types): Likewise.
12108 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12110 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
12111 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
12112 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
12113 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12115 (aarch64_reset_previous_fndecl): New function.
12116 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
12118 * config/aarch64/aarch64-c.c: New file.
12119 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
12120 Push and pop options at beginning and end. Remove ifdef
12121 __ARM_FEATURE_CRC32.
12122 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
12123 Add pragma +nothing+simd and +nothing+crypto where appropriate.
12124 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
12125 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
12127 (aarch64_register_pragmas): Likewise.
12128 (aarch64_reset_previous_fndecl): Likewise.
12129 (aarch64_process_target_attr): Likewise.
12130 (aarch64_override_options_internal): Likewise.
12132 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12134 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
12136 (aarch64_can_inline_p): Likewise.
12137 (TARGET_CAN_INLINE_P): Define.
12139 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12141 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12142 Remove static. Handle OPT_mgeneral_regs_only,
12143 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
12144 OPT_momit_leaf_frame_pointer.
12145 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
12146 (aarch64_attr_opt_type): New enum.
12147 (aarch64_attribute_info): New struct.
12148 (aarch64_handle_attr_arch): New function.
12149 (aarch64_handle_attr_cpu): Likewise.
12150 (aarch64_handle_attr_tune): Likewise.
12151 (aarch64_handle_attr_isa_flags): Likewise.
12152 (aarch64_attributes): New table.
12153 (aarch64_process_one_target_attr): New function.
12154 (num_occurences_in_str): Likewise.
12155 (aarch64_process_target_attr): Likewise.
12156 (aarch64_option_valid_attribute_p): Likewise.
12157 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12158 * config/aarch64/aarch64-protos.h: Include input.h
12159 (aarch64_handle_option): Declare prototype.
12161 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12163 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
12164 * config/aarch64/aarch64.c: Include target-globals.h
12165 (aarch64_previous_fndecl): New variable.
12166 (aarch64_set_current_function): New function.
12167 (TARGET_SET_CURRENT_FUNCTION): Define.
12169 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12171 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
12172 (explicit_arch): Likewise.
12173 (x_aarch64_isa_flags): Likewise.
12174 (mgeneral-regs-only): Mark as Save.
12175 (mfix-cortex-a53-835769): Likewise.
12176 (mcmodel=): Likewise.
12177 (mstrict-align): Likewise.
12178 (momit-leaf-frame-pointer): Likewise.
12179 (mtls-dialect): Likewise.
12180 (master=): Likewise.
12181 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
12182 (aarch64_isa_flags): Remove extern declaration.
12183 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
12184 to indicate success or failure.
12185 (aarch64_validate_march): Likewise.
12186 (aarch64_validate_mtune): Likewise.
12187 (aarch64_isa_flags): Delete.
12188 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
12189 instead of aarch64_isa_flags.
12190 (aarch64_get_tune_cpu): New function.
12191 (aarch64_get_arch): Likewise.
12192 (aarch64_override_options): Use above and set up explicit_tune_core
12194 (aarch64_print_extension): Move earlier in file. Add isa_flags
12195 argument and use that instead of the global aarch64_isa_flags.
12196 (aarch64_option_save): New function.
12197 (aarch64_option_restore): Likewise.
12198 (aarch64_option_print): Likewise.
12199 (aarch64_declare_function_name): Likewise.
12200 (aarch64_start_file): Delete.
12201 (TARGET_ASM_FILE_START): Do not define.
12202 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
12203 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
12206 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12208 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
12209 flag_omit_leaf_frame_pointer to 2.
12211 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12213 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
12215 (TARGET_FIX_ERR_A53_835769): New macro.
12216 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12217 handling of opts->x_aarch64_fix_a53_err835769.
12218 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
12219 than aarch64_fix_a53_err835769.
12220 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
12221 * config/aarch64/aarch64-linux.h: Likewise.
12223 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
12225 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
12226 ix86_expand_int_movcc as boolean.
12228 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12230 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
12231 (aarch64_cpu_string): Likewise.
12232 (aarch64_tune_string): Likewise.
12233 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
12234 (aarch64_parse_extension): Return aarch64_parse_opt_result.
12235 Add extra argument to put result into.
12236 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
12237 (aarch64_parse_cpu): Add arguments to put results into. Return
12238 aarch64_parse_opt_result.
12239 (aarch64_parse_tune): Likewise.
12240 (aarch64_override_options_after_change_1): New function.
12241 (aarch64_override_options_internal): New function.
12242 (aarch64_validate_mcpu): Likewise.
12243 (aarch64_validate_march): Likewise.
12244 (aarch64_validate_mtune): Likewise.
12245 (aarch64_override_options): Update to reflect above changes.
12246 Move some logic into aarch64_override_options_internal.
12247 Initialize target_option_default_node and target_option_current_node.
12248 (aarch64_override_options_after_change): Move logic into
12249 aarch64_override_options_after_change_1 and call it with global_options.
12250 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
12251 flag values from that.
12253 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12255 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12256 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
12257 * config/aarch64/aarch64.c (struct processor): Add arch field.
12258 (all_architectures): Handle above, move above all_cores.
12259 (all_cores): Handle above.
12260 (aarch64_parse_arch): Handle above changes.
12261 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
12262 above. Update comments.
12263 (armv8.1-a): Likewise.
12264 * config/aarch64/aarch64-cores.def: Update according to above.
12265 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
12266 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
12267 aarch64_arch_driver_info.
12269 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12271 * config/aarch64/aarch64.c (struct processor): Add ident field.
12272 Rename core sched_core.
12273 (all_cores): Handle above changes.
12274 (all_architectures): Likewise.
12275 (aarch64_parse_arch): Likewise.
12276 (aarch64_override_options): Likewise.
12278 2015-08-04 Richard Biener <rguenther@suse.de>
12280 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12281 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
12282 comparisons embedded in [VEC_]COND_EXPRs.
12284 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
12286 * tree-if-conv.c: Fix various typos in comments.
12287 * tree-vect-stmts.c: Likewise.
12289 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
12291 PR tree-optimization/67043
12292 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
12293 preheader after hoisting invariant in it.
12294 (find_defs): Force recomputation of all luids.
12296 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
12298 * config/rs6000/htm.md (tabort.): Restrict the source operand to
12299 using a base register.
12301 2015-08-03 David Malcolm <dmalcolm@redhat.com>
12303 * main.c (main): Pass in NULL for toplev's external_timer.
12304 * timevar.c: Include coretypes.h.
12305 (class timer::named_items): New.
12306 (timer::named_items::named_items): New.
12307 (timer::named_items::~named_items): New.
12308 (timer::named_items::push): New.
12309 (timer::named_items::pop): New.
12310 (timer::named_items::print): New.
12311 (timer::timer): Initialize field "m_jit_client_items".
12312 (timer::~timer): New.
12313 (timer::push): Move bulk of implementation to...
12314 (timer::push_internal): ...here. New function.
12315 (timer::pop): Move bulk of implementation to...
12316 (timer::pop_internal): ...here. New function.
12317 (timer::push_client_item): New.
12318 (timer::pop_client_item): New.
12319 (timer::print_row): New function, taken from timer::print.
12320 (timer::print): Print "GCC items" header if we also have client
12321 items. Move row-printing to timer::print_row. Print any client
12323 (timer::get_topmost_item_name): New method.
12324 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
12325 (TV_JIT_CLIENT_CODE): New.
12326 * timevar.h (timer::push_client_item): New declaration.
12327 (timer::pop_client_item): New declaration.
12328 (timer::get_topmost_item_name): New method.
12329 (timer::push_internal): New declaration.
12330 (timer::pop_internal): New declaration.
12331 (timer::print_row): New declaration.
12332 (timer::named_items): New declaration.
12333 (timer::m_jit_client_items): New field.
12334 (timer): Add friend class named_items.
12335 (auto_timevar::auto_timevar): Add timer param.
12336 (auto_timevar::~auto_timevar): Use field "m_timer".
12337 (auto_timevar::m_timer): New field.
12338 * toplev.c (initialize_rtl): Add g_timer as param when
12339 constructing auto_timevar instance.
12340 (toplev::toplev): Add "external_timer" param, and use it to
12341 initialize the "g_timer" global if non-NULL.
12342 (toplev::~toplev): If this created "g_timer", delete it.
12343 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
12344 with "external_timer" timer *.
12346 2015-08-03 Alexander Basov <coohpt@gmail.com>
12348 PR middle-end/64744
12349 PR middle-end/48470
12350 PR middle-end/43404
12351 * cfgexpand.c (expand_one_var): Add check if stack is going to
12352 be used in naked function.
12353 * expr.c (expand_expr_addr_expr_1): Remove excess checking
12354 whether expression should not reside in MEM.
12355 * function.c (use_register_for_decl): Do not use registers for
12356 non-register things (volatile, float, BLKMode) in naked functions.
12358 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
12361 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
12362 Adjust splits to match new pattern.
12364 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12366 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
12369 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
12370 point in VSX registers.
12372 * config/rs6000/constraints.md (wb constraint): Document unused
12374 (we constraint): Likewise.
12375 (wo constraint): Likewise.
12376 (wp constraint): New constraint for IEEE 128-bit floating point in
12378 (wq constraint): Likewise.
12380 * config/rs6000/predicates.md (easy_fp_constant): Add support for
12381 IEEE 128-bit floating point in VSX registers.
12382 (easy_scalar_constant): Likewise.
12384 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
12385 constraints (wp, wq) for IEEE 128-bit floating point in VSX
12387 (rs6000_init_hard_regno_mode_ok): Likewise.
12389 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
12390 floating point in VSX registers.
12393 (VSX_M2): Likewise.
12399 (vsx_le_permute_<mode>): Add support to properly swap bytes for
12400 IEEE 128-bit floating point in VSX registers on little endian.
12401 (vsx_le_undo_permute_<mode>): Likewise.
12402 (vsx_le_perm_load_<mode>): Likewise.
12403 (vsx_le_perm_store_<mode>): Likewise.
12404 (splitters for IEEE 128-bit fp moves): Likewise.
12406 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
12409 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
12410 floating point in VSX registers.
12413 * doc/md.text (Machine Constraints): Document wp and wq
12414 constraints on PowerPC.
12416 2015-08-03 Jeff Law <law@redhat.com>
12418 PR middle-end/66314
12419 PR gcov-profile/66899
12420 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
12421 iterate over the jump threading paths when an element in the
12422 jump threading paths array is eliminated.
12424 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
12426 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
12428 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
12430 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
12431 is_use_properly_guarded the variable def_preds. Free its
12432 contents before returning.
12433 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
12434 (is_use_properly_guarded): Replace local variable def_preds with
12435 a parameter. Adjust accordingly. Only update *def_preds if it's
12438 2015-08-03 Richard Biener <rguenther@suse.de>
12440 * genmatch.c (simplify::for_subst_vec): New member.
12441 (binary_ok): New helper for for lowering.
12442 (lower_for): Delay substituting operators into result expressions
12443 if we can merge the results eventually again.
12444 (capture_info::walk_result): Adjust for user_id appearing as
12445 result expression operator.
12446 (expr::gen_transform): Likewise.
12447 (dt_simplify::gen_1): Likewise.
12448 (dt_simplify::gen): Pass not substituted operators to tail
12449 functions or initialize local variable with it.
12450 (decision_tree::gen): Adjust function signature.
12451 * match.pd: Fix tests against global code and add default
12452 cases to switch stmts.
12454 2015-08-03 Richard Biener <rguenther@suse.de>
12456 * genmatch.c (dt_simplify::gen): Create captures array
12457 with an initializer.
12459 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12461 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
12462 the host compiler is affected by placement new aliasing bug.
12463 * configure: Regenerate.
12464 * Makefile.in (ALIASING_FLAGS): New variable.
12465 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
12467 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
12470 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
12471 (negmulsf3_vfp): Likewise.
12472 (muldf3negdf_vfp): Disable for -frounding-math.
12473 (mulsf3negsf_vfp): Likewise.
12474 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
12475 fix MULT cost with -frounding-math.
12477 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12479 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
12480 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
12481 explicit. Prefer to add the flag whenever possible.
12482 (noce_process_if_block): Try noce_try_store_flag_constants before
12485 2015-08-03 Richard Biener <rguenther@suse.de>
12487 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
12488 New hash-map to record equivalent transforms.
12489 (dt_node::analyze): Populate the equivalent transforms hash-map.
12490 (dt_simplify::info): Add reference to hash-map entry.
12491 (dt_simplify::gen): If we have split out a function for the
12492 transform, generate a call to it.
12493 (sinfo_hashmap_traits::hash): New function.
12494 (compare_op): New helper function for ...
12495 (sinfo_hashmap_traits::equal_keys): ... this new function.
12496 (decision_tree::gen): Split out common equivalent transforms
12499 2015-08-03 Richard Biener <rguenther@suse.de>
12501 * gimple-fold.c (fold_gimple_assign): Remove folding of
12502 the comparison in COND_EXPRs.
12504 2015-08-03 Richard Biener <rguenther@suse.de>
12506 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
12507 on the rhs of assignments first simplify the embedded
12510 2015-08-03 Richard Biener <rguenther@suse.de>
12512 PR tree-optimization/66917
12513 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
12515 (DR_VECT_AUX): New macro.
12516 (set_dr_misalignment): Adjust.
12517 (dr_misalignment): Likewise.
12518 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12519 Compute whether the base is at least element aligned.
12520 * tree-vect-stmts.c (ensure_base_align): Adjust.
12521 (vectorizable_store): If the base is not element aligned
12522 preserve alignment of the original access if misalignment is unknown.
12523 (vectorizable_load): Likewise.
12525 2015-08-02 Martin Sebor <msebor@redhat.com>
12527 * c-family/c.opt (-Wframe-address): New warning option.
12528 * doc/invoke.texi (Wframe-address): Document it.
12529 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
12530 Clarify possible effects of calling the functions with non-zero
12531 arguments and mention -Wframe-address.
12532 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
12534 2015-08-01 Michael Collison <michael.collison@linaro.org
12535 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12537 * config/arm/arm.md (*arm_smin_cmp): New pattern.
12538 (*arm_umin_cmp): Likewise.
12540 2015-08-01 Caroline Tice <cmtice@google.com>
12543 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
12545 (vtbl_find_mangled_name): New function.
12546 (vtbl_register_mangled_name): New function.
12547 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
12548 mangled name in mangled name vectors.
12549 (find_or_create_vtbl_map_node): Ditto.
12550 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
12551 update recursion_depth on function entry; pass it to every recursive
12552 call; automatically exit if depth > 25 (give up looking at that point).
12553 (verify_bb_vtables): Initialize recursion_depth and pass it to
12554 var_is_used_for_virtual_call_p.
12555 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
12556 global variable decls.
12557 (vtbl_register_mangled_name): New extern function decl.
12559 2015-08-01 Tom de Vries <tom@codesourcery.com>
12561 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
12563 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
12565 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
12566 operation_no_trapping_overflow. Allow non-overflow operations.
12567 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
12570 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
12573 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
12575 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12577 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
12578 Enable for TARGET_32BIT.
12579 (*if_move_neg): Likewise.
12581 2015-07-31 Nick Clifton <nickc@redhat.com>
12583 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
12584 Returns true for __model__.
12585 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12587 2015-07-31 Alan Modra <amodra@gmail.com>
12590 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
12591 (rs6000_emit_prologue): Set it.
12592 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
12594 2015-07-31 Richard Biener <rguenther@suse.de>
12596 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
12597 -> X == (C1 ^ C2) which is already implemented in match.pd.
12598 Remove redundant dispatching to fold_relational_const.
12599 Move unordered self and NaN compares ...
12600 * match.pd: ... as patterns here. Remove some stray captures
12603 2015-07-31 Petr Murzin <petr.murzin@intel.com>
12605 * config/i386/i386.c
12606 (bdesc_special_args): Convert mask type from signed to unsigned for
12608 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
12609 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
12610 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
12611 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
12612 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
12613 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
12614 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
12615 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
12616 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
12617 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
12618 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
12619 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
12620 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
12621 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
12622 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
12623 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
12624 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
12625 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
12626 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
12627 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
12628 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
12629 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
12630 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
12631 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
12632 * config/i386/i386-builtin-types.def
12633 (V16QI_FTYPE_V16SI): Remove.
12634 (V8DF_FTYPE_V8SI): Ditto.
12635 (V8HI_FTYPE_V8DI): Ditto.
12636 (V8SI_FTYPE_V8DI): Ditto.
12637 (V8SF_FTYPE_V8DF): Ditto.
12638 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
12639 (V16HI_FTYPE_V16SI): Ditto.
12640 (V16SF_FTYPE_V16HI): Ditto.
12641 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
12642 (V16SF_FTYPE_V16SI): Ditto.
12643 (V4DI_FTYPE_V4DI): Ditto.
12644 (V16SI_FTYPE_V16SF): Ditto.
12645 (V16SF_FTYPE_FLOAT): Ditto.
12646 (V8DF_FTYPE_DOUBLE): Ditto.
12647 (V8DI_FTYPE_INT64): Ditto.
12648 (V8DI_FTYPE_V4DI): Ditto.
12649 (V16QI_FTYPE_V8DI): Ditto.
12650 (UINT_FTYPE_V4SF): Ditto.
12651 (UINT64_FTYPE_V4SF): Ditto.
12652 (UINT_FTYPE_V2DF): Ditto.
12653 (UINT64_FTYPE_V2DF): Ditto.
12654 (V16SI_FTYPE_V16SI): Ditto.
12655 (V8DI_FTYPE_V8DI): Ditto.
12656 (V16SI_FTYPE_PV4SI): Ditto.
12657 (V16SF_FTYPE_PV4SF): Ditto.
12658 (V8DI_FTYPE_PV2DI): Ditto.
12659 (V8DF_FTYPE_PV2DF): Ditto.
12660 (V4DI_FTYPE_PV2DI): Ditto.
12661 (V4DF_FTYPE_PV2DF): Ditto.
12662 (V16SI_FTYPE_PV2SI): Ditto.
12663 (V16SF_FTYPE_PV2SF): Ditto.
12664 (V8DI_FTYPE_PV4DI): Ditto.
12665 (V8DF_FTYPE_PV4DF): Ditto.
12666 (V8SF_FTYPE_FLOAT): Ditto.
12667 (V4SF_FTYPE_FLOAT): Ditto.
12668 (V4DF_FTYPE_DOUBLE): Ditto.
12669 (V8SF_FTYPE_PV4SF): Ditto.
12670 (V8SI_FTYPE_PV4SI): Ditto.
12671 (V4SI_FTYPE_PV2SI): Ditto.
12672 (V8SF_FTYPE_PV2SF): Ditto.
12673 (V8SI_FTYPE_PV2SI): Ditto.
12674 (V16SF_FTYPE_PV8SF): Ditto.
12675 (V16SI_FTYPE_PV8SI): Ditto.
12676 (V8DI_FTYPE_V8SF): Ditto.
12677 (V4DI_FTYPE_V4SF): Ditto.
12678 (V2DI_FTYPE_V4SF): Ditto.
12679 (V64QI_FTYPE_QI): Ditto.
12680 (V32HI_FTYPE_HI): Ditto.
12681 (V8UHI_FTYPE_V8UHI): Ditto.
12682 (V16UHI_FTYPE_V16UHI): Ditto.
12683 (V32UHI_FTYPE_V32UHI): Ditto.
12684 (V2UDI_FTYPE_V2UDI): Ditto.
12685 (V4UDI_FTYPE_V4UDI): Ditto.
12686 (V8UDI_FTYPE_V8UDI): Ditto.
12687 (V4USI_FTYPE_V4USI): Ditto.
12688 (V8USI_FTYPE_V8USI): Ditto.
12689 (V16USI_FTYPE_V16USI): Ditto.
12690 (V2DF_FTYPE_V2DF_UINT64): Ditto.
12691 (V2DI_FTYPE_V2DF_V2DF): Ditto.
12692 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
12693 (V8DF_FTYPE_V8DF_V8DI): Ditto.
12694 (V4SF_FTYPE_V4SF_UINT64): Ditto.
12695 (V4SI_FTYPE_V4SF_V4SF): Ditto.
12696 (V16SF_FTYPE_V16SF_V16SI): Ditto.
12697 (V64QI_FTYPE_V32HI_V32HI): Ditto.
12698 (V32HI_FTYPE_V16SI_V16SI): Ditto.
12699 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
12700 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
12701 (V32HI_FTYPE_V64QI_V64QI): Ditto.
12702 (V32HI_FTYPE_V32HI_V32HI): Ditto.
12703 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
12704 (V16SI_FTYPE_V16SI_V4SI): Ditto.
12705 (V16SI_FTYPE_V16SI_V16SI): Ditto.
12706 (V16SI_FTYPE_V32HI_V32HI): Ditto.
12707 (V16SI_FTYPE_V16SI_SI): Ditto.
12708 (V8DI_FTYPE_V8DI_V8DI): Ditto.
12709 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
12710 (V8DI_FTYPE_V16SI_V16SI): Ditto.
12711 (V8DI_FTYPE_V8DI_V2DI): Ditto.
12712 (QI_FTYPE_QI): Ditto.
12713 (SI_FTYPE_SI): Ditto.
12714 (DI_FTYPE_DI): Ditto.
12715 (QI_FTYPE_QI_QI): Ditto.
12716 (QI_FTYPE_QI_INT): Ditto.
12717 (HI_FTYPE_HI_INT): Ditto.
12718 (SI_FTYPE_SI_INT): Ditto.
12719 (DI_FTYPE_DI_INT): Ditto.
12720 (HI_FTYPE_V16QI_V16QI): Ditto.
12721 (SI_FTYPE_V32QI_V32QI): Ditto.
12722 (DI_FTYPE_V64QI_V64QI): Ditto.
12723 (QI_FTYPE_V8HI_V8HI): Ditto.
12724 (HI_FTYPE_V16HI_V16HI): Ditto.
12725 (SI_FTYPE_V32HI_V32HI): Ditto.
12726 (QI_FTYPE_V4SI_V4SI): Ditto.
12727 (QI_FTYPE_V8SI_V8SI): Ditto.
12728 (QI_FTYPE_V2DI_V2DI): Ditto.
12729 (QI_FTYPE_V4DI_V4DI): Ditto.
12730 (QI_FTYPE_V8DI_V8DI): Ditto.
12731 (HI_FTYPE_V16SI_V16SI): Ditto.
12732 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
12733 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
12734 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
12735 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
12736 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
12737 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
12738 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
12739 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
12740 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
12741 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
12742 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
12743 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
12744 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
12745 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
12746 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
12747 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
12748 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
12749 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
12750 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
12751 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
12752 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
12753 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
12754 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
12755 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
12756 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
12757 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
12758 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
12759 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
12760 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
12761 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
12762 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
12763 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
12764 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
12765 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
12766 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
12767 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
12768 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
12769 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
12770 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
12771 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
12772 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
12773 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
12774 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
12775 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
12776 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
12777 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
12778 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
12779 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
12780 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
12781 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
12782 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
12783 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
12784 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
12785 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
12786 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
12787 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
12788 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
12789 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
12790 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
12791 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
12792 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
12793 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
12794 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
12795 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
12796 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
12797 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
12798 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
12799 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
12800 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
12801 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
12802 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
12803 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
12804 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
12805 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
12806 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
12807 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
12808 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
12809 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
12810 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
12811 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
12812 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
12813 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
12814 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
12815 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
12816 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
12817 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
12818 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
12819 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
12820 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
12821 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
12822 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
12823 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
12824 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
12825 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
12826 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
12827 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
12828 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
12829 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
12830 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
12831 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
12832 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
12833 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
12834 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
12835 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
12836 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
12837 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
12838 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
12839 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
12840 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
12841 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
12842 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
12843 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
12844 (HI_FTYPE_HI): Ditto.
12845 (HI_FTYPE_V16QI): Ditto.
12846 (SI_FTYPE_V32QI): Ditto.
12847 (DI_FTYPE_V64QI): Ditto.
12848 (QI_FTYPE_V8HI): Ditto.
12849 (HI_FTYPE_V16HI): Ditto.
12850 (SI_FTYPE_V32HI): Ditto.
12851 (QI_FTYPE_V4SI): Ditto.
12852 (QI_FTYPE_V8SI): Ditto.
12853 (HI_FTYPE_V16SI): Ditto.
12854 (QI_FTYPE_V2DI): Ditto.
12855 (QI_FTYPE_V4DI): Ditto.
12856 (QI_FTYPE_V8DI): Ditto.
12857 (V16QI_FTYPE_HI): Ditto.
12858 (V32QI_FTYPE_SI): Ditto.
12859 (V64QI_FTYPE_DI): Ditto.
12860 (V8HI_FTYPE_QI): Ditto.
12861 (V16HI_FTYPE_HI): Ditto.
12862 (V32HI_FTYPE_SI): Ditto.
12863 (V4SI_FTYPE_QI): Ditto.
12864 (V4SI_FTYPE_HI): Ditto.
12865 (V8SI_FTYPE_QI): Ditto.
12866 (V8SI_FTYPE_HI): Ditto.
12867 (V2DI_FTYPE_QI): Ditto.
12868 (V4DI_FTYPE_QI): Ditto.
12869 (HI_FTYPE_HI_HI): Ditto.
12870 (SI_FTYPE_SI_SI): Ditto.
12871 (DI_FTYPE_DI_DI): Ditto.
12872 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12873 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12874 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12875 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12876 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12877 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12878 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12879 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12880 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12881 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12882 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12883 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12884 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12885 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12886 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12887 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12888 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12889 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12890 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12891 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12892 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12893 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12894 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12895 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12896 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12897 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12898 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12899 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12900 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12901 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12902 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12903 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12904 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12905 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12906 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12907 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12908 (V16SI_FTYPE_HI): Ditto.
12909 (V8DI_FTYPE_QI): Ditto.
12910 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12911 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12912 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12913 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12914 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12915 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12916 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12917 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12918 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12919 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12920 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12921 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12922 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12923 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12924 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12925 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12926 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12927 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12928 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12929 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12930 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12931 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12932 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12933 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12934 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12935 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12936 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12937 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12938 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12939 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12940 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12941 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12942 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12943 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12944 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12945 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12946 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12947 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12948 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12949 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12950 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12951 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12952 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12953 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12954 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12955 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12956 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12957 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12958 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12959 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12960 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12961 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12962 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12963 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12964 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12965 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12966 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12967 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12968 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12969 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12970 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12971 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12972 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12973 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12974 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12975 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12976 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12977 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12978 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12979 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12980 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12981 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12982 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12983 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12984 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12985 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12986 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12987 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12988 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12989 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12990 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12991 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12992 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12993 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12994 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12995 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12996 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12997 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12998 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12999 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13000 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13001 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13002 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13003 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13004 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13005 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13006 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13007 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13008 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13009 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13010 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13011 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13012 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13013 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13014 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13015 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13016 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13017 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13018 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13019 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13020 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13021 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13022 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13023 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13024 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13025 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13026 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13027 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13028 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13029 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13030 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13031 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13032 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13033 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13034 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13035 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13036 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13037 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13038 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13039 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13040 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13041 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13042 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13043 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13044 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13045 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13046 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13047 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13048 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13049 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13050 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13051 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13052 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13053 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13054 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13055 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13056 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13057 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13058 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13059 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13060 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13061 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13062 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13063 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13064 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13065 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13066 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13067 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13068 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13069 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13070 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13071 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13072 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13073 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13074 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13075 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13076 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13077 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13078 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13079 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13080 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13081 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13082 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13083 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13084 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13085 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13086 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13087 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13088 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13089 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13090 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13091 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13092 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13093 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13094 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13095 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13096 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13097 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13098 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13099 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13100 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13101 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13102 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13103 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13104 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
13105 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
13106 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
13107 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
13108 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
13109 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
13110 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
13111 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
13112 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
13113 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
13114 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
13115 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
13116 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
13117 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
13118 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
13119 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
13120 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
13121 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
13122 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
13123 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
13124 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
13125 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
13126 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
13127 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
13128 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
13129 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
13130 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
13131 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
13132 (QI_FTYPE_V8DF_INT_QI): Ditto.
13133 (QI_FTYPE_V4DF_INT_QI): Ditto.
13134 (QI_FTYPE_V2DF_INT_QI): Ditto.
13135 (HI_FTYPE_V16SF_INT_HI): Ditto.
13136 (QI_FTYPE_V8SF_INT_QI): Ditto.
13137 (QI_FTYPE_V4SF_INT_QI): Ditto.
13138 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
13140 2015-07-31 Richard Biener <rguenther@suse.de>
13142 * gimple-fold.c (fold_gimple_assign): Remove folding of
13145 2015-07-31 Tom de Vries <tom@codesourcery.com>
13147 PR tree-optimization/66846
13148 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
13149 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
13150 (expand_omp_target) [ENABLE_CHECKING]: Same.
13151 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
13152 cfun if !LOOPS_NEED_FIXUP.
13153 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
13154 that omp_for already has its own loop struct.
13155 * tree-parloops.c (create_phi_for_local_result)
13156 (create_call_for_reduction): Handle simple latch bb.
13157 (create_parallel_loop): Add simple latch bb to preserve
13158 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
13159 (gen_parallel_loop): Remove call to cancel_loop_tree.
13160 (parallelize_loops): Skip loops that are inner loops of parallelized
13162 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
13163 verify_loop_structure.
13165 2015-07-30 Anatoly Sokolov <aesok@post.ru>
13167 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
13168 * config/v850/v850.md (RV_REGNUM): New constants.
13169 * config/v850/v850.c (v850_libcall_value): New functions.
13170 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
13171 (TARGET_LIBCALL_VALUE): Define.
13173 2015-07-30 Anatoly Sokolov <aesok@post.ru>
13175 * rtl.h (lowpart_subreg): Move in file.
13176 * loop-iv.c (lowpart_subreg): Move to...
13177 * simplify-rtx.c (lowpart_subreg): ...here.
13178 (simplify_binary_operation_1): Use lowpart_subreg instead of
13179 simplify_gen_subreg.
13180 * expr.c (expand_expr_real_2): Ditto.
13181 * emit-rtl.c (gen_lowpart_common): Ditto.
13182 * combine.c (gen_lowpart_for_combine): Ditto.
13183 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
13184 expand_debug_source_expr): Ditto.
13186 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
13188 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
13189 (expand_builtin_atomic_clear): Remove support for atomic_clear
13192 2015-07-30 Richard Biener <rguenther@suse.de>
13194 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
13195 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
13196 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
13197 redundant operand canonicalization.
13199 2015-07-30 David Sherwood <david.sherwood@arm.com>
13201 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
13202 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
13203 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
13204 * config/arm/arm.c (neon_valid_immediate): Likewise.
13205 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
13206 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
13207 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
13208 (expand_vec_perm_vpshufb2_vpermq): Likewise.
13209 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
13210 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
13211 * config/i386/sse.md
13212 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
13213 (*ssse3_palignr<mode>_perm): Likewise.
13214 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
13215 * config/spu/spu.c (arith_immediate_p): Likewise.
13216 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13217 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
13219 2015-07-30 Richard Biener <rguenther@suse.de>
13221 * genmatch.c (decision_tree::gen_gimple): Merge with ...
13222 (decision_tree::gen_generic): ... this into ...
13223 (decision_tree::gen): ... this.
13224 (main): Adjust callers.
13226 2015-07-30 Richard Biener <rguenther@suse.de>
13228 * genmatch.c (verbose): New global.
13229 (warning_at): Add overload with source_location.
13230 (capture_info::capture_info): Add bool whether generating gimple
13231 or generic. Add gimple member.
13232 (capture_info::cinfo): Add capture member.
13233 (capture_info::walk_match): Record capture. Warn on
13234 non-captured leafs.
13235 (capture_info::walk_c_expr): Add more fragments captures cannot
13236 escape through. Warn on escaped captures.
13237 (dt_simplify::gen_1): Warn on operands we force to have no
13239 (main): Initialize verbose.
13240 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
13242 2015-07-30 Richard Biener <rguenther@suse.de>
13244 PR middle-end/67053
13245 * match.pd: Allow both operands to independently have conversion
13246 when simplifying compares of addresses.
13248 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
13252 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
13253 around those cases that need one.
13255 2015-07-29 Aditya Kumar <hiraditya@msn.com>
13257 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
13259 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
13261 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
13262 New. Copied from config/i386/gnu-user.h.
13263 (ASM_COMMENT_START): Likewise.
13264 (DBX_REGISTER_NUMBER): Likewise.
13266 2015-07-29 Richard Biener <rguenther@suse.de>
13268 * gimple-fold.c (fold_gimple_cond): Remove.
13269 (fold_stmt_1): Do not call it.
13271 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
13273 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
13274 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
13276 * config/aarch64/aarch64-modes.def: Add HFmode.
13278 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13279 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
13281 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
13282 aarch64_promoted_type): New.
13284 (aarch64_float_const_representable_p): Disable HFmode.
13285 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
13286 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
13287 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
13289 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
13290 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
13292 * config/aarch64/iterators.md (GPF_F16): New.
13294 2015-07-29 Richard Biener <rguenther@suse.de>
13296 * match.pd: Merge address comparison patterns and make them
13297 handle some more cases.
13299 2015-07-29 Richard Biener <rguenther@suse.de>
13301 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
13302 (parser::parse_capture): Add bool argument on whether to reject
13304 (parser::parse_expr): Adjust.
13305 (parser::parse_op): Likewise.
13306 (parser::parse_pattern): Likewise.
13308 2015-07-29 Richard Biener <rguenther@suse.de>
13310 * gimple-fold.c (has_use_on_stmt): New function.
13311 (replace_stmt_with_simplification): Use it to allow
13312 abnormals originally referenced in the stmt.
13313 (fold_stmt_1): Canonicalize operand order.
13315 2015-07-28 David Sherwood <david.sherwood@arm.com>
13317 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
13318 GET_MODE_INNER unconditionally.
13319 * config/spu/spu.c (arith_immediate_p): Likewise.
13320 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
13321 * expmed.c (synth_mult): Remove check for VOIDmode result from
13323 (expand_mult_const): Likewise.
13324 * fold-const.c (fold_binary_loc): Replace call to element_precision
13325 with call to GET_MODE_PRECISION.
13326 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
13328 (emit_mode_inner): Likewise.
13329 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
13331 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
13332 (GET_MODE_UNIT_PRECISION): Likewise.
13333 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
13334 * simplify-rtx.c (simplify_immed_subreg): Likewise.
13335 * stor-layout.c (bitwise_type_for_mode): Update assert.
13336 (element_precision): Remove.
13338 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13340 * target-insns.def (reload_load_address): New targetm instruction
13342 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
13344 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13346 * target-insns.def (atomic_test_and_set): New targetm instruction
13348 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
13349 HAVE_*/gen_* interface.
13351 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13353 * target-insns.def (can_extend, ptr_extend): New targetm instruction
13355 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
13356 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13357 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
13358 * rtlanal.c (nonzero_bits1): Likewise.
13359 (num_sign_bit_copies1): Likewise.
13361 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13363 * target-insns.def (eh_return): New targetm instruction pattern.
13364 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
13366 * function.c (thread_prologue_and_epilogue_insns): Remove
13367 preprocessor condition.
13369 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13371 * target-insns.def (indirect_jump): New targetm instruction pattern.
13372 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
13375 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
13377 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
13378 instead of nonimmediate_operand. Remove C condiition.
13380 2015-07-28 Richard Biener <rguenther@suse.de>
13382 * match.pd: Add more simplification of address comparisons.
13384 2015-07-28 Richard Biener <rguenther@suse.de>
13386 * match.pd: Re-order two cases in comparison with max/min
13387 value simplification to make it apply for bools.
13389 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13391 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
13392 Handle simple SIGN_EXTEND or ZERO_EXTEND.
13393 (aarch64_rtx_costs): Properly strip extend or extract before
13394 passing down to rtx costs again.
13396 2015-07-28 Nick Clifton <nickc@redhat.com>
13398 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
13399 Optimizes the case where -mes0 is active and a constant symbolic
13401 * config/rl78/rl78-protos.h: Prototype the new function.
13402 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
13404 2015-07-28 Tom de Vries <tom@codesourcery.com>
13406 * tree-parloops.c (reduc_stmt_res): New function.
13407 (initialize_reductions, add_field_for_reduction)
13408 (create_phi_for_local_result, create_loads_for_reductions)
13409 (create_stores_for_reduction, build_new_reduction): Handle case that
13410 reduc_stmt is a phi.
13411 (gather_scalar_reductions): Allow double_reduc reductions.
13413 2015-07-28 Richard Biener <rguenther@suse.de>
13415 * fold-const.c (fold_comparison): Remove equality folding
13416 of decl addresses ...
13417 * match.pd: ... here and merge with existing pattern.
13419 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
13421 PR tree-optimization/66828
13422 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
13423 from int64_t to uint64_t.
13425 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
13427 * opts-common.c (read_cmdline_option): List DriverOnly enum values
13428 as valid only in the error message of the driver, not in the
13429 messages of the language compilers.
13431 2015-07-27 Tom de Vries <tom@codesourcery.com>
13433 * tree-parloops.c (gather_scalar_reductions): Simplify function
13436 2015-07-27 Marek Polacek <polacek@redhat.com>
13438 * ipa-devirt.c (types_same_for_odr): Fix typo.
13440 2015-07-27 Jason Merrill <jason@redhat.com>
13443 * dwarf2out.c (gen_inlined_subroutine_die): Check
13444 cgraph_function_possibly_inlined_p.
13446 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
13448 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
13449 Place integer variant first.
13450 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13452 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
13455 * config/arm/arm-builtins.c (enum arm_builtins):
13456 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
13457 (ARM_BUILTIN_NEON_BASE): Rename macro to....
13458 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
13459 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
13460 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
13462 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
13465 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
13466 Add qualifier_lane_index.
13467 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
13468 (arm_getlane_qualifiers): Use qualifier_lane_index.
13469 (arm_lanemac_qualifiers): Rename to...
13470 (arm_mac_n_qualifiers): ...this.
13471 (LANEMAC_QUALIFIERS): Rename to...
13472 (MAC_N_QUALIFIERS): ...this.
13473 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
13474 (arm_setlane_qualifiers): Use qualifier_lane_index.
13475 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
13476 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
13477 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
13478 (arm_expand_neon_builtin): Handle qualifier_lane_index.
13480 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
13481 * config/arm/arm.c (bounds_check): Likewise, improve error message.
13482 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
13483 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
13484 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
13485 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
13486 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
13487 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
13488 qualifiers to TERNOP_IMM.
13489 (vdup_lane): Change qualifiers to GETLANE.
13490 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
13491 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
13492 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
13493 vqdmlsl_n): Change qualifiers to MAC_N.
13495 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
13496 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
13497 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
13498 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
13499 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
13500 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
13501 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
13502 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
13503 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
13504 Remove call to neon_lane_bounds.
13506 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
13508 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13509 Place integer variant first.
13511 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
13513 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
13514 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
13515 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
13516 for armv6kz targets.
13517 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
13518 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
13519 (FL_FOR_ARCH6ZK): Remove.
13520 (FL_FOR_ARCH6KZ): New.
13521 (arm_arch6zk): New declaration.
13522 * config/arm/arm-tables.opt: Regenerate.
13523 * config/arm/arm.c (arm_arch6kz): New.
13524 (arm_option_override): Set arm_arch6kz.
13525 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
13526 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
13527 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
13529 2015-07-27 Marek Polacek <polacek@redhat.com>
13533 * doc/invoke.texi: Document -Wtautological-compare.
13535 2015-07-27 Richard Biener <rguenther@suse.de>
13537 * genmatch.c (decision_tree::gen_gimple): Split out large
13538 subtrees into separate functions.
13539 (decision_tree::gen_generic): Likewise.
13541 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
13543 * config/alpha/alpha.c: Use SUBREG_P predicate.
13544 * config/alpha/predicates.md: Ditto.
13546 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
13548 * config.host (s390*-*-*): Include driver-native.c only when
13549 building with s390* as host *and* target.
13551 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
13554 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
13555 T bit register modified_between_p check.
13557 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13559 * config/i386/i386.c: Use SUBREG_P predicate.
13560 * config/i386/i386.md: Ditto.
13561 * config/i386/sse.md: Ditto.
13562 * config/i386/predicates.md: Ditto.
13564 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13567 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
13568 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
13570 2015-07-25 Sebastian Pop <s.pop@samsung.com>
13572 * Makefile.in: Remove use of TREEBROWSER.
13573 * config.in: Regenerated.
13574 * configure: Regenerated.
13575 * configure.ac: Remove definition of TREEBROWSER.
13576 * tree-browser.c: Removed.
13577 * tree-browser.def: Removed.
13579 2015-07-25 Sebastian Pop <s.pop@samsung.com>
13581 * graphite-scop-detection.c: Include gimple-pretty-print.h.
13582 (stmt_simple_for_scop_p): Print when a stmt is not handled in
13584 (scopdet_basic_block_info): Print when a loop or bb cannot be
13585 represented in Graphite.
13587 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13590 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
13591 execution guard when min_size is less than size_needed.
13593 2015-07-25 Sebastian Pop <s.pop@samsung.com>
13595 * doc/install.texi: Document supported versions of ISL.
13597 2015-07-25 Jeff Law <law@redhat.com>
13601 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13602 unable to find X NE 0 in the tables, return X as the simplified
13604 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13605 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13606 to VISISTED_BBS. */
13607 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13608 after removing the control flow statement and unnecessary edges.
13610 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
13613 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13615 PR rtl-optimization/64164
13616 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13617 * tree-ssa-copyrename.c: Removed.
13618 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13619 -ftree-coalesce-vars.
13620 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13621 * common.opt (ftree-copyrename): Ignore.
13622 (ftree-coalesce-inlined-vars): Likewise.
13623 * doc/invoke.texi: Remove the ignored options above.
13624 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13625 * tree-ssa-coalesce.h: ... here.
13626 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13627 headers required by it.
13628 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13629 across variables when flag_tree_coalesce_vars. Check register
13630 use and promoted modes to allow coalescing. Moved to
13631 tree-ssa-coalesce.c.
13632 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13633 with its member functions to tree-ssa-coalesce.c.
13634 (var_map_base_init): Likewise. Renamed to
13635 compute_samebase_partition_bases.
13636 (partition_view_normal): Drop want_bases parameter.
13637 (partition_view_bitmap): Likewise.
13638 * tree-ssa-live.h: Adjust declarations.
13639 * tree-ssa-coalesce.c: Include explow.h.
13640 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13641 default defs at the entry point.
13642 (dump_part_var_map): New.
13643 (compute_optimized_partition_bases): New, called by...
13644 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13645 of compute_samebase_partition_bases. Adjust.
13646 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13647 * cfgexpand.c (leader_merge): New.
13648 (get_rtl_for_parm_ssa_default_def): New.
13649 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13650 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13651 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13652 redundant MEM attr setting.
13653 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13655 (expand_one_stack_var): ... this. New wrapper to check and
13656 skip already expanded SSA partitions.
13657 (record_alignment_for_reg_var): New, factored out of...
13658 (expand_one_var): ... this.
13659 (expand_one_ssa_partition): New.
13660 (adjust_one_expanded_partition_var): New.
13661 (expand_one_register_var): Check and skip already expanded SSA
13663 (expand_used_vars): Don't create DECLs for anonymous SSA
13664 names. Expand all SSA partitions, then adjust all SSA names.
13665 (pass::execute): Replace the loops that set
13666 SA.partition_to_pseudo from partition leaders and cleared
13667 DECL_RTL for multi-location variables, and that which used to
13668 rename vars and set attrs, with one that clears DECL_RTL and
13669 checks that PARMs and RESULTs default_defs match DECL_RTL.
13670 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13671 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13672 * explow.c (promote_ssa_mode): New.
13673 * explow.h (promote_ssa_mode): Declare.
13674 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13675 * function.c: Include cfgexpand.h.
13676 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13677 (use_register_for_parm_decl): Wrapper for the above to
13678 special-case the result_ptr.
13679 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13680 (split_complex_args): Take assign_parm_data_all argument.
13681 Pass it to rtl_for_parm. Set up rtl and context for split
13683 (assign_parms_augmented_arg_list): Adjust.
13684 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13685 multiple locations. Recognize split complex args.
13686 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13687 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13688 (assign_parm_setup_block): Prefer SSA-assigned location.
13689 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13690 if stack_parm is NULL.
13691 (assign_parm_setup_stack): Prefer SSA-assigned location.
13692 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13693 rtl before testing for pointer bounds. Special-case result_ptr.
13694 (expand_function_start): Maybe reset DECL_RTL of result.
13695 Prefer SSA-assigned location for result and static chain.
13696 Factor out DECL_RESULT and SET_DECL_RTL.
13697 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13698 anonymous SSA names. Use promote_ssa_mode.
13699 (get_temp_reg): Likewise.
13700 (remove_ssa_form): Adjust.
13701 * stor-layout.c (layout_decl): Don't set mem attributes of
13703 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13704 and get its reg_usage for reg invalidation.
13705 (compute_bb_dataflow): Pass it insn.
13706 (emit_notes_in_bb): Likewise.
13708 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13710 * config/i386/i386.c (ix86_va_start): Remove
13711 unneeded !TARGET_64BIT check.
13712 (ix86_gimplify_va_arg): Ditto.
13714 2015-07-24 Tom de Vries <tom@codesourcery.com>
13716 * graphite-sese-to-poly.c (build_poly_scop): Always call
13717 rewrite_commutative_reductions_out_of_ssa.
13719 2015-07-24 Tom de Vries <tom@codesourcery.com>
13721 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
13722 flag_associative_math to FLOAT_TYPE_P. Honour
13723 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
13725 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13728 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
13729 and "%qD" in warning_at instead of "%q+D" in warning.
13731 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
13733 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
13734 (ix86_function_abi): Cleanup.
13736 2015-07-24 Michael Darling <darlingm@gmail.com>
13739 * acinclude.m4: Reflects renaming of configure.in to configure.ac
13740 * configure: Likewise
13741 * configure.ac: Likewise
13742 * doc/install.texi: Likewise
13743 * doc/tm.texi: Likewise
13744 * doc/tm.texi.in: Likewise
13746 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13748 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
13749 manually swapping values.
13750 * cse.c (fold_rtx): Likewise.
13751 * lra-eliminations.c (form_sum): Likewise.
13753 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
13756 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
13757 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
13758 (*jcc_1, *jcc_2, jump, simple_return_internal)
13759 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
13760 Set length_nobnd attribute instead of length attribute.
13761 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
13762 (length_nobnd): Remove attribute.
13763 (length): Remove length_nobnd processing.
13765 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
13767 * gimplify.c (omp_default_clause): New function. Reorganize flow
13768 for clarity. Broken out of ...
13769 (omp_notice_variable): ... here.
13771 2015-07-24 Gary Funck <gary@intrepid.com>
13773 PR middle-end/66984
13774 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
13775 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
13777 2015-07-24 Tom de Vries <tom@codesourcery.com>
13779 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
13780 exit-first loop transform.
13782 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13785 * tree-cfg.c (struct replace_decls_d): New struct.
13786 (replace_block_vars_by_duplicates_1): New function.
13787 (replace_block_vars_by_duplicates): Use it to replace the decls
13788 in the value exprs by duplicates.
13790 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13792 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
13793 -shared, -symbolic, -rdynamic.
13795 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13798 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
13799 -dynamic-linker within %{!static %{!shared, and -rdynamic within
13802 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
13805 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
13806 edge summary is available.
13808 2015-07-24 Richard Biener <rguenther@suse.de>
13810 * genmatch.c (struct dt_node): Add statistic fields.
13811 (dt_node::analyze): New method.
13812 (decision_tree::gen_gimple): Call analyze on the root node
13813 and print statistics to stderr.
13814 (decision_tree::gen_generic): Likewise.
13816 2015-07-24 Richard Biener <rguenther@suse.de>
13818 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
13819 against the highest or lowest possible integer ...
13820 * match.pd: ... as patterns here.
13822 2015-07-24 Richard Biener <rguenther@suse.de>
13824 * genmatch.c (struct capture_info): Add same_as field.
13825 (capture_info::capture_info): Initialize same_as.
13826 (capture_info::walk_match): Compute same_as.
13827 (capture_info::walk_result): Compute stuff for the leader.
13828 (capture_info::walk_c_expr): Likewise.
13829 (dt_simplify::gen_1): Only look at leaders when deciding
13830 to force no side-effects or emit side-effects of omitted operands.
13832 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13834 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
13835 reg note to the GPR -> FPR save instructions.
13837 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13839 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
13841 (s390_expand_insv): Don't generate risbg pattern for constant zero
13843 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
13844 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
13847 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13849 * config/s390/s390.c (s390_reorg): Clean up handling of processors
13852 (s390_issue_rate): Likewise.
13853 (s390_sched_reorder): Likewise.
13854 (s390_sched_variable_issue): Likewise.
13855 (s390_loop_unroll_adjust): Likewise.
13856 (s390_option_override): Likewise.
13858 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13860 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13861 processor capabilities with -march=native.
13862 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13863 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
13864 (S390_TARGET_BITS_STRING): Macro to simplify specs.
13866 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13868 * config/s390/s390.c (s390_issue_rate): Handle
13869 PROCESSOR_2094_Z9_EC.
13870 (s390_option_override): Likewise.
13871 (s390_adjust_priority): Likewise.
13873 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13875 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13876 when cross compiling.
13878 2015-07-24 Richard Biener <rguenther@suse.de>
13880 * fold-const.c (maybe_canonicalize_comparison_1): Move
13881 A code CST canonicalization ...
13882 * match.pd: ... to a pattern here.
13884 2015-07-24 Jiong Wang <jiong.wang@arm.com>
13887 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13889 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13890 (HONOR_REG_ALLOC_ORDER): Define.
13892 2015-07-24 Richard Biener <rguenther@suse.de>
13894 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13895 * fold-const.c (fold_comparison): Move parameter does not
13896 alias &local simplification ...
13897 * match.pd: ... as a pattern here.
13899 2015-07-24 Richard Biener <rguenther@suse.de>
13901 * gimple-fold.c (replace_stmt_with_simplification): Special-case
13902 valueizing call operands.
13903 * gimple-match-head.c (maybe_push_res_to_seq): Take
13904 number of call arguments from ops array.
13905 (do_valueize): New function.
13906 (gimple_simplify): Return true if valueization changed
13907 any operand even if the result didn't simplify further.
13909 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13911 PR middle-end/25530
13912 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13914 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13916 PR middle-end/25529
13917 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13919 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13921 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13924 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13926 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13929 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
13931 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13932 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
13934 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13935 ms_va_list_type_node initialization.
13937 2015-07-23 Jeff Law <law@redhat.com>
13940 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13941 unable to find X NE 0 in the tables, return X as the simplified
13943 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13944 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13945 to VISISTED_BBS. */
13946 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13947 after removing the control flow statement and unnecessary edges.
13949 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13951 * tree-pass.h (get_current_pass_name): Removed.
13953 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13955 PR rtl-optimization/64164
13956 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13957 * tree-ssa-copyrename.c: Removed.
13958 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13959 -ftree-coalesce-vars.
13960 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13961 * common.opt (ftree-copyrename): Ignore.
13962 (ftree-coalesce-inlined-vars): Likewise.
13963 * doc/invoke.texi: Remove the ignored options above.
13964 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13965 * tree-ssa-coalesce.h: ... here.
13966 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13967 headers required by it.
13968 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13969 across variables when flag_tree_coalesce_vars. Check register
13970 use and promoted modes to allow coalescing. Moved to
13971 tree-ssa-coalesce.c.
13972 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13973 with its member functions to tree-ssa-coalesce.c.
13974 (var_map_base_init): Likewise. Renamed to
13975 compute_samebase_partition_bases.
13976 (partition_view_normal): Drop want_bases parameter.
13977 (partition_view_bitmap): Likewise.
13978 * tree-ssa-live.h: Adjust declarations.
13979 * tree-ssa-coalesce.c: Include explow.h.
13980 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13981 default defs at the entry point.
13982 (dump_part_var_map): New.
13983 (compute_optimized_partition_bases): New, called by...
13984 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13985 of compute_samebase_partition_bases. Adjust.
13986 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13987 * cfgexpand.c (leader_merge): New.
13988 (get_rtl_for_parm_ssa_default_def): New.
13989 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13990 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13991 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13992 redundant MEM attr setting.
13993 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13995 (expand_one_stack_var): ... this. New wrapper to check and
13996 skip already expanded SSA partitions.
13997 (record_alignment_for_reg_var): New, factored out of...
13998 (expand_one_var): ... this.
13999 (expand_one_ssa_partition): New.
14000 (adjust_one_expanded_partition_var): New.
14001 (expand_one_register_var): Check and skip already expanded SSA
14003 (expand_used_vars): Don't create DECLs for anonymous SSA
14004 names. Expand all SSA partitions, then adjust all SSA names.
14005 (pass::execute): Replace the loops that set
14006 SA.partition_to_pseudo from partition leaders and cleared
14007 DECL_RTL for multi-location variables, and that which used to
14008 rename vars and set attrs, with one that clears DECL_RTL and
14009 checks that PARMs and RESULTs default_defs match DECL_RTL.
14010 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14011 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14012 * explow.c (promote_ssa_mode): New.
14013 * explow.h (promote_ssa_mode): Declare.
14014 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14015 * function.c: Include cfgexpand.h.
14016 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14017 (use_register_for_parm_decl): Wrapper for the above to
14018 special-case the result_ptr.
14019 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14020 (split_complex_args): Take assign_parm_data_all argument.
14021 Pass it to rtl_for_parm. Set up rtl and context for split
14023 (assign_parms_augmented_arg_list): Adjust.
14024 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14025 multiple locations. Recognize split complex args.
14026 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14027 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14028 (assign_parm_setup_block): Prefer SSA-assigned location.
14029 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14030 if stack_parm is NULL.
14031 (assign_parm_setup_stack): Prefer SSA-assigned location.
14032 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14033 rtl before testing for pointer bounds. Special-case result_ptr.
14034 (expand_function_start): Maybe reset DECL_RTL of result.
14035 Prefer SSA-assigned location for result and static chain.
14036 Factor out DECL_RESULT and SET_DECL_RTL.
14037 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14038 anonymous SSA names. Use promote_ssa_mode.
14039 (get_temp_reg): Likewise.
14040 (remove_ssa_form): Adjust.
14041 * stor-layout.c (layout_decl): Don't set mem attributes of
14043 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14044 and get its reg_usage for reg invalidation.
14045 (compute_bb_dataflow): Pass it insn.
14046 (emit_notes_in_bb): Likewise.
14048 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14051 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14053 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14054 (rs6000_emit_2insn_and): Handle dot forms.
14055 * config/rs6000/rs6000.md (and<mode>3): Adjust.
14056 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
14057 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14059 2015-07-23 Richard Biener <rguenther@suse.de>
14061 * generic-match-head.c: Include cgraph.h.
14062 * gimple-match-head.c: Likewise.
14063 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14065 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14066 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
14069 2015-07-23 Richard Biener <rguenther@suse.de>
14071 * gimple-fold.c (fold_gimple_cond): Do not require folding
14072 results to pass valid_gimple_rhs_p.
14073 * tree-cfg.h (fold_cond_expr_cond): Remove.
14074 * tree-cfg.c (fold_cond_expr_cond): Likewise.
14075 (make_edges): Do not call it.
14076 * tree-inline.c (tree_function_versioning): Likewise.
14078 2015-07-23 Tom de Vries <tom@codesourcery.com>
14080 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14081 vect_force_simple_reduction.
14082 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14083 (vect_is_simple_reduction_1): Add and handle
14084 need_wrapping_integral_overflow parameter.
14085 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14086 need_wrapping_integral_overflow parameter.
14087 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14088 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14091 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
14093 PR tree-optimization/66926,66951
14094 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14095 INNER_LOOP and fix up condition for renaming virtual operands.
14097 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14099 * combine.c (try_combine): Use std::swap instead of manually
14102 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
14104 * config/mips/i6400.md: New file.
14105 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
14106 (mips64r6): Likewise.
14108 * config/mips/mips-tables.opt: Regenerate.
14109 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
14110 (mips_issue_rate): Add support for i6400.
14111 (mips_multipass_dfa_lookahead): Likewise.
14112 * config/mips/mips.h (TUNE_I6400): Define.
14113 * config/mips/mips.md: Include i6400.md.
14114 (processor): Add i6400.
14115 * doc/invoke.texi (-march=@var{arch}): Add i6400.
14117 2015-07-23 Richard Biener <rguenther@suse.de>
14119 PR middle-end/66916
14120 * match.pd: Guard widen and sign-change comparison simplification
14123 2015-07-23 Richard Biener <rguenther@suse.de>
14125 PR tree-optimization/66945
14126 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
14127 ::before_dom_children): Force the propagators idea of
14128 non-executable edges to materialize, not what the folder
14131 2015-07-23 Richard Biener <rguenther@suse.de>
14133 * gimple.h (gimple_cond_make_false): Use 0 != 0.
14134 (gimple_cond_make_true): Use 1 != 0.
14136 2015-07-22 DJ Delorie <dj@redhat.com>
14138 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
14141 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
14142 (ashrhi3): Likewise.
14143 (lshrhi3): Likewise.
14144 (movhi): Take advantage of zero-extend to load small constants.
14145 (movpsi): Likewise.
14146 (and<mode>3): Likewise.
14147 (zero_extendqihi2): Likewise.
14148 (zero_extendqisi2): New.
14149 * config/msp430/constraints.md (N,O): New.
14150 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
14152 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
14155 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
14156 to enum feature_priority and feature_list.
14157 (fold_builtin_cpu): Add F_AES to enum processor_features
14158 and isa_names_table.
14160 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
14163 * config/i386/linux-common.h (MPX_SPEC): Use linker option
14164 for 64bit target only.
14166 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
14168 * config/nvptx/nvptx.c: Expand some comments.
14170 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
14172 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
14173 (cortex_a53_advsimd): ...This.
14175 2015-07-22 Richard Biener <rguenther@suse.de>
14177 * genmatch.c (expr::gen_transform): Clarify error message
14178 and display location.
14180 2015-07-22 Richard Biener <rguenther@suse.de>
14182 * genmatch.c (struct operand): Add location member.
14183 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
14185 (struct simplify): Remove match_location and result_location
14187 (elsehwere): Adjust.
14189 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
14191 * config/mips/m5100.md: New file.
14192 * config/mips/mips-cpus.def (m5100, m5101): Define.
14193 * config/mips/mips-tables.opt: Regenerate.
14194 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
14195 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
14196 -march=m5101 to -mips32r5.
14197 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
14198 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
14200 * config/mips/mips.md: Include m5100.md.
14201 (processor): Add m5100.
14202 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
14204 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
14206 * config/mips/mips-cpus.def (interaptiv): Define.
14207 * config/mips/mips-tables.opt: Regenerate.
14208 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
14210 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
14211 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
14213 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14216 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14217 (HONOR_REG_ALLOC_ORDER): Define.
14219 2015-07-22 Richard Biener <rguenther@suse.de>
14221 PR tree-optimization/66952
14222 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
14223 blocks we end up executing unconditionally reset all SSA
14224 info such as range and alignment.
14225 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
14226 * tree-ssanames.c (reset_flow_sensitive_info): New function.
14228 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
14230 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
14233 2015-07-22 Richard Biener <rguenther@suse.de>
14235 * genmatch.c (parser::parse_result): Properly handle
14236 match with result operands and conditions.
14238 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
14241 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14242 Add qualifier_struct_load_store_lane_index.
14243 (aarch64_types_loadstruct_lane_qualifiers): Use
14244 qualifier_struct_load_store_lane_index for lane index argument for
14246 (aarch64_types_storestruct_lane_qualifiers): Ditto.
14247 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14248 (aarch64_simd_expand_args): Add new argument describing mode of
14249 builtin. Check lane bounds for arguments with
14250 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14251 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
14252 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14253 (aarch64_simd_expand_builtin): Handle arguments with
14254 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
14255 aarch64_simd_expand_args.
14256 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
14257 vst[234]_lane with BUILTIN_VALLDIF.
14258 * config/aarch64/aarch64-simd.md:
14259 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
14260 endianness reversal on lane index.
14261 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
14262 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
14263 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
14264 (vec_store_lanesci_lane<mode>): Ditto.
14265 (vec_store_lanesxi_lane<mode>): Ditto.
14266 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
14267 reversal of lane index.
14268 (aarch64_ld3_lane<mode>): Ditto.
14269 (aarch64_ld4_lane<mode>): Ditto.
14270 (aarch64_st2_lane<mode>): Ditto.
14271 (aarch64_st3_lane<mode>): Ditto.
14272 (aarch64_st4_lane<mode>): Ditto.
14273 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
14274 to qmode. Add new mode parameter. Update uses.
14275 (__LD3_LANE_FUNC): Ditto.
14276 (__LD4_LANE_FUNC): Ditto.
14277 (__ST2_LANE_FUNC): Ditto.
14278 (__ST3_LANE_FUNC): Ditto.
14279 (__ST4_LANE_FUNC): Ditto.
14281 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
14283 * doc/invoke.texi (Language Independent Options): Rename node to
14284 Diagnostic Message Formatting Options.
14286 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
14289 * lra-remat.c (operand_to_remat): Prevent using insns with input
14290 subregs processed separately by IRA.
14292 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
14294 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
14296 (single_imm_use): Check for iterator node.
14297 (num_imm_uses): Likewise.
14298 * tree-ssa-operands.c (has_zero_uses_1): Delete.
14299 (single_imm_use_1): Check for iterator node.
14301 2015-07-21 Mike Frysinger <vapier@gentoo.org>
14302 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14304 * configure.ac: Add check for new options in isl-0.15.
14305 * config.in, configure: Rebuilt.
14306 * graphite-blocking.c: Include <isl/constraint.h>
14307 * graphite-interchange.c, graphite-poly.c: Likewise.
14308 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
14309 * graphite.c: Likewise.
14310 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
14312 * graphite-dependences.c: Include <isl/constraint.h>.
14313 (max_number_of_out_dimensions): Returns isl_stat.
14314 (extend_schedule_1): Likewise
14315 (extend_schedule): Corresponding changes.
14316 * graphite-optimize-isl.c: Include <isl/constraint.h> and
14318 (getSingleMap): Change return type of isl_stat.
14319 (optimize_isl): Conditionally use
14320 isl_options_set_schedule_serialize_sccs.
14321 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
14322 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
14324 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
14327 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
14328 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
14330 2015-07-21 Richard Biener <rguenther@suse.de>
14332 PR tree-optimization/66948
14333 * genmatch.c (capture_info::walk_match): Also recurse to
14334 captures. Properly compute expr state from captures of
14336 * match.pd: Add single-use guards to
14337 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
14339 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14341 * config/nvptx/mkoffload.c (process): Add static destructor call.
14343 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14345 PR middle-end/66915
14346 * match.pd (A - B -> A + (-B)): Don't allow folding
14347 when type if a fixed-point type.
14349 2015-07-20 DJ Delorie <dj@redhat.com>
14351 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
14352 (iorqi3_real): Likewise for set1.
14354 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
14356 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
14359 2015-07-20 Aditya Kumar <hiraditya@msn.com>
14361 * graphite-isl-ast-to-gimple.c:
14362 Refactor so that each function can access 'region'. This will help
14363 maintain a parameter rename_map within a region.
14365 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14367 * config/rs6000/rs6000.md (*lt0_disi): New.
14369 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
14372 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
14373 "available letters" comment.
14374 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
14375 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
14376 and_2rld_operand): Delete.
14377 (and_operand): Adjust.
14378 (rotate_mask_operator): New.
14379 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
14380 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
14381 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
14382 extract_ME): Delete.
14383 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
14384 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
14385 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
14386 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
14387 rs6000_emit_2insn_and): New.
14388 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
14389 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
14390 includes_rldic_lshift_p, includes_rldicr_lshift_p,
14391 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
14392 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
14393 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
14394 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
14395 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
14396 rs6000_emit_2insn_and): New.
14397 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
14398 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
14400 <NOT>: Don't fall through to next case.
14401 <AND>: Handle the various rotate-and-mask cases directly.
14402 <IOR>: Always cost as one insn.
14403 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
14404 (and<mode>3): Adjust expander for the new patterns.
14405 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
14406 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
14407 (*and<mode>3_imm_dot_shifted): New.
14408 (*and<mode>3_mask): Delete, rewrite as ...
14409 (and<mode>3_mask): ... New.
14410 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
14411 (andsi3_internal0_nomc): Delete.
14412 (*andsi3_internal6): Delete.
14413 (*and<mode>3_2insn): New.
14414 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14415 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14416 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
14417 *insvdi_internal3): Delete.
14418 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
14419 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
14420 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
14421 *ior<mode>_mask): New.
14422 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
14423 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
14424 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
14425 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
14427 (ashr<mode>3): Delete expander.
14428 (*ashr<mode>3): Rename to ...
14429 (ashr<mode>3): ... This.
14430 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
14431 (*rotldi3_internal4, *rotldi3_internal5 and split,
14432 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
14433 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
14434 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
14435 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
14436 (splitter for loading a mask): Adjust.
14437 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
14439 2015-07-20 Marek Polacek <polacek@redhat.com>
14441 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
14442 output_add_clobbers, output_added_clobbers_hard_reg_p,
14443 gen_rtx_scratch): Remove declarations.
14445 2015-07-20 Marek Polacek <polacek@redhat.com>
14448 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
14450 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14452 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
14453 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
14455 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14457 * combine.c (combine_simplify_rtx): Move simplification step
14458 before various transformations/substitutions.
14460 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
14462 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
14463 (struct int_traits): Likewise.
14465 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14467 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
14468 function to vmsdbgout_function_decl.
14470 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
14473 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
14474 from misaligned positions.
14475 (ix86_expand_pinsr): Reject insertions to misaligned positions.
14477 2015-07-18 Sebastian Pop <s.pop@samsung.com>
14479 PR middle-end/46851
14480 PR middle-end/60340
14481 * Makefile.in: Removed omega.o.
14482 * common.opt: Document flag fcheck-data-deps as deprecated.
14483 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
14484 its associated params: omega-max-vars, omega-max-geqs,
14485 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
14486 omega-max-keys, omega-eliminate-redundant-constraints.
14487 * doc/loop.texi: Remove all the section on Omega.
14488 * graphite-blocking.c: Include missing params.h: it used to be
14489 included through tree-data-ref.h and omega.h.
14490 * graphite-isl-ast-to-gimple.c: Same.
14491 * graphite-optimize-isl.c: Same.
14492 * graphite-sese-to-poly.c: Same.
14493 * graphite.c: Same.
14496 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
14497 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
14498 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
14499 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
14500 * passes.def: Remove pass_check_data_deps.
14501 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
14502 (dump_conflict_function): Same.
14503 (dump_subscript): Same.
14504 (print_direction_vector): Same.
14505 (print_dir_vectors): Same.
14506 (print_lambda_vector): Same.
14507 (print_dist_vectors): Same.
14508 (dump_data_dependence_relation): Same.
14509 (dump_data_dependence_relations): Same.
14510 (dump_dist_dir_vectors): Same.
14512 (init_omega_eq_with_af): Removed.
14513 (omega_extract_distance_vectors): Removed.
14514 (omega_setup_subscript): Removed.
14515 (init_omega_for_ddr_1): Removed.
14516 (init_omega_for_ddr): Removed.
14517 (ddr_consistent_p): Removed.
14518 (compute_affine_dependence): Do not use omega to check data
14520 (compute_data_dependences_for_bb): Removed.
14521 (analyze_all_data_dependences): Removed.
14522 (tree_check_data_deps): Removed.
14523 * tree-data-ref.h: Do not include omega.h.
14524 (compute_data_dependences_for_bb): Removed.
14525 (tree_check_data_deps): Removed.
14526 * tree-ssa-loop.c (pass_check_data_deps): Removed.
14527 (make_pass_check_data_deps): Removed.
14528 * tree-ssa-phiopt.c: Include params.h.
14529 * tree-vect-data-refs.c: Same.
14530 * tree-vect-slp.c: Same.
14532 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
14534 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
14535 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
14536 (mem->fpreg splitters): Ditto.
14537 (general_operand->nonimmediate_operand splitter): Use explicit modes.
14538 Disable DFmode for TARGET_64BIT.
14540 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
14543 * config/i386/i386.c (ix86_expand_prologue): Replicate static
14544 chain on the stack.
14546 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14548 * config/nvptx/mkoffload.c (process): Constify host data.
14549 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
14550 Constify host data.
14551 (generate_host_descr_file): Likewise.
14553 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
14554 Sebastian Pop <s.pop@samsung.com>
14556 PR middle-end/61929
14557 * graphite-dependences.c (add_pdr_constraints): Renamed
14558 pdr->extent to pdr->subscript_sizes.
14559 * graphite-interchange.c (build_linearized_memory_access): Add
14560 back all gcc_assert's that the "isl_int to isl_val conversion"
14561 patch has removed. Refactored.
14562 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
14563 * graphite-poly.c (new_poly_dr): Same.
14564 (free_poly_dr): Same.
14565 * graphite-poly.h (struct poly_dr): Same.
14566 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
14567 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
14568 * graphite-scop-detection.h: Fix space.
14569 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
14570 back all gcc_assert's removed by a previous patch.
14571 (wrap): Remove the_isl_ctx global variable that the same patch has
14573 (build_loop_iteration_domains): Same.
14574 (add_param_constraints): Same.
14575 (pdr_add_data_dimensions): Same. Refactored.
14576 (build_poly_dr): Renamed extent to subscript_sizes.
14578 2015-07-17 Marek Polacek <polacek@redhat.com>
14580 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
14581 * match.pd: ... here.
14583 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14585 * config/nvptx/mkoffload.c (process): Constify target data.
14586 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
14587 Constify target data.
14588 (generate_target_offloadend_file): Likewise.
14590 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14592 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
14593 to allow renaming of PHI arguments on edges incoming from outer
14594 loop header, add corresponding check before start PHI iterator.
14595 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
14596 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
14597 with true force_vectorize. Set-up dominator for outer loop too.
14598 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
14599 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
14600 was marked with force_vectorize and has restricted cfg.
14601 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
14603 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14604 do peeling for outer loops.
14606 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
14607 Matthias Klose <doko@ubuntu.com>
14609 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
14610 build-sysroot, sysroot from the `Miscenalleous configure options' to
14611 the `Directories' section and strip trailing `/' from with_sysroot.
14612 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
14613 * configure: Regenerated.
14615 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
14618 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
14619 (TARGET_HARD_DF_REGS): Ditto.
14620 (TARGET_HARD_XF_REGS): Ditto.
14621 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
14622 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
14623 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
14624 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
14625 (*movsf_internal): Add alternatives 16 and 17. Enable
14626 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
14628 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
14630 PR rtl-optimization/66891
14631 * calls.c (expand_call): Wrap precompute_register_parameters with
14632 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
14634 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14636 * config/nvptx/mkoffload.c (process): Constify mapping variables.
14637 Define target data struct and initialize it.
14639 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
14641 PR rtl-optimization/66626
14642 * ira.h (emit-rtl.h): Include.
14643 (non_spilled_static_chain_regno_p): New.
14644 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
14645 unless it is non spilled static chain pseudo.
14646 (assign_hard_rego): Spill memory profitable allocno unless it is
14647 non spilled static chain pseudo.
14648 (allocno_spill_priority_compare): Put non spilled static chain
14649 pseudo at the end of sorted array.
14650 (improve_allocation): Do nothing if we have static chain and
14652 (allocno__priority_compare_func): Put non spilled static chain
14653 pseudo at the beginning of sorted array.
14654 (move_spill_restore): Ignore non spilled static chain pseudo.
14655 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
14656 to non spilled static chain pseudo.
14657 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
14658 pseudo at the beginning of sorted array.
14659 (spill_for): Spill non spilled static chain pseudo last.
14660 * lra-constraints.c (lra_constraints): Remove static chain pseudo
14661 check for equivalence.
14663 2015-07-16 Martin Liska <mliska@suse.cz>
14666 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
14667 dst_ctx if it does not exist.
14669 2015-07-16 Martin Liska <mliska@suse.cz>
14671 * hash-set.h (remove): New function.
14672 (iterator): New iteration class for hash_set.
14674 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14676 * genattrtab.c (make_canonical): Add a file_location parameter.
14677 Use fatal_at rather than fatal.
14678 (get_attr_value): Likewise. Update call to make_canonical.
14679 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
14680 (make_internal_attr): Update calls accordingly.
14682 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14684 * read-md.h (message_with_line, error_with_line): Delete.
14685 * read-md.c (message_with_line, error_with_line): Delete.
14686 * gensupport.h: Include read-md.h.
14687 (md_rtx_info): New structure.
14688 (read_md_rtx): Use it. Return a bool success value.
14689 * gensupport.c (read_md_rtx): Likewise.
14690 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
14691 (main): Update after interface changes.
14692 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
14693 (main): Update after interface changes.
14694 * genattrtab.c (insn_code_number): Delete.
14695 (optimize_attrs): Add a max_insn_code parameter and use it instead
14696 of insn_code_number.
14697 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
14698 Use *_at rather than *_with_line functions.
14699 (gen_insn): Likewise.
14700 (gen_delay): Likewise.
14701 (gen_insn_reserv): Likewise.
14702 (gen_bypass): Take an md_rtx_info rather than an rtx.
14703 (main): Update after interface changes. Use a local max_insn_code
14704 variable instead of insn_code_number.
14705 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
14706 an rtx. Use fatal_at rather than fatal.
14707 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
14708 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
14709 (gen_absence_set, gen_final_absence_set, gen_automaton)
14710 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
14711 (main): Update after interface changes.
14712 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
14714 (main): Update after interface changes.
14715 * genconditions.c (main): Use new read_md_rtx interface.
14716 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
14717 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
14718 (main): Update after interface changes.
14719 * genemit.c (insn_code_number, insn_index_number): Delete.
14720 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14721 Use fatal_at rather than fatal.
14722 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
14724 (gen_split): Likewise.
14725 (main): Update after interface changes.
14726 * genextract.c (line_no): Delete.
14727 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14728 Update call to walk_rtx.
14729 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
14730 rather than message_with_line.
14731 (walk_rtx): Add an md_rtx_info argument. Update call to
14732 VEC_safe_set_locstr.
14733 (main): Update after interface changes.
14734 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
14735 and lineno. Use error_at rather than separate message_with_line
14736 calls and have_error assignments.
14737 (main): Update after interface changes.
14738 * genmddump.c (main): Use new read_md_rtx interface.
14739 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
14740 (main): Update after interface changes.
14741 * genoutput.c (next_code_number): Delete.
14742 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14743 (gen_peephole, gen_expand, gen_split): Likewise.
14744 (note_constraint): Likewise. Use *_at rather than *_with_line
14746 (main): Update after interface changes.
14747 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
14749 (main): Update after interface changes.
14750 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
14751 than an rtx and lineno.
14752 (process_define_constraint): Likewise.
14753 (process_define_register_constraint): Likewise.
14754 (main): Update after interface changes.
14755 * genrecog.c (next_insn_code, pattern_lineno): Delete.
14756 (validate_pattern): Replace top-level rtx with an md_rtx_info.
14757 Use *_at rather than *_with_line functions.
14758 (match_pattern_2): Likewise.
14759 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
14760 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
14761 Use *_at rather than *_with_line functions.
14762 * gentarget-def.c (add_insn): New function.
14763 (main): Use it. Use new read_md_rtx interface.
14765 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14767 * gensupport.h (compute_test_codes): Take a file_location rather
14768 than a line number.
14769 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
14770 rather than *_with_line functions.
14771 (process_define_predicate): Update call to compute_test_codes.
14772 * genpreds.c (validate_exp): Take a file_location rather than a
14773 line number. Use *_at functions rather than *_with_line functions.
14774 (process_define_predicate): Update call to validate_exp.
14775 (constraint_data): Replace lineno field with a file_location.
14776 (add_constraint): Take a file_location rather than a line number.
14777 Use *_at functions rather than *_with_line functions. Fix error
14778 message for address constraints. Update after changes to
14779 validate_exp, constraint_data and compute_test_codes.
14780 (process_define_constraint): Update accordingly.
14781 (process_define_register_constraint): Likewise.
14783 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14785 * genoutput.c (data): Use a file_location to record the source
14788 (idata, idata_end): Remove initialization.
14789 (constraint_data): Replace lineno with a file_location.
14790 (output_insn_data): Update after changes to data.
14791 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
14792 (scan_operands): Likewise, using *_at rather than *_with_line
14794 (process_template): Likewise.
14795 (validate_insn_alternatives): Likewise.
14796 (validate_insn_operands): Likewise.
14797 (validate_optab_operands): Likewise.
14798 (init_insn_for_nothing): Initialize idata and idata_end.
14799 (note_constraint): Update after changes to constraint_data,
14800 using at rather than with_line functions.
14801 (mdep_constraint_len): Take a file_location rather than a
14802 line number. Use at rather than with_line functions.
14804 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14806 * read-md.h (fatal_at): Declare.
14807 * read-md.c (fatal_at): New function.
14808 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
14809 to record the source position.
14810 (check_attr_test): Take a file_location instead of a line number.
14811 Use fatal_at instead of fatal.
14812 (check_attr_value): Update after above changes, using "at"
14813 rather than "with_line" reporting functions.
14814 (convert_set_attr_alternative): Likewise.
14815 (gen_attr): Likewise.
14816 (check_defs): Likewise. Don't assign to read_md_filename.
14817 (gen_insn): Update initialization after above changes.
14818 (gen_delay): Likewise.
14819 (write_insn_cases): Print the filename for a define_peephole.
14820 (gen_insn_reserv): Take a line number as argument and update
14821 the call to check_attr_test.
14822 (main): Pass a line number to gen_insn_reserv.
14824 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14826 * read-md.h (file_location): New structure.
14827 (directive_handler_t): Take a file_location rather than a line number.
14828 (message_at, error_at): Declare.
14829 (read_skip_construct): Delete.
14830 * read-md.c (message_with_line_1): Replace with...
14831 (message_at_1): ...this new function.
14832 (message_at, error_at): New functions.
14833 (message_with_line, error_with_line): Update to use message_at_1.
14834 (handle_enum): Take a file_location rather than a line number
14835 and use error_at for error reporting.
14836 (handle_include): Likewise.
14837 (read_skip_construct): Likewise. Make static.
14838 (handle_file): Update after above changes. Pass a file_location
14839 rather than a line number to handle_directive.
14840 * gensupport.c (queue_elem): Replace separate filename and lineno
14841 with a file_location.
14842 (queue_pattern): Replace filename and lineno arguments with a
14843 file_location. Update after change to queue_elem.
14844 (process_define_predicate): Replace lineno argument with a
14845 file_location and use error_at for error reporting. Update
14846 after above changes.
14847 (process_rtx): Likewise.
14848 (subst_pattern_match): Likewise.
14849 (get_alternatives_number): Likewise.
14850 (alter_predicate_for_insn): Likewise.
14851 (rtx_handle_directive): Likewise.
14852 (is_predicable): Update after above changes, using error_at rather
14853 than error_with_line.
14854 (has_subst_attribute): Likewise.
14855 (identify_predicable_attribute): Likewise.
14856 (alter_attrs_for_subst_insn): Likewise.
14857 (process_one_cond_exec): Likewise.
14858 (process_substs_on_one_elem): Likewise.
14859 (process_define_subst): Likewise.
14860 (check_define_attr_duplicates): Likewise.
14861 (read_md_rtx): Update after change to queue_elem.
14863 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14865 * genoutput.c (next_index_number): Delete.
14866 (data): Remove index_number.
14867 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14868 (main): Remove manipulation of next_index_number.
14870 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14872 * genattrtab.c (check_attr_value): Remove handling of null attrs.
14873 (make_canonical): Likewise.
14875 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
14877 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14878 instead of adjust_address_nv.
14879 (restore_stack_nonlocal): Likewise.
14880 (nonlocal_goto): Likewise.
14882 2015-07-16 Tom de Vries <tom@codesourcery.com>
14884 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14885 not have a corresponding loop header phi.
14887 2015-07-16 Tom de Vries <tom@codesourcery.com>
14889 * tree-parloops.c (create_loads_for_reductions): Handle case that
14890 reduction is unused.
14892 2015-07-16 Richard Biener <rguenther@suse.de>
14894 PR tree-optimization/66894
14895 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14896 about deriving NE_EXPR from truncated values.
14898 2015-07-16 Martin Liska <mliska@suse.cz>
14901 (object_allocator): Add new class.
14902 (pool_allocator::initialize): Use the underlying class.
14903 (pool_allocator::allocate): Likewise.
14904 (pool_allocator::remove): Likewise.
14905 (operator new): A new generic allocator.
14906 * asan.c (struct asan_mem_ref): Remove unused members.
14907 (asan_mem_ref_new): Replace new operator with
14908 object_allocator::allocate.
14909 (free_mem_ref_resources): Change deallocation.
14910 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14911 with object_allocator.
14912 * config/sh/sh.c (add_constant): Replace new operator with
14913 object_allocator::allocate.
14914 (sh_reorg): Change call to a release method.
14915 * cselib.c (struct elt_list): Remove unused members.
14916 (new_elt_list): Replace new operator with
14917 object_allocator::allocate.
14918 (new_elt_loc_list): Likewise.
14919 (new_cselib_val): Likewise.
14920 (unchain_one_elt_list): Change delete operator with remove method.
14921 (unchain_one_elt_loc_list): Likewise.
14922 (unchain_one_value): Likewise.
14923 (cselib_finish): Release newly added static allocators.
14924 * cselib.h (struct cselib_val): Remove unused members.
14925 (struct elt_loc_list): Likewise.
14926 * df-problems.c (df_chain_alloc): Replace pool_allocator with
14928 * df-scan.c (struct df_scan_problem_data): Likewise.
14929 (df_scan_alloc): Likewise.
14930 * df.h (struct dataflow): Likewise.
14931 * dse.c (struct read_info_type): Likewise.
14932 (struct insn_info_type): Likewise.
14933 (struct dse_bb_info_type): Likewise.
14934 (struct group_info): Likewise.
14935 (struct deferred_change): Likewise.
14936 (get_group_info): Likewise.
14937 (delete_dead_store_insn): Likewise.
14938 (free_read_records): Likewise.
14939 (replace_read): Likewise.
14940 (check_mem_read_rtx): Likewise.
14941 (scan_insn): Likewise.
14942 (dse_step1): Likewise.
14943 (dse_step7): Likewise.
14944 * et-forest.c (struct et_occ): Remove unused members.
14945 (et_new_occ): Use allocate instead of new operator.
14946 (et_new_tree): Likewise.
14947 (et_free_tree): Call release method explicitly.
14948 (et_free_tree_force): Likewise.
14949 (et_free_pools): Likewise.
14950 (et_split): Use remove instead of delete operator.
14951 * et-forest.h (struct et_node): Remove unused members.
14952 * ipa-cp.c: Change pool_allocator to object_allocator.
14953 * ipa-inline-analysis.c: Likewise.
14954 * ipa-profile.c: Likewise.
14955 * ipa-prop.c: Likewise.
14956 * ipa-prop.h: Likewise.
14957 * ira-build.c (initiate_cost_vectors): Cast return value.
14958 (ira_allocate_cost_vector): Likewise.
14959 * ira-color.c (struct update_cost_record): Remove unused members.
14960 * lra-int.h (struct lra_live_range): Likewise.
14961 (struct lra_copy): Likewise.
14962 (struct lra_insn_reg): Likewise.
14963 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14964 * lra.c (new_insn_reg): Replace new operator with allocate method.
14965 (free_insn_regs): Same for operator delete.
14966 (finish_insn_regs): Release new static allocator.
14967 (finish_insn_recog_data): Likewise.
14968 (lra_free_copies): Replace delete operator with remove method.
14969 (lra_create_copy): Replace operator new with allocate method.
14970 (invalidate_insn_data_regno_info): Same for remove method.
14971 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14972 (free_debug_insn_changes): Replace delete operator with remove method.
14973 (replace_oldest_value_reg): Replace operator new with allocate method.
14974 (pass_cprop_hardreg::execute): Release new static variable.
14975 * sched-deps.c (sched_deps_init): Change pool_allocator to
14977 * sel-sched-ir.c: Likewise.
14978 * sel-sched-ir.h: Likewise.
14979 * stmt.c (expand_case): Likewise.
14980 (expand_sjlj_dispatch_table): Likewise.
14981 * tree-sra.c (struct access): Remove unused members.
14982 (struct assign_link): Likewise.
14983 (sra_deinitialize): Release newly added static pools.
14984 (create_access_1):Replace operator new with allocate method.
14985 (build_accesses_from_assign): Likewise.
14986 (create_artificial_child_access): Likewise.
14987 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14988 pool_allocator to object_allocator.
14989 * tree-ssa-pre.c: Likewise.
14990 * tree-ssa-reassoc.c: Likewise.
14991 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14992 * tree-ssa-strlen.c: Likewise.
14993 * tree-ssa-structalias.c: Likewise.
14994 * var-tracking.c (onepart_pool_allocate): New function.
14995 (unshare_variable): Use the newly added function.
14996 (variable_merge_over_cur): Likewise.
14997 (variable_from_dropped): Likewise.
14998 (variable_was_changed): Likewise.
14999 (set_slot_part): Likewise.
15000 (emit_notes_for_differences_1): Likewise.
15001 (vt_finalize): Release newly added static pools.
15003 2015-07-16 Martin Jambor <mjambor@suse.cz>
15005 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
15006 all uses. Fix two typos in its general comment.
15007 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
15009 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
15011 * config/i386/linux-common.h (LINK_MPX): New.
15012 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15013 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15014 indicating '-z bndplt' support by linker.
15015 * configure: Regenerate.
15016 * config.in: Regenerate.
15018 2015-07-16 Richard Biener <rguenther@suse.de>
15020 * fold-const.c (fold_widened_comparison): Remove.
15021 (fold_sign_changed_comparison): Likewise.
15022 (fold_comparison): Move widened and sign-changed comparison
15024 * match.pd: ... to patterns here.
15025 * generic-match-head.c: Include target.h.
15026 * gimple-match-head.c: Likewise.
15028 2015-07-16 Richard Biener <rguenther@suse.de>
15030 * tree-ssa-dom.c (dom_valueize): New function.
15031 (record_temporary_equivalences): Also record equivalences
15032 for dominating stmts that have uses of equivalences we are
15035 2015-07-16 Bin Cheng <bin.cheng@arm.com>
15037 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15038 add_autoinc_candidates.
15039 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15040 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15041 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15042 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15044 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15045 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15046 Remove parameter struct iv*. Call add_autoinc_candidates here.
15047 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15048 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15050 (find_iv_candidates): Call new functions.
15052 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
15054 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15055 uninitialized-variable warning.
15057 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
15060 * config/sh/sh.md (movdi): Split simple reg move to two movsi
15061 when the destination is R0.
15063 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
15066 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15067 * config/i386/i386.c (ix86_expand_pextr): New function.
15068 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
15069 for non-lowpart subregs.
15070 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15071 (insv<mode>): Use SWI248 mode iterator.
15072 (insv<mode>_1): Ditto.
15074 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15075 Sebastian Pop <s.pop@samsung.com>
15077 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15078 iterator to use_stmt.
15080 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15081 Sebastian Pop <s.pop@samsung.com>
15083 * graphite-scop-detection.c (build_scops_1): Discard scops for
15086 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15087 Sebastian Pop <s.pop@samsung.com>
15089 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15090 case of a return statement in scop.
15092 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15093 Sebastian Pop <s.pop@samsung.com>
15095 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15096 INTEGER_TYPE parameters.
15097 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15098 VECTOR_CST in scan_tree_for_params.
15099 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15101 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15103 * gimple-pretty-print.h: Don't include pretty-print.h.
15104 * tree-streamer.h: Don't include lto-streamer.h.
15105 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
15106 * gimple-streamer-in.c: Remove redundant includes.
15107 * gimple-streamer-out.c: Likewise.
15108 * ipa-devirt.c: Likewise.
15109 * ipa-icf.c: Likewise.
15110 * ipa-inline-analysis.c: Likewise.
15111 * ipa-polymorphic-call.c: Likewise.
15112 * ipa-profile.c: Likewise.
15113 * ipa-prop.c: Likewise.
15114 * ipa-pure-const.c: Likewise.
15115 * lto-cgraph.c: Likewise.
15116 * lto-streamer-in.c: Likewise.
15117 * lto-streamer-out.c: Likewise.
15118 * lto-streamer.c: Likewise.
15119 * tree-streamer-in.c: Likewise.
15120 * tree-streamer-out.c: Likewise.
15121 * tree-streamer.c: Likewise.
15123 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15125 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
15127 * opts.c: Remove multiline #include comment.
15129 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
15131 * config/nvptx/mkoffload.c (process): Add C++ protection to
15134 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15137 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
15138 null before IEEE 128-bit floating point support patch.
15140 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15142 * simplify-rtx.c (simplify_ternary_operation): Add simplification
15143 for (!c) != {0,...,0} ? a : b for vector modes.
15145 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
15146 Martin Jambor <mjambor@suse.cz>
15148 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
15149 struct func_body_info* instead of struct ipa_node_params*, expecting
15150 fbi->info to be filled in. Replace throughout. Adjust call to
15151 ipa_load_from_parm_agg.
15152 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
15153 instead of struct ipa_node_params*. Adjust calls to other functions
15154 so that they pass either fbi or fbi->info.
15155 (set_switch_stmt_execution_predicate): Likewise.
15156 (will_be_nonconstant_predicate): Likewise.
15157 (compute_bb_predicates): Likewise.
15158 (estimate_function_body_sizes): Move asserts earlier. Fill in
15159 struct func_body_info, replace parms_info with fbi.info. Adjust
15160 calls to functions that now accept struct func_body_info.
15161 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
15162 (struct func_body_info): Likewise.
15163 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
15164 remove static. Adjust callers.
15165 (ipa_load_from_parm_agg): Remove.
15166 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
15167 (func_body_info): Likewise.
15168 (ipa_load_from_parm_agg): Adjust prototype.
15170 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15172 * gensupport.c (rtx_handle_directive): Adjust.
15173 * read-rtl.c (apply_iterators): Take vector to add rtxs to
15174 instead of expr list rtx.
15175 (add_define_attr_for_define_subst): Likewise.
15176 (add_define_subst_attr): Likewise.
15177 (read_subst_mapping): Likewise.
15178 (read_rtx): Likewise.
15179 * rtl.h (read_rtx): Adjust.
15181 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15183 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
15185 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15188 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
15189 (*tls_local_dynamic_base_64_<mode>): Ditto.
15190 (*tls_local_dynamic_base_64_largepic): Ditto.
15191 (tls_global_dynamic_64_<mode>): Update expander pattern.
15192 (tls_local_dynamic_base_64_<mode>): Ditto.
15194 2015-07-15 Richard Biener <rguenther@suse.de>
15196 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
15197 and bool_var == 1 -> bool_var simplifications ...
15198 * match.pd: ... to patterns here. Factor out negate_expr_p
15199 cases from the A - B -> A + (-B) patterns as negate_expr_p
15200 predicate and add a -(A + B) -> (-B) - A pattern.
15202 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
15204 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
15206 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
15207 Robert Suchanek <robert.suchanek@imgtec.com>
15209 * config/mips/mips.c (mips_int_mask): New enum.
15210 (mips_shadow_set): Likewise.
15211 (int_mask): New variable.
15212 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
15213 (machine_function): Add int_mask and use_shadow_register_set.
15214 (mips_attribute_table): Add attribute handlers for interrupt and
15215 use_shadow_register_set.
15216 (mips_interrupt_mask): New static function.
15217 (mips_handle_interrupt_attr): Likewise.
15218 (mips_handle_use_shadow_register_set_attr): Likewise.
15219 (mips_use_shadow_register_set): Change return type to enum
15220 mips_shadow_set. Add argument handling for use_shadow_register_set
15222 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
15223 compare with mips_shadow_set enum.
15224 (mips_compute_frame_info): Add interrupt mask and
15225 use_shadow_register_set to per-function information structure.
15226 Add a stack slot for EPC unconditionally.
15227 (mips_expand_prologue): Compare use_shadow_register_set value
15228 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
15229 masked interrupt register but in EIC mode use K0 and save Cause in K0.
15230 EPC saved and restored unconditionally. Use PMODE_INSN macro when
15231 copying the stack pointer from the shadow register set.
15232 * config/mips/mips.h (SR_IM0): New define.
15233 * config/mips/mips.md (mips_rdpgpr): Rename to...
15234 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
15235 * doc/extend.texi (Declaring Attributes of Functions): Document
15236 optional arguments for interrupt and use_shadow_register_set
15239 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
15241 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
15242 interrupt attribute.
15243 (mips_expand_prologue): Disable the floating point unit in an ISR.
15244 * config/mips/mips.h (SR_COP1): New define.
15246 2015-07-15 Richard Biener <rguenther@suse.de>
15248 * genmatch.c (parser::peek, parser::peek_ident): Add argument
15249 to tell how many tokens to peek ahead (default 1).
15250 (parser::eat_token, parser::eat_ident): Return token consumed.
15251 (parser::parse_result): Parse new switch statement.
15252 * match.pd: Use case statements where appropriate.
15254 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15256 PR rtl-optimization/58066
15257 * calls.c (expand_call): Precompute register parameters before stack
15258 alignment is performed.
15260 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15262 PR rtl-optimization/66838
15263 * postreload.c (reload_cse_move2add): Also process
15264 CALL_INSN_FUNCTION_USAGE when resetting information of
15265 call-clobbered registers.
15267 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15268 Cesar Philippidis <cesar@codesourcery.com>
15269 Chung-Lin Tang <cltang@codesourcery.com>
15271 * config/nios2/constraints.md (U, v): New constraints.
15272 * config/nios2/predicates.md (rdprs_dcache_operand): New.
15273 (ldstex_memory_operand): New.
15274 * config/nios2/sync.md: New file.
15275 * config/nios2/nios2.md (unspecv): Add new builtin function
15277 (rdprs, flushd, flushda, wrpie, eni): New patterns.
15278 (top-level): Include sync.md.
15279 * config/nios2/nios2.c (N2_FTYPES): Add function types for
15281 (N2_BUILTINS): Add arch field setting, add new builtins.
15282 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
15284 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
15285 Also handle ldex/stex/ldsex/stsex builtins.
15286 (nios2_expand_rdprs_builtin): New function.
15287 (nios2_expand_cache_builtin): New function.
15288 (nios2_expand_wrpie_builtin): New function.
15289 (nios2_expand_eni_builtin): New function.
15290 (nios2_expand_builtin): Add arch field handling and new builtin
15292 * doc/extend.texi (Altera Nios II Built-in Functions): Document
15294 * doc/md.texi (Machine Constraints): Document U and v constraints.
15296 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15297 Cesar Philippidis <cesar@codesourcery.com>
15298 Chung-Lin Tang <cltang@codesourcery.com>
15300 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
15301 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
15302 callee_save_reg_size and uses_anonymous_args fields.
15303 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
15304 (nios2_create_cfa_notes): New function.
15305 (nios2_adjust_stack): New function for adjusting stack.
15306 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
15307 Use nios2_adjust_stack.
15308 (nios2_expand_epilogue): Likewise.
15309 (nios2_expand_return): New function.
15310 (nios2_can_use_return_insn): Update for CDX pop.n usage.
15311 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
15312 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
15313 * config/nios2/nios2.md (return): Use nios2_expand_return.
15315 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15316 Cesar Philippidis <cesar@codesourcery.com>
15317 Chung-Lin Tang <cltang@codesourcery.com>
15319 * config/nios2/predicates.md (pop_operation): New.
15320 (ldwm_operation, stwm_operation): New.
15321 (nios2_hard_register_operand): New.
15322 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
15323 (ldstwm_operation_p): Declare.
15324 (gen_ldstwm_peep): Declare.
15325 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
15326 (base_reg_adjustment_p): New.
15327 (pop_operation_p): New.
15328 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
15329 (nios2_ldstwm_regset_p): New.
15330 (ldstwm_operation_p): New.
15332 (nios2_ldst_parallel): New.
15333 (struct ldswm_operand): Declare.
15334 (compare_ldstwm_operands): New.
15335 (can_use_cdx_ldstw): New.
15336 (gen_ldstwm_peep): New.
15337 * config/nios2/nios2-ldstwm.sml: New.
15338 * config/nios2/nios2.md: Include ldstwm.md.
15339 * config/nios2/ldstwm.md: Generated.
15341 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15342 Cesar Philippidis <cesar@codesourcery.com>
15343 Chung-Lin Tang <cltang@codesourcery.com>
15345 * config/nios2/nios2.h (LABEL_ALIGN): Define.
15346 (REG_ALLOC_ORDER): Define.
15347 (ADJUST_REG_ALLOC_ORDER): Define.
15348 (HONOR_REG_ALLOC_ORDER): Define.
15349 (CDX_REG_P): Define.
15350 (ANDCLEAR_INT): Define.
15351 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
15352 (nios2_label_align): Declare.
15353 (nios2_cdx_narrow_form_p): Declare.
15354 (nios2_adjust_reg_alloc_order): Declare.
15355 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
15357 (nios2_large_unspec_reloc_p): New function, split from...
15358 (nios2_legitimate_pic_operand_p): ...here.
15359 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
15360 (nios2_print_operand_punct_valid_p): New.
15361 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
15362 (split_mem_address): New.
15363 (split_alu_insn): New.
15365 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
15366 (enum nios2_add_insn_kind): New.
15367 (nios2_add_insn_names, nios2_add_insn_narrow): New.
15368 (nios2_add_insn_classify): New.
15369 (nios2_add_insn_asm): New.
15370 (nios2_cdx_narrow_form_p): New.
15371 (label_align, min_labelno, max_labelno): New.
15372 (nios2_reorg): New.
15373 (nios2_label_align): New.
15374 (nios2_adjust_reg_alloc_order): New.
15375 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15376 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15377 * config/nios2/constraints.md (P): New constraint.
15378 * config/nios2/predicates.md (const_and_operand): New.
15379 (and_operand): New.
15380 (stack_memory_operand): New.
15381 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
15382 (length): Update to use nios2_cdx_narrow_form_p().
15383 (type): Add new insn type values.
15384 (control, alu, st, ld, shift): Update insn reservations with
15385 new insn type values.
15386 (*high, *lo_sum): Define new insn patterns for constant generation.
15387 (movqi_internal, movhi_internal, movsi_internal): Reduce
15388 alternatives, update asm template to handle CDX variants, update
15390 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
15391 template, update type attributes.
15392 (extendhisi2, extendqi<mode>2): Likewise.
15393 (addsi3): Change to use function for asm string.
15394 (subsi3): Add CDX notation to asm template, update type attributes.
15395 (negsi3, one_cmplsi3): Likewise.
15396 (andsi3): New pattern, specialized from logical patterns.
15397 (<code>si3): Remove and case, combine alternatives, update asm
15399 (<shift_op>si3): Add CDX notation, update type attributes.
15400 (rotrsi3): Update type attribute.
15401 (*merge, extzv, insv): New insn patterns.
15402 (return): Change to define_expand.
15403 (simple_return): Add CDX notation, update type attributes.
15404 (indirect_jump): Add CDX notation.
15405 (jump): Update asm cases, update length attribute expression.
15406 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
15407 (nios2_cbranch): Update asm cases and length attribute expression
15408 to handle CDX variants.
15409 (nios2_cmp<code>): Update asm template.
15410 (nop): Add CDX notation, update type attributes.
15411 (trap): Add CDX notation.
15412 (ctrapsi4): Update asm cases and length attribute expression to
15413 handle CDX variant.
15414 * doc/md.texi (Machine Constraints): Document P constraint.
15416 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15417 Cesar Philippidis <cesar@codesourcery.com>
15418 Chung-Lin Tang <cltang@codesourcery.com>
15420 * config/nios2/nios2.h (SMALL_INT12): New macro.
15421 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
15422 (nios2_valid_addr_expr_p): Use it.
15423 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
15424 with implicit "io" instructions on R2.
15425 * config/nios2/constraints.md (w): New constraint.
15426 * config/nios2/predicates.md (ldstio_memory_operand): New.
15427 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
15428 operand predicate and constraint.
15429 (ld<bh>io_signed, st<bhw>io>): Likewise.
15430 * doc/md.texi (Machine Constraints): Document w constraint.
15432 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15433 Cesar Philippidis <cesar@codesourcery.com>
15434 Chung-Lin Tang <cltang@codesourcery.com>
15436 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
15437 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
15438 Nios II architecture level.
15439 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
15440 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
15441 (OPTION_DEFAULT_SPECS): Define.
15442 (ASM_SPEC): Add -march= spec strings.
15443 * config/nios2/nios2.c (nios2_option_override): Check for
15444 conflicts involving new options.
15445 * config.gcc (nios2*-*-*): Support --with-arch=.
15446 * doc/invoke.texi (Option Summary, Nios II Options): Document
15447 -march=, -mbmx, and -mcdx.
15449 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
15451 PR rtl-optimization/66626
15452 * lra-constraints.c (lra_constraints): Prevent equivalence
15453 substitution for static chain pseudo in functions with nonlocal
15456 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15458 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
15459 (nios2_emit_stack_limit_check): Add size parameter. Handle
15460 -fstack-limit-symbol as well as -fstack-limit-register.
15461 (nios2_expand_prologue): Emit only a single stack limit check,
15462 even if multiple stack adjustments are required.
15463 (nios2_option_override): Diagnose unsupported combination of -fpic
15464 and -stack-limit-symbol.
15466 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
15468 * Makefile.in (top_srcdir): New.
15469 * configure.ac: Use AM_ZLIB.
15470 * configure: Regeneated.
15472 2015-07-14 Matthias Klose <doko@ubuntu.com>
15475 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
15477 2015-07-14 Richard Biener <rguenther@suse.de>
15479 PR tree-optimization/66863
15480 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
15481 what we record for conversion use stmt lhs inequalities.
15483 2015-07-14 Richard Biener <rguenther@suse.de>
15485 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
15486 (decision_tree::gen_gimple): Likewise.
15488 2015-07-14 Tom de Vries <tom@codesourcery.com>
15490 * gcc.c (greater_than_spec_func): Declare forward.
15491 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
15492 -ftree-parallelize-loops={0,1}.
15493 (static_spec_functions): Add greater_than_spec_func function with name
15495 (greater_than_spec_func): New function.
15497 2015-07-14 Richard Biener <rguenther@suse.de>
15499 * tree-ssa-dom.c (record_temporary_equivalences): Merge
15500 wideing type conversion case from record_equivalences_from_incoming_edge
15501 and use record_equality to record equivalences.
15502 (record_equivalences_from_incoming_edge): Call
15503 record_temporary_equivalences.
15505 2015-07-14 Richard Biener <rguenther@suse.de>
15507 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
15508 (struct if_expr): New.
15509 (struct with_expr): Likewise.
15510 (is_a_helper): Add helpers for if_expr and with_expr.
15511 (struct simplify): Add simplify_kind enum and member. Remove
15513 (simplify::simplify): Adjust.
15514 (lower_commutative): Adjust.
15515 (lower_opt_convert): Likewise.
15516 (lower_cond): Likewise.
15517 (replace_id): Handle with_expr and if_expr.
15518 (lower_for): Adjust.
15519 (dt_simplify::gen_1): New recursive worker, split out from ...
15520 (dt_simplify::gen): ... here. Deal with if and with expansion
15522 (capture_info::capture_info): Take context argument
15523 (capture_info::walk_result): Only analyze specific result.
15524 (parser::parse_result): New function.
15525 (parser::parse_simplify): Adjust to parse ifs with then end
15527 (parser::parse_if): Simplify.
15528 (parser::parse_pattern): Pass down simplify kind.
15529 * match.pd: Convert if structure to new syntax.
15531 2015-07-13 Marek Polacek <polacek@redhat.com>
15533 * rtl.c (rtx_equal_p_cb): Fix typo.
15535 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
15537 * omega.h: Don't include config.h, don't include params.h again if
15538 omega.h has already been included.
15539 * graphite-poly.h: Include sese.h.
15540 * graphite.c: Don't include sese.h, remove needless includes and
15541 minimize includes outside #ifdef HAVE_isl block.
15542 * graphite-blocking.c: Don't include sese.h, remove needless includes,
15543 and wrap entire file in #ifdef HAVE_isl
15544 * graphite-dependences.c: Likewise.
15545 * graphite-interchange.c: Likewise.
15546 * graphite-isl-ast-to-gimple.c: Likewise.
15547 * graphite-optimize-isl.c: Likewise.
15548 * graphite-poly.c: Likewise.
15549 * graphite-scop-detection.c: Likewise.
15550 * graphite-sese-to-poly.c: Likewise.
15552 2015-07-13 Tom de Vries <tom@codesourcery.com>
15554 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
15556 2015-07-13 Renlin Li <renlin.li@arm.com>
15559 * simplify-rtx.c (simplify_const_relational_operation): Add
15560 side_effects_p checks.
15562 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
15564 * bitmap.h: Fix double word typos.
15565 * builtins.c: Same.
15567 * cfgloopmanip.c: Same.
15570 * cgraphclones.c: Same.
15572 * config/aarch64/aarch64-protos.h: Same.
15573 * config/aarch64/aarch64.c: Same.
15574 * config/aarch64/aarch64.md: Same.
15575 * config/arm/arm.md: Same.
15576 * config/arm/arm1020e.md: Same.
15577 * config/arm/arm1026ejs.md: Same.
15578 * config/arm/arm926ejs.md: Same.
15579 * config/arm/fa526.md: Same.
15580 * config/arm/fa606te.md: Same.
15581 * config/arm/fa626te.md: Same.
15582 * config/arm/fa726te.md: Same.
15583 * config/arm/fmp626.md: Same.
15584 * config/darwin.c: Same.
15585 * config/epiphany/epiphany.c: Same.
15586 * config/frv/frv.c: Same.
15587 * config/ft32/ft32.c: Same.
15588 * config/gnu-user.h: Same.
15589 * config/h8300/constraints.md: Same.
15590 * config/i386/i386.c: Same.
15591 * config/i386/i386.md: Same.
15592 * config/iq2000/iq2000.md: Same.
15593 * config/mips/mips.c: Same.
15594 * config/mmix/mmix.md: Same.
15595 * config/moxie/moxie.c: Same.
15596 * config/nds32/nds32.md: Same.
15597 * config/pa/pa.h: Same.
15598 * config/rs6000/aix.h: Same.
15599 * config/rs6000/rs6000.h: Same.
15600 * config/sh/sh.c: Same.
15601 * config/tilegx/tilegx.md: Same.
15602 * config/tilepro/gen-mul-tables.cc: Same.
15605 * doc/invoke.texi: Same.
15607 * dwarf2out.c: Same.
15610 * genmatch.c: Same.
15611 * gimplify.c: Same.
15612 * hash-table.h: Same.
15613 * internal-fn.c: Same.
15615 * ipa-devirt.c: Same.
15618 * ipa-profile.c: Same.
15619 * ipa-prop.c: Same.
15620 * ipa-prop.h: Same.
15623 * reg-stack.c: Same.
15624 * regcprop.c: Same.
15629 * tree-inline.c: Same.
15630 * tree-sra.c: Same.
15631 * tree-ssa-dom.c: Same.
15632 * tree-ssa-loop-ivopts.c: Same.
15633 * tree-ssa-structalias.c: Same.
15634 * tree-ssa-tail-merge.c: Same.
15635 * tree-ssa-ter.c: Same.
15636 * tree-ssa-threadupdate.c: Same.
15637 * tree-ssa-uninit.c: Same.
15638 * tree-ssanames.c: Same.
15639 * tree-vect-loop-manip.c: Same.
15640 * tree-vrp.c: Same.
15642 * valtrack.c: Same.
15645 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15647 PR middle-end/66726
15648 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
15649 tree_ssa_phiopt_worker): Call it.
15651 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15653 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
15654 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
15657 2015-07-11 Marek Polacek <polacek@redhat.com>
15659 PR middle-end/66353
15660 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
15661 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
15662 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
15663 rather than bb_has_abnormal_call_pred.
15664 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
15665 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
15666 rather than bb_has_abnormal_call_pred.
15668 2015-07-10 Anatoly Sokolov <aesok@post.ru>
15670 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15671 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
15672 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15673 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
15674 v850_legitimate_address_p): New functions.
15675 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15677 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
15680 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
15681 indirect sibcall with register arguments if register available
15682 for argument passing.
15683 (init_cumulative_args): Set cfun->machine->arg_reg_available
15684 to (cum->nregs > 0) or to true if function has a variable
15686 (function_arg_advance_32): Set cfun->machine->arg_reg_available
15687 to false if cum->nregs <= 0.
15688 * config/i386/i386.h (machine_function): Add arg_reg_available.
15690 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15692 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
15693 and gen_higpart instead of gen_rtx_SUBREG.
15694 * config/i386/i386.md
15695 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
15696 (read-modify peephole2): Use gen_lowpart instead of
15697 gen_rtx_SUBREG for operand 5.
15699 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
15701 * config/tilepro/gen-mul-tables.cc (main): Change include list for
15703 * config/tilepro/mul-tables.c: Regenerate.
15704 * config/tilegx/mul-tables.c: Regenerate.
15706 2015-07-10 Richard Biener <rguenther@suse.de>
15708 * fold-const.c (distribute_bit_expr): Remove.
15709 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
15710 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
15711 to A & (B | C) and simplifying A << C1 << C2 to ...
15712 * match.pd: ... patterns here.
15714 2015-07-10 Jiong Wang <jiong.wang@arm.com>
15716 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15717 Mark mem as READONLY and NOTRAP for PIC symbol.
15719 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
15721 * gimple-predict.h: New file.
15722 (gimple_predict_predictor, gimple_predict_set_predictor,
15723 gimple_predict_outcome, gimple_predict_set_outcome,
15724 gimple_build_predict): Relocate here.
15725 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
15726 gimple_predict_outcome, gimple_predict_set_outcome): Move to
15728 * gimple.c (gimple_build_predict): Move to gimple-predict.h
15729 * basic-block.h: Don't include cfghooks.h.
15730 * backend.h: Don't include predict.h.
15731 * cfghooks.h: Include predict.h.
15732 * gimple-pretty-print.c: Include gimple-predict.h.
15733 * gimplify.c: Likwise.
15734 * predict.c: Adjust includes.
15735 * tree-inline.c: Likewise.
15736 * asan.c: Likewise.
15737 * auto-inc-dec.c: Likewise.
15738 * auto-profile.c: Likewise.
15739 * bb-reorder.c: Likewise.
15740 * builtins.c: Likewise.
15741 * caller-save.c: Likewise.
15742 * calls.c: Likewise.
15743 * cfganal.c: Likewise.
15744 * cfgbuild.c: Likewise.
15746 * cfgcleanup.c: Likewise.
15747 * cfgexpand.c: Likewise.
15748 * cfghooks.c: Likewise.
15749 * cfgloopanal.c: Likewise.
15750 * cfgloop.c: Likewise.
15751 * cfgloopmanip.c: Likewise.
15752 * cfgrtl.c: Likewise.
15753 * cgraph.c: Likewise.
15754 * cgraphunit.c: Likewise.
15755 * combine.c: Likewise.
15756 * cprop.c: Likewise.
15759 * dojump.c: Likewise.
15761 * except.c: Likewise.
15762 * expmed.c: Likewise.
15763 * expr.c: Likewise.
15764 * final.c: Likewise.
15765 * fold-const.c: Likewise.
15766 * function.c: Likewise.
15767 * fwprop.c: Likewise.
15768 * gcc-plugin.h: Likewise.
15769 * gcse.c: Likewise.
15770 * genattrtab.c: Likewise.
15771 * genemit.c: Likewise.
15772 * gengtype.c: Likewise.
15773 * genopinit.c: Likewise.
15774 * genoutput.c: Likewise.
15775 * genpreds.c: Likewise.
15776 * genrecog.c: Likewise.
15777 * gimple-fold.c: Likewise.
15778 * gimple-iterator.c: Likewise.
15779 * gimple-ssa-isolate-paths.c: Likewise.
15780 * gimple-ssa-strength-reduction.c: Likewise.
15781 * graph.c: Likewise.
15782 * graphite-blocking.c: Likewise.
15783 * graphite.c: Likewise.
15784 * graphite-dependences.c: Likewise.
15785 * graphite-interchange.c: Likewise.
15786 * graphite-isl-ast-to-gimple.c: Likewise.
15787 * graphite-optimize-isl.c: Likewise.
15788 * graphite-poly.c: Likewise.
15789 * graphite-scop-detection.c: Likewise.
15790 * graphite-sese-to-poly.c: Likewise.
15791 * haifa-sched.c: Likewise.
15792 * ifcvt.c: Likewise.
15793 * internal-fn.c: Likewise.
15794 * ipa-cp.c: Likewise.
15795 * ipa-profile.c: Likewise.
15796 * ipa-split.c: Likewise.
15797 * ipa-utils.c: Likewise.
15798 * ira-build.c: Likewise.
15799 * ira-color.c: Likewise.
15800 * ira-conflicts.c: Likewise.
15801 * ira-costs.c: Likewise.
15802 * ira-emit.c: Likewise.
15803 * ira-lives.c: Likewise.
15804 * jump.c: Likewise.
15805 * loop-doloop.c: Likewise.
15806 * loop-init.c: Likewise.
15807 * loop-invariant.c: Likewise.
15808 * loop-unroll.c: Likewise.
15809 * lower-subreg.c: Likewise.
15810 * lra-assigns.c: Likewise.
15812 * lra-coalesce.c: Likewise.
15813 * lra-constraints.c: Likewise.
15814 * lra-lives.c: Likewise.
15815 * lto-cgraph.c: Likewise.
15816 * lto-streamer-in.c: Likewise.
15817 * mode-switching.c: Likewise.
15818 * modulo-sched.c: Likewise.
15819 * omp-low.c: Likewise.
15820 * optabs.c: Likewise.
15821 * passes.c: Likewise.
15822 * postreload.c: Likewise.
15823 * postreload-gcse.c: Likewise.
15824 * profile.c: Likewise.
15825 * recog.c: Likewise.
15826 * regstat.c: Likewise.
15827 * reload1.c: Likewise.
15828 * reorg.c: Likewise.
15829 * rtlanal.c: Likewise.
15830 * sched-ebb.c: Likewise.
15831 * sel-sched-ir.c: Likewise.
15832 * sese.c: Likewise.
15833 * shrink-wrap.c: Likewise.
15834 * simplify-rtx.c: Likewise.
15835 * stmt.c: Likewise.
15836 * store-motion.c: Likewise.
15837 * tracer.c: Likewise.
15838 * trans-mem.c: Likewise.
15839 * tree-call-cdce.c: Likewise.
15840 * tree-cfg.c: Likewise.
15841 * tree-cfgcleanup.c: Likewise.
15842 * tree-chkp.c: Likewise.
15843 * tree-complex.c: Likewise.
15844 * tree-eh.c: Likewise.
15845 * tree-if-conv.c: Likewise.
15846 * tree-loop-distribution.c: Likewise.
15847 * tree-outof-ssa.c: Likewise.
15848 * tree-parloops.c: Likewise.
15849 * tree-predcom.c: Likewise.
15850 * tree-pretty-print.c: Likewise.
15851 * tree-profile.c: Likewise.
15852 * tree-sra.c: Likewise.
15853 * tree-ssa.c: Likewise.
15854 * tree-ssa-coalesce.c: Likewise.
15855 * tree-ssa-dce.c: Likewise.
15856 * tree-ssa-dom.c: Likewise.
15857 * tree-ssa-forwprop.c: Likewise.
15858 * tree-ssa-ifcombine.c: Likewise.
15859 * tree-ssa-loop-ch.c: Likewise.
15860 * tree-ssa-loop-im.c: Likewise.
15861 * tree-ssa-loop-ivcanon.c: Likewise.
15862 * tree-ssa-loop-ivopts.c: Likewise.
15863 * tree-ssa-loop-manip.c: Likewise.
15864 * tree-ssa-loop-prefetch.c: Likewise.
15865 * tree-ssa-loop-unswitch.c: Likewise.
15866 * tree-ssa-math-opts.c: Likewise.
15867 * tree-ssa-phiopt.c: Likewise.
15868 * tree-ssa-pre.c: Likewise.
15869 * tree-ssa-reassoc.c: Likewise.
15870 * tree-ssa-sink.c: Likewise.
15871 * tree-ssa-tail-merge.c: Likewise.
15872 * tree-ssa-threadedge.c: Likewise.
15873 * tree-ssa-threadupdate.c: Likewise.
15874 * tree-switch-conversion.c: Likewise.
15875 * tree-tailcall.c: Likewise.
15876 * tree-vect-data-refs.c: Likewise.
15877 * tree-vect-loop.c: Likewise.
15878 * tree-vect-loop-manip.c: Likewise.
15879 * tree-vectorizer.c: Likewise.
15880 * tree-vrp.c: Likewise.
15881 * ubsan.c: Likewise.
15882 * value-prof.c: Likewise.
15883 * varasm.c: Likewise.
15884 * var-tracking.c: Likewise.
15885 * config/aarch64/aarch64-builtins.c: Likewise.
15886 * config/aarch64/aarch64.c: Likewise.
15887 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15888 * config/alpha/alpha.c: Likewise.
15889 * config/arc/arc.c: Likewise.
15890 * config/arm/arm.c: Likewise.
15891 * config/avr/avr.c: Likewise.
15892 * config/bfin/bfin.c: Likewise.
15893 * config/c6x/c6x.c: Likewise.
15894 * config/cr16/cr16.c: Likewise.
15895 * config/cris/cris.c: Likewise.
15896 * config/darwin.c: Likewise.
15897 * config/darwin-c.c: Likewise.
15898 * config/epiphany/epiphany.c: Likewise.
15899 * config/epiphany/mode-switch-use.c: Likewise.
15900 * config/epiphany/resolve-sw-modes.c: Likewise.
15901 * config/fr30/fr30.c: Likewise.
15902 * config/frv/frv.c: Likewise.
15903 * config/ft32/ft32.c: Likewise.
15904 * config/h8300/h8300.c: Likewise.
15905 * config/i386/i386.c: Likewise.
15906 * config/i386/winnt.c: Likewise.
15907 * config/ia64/ia64.c: Likewise.
15908 * config/iq2000/iq2000.c: Likewise.
15909 * config/lm32/lm32.c: Likewise.
15910 * config/m32c/m32c.c: Likewise.
15911 * config/m32r/m32r.c: Likewise.
15912 * config/m68k/m68k.c: Likewise.
15913 * config/mcore/mcore.c: Likewise.
15914 * config/mep/mep.c: Likewise.
15915 * config/microblaze/microblaze.c: Likewise.
15916 * config/mips/mips.c: Likewise.
15917 * config/mmix/mmix.c: Likewise.
15918 * config/mn10300/mn10300.c: Likewise.
15919 * config/moxie/moxie.c: Likewise.
15920 * config/msp430/msp430.c: Likewise.
15921 * config/nds32/nds32.c: Likewise.
15922 * config/nds32/nds32-cost.c: Likewise.
15923 * config/nds32/nds32-fp-as-gp.c: Likewise.
15924 * config/nds32/nds32-intrinsic.c: Likewise.
15925 * config/nds32/nds32-isr.c: Likewise.
15926 * config/nds32/nds32-md-auxiliary.c: Likewise.
15927 * config/nds32/nds32-memory-manipulation.c: Likewise.
15928 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15929 * config/nds32/nds32-predicates.c: Likewise.
15930 * config/nios2/nios2.c: Likewise.
15931 * config/nvptx/nvptx.c: Likewise.
15932 * config/pa/pa.c: Likewise.
15933 * config/pdp11/pdp11.c: Likewise.
15934 * config/rl78/rl78.c: Likewise.
15935 * config/rs6000/rs6000.c: Likewise.
15936 * config/rx/rx.c: Likewise.
15937 * config/s390/s390.c: Likewise.
15938 * config/sh/sh.c: Likewise.
15939 * config/sh/sh-mem.cc: Likewise.
15940 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15941 * config/sh/sh_treg_combine.cc: Likewise.
15942 * config/sparc/sparc.c: Likewise.
15943 * config/spu/spu.c: Likewise.
15944 * config/stormy16/stormy16.c: Likewise.
15945 * config/tilegx/tilegx.c: Likewise.
15946 * config/tilepro/tilepro.c: Likewise.
15947 * config/v850/v850.c: Likewise.
15948 * config/vax/vax.c: Likewise.
15949 * config/visium/visium.c: Likewise.
15950 * config/xtensa/xtensa.c: Likewise.
15952 2015-07-10 Richard Biener <rguenther@suse.de>
15954 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15955 (decision_tree::gen_gimple): Likewise.
15956 (decision_tree::gen_generic): Likewise.
15958 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15961 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15962 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15964 2015-07-10 Jakub Jelinek <jakub@redhat.com>
15966 PR middle-end/66820
15967 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15968 or ORT_TASK contexts.
15969 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15972 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15974 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15977 2015-07-10 Tom de Vries <tom@codesourcery.com>
15979 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15980 insert nit + 1 bound.
15982 2015-07-10 Richard Biener <rguenther@suse.de>
15984 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15985 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15986 (if_convertible_loop_p_1): For this always compute bb predicates.
15987 (if_convertible_loop_p): And free them.
15989 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15991 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15994 2015-07-10 Richard Biener <rguenther@suse.de>
15996 PR tree-optimization/66823
15997 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15998 inverted predicate.
16000 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
16002 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16003 to handle mips[32|64]r3 and mips[32|64]r5.
16005 2015-07-09 Jakub Jelinek <jakub@redhat.com>
16007 PR middle-end/66633
16008 * tree-nested.c (get_static_chain): Or in a flag into
16009 info->static_chain_added.
16010 (get_frame_field, get_nonlocal_debug_decl): Likewise.
16011 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16012 2015-07-01 changes.
16013 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16014 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16017 PR tree-optimization/66718
16018 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16020 (vect_simd_lane_linear): New function.
16021 (vectorizable_simd_clone_call): Support using linear arguments for
16022 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16024 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16027 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16029 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16031 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16032 Use machine mode, not enum machine_mode in the prototype.
16034 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16035 classify 128-bit floating point support.
16036 (FLOAT128_IBM_P): Likewise.
16037 (FLOAT128_VECTOR_P): Likewise.
16038 (FLOAT128_2REG_P): Likewise.
16039 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16040 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16041 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16042 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16044 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16045 tests against TFmode/TDmode, since those modes do not use VSX
16047 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16049 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16050 tests against TFmode, etc.
16051 (invalid_e500_subreg): Add tests against IFmode/KFmode.
16052 (reg_offset_addressing_ok_p): Likewise.
16053 (rs6000_legitimate_offset_address_p): Likewise.
16054 (rs6000_legitimize_address): Likewise.
16055 (rs6000_legitimize_reload_address): Likewise.
16056 (rs6000_legitimate_address_p): Clean up tests against TFmode and
16057 TDmode to use the new helper macros, which will include IFmode and
16059 (rs6000_emit_move): Likewise.
16060 (rs6000_darwin64_record_arg_recurse): Likewise.
16061 (print_operand): Likewise.
16062 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16063 that uses a single vector register as a vector and not as a
16064 floating point register in terms of the calling sequence.
16065 (rs6000_discover_homogeneous_aggregate): Likewise.
16066 (rs6000_return_in_memory): Likewise.
16067 (init_cumulative_args): Likewise.
16068 (rs6000_function_arg_boundary): Likewise.
16069 (rs6000_function_arg_advance_1): Likewise.
16070 (rs6000_function_arg): Likewise.
16071 (rs6000_pass_by_reference): Likewise.
16072 (rs6000_gimplify_va_arg): Likewise.
16073 (rs6000_secondary_reload_memory): Use machine_mode not enum
16075 (rs6000_split_multireg_move): Use new helper macros.
16076 (spe_func_has_64bit_regs_p): Likewise.
16077 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16078 (output_toc): Use new helper macros.
16079 (rs6000_register_move_cost): Likewise.
16080 (rs6000_function_value): Add IEEE 128-bit floating point calling
16082 (rs6000_libcall_value): Likewise.
16083 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16084 floating point support.
16085 (rs6000_vector_mode_supported_p): Likewise.
16087 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
16089 PR rtl-optimization/66782
16090 * lra-int.h (struct lra_insn_recog_data): Add comment about
16091 clobbered hard regs for arg_hard_regs.
16092 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16093 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16094 Add condition for processing used hard regs.
16095 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16096 Process clobbered hard regs.
16098 2015-07-09 Michael Matz <matz@suse.de>
16100 * genmatch.c (fprintf_indent): New function.
16101 (operand::gen_transform): Add indent parameter.
16102 (expr::gen_transform, c_expr::gen_transform,
16103 capture::gen_transform): Ditto and use fprintf_indent.
16104 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
16105 (dt_operand::gen, dt_operand::gen_predicate,
16106 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
16107 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
16108 (decision_tree::gen_gimple): Adjust calls and indent generated
16110 (decision_tree::gen_generic): Ditto.
16111 (write_predicate): Ditto.
16113 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16116 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
16117 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
16118 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
16119 {GENERAL,SSE,MMX}_REG_P where appropriate.
16121 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
16123 * lto-streamer.h: Don't include target.h and alloc-pool.h.
16124 * builtins.c: Adjust includes.
16125 * gimple.c: Likewise.
16126 * ipa-icf.c: Likewise.
16127 * lto-opts.c: Likewise.
16128 * ipa-reference.c: Likewise.
16129 * lto-section-out.c: Likewise.
16130 * lto-streamer-in.c: Likewise.
16131 * lto-streamer-out.c: Likewise.
16132 * opts-global.c: Likewise.
16133 * symtab.c: Likewise.
16134 * tree-chkp.c: Likewise.
16135 * tree-ssa-live.c: Likewise.
16136 * tree-streamer-in.c: Likewise.
16137 * tree-streamer-out.c: Likewise.
16138 * config/darwin.c: Likewise.
16139 * config/i386/winnt.c: Likewise.
16141 2015-07-09 Richard Biener <rguenther@suse.de>
16143 * genmatch.c (struct expr): Add force_single_use flag.
16144 (expr::expr): Add copy constructor.
16145 (capture_info::walk_match): Gather force_single_use captures.
16146 (expr::gen_transform): Use possibly NULLified sequence.
16147 (dt_simplify::gen): Apply single-use restrictions by NULLifying
16148 seq if any constrained expr is not single-use.
16149 (parser::parse_expr): Refactor to allow multiple flags. Handle
16150 's' flag to force an expression have a single-use if the pattern
16151 simplifies to more than one statement.
16152 * match.pd: Convert most single_use conditionals to :s flags.
16154 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16156 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
16157 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16158 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
16160 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
16162 * flags.h: Don't include flag-types.h or options.h.
16163 * opts-common.c: Adjust includes.
16164 * opts-global.c: Likewise.
16165 * common/config/epiphany/epiphany-common.c: Likewise.
16167 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16170 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
16173 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16176 * config/i386/i386.c (ix86_return_in_memory): Return true
16177 if int_size_in_bytes returns negative for IA MCU.
16179 2015-07-09 Marek Polacek <polacek@redhat.com>
16181 PR tree-optimization/66718
16182 * Makefile.in (OBJS): Add gimple-laddress.o.
16183 * passes.def: Schedule pass_laddress.
16184 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
16185 * tree-pass.h (make_pass_laddress): Declare.
16186 * gimple-laddress.c: New file.
16188 2015-07-09 Richard Biener <rguenther@suse.de>
16190 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
16192 2015-07-09 Richard Biener <rguenther@suse.de>
16194 PR tree-optimization/66807
16195 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
16197 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
16199 * function.c (stack_protect_epilogue): Use if rather than switch for
16200 check targetm.have_stack_protect_test.
16202 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16204 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
16205 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
16206 * config/arc/arc.h: Likewise.
16207 * config/arm/arm.h: Likewise.
16208 * config/bfin/bfin.h: Likewise.
16209 * config/epiphany/epiphany.h: Likewise.
16210 * config/frv/frv.h: Likewise.
16211 * config/ia64/ia64.h: Likewise.
16212 * config/iq2000/iq2000.h: Likewise.
16213 * config/lm32/lm32.h: Likewise.
16214 * config/m32r/m32r.h: Likewise.
16215 * config/mcore/mcore.h: Likewise.
16216 * config/mep/mep.h: Likewise.
16217 * config/microblaze/microblaze.h: Likewise.
16218 * config/mips/mips.h: Likewise.
16219 * config/mmix/mmix.h: Likewise.
16220 * config/mn10300/mn10300.h: Likewise.
16221 * config/nds32/nds32.h: Likewise.
16222 * config/nios2/nios2.h: Likewise.
16223 * config/pa/pa.h: Likewise.
16224 * config/rl78/rl78.h: Likewise.
16225 * config/sh/sh.h: Likewise.
16226 * config/sparc/sparc.h: Likewise.
16227 * config/stormy16/stormy16.h: Likewise.
16228 * config/tilegx/tilegx.h: Likewise.
16229 * config/tilepro/tilepro.h: Likewise.
16230 * config/v850/v850.h: Likewise.
16231 * config/xtensa/xtensa.h: Likewise.
16232 * doc/tm.texi: Regenerate.
16233 * doc/tm.texi.in: Adjust.
16234 * combine.c (simplify_set): Likewise.
16235 (simplify_comparison): Likewise.
16236 * expr.c (store_constructor): Likewise.
16237 * internal-fn.c (expand_arith_overflow): Likewise.
16238 * reload.c (push_reload): Likewise.
16239 (find_reloads): Likewise.
16240 (find_reloads_subreg_address): Likewise.
16241 * reload1.c (eliminate_regs_1): Likewise.
16242 * rtlanal.c (nonzero_bits1): Likewise.
16243 (num_sign_bit_copies1): Likewise.
16244 * simplify-rtx.c (simplify_truncation): Likewise.
16246 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16248 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
16249 of AUTO_INC_DEC with the preprocessor.
16250 * combine.c (combine_instructions): Likewise.
16251 (can_combine_p): Likewise.
16252 (try_combine): Likewise.
16253 * emit-rtl.c (try_split): Likewise.
16254 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16255 * lower-subreg.c (resolve_simple_move): Likewise.
16256 * lra.c (update_inc_notes): Likewise.
16257 * recog.c (asm_operand_ok): Likewise.
16258 (constrain_operands): Likewise.
16259 * regrename.c (scan_rtx_address): Likewise.
16260 * reload.c (update_auto_inc_notes): Likewise.
16261 (reg_inc_found_and_valid_p): Likewise.
16262 * reload1.c (reload): Likewise.
16263 (emit_input_reload_insns): Likewise.
16264 (delete_output_reload): Likewise.
16265 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16266 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16268 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16270 * rtl.h: Always define AUTO_INC_DEC.
16271 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
16272 * combine.c (combine_instructions): Likewise.
16273 (can_combine_p): Likewise.
16274 (try_combine): Likewise.
16275 * emit-rtl.c (try_split): Likewise.
16276 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16277 * lower-subreg.c (resolve_simple_move): Likewise.
16278 * lra.c (update_inc_notes): Likewise.
16279 * recog.c (asm_operand_ok): Likewise.
16280 (constrain_operands): Likewise.
16281 * regrename.c (scan_rtx_address): Likewise.
16282 * reload.c (update_auto_inc_notes): Likewise.
16283 (find_equiv_reg): Likewise.
16284 * reload1.c (reload): Likewise.
16285 (reload_as_needed): Likewise.
16286 (choose_reload_regs): Likewise.
16287 (emit_input_reload_insns): Likewise.
16288 (delete_output_reload): Likewise.
16289 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16290 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16292 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16294 * combine.c (can_combine_def_p): Don't check the value of
16295 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
16296 (combinable_i3pat): Likewise.
16297 (mark_used_regs_combine): Likewise.
16298 * regrename.c (rename_chains): Likewise.
16299 * reload.c (find_reloads_address): Likewise.
16300 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16302 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16304 * combine.c (update_rsp_from_reg_equal): Don't check if
16305 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
16306 (reg_nonzero_bits_for_combine): Likewise.
16307 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
16309 * config/frv/frv.h: Likewise.
16310 * config/lm32/lm32.h: Likewise.
16311 * config/mep/mep.h: Likewise.
16312 * config/mips/mips.h: Likewise.
16313 * config/rs6000/rs6000.h: Likewise.
16314 * config/sh/sh.h: Likewise.
16315 * config/tilegx/tilegx.h (enum reg_class): Likewise.
16316 * config/tilepro/tilepro.h: Likewise.
16317 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
16318 * doc/tm.texi: Regenerate.
16319 * doc/tm.texi.in: Adjust.
16320 * rtlanal.c (nonzero_bits1): Likewise.
16322 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16324 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
16325 with the preprocessor.
16326 (combine_instructions): Likewise.
16327 (try_combine): Likewise.
16329 (distribute_notes): Likewise.
16331 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16333 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
16335 (simplify_set): Likewise.
16336 * cse.c (cse_insn): Likewise.
16337 * fold-const.c (fold_single_bit_test): Likewise.
16338 (fold_unary_loc): Likewise.
16339 * postreload.c (reload_cse_simplify_set): Likewise.
16340 (reload_cse_simplify_operands): Likewise.
16342 2015-07-08 Jiong Wang <jiong.wang@arm.com>
16344 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
16345 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
16347 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
16350 * config/i386/x86intrin.h: Include <adxintrin.h> even if
16351 __iamcu__ is defined.
16353 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16355 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
16357 2015-07-08 Iain Sandoe <iain@codesourcery.com>
16360 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
16361 names from preservation.
16363 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
16366 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
16368 (function_arg_advance_32): Don't pass vectors in registers for
16370 (function_arg_32): Likewise.
16371 (ix86_return_in_memory): Don't return vectors in registers for
16374 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
16376 PR middle-end/66334
16377 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
16378 hard regno live at the start of BB with incoming abnormal edges.
16379 * lra-lives.c (process_bb_lives): Ditto.
16381 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
16384 * config/nvptx/mkoffload.c (main): Create an offload image only in
16385 64-bit configurations.
16387 2015-07-08 Martin Liska <mliska@suse.cz>
16390 * tree-sra.c (create_access_1): Call ctor without brackets.
16391 (create_artificial_child_access): Likewise.
16393 2015-07-08 Richard Biener <rguenther@suse.de>
16395 PR tree-optimization/66793
16396 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
16397 Properly split the block after stmts ending it.
16399 2015-07-08 Richard Biener <rguenther@suse.de>
16401 PR tree-optimization/66794
16402 * passes.c (execute_function_todo): Assert that post-dominators
16404 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
16405 Free post-dominators.
16407 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16409 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
16412 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16414 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
16415 more than or equal 8 and less than 32 when optimizing for size.
16417 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16419 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
16420 COSTS_N_INSNS (1) and increment it appropriately throughout the
16423 2015-07-08 Richard Biener <rguenther@suse.de>
16425 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
16427 2015-07-08 Alan Modra <amodra@gmail.com>
16429 * target.def (rtx_costs): Remove "code" param, add "mode".
16430 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
16431 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
16432 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
16433 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
16434 call. Track mode when given in rtx.
16435 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
16436 (default_address_cost): Pass Pmode to rtx_cost.
16437 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
16438 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
16440 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
16441 (notreg_cost): Add mode param. Use it.
16442 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
16443 mode param and pass to set_src_cost. Update all calls.
16444 (hash_scan_set): Formatting.
16445 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
16446 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
16448 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
16449 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
16450 emit_store_flag): Update set_src_cost and rtx_cost calls.
16451 * auto-inc-dec.c (attempt_change): Likewise.
16452 * calls.c (precompute_register_parameters): Likewise.
16453 * combine.c (expand_compound_operation, make_extraction,
16454 force_to_mode, distribute_and_simplify_rtx): Likewise.
16455 * dojump.c (prefer_and_bit_test): Likewise.
16456 * dse.c (find_shift_sequence): Likewise.
16457 * expr.c (compress_float_constant): Likewise.
16458 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
16459 * ifcvt.c (noce_try_sign_mask): Likewise.
16460 * loop-doloop.c (doloop_optimize): Likewise.
16461 * loop-invariant.c (create_new_invariant): Likewise.
16462 * lower-subreg.c (shift_cost, compute_costs): Likewise.
16463 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
16464 lshift_cheap_p): Likewise.
16465 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
16466 try_replace_in_use, reload_cse_move2add): Likewise.
16467 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
16469 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16470 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16471 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
16472 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16473 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
16474 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
16476 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
16477 * config/arc/arc.c (arc_rtx_costs): Likewise.
16478 * config/arm/arm.c (arm_rtx_costs): Likewise.
16479 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
16480 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
16481 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
16482 * config/cris/cris.c (cris_rtx_costs): Likewise.
16483 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
16484 * config/frv/frv.c (frv_rtx_costs): Likewise.
16485 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
16486 * config/i386/i386.c (ix86_rtx_costs): Likewise.
16487 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
16488 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
16489 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
16490 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
16491 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
16492 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
16493 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
16494 * config/mep/mep.c (mep_rtx_cost): Likewise.
16495 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
16496 * config/mips/mips.c (mips_rtx_costs): Likewise.
16497 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
16498 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
16499 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
16500 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
16501 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
16502 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
16503 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
16504 * config/pa/pa.c (hppa_rtx_costs): Likewise.
16505 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
16506 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
16507 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
16508 * config/s390/s390.c (s390_rtx_costs): Likewise.
16509 * config/sh/sh.c (sh_rtx_costs): Likewise.
16510 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
16511 * config/spu/spu.c (spu_rtx_costs): Likewise.
16512 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
16513 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
16514 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
16515 * config/v850/v850.c (v850_rtx_costs): Likewise.
16516 * config/vax/vax.c (vax_rtx_costs): Likewise.
16517 * config/visium/visium.c (visium_rtx_costs): Likewise.
16518 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
16519 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
16520 "code" param, and pass as outer_code to first rtx_cost call. Pass
16521 mode to rtx_cost calls.
16522 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
16524 (aarch64_rtx_costs_wrapper): Update.
16525 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
16526 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
16528 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
16529 and rtx_cost calls.
16530 (avr_operand_rtx_cost): Similarly.
16531 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
16532 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
16533 * config/mips/mips.c (mips_stack_address_p): Comment typo.
16534 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
16535 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
16536 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
16538 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
16539 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
16540 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
16541 * doc/tm.texi: Regenerate.
16543 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
16545 * tree-core.h: Include symtab.h.
16546 * rtl.h: Include hard-reg-set.h but not flags.h.
16547 (HARD_CONST): Remove condition compilation involving HARD_CONST since
16548 hard-reg-set.h is always included.
16549 * regs.h: Don't include hard-reg-set.h or rtl.h.
16550 * cfg.h: Include dominance.h.
16551 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
16552 * backend.h: New. Aggregate commonly used backend header files.
16553 * gimple-ssa.h: Don't include tree-hasher.h.
16554 * ssa.h: New. Aggregate commonly used SSA header files.
16555 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
16556 * sel-sched-ir.h: Flatten includes.
16557 * lra-int.h: Flatten completely.
16558 * sel-sched-dump.h: Flatten includes.
16559 * ira-int.h: Flatten includes.
16560 * gimple-streamer.h: Remove all includes.
16561 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
16562 * resource.h: Flatten hard-reg-set.h and df.h.
16563 * sched-int.h: Flatten insn-arrt.h and df.h.
16564 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
16565 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
16566 * genattrtab.c (write_header): Adjust generated includes.
16567 * genautomata.c (main): Likewise.
16568 * genconditions.c (write-header): Likewise.
16569 * genemit.c (main): Likewise.
16570 * gengtype.c (open_base_files): Likewise.
16571 * genopinit.c (main): Likewise.
16572 * genoutput.c (output_prologue): Likewise.
16573 * genpeep.c (main): Likewise.
16574 * genpreds.c (write_insn_preds_c): Likewise.
16575 * genrecog.c (write_header): Likewise.
16576 * alias.c: Adjust includes.
16577 * asan.c: Likewise.
16578 * attribs.c: Likewise.
16579 * auto-inc-dec.c: Likewise.
16580 * auto-profile.c: Likewise.
16581 * bb-reorder.c: Likewise.
16582 * bt-load.c: Likewise.
16583 * builtins.c: Likewise.
16584 * caller-save.c: Likewise.
16585 * calls.c: Likewise.
16586 * ccmp.c: Likewise.
16588 * cfganal.c: Likewise.
16589 * cfgbuild.c: Likewise.
16590 * cfgcleanup.c: Likewise.
16591 * cfgexpand.c: Likewise.
16592 * cfghooks.c: Likewise.
16593 * cfgloop.c: Likewise.
16594 * cfgloopanal.c: Likewise.
16595 * cfgloopmanip.c: Likewise.
16596 * cfgrtl.c: Likewise.
16597 * cgraph.c: Likewise.
16598 * cgraphbuild.c: Likewise.
16599 * cgraphclones.c: Likewise.
16600 * cgraphunit.c: Likewise.
16601 * cilk-common.c: Likewise.
16602 * combine-stack-adj.c: Likewise.
16603 * combine.c: Likewise.
16604 * compare-elim.c: Likewise.
16605 * convert.c: Likewise.
16606 * coverage.c: Likewise.
16607 * cppbuiltin.c: Likewise.
16608 * cprop.c: Likewise.
16610 * cselib.c: Likewise.
16611 * data-streamer-in.c: Likewise.
16612 * data-streamer-out.c: Likewise.
16613 * data-streamer.c: Likewise.
16614 * dbxout.c: Likewise.
16617 * debug.c: Likewise.
16618 * df-core.c: Likewise.
16619 * df-problems.c: Likewise.
16620 * df-scan.c: Likewise.
16622 * dojump.c: Likewise.
16623 * dominance.c: Likewise.
16624 * domwalk.c: Likewise.
16625 * double-int.c: Likewise.
16627 * dumpfile.c: Likewise.
16628 * dwarf2asm.c: Likewise.
16629 * dwarf2cfi.c: Likewise.
16630 * dwarf2out.c: Likewise.
16631 * emit-rtl.c: Likewise.
16632 * et-forest.c: Likewise.
16633 * except.c: Likewise.
16634 * explow.c: Likewise.
16635 * expmed.c: Likewise.
16636 * expr.c: Likewise.
16637 * final.c: Likewise.
16638 * fixed-value.c: Likewise.
16639 * fold-const.c: Likewise.
16640 * function.c: Likewise.
16641 * fwprop.c: Likewise.
16642 * gcc-plugin.h: Likewise.
16643 * gcse-common.c: Likewise.
16644 * gcse.c: Likewise.
16645 * generic-match-head.c: Likewise.
16646 * ggc-page.c: Likewise.
16647 * gimple-builder.c: Likewise.
16648 * gimple-expr.c: Likewise.
16649 * gimple-fold.c: Likewise.
16650 * gimple-iterator.c: Likewise.
16651 * gimple-low.c: Likewise.
16652 * gimple-match-head.c: Likewise.
16653 * gimple-pretty-print.c: Likewise.
16654 * gimple-ssa-isolate-paths.c: Likewise.
16655 * gimple-ssa-strength-reduction.c: Likewise.
16656 * gimple-streamer-in.c: Likewise.
16657 * gimple-streamer-out.c: Likewise.
16658 * gimple-walk.c: Likewise.
16659 * gimple.c: Likewise.
16660 * gimplify-me.c: Likewise.
16661 * gimplify.c: Likewise.
16662 * godump.c: Likewise.
16663 * graph.c: Likewise.
16664 * graphite-blocking.c: Likewise.
16665 * graphite-dependences.c: Likewise.
16666 * graphite-interchange.c: Likewise.
16667 * graphite-isl-ast-to-gimple.c: Likewise.
16668 * graphite-optimize-isl.c: Likewise.
16669 * graphite-poly.c: Likewise.
16670 * graphite-scop-detection.c: Likewise.
16671 * graphite-sese-to-poly.c: Likewise.
16672 * graphite.c: Likewise.
16673 * haifa-sched.c: Likewise.
16674 * hw-doloop.c: Likewise.
16675 * ifcvt.c: Likewise.
16676 * init-regs.c: Likewise.
16677 * internal-fn.c: Likewise.
16678 * ipa-chkp.c: Likewise.
16679 * ipa-comdats.c: Likewise.
16680 * ipa-cp.c: Likewise.
16681 * ipa-devirt.c: Likewise.
16682 * ipa-icf-gimple.c: Likewise.
16683 * ipa-icf.c: Likewise.
16684 * ipa-inline-analysis.c: Likewise.
16685 * ipa-inline-transform.c: Likewise.
16686 * ipa-inline.c: Likewise.
16687 * ipa-polymorphic-call.c: Likewise.
16688 * ipa-profile.c: Likewise.
16689 * ipa-prop.c: Likewise.
16690 * ipa-pure-const.c: Likewise.
16691 * ipa-ref.c: Likewise.
16692 * ipa-reference.c: Likewise.
16693 * ipa-split.c: Likewise.
16694 * ipa-utils.c: Likewise.
16695 * ipa-visibility.c: Likewise.
16697 * ira-build.c: Likewise.
16698 * ira-color.c: Likewise.
16699 * ira-conflicts.c: Likewise.
16700 * ira-costs.c: Likewise.
16701 * ira-emit.c: Likewise.
16702 * ira-lives.c: Likewise.
16704 * jump.c: Likewise.
16705 * langhooks.c: Likewise.
16707 * loop-doloop.c: Likewise.
16708 * loop-init.c: Likewise.
16709 * loop-invariant.c: Likewise.
16710 * loop-iv.c: Likewise.
16711 * loop-unroll.c: Likewise.
16712 * lower-subreg.c: Likewise.
16713 * lra-assigns.c: Likewise.
16714 * lra-coalesce.c: Likewise.
16715 * lra-constraints.c: Likewise.
16716 * lra-eliminations.c: Likewise.
16717 * lra-lives.c: Likewise.
16718 * lra-remat.c: Likewise.
16719 * lra-spills.c: Likewise.
16721 * lto-cgraph.c: Likewise.
16722 * lto-compress.c: Likewise.
16723 * lto-opts.c: Likewise.
16724 * lto-section-in.c: Likewise.
16725 * lto-section-out.c: Likewise.
16726 * lto-streamer-in.c: Likewise.
16727 * lto-streamer-out.c: Likewise.
16728 * lto-streamer.c: Likewise.
16730 * mode-switching.c: Likewise.
16731 * modulo-sched.c: Likewise.
16732 * omega.c: Likewise.
16733 * omp-low.c: Likewise.
16734 * optabs.c: Likewise.
16735 * opts-global.c: Likewise.
16736 * passes.c: Likewise.
16737 * plugin.c: Likewise.
16738 * postreload-gcse.c: Likewise.
16739 * postreload.c: Likewise.
16740 * predict.c: Likewise.
16741 * print-rtl.c: Likewise.
16742 * print-tree.c: Likewise.
16743 * profile.c: Likewise.
16744 * real.c: Likewise.
16745 * realmpfr.c: Likewise.
16746 * recog.c: Likewise.
16748 * reg-stack.c: Likewise.
16749 * regcprop.c: Likewise.
16750 * reginfo.c: Likewise.
16751 * regrename.c: Likewise.
16752 * regstat.c: Likewise.
16753 * reload.c: Likewise.
16754 * reload1.c: Likewise.
16755 * reorg.c: Likewise.
16756 * resource.c: Likewise.
16757 * rtl-chkp.c: Likewise.
16758 * rtlanal.c: Likewise.
16759 * rtlhooks.c: Likewise.
16760 * sanopt.c: Likewise.
16761 * sched-deps.c: Likewise.
16762 * sched-ebb.c: Likewise.
16763 * sched-rgn.c: Likewise.
16764 * sched-vis.c: Likewise.
16765 * sdbout.c: Likewise.
16766 * sel-sched-dump.c: Likewise.
16767 * sel-sched-ir.c: Likewise.
16768 * sel-sched.c: Likewise.
16769 * sese.c: Likewise.
16770 * shrink-wrap.c: Likewise.
16771 * simplify-rtx.c: Likewise.
16772 * stack-ptr-mod.c: Likewise.
16773 * stmt.c: Likewise.
16774 * stor-layout.c: Likewise.
16775 * store-motion.c: Likewise.
16776 * stringpool.c: Likewise.
16777 * symtab.c: Likewise.
16778 * target-globals.c: Likewise.
16779 * targhooks.c: Likewise.
16780 * toplev.c: Likewise.
16781 * tracer.c: Likewise.
16782 * trans-mem.c: Likewise.
16783 * tree-affine.c: Likewise.
16784 * tree-browser.c: Likewise.
16785 * tree-call-cdce.c: Likewise.
16786 * tree-cfg.c: Likewise.
16787 * tree-cfgcleanup.c: Likewise.
16788 * tree-chkp-opt.c: Likewise.
16789 * tree-chkp.c: Likewise.
16790 * tree-chrec.c: Likewise.
16791 * tree-complex.c: Likewise.
16792 * tree-data-ref.c: Likewise.
16793 * tree-dfa.c: Likewise.
16794 * tree-diagnostic.c: Likewise.
16795 * tree-dump.c: Likewise.
16796 * tree-eh.c: Likewise.
16797 * tree-emutls.c: Likewise.
16798 * tree-if-conv.c: Likewise.
16799 * tree-inline.c: Likewise.
16800 * tree-into-ssa.c: Likewise.
16801 * tree-iterator.c: Likewise.
16802 * tree-loop-distribution.c: Likewise.
16803 * tree-nested.c: Likewise.
16804 * tree-nrv.c: Likewise.
16805 * tree-object-size.c: Likewise.
16806 * tree-outof-ssa.c: Likewise.
16807 * tree-parloops.c: Likewise.
16808 * tree-phinodes.c: Likewise.
16809 * tree-predcom.c: Likewise.
16810 * tree-pretty-print.c: Likewise.
16811 * tree-profile.c: Likewise.
16812 * tree-scalar-evolution.c: Likewise.
16813 * tree-sra.c: Likewise.
16814 * tree-ssa-address.c: Likewise.
16815 * tree-ssa-alias.c: Likewise.
16816 * tree-ssa-ccp.c: Likewise.
16817 * tree-ssa-coalesce.c: Likewise.
16818 * tree-ssa-copy.c: Likewise.
16819 * tree-ssa-copyrename.c: Likewise.
16820 * tree-ssa-dce.c: Likewise.
16821 * tree-ssa-dom.c: Likewise.
16822 * tree-ssa-dse.c: Likewise.
16823 * tree-ssa-forwprop.c: Likewise.
16824 * tree-ssa-ifcombine.c: Likewise.
16825 * tree-ssa-live.c: Likewise.
16826 * tree-ssa-loop-ch.c: Likewise.
16827 * tree-ssa-loop-im.c: Likewise.
16828 * tree-ssa-loop-ivcanon.c: Likewise.
16829 * tree-ssa-loop-ivopts.c: Likewise.
16830 * tree-ssa-loop-manip.c: Likewise.
16831 * tree-ssa-loop-niter.c: Likewise.
16832 * tree-ssa-loop-prefetch.c: Likewise.
16833 * tree-ssa-loop-unswitch.c: Likewise.
16834 * tree-ssa-loop.c: Likewise.
16835 * tree-ssa-math-opts.c: Likewise.
16836 * tree-ssa-operands.c: Likewise.
16837 * tree-ssa-phiopt.c: Likewise.
16838 * tree-ssa-phiprop.c: Likewise.
16839 * tree-ssa-pre.c: Likewise.
16840 * tree-ssa-propagate.c: Likewise.
16841 * tree-ssa-reassoc.c: Likewise.
16842 * tree-ssa-sccvn.c: Likewise.
16843 * tree-ssa-scopedtables.c: Likewise.
16844 * tree-ssa-sink.c: Likewise.
16845 * tree-ssa-strlen.c: Likewise.
16846 * tree-ssa-structalias.c: Likewise.
16847 * tree-ssa-tail-merge.c: Likewise.
16848 * tree-ssa-ter.c: Likewise.
16849 * tree-ssa-threadedge.c: Likewise.
16850 * tree-ssa-threadupdate.c: Likewise.
16851 * tree-ssa-uncprop.c: Likewise.
16852 * tree-ssa-uninit.c: Likewise.
16853 * tree-ssa.c: Likewise.
16854 * tree-ssanames.c: Likewise.
16855 * tree-stdarg.c: Likewise.
16856 * tree-streamer-in.c: Likewise.
16857 * tree-streamer-out.c: Likewise.
16858 * tree-streamer.c: Likewise.
16859 * tree-switch-conversion.c: Likewise.
16860 * tree-tailcall.c: Likewise.
16861 * tree-vect-data-refs.c: Likewise.
16862 * tree-vect-generic.c: Likewise.
16863 * tree-vect-loop-manip.c: Likewise.
16864 * tree-vect-loop.c: Likewise.
16865 * tree-vect-patterns.c: Likewise.
16866 * tree-vect-slp.c: Likewise.
16867 * tree-vect-stmts.c: Likewise.
16868 * tree-vectorizer.c: Likewise.
16869 * tree-vrp.c: Likewise.
16870 * tree.c: Likewise.
16871 * tsan.c: Likewise.
16872 * ubsan.c: Likewise.
16873 * valtrack.c: Likewise.
16874 * value-prof.c: Likewise.
16875 * var-tracking.c: Likewise.
16876 * varasm.c: Likewise.
16877 * varpool.c: Likewise.
16878 * vmsdbgout.c: Likewise.
16879 * vtable-verify.c: Likewise.
16881 * wide-int.cc: Likewise.
16882 * xcoffout.c: Likewise.
16883 * config/aarch64/aarch64-builtins.c: Likewise.
16884 * config/aarch64/aarch64.c: Likewise.
16885 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16886 * config/alpha/alpha.c: Likewise.
16887 * config/arc/arc.c: Likewise.
16888 * config/arm/aarch-common.c: Likewise.
16889 * config/arm/arm-builtins.c: Likewise.
16890 * config/arm/arm-c.c: Likewise.
16891 * config/arm/arm.c: Likewise.
16892 * config/avr/avr-c.c: Likewise.
16893 * config/avr/avr-log.c: Likewise.
16894 * config/avr/avr.c: Likewise.
16895 * config/bfin/bfin.c: Likewise.
16896 * config/c6x/c6x.c: Likewise.
16897 * config/cr16/cr16.c: Likewise.
16898 * config/cris/cris.c: Likewise.
16899 * config/darwin-c.c: Likewise.
16900 * config/darwin.c: Likewise.
16901 * config/epiphany/epiphany.c: Likewise.
16902 * config/epiphany/mode-switch-use.c: Likewise.
16903 * config/epiphany/resolve-sw-modes.c: Likewise.
16904 * config/fr30/fr30.c: Likewise.
16905 * config/frv/frv.c: Likewise.
16906 * config/ft32/ft32.c: Likewise.
16907 * config/h8300/h8300.c: Likewise.
16908 * config/i386/i386-c.c: Likewise.
16909 * config/i386/i386.c: Likewise.
16910 * config/i386/msformat-c.c: Likewise.
16911 * config/i386/winnt-cxx.c: Likewise.
16912 * config/i386/winnt-stubs.c: Likewise.
16913 * config/i386/winnt.c: Likewise.
16914 * config/ia64/ia64-c.c: Likewise.
16915 * config/ia64/ia64.c: Likewise.
16916 * config/iq2000/iq2000.c: Likewise.
16917 * config/lm32/lm32.c: Likewise.
16918 * config/m32c/m32c-pragma.c: Likewise.
16919 * config/m32c/m32c.c: Likewise.
16920 * config/m32r/m32r.c: Likewise.
16921 * config/m68k/m68k.c: Likewise.
16922 * config/mcore/mcore.c: Likewise.
16923 * config/mep/mep-pragma.c: Likewise.
16924 * config/mep/mep.c: Likewise.
16925 * config/microblaze/microblaze-c.c: Likewise.
16926 * config/microblaze/microblaze.c: Likewise.
16927 * config/mips/mips.c: Likewise.
16928 * config/mmix/mmix.c: Likewise.
16929 * config/mn10300/mn10300.c: Likewise.
16930 * config/moxie/moxie.c: Likewise.
16931 * config/msp430/msp430-c.c: Likewise.
16932 * config/msp430/msp430.c: Likewise.
16933 * config/nds32/nds32-cost.c: Likewise.
16934 * config/nds32/nds32-fp-as-gp.c: Likewise.
16935 * config/nds32/nds32-intrinsic.c: Likewise.
16936 * config/nds32/nds32-isr.c: Likewise.
16937 * config/nds32/nds32-md-auxiliary.c: Likewise.
16938 * config/nds32/nds32-memory-manipulation.c: Likewise.
16939 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16940 * config/nds32/nds32-predicates.c: Likewise.
16941 * config/nds32/nds32.c: Likewise.
16942 * config/nios2/nios2.c: Likewise.
16943 * config/nvptx/nvptx.c: Likewise.
16944 * config/pa/pa.c: Likewise.
16945 * config/pdp11/pdp11.c: Likewise.
16946 * config/rl78/rl78-c.c: Likewise.
16947 * config/rl78/rl78.c: Likewise.
16948 * config/rs6000/rs6000-c.c: Likewise.
16949 * config/rs6000/rs6000.c: Likewise.
16950 * config/rx/rx.c: Likewise.
16951 * config/s390/s390-c.c: Likewise.
16952 * config/s390/s390.c: Likewise.
16953 * config/sh/sh-c.c: Likewise.
16954 * config/sh/sh-mem.cc: Likewise.
16955 * config/sh/sh.c: Likewise.
16956 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16957 * config/sh/sh_treg_combine.cc: Likewise.
16958 * config/sol2-c.c: Likewise.
16959 * config/sol2-cxx.c: Likewise.
16960 * config/sol2-stubs.c: Likewise.
16961 * config/sol2.c: Likewise.
16962 * config/sparc/sparc-c.c: Likewise.
16963 * config/sparc/sparc.c: Likewise.
16964 * config/spu/spu-c.c: Likewise.
16965 * config/spu/spu.c: Likewise.
16966 * config/stormy16/stormy16.c: Likewise.
16967 * config/tilegx/mul-tables.c: Likewise.
16968 * config/tilegx/tilegx-c.c: Likewise.
16969 * config/tilegx/tilegx.c: Likewise.
16970 * config/tilepro/mul-tables.c: Likewise.
16971 * config/tilepro/tilepro-c.c: Likewise.
16972 * config/tilepro/tilepro.c: Likewise.
16973 * config/v850/v850-c.c: Likewise.
16974 * config/v850/v850.c: Likewise.
16975 * config/vax/vax.c: Likewise.
16976 * config/visium/visium.c: Likewise.
16977 * config/vms/vms-c.c: Likewise.
16978 * config/vms/vms.c: Likewise.
16979 * config/vxworks.c: Likewise.
16980 * config/xtensa/xtensa.c: Likewise.
16982 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
16984 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16985 Remove operand constraints. Change operand 2 predicate to
16986 nonmemory operand. Limit const_int values to mode bitsize. Only
16987 allow const_int values less than 32 when optimizing for size.
16988 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16989 Remove operand constraints.
16990 (*bt<mode>): Use SImode for const_int values less than 32.
16991 (regmode): Remove mode attribute.
16993 2015-07-07 Anatoly Sokolov <aesok@post.ru>
16995 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16996 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16997 moxie_legitimate_address_p): New functions.
16998 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17000 2015-07-07 Tom de Vries <tom@codesourcery.com>
17002 PR tree-optimization/66642
17003 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17004 header comment. Rename split_edge variable to edge_at_split. Split
17005 exit edge to create new loop exit bb. Insert loop exit phis in new
17008 2015-07-07 Tom de Vries <tom@codesourcery.com>
17010 * tree-cfg.c (get_virtual_phi): New function.
17011 * tree-cfg.h (get_virtual_phi): Declare.
17012 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17013 (rewrite_virtuals_into_loop_closed_ssa): New function.
17014 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17016 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17017 (transform_to_exit_first_loop_alt): Use
17018 rewrite_virtuals_into_loop_closed_ssa.
17020 2015-07-07 Richard Biener <rguenther@suse.de>
17022 * fold-const.c (fold_binary_loc): Move
17023 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17024 * match.pd: ... here.
17025 Add (X * C1) % C2 -> 0 simplification pattern derived from
17028 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
17031 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17032 change for target/65249.
17034 2015-07-07 Paulo Matos <pmatos@broadcom.com>
17036 * symtab.c (address_matters_1): Fix typo in comment above.
17037 (can_increase_alignment_p): Likewise.
17039 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17041 * function.c (free_after_compilation): Clear PROP_cfg in
17042 f->curr_properties.
17044 2015-07-07 Richard Biener <rguenther@suse.de>
17046 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17048 (add_control_edge): Remove excessive vertical space in dumping.
17049 (process_ssa_edge_worklist): Simulate at most one statement and
17050 return whether we did. Do not simulate PHIs if they are in a
17051 BB not yet simulated.
17052 (ssa_propagate): Adjust to always drain the BB worklist whenever
17053 a BB is available there, likewise the VARYING edges list before
17054 the interesting edge list.
17056 2015-07-07 Christian Bruel <christian.bruel@st.com>
17059 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17061 2015-07-07 Richard Biener <rguenther@suse.de>
17063 PR middle-end/66739
17064 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17067 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17069 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
17070 modes for operands 0 and 3. Use SImode for operands 2 and 3.
17071 Copy operand 0 to a temporary if !ext_register_operand. Remove
17072 ancient extract_bit_field workaround.
17073 (insv<mode>_1): Rename from mov<mode>_insv_1.
17074 (*insvqi): Rename from *movqi_insv_2.
17075 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17076 for renamed insvsi_1.
17077 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17079 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
17081 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
17082 call to nvptx_reorg_subreg.
17084 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
17086 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17087 * graphite-dependencies.c, graphite-interchange.c,
17088 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17089 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17092 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
17094 * match.pd: Remove element_mode inside HONOR_*.
17095 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17096 (~X | X -> -1, ~X ^ X -> -1): Merge.
17097 * tree.c (build_each_one_cst): New function.
17098 * tree.h (build_each_one_cst): Likewise.
17100 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17102 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17105 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
17107 * config.gcc <mips*-*-*>: Add fused-madd.opt.
17108 * config/mips/mips.opt (mfused-madd): Remove.
17109 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
17110 * config/mips/mips.h (TARGET_MIPS8000): New.
17111 (ISA_HAS_FP_MADD4_MSUB4): Remove.
17112 (ISA_HAS_FP_MADDF_MSUBF): Remove.
17113 (ISA_HAS_FP_MADD3_MSUB3): Remove.
17114 (ISA_HAS_NMADD4_NMSUB4): Remove.
17115 (ISA_HAS_NMADD3_NMSUB3): Remove.
17116 (ISA_HAS_FUSED_MADD4): New.
17117 (ISA_HAS_UNFUSED_MADD4): New.
17118 (ISA_HAS_FUSED_MADDF): New.
17119 (ISA_HAS_FUSED_MADD3): New.
17120 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
17121 (*fma<mode>4_madd3) New.
17122 (*fma<mode>4_madd4) New.
17123 (*fma<mode>4_maddf) New.
17125 (*fms<mode>4_msub3) New.
17126 (*fms<mode>4_msub4) New.
17128 (*fnma<mode>4_nmadd3) New.
17129 (*fnma<mode>4_nmadd4) New.
17131 (*fnms<mode>4_nmsub3) New.
17132 (*fnms<mode>4_nmsub4) New.
17133 (*madd4<mode>) Modify to be unfused only.
17134 (*msub4<mode>) Modify to be unfused only.
17135 (*nmadd4<mode>) Modify to be unfused only.
17136 (*nmsub4<mode>) Modify to be unfused only.
17137 (*madd3<mode>) Remove.
17138 (*msub3<mode>) Remove.
17139 (*nmadd3<mode>) Remove.
17140 (*nmsub3<mode>) Remove.
17141 (*nmadd3<mode>_fastmath) Remove.
17142 (*nmsub3<mode>_fastmath) Remove.
17143 (*nmadd4<mode>_fastmath) Update condition.
17144 (*nmsub4<mode>_fastmath) Update condition.
17146 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
17149 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
17150 alignment attribute, exploring one level down for records and arrays.
17152 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17154 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
17155 modes for operands 0 and 1. Use SImode for operands 2 and 3.
17156 Copy operand 1 to a temporary if !ext_register_operand. Remove
17157 ancient extract_bit_field workaround.
17158 (*extv<mode>): Rename from *mov<mode>_extv_1.
17159 (*extvqi): Rename from *movqi_extv_1.
17160 (extzv<mode>): Rename from extzv. Use SWI248 modes for
17161 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
17162 to a temporary if !ext_register_operand. Remove ancient
17163 extract_bit_field workaround.
17164 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
17165 (*extzvqi): Rename from *movqi_extzv_2.
17166 (*testqi_ext_3): Remove modes from const_int_operand predicated
17167 operands. Add "n" constraint.
17168 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
17169 operand. Add "J" constraint.
17170 (*btsq, *btrq, *btcq peephole2s): Remove mode from
17171 const_0_to_63 predicated operand.
17172 (regmode): New insn attribute.
17173 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
17174 to nonmemory_operand. Use regmode insn attribute.
17175 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
17176 (*jcc_bt<mode>_mask): Remove mode from operand 3.
17177 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
17178 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
17179 operands. Use "N" constraint instead of "n".
17181 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
17183 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
17185 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17188 * config/i386/i386.c (iamcu_cost): New.
17189 (m_IAMCU): Likewise.
17190 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
17191 (processor_target_table): Add an entry for "iamcu".
17192 (processor_alias_table): Likewise.
17193 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
17194 (ix86_adjust_cost): Likewise.
17195 (ia32_multipass_dfa_lookahead): Likewise.
17196 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
17197 * config/i386/x86-tune.def: Updated for m_IAMCU.
17199 2015-07-06 Richard Biener <rguenther@suse.de>
17201 PR tree-optimization/66772
17202 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
17203 values are available in the PHI node BB when there are
17204 still unexecutable edges.
17206 2015-07-06 Richard Biener <rguenther@suse.de>
17208 PR tree-optimization/66767
17209 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
17210 Make sure to build the alignment test on a SSA name without
17211 final alignment info valid only if the alignment test
17214 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
17217 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
17218 loop start when inserting LSETUP.
17220 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17223 * config/i386/i386.c (ix86_option_override_internal): Allow
17224 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
17226 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17228 * read-md.c (decimal_string): Rename to ...
17229 (md_decimal_string): ... this.
17230 (handle_enum): Reflect this.
17232 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
17235 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
17237 2015-07-06 Richard Biener <rguenther@suse.de>
17239 PR middle-end/66759
17240 * match.pd: Add missing constraint of y to REAL_CST in
17241 REAL_CST - x CMP y to y - CST CMP x simplification.
17243 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
17245 PR tree-optimization/66757
17246 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
17248 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
17249 Sandra Loosemore <sandra@codesourcery.com>
17251 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
17252 Delete extern declaration.
17253 (gprel_constant_p): Add extern declaration.
17254 * config/nios2/constraints.md ("S"): Use gprel_constant_p
17255 instead of nios2_symbol_ref_in_small_data_p.
17256 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
17257 (nios2_symbol_ref_in_small_data_p): Make static.
17258 (gprel_constant_p): Make non-static.
17260 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
17262 * doc/fragments.texi (Target Fragment): Convert debian.org
17264 * doc/install.texi (Configuration): Ditto.
17266 2015-07-05 Jakub Jelinek <jakub@redhat.com>
17268 PR tree-optimization/66718
17269 * tree-vect-stmts.c (vectorizable_call): Replace uses of
17270 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
17272 PR tree-optimization/66718
17273 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
17274 vectorizable_load, vectorizable_condition): Move vectype,
17275 nunits, ncopies computation after checking what kind of statement
17278 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17280 * target-insns.def (extv, extzv, insv): New targetm instruction
17282 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
17284 * recog.c (simplify_while_replacing): Likewise.
17286 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17288 * target-insns.def (doloop_begin, doloop_end): New targetm
17289 instruction patterns.
17290 * loop-init.c: Include target.h.
17291 (pass_loop2::gate): Use the new targetm patterns instead of
17292 HAVE_*/gen_* interface.
17293 (pass_rtl_doloop::gate): Likewise.
17294 (pass_rtl_doloop::execute): Remove preprocessor condition.
17295 * hw-doloop.c: Build unconditionally.
17296 * loop-doloop.c: Likewise.
17297 (doloop_optimize): Use the new targetm patterns instead of
17298 HAVE_*/gen_* interface.
17299 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
17300 * modulo-sched.c (doloop_register_get): Likewise.
17302 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17304 * target-insns.def (clear_cache): New targetm instruction pattern.
17305 * builtins.c (expand_builtin___clear_cache): Use it instead of
17306 HAVE_*/gen_* interface.
17308 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17310 * target-insns.def (allocate_stack, check_stack, probe_stack)
17311 (probe_stack_address, split_stack_prologue, split_stack_space_check):
17312 New targetm instruction patterns.
17313 * explow.c (allocate_dynamic_stack_space): Use them instead of
17314 HAVE_*/gen_* interface.
17315 (emit_stack_probe): Likewise.
17316 (probe_stack_range): Likewise.
17317 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17319 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17321 * target-insns.def (stack_protect_set, stack_protect_test): New
17322 targetm instruction patterns.
17323 * cfgexpand.c (stack_protect_prologue): Use them instead of
17324 HAVE_*/gen_* interface.
17325 * function.c (stack_protect_epilogue): Likewise.
17327 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17329 * expr.h (gen_move_insn_uncast): Delete.
17330 * expr.c (gen_move_insn_uncast): Delete.
17332 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17334 * target-insns.def (restore_stack_block, restore_stack_function)
17335 (restore_stack_nonlocal, save_stack_block, save_stack_function)
17336 (save_stack_nonlocal): New targetm instruction patterns.
17337 * builtins.c (expand_builtin_apply): Use them instead of
17338 HAVE_*/gen_* interface.
17339 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
17341 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17343 * target-insns.def (trap): New targetm instruction pattern.
17344 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
17346 * explow.c (allocate_dynamic_stack_space): Likewise.
17347 * ifcvt.c (find_if_header): Likewise.
17349 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17351 * target-insns.def (prefetch): New targetm instruction pattern.
17352 * tree-ssa-loop-prefetch.c: Include targeth.
17353 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
17354 of HAVE_*/gen_* interface.
17355 * builtins.c (expand_builtin_prefetch): Likewise.
17356 * toplev.c (process_options): Likewise.
17358 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17360 * target-insns.def (untyped_call, untyped_return): New targetm
17361 instruction patterns.
17362 * builtins.c (expand_builtin_apply): Use them instead of
17363 HAVE_*/gen_* interface.
17364 (result_vector): Define unconditionally.
17366 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17368 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
17369 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
17370 (nonlocal_goto_receiver): New targetm instruction patterns.
17371 * builtins.c (expand_builtin_setjmp_setup): Use them instead
17372 of HAVE_*/gen_* interface.
17373 (expand_builtin_setjmp_receiver): Likewise.
17374 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
17375 * except.c (expand_dw2_landing_pad_for_region): Likewise.
17377 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17379 * target.def: Add code_for_* hooks.
17380 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
17381 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
17382 * target-insns.def (casesi, tablejump): New targetm instruction
17384 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
17385 (do_tablejump): Likewise.
17386 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
17387 (expand_sjlj_dispatch_table): Likewise.
17388 * targhooks.c (default_case_values_threshold): Likewise.
17390 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
17392 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
17393 Use rtx_insn * instead of rtx.
17394 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
17395 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
17396 (nios2_call_tls_get_addr): Likewise.
17397 (nios2_emit_expensive_div): Likewise.
17398 (nios2_emit_move_sequence): Change return type to bool.
17399 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
17400 Change return type to bool.
17402 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
17405 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
17407 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
17410 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
17411 of register_operand. Remove constraint.
17413 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
17415 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
17416 the first argument.
17418 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
17420 * attribs.c (decl_attributes): Guard inform with the return value
17421 of the preceding warning.
17423 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
17425 * doc/invoke.texi (moverride): Move to correct section.
17427 2015-07-03 Richard Biener <rguenther@suse.de>
17429 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
17431 (dt_operand::gen_gimple_expr): After valueizing operands
17432 re-canonicalize operand order for commutative tree codes.
17434 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
17437 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
17439 (__crc32w): Likewise.
17440 (__crc32d): Likewise.
17441 (__rdpmc): Likewise.
17442 (__rdtscp): Likewise.
17443 (_rdpmc): Likewise.
17444 (_rdtscp): Likewise.
17445 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
17448 2015-07-03 Richard Biener <rguenther@suse.de>
17450 * fold-const.c (fold_mathfn_compare): Remove.
17451 (fold_inf_compare): Likewise.
17452 (fold_comparison): Move floating point comparison simplifications...
17453 * match.pd: ... to patterns here. Introduce simple_comparisons
17454 operator list and use it for patterns formerly in fold_comparison.
17456 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
17458 PR tree-optimization/66119
17459 * toplev.c (process_options): Don't set up default values for
17460 the sra_max_scalarization_size_{speed,size} parameters.
17461 * tree-sra (analyze_all_variable_accesses): If no values
17462 have been set for the sra_max_scalarization_size_{speed,size}
17463 parameters, call get_move_ratio to get target defaults.
17465 2015-07-03 Richard Biener <rguenther@suse.de>
17467 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
17468 * match.pd: ... here.
17470 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
17473 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
17474 is not actually the default on FreeBSD.
17476 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17478 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
17480 (CMPGE_8HI): Likewise.
17481 (CMPGE_4SI): Likewise.
17482 (CMPGE_2DI): Likewise.
17483 (CMPGE_U16QI): Likewise.
17484 (CMPGE_U8HI): Likewise.
17485 (CMPGE_U4SI): Likewise.
17486 (CMPGE_U2DI): Likewise.
17487 (CMPLE_16QI): Likewise.
17488 (CMPLE_8HI): Likewise.
17489 (CMPLE_4SI): Likewise.
17490 (CMPLE_2DI): Likewise.
17491 (CMPLE_U16QI): Likewise.
17492 (CMPLE_U8HI): Likewise.
17493 (CMPLE_U4SI): Likewise.
17494 (CMPLE_U2DI): Likewise.
17495 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17496 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
17497 ALTIVEC_BUILTIN_VEC_CMPLE.
17498 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
17499 floating-point vector modes.
17500 (vector_nlt<mode>): New define_expand.
17501 (vector_nltu<mode>): Likewise.
17502 (vector_ngt<mode>): Likewise.
17503 (vector_ngtu<mode>): Likewise.
17505 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
17507 PR rtl-optimization/66706
17508 * combine.c (make_compound_operation): If an AND of SUBREG of
17509 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
17511 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
17513 * tree-pass.h (make_pass_ch_vect): New.
17514 * passes.def: Add pass_ch_vect just before pass_if_conversion.
17516 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
17517 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
17518 make_pass_ch_vect): New.
17519 (pass_ch): Extend ch_base.
17521 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
17522 (ch_base::copy_headers): ...here.
17524 2015-07-02 Richard Biener <rguenther@suse.de>
17526 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
17527 * fold-const.c (get_pointer_modulus_and_residue): Remove.
17528 (fold_binary_loc): Implement (T)ptr & CST in terms of
17529 get_pointer_alignment_1.
17530 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
17531 Make sure to build the alignment test on a SSA name without
17532 final alignment info valid only after the prologue.
17534 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
17536 * config/cris/cris.md ("epilogue"): Remove condition.
17537 ("prologue"): Ditto.
17539 2015-07-02 Richard Biener <rguenther@suse.de>
17541 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
17542 parameter to record a condition that is false.
17543 (record_conditions): When recording an extra NE_EXPR that is
17544 true also record a EQ_EXPR that is false.
17546 2015-07-02 Bin Cheng <bin.cheng@arm.com>
17548 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
17549 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
17550 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
17551 (set_iv, find_interesting_uses_address, add_candidate_1): New
17552 argument to alloc_iv.
17553 (find_interesting_uses_op, find_interesting_uses_cond): Don't
17554 duplicate struct iv.
17555 (free_loop_data): Don't free struct iv explicitly.
17556 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
17558 2015-07-01 DJ Delorie <dj@redhat.com>
17560 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
17562 (SUPPORTS_DISCRIMINATOR): Define.
17564 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
17567 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
17568 there are no CALLs in the same pattern.
17570 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17572 PR rtl-optimization/61047
17573 * rtlanal.c (get_initial_register_offset): New function.
17574 (rtx_addr_can_trap_p_1): Check offsets of stack references.
17576 2015-07-01 Richard Biener <rguenther@suse.de>
17578 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
17579 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
17580 ~X CMP C -> X CMP' ~C to ...
17581 * match.pd: ... patterns here.
17583 2015-07-01 Nick Clifton <nickc@redhat.com>
17585 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
17586 a 16-bit value into a 20-bit memory slot.
17588 2015-07-01 Jiong Wang <jiong.wang@arm.com>
17590 * doc/sourcebuild.texi (AArch64-specific attributes): Document
17591 "aarch64_tiny", "aarch64_small", "aarch64_large",
17592 "aarch64_little_endian", "aarch64_big_endian".
17594 2015-07-01 Jiong Wang <jiong.wang@arm.com>
17596 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
17597 Document "aarch64_small_fpic".
17599 2015-07-01 Jiong Wang <jiong.wang@arm.com>
17601 * configure.ac: Add check for aarch64 assembler -fpic relocation
17603 * configure: Regenerate.
17604 * config.in: Regenerate.
17605 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
17606 to -fPIC if not support of -fpic relocation modifier in assembler.
17608 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
17611 * rtl.c (classify_insn): Handle returns in PARALLELs.
17613 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
17615 PR middle-end/66633
17616 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
17617 to true if the function is nested and if not optimizing.
17618 (convert_local_omp_clauses): Initialize need_frame to true if the
17619 function contains nested functions and if not optimizing.
17621 2015-07-01 Richard Biener <rguenther@suse.de>
17623 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
17624 (X & Y) ^ Y -> ~X & Y transforms to ...
17625 * match.pd: ... here.
17627 2015-07-01 Richard Biener <rguenther@suse.de>
17629 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
17630 of converts to avoid uninteresting noise from the conversion
17631 simplifying patterns.
17633 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
17635 * config/c6x/c6x.c (try_rename_operands): Do not depend on
17636 gcc_assert evaluating its argument for side-effect.
17638 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
17641 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
17644 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17646 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
17647 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
17648 (hash_scc): Add this_ref_p and ref_p parameters and pass them
17649 to the inner DFS walk.
17651 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17653 * target-insns.def (jump): New targetm instruction pattern.
17654 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
17655 instead of gen_jump.
17656 (fix_up_crossing_landing_pad): Likewise.
17657 (add_labels_and_missing_jumps): Likewise.
17658 (fix_crossing_conditional_branches): Likewise.
17659 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
17660 (force_nonfallthru_and_redirect): Likewise.
17661 * cse.c (cse_insn): Likewise.
17662 * expmed.c (expand_divmod): Likewise.
17663 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
17664 * haifa-sched.c (init_before_recovery): Likewise.
17665 (sched_create_recovery_edges): Likewise.
17666 * ifcvt.c (find_cond_trap): Likewise.
17667 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
17668 (expand_float, expand_fix): Likewise.
17669 * stmt.c (emit_jump): Likewise.
17671 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17673 * defaults.h (HAVE_load_multiple, gen_load_multiple)
17674 (HAVE_store_multiple, gen_store_multiple): Delete.
17675 * target-insns.def (load_multiple, store_multiple): New targetm
17676 instruction patterns.
17677 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
17678 of HAVE_*/gen_* interface.
17680 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17682 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
17683 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
17684 (gen_mem_signal_fence): Delete.
17685 * target-insns.def (mem_signal_fence, mem_thread_fence)
17686 (memory_barrier): New targetm instruction patterns.
17687 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
17689 (expand_mem_signal_fence): Likewise.
17691 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17693 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
17694 * target-insns.def (epilogue, prologue, sibcall_prologue): New
17695 targetm instruction patterns.
17696 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
17698 * calls.c (expand_call): Likewise.
17699 * cfgrtl.c (cfg_layout_finalize): Likewise.
17700 * df-scan.c (df_get_entry_block_def_set): Likewise.
17701 (df_get_exit_block_use_set): Likewise.
17702 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
17703 * final.c (final_start_function): Likewise.
17704 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17705 (reposition_prologue_and_epilogue_notes): Likewise.
17706 * reorg.c (find_end_label): Likewise.
17707 * toplev.c (process_options): Likewise.
17709 2015-06-30 David Malcolm <dmalcolm@redhat.com>
17711 * typed-splay-tree.h: New file.
17713 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
17716 * lra-int.h (lra_substitute_pseudo): Add a parameter.
17717 (lra_substitute_pseudo_within_insn): Ditto.
17718 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
17720 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
17721 to lra_substitute_pseudo.
17722 * lra-lives.c (process_bb_lives): Add an argument to
17723 lra_substitute_pseudo_within_insn call.
17724 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
17725 argument to lra_substitute_pseudo and
17726 lra_substitute_pseudo_within_insn calls.
17727 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
17729 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
17731 * configure: Regenerated.
17733 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
17735 * config.gcc: Support i[34567]86-*-elfiamcu target.
17736 * config/i386/iamcu.h: New.
17737 * config/i386/i386.opt: Add -miamcu.
17738 * doc/invoke.texi: Document -miamcu.
17739 * common/config/i386/i386-common.c (ix86_handle_option): Turn
17740 off x87/MMX/SSE/AVX codegen for -miamcu.
17741 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17742 __iamcu/__iamcu__ for -miamcu.
17743 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
17744 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
17745 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
17746 * config/i386/i386.c (ix86_option_override_internal): Ignore and
17747 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
17748 MCU by default. Default long double to 64-bit for Intel MCU.
17749 Turn on -freg-struct-return for Intel MCU. Issue an error when
17750 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
17752 (function_arg_advance_32): Pass value whose size is no larger
17753 than 8 bytes in registers for Intel MCU.
17754 (function_arg_32): Likewise.
17755 (ix86_return_in_memory): Return value whose size is no larger
17756 than 8 bytes in registers for Intel MCU.
17757 (iamcu_alignment): New function.
17758 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
17760 (ix86_local_alignment): Don't increase alignment for Intel MCU.
17761 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
17764 2015-06-30 Marek Polacek <polacek@redhat.com>
17766 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
17767 both operands of the resulting expression.
17769 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
17770 the final expression with the operand's type and then convert
17771 it to the type of the expression.
17773 2015-06-30 Richard Biener <rguenther@suse.de>
17775 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
17776 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
17777 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
17778 * match.pd: ... to patterns here.
17780 2015-06-30 Richard Biener <rguenther@suse.de>
17782 PR tree-optimization/66704
17783 * tree-vect-data-refs.c (vect_setup_realignment): Use
17784 make_ssa_name for non-SSA name source.
17786 2015-06-30 Jakub Jelinek <jakub@redhat.com>
17788 PR middle-end/66702
17789 * omp-low.c (simd_clone_adjust): Handle addressable linear
17790 or uniform parameters or non-gimple type uniform parameters.
17792 2015-06-30 Richard Biener <rguenther@suse.de>
17794 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
17795 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
17796 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
17797 * match.pd: ... here.
17798 Add a few cases of A - B -> A + (-B) when B "easily" negates.
17799 Move (x & y) | x -> x and friends before
17800 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
17802 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17804 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
17805 -mfix-ut699 is not specified.
17806 (leon3_load): Rename into...
17807 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
17810 2015-06-30 Marek Polacek <polacek@redhat.com>
17812 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
17813 * match.pd: ... here.
17815 2015-06-30 Richard Biener <rguenther@suse.de>
17817 * target-insns.def (canonicalize_funcptr_for_compare): Add.
17818 * fold-const.c (build_range_check): Replace uses of
17819 HAVE_canonicalize_funcptr_for_compare.
17820 (fold_widened_comparison): Likewise.
17821 (fold_sign_changed_comparison): Likewise.
17822 * dojump.c: Include "target.h".
17823 (do_compare_and_jump): Replace uses of
17824 HAVE_canonicalize_funcptr_for_compare and
17825 gen_canonicalize_funcptr_for_compare.
17826 * expr.c (do_store_flag): Likewise.
17828 2015-06-30 Tom de Vries <tom@codesourcery.com>
17830 PR tree-optimization/66652
17831 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
17832 max_loop_iterations to determine if nit + 1 overflows.
17834 2015-06-30 Richard Biener <rguenther@suse.de>
17836 * tree-vrp.c (register_edge_assert_for_2): Also register
17837 asserts for dominating conversion results.
17839 2015-06-30 Bin Cheng <bin.cheng@arm.com>
17841 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
17842 field in struct iv.
17844 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
17847 * configure.ac: Fix filds and fildq test for 64-bit.
17848 * configure: Regenerated.
17850 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
17852 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17853 (nvptx_reorg): Here. Keep the non-subreg pieces.
17855 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
17857 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17858 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17860 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
17862 * config/i386/i386.md (*jcc_1): Use %! in asm template.
17863 Set attribute "length_nobnd" instead of "length".
17866 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17868 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
17870 * config/nios2/nios2.c (nios2_delegitimize_address): Make
17871 assert less restrictive.
17873 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
17876 * cgraphunit.c (cgraph_node::finalize_function): Do not call
17877 do_warn_unused_parameter.
17878 * function.c (do_warn_unused_parameter): Move from here.
17879 * function.h (do_warn_unused_parameter): Do not declare.
17881 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17884 * gcc.target/arm/armv-sync-comp-swap.c: New.
17885 * gcc.target/arm/armv-sync-op-acquire.c: New.
17886 * gcc.target/arm/armv-sync-op-full.c: New.
17887 * gcc.target/arm/armv-sync-op-release.c: New.
17889 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17892 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17893 initial acquire barrier with final barrier.
17895 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17898 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17899 initial acquire barrier with final barrier.
17901 2015-06-29 Richard Henderson <rth@redhat.com>
17903 * config/i386/constraints.md (Bf): New constraint.
17904 * config/i386/i386-c.c (ix86_target_macros): Define
17905 __GCC_ASM_FLAG_OUTPUTS__.
17906 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17908 * doc/extend.texi (FlagOutputOperands): Document them.
17910 2015-06-29 Jiong Wang <jiong.wang@arm.com>
17912 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17913 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17915 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17916 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17917 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17918 (aarch64_symbol_context): Ditto.
17919 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17920 and use new pattern name.
17921 (aarch64_expand_mov_immediate): Ditto.
17922 (aarch64_print_operand): Ditto.
17923 (aarch64_classify_tls_symbol): Ditto.
17925 2015-06-29 Marek Polacek <polacek@redhat.com>
17926 Marc Glisse <marc.glisse@inria.fr>
17928 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17929 * match.pd: ... pattern here.
17931 2015-06-29 Tom de Vries <tom@codesourcery.com>
17933 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17934 function structure.
17936 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17938 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17939 feature description, split out the native option, add a link to
17940 the feature documentation, rearrange and slightly rewrite text.
17941 (Aarch64 options, -mcpu): Likewise.
17942 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
17943 +rdma implies Adv. SIMD.
17945 2015-06-29 Marek Polacek <polacek@redhat.com>
17948 * function.c (stack_protect_epilogue): Remove a cast to int.
17949 * doc/invoke.texi: Update -Wswitch-bool description.
17951 2015-06-29 Richard Biener <rguenther@suse.de>
17953 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17954 * fold-const.c (fold_binary_loc): Move &A - &B simplification
17955 via ptr_difference_const ...
17956 * match.pd: ... here.
17957 When matching (X ^ Y) == Y also match with swapped operands.
17959 2015-06-29 Richard Biener <rguenther@suse.de>
17961 * lto-streamer.h (LTO_major_version): Bump to 5.
17963 2015-06-29 Richard Biener <rguenther@suse.de>
17965 PR tree-optimization/66677
17966 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17967 STMT_VINFO_VEC_STMT clobbering less strict.
17969 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
17971 PR middle-end/64130
17972 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17973 division, compute max and min when value ranges for dividend and
17974 divisor are available.
17976 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
17977 Sandra Loosemore <sandra@codesourcery.com>
17979 * regrename.h (regrename_do_replace): Change to return bool.
17980 * regrename.c (rename_chains): Check return value of
17981 regname_do_replace.
17982 (regrename_do_replace): Re-validate the modified insns and
17983 return bool status.
17984 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17985 Update to match rename_chains changes.
17986 * config/c6x/c6x.c (try_rename_operands): Assert that
17987 regrename_do_replace returns true.
17989 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
17991 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17992 operand 2 here. Use copy_addr_to_reg to copy non-index
17993 register operand 2 to a temporary.
17994 (<mode>_stx): Ditto for operand 1.
17995 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17996 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17997 (ix86_store_bounds): Ditto.
17999 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
18001 * print-tree.c (print_node) [TREE_VEC]: Print its length.
18003 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
18005 * gimple.c (gimple_call_set_fndecl): Remove.
18006 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18007 build1_loc directly instead of build_fold_addr_expr_loc.
18009 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18011 * hash-map.h (hash_map::traverse): Use the definition of the
18012 Key typedef rather than the typedef itself.
18014 2015-06-26 Martin Jambor <mjambor@suse.cz>
18017 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18018 NULL instead of calling dump_enabled_p.
18020 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18022 * config/aarch64/aarch64.opt: (override): New.
18023 * doc/invoke.texi (override): Document.
18024 * config/aarch64/aarch64.c (aarch64_flag_desc): New
18025 (aarch64_fusible_pairs): Likewise.
18026 (aarch64_tuning_flags): Likewise.
18027 (aarch64_tuning_override_function): Likewise.
18028 (aarch64_tuning_override_functions): Likewise.
18029 (aarch64_parse_one_option_token): Likewise.
18030 (aarch64_parse_boolean_options): Likewise.
18031 (aarch64_parse_fuse_string): Likewise.
18032 (aarch64_parse_tune_string): Likewise.
18033 (aarch64_parse_one_override_token): Likewise.
18034 (aarch64_parse_override_string): Likewise.
18035 (aarch64_override_options): Parse the -override string if it
18038 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18040 * config/aarch64/aarch64-protos.h (tune_params): Remove
18041 const from members.
18042 (aarch64_tune_params): Remove const, change to no longer be
18044 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18045 change to no longer be a pointer, initialize to generic_tunings.
18046 (aarch64_min_divisions_for_recip_mul): Change dereference of
18047 aarch64_tune_params to member access.
18048 (aarch64_reassociation_width): Likewise.
18049 (aarch64_rtx_mult_cost): Likewise.
18050 (aarch64_address_cost): Likewise.
18051 (aarch64_branch_cost): Likewise.
18052 (aarch64_rtx_costs): Likewise.
18053 (aarch64_register_move_cost): Likewise.
18054 (aarch64_memory_move_cost): Likewise.
18055 (aarch64_sched_issue_rate): Likewise.
18056 (aarch64_builtin_vectorization_cost): Likewise.
18057 (aarch64_override_options): Take a copy of the selected tuning
18058 struct in to aarch64_tune_params, rather than just setting
18059 a pointer, change dereferences of aarch64_tune_params to member
18061 (aarch64_override_options_after_change): Change dereferences of
18062 aarch64_tune_params to member access.
18063 (aarch64_macro_fusion_p): Likewise.
18064 (aarch_macro_fusion_pair_p): Likewise.
18065 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18067 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18069 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18070 (aarch64_tune_flags): Likewise.
18071 (AARCH64_TUNE_FMA_STEERING): Likewise.
18072 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18073 to AARCH64_FL_USE_FMA_STEERING_PASS.
18074 (cortex-a57.cortex-a53): Likewise.
18075 (cortex-a72): Use cortexa72_tunings.
18076 (cortex-a72.cortex-a53): Likewise.
18077 (exynos-m1): Likewise.
18078 * config/aarch64/aarch64-protos.h (tune_params): Add
18079 a field: extra_tuning_flags.
18080 * config/aarch64/aarch64-tuning-flags.def: New.
18081 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18082 (aarch64_extra_tuning_flags): Likewise.
18083 (aarch64_tune_params): Declare here.
18084 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18085 (cortexa53_tunings): Likewise.
18086 (cortexa57_tunings): Likewise.
18087 (thunderx_tunings): Likewise.
18088 (xgene1_tunings): Likewise.
18089 (cortexa72_tunings): New.
18090 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18091 (gate): Check against aarch64_tune_params.
18092 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18095 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18097 * config/aarch64/aarch64-fusion-pairs.def: New.
18098 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18099 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18100 aarch64_fusion_pairs.
18101 (AARCH64_FUSE_MOV_MOVK): Likewise.
18102 (AARCH64_FUSE_ADRP_ADD): Likewise.
18103 (AARCH64_FUSE_MOVK_MOVK): Likewise.
18104 (AARCH64_FUSE_ADRP_LDR): Likewise.
18105 (AARCH64_FUSE_CMP_BRANCH): Likewise.
18107 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18109 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
18110 SYMBOL_SMALL_GOT_28K.
18111 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
18112 relocation modifiers.
18113 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
18114 (ldr_got_small_28k_<mode>): New.
18115 (ldr_got_small_28k_sidi): New.
18116 * config/aarch64/iterators.md (got_modifier): New mode iterator.
18117 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
18118 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18119 SYMBOL_SMALL_GOT_28K.
18120 (aarch64_rtx_costs): Add costs for new instruction sequences.
18121 (initialize_aarch64_code_model): Initialize new model.
18122 (aarch64_classify_symbol): Recognize new model and new symbol classification.
18123 (aarch64_asm_preferred_eh_data_format): Support new model.
18124 (aarch64_load_symref_appropriately): Generate new instruction
18125 sequences for -fpic.
18126 (TARGET_USE_PSEUDO_PIC_REG): New definition.
18127 (aarch64_use_pseudo_pic_reg): New function.
18129 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18131 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18132 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
18133 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
18134 (aarch64_expand_mov_immediate): Ditto.
18135 (aarch64_print_operand): Ditto.
18136 (aarch64_classify_symbol): Ditto.
18138 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
18140 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
18142 2015-06-26 Bin Cheng <bin.cheng@arm.com>
18145 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
18146 assertion failed. Remove assertion itself.
18148 2015-06-26 Richard Biener <rguenther@suse.de>
18150 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
18151 and -A CMP CST -> A CMP -CST which is redundant with a pattern
18153 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
18154 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
18155 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
18156 * match.pd: ... patterns here.
18158 2015-06-26 Marek Polacek <polacek@redhat.com>
18160 * match.pd ((x | y) & ~(x & y) -> x ^ y,
18161 (x | y) & (~x ^ y) -> x & y): New patterns.
18163 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18165 * rtl.h (emit): Add an optional boolean parameter to control
18166 whether barriers are emitted.
18167 * emit-rtl.c (emit): Likewise.
18168 * gensupport.c (get_emit_function): Return null rather than "emit".
18169 * genemit.c (gen_emit_seq): Handle the null return value.
18170 Don't emit barriers after the final instruction in the sequence.
18171 * gentarget-def.c (main): Don't emit barriers after the instruction.
18173 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18175 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
18176 TARGET_UNIFIED_ASM.
18178 2015-06-26 Richard Biener <rguenther@suse.de>
18180 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
18182 2015-06-26 Richard Biener <rguenther@suse.de>
18184 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
18185 irrespective on whether the inner operation has a single use
18186 of both off are constant.
18188 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
18189 Segher Boessenkool <segher@kernel.crashing.org>
18192 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
18193 before doing PUT_MODE or PUT_CODE on operands to avoid
18194 in-place RTX modification.
18196 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
18198 * gentarget-def.c (def_target_insn): Cast return of strtol to
18201 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18203 * gimple.h (gimple_call_set_fn): Move inline function.
18204 * gimple.c (gimple_call_set_fn): Relocate here.
18206 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
18210 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
18211 the replacement insn will work.
18213 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
18215 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
18218 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18220 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
18221 * cgraph.h: Include ipa-ref.h and plugin-api.h.
18222 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
18223 (symtab_node::address_can_be_compared_p): Move function.
18224 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
18226 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
18227 * auto-profile.c: Likewise.
18228 * bb-reorder.c: Likewise.
18229 * builtins.c: Likewise.
18230 * calls.c: Likewise.
18231 * cfgexpand.c: Likewise.
18232 * cgraphbuild.c: Likewise.
18233 * cgraphclones.c: Likewise.
18234 * cgraphunit.c: Likewise.
18235 * combine.c: Likewise.
18236 * coverage.c: Likewise.
18237 * data-streamer-in.c: Likewise.
18238 * data-streamer-out.c: Likewise.
18239 * data-streamer.c: Likewise.
18240 * dbxout.c: Likewise.
18241 * dwarf2out.c: Likewise.
18242 * except.c: Likewise.
18243 * expr.c: Likewise.
18244 * final.c: Likewise.
18245 * fold-const.c: Likewise.
18246 * ggc-page.c: Likewise.
18247 * gimple-fold.c: Likewise.
18248 * gimple-iterator.c: Likewise.
18249 * gimple-pretty-print.c: Likewise.
18250 * gimple-streamer-in.c: Likewise.
18251 * gimple-streamer-out.c: Likewise.
18252 * gimple.c: Likewise.
18253 * gimplify.c: Likewise.
18254 * ipa-chkp.c: Likewise.
18255 * ipa-comdats.c: Likewise.
18256 * ipa-cp.c: Likewise.
18257 * ipa-devirt.c: Likewise.
18258 * ipa-icf-gimple.c: Likewise.
18259 * ipa-icf.c: Likewise.
18260 * ipa-inline-analysis.c: Likewise.
18261 * ipa-inline-transform.c: Likewise.
18262 * ipa-inline.c: Likewise.
18263 * ipa-polymorphic-call.c: Likewise.
18264 * ipa-profile.c: Likewise.
18265 * ipa-prop.c: Likewise.
18266 * ipa-pure-const.c: Likewise.
18267 * ipa-ref.c: Likewise.
18268 * ipa-reference.c: Likewise.
18269 * ipa-split.c: Likewise.
18270 * ipa-utils.c: Likewise.
18271 * ipa-visibility.c: Likewise.
18273 * langhooks.c: Likewise.
18274 * lto-cgraph.c: Likewise.
18275 * lto-compress.c: Likewise.
18276 * lto-opts.c: Likewise.
18277 * lto-section-in.c: Likewise.
18278 * lto-section-out.c: Likewise.
18279 * lto-streamer-in.c: Likewise.
18280 * lto-streamer-out.c: Likewise.
18281 * lto-streamer.c: Likewise.
18282 * omp-low.c: Likewise.
18283 * opts-global.c: Likewise.
18284 * passes.c: Likewise.
18285 * predict.c: Likewise.
18286 * print-tree.c: Likewise.
18287 * profile.c: Likewise.
18289 * sanopt.c: Likewise.
18290 * stor-layout.c: Likewise.
18291 * symtab.c: Likewise.
18292 * toplev.c: Likewise.
18293 * trans-mem.c: Likewise.
18294 * tree-cfg.c: Likewise.
18295 * tree-chkp.c: Likewise.
18296 * tree-eh.c: Likewise.
18297 * tree-emutls.c: Likewise.
18298 * tree-inline.c: Likewise.
18299 * tree-nested.c: Likewise.
18300 * tree-parloops.c: Likewise.
18301 * tree-pretty-print.c: Likewise.
18302 * tree-profile.c: Likewise.
18303 * tree-sra.c: Likewise.
18304 * tree-ssa-alias.c: Likewise.
18305 * tree-ssa-live.c: Likewise.
18306 * tree-ssa-loop-ivcanon.c: Likewise.
18307 * tree-ssa-loop-ivopts.c: Likewise.
18308 * tree-ssa-pre.c: Likewise.
18309 * tree-ssa-sccvn.c: Likewise.
18310 * tree-ssa-strlen.c: Likewise.
18311 * tree-ssa-structalias.c: Likewise.
18312 * tree-streamer-in.c: Likewise.
18313 * tree-streamer-out.c: Likewise.
18314 * tree-streamer.c: Likewise.
18315 * tree-switch-conversion.c: Likewise.
18316 * tree-tailcall.c: Likewise.
18317 * tree-vect-data-refs.c: Likewise.
18318 * tree-vect-stmts.c: Likewise.
18319 * tree-vectorizer.c: Likewise.
18320 * tree.c: Likewise.
18321 * tsan.c: Likewise.
18322 * ubsan.c: Likewise.
18323 * value-prof.c: Likewise.
18324 * varasm.c: Likewise.
18325 * varpool.c: Likewise.
18326 * config/arm/arm.c: Likewise.
18327 * config/bfin/bfin.c: Likewise.
18328 * config/c6x/c6x.c: Likewise.
18329 * config/cris/cris.c: Likewise.
18330 * config/darwin-c.c: Likewise.
18331 * config/darwin.c: Likewise.
18332 * config/i386/i386.c: Likewise.
18333 * config/i386/winnt.c: Likewise.
18334 * config/microblaze/microblaze.c: Likewise.
18335 * config/mips/mips.c: Likewise.
18336 * config/rs6000/rs6000.c: Likewise.
18337 * config/rx/rx.c: Likewise.
18338 * config/s390/s390.c: Likewise.
18339 * config/tilegx/mul-tables.c: Likewise.
18341 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18343 * config/aarch64/aarch64.c, config/alpha/alpha.c,
18344 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
18345 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
18346 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
18347 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
18348 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
18349 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
18350 config/microblaze/microblaze.c, config/mips/mips.c,
18351 config/mmix/mmix.c, config/mn10300/mn10300.c,
18352 config/moxie/moxie.c, config/msp430/msp430.c,
18353 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
18354 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
18355 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
18356 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
18357 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18358 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
18359 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
18360 target-def.h include.
18361 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
18363 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18365 * Makefile.in (TARGET_DEF): Add target-insns.def.
18366 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
18367 (build/gentarget-def.o): New rule.
18368 (genprogrtl): Add target-def.
18369 * target-insns.def, gentarget-def.c: New files.
18370 * target.def: Add targetm.have_* and targetm.gen_* hooks,
18371 based on the contents of target-insns.def.
18372 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
18373 (HAVE_return, gen_return): Delete.
18374 * target-def.h: Include insn-target-def.h.
18375 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
18376 instead of direct calls. Rely on them to do the appropriate assertions.
18377 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
18378 (convert_jumps_to_returns): Use targetm interface instead of
18380 (thread_prologue_and_epilogue_insns): Likewise.
18381 * reorg.c (find_end_label, dbr_schedule): Likewise.
18382 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
18383 * shrink-wrap.c (convert_to_simple_return): Likewise.
18384 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
18386 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18388 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
18389 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18390 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
18391 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
18392 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
18393 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
18394 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
18395 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
18396 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
18397 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
18398 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
18399 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
18400 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
18401 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
18402 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
18403 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
18406 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18408 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
18409 (unbounded_int_hashmap_traits::key_type): Likewise.
18410 * hash-map.h (hash_map): Get the key type from the traits.
18411 * hash-traits.h (default_hash_traits): By default, inherit from the
18412 template parameter.
18413 * alias.c (alias_set_traits): Delete.
18414 (alias_set_entry_d::children): Use alias_set_hash as the first
18415 template parameter.
18416 (record_alias_subset): Update accordingly.
18417 * except.c (tree_hash_traits): Delete.
18418 (type_to_runtime_map): Use tree_hash as the first template parameter.
18419 (init_eh): Update accordingly.
18420 * genmatch.c (capture_id_map_hasher): Delete.
18421 (cid_map_t): Use nofree_string_hash as first template parameter.
18422 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
18423 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18424 Use symbol_compare_hash as the first template parameter in
18425 subdivide_hash_map.
18426 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
18427 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
18428 template parameter.
18429 * passes.c (pass_registry_hasher): Delete.
18430 (name_to_pass_map): Use nofree_string_hash as the first template
18432 (register_pass_name): Update accordingly.
18433 * sanopt.c (sanopt_tree_map_traits): Delete.
18434 (sanopt_tree_triplet_map_traits): Delete.
18435 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
18436 template parameter.
18437 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
18438 the first template parameter.
18439 * sese.c (rename_map_hasher): Delete.
18440 (rename_map_type): Use tree_ssa_name_hash as the first template
18442 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
18443 (function_summary::m_map): Use map_hash as the first template
18445 (function_summary::release): Update accordingly.
18446 * tree-if-conv.c (phi_args_hash_traits): Delete.
18447 (predicate_scalar_phi): Use tree_operand_hash as the first template
18448 parameter to phi_arg_map.
18449 * tree-inline.h (dependence_hasher): Delete.
18450 (copy_body_data::dependence_map): Use dependence_hash as the first
18451 template parameter.
18452 * tree-inline.c (remap_dependence_clique): Update accordingly.
18453 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
18454 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
18456 (addr_stridxptr): Update accordingly.
18457 * value-prof.c (profile_id_traits): Delete.
18458 (cgraph_node_map): Use profile_id_hash as the first template
18460 (init_node_map): Update accordingly.
18461 * config/alpha/alpha.c (string_traits): Delete.
18462 (machine_function::links): Use nofree_string_hash as the first
18463 template parameter.
18464 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
18465 * config/m32c/m32c.c (pragma_traits): Delete.
18466 (pragma_htab): Use nofree_string_hash as the first template parameter.
18467 (m32c_note_pragma_address): Update accordingly.
18468 * config/mep/mep.c (pragma_traits): Delete.
18469 (pragma_htab): Use nofree_string_hash as the first template parameter.
18470 (mep_note_pragma_flag): Update accordingly.
18471 * config/mips/mips.c (mips16_flip_traits): Delete.
18472 (mflip_mips16_htab): Use nofree_string_hash as the first template
18474 (mflip_mips16_use_mips16_p): Update accordingly.
18475 (local_alias_traits): Delete.
18476 (mips16_local_aliases): Use nofree_string_hash as the first template
18478 (mips16_local_alias): Update accordingly.
18480 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18482 * hash-map-traits.h (default_hashmap_traits): Delete.
18484 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18486 * hash-map-traits.h (unbounded_hashmap_traits): New class.
18487 (unbounded_int_hashmap_traits): Likewise.
18488 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
18490 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18492 * ipa-icf.h (symbol_compare_hash): New class.
18493 (symbol_compare_hashmap_traits): Use it.
18494 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
18495 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
18496 (mem_alloc_description::reverse_mem_map_t): Remove redundant
18497 default_hashmap_traits.
18498 * sanopt.c (sanopt_tree_triplet_hash): New class.
18499 (sanopt_tree_triplet_map_traits): Use it.
18501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18503 * gengtype-parse.c (require_template_declaration): Allow '+' in
18504 template parameters. Consolidate cases.
18505 * hash-traits.h (int_hash): New class.
18506 * alias.c (alias_set_hash): New structure.
18507 (alias_set_traits): Use it.
18508 * symbol-summary.h (function_summary::map_hash): New class.
18509 (function_summary::summary_hashmap_traits): Use it.
18510 * tree-inline.h (dependence_hash): New class.
18511 (dependence_hasher): Use it.
18512 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
18513 * value-prof.c (profile_id_hash): New class.
18514 (profile_id_traits): Use it.
18516 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18518 * config/mips/mips.c (mips16_flip_traits): Use it.
18519 (local_alias_traits, mips16_local_aliases): Convert from a map of
18520 rtxes to a map of symbol names.
18521 (mips16_local_alias): Update accordingly.
18523 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18525 * hash-traits.h (string_hash, nofree_string_hash): New classes.
18526 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
18527 * passes.c (pass_registry_hasher): Likewise.
18528 * config/alpha/alpha.c (string_traits): Likewise.
18529 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
18530 * config/m32c/m32c.c (pragma_traits): Likewise.
18531 * config/mep/mep.c (pragma_traits): Likewise.
18533 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18535 * tree-hash-traits.h (tree_hash): New class.
18536 * except.c: Include tree-hash-traits.h.
18537 (tree_hash_traits): Use tree_hash.
18539 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18541 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
18542 * sese.c: Include tree-hash-traits.h.
18543 (rename_map_hasher): Use tree_ssa_name_hasher.
18545 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18547 * tree-hash-traits.h (tree_decl_hash): New class.
18548 * tree-ssa-strlen.c: Include tree-hash-traits.h.
18549 (stridxlist_hash_traits): Use tree_decl_hash.
18551 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18553 * tree-hash-traits.h: New file.
18554 (tree_operand_hash): New class.
18555 * sanopt.c: Include tree-hash-traits.h.
18556 (sanopt_tree_map_traits): Use tree_operand_hash.
18557 * tree-if-conv.c: Include tree-hash-traits.h.
18558 (phi_args_hash_traits): Use tree_operand_hash.
18559 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
18560 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
18562 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18564 * hash-map-traits.h: Include hash-traits.h.
18565 (simple_hashmap_traits): New class.
18566 * mem-stats.h (hash_map): Change the default traits to
18567 simple_hashmap_traits<default_hash_traits<Key> >.
18569 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18571 * hash-table.h: Update comments.
18573 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18575 * hash-traits.h (default_hash_traits): New structure.
18576 * hash-set.h (default_hashset_traits): Delete.
18577 (hash_set): Use default_hash_traits<Key> instead of
18578 default_hashset_traits. Delete hash_entry type and use Key directly.
18579 * ipa-devirt.c (pair_traits): Delete.
18580 (default_hash_traits <type_pair>): Override.
18581 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
18582 (odr_types_equivalent_p, add_type_duplicate): Likewise.
18584 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18586 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
18588 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18590 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
18591 (has_is_empty, is_empty_helper): Delete.
18592 (has_mark_deleted, mark_deleted_helper): Delete.
18593 (has_mark_empty, mark_empty_helper): Delete.
18594 (hash_table::is_deleted): Call the Descriptor unconditionally.
18595 (hash_table::is_empty): Likewise.
18596 (hash_table::mark_deleted): Likewise.
18597 (hash_table::mark_empty): Likewise.
18599 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18601 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
18602 redundant typedefs and members.
18603 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
18604 redundant typedefs.
18605 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
18606 * ipa-devirt.c (odr_name_hasher): Likewise.
18607 (polymorphic_call_target_hasher): Likewise.
18608 * ira-costs.c (cost_classes_hasher): Likewise.
18609 * statistics.c (stats_counter_hasher): Likewise.
18610 * trans-mem.c (log_entry_hasher): Likewise.
18611 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
18612 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
18613 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
18614 * var-tracking.c (variable_hasher): Likewise.
18615 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
18616 Remove redundant typedefs and members.
18618 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18620 * hash-traits.h (ggc_cache_hasher): Rename to...
18621 (ggc_cache_remove): ...this and remove typedefs.
18622 (ggc_cache_ptr_hash): New class.
18623 * hash-table.h: Update commentary.
18624 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
18625 rather than ggc_cache_hasher.
18626 (const_wide_int_hasher, reg_attr_hasher): Likewise.
18627 (const_double_hasher, const_fixed_hasher): Likewise.
18628 * function.c (insn_cache_hasher): Likewise.
18629 * trans-mem.c (tm_wrapper_hasher): Likewise.
18630 * tree.h (tree_decl_map_cache_hasher): Likewise.
18631 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
18632 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
18633 * ubsan.c (tree_type_map_cache_hasher): Likewise.
18634 * varasm.c (tm_clone_hasher): Likewise.
18635 * config/i386/i386.c (dllimport_hasher): Likewise.
18636 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
18637 (tree_hasher): Likewise.
18639 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18641 * hash-traits.h (ggc_hasher): Rename to...
18642 (ggc_remover): ...this and remove typedefs.
18643 (ggc_cache_hasher): Update accordingly. Add typedefs.
18644 (ggc_ptr_hash): New class.
18645 * hash-table.h: Update comment.
18646 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
18648 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
18649 (tree_descriptor_hasher): Likewise.
18650 * cgraph.c (function_version_hasher): Likewise.
18651 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
18652 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
18653 (dw_loc_list_hasher, addr_hasher): Likewise.
18654 * function.h (used_type_hasher): Likewise.
18655 * function.c (temp_address_hasher): Likewise.
18656 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
18657 * libfuncs.h (libfunc_hasher): Likewise.
18658 * lto-streamer.h (decl_state_hasher): Likewise.
18659 * optabs.c (libfunc_decl_hasher): Likewise.
18660 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
18661 * varasm.c (section_hasher, object_block_hasher): Likewise.
18662 (const_rtx_desc_hasher): Likewise.
18663 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
18664 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
18666 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18668 * hash-traits.h (free_ptr_hash): New class.
18669 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
18670 rather than typed_free_remove. Remove redudant typedefs.
18671 (external_ref_hasher): Likewise.
18672 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
18673 (ehspec_hasher): Likewise.
18674 * ggc-common.c (saving_hasher): Likewise.
18675 * gimplify.c (gimplify_hasher): Likewise.
18676 * haifa-sched.c (delay_i2_hasher): Likewise.
18677 * loop-invariant.c (invariant_expr_hasher): Likewise.
18678 * loop-iv.c (biv_entry_hasher): Likewise.
18679 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
18680 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
18681 * tree-cfg.c (locus_discrim_hasher): Likewise.
18682 * tree-eh.c (finally_tree_hasher): Likewise.
18683 * tree-into-ssa.c (var_info_hasher): Likewise.
18684 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
18685 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
18686 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
18687 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
18688 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
18689 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
18690 (shared_bitmap_hasher): Likewise.
18691 * tree-ssa-threadupdate.c (redirection_data): Likewise.
18692 * tree-vectorizer.h (peel_info_hasher): Likewise.
18693 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
18694 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
18696 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18698 * hash-table.h: Update comments.
18699 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
18700 (nofree_ptr_hash): New class.
18701 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
18702 than typed_noop_remove. Remove redudant typedefs.
18703 * attribs.c (attribute_hasher): Likewise.
18704 * cfg.c (bb_copy_hasher): Likewise.
18705 * cselib.c (cselib_hasher): Likewise.
18706 * dse.c (invariant_group_base_hasher): Likewise.
18707 * dwarf2cfi.c (trace_info_hasher): Likewise.
18708 * dwarf2out.c (macinfo_entry_hasher): Likewise.
18709 (comdat_type_hasher, loc_list_hasher): Likewise.
18710 * gcse.c (pre_ldst_expr_hasher): Likewise.
18711 * genmatch.c (id_base): Likewise.
18712 * genrecog.c (test_pattern_hasher): Likewise.
18713 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
18714 * haifa-sched.c (delay_i1_hasher): Likewise.
18715 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
18716 * ipa-icf.h (congruence_class_group_hash): Likewise.
18717 * ipa-profile.c (histogram_hash): Likewise.
18718 * ira-color.c (allocno_hard_regs_hasher): Likewise.
18719 * lto-streamer.h (string_slot_hasher): Likewise.
18720 * lto-streamer.c (tree_entry_hasher): Likewise.
18721 * plugin.c (event_hasher): Likewise.
18722 * postreload-gcse.c (expr_hasher): Likewise.
18723 * store-motion.c (st_expr_hasher): Likewise.
18724 * tree-sra.c (uid_decl_hasher): Likewise.
18725 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
18726 (ssa_name_var_hash): Likewise.
18727 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
18728 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
18729 * tree-ssa-pre.c (pre_expr_d): Likewise.
18730 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
18731 * vtable-verify.h (registration_hasher): Likewise.
18732 * vtable-verify.c (vtbl_map_hasher): Likewise.
18733 * config/arm/arm.c (libcall_hasher): Likewise.
18734 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
18735 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
18736 * config/sol2.c (comdat_entry_hasher): Likewise.
18737 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
18738 (print_fold_checksum, fold_checksum_tree): Likewise.
18739 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
18740 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
18741 (fold_build_call_array_loc): Likewise.
18742 * tree-ssa-ccp.c (gimple_htab): Likewise.
18743 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
18744 rather than pointer_type.
18746 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18748 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
18749 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
18751 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18753 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
18754 (ggc_hasher::ggc_mx): Likewise.
18755 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
18756 that duplicate ggc_hasher ones.
18758 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18760 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
18761 (gt_cleare_cache): Check here for deleted and empty entries.
18762 Replace handle_cache_entry with a call to keep_cache_entry.
18763 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
18764 (ggc_cache_hasher::keep_cache_entry): New function.
18765 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
18766 (tm_wrapper_hasher::keep_cache_entry): New function.
18767 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
18768 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18769 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
18770 (type_cache_hasher::keep_cache_entry): New function.
18771 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
18772 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18773 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
18774 (tree_type_map_cache_hasher::keep_cache_entry): New function.
18775 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
18776 (tm_clone_hasher::keep_cache_entry): New function.
18777 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
18778 (dllimport_hasher::keep_cache_entry): New function.
18780 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18782 * hash-table.h: Include hash-traits.h.
18783 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
18784 (ggc_cache_hasher): Move to...
18785 * hash-traits.h: ...this new file.
18787 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18789 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
18790 struct cl_optimization.
18791 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
18792 * tree.c (make_node_stat): Allocate cl_optimization struct.
18793 (copy_node_stat): Allocate and copy cl_optimization struct.
18795 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18797 * function.h (struct incoming_args): Move struct.
18798 (pass_by_reference, reference_callee_copied): Remove prototypes.
18799 * emit-rtl.h (struct incoming_args): Relocate struct here.
18800 * calls.h (pass_by_reference, reference_callee_copied): Relocate
18802 * function.c (pass_by_reference, reference_callee_copied): Move.
18803 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
18804 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
18805 * ipa-chkp.c: Include calls.h.
18807 2015-06-25 Andrew Macleod <amacleod@redhat.com>
18809 * alias.h (alias_set_type): Move typedef.
18810 * coretypes.h (alias_set_type): Relocate typedef here.
18811 * rtl.h: Don't include alias.h.
18813 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18815 * cgraph.h (cgraph_rtl_info): Move to rtl.h
18816 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
18818 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
18819 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
18821 * calls.c: Include hard-reg-set.h before rtl.h.
18824 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18825 Vladimir Makarov <vmakarov@redhat.com>
18827 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
18830 2015-06-25 Richard Biener <rguenther@suse.de>
18832 * fold-const.c (fold_binary_loc): Move simplification of
18833 (X <<>> C1) & C2 ...
18834 * match.pd: ... here.
18836 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
18838 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
18840 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18842 * match.pd: Add patterns for vec_conds between 1 and 0.
18844 2015-06-25 Richard Biener <rguenther@suse.de>
18846 * tree-vect-stmts.c (vectorizable_conversion): Do not set
18847 STMT_VINFO_VEC_STMT for SLP.
18848 (vectorizable_store): Likewise.
18849 (vectorizable_load): Likewise.
18850 (vect_transform_stmt): Catch SLP vectorization clobbering
18851 STMT_VINFO_VEC_STMT.
18853 2015-06-25 Richard Biener <rguenther@suse.de>
18855 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18857 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18858 cleanup resulting dead code and parameters.
18859 (vect_transform_slp_perm_load): Adjust.
18861 2015-06-25 Nick Clifton <nickc@redhat.com>
18863 * config/bfin/bfin.c (bfin_expand_prologue): Set
18864 current_function_static_stack_size if flag_stack_usage_info is set.
18865 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18866 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18867 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18868 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18870 2015-06-25 Tom de Vries <tom@codesourcery.com>
18872 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18873 comment that the generated IV is unsigned.
18875 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18878 * config/arm/arm.c (arm_dbx_register_number): Return
18879 DWARF_FRAME_REGISTERS by default.
18881 2015-06-25 Tom de Vries <tom@codesourcery.com>
18883 * dominance.c (calculate_dominance_info): Fix verify_dominators call
18884 argument. Call verify_dominator when reusing dominator info.
18886 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
18889 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18890 an additional element of the unspec vector. Modify indices
18892 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18893 * config/sh/sh.c (prepare_move_operands): Pass incremented
18894 const_int to gen_GOTaddr2picreg.
18895 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18897 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18899 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18900 Condition on TARGET_FLOAT.
18902 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18904 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18907 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18909 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18911 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18912 aarch64_err_no_fpadvsimd.
18914 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18915 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18916 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18917 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18918 Turn error into assert, test TARGET_FLOAT.
18919 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18922 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
18925 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18927 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18929 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18931 2015-06-24 Renlin Li <renlin.li@arm.com>
18933 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18934 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18936 2015-06-24 Richard Biener <rguenther@suse.de>
18938 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18940 (lower_opt_convert): Support lowering of conditional view_convert.
18941 (parser::parse_operation): Likewise.
18942 (parser::parse_for): Likewise.
18944 2015-06-24 Renlin Li <renlin.li@arm.com>
18946 * varasm.c (emit_local): Use unsigned int for align variable.
18948 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18951 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18952 for negative numbers.
18954 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18956 PR rtl-optimization/66306
18957 * reload.c (find_reloads): Swap the match_dup info for
18958 commutative operands.
18960 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18962 * config/s390/vx-builtins.md
18963 ("vec_scatter_element<mode>_<non_vec_int>")
18964 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18965 attribute with bhfgq.
18967 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18969 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18971 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18973 * config/s390/s390-builtin-types.def: Add flag to indicate the
18974 options under which the function type is needed.
18975 * config/s390/s390-builtins.def: Add flag to indicate the options
18976 under which the builtin is enabled.
18977 * config/s390/s390-builtins.h: Add flags parameter to macro
18979 (bflags_for_builtin): New function.
18980 (flags_for_builtin): Renamed to ...
18981 (opflags_for_builtin): ... this.
18982 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18983 flags_for_builtin to bflags_for_builtin and
18984 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18985 * config/s390/s390.c: Add initialization of bflags_builtin and
18986 opflags_builtin arrays.
18987 Remove code for flags_builtin.
18988 (s390_init_builtins): Only create builtin function types if one of
18989 their flags is active.
18990 Only create builtins if all of their flags are active.
18991 (s390_expand_builtin): Rename flags_for_builtin to
18992 opflags_for_builtin.
18994 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18996 * config/s390/vecintrin.h: Remove internal builtins.
18998 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19000 * config/s390/s390.c (s390_secondary_reload): Fix check for
19001 GENERAL_REGS register class.
19003 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19005 * config/s390/s390.c (s390_support_vector_misalignment): Call
19006 default implementation for !TARGET_VX.
19008 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19010 * config/s390/s390.c (s390_legitimate_constant_p): Add
19013 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19015 * config/s390/s390.c (s390_vector_abi): New variable definition.
19016 (s390_check_type_for_vector_abi): New function.
19017 (TARGET_ASM_FILE_END): New macro definition.
19018 (s390_asm_file_end): New function.
19019 (s390_function_arg): Call s390_check_type_for_vector_abi.
19020 (s390_gimplify_va_arg): Likewise.
19021 * configure: Regenerate.
19022 * configure.ac: Check for .gnu_attribute Binutils feature.
19024 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
19027 * config/bfin/bfin.c (hwloop_optimize): Initialize
19028 JUMP_LABEL for newly created jump.
19030 2015-06-23 Tristan Gingold <gingold@adacore.com>
19032 * collect-utils.c (collect_wait): Unlink the response file here
19034 (do_wait): ...here.
19035 (utils_cleanup): ...and here.
19037 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
19039 * df-scan.c: Don't include target-def.h.
19040 * targhooks.c: Likewise.
19041 * config/arm/arm-c.c: Likewise.
19042 * config/i386/i386-c.c: Likewise.
19043 * config/nds32/nds32-cost.c: Likewise.
19044 * config/nds32/nds32-fp-as-gp.c: Likewise.
19045 * config/nds32/nds32-intrinsic.c: Likewise.
19046 * config/nds32/nds32-isr.c: Likewise.
19047 * config/nds32/nds32-md-auxiliary.c: Likewise.
19048 * config/nds32/nds32-memory-manipulation.c: Likewise.
19049 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19050 * config/nds32/nds32-predicates.c: Likewise.
19052 2015-06-23 Richard Biener <rguenther@suse.de>
19054 PR tree-optimization/66636
19055 * tree-vect-stmts.c (vectorizable_store): Properly compute the
19056 def type for further defs for strided stores.
19058 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
19060 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19061 conditional selects.
19062 (setcc_int<mode>, setcc_float<mode>): Reformat.
19064 2015-06-23 Marek Polacek <polacek@redhat.com>
19066 * match.pd ((x + y) - (x | y) -> x & y,
19067 (x + y) - (x & y) -> x | y): New patterns.
19069 2015-06-23 Ludovic Courtès <ludo@gnu.org>
19072 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19073 '-dynamic-linker' within %{!shared: ...}.
19075 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
19078 * config/i386/predicates.md (addsub_vm_operator): New predicate.
19079 (addsub_vs_operator): Ditto.
19080 (addsub_vs_parallel): Ditto.
19081 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19082 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19083 Put minus RTX before plus and adjust vec_merge selector.
19084 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19085 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19086 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19087 (addsub vec_merge splitters): New combiner splitters.
19088 (addsub vec_select/vec_concat splitters): Ditto.
19090 2015-06-23 Bin Cheng <bin.cheng@arm.com>
19092 PR tree-optimization/66449
19093 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19094 POINTER_PLUS_EXPR for pointers.
19096 2015-06-23 Alan Modra <amodra@gmail.com>
19098 * rtlanal.c (commutative_operand_precedence): Correct comments.
19099 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19100 declaration. Return an int. Distinguish REG,REG return from
19102 (struct simplify_plus_minus_op_data): Make local to function.
19103 (simplify_plus_minus): Don't set canonicalized if merely sorting
19104 registers. Avoid packing ops if nothing changes. White space fixes.
19106 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
19108 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
19109 -fdump-ada-spec is passed but not if -fsyntax-only is.
19111 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
19114 * lra-lives.c (process_bb_lives): Check insn copying the same
19115 reload pseudo and don't create a copy for it.
19117 2015-06-22 Tom de Vries <tom@codesourcery.com>
19119 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
19122 2015-06-22 Tom de Vries <tom@codesourcery.com>
19124 * builtins.def (DEF_GOMP_BUILTIN): Test
19125 'flag_tree_parallelize_loops > 1' instead of
19126 'flag_tree_parallelize_loops'. Test flag_cilkplus.
19128 2015-06-22 Tom de Vries <tom@codesourcery.com>
19130 * dominance.c (calculate_dominance_info): Verify dominators if
19133 2015-06-22 Marek Polacek <polacek@redhat.com>
19135 * match.pd ((x ^ y) ^ (x | y) -> x & y,
19136 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
19137 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
19138 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
19140 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
19143 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
19144 cost of embedded comparison.
19146 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19149 * config/rs6000/predicates.md (altivec_register_operand): Permit
19150 virtual stack registers.
19151 (vsx_register_operand): Likewise.
19152 (vfloat_operand): Likewise.
19153 (vint_operand): Likewise.
19154 (vlogical_operand): Likewise.
19156 2015-06-22 Richard Biener <rguenther@suse.de>
19158 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
19159 and single_scalar_iteration_cost members.
19160 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
19161 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
19162 (vect_get_single_scalar_iteration_cost): Remove.
19163 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19164 Use LOOP_VINFO_SCALAR_ITERATION_COST.
19165 * tree-vect-loop.c (destroy_loop_vec_info): Free
19167 (vect_get_single_scalar_iteration_cost): Compute result into
19168 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
19169 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
19170 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
19171 (vect_estimate_min_profitable_iters): Use them.
19173 2015-06-22 Christian Bruel <christian.bruel@st.com>
19176 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
19177 (TARGET_INSERT_ATTRIBUTES): Define.
19178 (thumb_flipper): New var.
19179 * config/arm/arm.opt (-mflip-thumb): New switch.
19181 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
19182 Martin Liska <mliska@suse.cz>
19185 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
19186 construction of arg_types.
19187 (sem_function::sem_function): Likewise.
19188 (sem_function::~sem_function): Remove destruction of arg_types.
19189 (sem_function::compatible_parm_types_p): New function.
19190 (sem_function::equals_wpa): Reorg matching of return values
19191 and parameter types.
19192 (sem_function::equals_private): Reorg mathcing of argument types.
19193 (sem_function::parse_tree_args): Remove.
19194 * ipa-icf.h (init_wpa): Do not call it.
19195 (parse_tree_args): Remove.
19196 (compatible_parm_types_p): Declare.
19197 (result_type): Remove.
19198 (arg_types): Remove.
19200 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
19203 * ipa-polymorphic-call.c
19204 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
19205 initializing alias oracle; fix formating; set base_alias_set if it
19208 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
19210 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
19211 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
19212 (find_inc): Likewise.
19213 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
19215 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
19216 * df-scan.c (df_swap_refs): Remove.
19217 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
19218 * dominance.c (link_roots): Use std::swap instead of manually swapping.
19219 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
19220 * fold-const.c (fold_relational_const): Likewise.
19221 * genattrtab.c (simplify_test_exp): Likewise.
19222 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
19223 gimple_simplify): Likewise.
19224 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
19225 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
19226 * ipa-devirt.c (add_type_duplicate): Likewise.
19227 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
19228 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
19229 * lra.c (lra_create_copy): Likewise.
19230 * lto-streamer-out.c (DFS::DFS): Likewise.
19231 * modulo-sched.c (get_sched_window): Likewise.
19232 * omega.c (omega_pretty_print_problem): Likewise.
19233 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
19234 * reload1.c (reloads_unique_chain_p): Likewise.
19235 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
19236 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
19238 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
19240 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
19241 predicate_mem_writes): Likewise.
19242 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
19243 * tree-predcom.c (combine_chains): Likewise.
19244 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
19245 refs_may_alias_p_1): Likewise.
19246 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
19247 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19248 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
19249 number_of_iterations_cond): Likewise.
19250 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19251 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19252 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
19253 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
19254 * tree-vrp.c (extract_range_from_binary_expr_1,
19255 extract_range_from_unary_expr_1): Likewise.
19257 2015-06-20 Marek Polacek <polacek@redhat.com>
19259 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
19261 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
19264 * config/sh/sh.c (prepare_move_operands): Replace subreg
19265 index term with R0 for base and index addressing.
19267 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
19269 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
19271 (movsf_aarch64): Change condition from register_operand to
19272 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
19273 load1. Change type for alternative 7 to store1.
19274 (movdf_aarch64): Likewise.
19276 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
19278 * config/vax/vax.md: Adjust sign/zero extend patterns to
19279 handle SUBREGs in operands[1].
19281 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19283 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
19284 of manually swapping.
19285 (expand_vec_perm_interleave2): Likewise.
19287 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
19289 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
19290 reuse bounds created for abnormal ssa names.
19292 2015-06-19 Jakub Jelinek <jakub@redhat.com>
19294 * config/nvptx/nvptx.md (allocate_stack): Rename to...
19295 (allocate_stack_<mode>): ... this, and add :P on both
19296 match_operand and unspec.
19297 (allocate_stack): New expander.
19299 2015-06-19 Christian Bruel <christian.bruel@st.com>
19303 * config/arm/arm.c (arm_set_current_function): Handle
19304 explicit default options.
19306 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
19308 * config/i386/i386.md (*movsicc_noc_zext): New insn.
19309 (zero-extended cmove with mem peephole2): New pattern.
19310 (cmove with mem peephole2): Merge patterns.
19312 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
19314 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
19316 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
19318 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
19319 * config/mips/mips.md (*madd4<mode>): Ditto.
19320 (*nmadd3<mode>) Ditto.
19321 (*nmadd4<mode>_fastmath): Ditto.
19322 (*nmadd3<mode>_fastmath): Ditto.
19323 (*nmsub4<mode>): Ditto.
19324 (*nmsub3<mode>): Ditto.
19325 (*nmsub4<mode>_fastmath): Ditto.
19326 (*nmsub3<mode>_fastmath): Ditto.
19328 2015-06-18 Michael Matz <matz@suse.de>
19330 PR middle-end/66253
19331 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
19332 grouped strided stores.
19333 (vectorizable_load): Don't use the DR from first_stmt in
19334 the non-SLP grouped strided case.
19336 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19339 * function.c (assign_bounds): Add arguments assign_regs,
19340 assign_special, assign_bt.
19341 (assign_parms): For vararg functions handle bounds in BT
19342 and special slots after incoming vararg bounds.
19344 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19346 PR middle-end/66568
19347 * cfgexpand.c (expand_return): Handle missing bounds.
19348 (expand_gimple_stmt_1): Likewise.
19349 * tree-chkp.c (chkp_expand_zero_bounds): New.
19350 * tree-chkp.h (chkp_expand_zero_bounds): New.
19352 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19354 PR middle-end/66567
19355 * ipa-chkp.c (chkp_maybe_create_clone): Require
19356 functions to be instrumentable.
19357 * tree-chkp.c (chkp_replace_function_pointer): Use
19358 chkp_instrumentable_p instead of attribute check.
19360 2015-06-18 Richard Biener <rguenther@suse.de>
19362 PR tree-optimization/66510
19363 * tree-vect-stmts.c (vectorizable_load): Properly compute the
19364 number of vector loads for SLP permuted loads.
19365 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
19366 check the stride for loop vectorization.
19367 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
19368 vectorization factor.
19369 (vect_analyze_group_access): If the group size is not a power
19370 of two require a epilogue loop.
19371 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
19372 compute and optimizing and alias test pruning after final
19373 vectorization factor computation.
19374 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
19376 (vect_transform_slp_perm_load): Properly compute the original
19377 number of vector load stmts.
19379 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
19381 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
19382 "unlikely character , in @var" warning.
19384 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
19386 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
19387 (ix86_function_arg_advance): Ditto.
19388 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
19390 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
19392 * function.h (struct rtl_data): Remove struct and accessor macros.
19393 * emit-rtl.h (struct rtl_data): Relocate to here.
19394 * Makefile.in (GTFILES): Add emit-rtl.h.
19395 * df-core.c: Include emit-rtl.h.
19396 * genattrtab.c: Likewise.
19397 * genconditions.c: Likewise.
19398 * genpreds.c: Likewise.
19399 * genrecog.c: Likewise.
19400 * regcprop.c: Likewise.
19401 * resource.c: Likewise.
19402 * sched-rgn.c: Likewise.
19403 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19404 * config/i386/winnt.c: Likewise.
19406 2015-06-17 Jakub Jelinek <jakub@redhat.com>
19408 PR middle-end/66429
19409 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
19410 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
19411 and has_force_vectorize_loops flags from cfun into
19413 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
19414 if simduid is non-NULL.
19415 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
19416 * passes.def (pass_simduid_cleanup): Add new pass after loop
19418 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
19419 indirection from htab argument's type.
19420 (shrink_simd_arrays): New function.
19421 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
19422 Don't call adjust_simduid_builtins if there are no loops.
19423 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
19424 (pass_simduid_cleanup::execute): New method.
19425 (make_pass_simduid_cleanup): New function.
19427 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
19429 * tree-core.h (tree_target_option): Make opts field a pointer to a
19430 cl_target_option instead of an instance of the struct.
19431 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
19433 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
19434 TARGET_OPTION_NODE.
19435 (copy_node_stat): Allocate and copy struct cl_target_option.
19437 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
19439 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
19440 Remove conditional exposure of prototypes.
19441 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
19442 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
19443 definitions in tree.h with functions.
19444 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
19446 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
19448 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
19450 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
19451 (*cmp<mode>_signed): ... this.
19452 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
19453 (*cmp<mode>_unsigned): ... this. Remove %b.
19455 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
19457 * coretypes.h: Include input.h and as-a.h.
19458 * rtl.h: Include input.h and as-a.h for generator files.
19459 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
19460 * vec.c: Don't include diagnostic-core.h.
19461 * alias.c: Do not include input.h, line-map.h or is-a.h.
19462 * asan.c: Likewise.
19463 * attribs.c: Likewise.
19464 * auto-inc-dec.c: Likewise.
19465 * auto-profile.c: Likewise.
19466 * bb-reorder.c: Likewise.
19467 * bt-load.c: Likewise.
19468 * builtins.c: Likewise.
19469 * caller-save.c: Likewise.
19470 * calls.c: Likewise.
19471 * ccmp.c: Likewise.
19473 * cfganal.c: Likewise.
19474 * cfgbuild.c: Likewise.
19475 * cfgcleanup.c: Likewise.
19476 * cfgexpand.c: Likewise.
19477 * cfghooks.c: Likewise.
19478 * cfgloop.c: Likewise.
19479 * cfgloop.h: Likewise.
19480 * cfgloopanal.c: Likewise.
19481 * cfgloopmanip.c: Likewise.
19482 * cfgrtl.c: Likewise.
19483 * cgraph.c: Likewise.
19484 * cgraphbuild.c: Likewise.
19485 * cgraphclones.c: Likewise.
19486 * cgraphunit.c: Likewise.
19487 * cilk-common.c: Likewise.
19488 * combine-stack-adj.c: Likewise.
19489 * combine.c: Likewise.
19490 * compare-elim.c: Likewise.
19491 * convert.c: Likewise.
19492 * coverage.c: Likewise.
19493 * cppbuiltin.c: Likewise.
19494 * cprop.c: Likewise.
19496 * cselib.c: Likewise.
19497 * data-streamer-in.c: Likewise.
19498 * data-streamer-out.c: Likewise.
19499 * data-streamer.c: Likewise.
19500 * dbxout.c: Likewise.
19503 * debug.c: Likewise.
19504 * df-core.c: Likewise.
19505 * df-problems.c: Likewise.
19506 * df-scan.c: Likewise.
19509 * diagnostic-core.h: Likewise.
19510 * diagnostic.c: Likewise.
19511 * dojump.c: Likewise.
19512 * dominance.c: Likewise.
19513 * domwalk.c: Likewise.
19514 * double-int.c: Likewise.
19516 * dumpfile.c: Likewise.
19517 * dumpfile.h: Likewise.
19518 * dwarf2asm.c: Likewise.
19519 * dwarf2cfi.c: Likewise.
19520 * dwarf2out.c: Likewise.
19521 * emit-rtl.c: Likewise.
19522 * et-forest.c: Likewise.
19523 * except.c: Likewise.
19524 * explow.c: Likewise.
19525 * expmed.c: Likewise.
19526 * expr.c: Likewise.
19527 * final.c: Likewise.
19528 * fixed-value.c: Likewise.
19529 * fold-const.c: Likewise.
19530 * function.c: Likewise.
19531 * fwprop.c: Likewise.
19532 * gcc-plugin.h: Likewise.
19533 * gcse.c: Likewise.
19534 * generic-match-head.c: Likewise.
19535 * ggc-page.c: Likewise.
19536 * gimple-builder.c: Likewise.
19537 * gimple-expr.c: Likewise.
19538 * gimple-fold.c: Likewise.
19539 * gimple-iterator.c: Likewise.
19540 * gimple-low.c: Likewise.
19541 * gimple-match-head.c: Likewise.
19542 * gimple-pretty-print.c: Likewise.
19543 * gimple-ssa-isolate-paths.c: Likewise.
19544 * gimple-ssa-strength-reduction.c: Likewise.
19545 * gimple-streamer-in.c: Likewise.
19546 * gimple-streamer-out.c: Likewise.
19547 * gimple-streamer.h: Likewise.
19548 * gimple-walk.c: Likewise.
19549 * gimple.c: Likewise.
19550 * gimplify-me.c: Likewise.
19551 * gimplify.c: Likewise.
19552 * godump.c: Likewise.
19553 * graph.c: Likewise.
19554 * graphite-blocking.c: Likewise.
19555 * graphite-dependences.c: Likewise.
19556 * graphite-interchange.c: Likewise.
19557 * graphite-isl-ast-to-gimple.c: Likewise.
19558 * graphite-optimize-isl.c: Likewise.
19559 * graphite-poly.c: Likewise.
19560 * graphite-scop-detection.c: Likewise.
19561 * graphite-sese-to-poly.c: Likewise.
19562 * graphite.c: Likewise.
19563 * haifa-sched.c: Likewise.
19564 * hw-doloop.c: Likewise.
19565 * ifcvt.c: Likewise.
19566 * init-regs.c: Likewise.
19567 * input.c: Likewise.
19568 * internal-fn.c: Likewise.
19569 * ipa-chkp.c: Likewise.
19570 * ipa-comdats.c: Likewise.
19571 * ipa-cp.c: Likewise.
19572 * ipa-devirt.c: Likewise.
19573 * ipa-icf-gimple.c: Likewise.
19574 * ipa-icf.c: Likewise.
19575 * ipa-inline-analysis.c: Likewise.
19576 * ipa-inline-transform.c: Likewise.
19577 * ipa-inline.c: Likewise.
19578 * ipa-polymorphic-call.c: Likewise.
19579 * ipa-profile.c: Likewise.
19580 * ipa-prop.c: Likewise.
19581 * ipa-pure-const.c: Likewise.
19582 * ipa-ref.c: Likewise.
19583 * ipa-reference.c: Likewise.
19584 * ipa-split.c: Likewise.
19585 * ipa-utils.c: Likewise.
19586 * ipa-visibility.c: Likewise.
19588 * ira-build.c: Likewise.
19589 * ira-color.c: Likewise.
19590 * ira-conflicts.c: Likewise.
19591 * ira-costs.c: Likewise.
19592 * ira-emit.c: Likewise.
19593 * ira-lives.c: Likewise.
19595 * jump.c: Likewise.
19596 * langhooks.c: Likewise.
19598 * loop-doloop.c: Likewise.
19599 * loop-init.c: Likewise.
19600 * loop-invariant.c: Likewise.
19601 * loop-iv.c: Likewise.
19602 * loop-unroll.c: Likewise.
19603 * lower-subreg.c: Likewise.
19604 * lra-assigns.c: Likewise.
19605 * lra-coalesce.c: Likewise.
19606 * lra-constraints.c: Likewise.
19607 * lra-eliminations.c: Likewise.
19608 * lra-lives.c: Likewise.
19609 * lra-remat.c: Likewise.
19610 * lra-spills.c: Likewise.
19612 * lto-cgraph.c: Likewise.
19613 * lto-compress.c: Likewise.
19614 * lto-opts.c: Likewise.
19615 * lto-section-in.c: Likewise.
19616 * lto-section-out.c: Likewise.
19617 * lto-streamer-in.c: Likewise.
19618 * lto-streamer-out.c: Likewise.
19619 * lto-streamer.c: Likewise.
19621 * mode-switching.c: Likewise.
19622 * modulo-sched.c: Likewise.
19623 * omega.c: Likewise.
19624 * omp-low.c: Likewise.
19625 * optabs.c: Likewise.
19626 * opts-global.c: Likewise.
19627 * opts.h: Likewise.
19628 * passes.c: Likewise.
19629 * plugin.c: Likewise.
19630 * postreload-gcse.c: Likewise.
19631 * postreload.c: Likewise.
19632 * predict.c: Likewise.
19633 * pretty-print.h: Likewise.
19634 * print-rtl.c: Likewise.
19635 * print-tree.c: Likewise.
19636 * profile.c: Likewise.
19637 * real.c: Likewise.
19638 * realmpfr.c: Likewise.
19639 * recog.c: Likewise.
19641 * reg-stack.c: Likewise.
19642 * regcprop.c: Likewise.
19643 * reginfo.c: Likewise.
19644 * regrename.c: Likewise.
19645 * regstat.c: Likewise.
19646 * reload.c: Likewise.
19647 * reload1.c: Likewise.
19648 * reorg.c: Likewise.
19649 * resource.c: Likewise.
19650 * rtl-chkp.c: Likewise.
19651 * rtl-error.c: Likewise.
19652 * rtlanal.c: Likewise.
19653 * rtlhooks.c: Likewise.
19654 * sanopt.c: Likewise.
19655 * sched-deps.c: Likewise.
19656 * sched-ebb.c: Likewise.
19657 * sched-rgn.c: Likewise.
19658 * sched-vis.c: Likewise.
19659 * sdbout.c: Likewise.
19660 * sel-sched-dump.c: Likewise.
19661 * sel-sched-ir.c: Likewise.
19662 * sel-sched.c: Likewise.
19663 * sese.c: Likewise.
19664 * shrink-wrap.c: Likewise.
19665 * simplify-rtx.c: Likewise.
19666 * stack-ptr-mod.c: Likewise.
19667 * statistics.c: Likewise.
19668 * stmt.c: Likewise.
19669 * stor-layout.c: Likewise.
19670 * store-motion.c: Likewise.
19671 * streamer-hooks.c: Likewise.
19672 * stringpool.c: Likewise.
19673 * symtab.c: Likewise.
19674 * target-globals.c: Likewise.
19675 * targhooks.c: Likewise.
19676 * toplev.c: Likewise.
19677 * tracer.c: Likewise.
19678 * trans-mem.c: Likewise.
19679 * tree-affine.c: Likewise.
19680 * tree-browser.c: Likewise.
19681 * tree-call-cdce.c: Likewise.
19682 * tree-cfg.c: Likewise.
19683 * tree-cfgcleanup.c: Likewise.
19684 * tree-chkp-opt.c: Likewise.
19685 * tree-chkp.c: Likewise.
19686 * tree-chrec.c: Likewise.
19687 * tree-complex.c: Likewise.
19688 * tree-data-ref.c: Likewise.
19689 * tree-dfa.c: Likewise.
19690 * tree-diagnostic.c: Likewise.
19691 * tree-dump.c: Likewise.
19692 * tree-eh.c: Likewise.
19693 * tree-emutls.c: Likewise.
19694 * tree-if-conv.c: Likewise.
19695 * tree-inline.c: Likewise.
19696 * tree-into-ssa.c: Likewise.
19697 * tree-iterator.c: Likewise.
19698 * tree-loop-distribution.c: Likewise.
19699 * tree-nested.c: Likewise.
19700 * tree-nrv.c: Likewise.
19701 * tree-object-size.c: Likewise.
19702 * tree-outof-ssa.c: Likewise.
19703 * tree-parloops.c: Likewise.
19704 * tree-phinodes.c: Likewise.
19705 * tree-predcom.c: Likewise.
19706 * tree-pretty-print.c: Likewise.
19707 * tree-profile.c: Likewise.
19708 * tree-scalar-evolution.c: Likewise.
19709 * tree-sra.c: Likewise.
19710 * tree-ssa-address.c: Likewise.
19711 * tree-ssa-alias.c: Likewise.
19712 * tree-ssa-ccp.c: Likewise.
19713 * tree-ssa-coalesce.c: Likewise.
19714 * tree-ssa-copy.c: Likewise.
19715 * tree-ssa-copyrename.c: Likewise.
19716 * tree-ssa-dce.c: Likewise.
19717 * tree-ssa-dom.c: Likewise.
19718 * tree-ssa-dse.c: Likewise.
19719 * tree-ssa-forwprop.c: Likewise.
19720 * tree-ssa-ifcombine.c: Likewise.
19721 * tree-ssa-live.c: Likewise.
19722 * tree-ssa-loop-ch.c: Likewise.
19723 * tree-ssa-loop-im.c: Likewise.
19724 * tree-ssa-loop-ivcanon.c: Likewise.
19725 * tree-ssa-loop-ivopts.c: Likewise.
19726 * tree-ssa-loop-manip.c: Likewise.
19727 * tree-ssa-loop-niter.c: Likewise.
19728 * tree-ssa-loop-prefetch.c: Likewise.
19729 * tree-ssa-loop-unswitch.c: Likewise.
19730 * tree-ssa-loop.c: Likewise.
19731 * tree-ssa-math-opts.c: Likewise.
19732 * tree-ssa-operands.c: Likewise.
19733 * tree-ssa-phiopt.c: Likewise.
19734 * tree-ssa-phiprop.c: Likewise.
19735 * tree-ssa-pre.c: Likewise.
19736 * tree-ssa-propagate.c: Likewise.
19737 * tree-ssa-reassoc.c: Likewise.
19738 * tree-ssa-sccvn.c: Likewise.
19739 * tree-ssa-scopedtables.c: Likewise.
19740 * tree-ssa-sink.c: Likewise.
19741 * tree-ssa-strlen.c: Likewise.
19742 * tree-ssa-structalias.c: Likewise.
19743 * tree-ssa-tail-merge.c: Likewise.
19744 * tree-ssa-ter.c: Likewise.
19745 * tree-ssa-threadedge.c: Likewise.
19746 * tree-ssa-threadupdate.c: Likewise.
19747 * tree-ssa-uncprop.c: Likewise.
19748 * tree-ssa-uninit.c: Likewise.
19749 * tree-ssa.c: Likewise.
19750 * tree-ssanames.c: Likewise.
19751 * tree-stdarg.c: Likewise.
19752 * tree-streamer-in.c: Likewise.
19753 * tree-streamer-out.c: Likewise.
19754 * tree-streamer.c: Likewise.
19755 * tree-switch-conversion.c: Likewise.
19756 * tree-tailcall.c: Likewise.
19757 * tree-vect-data-refs.c: Likewise.
19758 * tree-vect-generic.c: Likewise.
19759 * tree-vect-loop-manip.c: Likewise.
19760 * tree-vect-loop.c: Likewise.
19761 * tree-vect-patterns.c: Likewise.
19762 * tree-vect-slp.c: Likewise.
19763 * tree-vect-stmts.c: Likewise.
19764 * tree-vectorizer.c: Likewise.
19765 * tree-vrp.c: Likewise.
19766 * tree.c: Likewise.
19767 * tsan.c: Likewise.
19768 * ubsan.c: Likewise.
19769 * valtrack.c: Likewise.
19770 * value-prof.c: Likewise.
19771 * var-tracking.c: Likewise.
19772 * varasm.c: Likewise.
19773 * varpool.c: Likewise.
19774 * vmsdbgout.c: Likewise.
19775 * vtable-verify.c: Likewise.
19777 * wide-int.cc: Likewise.
19778 * xcoffout.c: Likewise.
19779 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
19780 * common/common-targhooks.c: Likewise.
19781 * config/aarch64/aarch64-builtins.c: Likewise.
19782 * config/aarch64/aarch64.c: Likewise.
19783 * config/alpha/alpha.c: Likewise.
19784 * config/arc/arc.c: Likewise.
19785 * config/arm/aarch-common.c: Likewise.
19786 * config/arm/arm-builtins.c: Likewise.
19787 * config/arm/arm-c.c: Likewise.
19788 * config/arm/arm.c: Likewise.
19789 * config/avr/avr-c.c: Likewise.
19790 * config/avr/avr-log.c: Likewise.
19791 * config/avr/avr.c: Likewise.
19792 * config/bfin/bfin.c: Likewise.
19793 * config/c6x/c6x.c: Likewise.
19794 * config/cr16/cr16.c: Likewise.
19795 * config/cris/cris.c: Likewise.
19796 * config/darwin-c.c: Likewise.
19797 * config/darwin.c: Likewise.
19798 * config/default-c.c: Likewise.
19799 * config/epiphany/epiphany.c: Likewise.
19800 * config/epiphany/mode-switch-use.c: Likewise.
19801 * config/epiphany/resolve-sw-modes.c: Likewise.
19802 * config/fr30/fr30.c: Likewise.
19803 * config/frv/frv.c: Likewise.
19804 * config/ft32/ft32.c: Likewise.
19805 * config/glibc-c.c: Likewise.
19806 * config/h8300/h8300.c: Likewise.
19807 * config/i386/i386-c.c: Likewise.
19808 * config/i386/i386.c: Likewise.
19809 * config/i386/msformat-c.c: Likewise.
19810 * config/i386/winnt-cxx.c: Likewise.
19811 * config/i386/winnt-stubs.c: Likewise.
19812 * config/i386/winnt.c: Likewise.
19813 * config/ia64/ia64-c.c: Likewise.
19814 * config/ia64/ia64.c: Likewise.
19815 * config/iq2000/iq2000.c: Likewise.
19816 * config/lm32/lm32.c: Likewise.
19817 * config/m32c/m32c-pragma.c: Likewise.
19818 * config/m32c/m32c.c: Likewise.
19819 * config/m32r/m32r.c: Likewise.
19820 * config/m68k/m68k.c: Likewise.
19821 * config/mcore/mcore.c: Likewise.
19822 * config/mep/mep-pragma.c: Likewise.
19823 * config/mep/mep.c: Likewise.
19824 * config/microblaze/microblaze-c.c: Likewise.
19825 * config/microblaze/microblaze.c: Likewise.
19826 * config/mips/mips.c: Likewise.
19827 * config/mmix/mmix.c: Likewise.
19828 * config/mn10300/mn10300.c: Likewise.
19829 * config/moxie/moxie.c: Likewise.
19830 * config/msp430/msp430-c.c: Likewise.
19831 * config/msp430/msp430.c: Likewise.
19832 * config/nds32/nds32-cost.c: Likewise.
19833 * config/nds32/nds32-fp-as-gp.c: Likewise.
19834 * config/nds32/nds32-intrinsic.c: Likewise.
19835 * config/nds32/nds32-isr.c: Likewise.
19836 * config/nds32/nds32-md-auxiliary.c: Likewise.
19837 * config/nds32/nds32-memory-manipulation.c: Likewise.
19838 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19839 * config/nds32/nds32-predicates.c: Likewise.
19840 * config/nds32/nds32.c: Likewise.
19841 * config/nios2/nios2.c: Likewise.
19842 * config/nvptx/nvptx.c: Likewise.
19843 * config/pa/pa.c: Likewise.
19844 * config/pdp11/pdp11.c: Likewise.
19845 * config/rl78/rl78-c.c: Likewise.
19846 * config/rl78/rl78.c: Likewise.
19847 * config/rs6000/rs6000-c.c: Likewise.
19848 * config/rs6000/rs6000.c: Likewise.
19849 * config/rx/rx.c: Likewise.
19850 * config/s390/s390-c.c: Likewise.
19851 * config/s390/s390.c: Likewise.
19852 * config/sh/sh-c.c: Likewise.
19853 * config/sh/sh-mem.cc: Likewise.
19854 * config/sh/sh.c: Likewise.
19855 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19856 * config/sh/sh_treg_combine.cc: Likewise.
19857 * config/sol2-c.c: Likewise.
19858 * config/sol2-cxx.c: Likewise.
19859 * config/sol2-stubs.c: Likewise.
19860 * config/sol2.c: Likewise.
19861 * config/sparc/sparc-c.c: Likewise.
19862 * config/sparc/sparc.c: Likewise.
19863 * config/spu/spu-c.c: Likewise.
19864 * config/spu/spu.c: Likewise.
19865 * config/stormy16/stormy16.c: Likewise.
19866 * config/tilegx/mul-tables.c: Likewise.
19867 * config/tilegx/tilegx-c.c: Likewise.
19868 * config/tilegx/tilegx.c: Likewise.
19869 * config/tilepro/mul-tables.c: Likewise.
19870 * config/tilepro/tilepro-c.c: Likewise.
19871 * config/tilepro/tilepro.c: Likewise.
19872 * config/v850/v850-c.c: Likewise.
19873 * config/v850/v850.c: Likewise.
19874 * config/vax/vax.c: Likewise.
19875 * config/visium/visium.c: Likewise.
19876 * config/vms/vms-c.c: Likewise.
19877 * config/vms/vms.c: Likewise.
19878 * config/vxworks.c: Likewise.
19879 * config/winnt-c.c: Likewise.
19880 * config/xtensa/xtensa.c: Likewise.
19882 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
19884 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19886 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19888 2015-06-17 Richard Biener <rguenther@suse.de>
19890 PR tree-optimization/66251
19891 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19892 stmts for SLP strided stores.
19895 2015-05-22 Richard Biener <rguenther@suse.de>
19897 PR tree-optimization/66251
19898 * tree-vect-stmts.c (vectorizable_conversion): Properly
19899 set STMT_VINFO_VEC_STMT even for the SLP case.
19901 2015-05-26 Michael Matz <matz@suse.de>
19903 PR middle-end/66251
19904 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19905 STMT_VINFO_VEC_STMT, also with SLP.
19907 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
19910 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19911 (*avx_addsubv4df3_1s): Ditto.
19912 (*sse3_addsubv2df3_1): Ditto.
19913 (*sse3_addsubv2df3_1s): Ditto.
19914 (*avx_addsubv8sf3_1): Ditto.
19915 (*avx_addsubv8sf3_1s): Ditto.
19916 (*sse3_addsubv4sf3_1): Ditto.
19917 (*sse3_addsubv4sf3_1s): Ditto.
19919 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
19921 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19922 (SYSROOT_SUFFIX_SPEC): Update.
19923 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19924 (STARTFILE_PREFIX_SPEC): Update.
19925 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19926 (MULTILIB_REQUIRED): New.
19927 (MULTILIB_OSDIRNAMES): New.
19928 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19929 (MULTILIB_REQUIRED): New.
19930 (MULTILIB_OSDIRNAMES): New.
19932 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
19934 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19935 * config/aarch64/aarch64-options-extensions.def: Update "fP",
19936 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
19937 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19938 (AARCH64_FL_PAN): New.
19939 (AARCH64_FL_LOR): New.
19940 (AARCH64_FL_RDMA): New.
19941 (AARCH64_FL_FOR_ARCH8_1): New.
19942 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19943 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19945 2015-06-16 Martin Liska <mliska@suse.cz>
19947 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19948 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19951 2015-06-16 Richard Biener <rguenther@suse.de>
19953 * tree-vect-stmts.c (vectorizable_store): Adjust.
19954 (vectorizable_load): Likewise.
19955 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19957 (vect_create_data_ref_ptr): Likewise.
19958 (bump_vector_ptr): Adjust.
19960 2015-06-16 Richard Biener <rguenther@suse.de>
19962 * tree-vect-stmts.c (vectorizable_load): Properly start loads
19963 with the first element if this is grouped loads.
19965 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
19967 * config/arm/arm-protos.h (struct tune_params): Rename
19968 log_op_non_sc to log_op_non_short_circuit, and rename enum
19969 values to expand SC to SHORT_CIRCUIT.
19970 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19971 to LOG_OP_NON_SHORT_CIRCUIT.
19972 (arm_fastmul_tune):Likewise
19973 (arm_strongarm_tune): Likewise.
19974 (arm_xscale_tune): Likewise.
19975 (arm_9e_tune): Likewise.
19976 (arm_marvell_pj4_tune): Likewise.
19977 (arm_v6t2_tune): Likewise.
19978 (arm_cortex_tune): Likewise.
19979 (arm_cortex_a8_tune): Likewise.
19980 (arm_cortex_a7_tune): Likewise.
19981 (arm_cortex_a15_tune): Likewise.
19982 (arm_cortex_a53_tune): Likewise.
19983 (arm_cortex_a57_tune): Likewise.
19984 (arm_xgene1_tune): Likewise.
19985 (arm_cortex_a5_tune): Likewise.
19986 (arm_cortex_a9_tune): Likewise.
19987 (arm_cortex_a12_tune): Likewise.
19988 (arm_v7m_tune): Likewise.
19989 (arm_cortex_m7_tune): Likewise.
19990 (arm_v6m_tune): Likewise.
19991 (arm_fa726te_tune): Likewise.
19993 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
19995 * altivec.md: Delete UNSPEC_VMLADDUHM.
19996 (mulv4si3_p8): New pattern.
19997 (mulv4si3): Use it for POWER8.
19998 (mulv8hi3): Use vmladduhm with zero addend.
19999 (altivec_vmladduhm): Descriptive RTL.
20001 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
20003 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20004 to use neon_move instead of mov_imm.
20005 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20006 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20008 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20009 aarch64_float_const_zero_rtx_p check before TFmode check.
20010 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20012 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
20013 code and attributes to match. Change condition from register_operand
20014 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
20015 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
20018 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
20021 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20022 there is no parent.
20024 2015-06-14 Shiva Chen <shiva0217@gmail.com>
20026 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20027 HOST_WIDE_INT parameter.
20029 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
20032 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20033 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20035 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20037 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
20039 * rtl.h (classify_insn): Declare.
20040 * emit-rtl.c (classify_insn): Move to...
20041 * rtl.c: ...here and add generator support.
20042 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20043 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20044 * genemit.c (gen_emit_seq): New function.
20045 (gen_expand, gen_split): Use it.
20047 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
20049 * tree.c (make_vector_stat): Fix comment to state that the
20050 function returns a VECTOR_CST.
20052 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
20054 * gensupport.h (add_implicit_parallel): Declare.
20055 * genrecog.c (add_implicit_parallel): Move to...
20056 * gensupport.c (add_implicit_parallel): ...here.
20057 (process_one_cond_exec): Use it.
20058 * genemit.c (gen_insn): Likewise.
20060 2015-06-13 Iain Sandoe <iain@codesourcery.com>
20063 * passes.c (rest_of_decl_compilation): Do not register globals for
20064 early debug if they are declared in built-ins.
20066 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
20068 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20070 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20072 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20074 (noce_try_cmove_arith): Likewise.
20075 (noce_get_alt_condition): Likewise.
20077 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20079 * common/config/i386/i386-common.c
20080 (OPTION_MASK_ISA_MWAITX_SET): New.
20081 (ix86_handle_option): Handle mwaitx.
20082 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20083 (x86_64-*-*): Likewise.
20084 * config/i386/mwaitxintrin.h: New header.
20085 * config/i386/cpuid.h (bit_MWAITX): Define.
20086 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20088 * config/i386/i386.opt (mwaitx): New.
20089 * config/i386/i386-builtin-types.def
20090 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20091 * config/i386/i386-c.c: Define __MWAITX__ if needed.
20092 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20094 (ix86_option_override_internal): Handle new option.
20095 (processor_alias_table): Added PTA_MWAITX.
20096 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20097 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20098 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20099 IX86_BUILTIN_MONITORX built-ins.
20100 * config/i386/i386.h (TARGET_MWAITX): New.
20101 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20103 (mwaitx): New pattern.
20104 (monitorx_<mode>): New pattern.
20105 * config/i386/x86intrin.h: Include mwaitxintrin.h.
20106 * doc/extend.texi: Document monitorx and mwaitx builtins.
20107 * doc/invoke.texi: Document -mmwaitx option.
20109 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
20111 * emit-rtl.c (need_atomic_barrier_p): Mask model with
20112 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
20114 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20116 * dbxout.c (xcoff_debug_hooks): Provide a function for
20117 register_main_translation_unit hook.
20119 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20121 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
20122 variants cases from switch.
20123 (rs6000_post_atomic_barrier): Same.
20124 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
20125 (rs6000_expand_atomic_exchange): Same.
20126 (rs6000_expand_atomic_op): Same.
20127 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
20128 SYNC variants cases from switch.
20129 (atomic_load): Same.
20130 (atomic_store): Same.
20132 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
20134 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
20135 CONST_INT for goto.
20137 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
20140 * dwarf2out.c (check_die): Check for common duplicate attributes.
20141 (add_location_or_const_value_attribute): Do not add duplicate
20143 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
20145 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
20146 (gen_type_die_with_usage): Call check_die.
20147 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
20149 2015-06-11 Jason Merrill <jason@redhat.com>
20151 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
20154 2015-06-11 Marek Polacek <polacek@redhat.com>
20156 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
20158 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
20161 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
20162 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
20163 (*addx_extend_sp32): Fix pasto.
20164 (*subx_extend): Rename into...
20165 (*subx_extend_sp32): ...this.
20166 (*adddi3_extend_sp32): Add earlyclobber.
20167 (*subdi3_insn_sp32): Likewise.
20168 (*subdi3_extend_sp32): Likewise.
20169 (*and_not_di_sp32): Likewise.
20170 (*or_not_di_sp32): Likewise.
20171 (*xor_not_di_sp32): Likewise.
20172 (*negdi2_sp32): Likewise.
20173 (*one_cmpldi2_sp32): Likewise.
20175 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
20177 * debug.h (struct gcc_debug_hooks): Add a
20178 register_main_translation_unit hook.
20179 * debug.c (do_nothing_debug_hooks): Provide a function for this
20181 * dbxout.c (dbx_debug_hooks): Likewise.
20182 * sdbout.c (sdb_debug_hooks): Likewise.
20183 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20184 * dwarf2out.c (main_translation_unit): New global variable.
20185 (dwarf2out_register_main_translation_unit): New function
20186 implementing the new hook.
20187 (dwarf2_debug_hooks): Assign
20188 dwarf2out_register_main_translation_unit to this new hook.
20189 (dwarf2out_init): Associate any main translation unit to
20192 2015-06-11 Marek Polacek <polacek@redhat.com>
20194 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
20196 2015-06-11 Marek Polacek <polacek@redhat.com>
20198 * match.pd: Use single_use throughout.
20200 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20202 * config/arm/arm.c (arm_option_params_internal): When optimising
20203 for speed set max_insns_skipped when arm_restrict_it.
20205 2015-06-11 Christian Bruel <christian.bruel@st.com>
20208 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
20210 (arm_cpu_builtins): New function.
20211 (arm_pragma_target_parse): Call arm_cpu_builtins.
20212 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
20213 (arm_register_target_pragmas): Likewise.
20214 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
20215 Call arm_register_target_pragmas.
20216 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
20217 (arm_pragma_target_parse): Likewise.
20219 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
20221 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
20222 of the second operand.
20224 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
20227 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
20228 to prepare mask operand for AVX512 modes.
20230 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
20233 * doc/md.texi (Machine Constraints): Document that on the PowerPC
20234 if you use a constraint that targets a VSX register, you must use
20235 %x<n> in the template.
20237 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
20239 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
20240 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
20241 (define_insn "trap"): New definition.
20243 2015-06-10 Richard Biener <rguenther@suse.de>
20245 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
20247 (vect_supported_load_permutation_p): ... here. Handle
20248 supportable permutations in reductions.
20249 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
20250 for vectorizing strided group loads.
20252 2015-06-10 Jakub Jelinek <jakub@redhat.com>
20255 * config/i386/i386.c (ix86_split_long_move): For collisions
20256 involving direct tls segment refs, move the UNSPEC_TP possibly
20257 wrapped in ZERO_EXTEND out of the address for lea, to each of
20260 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20262 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
20263 dmb sy. Adjust tabs.
20265 2015-06-10 Tom de Vries <tom@codesourcery.com>
20267 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
20269 2015-06-10 Martin Liska <mliska@suse.cz>
20272 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
20273 all enum values in mem_alloc_origin.
20274 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
20276 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
20277 * bitmap.c (bitmap_register): Likewise.
20278 (dump_bitmap_statistics): Likewise.
20279 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
20280 (ggc_record_overhead): Likewise.
20281 * hash-map.h: Likewise.
20282 * hash-set.h: Likewise.
20283 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
20284 * hash-table.h: Likewise.
20285 * vec.c (vec_prefix::register_overhead): Likewise.
20286 (vec_prefix::release_overhead): Likewise.
20287 (dump_vec_loc_statistics): Likewise.
20289 2015-06-09 Christian Bruel <christian.bruel@st.com>
20292 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
20293 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
20294 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
20295 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
20296 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
20297 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
20298 (arm_valid_target_attribute_p): Likewise.
20299 (arm_set_current_function, arm_can_inline_p): Likewise.
20300 (arm_valid_target_attribute_rec): Likewise.
20301 (arm_previous_fndecl): New variable.
20302 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20303 (TARGET_CAN_INLINE_P): Define.
20304 (arm_asm_trampoline_template): Emit mode.
20305 (arm_file_start): Don't set unified syntax.
20306 (arm_declare_function_name): Set unified syntax and mode.
20307 (arm_option_override): Init target_option_default_node.
20308 and target_option_current_node.
20309 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
20310 (*call_symbol): Likewise.
20311 * doc/extend.texi: Document ARM/Thumb target attribute.
20312 * doc/invoke.texi: Likewise.
20314 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20317 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20318 PR rtl-optimization/64164
20319 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20320 * tree-ssa-copyrename.c: Removed.
20321 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20322 -ftree-coalesce-vars.
20323 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20324 * common.opt (ftree-copyrename): Ignore.
20325 (ftree-coalesce-inlined-vars): Likewise.
20326 * doc/invoke.texi: Remove the ignored options above.
20327 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20328 * tree-ssa-coalesce.h: ... here.
20329 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20330 headers required by it.
20331 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20332 across variables when flag_tree_coalesce_vars. Check register
20333 use and promoted modes to allow coalescing. Moved to
20334 tree-ssa-coalesce.c.
20335 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20336 with its member functions to tree-ssa-coalesce.c.
20337 (var_map_base_init): Likewise. Renamed to
20338 compute_samebase_partition_bases.
20339 (partition_view_normal): Drop want_bases parameter.
20340 (partition_view_bitmap): Likewise.
20341 * tree-ssa-live.h: Adjust declarations.
20342 * tree-ssa-coalesce.c: Include explow.h.
20343 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20344 default defs at the entry point.
20345 (dump_part_var_map): New.
20346 (compute_optimized_partition_bases): New, called by...
20347 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20348 of compute_samebase_partition_bases. Adjust.
20349 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20350 * cfgexpand.c (leader_merge): New.
20351 (get_rtl_for_parm_ssa_default_def): New.
20352 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20353 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20354 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20355 redundant MEM attr setting.
20356 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20358 (expand_one_stack_var): ... this. New wrapper to check and
20359 skip already expanded SSA partitions.
20360 (record_alignment_for_reg_var): New, factored out of...
20361 (expand_one_var): ... this.
20362 (expand_one_ssa_partition): New.
20363 (adjust_one_expanded_partition_var): New.
20364 (expand_one_register_var): Check and skip already expanded SSA
20366 (expand_used_vars): Don't create DECLs for anonymous SSA
20367 names. Expand all SSA partitions, then adjust all SSA names.
20368 (pass::execute): Replace the loops that set
20369 SA.partition_to_pseudo from partition leaders and cleared
20370 DECL_RTL for multi-location variables, and that which used to
20371 rename vars and set attrs, with one that clears DECL_RTL and
20372 checks that PARMs and RESULTs default_defs match DECL_RTL.
20373 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20374 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20375 * explow.c (promote_ssa_mode): New.
20376 * explow.h (promote_ssa_mode): Declare.
20377 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20378 * function.c: Include cfgexpand.h.
20379 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20380 (use_register_for_parm_decl): Wrapper for the above to
20381 special-case the result_ptr.
20382 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20383 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20384 multiple locations.
20385 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20386 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20387 (assign_parm_setup_block): Prefer SSA-assigned location.
20388 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20389 if stack_parm is NULL.
20390 (assign_parm_setup_stack): Prefer SSA-assigned location.
20391 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20392 rtl before testing for pointer bounds. Special-case result_ptr.
20393 (expand_function_start): Maybe reset DECL_RTL of result.
20394 Prefer SSA-assigned location for result and static chain.
20395 Factor out DECL_RESULT and SET_DECL_RTL.
20396 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20397 anonymous SSA names. Use promote_ssa_mode.
20398 (get_temp_reg): Likewise.
20399 (remove_ssa_form): Adjust.
20400 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20401 and get its reg_usage for reg invalidation.
20402 (compute_bb_dataflow): Pass it insn.
20403 (emit_notes_in_bb): Likewise.
20404 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
20405 fail assert on conversion between unsigned types.
20407 2015-06-09 Tom de Vries <tom@codesourcery.com>
20409 PR tree-optimization/65460
20410 * omp-low.c (expand_omp_target): Set parallelized_function on
20411 cgraph_node for child_fn.
20413 2015-06-09 Tom de Vries <tom@codesourcery.com>
20415 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
20416 parallelized_function before add_new_function.
20418 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
20420 * gcc-plugin.h: Move decls to plugin.h and include it.
20421 * plugin.h: Relocate decls from gcc-plugin.h
20422 * ggc-page.c: Include required header files.
20423 * passes.c: Likewise.
20424 * cgraphunit.c: Likewise.
20426 2015-06-09 Tom de Vries <tom@codesourcery.com>
20428 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
20430 2015-06-09 Jason Merrill <jason@redhat.com>
20433 * toplev.c (check_global_declaration): Don't warn about a clone.
20435 2015-06-09 Marek Polacek <polacek@redhat.com>
20437 PR tree-optimization/66299
20438 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
20439 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
20442 2015-06-09 Richard Biener <rguenther@suse.de>
20444 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
20445 (vect_analyze_slp_instance): Instead do not falsely drop
20448 2015-06-09 Richard Biener <rguenther@suse.de>
20450 PR middle-end/66423
20451 * match.pd: Handle A % (unsigned)(1 << B).
20453 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
20455 * varasm.c (output_object_block_htab): Remove.
20456 (output_object_block_compare): New.
20457 (output_object_blocks): Sort named object_blocks before outputting
20460 2015-06-09 Richard Biener <rguenther@suse.de>
20462 PR tree-optimization/66419
20463 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
20464 consider GROUP_GAP when detecting a perfect subchain.
20466 2015-06-09 Nick Clifton <nickc@redhat.com>
20468 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
20469 place read only data in the .frodata section.
20471 2015-06-09 Shiva Chen <shiva0217@gmail.com>
20473 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
20474 (atomic_store<mode>): Likewise.
20476 2015-06-09 Richard Biener <rguenther@suse.de>
20478 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
20480 2015-06-09 Richard Biener <rguenther@suse.de>
20482 PR middle-end/66413
20483 * tree-inline.c (insert_init_debug_bind): Unshare value.
20485 2015-06-09 Richard Biener <rguenther@suse.de>
20487 PR tree-optimization/66396
20488 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
20489 Rename virtual operands.
20491 2015-06-09 Tom de Vries <tom@codesourcery.com>
20493 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
20494 always return false.
20496 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20498 PR rtl-optimization/64164
20499 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20500 * tree-ssa-copyrename.c: Removed.
20501 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20502 -ftree-coalesce-vars.
20503 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20504 * common.opt (ftree-copyrename): Ignore.
20505 (ftree-coalesce-inlined-vars): Likewise.
20506 * doc/invoke.texi: Remove the ignored options above.
20507 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20508 * tree-ssa-coalesce.h: ... here.
20509 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20510 headers required by it.
20511 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20512 across variables when flag_tree_coalesce_vars. Check register
20513 use and promoted modes to allow coalescing. Moved to
20514 tree-ssa-coalesce.c.
20515 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20516 with its member functions to tree-ssa-coalesce.c.
20517 (var_map_base_init): Likewise. Renamed to
20518 compute_samebase_partition_bases.
20519 (partition_view_normal): Drop want_bases parameter.
20520 (partition_view_bitmap): Likewise.
20521 * tree-ssa-live.h: Adjust declarations.
20522 * tree-ssa-coalesce.c: Include explow.h.
20523 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20524 default defs at the entry point.
20525 (dump_part_var_map): New.
20526 (compute_optimized_partition_bases): New, called by...
20527 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20528 of compute_samebase_partition_bases. Adjust.
20529 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20530 * cfgexpand.c (leader_merge): New.
20531 (get_rtl_for_parm_ssa_default_def): New.
20532 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20533 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20534 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20535 redundant MEM attr setting.
20536 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20538 (expand_one_stack_var): ... this. New wrapper to check and
20539 skip already expanded SSA partitions.
20540 (record_alignment_for_reg_var): New, factored out of...
20541 (expand_one_var): ... this.
20542 (expand_one_ssa_partition): New.
20543 (adjust_one_expanded_partition_var): New.
20544 (expand_one_register_var): Check and skip already expanded SSA
20546 (expand_used_vars): Don't create DECLs for anonymous SSA
20547 names. Expand all SSA partitions, then adjust all SSA names.
20548 (pass::execute): Replace the loops that set
20549 SA.partition_to_pseudo from partition leaders and cleared
20550 DECL_RTL for multi-location variables, and that which used to
20551 rename vars and set attrs, with one that clears DECL_RTL and
20552 checks that PARMs and RESULTs default_defs match DECL_RTL.
20553 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20554 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20555 * explow.c (promote_ssa_mode): New.
20556 * explow.h (promote_ssa_mode): Declare.
20557 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20558 * function.c: Include cfgexpand.h.
20559 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20560 (use_register_for_parm_decl): Wrapper for the above to
20561 special-case the result_ptr.
20562 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20563 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20564 multiple locations.
20565 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20566 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20567 (assign_parm_setup_block): Prefer SSA-assigned location.
20568 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20569 if stack_parm is NULL.
20570 (assign_parm_setup_stack): Prefer SSA-assigned location.
20571 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20572 rtl before testing for pointer bounds. Special-case result_ptr.
20573 (expand_function_start): Maybe reset DECL_RTL of result.
20574 Prefer SSA-assigned location for result and static chain.
20575 Factor out DECL_RESULT and SET_DECL_RTL.
20576 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20577 anonymous SSA names. Use promote_ssa_mode.
20578 (get_temp_reg): Likewise.
20579 (remove_ssa_form): Adjust.
20580 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20581 and get its reg_usage for reg invalidation.
20582 (compute_bb_dataflow): Pass it insn.
20583 (emit_notes_in_bb): Likewise.
20584 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
20585 fail assert on conversion between unsigned types.
20587 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
20590 * tree-inline.c (reset_debug_binding): New.
20591 (reset_debug_bindings): Likewise.
20592 (expand_call_inline): Call it.
20594 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20596 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
20599 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20601 * lto-streamer-out.c (lto_output_location): Stream
20602 reserved locations correctly.
20603 * lto-streamer-in.c (lto_output_location): Likewise.
20605 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
20607 * coretypes.h: Include hash-table.h and hash-set.h for host files.
20608 * ggc.h: Don't include statistics.h>
20609 * hash-map.h: Remove all includes.
20610 * hash-set.h: Likewise.
20611 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
20612 the include list. Remove <new>.
20613 * inchash.h: Remove all includes.
20614 * mem-stats.h: Likewise.
20615 * vec.h: No special processing for generators or ggc.
20616 * alias.c : Adjust include files.
20617 * alloc-pool.c : Likewise.
20618 * alloc-pool.h : Likewise.
20619 * asan.c : Likewise.
20620 * attribs.c : Likewise.
20621 * auto-inc-dec.c : Likewise.
20622 * auto-profile.c : Likewise.
20623 * bb-reorder.c : Likewise.
20624 * bitmap.c : Likewise.
20625 * bitmap.h : Likewise.
20626 * bt-load.c : Likewise.
20627 * builtins.c : Likewise.
20628 * caller-save.c : Likewise.
20629 * calls.c : Likewise.
20630 * ccmp.c : Likewise.
20631 * cfg.c : Likewise.
20632 * cfganal.c : Likewise.
20633 * cfgbuild.c : Likewise.
20634 * cfgcleanup.c : Likewise.
20635 * cfgexpand.c : Likewise.
20636 * cfghooks.c : Likewise.
20637 * cfgloop.c : Likewise.
20638 * cfgloop.h : Likewise.
20639 * cfgloopanal.c : Likewise.
20640 * cfgloopmanip.c : Likewise.
20641 * cfgrtl.c : Likewise.
20642 * cgraph.c : Likewise.
20643 * cgraphbuild.c : Likewise.
20644 * cgraphclones.c : Likewise.
20645 * cgraphunit.c : Likewise.
20646 * cilk-common.c : Likewise.
20647 * combine-stack-adj.c : Likewise.
20648 * combine.c : Likewise.
20649 * compare-elim.c : Likewise.
20650 * context.c : Likewise.
20651 * convert.c : Likewise.
20652 * coverage.c : Likewise.
20653 * cppbuiltin.c : Likewise.
20654 * cprop.c : Likewise.
20655 * cse.c : Likewise.
20656 * cselib.c : Likewise.
20657 * data-streamer-in.c : Likewise.
20658 * data-streamer-out.c : Likewise.
20659 * data-streamer.c : Likewise.
20660 * data-streamer.h : Likewise.
20661 * dbxout.c : Likewise.
20662 * dce.c : Likewise.
20663 * ddg.c : Likewise.
20664 * debug.c : Likewise.
20665 * df-core.c : Likewise.
20666 * df-problems.c : Likewise.
20667 * df-scan.c : Likewise.
20669 * dfp.c : Likewise.
20670 * dojump.c : Likewise.
20671 * dominance.c : Likewise.
20672 * domwalk.c : Likewise.
20673 * double-int.c : Likewise.
20674 * dse.c : Likewise.
20675 * dumpfile.c : Likewise.
20676 * dwarf2asm.c : Likewise.
20677 * dwarf2cfi.c : Likewise.
20678 * dwarf2out.c : Likewise.
20679 * emit-rtl.c : Likewise.
20680 * et-forest.c : Likewise.
20681 * except.c : Likewise.
20682 * except.h : Likewise.
20683 * explow.c : Likewise.
20684 * expmed.c : Likewise.
20685 * expr.c : Likewise.
20686 * final.c : Likewise.
20687 * fixed-value.c : Likewise.
20688 * fold-const.c : Likewise.
20689 * function.c : Likewise.
20690 * fwprop.c : Likewise.
20691 * gcc-plugin.h : Likewise.
20692 * gcc.c : Likewise.
20693 * gcse-common.c : Likewise.
20694 * gcse.c : Likewise.
20695 * genattrtab.c : Likewise.
20696 * genautomata.c : Likewise.
20697 * genconditions.c : Likewise.
20698 * genemit.c : Likewise.
20699 * generic-match-head.c : Likewise.
20700 * genextract.c : Likewise.
20701 * gengtype-state.c : Likewise.
20702 * gengtype.c : Likewise.
20703 * genhooks.c : Likewise.
20704 * genmatch.c : Likewise.
20705 * genmodes.c : Likewise.
20706 * genrecog.c : Likewise.
20707 * gensupport.c : Likewise.
20708 * ggc-common.c : Likewise.
20709 * ggc-internal.h : Likewise.
20710 * ggc-none.c : Likewise.
20711 * ggc-page.c : Likewise.
20712 * gimple-builder.c : Likewise.
20713 * gimple-expr.c : Likewise.
20714 * gimple-fold.c : Likewise.
20715 * gimple-iterator.c : Likewise.
20716 * gimple-low.c : Likewise.
20717 * gimple-match-head.c : Likewise.
20718 * gimple-pretty-print.c : Likewise.
20719 * gimple-ssa-isolate-paths.c : Likewise.
20720 * gimple-ssa-strength-reduction.c : Likewise.
20721 * gimple-ssa.h : Likewise.
20722 * gimple-streamer-in.c : Likewise.
20723 * gimple-streamer-out.c : Likewise.
20724 * gimple-streamer.h : Likewise.
20725 * gimple-walk.c : Likewise.
20726 * gimple.c : Likewise.
20727 * gimplify-me.c : Likewise.
20728 * gimplify.c : Likewise.
20729 * godump.c : Likewise.
20730 * graph.c : Likewise.
20731 * graphds.c : Likewise.
20732 * graphite-blocking.c : Likewise.
20733 * graphite-dependences.c : Likewise.
20734 * graphite-interchange.c : Likewise.
20735 * graphite-isl-ast-to-gimple.c : Likewise.
20736 * graphite-optimize-isl.c : Likewise.
20737 * graphite-poly.c : Likewise.
20738 * graphite-scop-detection.c : Likewise.
20739 * graphite-sese-to-poly.c : Likewise.
20740 * graphite.c : Likewise.
20741 * haifa-sched.c : Likewise.
20742 * hard-reg-set.h : Likewise.
20743 * hw-doloop.c : Likewise.
20744 * ifcvt.c : Likewise.
20745 * inchash.c : Likewise.
20746 * incpath.c : Likewise.
20747 * init-regs.c : Likewise.
20748 * input.c : Likewise.
20749 * internal-fn.c : Likewise.
20750 * ipa-chkp.c : Likewise.
20751 * ipa-comdats.c : Likewise.
20752 * ipa-cp.c : Likewise.
20753 * ipa-devirt.c : Likewise.
20754 * ipa-icf-gimple.c : Likewise.
20755 * ipa-icf.c : Likewise.
20756 * ipa-inline-analysis.c : Likewise.
20757 * ipa-inline-transform.c : Likewise.
20758 * ipa-inline.c : Likewise.
20759 * ipa-polymorphic-call.c : Likewise.
20760 * ipa-profile.c : Likewise.
20761 * ipa-prop.c : Likewise.
20762 * ipa-pure-const.c : Likewise.
20763 * ipa-ref.c : Likewise.
20764 * ipa-reference.c : Likewise.
20765 * ipa-split.c : Likewise.
20766 * ipa-utils.c : Likewise.
20767 * ipa-visibility.c : Likewise.
20768 * ipa.c : Likewise.
20769 * ira-build.c : Likewise.
20770 * ira-color.c : Likewise.
20771 * ira-conflicts.c : Likewise.
20772 * ira-costs.c : Likewise.
20773 * ira-emit.c : Likewise.
20774 * ira-lives.c : Likewise.
20775 * ira.c : Likewise.
20776 * jump.c : Likewise.
20777 * langhooks.c : Likewise.
20778 * lcm.c : Likewise.
20779 * libfuncs.h : Likewise.
20780 * lists.c : Likewise.
20781 * loop-doloop.c : Likewise.
20782 * loop-init.c : Likewise.
20783 * loop-invariant.c : Likewise.
20784 * loop-iv.c : Likewise.
20785 * loop-unroll.c : Likewise.
20786 * lower-subreg.c : Likewise.
20787 * lra-assigns.c : Likewise.
20788 * lra-coalesce.c : Likewise.
20789 * lra-constraints.c : Likewise.
20790 * lra-eliminations.c : Likewise.
20791 * lra-lives.c : Likewise.
20792 * lra-remat.c : Likewise.
20793 * lra-spills.c : Likewise.
20794 * lra.c : Likewise.
20795 * lto-cgraph.c : Likewise.
20796 * lto-compress.c : Likewise.
20797 * lto-opts.c : Likewise.
20798 * lto-section-in.c : Likewise.
20799 * lto-section-out.c : Likewise.
20800 * lto-streamer-in.c : Likewise.
20801 * lto-streamer-out.c : Likewise.
20802 * lto-streamer.c : Likewise.
20803 * lto-streamer.h : Likewise.
20804 * mcf.c : Likewise.
20805 * mode-switching.c : Likewise.
20806 * modulo-sched.c : Likewise.
20807 * omega.c : Likewise.
20808 * omp-low.c : Likewise.
20809 * optabs.c : Likewise.
20810 * opts-global.c : Likewise.
20811 * opts.h : Likewise.
20812 * passes.c : Likewise.
20813 * plugin.c : Likewise.
20814 * postreload-gcse.c : Likewise.
20815 * postreload.c : Likewise.
20816 * predict.c : Likewise.
20817 * print-rtl.c : Likewise.
20818 * print-tree.c : Likewise.
20819 * profile.c : Likewise.
20820 * read-md.c : Likewise.
20821 * read-md.h : Likewise.
20822 * read-rtl.c : Likewise.
20823 * real.c : Likewise.
20824 * realmpfr.c : Likewise.
20825 * recog.c : Likewise.
20826 * ree.c : Likewise.
20827 * reg-stack.c : Likewise.
20828 * regcprop.c : Likewise.
20829 * reginfo.c : Likewise.
20830 * regrename.c : Likewise.
20831 * regstat.c : Likewise.
20832 * reload.c : Likewise.
20833 * reload1.c : Likewise.
20834 * reorg.c : Likewise.
20835 * resource.c : Likewise.
20836 * rtl-chkp.c : Likewise.
20837 * rtl.c : Likewise.
20838 * rtl.h : Likewise.
20839 * rtlanal.c : Likewise.
20840 * rtlhash.c : Likewise.
20841 * rtlhash.h : Likewise.
20842 * rtlhooks.c : Likewise.
20843 * sanopt.c : Likewise.
20844 * sched-deps.c : Likewise.
20845 * sched-ebb.c : Likewise.
20846 * sched-rgn.c : Likewise.
20847 * sched-vis.c : Likewise.
20848 * sdbout.c : Likewise.
20849 * sel-sched-dump.c : Likewise.
20850 * sel-sched-ir.c : Likewise.
20851 * sel-sched-ir.h : Likewise.
20852 * sel-sched.c : Likewise.
20853 * sese.c : Likewise.
20854 * shrink-wrap.c : Likewise.
20855 * shrink-wrap.h : Likewise.
20856 * simplify-rtx.c : Likewise.
20857 * stack-ptr-mod.c : Likewise.
20858 * statistics.c : Likewise.
20859 * stmt.c : Likewise.
20860 * stor-layout.c : Likewise.
20861 * store-motion.c : Likewise.
20862 * stringpool.c : Likewise.
20863 * symtab.c : Likewise.
20864 * target-globals.c : Likewise.
20865 * targhooks.c : Likewise.
20866 * tlink.c : Likewise.
20867 * toplev.c : Likewise.
20868 * tracer.c : Likewise.
20869 * trans-mem.c : Likewise.
20870 * tree-affine.c : Likewise.
20871 * tree-affine.h : Likewise.
20872 * tree-browser.c : Likewise.
20873 * tree-call-cdce.c : Likewise.
20874 * tree-cfg.c : Likewise.
20875 * tree-cfgcleanup.c : Likewise.
20876 * tree-chkp-opt.c : Likewise.
20877 * tree-chkp.c : Likewise.
20878 * tree-chrec.c : Likewise.
20879 * tree-complex.c : Likewise.
20880 * tree-data-ref.c : Likewise.
20881 * tree-dfa.c : Likewise.
20882 * tree-diagnostic.c : Likewise.
20883 * tree-dump.c : Likewise.
20884 * tree-eh.c : Likewise.
20885 * tree-eh.h : Likewise.
20886 * tree-emutls.c : Likewise.
20887 * tree-hasher.h : Likewise.
20888 * tree-if-conv.c : Likewise.
20889 * tree-inline.c : Likewise.
20890 * tree-inline.h : Likewise.
20891 * tree-into-ssa.c : Likewise.
20892 * tree-iterator.c : Likewise.
20893 * tree-loop-distribution.c : Likewise.
20894 * tree-nested.c : Likewise.
20895 * tree-nrv.c : Likewise.
20896 * tree-object-size.c : Likewise.
20897 * tree-outof-ssa.c : Likewise.
20898 * tree-parloops.c : Likewise.
20899 * tree-phinodes.c : Likewise.
20900 * tree-predcom.c : Likewise.
20901 * tree-pretty-print.c : Likewise.
20902 * tree-profile.c : Likewise.
20903 * tree-scalar-evolution.c : Likewise.
20904 * tree-sra.c : Likewise.
20905 * tree-ssa-address.c : Likewise.
20906 * tree-ssa-alias.c : Likewise.
20907 * tree-ssa-ccp.c : Likewise.
20908 * tree-ssa-coalesce.c : Likewise.
20909 * tree-ssa-copy.c : Likewise.
20910 * tree-ssa-copyrename.c : Likewise.
20911 * tree-ssa-dce.c : Likewise.
20912 * tree-ssa-dom.c : Likewise.
20913 * tree-ssa-dse.c : Likewise.
20914 * tree-ssa-forwprop.c : Likewise.
20915 * tree-ssa-ifcombine.c : Likewise.
20916 * tree-ssa-live.c : Likewise.
20917 * tree-ssa-loop-ch.c : Likewise.
20918 * tree-ssa-loop-im.c : Likewise.
20919 * tree-ssa-loop-ivcanon.c : Likewise.
20920 * tree-ssa-loop-ivopts.c : Likewise.
20921 * tree-ssa-loop-manip.c : Likewise.
20922 * tree-ssa-loop-niter.c : Likewise.
20923 * tree-ssa-loop-prefetch.c : Likewise.
20924 * tree-ssa-loop-unswitch.c : Likewise.
20925 * tree-ssa-loop.c : Likewise.
20926 * tree-ssa-math-opts.c : Likewise.
20927 * tree-ssa-operands.c : Likewise.
20928 * tree-ssa-phiopt.c : Likewise.
20929 * tree-ssa-phiprop.c : Likewise.
20930 * tree-ssa-pre.c : Likewise.
20931 * tree-ssa-propagate.c : Likewise.
20932 * tree-ssa-reassoc.c : Likewise.
20933 * tree-ssa-sccvn.c : Likewise.
20934 * tree-ssa-scopedtables.c : Likewise.
20935 * tree-ssa-sink.c : Likewise.
20936 * tree-ssa-strlen.c : Likewise.
20937 * tree-ssa-structalias.c : Likewise.
20938 * tree-ssa-tail-merge.c : Likewise.
20939 * tree-ssa-ter.c : Likewise.
20940 * tree-ssa-threadedge.c : Likewise.
20941 * tree-ssa-threadupdate.c : Likewise.
20942 * tree-ssa-uncprop.c : Likewise.
20943 * tree-ssa-uninit.c : Likewise.
20944 * tree-ssa.c : Likewise.
20945 * tree-ssanames.c : Likewise.
20946 * tree-stdarg.c : Likewise.
20947 * tree-streamer-in.c : Likewise.
20948 * tree-streamer-out.c : Likewise.
20949 * tree-streamer.c : Likewise.
20950 * tree-streamer.h : Likewise.
20951 * tree-switch-conversion.c : Likewise.
20952 * tree-tailcall.c : Likewise.
20953 * tree-vect-data-refs.c : Likewise.
20954 * tree-vect-generic.c : Likewise.
20955 * tree-vect-loop-manip.c : Likewise.
20956 * tree-vect-loop.c : Likewise.
20957 * tree-vect-patterns.c : Likewise.
20958 * tree-vect-slp.c : Likewise.
20959 * tree-vect-stmts.c : Likewise.
20960 * tree-vectorizer.c : Likewise.
20961 * tree-vectorizer.h : Likewise.
20962 * tree-vrp.c : Likewise.
20963 * tree.c : Likewise.
20964 * tsan.c : Likewise.
20965 * ubsan.c : Likewise.
20966 * valtrack.c : Likewise.
20967 * valtrack.h : Likewise.
20968 * value-prof.c : Likewise.
20969 * var-tracking.c : Likewise.
20970 * varasm.c : Likewise.
20971 * varpool.c : Likewise.
20973 * vmsdbgout.c : Likewise.
20974 * vtable-verify.c : Likewise.
20975 * vtable-verify.h : Likewise.
20976 * web.c : Likewise.
20977 * wide-int.cc : Likewise.
20978 * xcoffout.c : Likewise.
20979 * config/aarch64/aarch64-builtins.c : Likewise.
20980 * config/aarch64/aarch64.c : Likewise.
20981 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20982 * config/alpha/alpha.c : Likewise.
20983 * config/arc/arc.c : Likewise.
20984 * config/arm/aarch-common.c : Likewise.
20985 * config/arm/arm-builtins.c : Likewise.
20986 * config/arm/arm-c.c : Likewise.
20987 * config/arm/arm.c : Likewise.
20988 * config/avr/avr-c.c : Likewise.
20989 * config/avr/avr-log.c : Likewise.
20990 * config/avr/avr.c : Likewise.
20991 * config/bfin/bfin.c : Likewise.
20992 * config/c6x/c6x.c : Likewise.
20993 * config/cr16/cr16.c : Likewise.
20994 * config/cris/cris.c : Likewise.
20995 * config/darwin-c.c : Likewise.
20996 * config/darwin.c : Likewise.
20997 * config/default-c.c : Likewise.
20998 * config/epiphany/epiphany.c : Likewise.
20999 * config/epiphany/mode-switch-use.c : Likewise.
21000 * config/epiphany/resolve-sw-modes.c : Likewise.
21001 * config/fr30/fr30.c : Likewise.
21002 * config/frv/frv.c : Likewise.
21003 * config/ft32/ft32.c : Likewise.
21004 * config/glibc-c.c : Likewise.
21005 * config/h8300/h8300.c : Likewise.
21006 * config/i386/i386-c.c : Likewise.
21007 * config/i386/i386.c : Likewise.
21008 * config/i386/msformat-c.c : Likewise.
21009 * config/i386/winnt-cxx.c : Likewise.
21010 * config/i386/winnt-stubs.c : Likewise.
21011 * config/i386/winnt.c : Likewise.
21012 * config/ia64/ia64-c.c : Likewise.
21013 * config/ia64/ia64.c : Likewise.
21014 * config/iq2000/iq2000.c : Likewise.
21015 * config/lm32/lm32.c : Likewise.
21016 * config/m32c/m32c-pragma.c : Likewise.
21017 * config/m32c/m32c.c : Likewise.
21018 * config/m32r/m32r.c : Likewise.
21019 * config/m68k/m68k.c : Likewise.
21020 * config/mcore/mcore.c : Likewise.
21021 * config/mep/mep-pragma.c : Likewise.
21022 * config/mep/mep.c : Likewise.
21023 * config/microblaze/microblaze-c.c : Likewise.
21024 * config/microblaze/microblaze.c : Likewise.
21025 * config/mips/mips.c : Likewise.
21026 * config/mmix/mmix.c : Likewise.
21027 * config/mn10300/mn10300.c : Likewise.
21028 * config/moxie/moxie.c : Likewise.
21029 * config/msp430/msp430-c.c : Likewise.
21030 * config/msp430/msp430.c : Likewise.
21031 * config/nds32/nds32-cost.c : Likewise.
21032 * config/nds32/nds32-fp-as-gp.c : Likewise.
21033 * config/nds32/nds32-intrinsic.c : Likewise.
21034 * config/nds32/nds32-isr.c : Likewise.
21035 * config/nds32/nds32-md-auxiliary.c : Likewise.
21036 * config/nds32/nds32-memory-manipulation.c : Likewise.
21037 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21038 * config/nds32/nds32-predicates.c : Likewise.
21039 * config/nds32/nds32.c : Likewise.
21040 * config/nios2/nios2.c : Likewise.
21041 * config/nvptx/nvptx.c : Likewise.
21042 * config/pa/pa.c : Likewise.
21043 * config/pdp11/pdp11.c : Likewise.
21044 * config/rl78/rl78-c.c : Likewise.
21045 * config/rl78/rl78.c : Likewise.
21046 * config/rs6000/rs6000-c.c : Likewise.
21047 * config/rs6000/rs6000.c : Likewise.
21048 * config/rx/rx.c : Likewise.
21049 * config/s390/s390-c.c : Likewise.
21050 * config/s390/s390.c : Likewise.
21051 * config/sh/sh-c.c : Likewise.
21052 * config/sh/sh-mem.cc : Likewise.
21053 * config/sh/sh.c : Likewise.
21054 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21055 * config/sh/sh_treg_combine.cc : Likewise.
21056 * config/sol2-c.c : Likewise.
21057 * config/sol2-cxx.c : Likewise.
21058 * config/sol2-stubs.c : Likewise.
21059 * config/sol2.c : Likewise.
21060 * config/sparc/sparc-c.c : Likewise.
21061 * config/sparc/sparc.c : Likewise.
21062 * config/spu/spu-c.c : Likewise.
21063 * config/spu/spu.c : Likewise.
21064 * config/stormy16/stormy16.c : Likewise.
21065 * config/tilegx/mul-tables.c : Likewise.
21066 * config/tilegx/tilegx-c.c : Likewise.
21067 * config/tilegx/tilegx.c : Likewise.
21068 * config/tilepro/mul-tables.c : Likewise.
21069 * config/tilepro/tilepro-c.c : Likewise.
21070 * config/tilepro/tilepro.c : Likewise.
21071 * config/v850/v850-c.c : Likewise.
21072 * config/v850/v850.c : Likewise.
21073 * config/vax/vax.c : Likewise.
21074 * config/visium/visium.c : Likewise.
21075 * config/vms/vms-c.c : Likewise.
21076 * config/vms/vms.c : Likewise.
21077 * config/vxworks.c : Likewise.
21078 * config/winnt-c.c : Likewise.
21079 * config/xtensa/xtensa.c : Likewise.
21081 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21084 * ipa-utils.h (warn_types_mismatch): Update prototype.
21085 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21087 (type_mismatch_p): New function.
21088 (warn_types_mismatch): Reorg to work better on non-C++ types.
21089 (odr_types_equivalent_p): Add loc1/loc2 parameters.
21090 (add_type_duplicate): Update.
21092 2015-06-08 Tom de Vries <tom@codesourcery.com>
21094 PR rtl-optimization/66444
21095 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21098 2015-06-08 Richard Biener <rguenther@suse.de>
21100 PR tree-optimization/66422
21101 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21102 block after inserted gcc_unreachable.
21104 2015-06-08 Nick Clifton <nickc@redhat.com>
21106 * config/rx/rx.c (rx_function_value): Do not promote vector types.
21107 (rx_promote_function_mode): Likewise.
21108 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
21110 2015-06-08 Jakub Jelinek <jakub@redhat.com>
21112 * genattrtab.c (insn_alternatives): Change type from int *
21114 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
21115 (get_attr_value): Change type of num_alt to uint64_t.
21116 (compute_alternative_mask): Change return type from
21117 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
21118 (make_alternative_compare, mk_attr_alt): Change argument type
21119 from int to uint64_t.
21120 (simplify_test_exp): Change type of i from int to uint64_t.
21121 Shift ((uint64_t) 1) instead of 1 up.
21122 (main): Adjust oballocvec first argument from int to uint64_t.
21123 Shift ((uint64_t) 1) instead of 1 up.
21125 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
21128 * gdbhooks.py: Import sys.
21129 (intptr): New function. Replace int(...) by intptr(...).
21131 2015-06-08 Richard Biener <rguenther@suse.de>
21133 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
21134 adjustment for gaps at the end of a SLP load group properly.
21135 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
21136 all permutations we can generate.
21137 (vect_transform_slp_perm_load): Use the correct group-size.
21139 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
21141 * genmatch.c (expr::gen_transform): For conditions, guess the type
21142 from the second operand.
21144 2015-06-08 Tom de Vries <tom@codesourcery.com>
21146 PR tree-optimization/66442
21147 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
21148 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
21149 if the loop latch is not a singleton. Use
21150 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
21152 2015-06-08 Marek Polacek <polacek@redhat.com>
21155 * toplev.c (check_global_declaration): Don't warn about artificial
21158 2015-06-08 Tom de Vries <tom@codesourcery.com>
21160 PR tree-optimization/66436
21161 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
21163 * gimplify.c: Add tree-dump.h include.
21164 (gimplify_function_tree): Dump function to gimple dump file.
21165 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
21168 2015-06-08 Tom de Vries <tom@codesourcery.com>
21170 PR tree-optimization/66435
21171 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
21174 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
21176 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
21177 of ptr_type_node to not be ptr_to_node.
21178 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
21179 TREE_TYPE of pointers.
21180 * gimple-expr.c (useless_type_conversion): Reorder the check for
21181 function pointers and TYPE_CANONICAL.
21183 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
21186 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
21187 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
21188 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
21190 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
21191 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
21192 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
21193 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
21194 and non iso if unix2003.
21196 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
21198 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
21200 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
21202 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
21203 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
21204 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
21205 except.c, final.c, function.c, gcse-common.c, genemit.c,
21206 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
21207 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
21208 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
21209 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
21212 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
21214 * combine.c (combine_split_insns): Remove cast.
21215 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
21216 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
21217 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
21218 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
21219 * genemit.c (gen_split): Change return type of generated functions to
21221 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
21222 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
21223 gen_peephole2_* functions.
21224 (print_subroutine, main): Likewise.
21225 * recog.c (peephole2_optimize): Remove cast.
21226 (peep2_next_insn): Promote return type to rtx_insn.
21227 * recog.h (peep2_next_insn): Fix prototype.
21228 * rtl.h (try_split, split_insns): Likewise.
21230 2015-06-06 DJ Delorie <dj@redhat.com>
21232 * config/msp430/msp430.c (msp430_asm_integer): Support addition
21233 and subtraction too.
21235 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
21238 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
21239 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
21240 instead of Snd. Disparage Sid/z alternative with '^'.
21242 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
21244 * dwarf2out.c: Remove deferred_locations*.
21245 (dwarf2_debug_hooks): Add early_finish hook.
21246 Remove global_decl hook.
21247 Add early_global_decl and late_global_decl hook.
21248 New global early_dwarf.
21249 New structure set_early_dwarf.
21250 (output_die): Indicate whether a DIE was generated early
21251 when generating assembly with -dA.
21252 (struct limbo_die_struct): Document created_for field.
21253 Remove file_table_last_lookup.
21254 (remove_AT): Return TRUE if successful.
21255 (remove_child_TAG): Clear die_parent.
21256 (reparent_child): New function abstracted from...
21257 (splice_child_die): ...here.
21258 (new_die): ICE if a DIE ends up in limbo too late.
21260 (defer_location): Remove.
21261 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
21262 (fill_variable_array_bounds): New.
21263 (decl_start_label): Call fill_variable_array_bounds.
21264 (gen_formal_parameter_die): Rewrite to reuse previously generated
21266 (gen_subprogram_die): Same.
21267 (gen_variable_die): Same.
21268 (gen_const_die): Same.
21269 (gen_label_die): Same.
21270 (gen_lexical_block_die): Same.
21271 (decl_will_get_specification_p): New.
21272 (local_function_static): New.
21273 (gen_struct_or_union_type_die): Fill in variable-length fields.
21274 (gen_typedef_die): Fill in variable-length typedefs.
21275 (gen_tagged_type_die): Gracefully return on error_mark_node.
21276 Handle re-entrancy.
21277 (gen_type_die_with_usage): Handle variable-length types.
21278 Remove duplicate code for ARRAY_TYPE case.
21279 (process_scope_var): Only process imported modules during early
21281 (dwarf2out_early_global_decl): New.
21282 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
21283 (dwarf2out_type_decl): Set early_dwarf while calling
21285 (dwarf2out_decl): Verify that we did not recreate a previously
21287 Do not return on DECL_EXTERNALs in VAR_DECLs.
21288 Abstract some code to local_function_static.
21289 (lookup_filename): Remove use of file_table_last_lookup.
21290 Gracefully exit on missing file_name.
21291 (dwarf2out_finish): Verify limbo list.
21292 Remove deferred_locations_list use.
21293 Move deferred_asm_name and limbo flushing to...
21294 (dwarf2out_early_finish): ...here. New.
21295 (dwarf2out_c_finalize): Remove set of deferred_location_list,
21296 deferred_asm_name, and file_table_last_lookup.
21297 * cgraph.h (referred_to_p): Add default argument.
21298 * cgraphunit.c (referred_to_p): Add and handle include_self
21300 (analyze_functions): Add first_time argument.
21301 Call check_global_declaration for all symbols.
21302 Call late_global_decl for nodes for moribund nodes.
21303 (finalize_compilation_unit): Add new argument to
21305 Call early_global_decl for functions.
21306 Call early_finish debug hook.
21307 * dbxout.c (dbxout_early_global_decl): New.
21308 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
21309 (dbx_debug_hooks): Add new hooks.
21310 (xcoff_debug_hooks): Same.
21311 * debug.c (do_nothing_debug_hooks): Add early_finish field.
21312 Add early and late debug hooks.
21313 Remove global_decl hook.
21314 * debug.h (struct gcc_debug_hooks): Add early_finish,
21315 early_global_decl, and late_global_decl fields.
21316 Remove global_decl field.
21317 Document gcc_debug_hooks.
21318 * gengtype.c (output_typename): Remove.
21319 * godump.c (go_early_global_decl): New.
21320 (go_late_global_decl): New.
21321 (go_global_decl): Remove.
21322 (dump_go_spec_init): Remove global_decl. Add
21323 {early,late}_global_decl.
21324 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
21325 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
21326 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
21327 (write_global_declarations): Remove.
21328 (global_decl_processing): New.
21329 * langhooks.h (struct lang_hooks_for_decls): Remove
21330 final_write_globals field.
21331 Add post_compilation_parsing_cleanups field.
21332 * passes.c (rest_of_decl_compilation): Call early_global_decl.
21333 * sdbout.c: Add early and late_global_decl hooks. Remove
21334 sdbout_global_decl hook.
21335 Add early_finish field for sdb_debug_hooks.
21336 (sdbout_global_decl): Remove.
21337 (sdbout_early_global_decl): New.
21338 (sdbout_late_global_decl): New.
21339 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
21340 * toplev.c (check_global_declaration): Rename from
21341 check_global_declaration_1.
21342 Adapt to use symtab infrastructure.
21343 (check_global_declarations): Remove.
21344 (emit_debug_global_declarations): Remove.
21345 (compile_file): Remove call to final_write_globals langhook.
21346 Run the actual compilation process.
21347 Perform any post compilation parser cleanups.
21348 Generate late debug info.
21349 * toplev.h (check_global_declaration): New.
21350 (check_global_declaration_1): Remove.
21351 (check_global_declarations): Remove.
21352 (write_global_declarations): Remove.
21353 (emit_debug_global_declarations): Remove.
21354 (global_decl_processing): New.
21355 * tree-core.h (struct tree_block): Add DIE field.
21356 * tree.h (BLOCK_DIE): New.
21357 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
21359 (vmsdbgout_early_global_decl): New.
21360 (vmsdbgout_late_global_decl): New.
21361 Add early_finish debug hook field to vmsdbg_debug_hooks.
21362 Remove vmsdbgout_decl to vmsdbgout_function_decl.
21363 Add early and late_global_decl debug hooks.
21365 2015-06-05 Julian Brown <julian@codesourcery.com>
21366 Sandra Loosemore <sandra@codesourcery.com>
21368 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
21369 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
21370 to print-sysroot-suffix.sh script.
21372 2015-06-05 Tom de Vries <tom@codesourcery.com>
21374 merge from gomp4 branch:
21375 2015-05-28 Tom de Vries <tom@codesourcery.com>
21377 PR tree-optimization/65443
21378 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
21379 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
21380 (try_transform_to_exit_first_loop_alt): New function.
21381 (transform_to_exit_first_loop): Use
21382 try_transform_to_exit_first_loop_alt.
21384 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
21386 * builtins.c (expand_builtin_atomic_compare_exchange): Call
21387 emit_cmp_and_jump_insns with the mode of target.
21389 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21391 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
21393 2015-06-04 DJ Delorie <dj@redhat.com>
21395 * config/msp430/msp430.md (movsi_s): New. Special case for
21396 storing a 20-bit symbol into a 32-bit register.
21397 * config/msp430/msp430.c (msp430_subreg): Add support for it.
21398 * config/msp430/predicates.md (msp430_symbol_operand): New.
21400 2015-06-04 Sriraman Tallam <tmsriram@google.com>
21402 * c-family/c-common.c (noplt): New attribute.
21403 (handle_noplt_attribute): New handler.
21404 * calls.c (prepare_call_address): Check for noplt
21406 * config/i386/i386.c (ix86_expand_call): Check
21407 for noplt attribute.
21408 (ix86_nopic_noplt_attribute_p): New function.
21409 (ix86_output_call_insn): Output indirect call for non-pic
21411 * doc/extend.texi (noplt): Document new attribute.
21412 * doc/invoke.texi: Document new attribute.
21414 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
21416 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
21417 real.h, and fixed-value.h when included in host source files.
21418 * double-int.h: Remove redundant #includes listed above.
21419 * fixed-value.h: Likewise.
21420 * real.h: Likewise.
21421 * wide-int.h: Likewise.
21422 * inchash.h: Likewise.
21423 * rtl.h: Add some include files When included from a generator file.
21424 * target.h: Remove wide-int.h and insn-modes.h from the include list.
21425 * internal-fn.h: Don't include coretypes.h.
21426 * alias.c: Adjust includes for restructured coretypes.h.
21427 * asan.c: Likewise.
21428 * attribs.c: Likewise.
21429 * auto-inc-dec.c: Likewise.
21430 * auto-profile.c: Likewise.
21431 * bb-reorder.c: Likewise.
21432 * bt-load.c: Likewise.
21433 * builtins.c: Likewise.
21434 * caller-save.c: Likewise.
21435 * calls.c: Likewise.
21436 * ccmp.c: Likewise.
21438 * cfganal.c: Likewise.
21439 * cfgbuild.c: Likewise.
21440 * cfgcleanup.c: Likewise.
21441 * cfgexpand.c: Likewise.
21442 * cfghooks.c: Likewise.
21443 * cfgloop.c: Likewise.
21444 * cfgloop.h: Likewise.
21445 * cfgloopanal.c: Likewise.
21446 * cfgloopmanip.c: Likewise.
21447 * cfgrtl.c: Likewise.
21448 * cgraph.c: Likewise.
21449 * cgraphbuild.c: Likewise.
21450 * cgraphclones.c: Likewise.
21451 * cgraphunit.c: Likewise.
21452 * cilk-common.c: Likewise.
21453 * combine-stack-adj.c: Likewise.
21454 * combine.c: Likewise.
21455 * compare-elim.c: Likewise.
21456 * convert.c: Likewise.
21457 * coverage.c: Likewise.
21458 * cppbuiltin.c: Likewise.
21459 * cprop.c: Likewise.
21461 * cselib.c: Likewise.
21462 * data-streamer-in.c: Likewise.
21463 * data-streamer-out.c: Likewise.
21464 * data-streamer.c: Likewise.
21465 * dbxout.c: Likewise.
21468 * debug.c: Likewise.
21469 * df-core.c: Likewise.
21470 * df-problems.c: Likewise.
21471 * df-scan.c: Likewise.
21474 * dojump.c: Likewise.
21475 * dominance.c: Likewise.
21476 * domwalk.c: Likewise.
21477 * double-int.c: Likewise.
21479 * dumpfile.c: Likewise.
21480 * dwarf2asm.c: Likewise.
21481 * dwarf2cfi.c: Likewise.
21482 * dwarf2out.c: Likewise.
21483 * dwarf2out.h: Likewise.
21484 * emit-rtl.c: Likewise.
21485 * et-forest.c: Likewise.
21486 * except.c: Likewise.
21487 * explow.c: Likewise.
21488 * expmed.c: Likewise.
21489 * expr.c: Likewise.
21490 * final.c: Likewise.
21491 * fixed-value.c: Likewise.
21492 * fold-const.c: Likewise.
21493 * function.c: Likewise.
21494 * fwprop.c: Likewise.
21495 * gcc-plugin.h: Likewise.
21496 * gcse.c: Likewise.
21497 * generic-match-head.c: Likewise.
21498 * ggc-page.c: Likewise.
21499 * gimple-builder.c: Likewise.
21500 * gimple-expr.c: Likewise.
21501 * gimple-fold.c: Likewise.
21502 * gimple-iterator.c: Likewise.
21503 * gimple-low.c: Likewise.
21504 * gimple-match-head.c: Likewise.
21505 * gimple-pretty-print.c: Likewise.
21506 * gimple-ssa-isolate-paths.c: Likewise.
21507 * gimple-ssa-strength-reduction.c: Likewise.
21508 * gimple-streamer-in.c: Likewise.
21509 * gimple-streamer-out.c: Likewise.
21510 * gimple-streamer.h: Likewise.
21511 * gimple-walk.c: Likewise.
21512 * gimple.c: Likewise.
21513 * gimplify-me.c: Likewise.
21514 * gimplify.c: Likewise.
21515 * godump.c: Likewise.
21516 * graph.c: Likewise.
21517 * graphite-blocking.c: Likewise.
21518 * graphite-dependences.c: Likewise.
21519 * graphite-interchange.c: Likewise.
21520 * graphite-isl-ast-to-gimple.c: Likewise.
21521 * graphite-optimize-isl.c: Likewise.
21522 * graphite-poly.c: Likewise.
21523 * graphite-scop-detection.c: Likewise.
21524 * graphite-sese-to-poly.c: Likewise.
21525 * graphite.c: Likewise.
21526 * haifa-sched.c: Likewise.
21527 * hooks.h: Likewise.
21528 * hw-doloop.c: Likewise.
21529 * ifcvt.c: Likewise.
21530 * incpath.c: Likewise.
21531 * init-regs.c: Likewise.
21532 * internal-fn.c: Likewise.
21533 * ipa-chkp.c: Likewise.
21534 * ipa-comdats.c: Likewise.
21535 * ipa-cp.c: Likewise.
21536 * ipa-devirt.c: Likewise.
21537 * ipa-icf-gimple.c: Likewise.
21538 * ipa-icf.c: Likewise.
21539 * ipa-inline-analysis.c: Likewise.
21540 * ipa-inline-transform.c: Likewise.
21541 * ipa-inline.c: Likewise.
21542 * ipa-polymorphic-call.c: Likewise.
21543 * ipa-profile.c: Likewise.
21544 * ipa-prop.c: Likewise.
21545 * ipa-pure-const.c: Likewise.
21546 * ipa-ref.c: Likewise.
21547 * ipa-reference.c: Likewise.
21548 * ipa-split.c: Likewise.
21549 * ipa-utils.c: Likewise.
21550 * ipa-visibility.c: Likewise.
21552 * ira-build.c: Likewise.
21553 * ira-color.c: Likewise.
21554 * ira-conflicts.c: Likewise.
21555 * ira-costs.c: Likewise.
21556 * ira-emit.c: Likewise.
21557 * ira-lives.c: Likewise.
21559 * jump.c: Likewise.
21560 * langhooks.c: Likewise.
21562 * loop-doloop.c: Likewise.
21563 * loop-init.c: Likewise.
21564 * loop-invariant.c: Likewise.
21565 * loop-iv.c: Likewise.
21566 * loop-unroll.c: Likewise.
21567 * lower-subreg.c: Likewise.
21568 * lra-assigns.c: Likewise.
21569 * lra-coalesce.c: Likewise.
21570 * lra-constraints.c: Likewise.
21571 * lra-eliminations.c: Likewise.
21572 * lra-lives.c: Likewise.
21573 * lra-remat.c: Likewise.
21574 * lra-spills.c: Likewise.
21576 * lto-cgraph.c: Likewise.
21577 * lto-compress.c: Likewise.
21578 * lto-opts.c: Likewise.
21579 * lto-section-in.c: Likewise.
21580 * lto-section-out.c: Likewise.
21581 * lto-streamer-in.c: Likewise.
21582 * lto-streamer-out.c: Likewise.
21583 * lto-streamer.c: Likewise.
21585 * mode-switching.c: Likewise.
21586 * modulo-sched.c: Likewise.
21587 * omega.c: Likewise.
21588 * omp-low.c: Likewise.
21589 * optabs.c: Likewise.
21590 * opts-global.c: Likewise.
21591 * passes.c: Likewise.
21592 * plugin.c: Likewise.
21593 * postreload-gcse.c: Likewise.
21594 * postreload.c: Likewise.
21595 * predict.c: Likewise.
21596 * print-rtl.c: Likewise.
21597 * print-tree.c: Likewise.
21598 * profile.c: Likewise.
21599 * real.c: Likewise.
21600 * realmpfr.c: Likewise.
21601 * realmpfr.h: Likewise.
21602 * recog.c: Likewise.
21604 * reg-stack.c: Likewise.
21605 * regcprop.c: Likewise.
21606 * reginfo.c: Likewise.
21607 * regrename.c: Likewise.
21608 * regs.h: Likewise.
21609 * regstat.c: Likewise.
21610 * reload.c: Likewise.
21611 * reload1.c: Likewise.
21612 * reorg.c: Likewise.
21613 * resource.c: Likewise.
21614 * rtl-chkp.c: Likewise.
21615 * rtlanal.c: Likewise.
21616 * rtlhooks.c: Likewise.
21617 * sanopt.c: Likewise.
21618 * sched-deps.c: Likewise.
21619 * sched-ebb.c: Likewise.
21620 * sched-rgn.c: Likewise.
21621 * sched-vis.c: Likewise.
21622 * sdbout.c: Likewise.
21623 * sel-sched-dump.c: Likewise.
21624 * sel-sched-ir.c: Likewise.
21625 * sel-sched.c: Likewise.
21626 * sese.c: Likewise.
21627 * shrink-wrap.c: Likewise.
21628 * shrink-wrap.h: Likewise.
21629 * simplify-rtx.c: Likewise.
21630 * stack-ptr-mod.c: Likewise.
21631 * statistics.c: Likewise.
21632 * stmt.c: Likewise.
21633 * stor-layout.c: Likewise.
21634 * store-motion.c: Likewise.
21635 * stringpool.c: Likewise.
21636 * symtab.c: Likewise.
21637 * target-globals.c: Likewise.
21638 * targhooks.c: Likewise.
21639 * toplev.c: Likewise.
21640 * tracer.c: Likewise.
21641 * trans-mem.c: Likewise.
21642 * tree-affine.c: Likewise.
21643 * tree-affine.h: Likewise.
21644 * tree-browser.c: Likewise.
21645 * tree-call-cdce.c: Likewise.
21646 * tree-cfg.c: Likewise.
21647 * tree-cfgcleanup.c: Likewise.
21648 * tree-chkp-opt.c: Likewise.
21649 * tree-chkp.c: Likewise.
21650 * tree-chrec.c: Likewise.
21651 * tree-complex.c: Likewise.
21652 * tree-data-ref.c: Likewise.
21653 * tree-dfa.c: Likewise.
21654 * tree-diagnostic.c: Likewise.
21655 * tree-dump.c: Likewise.
21656 * tree-eh.c: Likewise.
21657 * tree-emutls.c: Likewise.
21658 * tree-if-conv.c: Likewise.
21659 * tree-inline.c: Likewise.
21660 * tree-into-ssa.c: Likewise.
21661 * tree-iterator.c: Likewise.
21662 * tree-loop-distribution.c: Likewise.
21663 * tree-nested.c: Likewise.
21664 * tree-nrv.c: Likewise.
21665 * tree-object-size.c: Likewise.
21666 * tree-outof-ssa.c: Likewise.
21667 * tree-parloops.c: Likewise.
21668 * tree-phinodes.c: Likewise.
21669 * tree-predcom.c: Likewise.
21670 * tree-pretty-print.c: Likewise.
21671 * tree-pretty-print.h: Likewise.
21672 * tree-profile.c: Likewise.
21673 * tree-scalar-evolution.c: Likewise.
21674 * tree-sra.c: Likewise.
21675 * tree-ssa-address.c: Likewise.
21676 * tree-ssa-alias.c: Likewise.
21677 * tree-ssa-ccp.c: Likewise.
21678 * tree-ssa-coalesce.c: Likewise.
21679 * tree-ssa-copy.c: Likewise.
21680 * tree-ssa-copyrename.c: Likewise.
21681 * tree-ssa-dce.c: Likewise.
21682 * tree-ssa-dom.c: Likewise.
21683 * tree-ssa-dse.c: Likewise.
21684 * tree-ssa-forwprop.c: Likewise.
21685 * tree-ssa-ifcombine.c: Likewise.
21686 * tree-ssa-live.c: Likewise.
21687 * tree-ssa-loop-ch.c: Likewise.
21688 * tree-ssa-loop-im.c: Likewise.
21689 * tree-ssa-loop-ivcanon.c: Likewise.
21690 * tree-ssa-loop-ivopts.c: Likewise.
21691 * tree-ssa-loop-manip.c: Likewise.
21692 * tree-ssa-loop-niter.c: Likewise.
21693 * tree-ssa-loop-prefetch.c: Likewise.
21694 * tree-ssa-loop-unswitch.c: Likewise.
21695 * tree-ssa-loop.c: Likewise.
21696 * tree-ssa-loop.h: Likewise.
21697 * tree-ssa-math-opts.c: Likewise.
21698 * tree-ssa-operands.c: Likewise.
21699 * tree-ssa-phiopt.c: Likewise.
21700 * tree-ssa-phiprop.c: Likewise.
21701 * tree-ssa-pre.c: Likewise.
21702 * tree-ssa-propagate.c: Likewise.
21703 * tree-ssa-reassoc.c: Likewise.
21704 * tree-ssa-sccvn.c: Likewise.
21705 * tree-ssa-scopedtables.c: Likewise.
21706 * tree-ssa-sink.c: Likewise.
21707 * tree-ssa-strlen.c: Likewise.
21708 * tree-ssa-structalias.c: Likewise.
21709 * tree-ssa-tail-merge.c: Likewise.
21710 * tree-ssa-ter.c: Likewise.
21711 * tree-ssa-threadedge.c: Likewise.
21712 * tree-ssa-threadupdate.c: Likewise.
21713 * tree-ssa-uncprop.c: Likewise.
21714 * tree-ssa-uninit.c: Likewise.
21715 * tree-ssa.c: Likewise.
21716 * tree-ssanames.c: Likewise.
21717 * tree-stdarg.c: Likewise.
21718 * tree-streamer-in.c: Likewise.
21719 * tree-streamer-out.c: Likewise.
21720 * tree-streamer.c: Likewise.
21721 * tree-switch-conversion.c: Likewise.
21722 * tree-tailcall.c: Likewise.
21723 * tree-vect-data-refs.c: Likewise.
21724 * tree-vect-generic.c: Likewise.
21725 * tree-vect-loop-manip.c: Likewise.
21726 * tree-vect-loop.c: Likewise.
21727 * tree-vect-patterns.c: Likewise.
21728 * tree-vect-slp.c: Likewise.
21729 * tree-vect-stmts.c: Likewise.
21730 * tree-vectorizer.c: Likewise.
21731 * tree-vrp.c: Likewise.
21732 * tree.c: Likewise.
21733 * tsan.c: Likewise.
21734 * ubsan.c: Likewise.
21735 * valtrack.c: Likewise.
21736 * value-prof.c: Likewise.
21737 * var-tracking.c: Likewise.
21738 * varasm.c: Likewise.
21739 * varpool.c: Likewise.
21740 * vmsdbgout.c: Likewise.
21741 * vtable-verify.c: Likewise.
21743 * wide-int-print.cc: Likewise.
21744 * wide-int-print.h: Likewise.
21745 * wide-int.cc: Likewise.
21746 * xcoffout.c: Likewise.
21747 * config/aarch64/aarch64-builtins.c: Likewise.
21748 * config/aarch64/aarch64.c: Likewise.
21749 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21750 * config/alpha/alpha.c: Likewise.
21751 * config/arc/arc.c: Likewise.
21752 * config/arm/aarch-common.c: Likewise.
21753 * config/arm/arm-builtins.c: Likewise.
21754 * config/arm/arm-c.c: Likewise.
21755 * config/arm/arm.c: Likewise.
21756 * config/avr/avr-c.c: Likewise.
21757 * config/avr/avr-log.c: Likewise.
21758 * config/avr/avr.c: Likewise.
21759 * config/bfin/bfin.c: Likewise.
21760 * config/c6x/c6x.c: Likewise.
21761 * config/cr16/cr16.c: Likewise.
21762 * config/cris/cris.c: Likewise.
21763 * config/darwin-c.c: Likewise.
21764 * config/darwin.c: Likewise.
21765 * config/default-c.c: Likewise.
21766 * config/epiphany/epiphany.c: Likewise.
21767 * config/epiphany/mode-switch-use.c: Likewise.
21768 * config/epiphany/resolve-sw-modes.c: Likewise.
21769 * config/fr30/fr30.c: Likewise.
21770 * config/frv/frv.c: Likewise.
21771 * config/ft32/ft32.c: Likewise.
21772 * config/glibc-c.c: Likewise.
21773 * config/h8300/h8300.c: Likewise.
21774 * config/i386/i386-c.c: Likewise.
21775 * config/i386/i386.c: Likewise.
21776 * config/i386/msformat-c.c: Likewise.
21777 * config/i386/winnt-cxx.c: Likewise.
21778 * config/i386/winnt-stubs.c: Likewise.
21779 * config/i386/winnt.c: Likewise.
21780 * config/ia64/ia64-c.c: Likewise.
21781 * config/ia64/ia64.c: Likewise.
21782 * config/iq2000/iq2000.c: Likewise.
21783 * config/lm32/lm32.c: Likewise.
21784 * config/m32c/m32c-pragma.c: Likewise.
21785 * config/m32c/m32c.c: Likewise.
21786 * config/m32r/m32r.c: Likewise.
21787 * config/m68k/m68k.c: Likewise.
21788 * config/mcore/mcore.c: Likewise.
21789 * config/mep/mep-pragma.c: Likewise.
21790 * config/mep/mep.c: Likewise.
21791 * config/microblaze/microblaze-c.c: Likewise.
21792 * config/microblaze/microblaze.c: Likewise.
21793 * config/mips/mips.c: Likewise.
21794 * config/mmix/mmix.c: Likewise.
21795 * config/mn10300/mn10300.c: Likewise.
21796 * config/moxie/moxie.c: Likewise.
21797 * config/msp430/msp430-c.c: Likewise.
21798 * config/msp430/msp430.c: Likewise.
21799 * config/nds32/nds32-cost.c: Likewise.
21800 * config/nds32/nds32-fp-as-gp.c: Likewise.
21801 * config/nds32/nds32-intrinsic.c: Likewise.
21802 * config/nds32/nds32-isr.c: Likewise.
21803 * config/nds32/nds32-md-auxiliary.c: Likewise.
21804 * config/nds32/nds32-memory-manipulation.c: Likewise.
21805 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21806 * config/nds32/nds32-predicates.c: Likewise.
21807 * config/nds32/nds32.c: Likewise.
21808 * config/nios2/nios2.c: Likewise.
21809 * config/nvptx/nvptx.c: Likewise.
21810 * config/pa/pa.c: Likewise.
21811 * config/pdp11/pdp11.c: Likewise.
21812 * config/rl78/rl78-c.c: Likewise.
21813 * config/rl78/rl78.c: Likewise.
21814 * config/rs6000/rs6000-c.c: Likewise.
21815 * config/rs6000/rs6000.c: Likewise.
21816 * config/rx/rx.c: Likewise.
21817 * config/s390/s390-c.c: Likewise.
21818 * config/s390/s390.c: Likewise.
21819 * config/sh/sh-c.c: Likewise.
21820 * config/sh/sh-mem.cc: Likewise.
21821 * config/sh/sh.c: Likewise.
21822 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21823 * config/sh/sh_treg_combine.cc: Likewise.
21824 * config/sol2-c.c: Likewise.
21825 * config/sol2-cxx.c: Likewise.
21826 * config/sol2-stubs.c: Likewise.
21827 * config/sol2.c: Likewise.
21828 * config/sparc/sparc-c.c: Likewise.
21829 * config/sparc/sparc.c: Likewise.
21830 * config/spu/spu-c.c: Likewise.
21831 * config/spu/spu.c: Likewise.
21832 * config/stormy16/stormy16.c: Likewise.
21833 * config/tilegx/mul-tables.c: Likewise.
21834 * config/tilegx/tilegx-c.c: Likewise.
21835 * config/tilegx/tilegx.c: Likewise.
21836 * config/tilepro/mul-tables.c: Likewise.
21837 * config/tilepro/tilepro-c.c: Likewise.
21838 * config/tilepro/tilepro.c: Likewise.
21839 * config/v850/v850-c.c: Likewise.
21840 * config/v850/v850.c: Likewise.
21841 * config/vax/vax.c: Likewise.
21842 * config/visium/visium.c: Likewise.
21843 * config/vms/vms-c.c: Likewise.
21844 * config/vms/vms.c: Likewise.
21845 * config/vxworks.c: Likewise.
21846 * config/winnt-c.c: Likewise.
21847 * config/xtensa/xtensa.c: Likewise.
21848 * common/config/bfin/bfin-common.c: Likewise.
21850 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
21852 * tree.h (tree_code_for_canonical_type_merging): New function.
21853 * tree.c (gimple_canonical_types_compatible_p): Use
21854 tree_code_for_canonical_type_merging..
21856 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21860 * doc/tm.texi: Regenerate.
21861 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21862 * target.def (TARGET_RELAXED_ORDERING): Likewise.
21863 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21864 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21865 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21866 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21867 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21868 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21869 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21871 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21873 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21874 register fma steering pass.
21875 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21876 AARCH64_TUNE_FMA_STEERING.
21878 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
21880 * tree.c (verify_type_variant): Verify that type and variant is
21882 (gimple_canonical_types_compatible_p): Look for main variants.
21884 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21886 * config.gcc (powerpc*-*-*): Add support for a new configure
21887 option --with-advance-toolchain=<xxx> which overrides using the
21888 default header files, libraries and dynamic linker.
21890 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21891 specs to support the configure --with-advance-toolchain=<xxx>
21893 (INCLUDE_EXTRA_SPEC): Likewise.
21894 (LINK_OS_EXTRA_SPEC32): Likewise.
21895 (LINK_OK_EXTRA_SPEC64): Likewise.
21896 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21897 (DYNAMIC_LINKER_PREFIX): Likewise.
21898 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21900 (GLIBC_DYNAMIC_LINKER32): Likewise.
21901 (GLIBC_DYNAMIC_LINKER64): Likewise.
21902 (LINK_OS_LINUX_SPEC32): Likewise.
21903 (LINK_OS_LINUX_SPEC64): Likewise.
21905 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21906 configuration option.
21908 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
21911 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21912 to determine current function ABI.
21913 (ix86_function_value_regno_p): Ditto.
21915 2015-06-03 Martin Liska <mliska@suse.cz>
21917 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21918 * bitmap.h (struct bitmap_usage): Likewise.
21919 * ggc-common.c (struct ggc_usage): Likewise.
21920 * mem-stats.h (struct mem_location): Likewise.
21921 (struct mem_usage): Likewise.
21922 * vec.c (struct vec_usage): Likewise.
21924 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
21926 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21929 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
21931 * doc/plugins.texi (enum plugin_event): New event.
21932 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21933 and PLUGIN_FINISH_FUNCTION.
21934 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21935 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21937 2015-06-03 Richard Biener <rguenther@suse.de>
21939 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21940 compute GROUP_GAP for the first element.
21941 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21944 2015-06-03 Nick Clifton <nickc@redhat.com>
21946 * config/rl78/rl78-real.md: Add peepholes to avoid a register
21947 copy when calling a function.
21948 * config/rl78/rl78.c (need_to_save): Do not push the frame
21949 pointer in an interrupt handler prologue if it is never used.
21951 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21953 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21955 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21957 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21958 reference when cloning alias node.
21960 2015-06-03 Martin Liska <mliska@suse.cz>
21962 * alloc-pool.h (struct pool_usage): Correct space padding.
21963 * ggc-page.c (ggc_print_statistics): Align columns in a report.
21964 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21965 * tree.c (dump_tree_statistics): Align columns in a report.
21967 2015-06-03 Martin Liska <mliska@suse.cz>
21969 * alloc-pool.c (allocate_pool_descriptor): Remove.
21970 (struct pool_output_info): Likewise.
21971 (print_alloc_pool_statistics): Likewise.
21972 (dump_alloc_pool_statistics): Likewise.
21973 * alloc-pool.h (struct pool_usage): New struct.
21974 (pool_allocator::initialize): Change usage of memory statistics
21975 to a new interface.
21976 (pool_allocator::release): Likewise.
21977 (pool_allocator::allocate): Likewise.
21978 (pool_allocator::remove): Likewise.
21979 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21980 for a pool allocator.
21981 * mem-stats.h (struct mem_location): Add new ctor.
21982 (struct mem_usage): Add counter for number of
21984 (mem_alloc_description::register_descriptor): New overload of
21985 * mem-stats.h (mem_location::to_string): New function.
21986 * bitmap.h (struct bitmap_usage): Use this new function.
21987 * ggc-common.c (struct ggc_usage): Likewise.
21990 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21992 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21993 of GCC_INSN_FLAGS_H block.
21995 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21997 * explow.c (plus_constant): Update check after force_const_mem call
21998 to see if the value returned is not a NULL_RTX.
22000 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22002 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22003 remove instumentation thunks calling reachable functions.
22004 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22005 * lto/lto-partition.c (privatize_symbol_name_1): New.
22006 (privatize_symbol_name): Privatize both decl and orig_decl
22007 names for instrumented functions.
22008 * cgraph.c (cgraph_node::verify_node): Add transparent
22009 alias chain check for instrumented node.
22011 2015-06-03 Marek Polacek <polacek@redhat.com>
22015 * tree.c (attribute_value_equal): Handle attribute format.
22016 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22018 2015-06-03 Richard Biener <rguenther@suse.de>
22020 PR tree-optimization/63916
22021 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22022 Forward-propagate non-invariant addresses by splicing their
22023 reference ops if the result isn't going to be used by PRE.
22024 (vn_reference_lookup_3): Remove pointless assert.
22026 2015-06-03 Richard Biener <rguenther@suse.de>
22028 PR tree-optimization/66375
22029 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22030 add to the evolution before following SSA edges.
22032 2015-06-03 Bin Cheng <bin.cheng@arm.com>
22034 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22035 (dump_use, dump_cand, find_induction_variables): Pass new argument
22037 (record_use): Preserve the ssa name information in IV.
22039 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22041 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22043 (add_mode_tests): Don't add mode tests if the predicate only
22044 accepts scalar constant integers. Otherwise, allow the mode
22045 of "op" to be VOIDmode if the predicate does accept such integers.
22047 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
22050 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22051 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22052 (aarch64_secondary_reload): Likewise
22053 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22055 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22058 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
22059 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22062 * cprop.c (try_replace_reg): Check cost of constants before propagating.
22064 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22066 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22067 provide access to the IBM extended double floating point mode if
22068 long double is IEEE 128-bit floating point.
22069 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22070 point if long double is the IBM extended double type.
22072 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22073 enable adding IEEE 128-bit floating point support.
22074 (-mfloat128-software): Likewise.
22075 (-mfloat128-sw): Likewise.
22077 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22078 128-bit floating point types to occupy any register if
22079 -mlong-double-64. Do not allow use of IFmode/KFmode unless
22080 -mfloat128-software is enabled.
22081 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22083 (rs6000_option_override_internal): Add -mfloat128-* support.
22084 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22086 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22087 and float128 type nodes.
22088 (ieee128_float_type_node): Likewise.
22089 (ibm128_float_type_node): Likewise.
22091 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22094 * config/aarch64/geniterators.sh: Rewrite in awk.
22096 2015-06-02 Martin Liska <mliska@suse.cz>
22098 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22099 values to avoid -Wmaybe-uninitialized errors.
22101 2015-06-02 Richard Biener <rguenther@suse.de>
22104 * dwarf2out.c (lookup_context_die): New function.
22105 (resolve_addr): Avoid forcing a full DIE for the
22106 target of a DW_TAG_GNU_call_site during late compilation.
22107 Instead create a stub DIE without a type if we have a
22108 context DIE present.
22110 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
22112 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
22114 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22116 PR tree-optimization/48052
22117 * cfgloop.h (struct control_iv): New.
22118 (struct loop): New field control_ivs.
22119 * tree-ssa-loop-niter.c : Include "stor-layout.h".
22120 (number_of_iterations_lt): Set no_overflow information.
22121 (number_of_iterations_exit): Init control iv in niter struct.
22122 (record_control_iv): New.
22123 (estimate_numbers_of_iterations_loop): Call record_control_iv.
22124 (loop_exits_before_overflow): New. Interface factored out of
22125 scev_probably_wraps_p.
22126 (scev_probably_wraps_p): Factor loop niter related code into
22127 loop_exits_before_overflow.
22128 (free_numbers_of_iterations_estimates_loop): Free control ivs.
22129 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
22131 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
22133 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
22134 the target doesn't belong to the current function.
22136 2015-06-02 Marek Polacek <polacek@redhat.com>
22138 PR middle-end/66345
22139 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
22140 get_maxval_strlen does not produce an INTEGER_CST.
22142 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
22144 * config/arc/constraints.md: Use lower-case names in match_code.
22145 * config/mmix/constraints.md: Likewise.
22147 2015-06-02 Richard Biener <rguenther@suse.de>
22149 PR tree-optimization/65961
22150 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
22151 check and clarify dump message.
22152 (vect_build_slp_tree): If all children are built up from scalars
22153 build up the parent from scalars instead.
22154 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
22156 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
22159 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
22160 instead of print ... .
22162 2015-06-02 Alan Modra <amodra@gmail.com>
22164 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
22167 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22169 PR tree-optimization/52563
22170 PR tree-optimization/62173
22171 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
22172 (alloc_iv, set_iv): New parameter.
22173 (determine_biv_step): Delete.
22174 (find_bivs): Inline original determine_biv_step. Pass new
22175 argument to set_iv.
22176 (idx_find_step): Use no_overflow information for conversion.
22177 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
22178 resolve_mixers handle folded_casts.
22179 (instantiate_scev_name): Change bool parameter to bool pointer.
22180 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
22181 (instantiate_array_ref, instantiate_scev_not): Ditto.
22182 (instantiate_scev_3, instantiate_scev_2): Ditto.
22183 (instantiate_scev_1, instantiate_scev_r): Ditto.
22184 (instantiate_scev_convert, ): Change parameter. Pass argument
22185 to chrec_convert_aggressive.
22186 (instantiate_scev): Change argument.
22187 (resolve_mixers): New parameter and set it.
22188 (scev_const_prop): New argument.
22189 * tree-scalar-evolution.h (resolve_mixers): New parameter.
22190 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
22192 (chrec_convert): New parameter. Move definition below.
22193 (chrec_convert_aggressive): New parameter and set it. Call
22194 convert_affine_scev.
22195 * tree-chrec.h (chrec_convert): New parameter.
22196 (chrec_convert_aggressive): Ditto.
22198 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22200 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
22201 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
22202 the LHS of a no-return call if its type has variable size.
22203 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22204 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
22206 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
22208 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
22209 * config.in: Regenerate.
22211 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22213 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
22214 consecutive accesses within outer-loop with force_vectorize
22215 for references with zero step in inner-loop.
22217 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
22219 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
22220 rather than from gcc/build directory.
22222 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
22225 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
22226 for __sync memory models, emit initial loads and final barriers as
22229 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
22232 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
22233 (aarch64_split_atomic_op): Check for __sync memory models, emit
22234 appropriate initial loads and final barriers.
22236 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
22238 * Makefile.in: Fix gcov dependencies that should
22239 not point to a build folder.
22241 2015-06-01 Richard Biener <rguenther@suse.de>
22244 2015-05-29 Richard Biener <rguenther@suse.de>
22246 PR tree-optimization/66314
22247 * tree-ssa-threadupdate.c (create_block_for_threading): Add
22248 parameter that says which loop the new block belongs to.
22249 (ssa_create_duplicates): Blocks duplicated for the threaded
22250 path belong to the loop of the thread destination.
22252 2015-06-01 Martin Liska <mliska@suse.cz>
22254 * sched-deps.c: Include pool-alloc.h before
22255 cselib.h header file is included.
22257 2015-06-01 Richard Biener <rguenther@suse.de>
22259 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
22262 2015-06-01 Martin Liska <mliska@suse.cz>
22264 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
22265 a function local variable.
22267 2015-06-01 Martin Liska <mliska@suse.cz>
22269 * alloc-pool.c (create_alloc_pool): Remove.
22270 (empty_alloc_pool): Likewise.
22271 (free_alloc_pool): Likewise.
22272 (free_alloc_pool_if_empty): Likewise.
22273 (pool_alloc): Likewise.
22274 (pool_free): Likewise.
22275 * alloc-pool.h: Remove old declarations.
22277 2015-06-01 Martin Liska <mliska@suse.cz>
22279 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
22280 (ira_create_object): Likewise.
22281 (ira_create_allocno): Likewise.
22282 (ira_create_live_range): Likewise.
22283 (copy_live_range): Likewise.
22284 (ira_finish_live_range): Likewise.
22285 (ira_free_allocno_costs): Likewise.
22286 (finish_allocno): Likewise.
22287 (finish_allocnos): Likewise.
22288 (initiate_prefs): Likewise.
22289 (ira_create_pref): Likewise.
22290 (finish_pref): Likewise.
22291 (finish_prefs): Likewise.
22292 (initiate_copies): Likewise.
22293 (ira_create_copy): Likewise.
22294 (finish_copy): Likewise.
22295 (finish_copies): Likewise.
22296 (finish_prefs): Likewise.
22298 2015-06-01 Martin Liska <mliska@suse.cz>
22300 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
22301 (allocate_and_init_ipcp_value): Likewise.
22302 (ipcp_lattice::add_value): Likewise.
22303 (merge_agg_lats_step): Likewise.
22304 (ipcp_driver): Likewise.
22305 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
22306 (ipa_free_all_structures_after_iinln): Likewise.
22307 * ipa-prop.h: Likewise.
22309 2015-06-01 Martin Liska <mliska@suse.cz>
22311 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
22313 (set_hint_predicate): Likewise.
22314 (inline_summary_alloc): Likewise.
22315 (reset_inline_edge_summary): Likewise.
22316 (reset_inline_summary): Likewise.
22317 (set_cond_stmt_execution_predicate): Likewise.
22318 (set_switch_stmt_execution_predicate): Likewise.
22319 (compute_bb_predicates): Likewise.
22320 (estimate_function_body_sizes): Likewise.
22321 (inline_free_summary): Likewise.
22323 2015-06-01 Martin Liska <mliska@suse.cz>
22325 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
22326 (ipa_edge_duplication_hook): Likewise.
22327 (ipa_free_all_structures_after_ipa_cp): Likewise.
22328 (ipa_free_all_structures_after_iinln): Likewise.
22330 2015-06-01 Martin Liska <mliska@suse.cz>
22332 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
22333 (ipa_profile_generate_summary): Likewise.
22334 (ipa_profile_read_summary): Likewise.
22335 (ipa_profile): Likewise.
22337 2015-06-01 Martin Liska <mliska@suse.cz>
22339 * tree-ssa-structalias.c (new_var_info): Use new type-based
22341 (new_constraint): Likewise.
22342 (init_alias_vars): Likewise.
22343 (delete_points_to_sets): Likewise.
22345 2015-06-01 Martin Liska <mliska@suse.cz>
22347 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
22348 (free_strinfo): Likewise.
22349 (pass_strlen::execute): Likewise.
22351 2015-06-01 Martin Liska <mliska@suse.cz>
22353 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
22355 (vn_reference_insert_pieces): Likewise.
22356 (vn_phi_insert): Likewise.
22357 (visit_reference_op_call): Likewise.
22358 (copy_phi): Likewise.
22359 (copy_reference): Likewise.
22360 (process_scc): Likewise.
22361 (allocate_vn_table): Likewise.
22362 (free_vn_table): Likewise.
22364 2015-06-01 Martin Liska <mliska@suse.cz>
22366 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
22368 (add_repeat_to_ops_vec): Likewise.
22369 (get_ops): Likewise.
22370 (maybe_optimize_range_tests): Likewise.
22371 (init_reassoc): Likewise.
22372 (fini_reassoc): Likewise.
22374 2015-06-01 Martin Liska <mliska@suse.cz>
22376 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
22378 (bitmap_set_new): Likewise.
22379 (get_or_alloc_expr_for_constant): Likewise.
22380 (get_or_alloc_expr_for): Likewise.
22381 (phi_translate_1): Likewise.
22382 (compute_avail): Likewise.
22383 (init_pre): Likewise.
22384 (fini_pre): Likewise.
22386 2015-06-01 Martin Liska <mliska@suse.cz>
22388 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
22389 (delete_dep_node): Likewise.
22390 (create_deps_list): Likewise.
22391 (free_deps_list): Likewise.
22392 (sched_deps_init): Likewise.
22393 (sched_deps_finish): Likewise.
22395 2015-06-01 Martin Liska <mliska@suse.cz>
22397 * regcprop.c (free_debug_insn_changes): Use new type-based
22399 (replace_oldest_value_reg): Likewise.
22400 (pass_cprop_hardreg::execute): Likewise.
22402 2015-06-01 Martin Liska <mliska@suse.cz>
22404 * ira-build.c (initiate_cost_vectors): Use new type-based
22406 (ira_allocate_cost_vector): Likewise.
22407 (ira_free_cost_vector): Likewise.
22408 (finish_cost_vectors): Likewise.
22410 2015-06-01 Martin Liska <mliska@suse.cz>
22412 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
22414 (free_sched_pools): Likewise.
22415 * sel-sched-ir.h (_list_alloc): Likewise.
22416 (_list_remove): Likewise.
22418 2015-06-01 Martin Liska <mliska@suse.cz>
22420 * stmt.c (add_case_node): Use new type-based pool allocator.
22421 (expand_case): Likewise.
22422 (expand_sjlj_dispatch_table): Likewise.
22424 2015-06-01 Martin Liska <mliska@suse.cz>
22426 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
22427 (free_bb): Likewise.
22428 (pass_cse_reciprocals::execute): Likewise.
22430 2015-06-01 Martin Liska <mliska@suse.cz>
22432 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
22433 (sra_deinitialize) Likewise.
22434 (create_access_1) Likewise.
22435 (build_accesses_from_assign) Likewise.
22436 (create_artificial_child_access) Likewise.
22438 2015-06-01 Martin Liska <mliska@suse.cz>
22440 * dse.c (get_group_info):Use new type-based pool allocator.
22441 (dse_step0) Likewise.
22442 (free_store_info) Likewise.
22443 (delete_dead_store_insn) Likewise.
22444 (free_read_records) Likewise.
22445 (record_store) Likewise.
22446 (replace_read) Likewise.
22447 (check_mem_read_rtx) Likewise.
22448 (scan_insn) Likewise.
22449 (dse_step1) Likewise.
22450 (dse_step7) Likewise.
22452 2015-06-01 Martin Liska <mliska@suse.cz>
22454 * df-scan.c (struct df_scan_problem_data):Use new type-based
22456 (df_scan_free_internal) Likewise.
22457 (df_scan_alloc) Likewise.
22458 (df_grow_reg_info) Likewise.
22459 (df_free_ref) Likewise.
22460 (df_insn_create_insn_record) Likewise.
22461 (df_mw_hardreg_chain_delete) Likewise.
22462 (df_insn_info_delete) Likewise.
22463 (df_free_collection_rec) Likewise.
22464 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
22465 (df_sort_and_compress_mws) Likewise.
22466 (df_ref_create_structure) Likewise.
22467 (df_ref_record) Likewise.
22469 2015-06-01 Martin Liska <mliska@suse.cz>
22471 * df-problems.c (df_chain_create):Use new type-based pool allocator.
22472 (df_chain_unlink_1) Likewise.
22473 (df_chain_unlink) Likewise.
22474 (df_chain_remove_problem) Likewise.
22475 (df_chain_alloc) Likewise.
22476 (df_chain_free) Likewise.
22477 * df.h (struct dataflow) Likewise.
22479 2015-06-01 Martin Liska <mliska@suse.cz>
22481 * cselib.c (new_elt_list):Use new type-based pool allocator.
22482 (new_elt_loc_list) Likewise.
22483 (unchain_one_elt_list) Likewise.
22484 (unchain_one_elt_loc_list) Likewise.
22485 (unchain_one_value) Likewise.
22486 (new_cselib_val) Likewise.
22487 (cselib_init) Likewise.
22488 (cselib_finish) Likewise.
22490 2015-06-01 Martin Liska <mliska@suse.cz>
22492 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
22493 (sh_reorg) Likewise.
22495 2015-06-01 Martin Liska <mliska@suse.cz>
22497 * cfg.c (initialize_original_copy_tables):Use new type-based
22499 (free_original_copy_tables) Likewise.
22500 (copy_original_table_clear) Likewise.
22501 (copy_original_table_set) Likewise.
22503 2015-06-01 Martin Liska <mliska@suse.cz>
22505 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
22507 (asan_mem_ref_new) Likewise.
22508 (free_mem_ref_resources) Likewise.
22510 2015-06-01 Martin Liska <mliska@suse.cz>
22512 * var-tracking.c (variable_htab_free):Use new type-based
22514 (attrs_list_clear) Likewise.
22515 (attrs_list_insert) Likewise.
22516 (attrs_list_copy) Likewise.
22517 (shared_hash_unshare) Likewise.
22518 (shared_hash_destroy) Likewise.
22519 (unshare_variable) Likewise.
22520 (var_reg_delete_and_set) Likewise.
22521 (var_reg_delete) Likewise.
22522 (var_regno_delete) Likewise.
22523 (drop_overlapping_mem_locs) Likewise.
22524 (variable_union) Likewise.
22525 (insert_into_intersection) Likewise.
22526 (canonicalize_values_star) Likewise.
22527 (variable_merge_over_cur) Likewise.
22528 (dataflow_set_merge) Likewise.
22529 (remove_duplicate_values) Likewise.
22530 (variable_post_merge_new_vals) Likewise.
22531 (dataflow_set_preserve_mem_locs) Likewise.
22532 (dataflow_set_remove_mem_locs) Likewise.
22533 (variable_from_dropped) Likewise.
22534 (variable_was_changed) Likewise.
22535 (set_slot_part) Likewise.
22536 (clobber_slot_part) Likewise.
22537 (delete_slot_part) Likewise.
22538 (loc_exp_insert_dep) Likewise.
22539 (notify_dependents_of_changed_value) Likewise.
22540 (emit_notes_for_differences_1) Likewise.
22541 (vt_emit_notes) Likewise.
22542 (vt_initialize) Likewise.
22543 (vt_finalize) Likewise.
22545 2015-06-01 Martin Liska <mliska@suse.cz>
22547 * ira-color.c (init_update_cost_records):Use new type-based
22549 (get_update_cost_record) Likewise.
22550 (free_update_cost_record_list) Likewise.
22551 (finish_update_cost_records) Likewise.
22552 (initiate_cost_update) Likewise.
22554 2015-06-01 Martin Liska <mliska@suse.cz>
22556 * lra.c (init_insn_regs): Use new type-based pool allocator.
22557 (new_insn_reg) Likewise.
22558 (free_insn_reg) Likewise.
22559 (free_insn_regs) Likewise.
22560 (finish_insn_regs) Likewise.
22561 (init_insn_recog_data) Likewise.
22562 (init_reg_info) Likewise.
22563 (finish_reg_info) Likewise.
22564 (lra_free_copies) Likewise.
22565 (lra_create_copy) Likewise.
22566 (invalidate_insn_data_regno_info) Likewise.
22568 2015-06-01 Martin Liska <mliska@suse.cz>
22570 * lra-lives.c (free_live_range): Use new type-based pool allocator.
22571 (free_live_range_list) Likewise.
22572 (create_live_range) Likewise.
22573 (copy_live_range) Likewise.
22574 (lra_merge_live_ranges) Likewise.
22575 (remove_some_program_points_and_update_live_ranges) Likewise.
22576 (lra_live_ranges_init) Likewise.
22577 (lra_live_ranges_finish) Likewise.
22579 2015-06-01 Martin Liska <mliska@suse.cz>
22581 * et-forest.c (et_new_occ): Use new type-based pool allocator.
22582 (et_new_tree): Likewise.
22583 (et_free_tree): Likewise.
22584 (et_free_tree_force): Likewise.
22585 (et_free_pools): Likewise.
22586 (et_split): Likewise.
22588 2015-06-01 Martin Liska <mliska@suse.cz>
22590 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
22592 * alloc-pool.h (pool_allocator::pool_allocator): New function.
22593 (pool_allocator::release): Likewise.
22594 (inline pool_allocator::release_if_empty): Likewise.
22595 (inline pool_allocator::~pool_allocator): Likewise.
22596 (pool_allocator::allocate): Likewise.
22597 (pool_allocator::remove): Likewise.
22599 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
22601 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
22604 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
22606 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
22608 * config/arm/arm.c (arm_print_tune_info): Likewise.
22609 (arm_macro_fusion_p): Likewise.
22610 (arm_macro_fusion_pair_p): Likewise.
22612 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
22614 * config/aarch64/aarch64-protos.h (tune_params): Rename
22615 fuseable_ops to fusible_ops.
22616 * config/aarch64/aarch64.c (generic_tunings): Rename
22617 fuseable_ops to fusible_ops.
22618 (cortexa53_tunings): Likewise.
22619 (cortexa57_tunings): Likewise.
22620 (thunderx_tunings): Likewise.
22621 (xgene1_tunings): Likewise.
22622 (aarch64_macro_fusion_p): Likewise.
22623 (aarch64_macro_fusion_pair_p): Likewise.
22625 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
22627 * config/s390/driver-native.c: New file.
22628 * config/s390/x-native: New file.
22629 * config.host: Add new files for s390.
22630 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
22632 * config.gcc: Likewise.
22633 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
22634 * config/s390/s390-opts.h (enum processor_type): Ditto.
22635 * config/s390/s390.c (s390_option_override): Catch unhandled
22638 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
22641 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
22642 redirection for instrumented calls.
22643 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
22644 (append_compiler_options): Append -fcheck-pointer-bounds.
22645 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
22646 (chkp_redirect_edge): New.
22647 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
22648 (chkp_redirect_edge): New.
22650 2015-06-01 Richard Biener <rguenther@suse.de>
22652 PR tree-optimization/66280
22653 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
22656 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22658 * config/aarch64/aarch64.md
22659 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
22662 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22664 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
22665 Remove obsolete kludge.
22667 2015-06-01 Richard Biener <rguenther@suse.de>
22669 * tree-ssa-reassoc.c (get_rank): Simplify.
22671 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
22673 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
22674 * configure: Regenerated.
22676 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
22678 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
22679 issue (add space between string literal and macro).
22680 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
22682 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
22684 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
22685 implict or explicit -fPIE or -fpie.
22687 2015-05-30 Mike Frysinger <vapier@gentoo.org>
22689 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
22691 2015-05-28 DJ Delorie <dj@redhat.com>
22693 * expmed.c (extract_bit_field_1): Avoid clobbering a
22694 yet-to-be-used base/index register.
22696 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
22698 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
22699 (alias_stats): Add num_universal.
22700 (alias_set_subset_of): Special case pointers; be ready for NULL
22702 (alias_sets_conflict_p): Special case pointers; be ready for NULL
22704 (init_alias_set_entry): Break out from ...
22705 (record_alias_subset): ... here; propagate new fields;
22706 allocate children only when really needed.
22707 (get_alias_set): Do less generous pointer globbing.
22708 (dump_alias_stats_in_alias_c): Update statistics.
22710 2015-05-30 Alan Modra <amodra@gmail.com>
22712 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
22713 correct block for use of r12.
22714 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
22716 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22719 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
22722 2015-05-29 Jakub Jelinek <jakub@redhat.com>
22724 PR tree-optimization/66142
22725 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
22726 virtual phis that feed themselves.
22728 2015-05-29 Richard Biener <rguenther@suse.de>
22730 PR tree-optimization/66314
22731 * tree-ssa-threadupdate.c (create_block_for_threading): Add
22732 parameter that says which loop the new block belongs to.
22733 (ssa_create_duplicates): Blocks duplicated for the threaded
22734 path belong to the loop of the thread destination.
22736 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22738 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
22739 to cleanup-saved-temps.
22740 * doc/sourcebuild.texi (Clean up generated test files): Expand
22742 (dg-keep-saved-temps): Document new proc.
22743 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
22744 cleanup-saved-temps): Remove.
22746 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
22748 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
22749 gcc_AC_CHECK_DECLS.
22750 * configure: Regenerate.
22752 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22754 * config/nios2/linux.h (CPP_SPEC): Define.
22756 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22758 * config/microblaze/linux.h (CPP_SPEC): Define.
22760 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22762 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
22763 -pthread is specified.
22765 2015-05-28 Richard Biener <rguenther@suse.de>
22767 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
22768 (vect_fixup_scalar_cycles_with_patterns): Likewise.
22769 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
22770 after pattern recog.
22771 (vect_create_epilog_for_reduction): Properly handle reductions
22773 (vectorizable_reduction): Likewise.
22774 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
22776 (vect_get_constant_vectors): Create the correct number of
22777 initial values for reductions.
22778 (vect_schedule_slp_instance): Handle reduction chains that are
22779 type changing properly.
22780 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
22782 2015-05-28 Richard Biener <rguenther@suse.de>
22784 PR tree-optimization/66142
22785 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
22786 values better in memcpy destination handling. Handle non-aliasing
22789 2015-05-28 Lawrence Velázquez <vq@larryv.me>
22792 * config/darwin-c.c (version_components): New global enum.
22793 (parse_version, version_as_legacy_macro)
22794 (version_as_modern_macro, macosx_version_as_macro): New functions.
22795 (version_as_macro): Remove.
22796 (darwin_cpp_builtins): Use new function.
22798 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
22800 * builtins.c (expand_builtin_acc_on_device): Mark parameters
22801 with ATTRIBUTE_UNUSED.
22803 2015-05-28 Julian Brown <julian@codesourcery.com>
22807 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
22808 sequence for !ACCEL_COMPILER.
22810 2015-05-28 Nick Clifton <nickc@redhat.com>
22812 * config/rx/rx.c (push_regs): New function. Extracts code from...
22813 (rx_expand_prologue): ... here. Use push_regs to push even small
22814 spans of registers.
22815 (pop_regs): New function.
22816 (rx_expand_epilogue): Use pop_regs to pop even small spans of
22819 2015-05-28 Richard Biener <rguenther@suse.de>
22821 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
22823 (SLP_INSTANCE_BODY_COST_VEC): Remove.
22824 (vect_update_slp_costs_according_to_vf): Likewise.
22825 (vect_slp_analyze_operations): Update prototype.
22826 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
22827 vect_update_slp_costs_according_to_vf, adjust.
22828 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
22829 (vect_analyze_slp_cost_1): Likewise.
22830 (vect_analyze_slp_cost): Likewise. Properly deal with
22831 widening reduction ops. Commit body costs.
22832 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
22833 cost for loops from here.
22834 (vect_slp_analyze_operations): But do it from here when
22835 the vectorization factor is known and stmts are analyzed.
22836 (vect_bb_vectorization_profitable_p): Simplify.
22837 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
22838 (vect_update_slp_costs_according_to_vf): Remove.
22840 2015-05-27 Magnus Granberg <zorry@gentoo.org>
22841 H.J. Lu <hongjiu.lu@intel.com>
22843 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
22844 (BUILD_CFLAGS): Likewise.
22845 (BUILD_CXXFLAGS): Likewise.
22846 (LINKER): Add @NO_PIE_FLAG@.
22847 (BUILD_LDFLAGS): Likewise.
22848 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22849 --enable-default-pie.
22850 * common.opt (fPIE): Initialize to -1.
22852 (no-pie): New option.
22853 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22854 * configure.ac: Add --enable-default-pie.
22855 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
22856 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
22857 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
22858 * gcc.c (NO_PIE_SPEC): New.
22859 (PIE_SPEC): Likewise.
22860 (NO_FPIE1_SPEC): Likewise.
22861 (FPIE1_SPEC): Likewise.
22862 (NO_FPIE2_SPEC): Likewise.
22863 (FPIE2_SPEC): Likewise.
22864 (NO_FPIE2_SPEC): Likewise.
22865 (FPIE_SPEC): Likewise.
22866 (NO_FPIE_SPEC): Likewise.
22867 (NO_FPIC1_SPEC): Likewise.
22868 (FPIC1_SPEC): Likewise.
22869 (NO_FPIC2_SPEC): Likewise.
22870 (FPIC2_SPEC): Likewise.
22871 (NO_FPIC2_SPEC): Likewise.
22872 (FPIC_SPEC): Likewise.
22873 (NO_FPIC_SPEC): Likewise.
22874 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22875 (FPIE1_OR_FPIC1_SPEC): Likewise.
22876 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22877 (FPIE2_OR_FPIC2_SPEC): Likewise.
22878 (NO_FPIE_AND_FPIC_SPEC): Likewise.
22879 (FPIE_OR_FPIC_SPEC): Likewise.
22880 (LD_PIE_SPEC): Likewise.
22881 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
22882 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22883 * config/darwin.h (PIE_SPEC): Renamed to ...
22884 (DARWIN_PIE_SPEC): This.
22885 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22886 * config/darwin9.h (PIE_SPEC): Renamed to ...
22887 (DARWIN_PIE_SPEC): This.
22888 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22889 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22890 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22891 FPIE2_OR_FPIC2_SPEC.
22892 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22893 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22894 * config/sol2.h (ASM_PIC_SPEC): Likewise.
22895 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22896 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22897 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22898 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22899 * config/m32r/m32r.h (ASM_SPEC): Likewise.
22900 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22901 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22902 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22903 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22904 * config/sparc/linux.h (ASM_SPEC): Likewise.
22905 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22906 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22907 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22908 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22909 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22910 * config/sparc/sparc.h (ASM_SPEC): Likewise.
22911 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22912 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22913 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22914 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22915 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22916 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22917 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22918 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22919 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22920 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22921 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22922 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22923 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22924 * config/vax/linux.h (ASM_SPEC): Likewise.
22925 * doc/install.texi: Document --enable-default-pie.
22926 * doc/invoke.texi: Document -no-pie.
22927 * config.in: Regenerated.
22928 * configure: Likewise.
22930 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22932 PR rtl-optimization/66168
22933 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22934 can_move_invariant_reg.
22936 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
22939 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22940 REG_EQUAL note when doing insert.
22942 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22943 instead of "%d" for 'o' operand.
22945 2015-05-27 Nathan Sidwell <nathan@acm.org>
22948 * tree.c (build_pointer_type_for_mode): Canonical type does not
22949 inherit can_alias_all.
22950 (build_reference_type_for_mode): Likewise.
22952 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
22954 * expr.h (array_at_struct_end_p): Move to...
22955 (array_ref_element_size): Likewise.
22956 (component_ref_field_offset): Likewise.
22957 * tree.h (array_ref_element_size): ...here.
22958 (array_at_struct_end_p): Likewise.
22959 (component_ref_field_offset): Likewise.
22960 * expr.c (array_ref_element_size): Move to...
22961 (array_ref_low_bound): Likewise.
22962 (array_at_struct_end_p): Likewise.
22963 (array_ref_up_bound): Likewise.
22964 (component_ref_field_offset): Likewise.
22965 * tree.c (array_ref_element_size): ...here.
22966 (array_ref_low_bound): Likewise.
22967 (array_ref_up_bound): Likewise.
22968 (array_at_struct_end_p): Likewise.
22969 (component_ref_field_offset): Likewise.
22971 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22972 Szabolcs Nagy <szabolcs.nagy@arm.com>
22974 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22976 2015-05-27 Jason Merrill <jason@redhat.com>
22979 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22980 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22981 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22983 2015-05-22 Aditya Kumar <hiraditya@msn.com>
22985 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22988 * statistics.c (statistics_fini_pass): Print pass name.
22990 2015-05-27 Richard Biener <rguenther@suse.de>
22992 PR tree-optimization/66272
22994 2014-08-15 Richard Biener <rguenther@suse.de>
22996 PR tree-optimization/62031
22997 * tree-data-ref.c (dr_analyze_indices): Do not set
22998 DR_UNCONSTRAINED_BASE.
22999 (dr_may_alias_p): All indirect accesses have to go the
23000 formerly DR_UNCONSTRAINED_BASE path.
23001 * tree-data-ref.h (struct indices): Remove
23002 unconstrained_base member.
23003 (DR_UNCONSTRAINED_BASE): Remove.
23005 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
23007 * dwarf2out.c: Remove block_map.
23008 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23009 (gen_lexical_block_die): Same.
23010 (dwarf2out_function_decl): Remove block_map use.
23011 (dwarf2out_c_finalize): Same.
23012 * tree-core.h (struct tree_block): Add die field.
23013 * tree.h (BLOCK_DIE): New.
23015 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23018 * expr.c (memory_load_overlap): New function.
23019 (emit_push_insn): When pushing partial args to the stack would
23020 clobber the register part load the overlapping part into a pseudo
23021 and put it into the hard reg after pushing. Change return type
23022 to bool. Add bool argument.
23023 * expr.h (emit_push_insn): Change return type to bool.
23025 * calls.c (expand_call): Cancel sibcall optimization when encountering
23026 partial argument on targets with ARGS_GROW_DOWNWARD and
23027 !STACK_GROWS_DOWNWARD.
23028 (emit_library_call_value_1): Update callsite of emit_push_insn.
23029 (store_one_arg): Likewise.
23031 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23033 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23035 2015-05-27 Martin Liska <mliska@suse.cz>
23037 * Makefile.in: Add additional dependencies related to memory report
23039 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23040 * bitmap.c (struct bitmap_descriptor_d): Remove.
23041 (struct loc): Likewise.
23042 (struct bitmap_desc_hasher): Likewise.
23043 (bitmap_desc_hasher::hash): Likewise.
23044 (bitmap_desc_hasher::equal): Likewise.
23045 (get_bitmap_descriptor): Likewise.
23046 (bitmap_register): User new memory descriptor API.
23047 (register_overhead): Likewise.
23048 (bitmap_find_bit): Register nsearches and search_iter statistics.
23049 (struct bitmap_output_info): Remove.
23050 (print_statistics): Likewise.
23051 (dump_bitmap_statistics): Use new memory descriptor.
23052 * bitmap.h (struct bitmap_usage): New class.
23053 * genmatch.c: Extend header file inclusion.
23054 * genpreds.c: Likewise.
23055 * ggc-common.c (struct ggc_usage): New class.
23056 (struct ggc_loc_desc_hasher): Remove.
23057 (ggc_loc_desc_hasher::hash): Likewise.
23058 (ggc_loc_desc_hasher::equal): Likewise.
23059 (struct ggc_ptr_hash_entry): Likewise.
23060 (struct ptr_hash_hasher): Likewise.
23061 (ptr_hash_hasher::hash): Likewise.
23062 (ptr_hash_hasher::equal): Likewise.
23063 (make_loc_descriptor): Likewise.
23064 (ggc_prune_ptr): Likewise.
23065 (dump_ggc_loc_statistics): Use new memory descriptor.
23066 (ggc_record_overhead): Likewise.
23067 (ggc_free_overhead): Likewise.
23068 (final_cmp_statistic): Remove.
23069 (cmp_statistic): Likewise.
23070 (ggc_add_statistics): Liekwise.
23071 (ggc_prune_overhead_list): Likewise.
23072 * hash-map-traits.h: New file.
23073 * hash-map.h (struct default_hashmap_traits): Move the traits to a
23074 separate header file.
23075 * hash-set.h: Pass memory statistics info to ctor.
23076 * hash-table.c (void dump_hash_table_loc_statistics): New function.
23077 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23078 (hash_table::~hash_table): Register memory release operation.
23079 (hash_table::alloc_entries): Handle memory allocation operation.
23080 (hash_table::expand): Likewise.
23081 * inchash.c (iterative_hash_hashval_t): Move implementation to header
23083 (iterative_hash_host_wide_int): Likewise.
23084 * inchash.h (class hash): Likewise.
23085 * mem-stats-traits.h: New file.
23086 * mem-stats.h: New file.
23087 (mem_location): Add new class.
23088 (mem_usage): Likewise.
23089 (mem_alloc_description): Likewise.
23090 * sese.c: Add new header file inclusision.
23091 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23093 * tree-sra.c: Add new header file inclusision.
23094 * vec.c (struct vec_descriptor): Remove.
23095 (hash_descriptor): Likewise.
23096 (struct vec_usage): Likewise.
23097 (struct ptr_hash_entry): Likewise.
23098 (hash_ptr): Likewise.
23099 (eq_ptr): Likewise.
23100 (vec_prefix::register_overhead): Use new memory descriptor API.
23101 (vec_prefix::release_overhead): Likewise.
23102 (add_statistics): Remove.
23103 (dump_vec_loc_statistics): Use new memory descriptor API.
23104 * vec.h (struct vec_prefix): Likewise.
23105 (va_heap::reserve): Likewise.
23106 (va_heap::release): Likewise.
23107 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
23109 2015-05-27 Richard Biener <rguenther@suse.de>
23111 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
23112 earlier and remove ??? comment.
23113 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
23114 and got called from loop analysis bail out. Always pass the SLP
23115 node to the vectorizable_* functions.
23116 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
23117 the premature SLP check here.
23118 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
23119 detected SLP stmts.
23120 (vect_detect_hybrid_slp_1): Likewise.
23122 2015-05-26 Jeff Law <law@redhat.com>
23124 * combine.c (find_split_point): Verify that the shift count is a
23125 constant when choosing (plus (ashift ...)) as a split point.
23127 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
23128 No functional changes.
23130 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
23132 * ipa-polymorphic-call.c
23133 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
23134 case when call target is already known.
23136 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
23139 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
23140 take into account the case that operands[1] and operands[2]
23141 are the same register.
23143 2015-05-26 Michael Matz <matz@suse.de>
23145 PR middle-end/66251
23147 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
23149 (vect_create_vectorized_demotion_stmts): Always set
23150 STMT_VINFO_VEC_STMT, also with SLP.
23151 (vectorizable_store): Handle strided group stores.
23153 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23156 * config/aarch64/aarch64.md
23157 (*adds_shift_imm_<mode>): New pattern.
23158 (*subs_shift_imm_<mode>): Likewise.
23159 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23160 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23161 (*add_uxt<mode>_shift2): Likewise.
23162 (*add_uxtsi_shift2_uxtw): Likewise.
23163 (*sub_uxt<mode>_shift2): Likewise.
23164 (*sub_uxtsi_shift2_uxtw): Likewise.
23166 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
23168 * config/rs6000/constraints.md (Y, U): Use match_test.
23170 2015-05-26 Christian Bruel <christian.bruel@st.com>
23173 * config/arm/arm.c (arm_option_check_internal)
23174 (arm_option_params_internal): Check opts->target_flags to set macros.
23175 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23176 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
23177 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23178 (builtin_define): Replaced with def_or_undef_macro.
23179 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23180 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
23181 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23182 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
23183 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
23184 (TARGET_ARM_FEATURE_LDREX_P)
23185 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
23186 * config/arm/arm-c.c (def_or_undef_macro): New function.
23187 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
23189 2015-05-26 Christian Bruel <christian.bruel@st.com>
23191 * c-common.h (builtin_define_with_int_value)
23192 (builtin_define_type_sizeof): Declare.
23193 * c-cppbuiltin.c (builtin_define_with_int_value)
23194 (builtin_define_type_sizeof): Externalize.
23195 (builtin_define_std): Cleanup declaration.
23196 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
23197 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
23198 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
23199 (builtin_define, builtin_assert): New macros.
23201 2015-05-26 Richard Biener <rguenther@suse.de>
23203 PR tree-optimization/66142
23204 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
23205 MEM_REFs for the same base address.
23207 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23210 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
23212 2015-05-26 Jason Merrill <jason@redhat.com>
23214 * configure.ac: Set CXXFLAGS for ISL test.
23215 * configure: Regenerate.
23217 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
23218 strstr and basename.
23219 * configure: Regenerate.
23221 2015-05-26 Richard Biener <rguenther@suse.de>
23223 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
23224 X % C -> X & (C - 1) for C being a power-of two to ...
23225 * match.pd: ... patterns.
23227 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
23229 * match.pd (swapped_tcc_comparison): New operator list.
23230 (-A CMP -B): New simplification.
23231 * fold-const.c (fold_comparison): Remove corresponding code.
23233 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
23235 * caller-save.c (init_caller_save): Base temporary register numbers
23236 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
23237 * cfgloopanal.c (init_set_costs): Likewise.
23238 * dojump.c (prefer_and_bit_test): Likewise.
23239 * expr.c (init_expr_target): Likewise.
23240 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23241 * lower-subreg.c (init_lower_subreg): Likewise.
23242 * postreload.c (reload_cse_regs_1): Likewise.
23244 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
23246 * gensupport.h (compute_test_codes): Declare.
23247 * gensupport.c (compute_predicate_codes): Rename to...
23248 (compute_test_codes): ...this. Generalize error message.
23249 (process_define_predicate): Update accordingly.
23250 * genpreds.c (compute_maybe_allows): Delete.
23251 (add_constraint): Use compute_test_codes to determine whether
23252 something can accept a SUBREG, REG or MEM.
23254 2015-05-26 Torvald Riegel <triegel@redhat.com>
23256 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
23257 'memory model' to align with C++11; fix description of memory orders;
23260 2015-05-26 Richard Biener <rguenther@suse.de>
23262 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
23263 (vect_analyze_loop_operations): ... here. Remove slp parameter,
23264 detect whether we apply SLP. Remove call to
23265 vect_update_slp_costs_according_to_vf.
23266 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
23267 vect_update_slp_costs_according_to_vf from here. Dispatch
23268 to vect_slp_analyze_operations to analyze SLP stmts.
23269 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
23270 unused bb_vec_info parameter, adjust assert.
23271 (vect_slp_analyze_operations): Pass in the slp instance tree
23272 instead of bb_vec_info.
23273 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
23274 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
23276 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
23278 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
23279 Q_REGS. Expand comment.
23280 (REG_CLASS_NAMES): Ditto.
23281 (REG_CLASS_CONTENTS): Ditto.
23283 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
23286 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
23287 when LEGACY_INT_REGNO_P is processed.
23289 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
23291 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
23293 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23295 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
23296 register if not marked dead/unused, before return.
23298 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
23301 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
23302 is set; check for assembler name at LTO time.
23303 (type_in_anonymous_namespace): Remove hacks, check that all
23304 anonymous types are called "<anon>"
23305 (odr_type_p): Simplify; add check for "<anon>"
23306 (odr_subtypes_equivalent): Add odr_type_p check.
23307 * tree.c (need_assembler_name_p): Even anonymous namespace needs
23310 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
23312 * ipa-utils.h (method_class_type): Remove.
23313 * cgraphunit.c (walk_polymorphic_call_targets): Use
23314 TYPE_METHOD_BASETYPE.
23315 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
23316 on main variants only.
23317 (method_class_type): Remove.
23318 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
23319 (build_type_inheritance_graph): Likewise.
23320 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23321 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
23322 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
23324 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
23326 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
23327 is_typedef_decl, typedef_variant_p): Constify.
23328 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
23329 is_typedef_decl, typedef_variant_p): Constify.
23331 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23333 * defaults.h (gen_tablejump): New function.
23334 (HAVE_tablejump): Add default value.
23336 * stmt.c: Likewise.
23338 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23340 * defaults.h (gen_store_multiple): New function.
23341 (HAVE_store_multiple): Add default value.
23342 * expr.c (move_block_from_reg): Adjust.
23344 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23346 * defaults.h (gen_load_multiple): New function.
23347 (HAVE_load_multiple): Add default value.
23348 * expr.c (move_block_to_reg): Adjust.
23350 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23352 * defaults.h (gen_mem_signal_fence): New function.
23353 (HAVE_mem_signal_fence): Add default value.
23354 * optabs.c: Adjust.
23356 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23358 * defaults.h (gen_memory_barrier): New function.
23359 (HAVE_memory_barrier): Add default value.
23360 * optabs.c: Adjust.
23362 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23364 * defaults.h (gen_mem_thread_fence): New function.
23365 (HAVE_mem_thread_fence): Add default definition.
23366 * optabs.c: Adjust.
23368 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23370 * combine.c (find_split_point): Check the value of HAVE_lo_sum
23371 instead of if it is defined.
23372 (combine_simplify_rtx): Likewise.
23373 * lra-constraints.c (process_address_1): Likewise.
23374 * config/darwin.c: Adjust.
23375 * genconfig.c (main): Always define HAVE_lo_sum.
23377 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23379 * genmatch.c (parser::parse_operation): Reject expanding
23380 operator-list inside 'for'.
23382 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23384 * genmatch.c (parser::parse_for): Reject iterator if used as
23387 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23389 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
23390 after end of id-list.
23392 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
23394 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
23395 we do not try to compute canonical type for type that does not need
23397 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
23399 * tree.h (type_with_alias_set_p): New.
23401 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
23403 * tree.c (gimple_canonical_types_compatible_p): Do not compare
23404 function attributes.
23405 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
23407 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
23409 * Makefile.in (check_gcc_parallelize): Delete.
23410 (lang_checks_parallelized): Update comment.
23412 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
23414 PR rtl-optimization/66237
23415 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
23416 location of an "as_a" cast.
23418 2015-05-22 Jeff Law <law@redhat.com>
23420 * config/pa/pa.md (non-canonical shift-add insns): Remove.
23421 (peepholes with non-canonical RTL sources): Remove.
23422 (peepholes for indexed stores of FP regs in integer modes): Match and
23423 generate canonical RTL.
23425 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
23427 PR tree-optimization/63387
23428 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
23429 ((x ord x) & (y ord y) -> (x ord y),
23430 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
23431 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
23432 vectors like scalars.
23434 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
23436 * convert.c (convert_to_integer, convert_to_vector): Include the
23437 types in the error message.
23439 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
23441 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
23444 2015-05-22 Jeff Law <law@redhat.com>
23446 * config/pa/pa.md (integer_indexed_store splitters): Use
23447 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
23448 insns -- adjusting the constant 2nd operand accordingly.
23450 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
23451 (plus (ashift X log2) Y) if it is a split point.
23453 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
23454 out of hppa_legitimize_address to handle both forms of a multiply
23456 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
23457 Always generate the ASHIFT variant as the result is not directly
23458 used in a MEM. Update comments and refactor slightly to improve
23461 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23464 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
23465 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
23466 (aarch64_composite_type_p): Return false if given type and mode are
23467 for a short vector.
23469 2015-05-22 Richard Biener <rguenther@suse.de>
23471 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
23473 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
23474 patterns when determining whether SLP is pure.
23475 (vect_is_slp_reduction): Remove check for pattern stmts.
23476 (vect_is_simple_reduction_1): Remove dead code.
23477 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
23478 (vect_get_and_check_slp_defs): Pass in the stmt number.
23479 Allow the first def in a reduction to be not a pattern stmt when
23480 the rest of the stmts def are patterns.
23481 (vect_build_slp_tree_1): Allow tcc_expression codes like
23482 SAD_EXPR and DOT_PROD_EXPR.
23483 (vect_build_slp_tree): Adjust.
23484 (vect_analyze_slp): Refactor and move BB vect error message ...
23485 (vect_slp_analyze_bb_1): ... here.
23487 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
23489 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
23490 for CSWTCH temporary.
23492 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23494 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
23495 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
23498 2015-05-22 Richard Biener <rguenther@suse.de>
23500 PR tree-optimization/66251
23501 * tree-vect-stmts.c (vectorizable_conversion): Properly
23502 set STMT_VINFO_VEC_STMT even for the SLP case.
23504 2015-05-22 Marek Polacek <polacek@redhat.com>
23506 * doc/extend.texi: Use @pxref instead of @xref.
23508 2015-05-22 hiraditya <hiraditya@msn.com>
23510 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
23513 2015-05-22 Richard Biener <rguenther@suse.de>
23515 PR tree-optimization/65701
23516 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23517 Move peeling cost models into one place. Peel for alignment
23518 for single loads only if an aligned load is cheaper than
23521 2015-05-22 Marek Polacek <polacek@redhat.com>
23524 * doc/extend.texi (Enumerator Attributes): New section.
23525 Document syntax of enumerator attributes.
23527 2015-05-22 Richard Biener <rguenther@suse.de>
23529 * tree-vect-loop.c (get_reduction_op): New function.
23530 (vect_model_reduction_cost): Use it, add reduc_index parameter.
23531 Make ready for BB reductions.
23532 (vect_create_epilog_for_reduction): Use get_reduction_op.
23533 (vectorizable_reduction): Init reduc_index to a valid value.
23534 Adjust vect_model_reduction_cost call.
23535 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
23536 operand for reduction defaults. Add SAD_EXPR support.
23537 Assert we have a neutral op for SLP reductions.
23538 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
23539 walking pattern stmt ops only recurse to SSA names.
23541 2015-05-22 Richard Biener <rguenther@suse.de>
23543 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
23544 assert with guard, remove check on detected reduction.
23545 (vect_recog_sad_pattern): Likewise.
23546 (vect_recog_widen_sum_pattern): Likewise.
23548 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23550 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
23551 __always_inline__ attribute.
23552 (vaesdq_u8): Likewise.
23553 (vaesmcq_u8): Likewise.
23554 (vaesimcq_u8): Likewise.
23555 (vsha1cq_u32): Likewise.
23556 (vsha1mq_u32): Likewise.
23557 (vsha1pq_u32): Likewise.
23558 (vsha1h_u32): Likewise.
23559 (vsha1su0q_u32): Likewise.
23560 (vsha1su1q_u32): Likewise.
23561 (vsha256hq_u32): Likewise.
23562 (vsha256h2q_u32): Likewise.
23563 (vsha256su0q_u32): Likewise.
23564 (vsha256su1q_u32): Likewise.
23565 (vmull_p64): Likewise.
23566 (vmull_high_p64): Likewise.
23568 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23570 * final.c (final_scan_insn): Don't check HAVE_peephole with the
23572 * output.h: Likewise.
23573 * genconfig.c (main): Alwways define HAVE_peephole.
23574 * genpeep.c: Don't emit checks of HAVE_peephole.
23576 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23578 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
23579 check HAVE_conditional_move with the preprocessor.
23581 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23583 * genconfig.c (main): Always define HAVE_conditional_move.
23584 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
23585 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
23588 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23590 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
23591 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
23592 and FRAME_POINTER_REGNUM with the preprocessor.
23594 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23596 * defaults.h: Add default for STACK_PUSH_CODE.
23597 * expr.c: Don't redefine STACK_PUSH_CODE.
23598 * recog.c: Likewise.
23600 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23602 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
23603 sched-deps.c: Use if instead of preprocessor checks with
23604 STACK_GROWS_DOWNWARD.
23606 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23608 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
23610 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
23611 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
23612 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
23613 * doc/tm.texi: Regenerate.
23615 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
23618 * config/i386/constraints.md (Bg): New constraint for GOT memory
23620 * config/i386/i386.md (*call_got_x32): New pattern.
23621 (*call_value_got_x32): Likewise.
23622 * config/i386/predicates.md (GOT_memory_operand): New predicate.
23624 2015-05-21 Jakub Jelinek <jakub@redhat.com>
23626 PR tree-optimization/66233
23627 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
23630 2015-05-21 Jeff Law <law@redhat.com>
23632 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
23633 than MULT for shadd sequences.
23635 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
23637 * alias.c (alias_stats): New static var.
23638 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
23639 (dump_alias_stats_in_alias_c): New function.
23640 * alias.h (dump_alias_stats_in_alias_c): Declare.
23641 * tree-ssa-alias.c (dump_alias_stats): Call it.
23643 2015-05-08 Michael Matz <matz@suse.de>
23645 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
23647 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
23648 (STMT_VINFO_STRIDED_P): ... this.
23649 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
23650 (vect_verify_datarefs_alignment): Likewise.
23651 (vect_enhance_data_refs_alignment): Likewise.
23652 (vect_analyze_data_ref_access): Likewise.
23653 (vect_analyze_data_refs): Accept strided stores.
23654 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
23655 (vect_model_load_cost): Adjust for macro rename.
23656 (vectorizable_mask_load_store): Likewise.
23657 (vectorizable_load): Likewise.
23658 (vectorizable_store): Open code strided stores.
23660 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23662 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
23663 Document sqrt_insn.
23665 2015-05-21 Richard Biener <rguenther@suse.de>
23668 * match.pd: Guard pattern optimzing (int)(float)int
23669 conversions to apply only on GIMPLE.
23671 2015-05-21 Jeff Law <law@redhat.com>
23673 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
23674 multiply-accumulate/shift-add insn generation.
23676 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23679 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
23680 operands[1] are the same.
23682 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
23684 PR middle-end/66221
23685 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
23686 build_distinct_type_copy to copy bounds.
23688 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
23690 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
23691 Change to unsigned int.
23693 2015-05-20 Jeff Law <law@redhat.com>
23695 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
23696 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
23697 (pa_shadd_constant_p): Allow constants for shadd insns rather
23698 than valid scaling constants for memory addresses.
23699 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
23700 * config/pa/predicates.md (mem_shadd_operand): New predicate.
23701 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
23702 (shift-add insns using ASHIFT): New patterns.
23704 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
23706 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
23708 (fix_up_fall_thru_edges): Likewise.
23709 (fix_crossing_conditional_branches): Likewise. Promote jump targets
23710 from to rtx_insn to rtx_code_label where feasible.
23711 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
23712 gen_move_insn (returned type changed to rtx_insn).
23713 * builtins.c (expand_errno_check): Fix arguments of
23714 do_compare_rtx_and_jump (now expects rtx_code_label).
23715 (expand_builtin_acc_on_device): Likewise.
23716 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
23717 invert_jump (now exprects rtx_jump_insn).
23718 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
23719 (construct_init_block): Use rtx_code_label.
23720 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
23721 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
23722 calling redirect_jump.
23723 (patch_jump_insn): Likewise.
23724 (redirect_branch_edge): Likewise.
23725 (force_nonfallthru_and_redirect): Likewise.
23726 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
23728 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
23729 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
23730 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
23731 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
23732 to store the value retured by gen_label_rtx.
23733 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
23735 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
23736 (split_branches): Fix calls of redirect_jump.
23737 * dojump.c (jumpifnot): Promote argument type from rtx to
23739 (jumpifnot_1): Likewise.
23740 (jumpif): Likewise.
23741 (jumpif_1): Likewise.
23742 (do_jump_1): Likewise.
23743 (do_jump): Likewise. Use rtx_code_label when feasible.
23744 (do_jump_by_parts_greater_rtx): Likewise.
23745 (do_jump_by_parts_zero_rtx): Likewise.
23746 (do_jump_by_parts_equality_rtx): Likewise.
23747 (do_compare_rtx_and_jump): Likewise.
23748 * dojump.h: Update function prototypes.
23749 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
23751 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
23753 (emit_label_before): Likewise.
23754 (emit_jump_insn_after_noloc): Likewise.
23755 (emit_jump_insn_after_setloc): Likewise.
23756 (emit_jump_insn_after): Likewise
23757 (emit_jump_insn_before_setloc): Likewise.
23758 (emit_jump_insn_before): Likewise.
23759 (emit_label_before): Promote return type to rtx_code_label.
23760 (emit_label): Likewise.
23761 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
23762 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
23764 (emit_stack_restore): Likewise.
23765 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
23766 (do_cmp_and_jump): Likewise.
23767 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
23768 from rtx to rtx_code_label.
23769 (gen_move_insn_uncast): New function.
23770 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
23771 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
23772 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
23773 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
23774 invert_jump_1 and redirect_jump_1.
23775 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
23776 do_compare_rtx_and_jump.
23777 (expand_addsub_overflow): Likewise.
23778 (expand_neg_overflow): Likewise.
23779 (expand_mul_overflow): Likewise.
23780 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
23781 return value of gen_move_insn.
23782 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
23783 * loop-doloop.c (add_test): Use rtx_code_label.
23784 (doloop_modify): Likewise.
23785 (doloop_optimize): Likewise.
23786 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
23787 * lra-constraints.c (emit_spill_move): Remove cast of value returned
23789 (inherit_reload_reg): Add cast when calling dump_insn_slim.
23790 (split_reg): Likewise.
23791 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
23793 * optabs.c (expand_binop_directly): Remove casts of values returned by
23795 (expand_unop_direct): Likewise.
23796 (expand_abs): Likewise.
23797 (maybe_emit_unop_insn): Likewise.
23798 (maybe_gen_insn): Promote return type to rtx_insn.
23799 * optabs.h: Update prototype of maybe_gen_insn.
23800 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
23802 * recog.c (struct peep2_insn_data): Promote type of insn field to
23804 (peep2_reinit_state): Use NULL instead of NULL_RTX.
23805 (peep2_attempt): Remove casts of insn in peep2_insn_data.
23806 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
23807 * recog.h (struct insn_gen_fn): Promote return types of function
23808 pointers and operator ().from rtx to rtx_insn.
23809 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
23810 (fill_eager_delay_slots): Likewise.
23811 (relax_delay_slots): Likewise.
23812 (make_return_insns): Likewise.
23813 (dbr_schedule): Likewise.
23814 (optimize_skips): Likewise.
23815 (reorg_redirect_jump): Likewise.
23816 (fill_slots_from_thread): Likewise.
23817 * reorg.h: Update prototypes.
23818 * resource.c (find_dead_or_set_registers): Use dyn_cast to
23819 rtx_jump_insn instead of check. Use it's jump_target method.
23820 * rtl.h (rtx_jump_insn::jump_label): Define new method.
23821 (rtx_jump_insn::jump_target): Define new method.
23822 (rtx_jump_insn::set_jump_target): Define new method.
23823 * rtlanal.c (tablejump_p): Promote type of one local variable.
23824 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
23825 (sched_analyze_insn): Likewise.
23826 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
23827 (print_insn): Likewise.
23828 * stmt.c (label_rtx): Promote return type to rtx_insn.
23829 (force_label_rtx): Likewise.
23830 (jump_target_rtx): Define new function.
23831 (expand_label): Use it, get rid of one cast.
23832 (expand_naked_return): Promote rtx to rtx_code_label.
23833 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
23834 (expand_case): Use rtx_code_label instread of rtx where feasible.
23835 (expand_sjlj_dispatch_table): Likewise.
23836 (emit_case_nodes): Likewise.
23837 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
23838 * store-motion.c (insert_store): Make use of new return type of
23839 gen_move_insn and remove a cast.
23840 (replace_store_insn): Likewise.
23842 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
23844 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
23845 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23847 2015-05-20 Jeff Law <law@redhat.com>
23849 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23850 dispose of the jump thread path when the jump threading
23851 opportunity is cancelled.
23853 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
23855 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23856 when printing the caret character.
23858 2015-05-20 Marek Polacek <polacek@redhat.com>
23860 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23862 2015-05-20 Marek Polacek <polacek@redhat.com>
23864 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23865 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23866 * gimple-fold.c (canonicalize_bool): Likewise.
23867 (same_bool_result_p): Likewise.
23868 * tree-if-conv.c (parse_predicate): Likewise.
23870 2015-05-20 Marek Polacek <polacek@redhat.com>
23872 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23873 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23875 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23877 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23878 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23881 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
23883 * config/mips/mips.h (micromips_globals): Declare.
23885 2015-05-20 David Malcolm <dmalcolm@redhat.com>
23887 * timevar.def (TV_INITIALIZE_RTL): New.
23888 * toplev.c (initialize_rtl): Use an auto_timevar to account this
23889 function's time to TV_INITIALIZE_RTL.
23891 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
23893 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23894 gimple_build_nop calls.
23895 (chkp_find_bounds_for_elem): Likewise.
23896 (chkp_get_zero_bounds): Likewise.
23897 (chkp_get_none_bounds): Likewise.
23898 (chkp_get_bounds_by_definition): Likewise.
23899 (chkp_generate_extern_var_bounds): Likewise.
23900 (chkp_get_bounds_for_decl_addr): Likewise.
23901 (chkp_get_bounds_for_string_cst): Likewise.
23903 2015-05-20 Bin Cheng <bin.cheng@arm.com>
23905 PR tree-optimization/65447
23906 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23907 (dump_use, dump_uses): Support to dump sub use.
23908 (record_use): New parameters to support sub use. Remove call to
23910 (record_sub_use, record_group_use): New functions.
23911 (compute_max_addr_offset, split_all_small_groups): New functions.
23912 (group_address_uses, rewrite_use_address): New functions.
23913 (strip_offset): New declaration.
23914 (find_interesting_uses_address): Call record_group_use.
23915 (add_candidate): New assertion.
23916 (infinite_cost_p): Move definition forward.
23917 (add_costs): Check INFTY cost and return immediately.
23918 (get_computation_cost_at): Clear setup cost and dependent bitmap
23920 (determine_use_iv_cost_address): Compute cost for sub uses.
23921 (rewrite_use_address_1): Rename from old rewrite_use_address.
23922 (free_loop_data): Free sub uses.
23923 (tree_ssa_iv_optimize_loop): Call group_address_uses.
23925 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23926 Jim Wilson <jim.wilson@linaro.org>
23928 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23929 new fields loadv and storev.
23930 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23931 Initialize loadv and storev.
23932 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23933 (cortexa53_extra_costs): Likewise.
23934 (cortexa57_extra_costs): Likewise.
23935 (xgene1_extra_costs): Likewise.
23936 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23939 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23941 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23943 (cortexa8_extra_costs): Likewise.
23944 (cortexa5_extra_costs): Likewise.
23945 (cortexa7_extra_costs): Likewise.
23946 (cortexa12_extra_costs): Likewise.
23947 (cortexa15_extra_costs): Likewise.
23948 (v7m_extra_costs): Likewise.
23950 2015-05-20 Jeff Law <law@redhat.com>
23952 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23953 instead of open-coded version. Also delete the jump thread created
23954 within this function.
23956 2015-05-20 Alan Modra <amodra@gmail.com>
23958 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23959 stack adjusting insn. Formatting.
23960 (rs6000_emit_prologue): Track stack adjusting insn, and use of
23961 r12. If possible, emit first -fsplit-stack arg pointer insn
23962 before stack adjust. Don't use r12 to save cr if split-stack.
23964 2015-05-20 Alan Modra <amodra@gmail.com>
23966 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23968 (rs6000_supports_split_stack): New function.
23969 * config/rs6000/rs6000.c (machine_function): Add
23970 split_stack_arg_pointer.
23971 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23972 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23973 rather than virtual_incoming_args_rtx.
23974 (rs6000_va_start): Likewise.
23975 (split_stack_arg_pointer_used_p): New function.
23976 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23977 (morestack_ref): New var.
23978 (gen_add3_const, rs6000_expand_split_stack_prologue,
23979 rs6000_internal_arg_pointer, rs6000_live_on_entry,
23980 rs6000_split_stack_space_check): New functions.
23981 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23982 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23983 (UNSPECV_SPLIT_STACK_RETURN): Define.
23984 (split_stack_prologue, load_split_stack_limit,
23985 load_split_stack_limit_di, load_split_stack_limit_si,
23986 split_stack_return, split_stack_space_check): New expands and insns.
23987 * config/rs6000/rs6000-protos.h
23988 (rs6000_expand_split_stack_prologue): Declare.
23989 (rs6000_split_stack_space_check): Declare.
23991 2015-05-20 Alan Modra <amodra@gmail.com>
23993 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23994 (direct_return): Test vrsave_size rather than vrsave_mask.
23995 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
23996 (rs6000_emit_epilogue): Likewise.
23998 2015-05-20 Alan Modra <amodra@gmail.com>
24000 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24001 when not saving registers.
24002 (debug_stack_info): Adjust to omit printing unused offsets,
24004 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24007 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24010 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24011 value_type to const char *.
24013 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
24015 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24016 to build a biarch toolchain again.
24018 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24020 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24021 or implicit declarations.
24022 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24024 (get_odr_type): Check type has linkage before adding bases.
24025 (register_odr_type): Check that type has linkage before adding it.
24026 (type_known_to_have_no_deriavations_p): Rename to ..
24027 (type_known_to_have_no_derivations_p): This one.
24028 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24029 (type_known_to_have_no_derivations_p): This one.
24030 * ipa-polymorphic-call.c
24031 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24034 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24036 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24037 (layout_type): Use RECORD_OR_UNION_TYPE_P.
24039 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24041 * config/s390/s390.c (s390_vector_bool_type_p): New function.
24042 (s390_invalid_binary_op): New function.
24043 (TARGET_INVALID_BINARY_OP): Define macro.
24045 2015-05-19 David Sherwood <david.sherwood@arm.com>
24047 * loop-invariant.c (create_new_invariant): Don't calculate address cost
24048 if mode is not a scalar integer.
24049 (get_inv_cost): Increase computational cost for unused invariants.
24051 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24053 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
24054 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
24055 * config/s390/s390-builtin-types.def: New file.
24056 * config/s390/s390-builtins.def: New file.
24057 * config/s390/s390-builtins.h: New file.
24058 * config/s390/s390-c.c: New file.
24059 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24060 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24061 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24062 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24064 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24066 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24067 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24068 variable definitions.
24069 (s390_const_operand_ok): New function.
24070 (s390_expand_builtin): Rewrite.
24071 (s390_init_builtins): New function.
24072 (s390_handle_vectorbool_attribute): New function.
24073 (s390_attribute_table): Add s390_vector_bool attribute.
24074 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24075 (s390_branch_condition_mask): Generate masks for new modes.
24076 (s390_expand_vec_compare_cc): New function.
24077 (s390_mangle_type): Add mangling for vector bool types.
24078 (enum s390_builtin): Remove.
24079 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24081 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24082 s390_cpu_cpp_builtins.
24083 (REGISTER_TARGET_PRAGMAS): New macro.
24084 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24085 (insn_cmp mode attribute): Add new CC modes.
24086 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24087 (lcbb): New pattern definition.
24088 * config/s390/s390intrin.h: Include vecintrin.h.
24089 * config/s390/t-s390: New file.
24090 * config/s390/vecintrin.h: New file.
24091 * config/s390/vector.md: Include vx-builtins.md.
24092 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24095 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24097 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24099 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24100 (s390_select_ccmode): Likewise.
24101 (s390_canonicalize_comparison): Swap operands if necessary.
24102 (s390_expand_vec_compare_scalar): Expand DFmode compare using
24103 single element vector instructions.
24104 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
24105 (s390_branch_condition_mask): Generate CC masks for the new modes.
24106 * config/s390/s390.md (v0, vf, vd): New mode attributes.
24107 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
24108 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
24109 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
24110 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
24111 (*extend<DSF:mode><BFP:mode>2): New insn definition.
24112 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
24113 (extend<DSF:mode><BFP:mode>2): Turn into expander.
24114 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
24115 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
24116 (sqrt<mode>2): Add vector instruction.
24118 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24120 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
24122 * config/s390/predicates.md (const0_operand, constm1_operand)
24123 (constable_operand): Accept vector operands.
24124 * config/s390/s390-modes.def: Add supported vector modes.
24125 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
24126 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
24127 (s390_bytemask_vector_p, s390_expand_vec_strlen)
24128 (s390_expand_vec_compare, s390_expand_vcond)
24129 (s390_expand_vec_init): Add prototypes.
24130 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
24131 (s390_vector_mode_supported_p): New function.
24132 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
24133 (s390_contiguous_bitmask_vector_p): New function.
24134 (s390_bytemask_vector_p): New function.
24135 (s390_split_ok_p): Vector regs don't work either.
24136 (regclass_map): Add VEC_REGS.
24137 (s390_legitimate_constant_p): Handle vector constants.
24138 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
24139 (legitimate_reload_vector_constant_p): New function.
24140 (s390_preferred_reload_class): Handle CONST_VECTOR.
24141 (s390_reload_symref_address): Likewise.
24142 (s390_secondary_reload): Vector memory instructions only support
24143 short displacements. Rename reload*_nonoffmem* to reload*_la*.
24144 (s390_emit_ccraw_jump): New function.
24145 (s390_expand_vec_strlen): New function.
24146 (s390_expand_vec_compare): New function.
24147 (s390_expand_vcond): New function.
24148 (s390_expand_vec_init): New function.
24149 (s390_dwarf_frame_reg_mode): New function.
24150 (print_operand): Handle addresses with 'O' and 'R' constraints.
24151 (NR_C_MODES, constant_modes): Add vector modes.
24152 (s390_output_pool_entry): Handle vector constants.
24153 (s390_hard_regno_mode_ok): Handle vector registers.
24154 (s390_class_max_nregs): Likewise.
24155 (s390_cannot_change_mode_class): New function.
24156 (s390_invalid_arg_for_unprototyped_fn): New function.
24157 (s390_function_arg_vector): New function.
24158 (s390_function_arg_float): Remove size variable.
24159 (s390_pass_by_reference): Handle vector arguments.
24160 (s390_function_arg_advance): Likewise.
24161 (s390_function_arg): Likewise.
24162 (s390_return_in_memory): Vector values are returned in a VR if
24164 (s390_function_and_libcall_value): Handle vector arguments.
24165 (s390_gimplify_va_arg): Likewise.
24166 (s390_call_saved_register_used): Consider the arguments named.
24167 (s390_conditional_register_usage): Disable v16-v31 for non-vec
24169 (s390_preferred_simd_mode): New function.
24170 (s390_support_vector_misalignment): New function.
24171 (s390_vector_alignment): New function.
24172 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
24173 (TARGET_VECTOR_MODE_SUPPORTED_P)
24174 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
24175 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
24176 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
24177 (TARGET_VECTOR_ALIGNMENT): Define target macro.
24178 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
24179 (FIRST_PSEUDO_REGISTER): Increase value.
24180 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
24181 (VECTOR_REG_P): Define macros.
24182 (FIXED_REGISTERS, CALL_USED_REGISTERS)
24183 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
24184 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
24185 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
24186 Add vector registers.
24187 (CANNOT_CHANGE_MODE_CLASS): Call C function.
24188 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
24189 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
24191 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
24192 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
24193 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
24194 (VR*_REGNUM): New constants.
24195 (ALL): New mode iterator.
24196 (INTALL): Remove mode iterator.
24198 (movti): Implement TImode moves for VRs.
24199 Disable TImode splitter for VR targets.
24200 Implement splitting TImode GPR<->VR moves.
24201 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
24202 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
24203 reload<mode>_la_in, reload<mode>_la_out.
24204 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
24205 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
24206 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
24207 (mov<mode> SF SD): Prefer lder, lde for loading.
24208 Add lrl and strl instructions.
24209 Add vector instructions.
24210 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
24211 Call s390_expand_vec_strlen on z13.
24212 (*cc_to_int): Change predicate to nonimmediate_operand.
24213 (addti3): Rename to *addti3. New expander.
24214 (subti3): Rename to *subti3. New expander.
24215 * config/s390/vector.md: New file.
24217 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24219 * common/config/s390/s390-common.c (processor_flags_table): Add
24221 * config.gcc: Add z13.
24222 * config/s390/s390-opts.h (enum processor_type): Add
24223 PROCESSOR_2964_Z13.
24224 * config/s390/s390.c (s390_adjust_priority): Check for
24225 PROCESSOR_2964_Z13.
24226 (s390_reorg): Likewise.
24227 (s390_sched_reorder): Likewise.
24228 (s390_sched_variable_issue): Likewise.
24229 (s390_loop_unroll_adjust): Likewise.
24230 (s390_option_override): Likewise. Default to -mvx when available.
24231 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
24232 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
24233 (TARGET_VX_ABI): Define macros.
24235 (TARGET_DEFAULT): Add MASK_OPT_VX.
24236 * config/s390/s390.md ("cpu" attribute): Add z13.
24237 ("cpu_facility" attribute): Add vec.
24238 * config/s390/s390.opt (processor_type): Add z13.
24239 (mvx): New options.
24240 * doc/invoke.texi: Add z13 option for -march.
24242 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24244 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
24245 mode check to make sure that only scalar integer values are
24248 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24250 * tree.c (verify_type_variant): Fix #undef.
24251 (gimple_canonical_types_compatible_p): Move here from lto.c
24252 (verify_type): Verify TYPE_CANONICAL compatibility.
24253 * tree.h (gimple_canonical_types_compatible_p): Declare.
24255 2015-05-19 Jakub Jelinek <jakub@redhat.com>
24257 PR middle-end/66199
24258 * tree.h (OMP_TEAMS_COMBINED): Define.
24259 * gimplify.c (enum gimplify_omp_var_data): Add
24260 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
24261 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
24262 (omp_notice_variable): Accept both ORT_TEAMS
24263 and ORT_COMBINED_TEAMS. Don't recurse if
24264 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
24265 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
24267 (omp_no_lastprivate): New function.
24268 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
24269 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
24270 notice_outer and set appropriate bits, otherwise make
24271 sure default(none) combined constructs won't complain.
24272 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
24273 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
24274 omp_no_lastprivate either remove the clause or turn it
24275 into OMP_CLAUSE_PRIVATE.
24276 (gimplify_omp_for): Fix up handling of implicit
24277 lastprivate or linear iterators.
24278 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
24279 ORT_COMBINED_TEAMS.
24280 * omp-low.c (lower_omp_for_lastprivate): For combined
24281 for simd use fd.loop.n2 from the for rather than simd.
24283 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24285 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
24286 instead of gen_rtx_raw_REG.
24287 (cris_expand_epilogue): Likewise.
24288 * config/microblaze/microblaze.c (microblaze_classify_address):
24290 * config/sparc/sparc.md: Likewise.
24292 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
24294 * config/alpha/alpha.c (alpha_legitimize_reload_address)
24295 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
24296 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
24297 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
24298 Use CASE_CONST_SCALAR_INT.
24299 (print_operand) <case 'M'>: Use mode_width_operand to check the
24300 value of the constant.
24301 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
24302 * config/alpha/predicates.md (input_operand): Use general_operand
24303 instead of match_code as operand check.
24304 (symbolic_operand): Use match_code with subexpression digits.
24305 * config/alpha/constraints.md (Q): Ditto.
24307 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24309 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
24311 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24313 * config/s390/s390.c (s390_secondary_reload): Fix check for
24314 load/store relative.
24316 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24318 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
24319 alternative_mask to uint64_t.
24321 2015-05-19 Jakub Jelinek <jakub@redhat.com>
24323 PR tree-optimization/66187
24324 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
24325 Pass TYPE_SIGN to tree_int_cst_min_precision. If
24326 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
24328 2015-05-19 David Malcolm <dmalcolm@redhat.com>
24330 * diagnostic.c (diagnostic_report_current_module): Strengthen
24331 local "new_map" from const line_map * to
24332 const line_map_ordinary *.
24333 * genmatch.c (error_cb): Likewise for local "map".
24334 (output_line_directive): Likewise for local "map".
24335 * input.c (expand_location_1): Likewise for local "map".
24336 Pass NULL rather than &map to
24337 linemap_unwind_to_first_non_reserved_loc, since the value is never
24338 read from there, and the value written back not read from here.
24339 (is_location_from_builtin_token): Strengthen local "map" from
24340 const line_map * to const line_map_ordinary *.
24341 (dump_location_info): Strengthen locals "map" from
24342 line_map *, one to const line_map_ordinary *, the other
24343 to const line_map_macro *.
24344 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
24345 const line_map * to const line_map_macro *.
24346 (maybe_unwind_expanded_macro_loc): Add a call to
24347 linemap_check_macro when writing to the "map" field of the
24349 Introduce local const line_map_ordinary * "ord_map", using it in
24350 place of "map" in the part of the function where we know we have
24351 an ordinary map. Strengthen local "m" from const line_map * to
24352 const line_map_ordinary *.
24354 2015-05-19 Nick Clifton <nickc@redhat.com>
24357 * config/msp430/msp430.md (zero_extendhisi2): Add support for
24358 separate source and destination registers.
24360 2015-05-19 Richard Biener <rguenther@suse.de>
24362 PR tree-optimization/66165
24363 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
24364 for no load permutation.
24366 PR tree-optimization/66185
24367 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
24368 when building the SLP node from scalars.
24370 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24371 Tristan Gingold <gingold@adacore.com>
24373 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
24374 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
24375 (expand_stack_restore): Call record_new_stack_level.
24376 (expand_stack_save): Do not call do_pending_stack_adjust.
24377 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
24378 * calls.c (expand_call): Call record_new_stack_level for alloca.
24379 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
24380 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
24381 (update_sjlj_context): New global function.
24382 * except.h (update_sjlj_context): Declare.
24383 * explow.c (record_new_stack_level): New global function.
24384 (allocate_dynamic_stack_space): Call record_new_stack_level.
24385 * explow.h (record_new_stack_level): Declare.
24386 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
24387 * cfgrtl.c (duplicate_insn_chain): Likewise.
24389 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24391 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
24392 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
24393 STACK_GROWS_DOWNWARD as normal if.
24394 (expand_call): Likewise.
24396 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
24399 * config/sh/sh.md (*round_int_even): New insn_and_split and
24400 accompanying new unnamed split.
24402 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24404 * bitmap.c (bitmap_set_range): Handle count==1 specially.
24405 (bitmap_clear_range): Likewise.
24406 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
24407 bitmap_set_range unconditionally.
24408 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
24409 * df-scan.c (df_mark_reg): Likewise.
24410 * haifa-sched.c (setup_ref_regs): Likewise.
24411 * sched-rgn.c (update_live_1): Likewise.
24413 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24415 * regs.h (END_HARD_REGNO): Delete.
24416 (END_REGNO): Move to...
24418 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
24419 * caller-save.c (mark_set_regs): Likewise.
24420 * combine.c (move_deaths, distribute_notes): Likewise.
24421 * cse.c (invalidate, invalidate_for_call): Likewise.
24422 * df-scan.c (df_ref_record): Likewise.
24423 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
24424 (record_last_reg_set_info): Likewise.
24425 * reg-stack.c (convert_regs_exit): Likewise.
24426 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
24427 * resource.c (update_live_status): Likewise.
24428 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
24430 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24432 * rtl.h (reg_info): Add an nregs field.
24433 (REG_NREGS): Use it.
24434 (SET_REGNO_RAW): Delete.
24435 (set_regno_raw): New function.
24436 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
24437 (END_REGNO): Redefine in terms of REG_NREGS.
24438 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
24440 * emit-rtl.c (set_mode_and_regno): Likewise.
24441 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
24442 instead of SET_REGNO_RAW.
24444 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24446 * rtl.h (PUT_MODE_RAW): New macro.
24447 (PUT_REG_NOTE_KIND): Use it.
24448 (set_mode_and_regno): Declare.
24449 (gen_raw_REG): Change regno to "unsigned int".
24450 (gen_rtx_REG): Change "unsigned" to "unsigned int".
24451 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
24452 use set_mode_and_regno to change the mode of registers.
24453 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
24454 * emit-rtl.c (set_mode_and_regno): New function.
24455 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
24456 * caller-save.c (reg_save_code): Use set_mode_and_regno.
24457 * expr.c (init_expr_target): Likewise.
24458 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24459 * postreload.c (reload_cse_simplify_operands): Likewise.
24461 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24463 * caller-save.c (init_caller_save): Use word_mode and
24464 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
24465 * expr.c (init_expr_target): Likewise.
24466 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24467 * postreload.c (reload_cse_regs_1): Likewise.
24469 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24471 * rtl.def (REG): Change format to "r".
24472 * rtl.h (rtunion): Remove rt_reg.
24473 (reg_info): New structure.
24474 (rtx_def): Add reg field to main union.
24475 (X0REGATTR): Delete.
24476 (REG_CHECK): New macro.
24477 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
24478 * rtl.c (rtx_format): Document "r".
24479 (rtx_code_size): Handle REG specially.
24480 * gengenrtl.c (special_format): Return true for formats
24482 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
24483 Deal with REG_ATTRS after the field loop.
24484 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
24485 * expmed.c (init_expmed): Call gen_raw_REG instead of
24487 * expr.c (init_expr_target): Likewise.
24488 * regcprop.c (maybe_mode_change): Likewise.
24489 * varasm.c (make_decl_rtl): Likewise.
24490 * final.c (leaf_renumber_regs_insn): Return early after
24492 * genemit.c (gen_exp): Handle 'r' fields.
24493 * genpeep.c (match_rtx): Likewise.
24494 * gensupport.c (subst_pattern_match): Likewise.
24495 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
24496 (alter_constraints, subst_dup): Likewise.
24497 * read-rtl.c (read_rtx_code): Likewise.
24498 * print-rtl.c (print_rtx): Likewise.
24499 * genrecog.c (find_operand, find_matching_operand): Likewise.
24500 (validate_pattern, match_pattern_2): Likewise.
24501 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
24502 (rtx_test::regno_field): New function.
24503 (operator ==, safe_to_hoist_p, transition_parameter_type)
24504 (parameter_type_string, print_parameter_value)
24505 (print_nonbool_test, print_test): Handle new enum values.
24506 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
24507 * lra-constraints.c (operands_match_p): Likewise.
24509 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24511 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
24512 Change type of new_regno to unsigned int.
24513 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
24514 new_regno to unsigned int.
24515 (df_ref_change_reg_with_loc): Remove old_regno parameter.
24516 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
24517 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
24518 (SET_REGNO_RAW): Add space after ",".
24520 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24522 * rtl.h (REG_NREGS): New macro
24523 * alias.c (record_set): Use it.
24524 * cfgcleanup.c (mark_effect): Likewise.
24525 * combine.c (likely_spilled_retval_1): Likewise.
24526 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
24527 (move_deaths, distribute_notes): Likewise.
24528 * cselib.c (cselib_record_set): Likewise.
24529 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
24530 * df-scan.c (df_mark_reg): Likewise.
24531 * dse.c (look_for_hardregs): Likewise.
24532 * dwarf2out.c (reg_loc_descriptor): Likewise.
24533 (multiple_reg_loc_descriptor): Likewise.
24534 * expr.c (write_complex_part, read_complex_part): Likewise.
24535 (emit_move_complex): Likewise.
24536 * haifa-sched.c (setup_ref_regs): Likewise.
24537 * ira-lives.c (mark_hard_reg_live): Likewise.
24538 * lra.c (lra_set_insn_recog_data): Likewise.
24539 * mode-switching.c (create_pre_exit): Likewise.
24540 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
24541 (reload_combine_recognize_pattern): Likewise.
24542 (reload_combine_note_use, move2add_record_mode): Likewise.
24543 (reload_cse_move2add): Likewise.
24544 * reg-stack.c (subst_stack_regs_pat): Likewise.
24545 * regcprop.c (kill_value, copy_value): Likewise.
24546 (copyprop_hardreg_forward_1): Likewise.
24547 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
24548 (build_def_use): Likewise.
24549 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
24550 (deps_analyze_insn): Likewise.
24551 * sched-rgn.c (check_live_1, update_live_1): Likewise.
24552 * sel-sched.c (count_occurrences_equiv): Likewise.
24553 * valtrack.c (dead_debug_insert_temp): Likewise.
24555 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
24557 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
24558 * dse.c (note_add_store): Likewise.
24559 * ira-lives.c (mark_hard_reg_dead): Likewise.
24560 * loop-invariant.c (mark_reg_store): Likewise.
24561 (mark_reg_death): Likewise.
24562 * postreload.c (reload_combine): Likewise.
24563 (reload_combine_note_store): Likewise.
24564 (reload_combine_note_use): Likewise.
24565 * recog.c (peep2_reg_dead_p): Likewise.
24567 2015-05-19 Alan Modra <amodra@gmail.com>
24569 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
24570 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
24571 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
24573 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
24574 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
24575 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
24576 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
24578 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
24580 * config/mips/mips.md (JOIN_MODE): New mode iterator.
24581 (join2_load_Store<JOIN_MODE:mode>): New pattern.
24582 (join2_loadhi): Likewise.
24583 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
24584 load-load and store-stores.
24585 * config/mips/mips.opt (mload-store-pairs): New option.
24586 (TARGET_LOAD_STORE_PAIRS): New macro.
24587 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
24588 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
24589 * config/mips/mips.c (mips_load_store_bonding_p): New function.
24591 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
24593 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
24595 * dojump.c (do_compare_rtx_and_jump): Likewise.
24596 * expmed.c (emit_store_flag_1): Likewise.
24597 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
24598 * final.c (sprint_ul): Use std::reverse for reversing a string.
24599 * fold-const.c (extract_muldiv_1): Use std::swap.
24600 * genmodes.c (emit_mode_int_n): Likewise.
24601 * ifcvt.c (dead_or_predicable): Likewise.
24602 * ira-build.c (ira_merge_live_ranges): Likewise.
24603 (swap_allocno_copy_ends_if_necessary): Likewise.
24604 * ira.c (ira_setup_alts): Likewise.
24605 * loop-iv.c (iv_analyze_expr): Likewise.
24606 (implies_p): Likewise.
24607 (canon_condition): Likewise.
24608 * lra-constraints.c (swap_operands): Likewise.
24609 * lra-lives.c (lra_merge_live_ranges): Likewise.
24610 * omega.c (swap): Remove.
24612 (omega_unprotect_1): Use std::swap.
24613 (omega_solve_geq): Likewise.
24614 * optabs.c (expand_binop_directly): Likewise.
24615 (expand_binop): Likewise.
24616 (emit_conditional_move): Likewise.
24617 (emit_conditional_add): Likewise.
24618 * postreload.c (reload_cse_simplify_operands): Likewise.
24619 * reg-stack.c (emit_swap_insn): Likewise.
24620 (swap_to_top): Likewise.
24621 (compare_for_stack_reg): Likewise.
24622 (subst_asm_stack_regs): Likewise.
24623 * reload.c (find_reloads): Likewise.
24624 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
24625 * sel-sched.c (invoke_reorder_hooks): Likewise.
24626 (create_block_for_bookkeeping): Likewise.
24627 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
24628 (lambda_matrix_right_hermite): Use std::swap.
24629 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
24630 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
24631 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
24632 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
24633 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
24634 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
24635 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
24636 * tree-vrp.c (compare_ranges): Likewise.
24637 * var-tracking.c (add_with_sets): Likewise.
24638 (vt_find_locations): Likewise.
24640 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
24642 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
24644 (FBSD_ENDFILE_SPEC): Likewise.
24645 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
24646 config/freebsd-spec.h.
24647 (ENDFILE_SPEC): Likewise.
24649 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
24650 Richard Henderson <rth@redhat.com>
24653 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
24654 Check for a memory location that is not a reference (using an AND)
24655 to an unaligned location here.
24656 * config/alpha/predicates.md (normal_memory_operand): Remove.
24658 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
24660 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
24661 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
24663 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
24665 * config/mips/mips.c (micromips_globals): New variable.
24666 (mips_set_compression_mode): Save and reinitialize target-dependent
24667 state for microMIPS.
24669 2015-05-18 Martin Liska <mliska@suse.cz>
24671 * dbgcnt.def: Add new counter.
24672 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
24674 2015-05-18 Martin Liska <mliska@suse.cz>
24676 * dbgcnt.def: Sort counters.
24677 * opts.c (common_handle_option): Do not compile if
24678 -fdbg-cnt-list is enabled.
24680 2015-05-18 Tom de Vries <tom@codesourcery.com>
24682 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
24683 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
24684 address operator to va_list operand.
24685 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
24687 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
24689 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
24690 * config/s390/s390.c (s390_gimplify_va_arg): Same.
24691 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
24693 2015-05-18 Tom de Vries <tom@codesourcery.com>
24695 * tree-ssa-tail-merge.c: Fix whitespace.
24697 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
24699 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
24700 cortex-a17, and cortex-a17.cortex-a7.
24702 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
24705 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
24707 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
24710 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
24711 QImode inner modes for TARGET_AVX512BW. Force mask operand
24712 to a register for AVX512F modes.
24714 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24716 * toplev.c (emit_debug_global_declarations): Do not output debug info
24717 when doing slim LTO objects.
24719 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24721 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
24722 odr_types_equivalent_p): Declare.
24723 (odr_type_p): Use gcc_checking_assert.
24724 (type_in_anonymous_namespace_p) Declare.
24725 (type_with_linkage_p): Declare.
24726 * common.opt (Wlto-type-mismatch): New warning.
24727 * ipa-devirt.c (compound_type_base): New function.
24728 (odr_or_derived_type_p): New function.
24729 (odr_types_equivalent_p): New function.
24730 (add_type_duplicate): Simplify.
24731 (type_with_linkage_p): Add hack to prevent false positives on C types
24732 (type_in_anonymous_namespace_p): Likewise.
24733 * tree.c (need_assembler_name_p): Use type_with_linkage.
24734 * tree.h (type_in_anonymous_namespace_p): Remove.
24735 * doc/invoke.texi (-Wlto-type-mismatch): Document
24737 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24739 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
24740 (verify_type): Verify STRING_FLAG.
24742 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
24745 * tree-pretty-print.c (percent_K_format): Replace locus pointer
24746 with accessor function.
24747 * tree-diagnostic.c (diagnostic_report_current_function): Use
24748 diagnostic_location function.
24749 (maybe_unwind_expanded_macro_loc): Likewise.
24750 (virt_loc_aware_diagnostic_finalizer): Likewise.
24751 (default_tree_printer): Replace locus pointer with accessor function.
24752 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
24753 (diagnostic_set_info_translated): Initialize second location.
24754 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
24755 (diagnostic_show_locus): Handle two locations. Call
24756 diagnostic_print_caret_line.
24757 (diagnostic_print_caret_line): New.
24758 (default_diagnostic_starter): Use diagnostic_location function.
24759 (diagnostic_report_diagnostic): Use diagnostic_location function.
24760 (verbatim): Do not set text.locus.
24761 * diagnostic.h (struct diagnostic_info): Remove location field.
24762 (struct diagnostic_context): Make caret_chars an array of two.
24763 (diagnostic_location): New inline.
24764 (diagnostic_expand_location): Handle two locations.
24765 (diagnostic_same_line): New inline.
24766 (diagnostic_print_caret_line): Declare.
24767 (CARET_LINE_MARGIN): New constant.
24768 * pretty-print.c (pp_printf): Do not set text.locus.
24769 (pp_verbatim): Do not set text.locus.
24770 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
24771 (struct text_info): Replace locus pointer with locations
24772 array. Add accessor functions.
24774 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
24775 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24778 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
24779 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
24780 large constants in register instead of splitting them.
24782 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
24785 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
24786 replacements in memory addresses.
24787 (get_unaligned_address): Ditto.
24789 2015-05-16 James Bowman <james.bowman@ftdichip.com>
24791 * config/ft32/*: New files for FT32 port.
24792 * doc/install.texi: Add FT32 information.
24793 * doc/invoke.texi: Add FT32 information.
24794 * doc/md.texi: Add FT32 information.
24795 * doc/contrib.texi: Self added.
24797 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
24799 PR tree-optimization/64454
24800 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
24801 (-1 - A -> ~A): Remove unnecessary condition.
24803 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
24805 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
24806 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
24807 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
24809 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
24811 * ipa-chkp.h (chkp_wrap_function): New.
24812 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
24813 (chkp_wrap_function_name): New.
24814 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
24815 to get wrapper name.
24816 * lto-cgraph.c: Include ipa-chkp.h.
24817 (input_cgraph_1): Avoid alias chain for wrappers.
24819 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24821 PR middle-end/66134
24822 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
24823 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
24825 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24827 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
24828 (AARCH64_FL_SLOWMUL): Delete.
24829 (AARCH64_FL_CRC): Redefine to 1<<3.
24830 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
24832 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24834 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
24837 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24839 * config/alpha/alpha.md (extendqidi2): Use general_operand
24840 instead of some_operand for operand[1] predicate.
24841 (extendhidi2): Ditto.
24842 (cbranchdi4): Use general_operand instead of some_operand
24843 for operand[1] and operands[2] predicates.
24844 (cstoredi4): Ditto.
24845 * config/alpha/predicates.md (some_operand): Remove unused predicate.
24846 (some_ni_operand): Ditto.
24848 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24850 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24851 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
24852 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24853 low part of the constant using alpha_emit_set_const_1.
24854 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24856 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
24858 * varasm.c (output_constant_pool_1): Pass down alignment from
24859 constant pool entry's descriptor to output_constant_pool_2.
24860 (output_object_block): Add comment prior to call to
24861 output_constant_pool_1.
24863 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
24865 PR rtl-optimization/65862
24866 * target.def (ira_change_pseudo_allocno_class): New hook.
24867 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24869 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24870 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24872 * ira-costs.c (find_costs_and_classes): Call the hook and change
24873 classes when it is necessary.
24874 * doc/tm.texi: Update.
24876 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
24878 * config/i386/i386.md (sibcall_memory): Check that register with
24879 callee address is not also used as one of the arguments, instead
24880 of checking that it is not live after the sibcall.
24881 (sibcall_pop_memory): Ditto.
24882 (sibcall_value_memory): Ditto.
24883 (sibcall_value_pop_memory): Ditto.
24885 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
24887 * generic-match-head.c (types_match): Handle non-types.
24888 * gimple-match-head.c (types_match): Likewise.
24889 * match.pd: Remove unnecessary TREE_TYPE for types_match.
24891 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
24893 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24894 (csneg3<mode>_insn): Enable expansion of pattern.
24896 2015-05-14 Nick Clifton <nickc@redhat.com>
24898 * config/rl78/rl78.c (rl78_select_section): Select the correct
24899 default section based upon the category of the decl.
24901 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24903 PR rtl-optimization/30967
24904 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24905 destination mode for the cost of scc patterns.
24907 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24909 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24910 using SWIM248 mode iterator.
24911 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24912 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
24913 for operand[2] constraint.
24914 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24916 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24918 PR middle-end/66133
24919 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24920 make sure it is never noreturn, even when the task body does not
24922 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24923 right before GIMPLE_OMP_RETURN.
24924 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24925 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
24926 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24928 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24930 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24931 * tree-ssa-math-opts.c: Include params.h
24932 (pow_synth_sqrt_info): New struct.
24933 (representable_as_half_series_p): New function.
24934 (get_fn_chain): Likewise.
24935 (print_nested_fn): Likewise.
24936 (dump_fractional_sqrt_sequence): Likewise.
24937 (dump_integer_part): Likewise.
24938 (expand_pow_as_sqrts): Likewise.
24939 (gimple_expand_builtin_pow): Use above to attempt to expand
24940 pow as series of square roots. Removed now unused variables.
24942 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24944 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24945 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24946 Remove *p0 and *p1 arguments. Rewrite function.
24947 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24948 (alpha_split_const_mov): Update calls to alpha_extract_integer and
24949 alpha_emit_set_long_const.
24950 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24951 (alpha_output_mi_thunk_osf): Ditto.
24952 * config/alpha/alpha.md (movti): Do not check operands[1]
24955 2015-05-13 Richard Biener <rguenther@suse.de>
24957 PR tree-optimization/66129
24958 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24960 (vect_schedule_slp_instance): Fix typo.
24962 2015-05-13 David Malcolm <dmalcolm@redhat.com>
24964 * common.opt (fdump-internal-locations): New option.
24965 * input.c: Include diagnostic-core.h.
24966 (get_end_location): New function.
24967 (write_digit): New function.
24968 (write_digit_row): New function.
24969 (dump_location_range): New function.
24970 (dump_labelled_location_range): New function.
24971 (dump_location_info): New function.
24972 * input.h (dump_location_info): New prototype.
24973 * toplev.c (compile_file): Handle flag_dump_locations.
24975 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
24977 * gimple-expr.h (is_gimple_constant): Reorder.
24978 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24980 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24982 * combine.c (simplify_set): When generating a CC set, if the
24983 source already is in the correct mode, do not wrap it in a
24984 compare. Simplify the rest of that code.
24986 2015-05-13 Richard Biener <rguenther@suse.de>
24988 PR tree-optimization/66123
24989 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24992 2015-05-13 Richard Biener <rguenther@suse.de>
24994 PR middle-end/66110
24995 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24997 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24999 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25001 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25002 * aclocal.m4: Regenerated with automake-1.11.6.
25004 2015-05-13 Tom de Vries <tom@codesourcery.com>
25006 PR tree-optimization/66010
25007 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25008 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25009 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
25010 and rval based on do_deref.
25012 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25015 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25016 link time constants into adress expressions and therefore set
25019 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25022 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25023 Use SWI248 iterator instead of SWI.
25024 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
25025 Use eq_attr "alternative" "0" instead of match_test in
25026 length_immediate attribute computation.
25027 (*mulvhi4, *mulvhi4_1): New define_insns.
25030 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25031 SIGNED to get precision of non-negative value.
25033 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25036 * function.c (diddle_return_value_1): Process bounds first.
25037 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25040 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25042 PR rtl-optimization/64616
25043 * loop-invariant.c (can_move_invariant_reg): New.
25044 (move_invariant_reg): Call above new function to decide whether
25045 instruction can just be moved, skipping creation of temporary
25048 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25050 PR target/pr66047.c
25051 * i386.c (ix86_function_sseregparm): Only return -1 if local function
25052 with implied regparm is called from -mno-sse function.
25053 (init_cumulative_args): Output error if ix86_function_sseregparm
25054 return -1 and SSE register would be needed.
25055 (function_arg_advance_32): Likewise.
25056 (function_arg_32): Likewise.
25057 * i386.h (ix86_args): Add decl field.
25059 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25062 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25063 inlines across optimization boundary.
25065 2015-05-12 Jason Merrill <jason@redhat.com>
25067 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25068 string literal and macro name.
25070 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
25072 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25073 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25074 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25076 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25078 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25079 (-Wmisleading-indentation): New option.
25080 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25082 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
25084 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25085 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25086 (alpha_extract_integer): Ditto.
25087 (alpha_legitimate_constant_p): Ditto.
25088 (alpha_split_tmode_pair): Ditto.
25089 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25090 (alpha_expand_mov): Ditto.
25091 (print_operand): Remove handling of 'H' modifier.
25092 <case 'm'>: Remove CONST_DOUBLE handling.
25093 (summarize_insn): Handle CONST_WIDE_INT.
25094 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25096 (movti): Handle CONST_WIDE_INT.
25097 * config/alpha/constraints.md ('H'): Remove constraint definition.
25098 ('G'): Do not match MODE_FLOAT class.
25099 * config/alpha/predicates.md (const0_operand): Also match
25101 (non_add_const_operand): Ditto.
25102 (non_zero_const_operand): Ditto.
25103 (some_operand): Ditto.
25104 (input_operand): Ditto. Handle CONST_WIDE_INT.
25105 (and_operand): Do not match const_double.
25106 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
25108 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
25111 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
25112 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
25113 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
25114 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
25115 is_mm_seq_cst, is_mm_sync): New accessor functions.
25116 * builtins.c (expand_builtin_sync_operation,
25117 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
25118 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
25119 (get_memmodel, expand_builtin_atomic_compare_exchange,
25120 expand_builtin_atomic_load, expand_builtin_atomic_store,
25121 expand_builtin_atomic_clear): Use new accessor routines.
25122 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
25123 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
25124 (maybe_emit_sync_lock_test_and_set): Use new accessors and
25125 MEMMODEL_SYNC_ACQUIRE.
25126 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
25127 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
25128 expand_atomic_store): Use new accessors.
25129 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
25130 * tsan.c (instrument_builtin_call): Update check for memory model beyond
25131 final enum to use MEMMODEL_LAST.
25132 * c-family/c-common.c: Use new accessor for memmodel_base.
25133 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
25135 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
25136 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
25137 mem_thread_fence, *dmb): Likewise.
25138 * config/alpha/alpha.c (alpha_split_compare_and_swap,
25139 alpha_split_compare_and_swap_12): Likewise.
25140 * config/arm/arm.c (arm_expand_compare_and_swap,
25141 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
25142 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
25143 atomic_loaddi): Likewise.
25144 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
25146 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
25147 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
25149 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
25150 atomic_store<mode>, atomic_compare_and_swap<mode>,
25151 atomic_exchange<mode>): Use new accessors.
25152 * config/mips/mips.c (mips_process_sync_loop): Likewise.
25153 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
25154 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
25155 rs6000_post_atomic_barrier): Add new cases.
25156 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
25157 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
25158 (atomic_load<mode>): Add new cases and use new accessors.
25159 (store_quadpti): Add new cases.
25160 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
25162 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
25163 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
25166 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25168 * ipa-devirt.c (type_with_linkage_p): New function.
25169 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
25171 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
25172 (can_be_name_hashed_p): Simplify.
25173 (hash_odr_name): Check that type has linkage before checking if it is
25175 (types_same_for_odr): Likewise.
25176 (odr_name_hasher::equal): Likewise.
25177 (odr_subtypes_equivalent_p): Likewise.
25178 (warn_types_mismatch): Likewise.
25179 (get_odr_type): Likewise.
25180 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
25181 * ipa-utils.h (odr_type_p): Move offline.
25182 * tree.c (need_assembler_name_p): Fix handling of types
25184 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
25186 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25188 * timevar.c (timevar_enable): Delete in favor of...
25189 (g_timer): New global.
25190 (struct timevar_def): Move to timevar.h inside class timer.
25191 (struct timevar_stack_def): Likewise.
25192 (timevars): Delete global in favor of field "m_timevars" within
25193 class timer in timevar.h
25194 (stack): Likewise, in favor of field "m_stack".
25195 (unused_stack_instances): Likewise, in favor of field
25196 "m_unused_stack_instances".
25197 (start_time): Likewise, in favor of field "m_start_time".
25198 (get_time): Eliminate check for timevar_enable.
25199 (timer::timer): New function, built from part of timevar_init.
25200 (timevar_init): Rewrite idempotency test from using
25201 "timevar_enable" bool to using dynamic allocation of "g_timer".
25202 Move rest of implementation into timer's constructor.
25203 (timevar_push_1): Rename to...
25204 (timer::push): ...this, adding "m_" prefixes to variables that
25205 are now fields of timer.
25206 (timevar_pop_1): Likewise, rename to...
25207 (timer::pop): ...this, and add "m_" prefixes.
25208 (timevar_start): Replace test for "timevar_enable" with one for
25209 "g_timer", and move bulk of implementation to...
25210 (timer::start): ...here, adding "m_" prefixes.
25211 (timevar_stop): Likewise, from here...
25212 (timer::stop): ...to here.
25213 (timevar_cond_start): Likewise, from here...
25214 (timer::cond_start): ...to here.
25215 (timevar_cond_stop): Likewise, from here...
25216 (timer::cond_stop): ...to here.
25217 (validate_phases): Rename to...
25218 (timer::validate_phases): ...this, and add "m_" prefixes. Make
25219 locals "total" and "tv" const.
25220 (timevar_print): Rename to...
25221 (timer::print): ...this, and add "m_" prefixes. Make locals
25222 "total" and "tv" const. Eliminate test for timevar_enable.
25223 * timevar.h (timevar_enable): Eliminate.
25224 (g_timer): New declaration.
25225 (timevar_push_1): Eliminate.
25226 (timevar_pop_1): Eliminate.
25227 (timevar_print): Eliminate.
25228 (class timer): New class.
25229 (timevar_push): Rewrite to use g_timer.
25230 (timevar_pop): Likewise.
25231 * toplev.c (toplev::~toplev): Likewise.
25233 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
25235 * arm-protos.h (arm_sched_autopref): Delete.
25236 (tune_params): Re-organize, use enums for flag values.
25237 (FUSE_OPS): New macro.
25238 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
25239 (ARM_PREFETCH_BENEFICIAL): Likewise.
25240 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
25241 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
25242 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
25243 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
25244 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
25245 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
25246 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
25247 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
25249 (arm_option_override, thumb2_reorg, arm_print_tune_info)
25250 (aarch_macro_fusion_pair_p): Update uses of current_tune.
25251 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
25253 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
25255 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
25258 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
25259 Sandra Loosemore <sandra@codesourcery.com>
25261 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
25263 (REG_CLASS_NAMES): Add "IJMP_REGS".
25264 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
25265 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
25266 use new "c" register constraint.
25267 * config/nios2/constraint.md (c): New register constraint
25268 corresponding to IJMP_REGS.
25270 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25272 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
25273 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
25274 define_splits): Delete, revamp, transmogrify into ...
25275 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
25276 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
25277 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
25280 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25282 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
25283 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
25285 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25287 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
25288 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
25289 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
25290 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
25291 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
25292 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
25293 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
25294 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
25295 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
25296 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
25297 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
25298 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
25299 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
25300 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
25301 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
25302 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
25303 and 30 corresponding splitters): Delete.
25305 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25307 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
25310 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25312 * combine.c (recog_for_combine_1): New function, factored out
25313 from recog_for_combine.
25314 (change_zero_ext): New function.
25315 (recog_for_combine): If recog fails, try again with the pattern
25316 modified by change_zero_ext; if that still fails, restore the
25319 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25321 * combine.c (get_undo_marker): New function.
25322 (undo_to_marker): New function, largely factored out from ...
25323 (undo_all): ... this. Adjust.
25325 2015-05-12 Richard Biener <rguenther@suse.de>
25327 PR tree-optimization/66101
25328 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
25329 fixup if we turn a loop exit edge to a fallthru edge.
25331 2015-05-12 Richard Biener <rguenther@suse.de>
25333 PR tree-optimization/37021
25334 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
25335 (SLP_TREE_TWO_OPERATORS): New define.
25336 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
25337 SLP_TREE_TWO_OPERATORS.
25338 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
25340 (vect_build_slp_tree): Adjust.
25341 (vect_analyze_slp_cost_1): Likewise.
25342 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
25343 emitting two vector stmts and mixing the results.
25345 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
25347 * call.c (print_z_candidates): Remove dead code.
25349 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25351 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
25352 and zEC12_simple_fp.
25353 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
25356 2015-05-12 Tom de Vries <tom@codesourcery.com>
25358 PR tree-optimization/66010
25359 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
25361 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
25362 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
25363 va_lists are passed, and remove corresponding handling.
25364 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
25365 do_deref argument to ifn_va_arg.
25366 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
25369 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25372 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
25373 REG before taking its REGNO.
25375 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25377 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
25378 rsp->sign_bit_copies and rsp->nonzero_bits into ...
25379 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
25380 present to get more accurate information about the number of sign bit
25381 copies and non zero bits.
25383 2015-05-12 Richard Biener <rguenther@suse.de>
25385 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
25386 do not allow unrolling.
25388 2015-05-11 Richard Henderson <rth@redhat.com>
25390 * config/i386/i386-modes.def (CCP): New.
25391 * config/i386/i386.c (put_condition_code): Handle it.
25392 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
25394 2015-05-11 Richard Henderson <rth@redhat.com>
25396 * target.def (md_asm_clobbers): Replace with...
25397 (md_asm_adjust): this.
25398 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
25399 (TARGET_MD_ASM_ADJUST): New.
25400 * tm.texi: Rebuild.
25401 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
25402 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
25403 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
25405 * cfgexpand.c (check_operand_nalternatives): Accept vector of
25406 constraints instead of lists of outputs and inputs.
25407 (expand_asm_stmt): Save and restore input_location around the
25408 body of the function. Move asm data into vectors instead of
25409 building tree lists. Generate cleanup sequences as needed,
25410 rather than waiting til the end. Use new md_asm_adjust hook.
25412 * config/vxworks.c: Include vec.h before target.h.
25413 * gimple.c: Likewise.
25414 * incpath.c: Likewise.
25415 * mode-switching.c: Likewise.
25417 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
25418 (cris_md_asm_adjust): this.
25419 (TARGET_MD_ASM_CLOBBERS): Remove.
25420 (TARGET_MD_ASM_ADJUST): New.
25421 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
25422 (ix86_md_asm_adjust): this.
25423 (TARGET_MD_ASM_CLOBBERS): Remove.
25424 (TARGET_MD_ASM_ADJUST): New.
25425 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
25426 (mn10300_md_asm_adjust): this.
25427 (TARGET_MD_ASM_CLOBBERS): Remove.
25428 (TARGET_MD_ASM_ADJUST): New.
25429 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
25430 (rs6000_md_asm_adjust): this.
25431 (TARGET_MD_ASM_CLOBBERS): Remove.
25432 (TARGET_MD_ASM_ADJUST): New.
25433 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
25434 (visium_md_asm_adjust): this.
25435 (TARGET_MD_ASM_CLOBBERS): Remove.
25436 (TARGET_MD_ASM_ADJUST): New.
25438 2015-05-11 Richard Henderson <rth@redhat.com>
25440 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
25441 if noutputs is zero.
25442 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
25444 * cfgexpand.c (expand_asm_operands): Merge into...
25445 (expand_asm_stmt): ... here.
25447 * cfgexpand.c (expand_asm_operands): Don't call
25448 resolve_asm_operand_names.
25449 * stmt.c (resolve_asm_operand_names): Clarify block comment.
25451 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
25453 * dwarf2out.c (gen_member_die): Sanity check that we access
25454 TYPE_MAIN_VARIANT for TYPE_METHODS.
25455 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
25456 checking TYPE_METHODS.
25457 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
25459 (build_distinct_type_copy): Clear TYPE_METHODS.
25460 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
25461 (verify_type): Allow TYPE_METHODS to be error_mark_node.
25462 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
25464 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
25466 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
25467 (emit_pattern_before_setloc): Likewise.
25469 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
25471 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
25472 for define_peephole2s.
25473 (get_peephole2_pattern): New function.
25474 (main): Use it. Call validate_pattern.
25476 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25478 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
25479 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
25480 (Last callee saved reg is different for AVR_TINY architecture)
25482 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
25484 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
25485 when looking for memory references.
25487 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
25490 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
25491 via function pointers.
25493 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
25495 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
25496 indirect call by forcing address into a pseudo with -fno-plt.
25497 * common.opt (flag_plt): New option.
25498 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
25499 ([-fno-plt]): Document.
25501 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
25504 * config/rs6000/option-defaults.h: Add space between string literal
25507 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
25509 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
25510 accross ARM targets.
25512 2015-05-11 Christian Bruel <christian.bruel@st.com>
25514 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
25515 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
25517 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
25519 PR rtl-optimization/66076
25520 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
25521 Don't grow the heap array if it is already big enough from a
25522 previous iteration.
25524 2015-05-11 Christian Bruel <christian.bruel@st.com>
25526 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
25527 (is_called_in_ARM_mode): Remove.
25528 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
25529 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
25530 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
25531 arm_declare_function_name.
25533 2015-05-11 Christian Bruel <christian.bruel@st.com>
25535 * config/arm/arm.c (arm_option_override): Reoganized and split into :
25536 (arm_option_params_internal); New function.
25537 (arm_option_check_internal): New function.
25538 (arm_option_override_internal): New function.
25539 (thumb_code, thumb1_code): Remove.
25540 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
25541 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
25542 (thumb_code, thumb1_code): Remove.
25543 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
25545 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
25547 * config/alpha/alpha.c (alpha_emit_set_const_1)
25548 (alpha_emit_set_long_const, alpha_extract_integer)
25549 (alpha_legitimate_constant_p, alpha_split_const_mov)
25550 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
25551 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25552 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
25554 * config/alpha/predicates.md (mode_mask_operand): Do not match
25556 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25557 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
25558 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
25559 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
25560 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
25562 2015-05-11 Jakub Jelinek <jakub@redhat.com>
25565 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
25566 default_binds_local_p_2.
25567 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
25568 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
25570 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25572 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
25574 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25576 Patch by Richard Biener
25577 * coverage.c (coverage_obj_init): Delay building of type variant
25578 until the type is finished.
25580 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25582 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
25583 mismatch between C and C++ type; compoare correctly ARG_TYPES
25584 for non-prototypes and output correctly parameter index for METHOD_TYPE.
25585 (odr_types_equivalent_p): Fix wording of warning about attributes;
25586 it is OK to match prototype and non-prototype.
25588 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25590 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
25591 TYPE_ARG_TYPES list.
25592 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
25593 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
25595 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
25597 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
25598 * tree.h (is_lang_specific): Constify.
25600 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
25602 PR tree-optimization/64454
25603 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
25606 2015-05-08 Jason Merrill <jason@redhat.com>
25608 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
25609 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
25610 config/darwin.h, config/darwin9.h, config/elfos.h,
25611 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
25612 config/microblaze/microblaze.h, config/mips/mips.h,
25613 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
25614 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
25615 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
25616 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
25617 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
25618 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
25619 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
25620 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
25621 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
25622 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
25623 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
25624 between string literal and macro name.
25626 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25628 * jump.c: Change argument types to rtx_insn *.
25631 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25633 * lra-constraints.c: Change argument type to rtx_insn *.
25635 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25637 * df-problems.c: Change argument type to rtx_insn *.
25639 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25641 * combine.c: Change argument type to rtx_insn *.
25643 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25646 * rtlanal.c: Change argument type to rtx_insn *.
25648 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25650 * sched-deps.c: Change argument types to rtx_insn *.
25651 * sched-int.h: Adjust.
25653 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25655 * dwarf2cfi.c: Change argument type to rtx_insn *.
25657 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25659 * ira.c (decrease_live_ranges_number): Changetype of local
25660 variable to rtx_insn *.
25661 * recog.c: Change argument types to rtx_insn *.
25664 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25666 * reorg.c: Change argument types to rtx_insn *.
25668 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25670 * ira-color.c: Change argument types to rtx_insn *.
25671 * lra-eliminations.c: Likewise.
25674 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25676 * gcse.c: Change argument types to rtx_insn *.
25678 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25680 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
25682 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25684 * emit-rtl.c (emit_debug_insn_before): Change argument type to
25688 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25690 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
25693 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25695 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
25698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25700 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
25703 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25705 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
25708 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25710 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
25714 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25716 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
25720 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25722 * except.c (can_nonlocal_goto): Change type of argument to
25726 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25728 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
25731 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25733 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
25734 * cfgrtl.c (can_delete_label_p): Adjust.
25737 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25739 * reorg.c (stop_search_p): Change argument to rtx_insn *.
25741 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25743 * except.c (make_reg_eh_region_note): Change argument to
25745 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
25746 * except.h: Adjust.
25748 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25750 * mode-switching.c (commit_mode_sets): Change type of local
25751 variable from rtx to rtx_insn *.
25753 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
25755 * doc/install.texi (--enable-languages): Add missing jit and lto info.
25756 Add ^ to grep command.
25757 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
25758 arg to last gimple_simplify declaration. Add missing gimple_build
25759 declaration for built-in function case with four tree args.
25761 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25762 Szabolcs Nagy <szabolcs.nagy@arm.com>
25764 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
25765 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
25766 (GNU_USER_DYNAMIC_LINKERN32): Update.
25768 2015-05-08 Richard Biener <rguenther@suse.de>
25770 PR tree-optimization/66036
25771 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25772 Handle strided group loads.
25773 (vect_verify_datarefs_alignment): Likewise.
25774 (vect_enhance_data_refs_alignment): Likewise.
25775 (vect_analyze_group_access): Likewise.
25776 (vect_analyze_data_ref_access): Likewise.
25777 (vect_analyze_data_ref_accesses): Likewise.
25778 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
25779 (vectorizable_load): Likewise.
25781 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
25783 * config/rs6000/rs6000.md: Require operand inequality in one
25786 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
25787 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25789 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
25791 * config/rx/rx.md (movdi, movdf): Likewise.
25792 Likewise for define_peephole2s.
25794 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25796 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
25797 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
25798 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
25799 vtst_u64): Rewrite using gcc vector extensions.
25801 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25803 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
25804 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
25806 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25808 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
25810 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
25812 * config/glibc-stdint.h (OPTION_MUSL): Define.
25813 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
25814 Change the definition based on OPTION_MUSL for 64 bit targets.
25815 * config/linux.h (OPTION_MUSL): Redefine.
25816 * config/alpha/linux.h (OPTION_MUSL): Redefine.
25817 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
25818 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
25820 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25821 Szabolcs Nagy <szabolcs.nagy@arm.com>
25823 * config.gcc (LIBC_MUSL): New tm_defines macro.
25824 * config/linux.h (OPTION_MUSL): Define.
25825 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
25826 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
25827 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25828 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25829 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25830 * config/linux.opt (mmusl): New option.
25831 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
25832 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25833 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25834 * configure: Regenerate.
25836 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
25837 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25840 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
25841 * config/i386/knetbsd-gnu64.h: New file.
25843 2015-05-08 Marek Polacek <polacek@redhat.com>
25846 * doc/invoke.texi: Document -Woverride-init-side-effects.
25848 2015-05-07 Marek Polacek <polacek@redhat.com>
25851 * doc/invoke.texi: Document -Wshift-negative-value.
25853 2015-05-06 Aditya Kumar <hiraditya@msn.com>
25855 * gcov-tool.c (do_merge): Refactore to remove int ret.
25856 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25857 !type == FUNC to type != FUNC.
25858 * reload.h (struct target_reload): Changee to type of
25859 x_spill_indirect_levels from bool to unsigned char.
25861 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
25863 * rtl.h (always_void_p): New function.
25864 * gengenrtl.c (always_void_p): Likewise.
25865 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25866 with code foo are always VOIDmode.
25867 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25868 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25869 compare-elim.c, config/aarch64/aarch64.c,
25870 config/aarch64/aarch64.md, config/alpha/alpha.c,
25871 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25872 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25873 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25874 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25875 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25876 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25877 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25878 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25879 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25880 config/ia64/vect.md, config/iq2000/iq2000.c,
25881 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25882 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25883 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25884 config/mep/mep.c, config/microblaze/microblaze.c,
25885 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25886 config/mn10300/mn10300.c, config/msp430/msp430.c,
25887 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25888 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25889 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25890 config/rs6000/altivec.md, config/rs6000/rs6000.c,
25891 config/rs6000/rs6000.md, config/rs6000/vector.md,
25892 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25893 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25894 config/sh/sh.md, config/sh/sh_treg_combine.cc,
25895 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25896 config/spu/spu.md, config/stormy16/stormy16.c,
25897 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25898 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25899 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25900 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25901 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25902 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25903 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25904 var-tracking.c: Update calls accordingly.
25906 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25909 PR middle-end/54303
25910 * varasm.c (function_mergeable_rodata_prefix): New function.
25911 (mergeable_string_section): Use it.
25912 (mergeable_constant_section): Use it.
25914 2015-05-07 Jeff Law <law@redhat.com>
25917 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25918 simplifier to narrow arithmetic.
25919 * generic-match-head.c: (types_match, single_use): New functions.
25920 * gimple-match-head.c: (types_match, single_use): New functions.
25922 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25924 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25927 2015-05-07 Richard Biener <rguenther@suse.de>
25929 PR tree-optimization/66002
25930 * passes.def: Schedule another pass_merge_phi after ifcombine, right
25933 2015-05-07 Marek Polacek <polacek@redhat.com>
25934 Martin Uecker <uecker@eecs.berkeley.edu>
25936 * doc/invoke.texi: Document -fsanitize=bounds-strict.
25937 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25938 into SANITIZE_NONDEFAULT.
25939 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25941 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
25944 * config/alpha/alpha.c (alpha_override_options_after_change): New.
25945 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25946 (alpha_override_options): Move align_loops, align_jumps and
25947 align_functions handling into alpha_override_options_after_change.
25949 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
25950 Chris Jones <chrisj@nvidia.com>
25951 Joshua Conner <jconner@nvidia.com>
25953 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25954 linking of crtfastmath.o.
25955 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25957 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25959 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25960 (cstore<mode>4_unsigned_imm): New expander.
25961 (cstore<mode>4): Remove empty constraint strings. Use the new
25964 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
25967 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25970 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25972 * config/aarch64/geniterators.sh: Use standard BRE in sed.
25974 2015-05-06 Alan Modra <amodra@gmail.com>
25977 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25978 (UNSPEC_NOP): Define.
25979 (reload_vsx_from_gpr<mode>): Add missing DONE.
25980 (reload_gpr_from_vsx<mode>): Likewise.
25981 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25982 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25984 2015-05-06 Christian Bruel <christian.bruel@st.com>
25987 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25988 align_jumps, align_functions into aarch64_override_options_after_change.
25990 2015-05-06 Richard Biener <rguenther@suse.de>
25992 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25993 vect_transform_slp_perm_load to check if we support a permutation
25994 for basic-block vectorization.
25996 2015-05-06 Nick Clifton <nickc@redhat.com>
25998 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25999 used, even if it is not being used as a frame pointer.
26001 2015-05-05 Jason Merrill <jason@redhat.com>
26003 * dwarf2out.c (gen_member_die): Don't emit anything for an
26004 anonymous class constructor.
26006 2015-05-05 David Malcolm <dmalcolm@redhat.com>
26008 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26009 that it reflects the block structure.
26010 (afdo_propagate_edge): Likewise.
26011 (afdo_calculate_branch_prob): Likewise.
26012 (afdo_annotate_cfg): Likewise.
26013 * cfgcleanup.c (equal_different_set_p): Likewise.
26014 (try_crossjump_to_edge): Likewise.
26015 * cgraph.c (cgraph_node::verify_node): Likewise.
26016 * cgraphunit.c (expand_all_functions): Likewise.
26017 * config/i386/i386.c (ix86_expand_copysign): Likewise.
26018 (exact_dependency_1): Likewise.
26019 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26020 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26021 * gensupport.c (process_define_subst): Likewise.
26022 * lto-wrapper.c (merge_and_complain): Likewise.
26023 * tree-if-conv.c (if_convertible_bb_p): Likewise.
26024 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26025 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26026 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26027 * tree-vect-loop.c (vectorizable_reduction): Likewise.
26028 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26029 * tree-vect-stmts.c (vectorizable_shift): Likewise.
26030 * tree-vrp.c (vrp_finalize): Likewise.
26031 * tree.c (variably_modified_type_p): Likewise.
26033 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
26035 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26036 on darwin12 and later.
26037 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26038 file to pass -rdynamic on darwin12 and later.
26039 * config/darwin.opt (rdynamic): Add.
26041 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26043 * doc/extend.texi (C Extensions): Update menu for moved Variable
26044 Attributes and Type Attributes sections.
26046 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26049 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26050 if rep_8byte stringop strategy was specified for 32-bit target.
26052 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
26055 * config/i386/i386.md (vector convert to float spltiter): Check for
26056 xmm16+, when splitting scalar float conversion.
26057 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26059 2015-05-05 Nick Clifton <nickc@redhat.com>
26061 * config/msp430/msp430-opts.h (enum msp430_regions): New.
26062 * config/msp430/msp430.c (msp430_override_options): Complain if
26063 -mcode-region or -mdata-region is used on a non MSP430X.
26064 (msp430_section_attr): New function. Checks lower, upper and
26066 (msp430_attribute_table): Add lower, upper and either.
26067 (gen_prefix): New function. Generates a prefix for a section
26069 (msp430_select_section): New function - handles the choice of
26070 section for an object. Takes into account memory region
26071 attributes and options.
26072 (msp430_function_section): Use gen_prefix.
26073 (TARGET_SECTION_TYPE_FLAGS): Define.
26074 (msp430_section_type_flags): New function.
26075 (TARGET_ASM_UNIQUE_SECTION): Define.
26076 (msp430_unique_section): New function.
26077 (msp430_output_aligned_decl_common): New function.
26078 (msp430_do_not_relax_short_jumps): New function.
26079 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26081 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26082 * config/msp430/msp430-protos.h
26083 (msp430_do_not_relax_short_jumps): New prototype.
26084 (msp430_output_aligned_decl_common): New prototype.
26085 * config/msp430/msp430.md (length): New attribute.
26086 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26087 then use a long code sequence for short jumps.
26088 * config/msp430/msp430.opt (mcode-region): New.
26089 (mdata-region): New.
26090 * doc/invoke.texi: Document new options.
26091 * doc/extend.texi: Document new attributes.
26093 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26095 * config/aarch64-protos.h (struct cpu_branch_cost): New.
26096 (tune_params): Add field branch_costs.
26097 (aarch64_branch_cost): Declare.
26098 * config/aarch64.c (generic_branch_cost): New.
26099 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26100 (cortexa53_tunings): Likewise.
26101 (cortexa57_tunings): Likewise.
26102 (thunderx_tunings): Likewise.
26103 (xgene1_tunings): Likewise.
26104 (aarch64_branch_cost): Define.
26105 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
26107 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26109 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
26110 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
26111 * config/i386/i386.md: Ditto.
26112 * config/i386/winnt.c: Ditto.
26114 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26116 * doc/extend.texi (__atomic Builtins): Move implementation details
26117 to the end of the description, rewrite opening paragraphs, state
26118 difference with __sync builtins, state C11/C++11 assumptions,
26119 weaken itemized descriptions, add explanation of memory model
26120 behaviour, expand description of compare-exchange, simplify text.
26122 2015-05-05 Renlin Li <renlin.li@arm.com>
26124 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
26126 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
26128 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
26129 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26130 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
26131 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26132 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
26133 * configure: Regenerate.
26134 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
26135 * doc/install.texi (aarch64*-*-*): Document new
26136 --enable-fix-cortex-a53-843419 option.
26137 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
26138 and -mno-fix-cortex-a53-843419 options.
26140 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26143 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
26145 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
26147 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
26148 fix overactive TYPE_MIN_VALUE check and add FIXME for type
26149 compatibility problems.
26151 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
26153 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
26155 (cbranchsi4_reg): New.
26156 * config/microblaze/microblaze.c
26157 (microblaze_expand_conditional_branch_reg): New.
26158 * config/microblaze/microblaze-protos.h
26159 (microblaze_expand_conditional_branch_reg): New prototype.
26161 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
26163 * config/microblaze/microblaze.md (peephole2): New.
26165 2015-05-04 Jeff Law <law@redhat.com>
26168 2015-05-04 Jeff Law <law@redhat.com>
26170 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26171 simplifier to narrow arithmetic.
26172 * generic-match-head.c: (types_match, single_use): New functions.
26173 * gimple-match-head.c: (types_match, single_use): New functions.
26175 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
26178 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
26179 (split_branches): Likewise.
26181 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
26183 * common.opt (fdelete-null-pointer-checks): Init to -1.
26184 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
26185 override flag_delete_null_pointer_checks default.
26186 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
26187 behavior re address zero. Better document target-specific behavior.
26188 (-fisolate-errneous-paths-dereference): Mention relationship to
26189 -fdelete-null-pointer-checks.
26191 2015-05-04 Jakub Jelinek <jakub@redhat.com>
26193 PR tree-optimization/65984
26194 * ubsan.c: Include tree-cfg.h.
26195 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
26196 stmt_could_throw_p test, rename can_throw variable to ends_bb.
26198 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
26200 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
26201 to CONST_DOUBLE_P predicate.
26202 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
26203 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
26204 allow only operands that satisfy standard_sse_constant_p predicate.
26205 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
26206 to CONST_DOUBLE_P predicate.
26208 2015-05-04 Jeff Law <law@redhat.com>
26210 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26211 simplifier to narrow arithmetic.
26212 * generic-match-head.c: (types_match, single_use): New functions.
26213 * gimple-match-head.c: (types_match, single_use): New functions.
26215 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
26217 * config/arm/arm.c: Restore bootstrap.
26219 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
26221 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
26222 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
26223 as CONST_WIDE_INT, not CONST_DOUBLE.
26224 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
26225 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
26226 (ix86_find_base_term): Do not check for CONST_DOUBLE.
26227 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
26228 (ix86_build_signbit_mask): Rewrite using wide ints.
26229 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
26230 (ix86_rtx_costs): Handle CONST_WIDE_INT.
26231 (find_constant): Ditto.
26232 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
26233 using gen_int_mode.
26234 * config/i386/predicates.md (x86_64_immediate_operand)
26235 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26236 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
26237 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26238 (const0_operand): Also match const_wide_int.
26239 (constm1_operand): Ditto.
26240 (const1_operand): Ditto.
26242 2015-05-04 Richard Biener <rguenther@suse.de>
26244 PR tree-optimization/65965
26245 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
26246 store groups at gaps.
26248 2015-05-04 Richard Biener <rguenther@suse.de>
26250 PR tree-optimization/65935
26251 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
26252 then make sure to apply that swapping to the IL.
26254 2015-05-04 Jakub Jelinek <jakub@redhat.com>
26256 * Makefile.in (PATCHLEVEL_c): New variable.
26257 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
26258 expand the same way as if DEVPHASE_c was non-empty.
26260 2015-05-04 Kai Tietz <ktietz@redhat.com>
26263 * lto-wrapper.c (run_gcc): Open filename
26266 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
26268 * doc/extend.texi (Variable Attributes, Type Attributes): Move
26269 sections up in file, to immediately after the Function Attributes
26272 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
26274 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
26276 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26278 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
26279 (insert_partition_copy_on_edge): Adjust.
26280 (insert_rtx_to_part_on_edge): Likewise.
26281 (insert_part_to_rtx_on_edge): Likewise.
26283 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26285 * function.c (set_return_jump_label): Change type of argument to
26287 * function.h (set_return_jump_label): Adjust.
26289 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26291 * reload.h (struct reg_equivs_t): Change type of init to
26293 * ira.c (fix_reg_equiv_init): Adjust.
26294 * reload1.c (eliminate_regs_1): Likewise.
26295 (init_eliminable_invariants): Likewise.
26297 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26299 * cselib.c (fp_setter_insn): Take a rtx_insn *.
26300 * cselib.h (fp_setter_insn): Adjust.
26302 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26304 * recog.c (struct validate_replace_src_data): Change type of
26305 insn field to rtx_insn *.
26306 (validate_replace_src_group): Change type of argument to rtx_insn *.
26307 * recog.h (validate_replace_src_group): Adjust.
26309 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26311 * haifa-sched.c: Change the type of some variables to rtx_insn *.
26312 * sched-deps.c: Likewise.
26313 * sched-int.h: Likewise.
26314 * sched-rgn.c: Likewise.
26315 * sel-sched.c: Likewise.
26317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26320 * config/i386/i386.c: Change the type of some arguments to
26322 * config/arm/arm.c: Likewise.
26324 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26326 * lra-constraints.c: Change type of some arguments to rtx_insn *.
26328 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26330 * regcprop.c (kill_autoinc_value): Change type of argument to
26333 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26335 * genrecog.c (print_subroutine): Adjust.
26336 * recog.c (get_bool_attr_mask_uncached): Likewise.
26337 * recog.h (struct recog_data_d): Change the type of insn to
26340 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26342 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
26344 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26346 * df-problems.c (df_set_note): Change type of argument to
26349 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26351 * builtins.c (expand_builtin_trap): Change type of local
26352 variable to rtx_insn *.
26353 (add_sched_insns_for_speculation): Likewise.
26354 (ix86_emit_save_regs): Likewise.
26355 (get_scratch_register_on_entry): Likewise.
26356 (ix86_emit_restore_reg_using_pop): Likewise.
26357 (ix86_emit_leave): Likewise.
26358 (ix86_emit_restore_regs_using_mov): Likewise.
26359 (ix86_expand_epilogue): Likewise.
26361 (rl78_alloc_physical_registers_umul): Likewise.
26362 * cselib.c (discard_useless_locs): Likewise.
26363 (cselib_invalidate_regno): Likewise.
26364 (cselib_invalidate_mem): Likewise.
26365 * function.c (expand_function_start): Likewise.
26366 (emit_use_return_register_into_block): Likewise.
26367 * gcse.c: Likewise.
26368 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
26369 * ifcvt.c (noce_get_alt_condition): Likewise.
26370 * loop-doloop.c (doloop_condition_get): Likewise.
26371 * lra-constraints.c (inherit_in_ebb): Likewise.
26372 * modulo-sched.c (sms_schedule_by_order): Likewise.
26373 * recog.c (next_insn_tests_no_inequality): Likewise.
26374 * reorg.c (emit_delay_sequence): Likewise.
26375 (update_reg_dead_notes): Likewise.
26376 (fix_reg_dead_note): Likewise.
26377 (fill_slots_from_thread): Likewise.
26378 (delete_computation): Likewise.
26380 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
26382 * doc/extend.texi (Variable Attributes): Add menu and proper
26383 @nodes to subsections. Move Microsoft Windows attributes to
26384 their own subsection.
26385 (Type Attributes): Reorganize introduction to remove duplicate
26386 list of attributes. Add menu and proper @nodes to subsections.
26387 Alphabetize the main table of common attributes.
26389 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
26391 * match.pd: New simplification patterns.
26392 (x + (x & 1)) -> ((x + 1) & ~1)
26393 (x & ~(x & y)) -> ((x & ~y))
26394 (x | ~(x | y)) -> ((x | ~y))
26396 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26398 * target.def (attribute_table): Mention that struct attribute_spec
26399 is defined in tree-core.h rather than tree.h
26400 * doc/tm.texi: Regenerate.
26402 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
26404 * genrecog.c (test): Rename to rtx_test. Update rest of file
26407 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
26409 PR translation/65959
26410 * params.h (DEFPARAM): Rename msgid to nocmsgid.
26412 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
26414 * config/aarch64/aarch64-protos.h (tune_params):
26415 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
26416 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
26417 Return value depending on target.
26418 (generic_tunings): Initialize new target settings.
26419 (cortexa53_tunings): Likewise.
26420 (cortexa57_tunings): Likewise.
26421 (thunderx_tunings): Likewise.
26422 (xgene1_tunings): Likewise.
26424 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
26426 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
26427 Make Cortex-A53 shift costs more accurate.
26429 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26431 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
26434 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
26436 * config/aarch64/aarch64.c (aarch64_rtx_costs):
26437 Calculate cost of op0 and op1 in PLUS and MINUS cases.
26439 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26441 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
26442 Add cost of op0 in the compare-with-fpzero case.
26444 2015-04-30 David Malcolm <dmalcolm@redhat.com>
26446 * builtins.c (fold_builtin_1): Remove spurious second
26448 * cgraph.h (symtab_node::get_availability): Likewise.
26449 * opts.c (common_handle_option): Remove spurious second semicolon.
26450 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26451 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
26453 2015-04-30 Caroline Tice <cmtice@google.com>
26455 PR gcov-profile/65929
26456 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
26457 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
26458 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
26459 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
26460 * doc/tm.texi: Regenerate.
26461 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
26462 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
26463 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
26464 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
26466 2015-04-30 Marek Polacek <polacek@redhat.com>
26468 * varasm.c (handle_cache_entry): Fix logic.
26470 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26472 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
26473 (*extrsi5_insn_uxtw_alt): Likewise.
26474 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
26475 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
26478 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26480 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
26483 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26485 * config/aarch64/aarch64.md
26486 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
26487 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
26488 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
26489 appropriately. Handle alternative EON form.
26491 2015-04-30 Renlin Li <renlin.li@arm.com>
26493 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
26494 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
26496 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
26499 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
26500 -fstrict-aliasing boundaries.
26502 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26504 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
26505 and [SU]MNEGL patterns.
26507 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26509 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
26510 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
26511 combined arithmetic-shift ops. Properly handle all shift and extend
26512 operations that can occur in combination with PLUS/MINUS.
26513 Rename maybe_fma to compound_p.
26514 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
26515 arithmetic and shift operations.
26517 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26519 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
26520 rather than arith_shift cost when costing ADD/MINUS of an
26523 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
26526 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
26529 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
26531 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
26532 are for the same position.
26534 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
26536 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
26538 (vectorize_loops): Use it.
26540 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
26542 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
26543 for aggregate types.
26544 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
26545 type to be non_ODR.
26546 * tree.c (need_assembler_name_p): Compute mangled name for
26547 non-fundamental types and integer types.
26549 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
26551 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
26553 * expr.c (expand_expr_real_2): Likewise.
26555 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
26557 * tree.c (build_common_builtin_nodes): Do not build
26558 __builtin_alloca_with_align as equivalent of library alloca.
26560 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
26562 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
26563 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
26565 * tree.c: Include print-tree.h and ipa-utils.h
26566 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
26567 (free_lang_data_in_cgraph): Call verify_type.
26568 (verify_type_variant): New function.
26569 (verify_type): New function.
26570 * tree.h (verify_type): Declare.
26572 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
26574 * config/mips/mips-cpus.def: (mips4): Change default processor
26575 from PROCESSOR_R8000 to PROCESSOR_R10000.
26577 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
26579 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
26580 la/jalr instead of jal.
26582 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
26585 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
26586 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
26587 (setcc+movzbl peephole2): Check also clobbered reg.
26588 (setcc+andl peephole2): Ditto.
26590 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
26593 * config/nvptx/mkoffload.c (target_ilp32): New variable.
26594 (main): Set it depending on "-foffload-abi=[...]".
26595 (compile_native, main): Use it to pass "-m32" or "-m64" to the
26598 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
26601 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
26602 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
26603 Flip lane index back at assembly time for bigendian.
26605 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
26607 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
26608 * gimplify.c (gimplify_omp_workshare): Use it.
26610 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
26612 * Makefile.in (build/genrecog.o): Depend on inchash.h.
26613 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
26615 * genrecog.c: Rewrite most of the code except for the third page.
26617 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
26619 * inchash.h, inchash.c: Include bconfig.h for build objects.
26620 * Makefile.in (build/inchash.o): New rule.
26622 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
26625 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
26626 number in type attribute expression.
26628 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
26630 * loop-iv.c (canon_condition): Generalize to all types of integer
26633 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
26635 * gimple-walk.c: Prune duplicate or unneeded includes.
26636 (walk_gimple_asm): Only call parse_input_constraint or
26637 parse_output_constraint if their findings are used.
26638 Honour parse_input_constraint and parse_output_constraint
26641 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
26643 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
26645 2015-04-29 Tom de Vries <tom@codesourcery.com>
26647 PR tree-optimization/65893
26648 * passes.def (pass_all_optimizations): Move pass_stdarg to after
26651 2015-04-29 Richard Biener <rguenther@suse.de>
26653 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26654 compute GROUP_SIZE for basic-block SLP.
26655 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
26656 take into account gaps.
26657 (vect_get_mask_element): Properly reject references to previous
26659 (vect_transform_slp_perm_load): Likewise.
26661 2015-04-29 Christian Bruel <christian.bruel@st.com>
26664 * config/i386/i386.c (ix86_default_align): New function.
26665 (ix86_override_options_after_change): Call ix86_default_align.
26666 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
26667 (ix86_override_options_after_change): New function.
26669 2015-04-28 Jeff Law <law@redhat.com>
26671 * tree-ssa-dom.c (record_equality); Fix comment typos.
26673 2015-04-28 Tom de Vries <tom@codesourcery.com>
26675 PR tree-optimization/65887
26676 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
26678 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
26680 * doc/extend.texi (Declaring Attributes of Functions): Split into
26681 subsections by target. Alphabetize the table of common attributes.
26682 Rewrite some of the introductory text to reflect the new structure.
26683 Update some cross-references to point to the new subsections.
26684 (Attribute Syntax): Put paragraph about "__" naming here. Remove
26685 duplicate copies in the discussion of function, label, and type
26688 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
26691 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
26693 2015-04-28 Jason Merrill <jason@redhat.com>
26696 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
26697 (finalize_type_size): Respect TYPE_USER_ALIGN.
26698 (layout_type) [ARRAY_TYPE]: Likewise.
26700 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
26702 * config/arm/arm.md (*arm_movt): Fix type attribute.
26703 (*cmpsi_shiftsi): Likewise.
26704 (*cmpsi_shiftsi_swp): Likewise.
26705 (*movsicc_insn): Likewise.
26706 (*cond_move): Likewise.
26707 (*if_plus_move): Likewise.
26708 (*if_move_plus): Likewise.
26709 (*if_arith_move): Likewise.
26710 (*if_move_arith): Likewise.
26711 (*if_shift_move): Likewise.
26712 (*if_move_shift): Likewise.
26713 (*arm_movtas_ze): Likewise.
26714 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
26715 redundancy and type attribute.
26716 (*thumb2_movsi_insn): Fix type attribute.
26717 (*thumb2_addsi_short): Likewise.
26718 (thumb2_addsi3_compare0): Likewise.
26719 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
26720 attributes accordingly.
26722 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26725 * function.c (pad_to_arg_alignment): Add parentheses.
26727 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
26729 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
26730 libgcc/config/frv/elf-lib.h.
26732 2015-04-28 Tom de Vries <tom@codesourcery.com>
26734 * tree-call-cdce.c: Fix example in header comment.
26736 2015-04-28 Richard Biener <rguenther@suse.de>
26738 PR tree-optimization/62283
26739 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
26740 fails fatally and we are vectorizing a basic-block simply
26741 cause the child to be constructed piecewise.
26742 (vect_analyze_slp_cost_1): Adjust.
26743 (vect_detect_hybrid_slp_stmts): Likewise.
26744 (vect_bb_slp_scalar_cost): Likewise.
26745 (vect_get_constant_vectors): For piecewise constructed
26746 constants place them after the last def.
26747 (vect_get_slp_defs): Adjust.
26748 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
26749 externals for basic-block vectorization.
26751 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26754 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
26756 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
26757 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
26758 (AARCH64_TUNE_FMA_STEERING): Likewise.
26759 * config/aarch64/aarch64-cores.def: Set
26760 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
26761 FMUL/FMADD instructions.
26762 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
26763 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
26764 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
26765 * config/aarch64/cortex-a57-fma-steering.h: New file.
26766 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26768 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
26770 * gensupport.c (std_preds): Add missing codes to address_operand entry.
26772 2015-04-28 Richard Biener <rguenther@suse.de>
26774 PR tree-optimization/65851
26775 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
26776 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
26777 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
26778 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
26779 (ccp_visit_phi_node): Adjust.
26780 (evaluate_stmt): For simplifications to SSA names return its
26781 lattice value if that isn't VARYING. Return immediately when
26782 simplified to a constant.
26783 (visit_assignment): Adjust.
26784 (ccp_visit_stmt): Likewise.
26786 2015-04-28 Tom de Vries <tom@codesourcery.com>
26788 PR tree-optimization/65818
26789 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
26792 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26794 * calls.c (save_fixed_argument_area): Don't check
26795 ARGS_GROW_DOWNWARD with the preprocessor.
26796 (restore_fixed_argument_area): Likewise.
26797 (mem_overlaps_already_clobbered_arg_p): Likewise.
26798 (check_sibcall_argument_overlap): Likewise.
26799 (expand_call): Likewise.
26800 (emit_library_call_value_1): Likewise.
26801 (store_one_arg): Likewise.
26802 * function.c (assign_parms): Likewise.
26803 (locate_and_pad_parm): Likewise.
26804 (pad_to_arg_alignment): Likewise.
26805 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26807 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26809 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
26810 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
26811 * calls.c (save_fixed_argument_area): Don't chekc if
26812 ARGS_GROW_DOWNWARD is defined.
26813 (restore_fixed_argument_area): Likewise.
26814 (mem_overlaps_already_clobbered_arg_p): Likewise.
26815 (check_sibcall_argument_overlap): Likewise.
26816 (expand_call): Likewise.
26817 (emit_library_call_value_1): Likewise.
26818 (store_one_arg): Likewise.
26819 * function.c (assign_parms): Likewise.
26820 (locate_and_pad_parm): Likewise.
26821 (pad_to_arg_alignment): Likewise.
26822 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26824 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26826 * defaults.h (gen_epilogue): New function.
26827 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
26829 * cfgrtl.c (cfg_layout_finalize): Likewise.
26830 * df-scan.c: Likewise.
26831 * function.c (thread_prologue_and_epilogue_insns): Likewise.
26832 (reposition_prologue_and_epilogue_notes): Likewise.
26833 * reorg.c (find_end_label): Likewise.
26834 * toplev.c: Likewise.
26836 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26838 * bb-reorder.c (HAVE_return): Don't check if its undefined.
26839 * defaults.h (gen_simple_return): New function.
26840 (gen_simple_return): Likewise.
26841 (HAVE_return): Add default definition to false.
26842 (HAVE_simple_return): Likewise.
26843 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
26844 HAVE_return and HAVE_simple_return are defined.
26845 * function.c (gen_return_pattern): Likewise.
26846 (convert_jumps_to_returns): Likewise.
26847 (thread_prologue_and_epilogue_insns): Likewise.
26848 * reorg.c (find_end_label): Likewise.
26849 (dbr_schedule): Likewise.
26850 * shrink-wrap.c: Likewise.
26851 * shrink-wrap.h: Likewise.
26853 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26855 * defaults.h (EPILOGUE_USES): Add default definition of false.
26856 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26857 * resource.c (init_resource_info): Likewise.
26859 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26861 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26863 * dwarf2out.c (field_byte_offset): REmove check if
26864 PCC_BITFIELD_TYPE_MATTERS is defined.
26865 * stor-layout.c (layout_decl): Likewise.
26866 (update_alignment_for_field): Likewise.
26867 (place_field): Likewise.
26869 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26871 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26873 * regrename.c (check_new_reg_p): Remove check if
26874 HARD_REGNO_RENAME_OK is defined.
26875 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26877 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26879 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26880 * cse.c (fold_rtx): Likewise.
26881 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26882 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26883 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26884 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26885 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26886 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26887 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26888 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26889 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26890 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26892 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26893 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26894 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26895 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26896 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26897 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26898 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26899 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26900 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26901 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26902 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26903 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26904 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26905 * doc/tm.texi: Regenerate.
26906 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26907 either true or false.
26909 2015-04-27 Jeff Law <law@redhat.com>
26911 PR tree-optimization/65217
26912 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26913 of them has a single use, make sure it is the LHS of the implied
26916 2015-04-28 Alan Modra <amodra@gmail.com>
26919 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26920 (offsettable_ok_by_alignment): Use minimum of decl and toc
26921 pointer alignment. Replace dead code with assertion.
26922 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
26923 case if size exceeds toc pointer alignment.
26924 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26925 (rs6000_emit_move): Likewise.
26926 * configure.ac: Add linker toc pointer alignment check.
26927 * configure: Regenerate.
26928 * config.in: Regenerate.
26930 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
26932 * config.gcc: Add h8300-*-linux.
26933 * config/h8300/linux.h: New.
26934 * config/h8300/t-linux: New.
26935 * config/h8300/h8300.c (h8300_option_override): Normal mode
26936 is not supported for h8300-*-linux.
26937 (h8300_file_start): Target priority change.
26938 (get_shift_alg): Likewise.
26939 (h8300_shift_need_scratch_p): Likewise.
26940 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26941 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26943 2015-04-27 Caroline Tice <cmtice@google.com>
26945 * final.c (final_scan_insn): Output cold_function_name as function
26947 * varasm.c (cold_function_name): Make global.
26948 (assemble_start_function): Re-set cold_function_name.
26949 (assemble_end_function): Output cold partition size.
26950 * varasm.h (cold_function_name): Declare global.
26952 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
26954 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26955 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26957 (*movxi_internal_avx512f): Ditto.
26958 (define_split): Check for xmm16+, when splitting scalar float_extend.
26959 (*extendsfdf2_mixed): Use "v" constraint.
26960 (define_split): Check for xmm16+, when splitting scalar float_truncate.
26961 (*truncdfsf_fast_sse): Use "v" constraint.
26962 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26963 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26964 (define_peephole2): Check for xmm16+, when converting scalar
26966 (define_peephole2): Check for xmm16+, when converting scalar
26968 (*fop_<mode>_comm_mixed): Use "v" constraint.
26969 (*fop_<mode>_comm_sse): Ditto.
26970 (*fop_<mode>_1_mixed): Ditto.
26971 (*sqrt<mode>2_sse): Ditto.
26972 (*ieee_s<ieee_maxmin><mode>3): Ditto.
26974 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26976 * combine.c (simplify_if_then_else): Use std::swap instead
26977 of manually swapping.
26978 (known_cond): Likewise.
26979 (simplify_comparison): Likewise.
26981 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
26984 * config/rs6000/htm.md: Remove all define_expands.
26985 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26986 UNSPECV_HTM_TABORTWCI): Remove.
26987 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26988 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26989 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26990 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26991 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26992 tabortwci_internal): Remove define_insns.
26993 (tabort<wd>c, tabort<wd>ci): New define_insns.
26994 (tabort): Use gpc_reg_operand.
26995 (tcheck): Remove operand.
26996 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26997 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26999 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27000 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
27001 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27002 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27003 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27004 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27005 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27006 (tcheck): Remove builtin argument.
27007 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27009 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
27010 tabortdc and tabortdci builtins when not in 64-bit mode.
27011 Modify code to handle the loss of the HTM define_expands.
27012 Emit code to copy the CR register to TARGET.
27013 (htm_init_builtins): Modify code to handle the loss of the HTM
27015 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27016 (RS6000_BTC_64BIT): Likewise.
27017 (RS6000_BTC_CR): New macro.
27018 * doc/extend.texi: Update documentation for htm builtins.
27020 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27022 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27023 of manually swapping.
27024 (simplify_associative_operation): Likewise.
27025 (simplify_binary_operation): Likewise.
27026 (simplify_plus_minus): Likewise.
27027 (simplify_relational_operation): Likewise.
27028 (simplify_ternary_operation): Likewise.
27030 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27032 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27033 (xs_hi_nonmemory_operand): Remove error.
27034 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27035 general_operand rather than xs_hi_general_operand.
27037 2015-04-27 Richard Biener <rguenther@suse.de>
27039 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27040 (record_equivalences_from_stmt): Valueize rhs.
27041 (record_equality): Canonicalize x and y order via
27042 tree_swap_operands_p. Do not swap operands for same loop depth.
27044 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
27048 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27049 Add hint how to use own spec file.
27051 2015-04-27 Jakub Jelinek <jakub@redhat.com>
27053 PR tree-optimization/65875
27054 * tree-vrp.c (update_value_range): If in is_new case setting
27055 old_vr to VR_VARYING, also set new_vr to it. Remove
27056 old_vr->type == VR_VARYING test.
27057 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27058 SSA_PROP_INTERESTING if update_value_range returned true,
27059 but new range is VR_VARYING.
27061 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
27063 * combine.c (sign_extend_short_imm): New.
27064 (set_nonzero_bits_and_sign_copies): Use above new function for sign
27065 extension of src short immediate.
27066 (reg_nonzero_bits_for_combine): Likewise for tem.
27068 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27070 * stor-layout.c (self_referential_component_ref_p): New predicate.
27071 (copy_self_referential_tree_r): Use it.
27072 (self_referential_size): Punt for simple operations directly involving
27073 self-referential component references.
27074 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27076 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27078 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27080 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27082 * vec.h (vec): Make splice arguments const. Update definitions
27085 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
27087 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27090 2015-04-26 Tom de Vries <tom@codesourcery.com>
27092 PR tree-optimization/65826
27093 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27095 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
27097 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27098 (*madd3<mode>): Ditto.
27099 (*msub4<mode>): Ditto.
27100 (*msub3<mode>): Ditto.
27101 (*nmadd4<mode>): Ditto.
27102 (*nmadd3<mode>): Ditto.
27103 (*nmadd4<mode>_fastmath): Ditto.
27104 (*nmadd3<mode>_fastmath): Ditto.
27105 (*nmsub4<mode>): Ditto.
27106 (*nmsub3<mode>): Ditto.
27107 (*nmsub4<mode>_fastmath): Ditto.
27108 (*nmsub3<mode>_fastmath): Ditto.
27110 2015-04-24 Jason Merrill <jason@redhat.com>
27113 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
27114 down when building TYPE_CANONICAL.
27115 (build_pointer_type_for_mode): Likewise.
27117 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
27119 * genrecog.c (validate_pattern): Check matching constraint refers
27120 to a lower numbered operand.
27122 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27125 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
27126 save to independent variables use the Save attribute. This will
27127 allow these options to be modified with the #pragma/attribute
27129 (-mallow-movmisalign): Likewise.
27130 (-mallow-df-permute): Likewise.
27131 (-msched-groups): Likewise.
27132 (-malways-hint): Likewise.
27133 (-malign-branch-targets): Likewise.
27134 (-mvectorize-builtins): Likewise.
27135 (-msave-toc-indirect): Likewise.
27137 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
27138 can be set via the #pragma/attribute target support.
27139 (rs6000_opt_vars): Likewise.
27140 (rs6000_inner_target_options): If VSX was set, also set
27141 -mno-avoid-indexed-addresses.
27143 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27145 * config/arm/iterators.md (shiftable_ops): Rename to...
27146 (SHIFTABLE_OPS): ... This. Update use in comments.
27147 (ior_xor): Rename to...
27148 (IOR_XOR): ... This.
27149 (vqh_ops): Rename to...
27150 (VQH_OPS): ... This.
27151 (vqhs_ops): Rename to...
27152 (VQHS_OPS): ... This.
27153 (rshifts): Rename to...
27154 (RSHIFTS): ... This.
27155 (returns): Rename to...
27156 (RETURNS): ... This.
27157 * config/arm/arm.md: Update uses of the above.
27158 * config/arm/neon.md: Likewise.
27160 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27162 * config.host (case ${host}): Add aarch64*-*-linux case.
27163 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
27164 fields to all the cores.
27165 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
27166 Add MCPU_MTUNE_NATIVE_SPECS.
27167 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
27168 field to all extensions.
27169 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
27170 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
27171 Adjust definition of AARCH64_OPT_EXTENSION.
27172 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
27173 (MCPU_MTUNE_NATIVE_SPECS): Define.
27174 * config/aarch64/driver-aarch64.c: New file.
27175 * config/aarch64/x-arch64: New file.
27176 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
27179 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27180 Wei Mi <wmi@google.com>
27182 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
27183 * config/i386/i386.c (extract_base_offset_in_addr): New function.
27184 (ix86_operands_ok_for_move_multiple): Ditto.
27185 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
27186 (movlpd/movhpd to movupd peephole2): Ditto.
27188 2015-04-24 Marek Polacek <polacek@redhat.com>
27191 * input.h (from_macro_expansion_at): Define.
27194 * doc/invoke.texi: Update description of -Wlogical-op.
27196 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
27198 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
27199 ternary operator in fprintf and harmonize spacing.
27201 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27203 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
27204 Mark operand1 commutative.
27206 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27208 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
27209 input operands in memory.
27210 (*vec_concatv2si_sse4_1): Ditto.
27211 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
27212 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
27214 (vec_extract_hi_v32hi): Ditto.
27215 (vec_extract_hi_v64hi): Ditto.
27216 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
27218 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
27219 Steven Bosscher <steven@gcc.gnu.org>
27221 PR rtl-optimization/34503
27222 * cprop.c (cprop_reg_p): New.
27223 (hash_scan_set): Use above function to check if register can be
27225 (find_avail_set): Return up to two sets, one whose source is a
27226 register and one whose source is a constant. Sets are returned in an
27227 array passed as parameter rather than as a return value.
27228 (cprop_insn): Use a do while loop rather than a goto. Try each of the
27229 sets returned by find_avail_set, starting with the one whose source is
27230 a constant. Use cprop_reg_p to check if register can be propagated.
27231 (do_local_cprop): Use cprop_reg_p to check if register can be
27233 (implicit_set_cond_p): Likewise.
27235 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27237 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
27238 (sem_function::equals): IGNORED_NODES parameter is now unused;
27239 update call of equals_private.
27240 (sem_function::equals_private): Do not call equals_wpa; skip
27241 gimple body matching if there is no body.
27242 (sem_function::init): Add logic to hash tthunk info.
27243 (sem_function::parse): Also parse thunks.
27244 * ipa-icf.h (equals_private): Update declaration.
27246 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27248 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
27249 asterisk from name so this can be generated directly.
27250 (*altivec_stvx_<mode>_internal): Likewise.
27251 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
27252 that this is never called during or after reload/lra.
27253 (rs6000_frame_related): Remove split_reg
27254 argument and logic that references it.
27255 (emit_frame_save): Remove last parameter from call to
27256 rs6000_frame_related.
27257 (rs6000_emit_prologue): Remove last parameter from eight calls to
27258 rs6000_frame_related. Force generation of stvx instruction for
27259 Altivec register saves. Remove split_reg handling, which is no
27261 (rs6000_emit_epilogue): Force generation of lvx instruction for
27262 Altivec register restores.
27264 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27266 * config/rs6000/rs6000.opt (mcrypto): Change option description to
27267 match category changes in ISA 2.07B.
27269 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27271 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
27273 (cmp_op, cmp_type): New code attributes.
27274 (NEON_VCMP, NEON_VACMP): New int iterators.
27275 (cmp_op_unsp): New int attribute.
27276 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
27277 (neon_vceq<mode>): Delete.
27278 (neon_vc<cmp_op><mode>_insn): New pattern.
27279 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
27280 (neon_vcgeu<mode>): Delete.
27281 (neon_vcle<mode>): Likewise.
27282 (neon_vclt<mode>: Likewise.
27283 (neon_vcage<mode>): Likewise.
27284 (neon_vcagt<mode>): Likewise.
27285 (neon_vca<cmp_op><mode>): New define_expand.
27286 (neon_vca<cmp_op><mode>_insn): New pattern.
27287 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
27289 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27291 * tree.h (attribute_value_equal): Declare.
27292 * tree.c (attribute_value_equal): Export.
27294 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27296 * ipa-icf.c (sem_item::compare_attributes): New function.
27297 (sem_item::compare_referenced_symbol_properties): Compare variable
27299 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
27300 (sem_function::param_used_p): New function.
27301 (sem_function::equals_wpa): Fix attribute comparsion; match
27302 parameter type codes; do not compare paremter flags when
27303 they are not used; compare edge flags; compare indirect calls.
27304 (sem_item::update_hash_by_addr_refs): Hash reference type.
27305 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
27306 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
27307 reference use type.
27308 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
27309 * ipa-icf.h (compare_attributes, param_used_p): Declare.
27311 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27313 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
27315 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
27316 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
27317 (sem_item::compare_referenced_symbol_properties): New.
27318 (sem_item::hash_referenced_symbol_properties): New.
27319 (sem_item::compare_cgraph_references): Rename to ...
27320 (sem_item::compare_symbol_references): ... this one; use
27321 compare_referenced_symbol_properties.
27322 (sem_function::equals_wpa): Do not compare
27323 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
27324 DECL_IS_OPERATOR_NEW; compare pointer sizes.
27325 (sem_item::update_hash_by_addr_refs): Call
27326 hash_referenced_symbol_properties.
27327 (sem_item::update_hash_by_local_refs): Cleanup.
27328 (sem_function::merge): Do not mix up symbol properties.
27329 (sem_variable::equals_wpa): Use compare_symbol_references.
27330 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
27331 (sem_item::hash_referenced_symbol_properties): New.
27332 (sem_item::compare_symbol_references): New.
27333 (sem_item::compare_cgraph_references): Remove.
27335 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
27338 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
27339 Emit size of local.
27341 2015-04-23 Nick Clifton <nickc@redhat.com>
27343 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
27344 ATTRIBUTE_UNUSED to x parameter.
27345 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
27347 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27349 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
27350 TARGET_CRYPTO to TARGET_P8_VECTOR>
27351 (crypto_vpermxor_<mode>): Likewise.
27352 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
27353 (BU_CRYPTO_3A): Likewise.
27354 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
27355 (BU_CRYPTO_OVERLOAD_3A): New #define.
27356 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
27357 (VPMSUMH): Likewise.
27358 (VPMSUMW): Likewise.
27359 (VPMSUMD): Likewise.
27360 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
27361 (VPERMXOR_V4SI): Likewise.
27362 (VPERMXOR_V8HI): Likewise.
27363 (VPERMXOR_V16QI): Likewise.
27364 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
27365 BU_CRYPTO_OVERLOAD_2A.
27366 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
27367 BU_CRYPTO_OVERLOAD_3A.
27368 * config/rs6000/rs6000.opt (mcrypto): Change description of
27371 2015-04-23 Richard Biener <rguenther@suse.de>
27373 * passes.def: Remove copy propagation passes run directly after CCP.
27374 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
27376 (ccp_visit_phi_node): Rework to handle first executable edge
27379 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
27381 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27382 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
27383 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
27384 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
27385 (thumb_legimitimize_reload_address): Remove.
27386 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
27388 (thumb_legimitimize_reload_address): Remove.
27390 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27392 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
27394 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27396 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
27398 (store_multiple): Likewise.
27400 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27402 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
27403 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
27404 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
27405 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
27406 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
27407 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
27408 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
27409 Specify issue_rate value.
27410 (arm_issue_rate): Look up issue rate from tuning structs. Remove
27411 large switch statement.
27412 (arm_marvell_pj4_tune): New struct.
27413 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
27416 2015-04-23 Richard Biener <rguenther@suse.de>
27418 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
27419 (vect_find_last_store_in_slp_instance): Rename to ...
27420 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
27421 (vect_analyze_slp_cost_1): Use vector_load for constant defs
27422 and vec_construct for external defs when estimating prologue cost.
27423 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
27424 Compute costs here only when vectorizing loops.
27425 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
27426 have been determined.
27427 (vect_schedule_slp_instance): Simplify vectorized code placement
27428 and prepare for in-BB external defs.
27429 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
27430 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
27431 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
27433 (vect_model_load_cost): Likewise.
27434 (vectorizable_store): Instead add it here.
27435 (vectorizable_load): Likewise.
27436 (vect_is_simple_use): Dump def type textually.
27438 2015-04-23 Richard Biener <rguenther@suse.de>
27440 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
27441 * cfgloop.c (verify_loop_structure): Verify the root loop node.
27442 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
27443 instead of get_eh_region_from_lp_number.
27444 * loop-init.c (fix_loop_structure): If we removed a loop, reset
27447 2015-04-23 Anton Blanchard <anton@samba.org>
27449 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
27450 need for -mprofile-kernel to save LR to stack.
27452 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27454 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
27456 (insn_is_swappable_p): Return 1 for a convert from double to
27457 single precision when all of its uses are splats of BE element
27460 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
27462 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
27464 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27467 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
27468 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
27469 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
27471 (rs6000_builtin_mask_for_load): Return 0 for targets with
27472 efficient unaligned VSX accesses so that the vectorizer will use
27473 direct unaligned loads.
27474 (rs6000_builtin_support_vector_misalignment): Always return true
27475 for targets with efficient unaligned VSX accesses.
27476 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
27477 stores on targets with efficient unaligned VSX accesses is almost
27478 always the same as the cost of an aligned load or store, so model
27480 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
27481 unaligned vectors if we have efficient unaligned VSX accesses.
27482 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
27483 undocumented option.
27485 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27488 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
27490 * config.gcc (LIBC_MUSL): New tm_defines macro.
27491 * config/linux.h (OPTION_MUSL): Define.
27492 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27493 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27494 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27496 * config/linux.opt (mmusl): New option.
27497 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27498 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27500 * configure: Regenerate.
27502 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
27504 * config.gcc (LIBC_MUSL): New tm_defines macro.
27505 * config/linux.h (OPTION_MUSL): Define.
27506 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27507 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27508 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27510 * config/linux.opt (mmusl): New option.
27511 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27512 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27514 * configure: Regenerate.
27516 2015-04-22 Yury Gribov <y.gribov@samsung.com>
27518 * doc/invoke.texi (-fsanitize-sections): Update description.
27519 * asan.c (set_sanitized_sections): Parse incoming arg.
27520 (section_sanitized_p): Support wildcards.
27522 2015-04-22 Tom de Vries <tom@codesourcery.com>
27524 PR tree-optimization/65823
27525 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
27526 equality between ap_copy and ap.
27528 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27531 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
27533 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27536 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
27538 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27541 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
27542 remove already contained t-files.
27544 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27546 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
27547 Remove unneeded forward declarations.
27548 (suitable_for_tail_call_opt_p): Commentary typo fix.
27550 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27552 * varasm.c (emit_bss): Remove redundant guard.
27554 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27556 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
27558 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27560 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
27562 2015-04-22 Hale Wang <hale.wang@arm.com>
27563 Terry Guo <terry.guo@arm.com>
27565 PR rtl-optimization/64818
27566 * combine.c (can_combine_p): Don't combine user-specified
27567 register if it is in an asm input.
27569 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
27572 * passes.def (early_optimizations): Add pass_dse.
27574 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27576 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
27577 * reorg.c (redundant_insn): Remove ifdef
27578 INSN_REFERENCES_ARE_DELAYED.
27579 * resource.c (mark_referenced_resources): Likewise.
27581 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27583 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
27584 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
27585 * resource.c (mark_set_resources): Likewise.
27587 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27589 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
27590 * cfgcleanup.c (flow_find_cross_jump): Likewise.
27591 (flow_find_head_matching_sequence): Likewise.
27592 (try_head_merge_bb): Likewise.
27593 * combine.c (can_combine_p): Likewise.
27594 (try_combine): Likewise.
27595 (distribute_notes): Likewise.
27596 * df-problems.c (can_move_insns_across): Likewise.
27597 * final.c (final): Likewise.
27598 * gcse.c (insert_insn_end_basic_block): Likewise.
27599 * ira.c (find_moveable_pseudos): Likewise.
27600 * reorg.c (try_merge_delay_insns): Likewise.
27601 (fill_simple_delay_slots): Likewise.
27602 (fill_slots_from_thread): Likewise.
27603 * sched-deps.c (sched_analyze_2): Likewise.
27605 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27607 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
27608 PIC_OFFSET_TABLE_REGNUM.
27610 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27612 * alias.c (init_alias_target): Remove ifdef
27613 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
27614 * df-scan.c (df_insn_refs_collect): Likewise.
27615 (df_get_regular_block_artificial_uses): Likewise.
27616 (df_get_eh_block_artificial_uses): Likewise.
27617 (df_get_entry_block_def_set): Likewise.
27618 (df_get_exit_block_use_set): Likewise.
27619 * emit-rtl.c (gen_rtx_REG): Likewise.
27620 * ira.c (ira_setup_eliminable_regset): Likewise.
27621 * reginfo.c (init_reg_sets_1): Likewise.
27622 * regrename.c (rename_chains): Likewise.
27623 * reload1.c (reload): Likewise.
27624 (eliminate_regs_in_insn): Likewise.
27625 * resource.c (mark_referenced_resources): Likewise.
27626 (init_resource_info): Likewise.
27628 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27630 * defaults.h (MASK_RETURN_ADDR): New definition.
27631 * except.c (expand_builtin_extract_return_addr): Remove ifdef
27634 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27636 * defaults.h (RETURN_ADDR_OFFSET): New definition.
27637 * except.c (expand_builtin_extract_return_addr): Remove ifdef
27638 RETURN_ADDR_OFFSET.
27639 (expand_builtin_frob_return_addr): Likewise.
27641 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27643 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
27644 (try_redirect_by_replacing_jump): Likewise.
27645 (rtl_tidy_fallthru_edge): Likewise.
27646 * combine.c (insn_a_feeds_b): Likewise.
27647 (find_split_point): Likewise.
27648 (simplify_set): Likewise.
27649 * cprop.c (cprop_jump): Likewise.
27650 * cse.c (cse_extended_basic_block): Likewise.
27651 * df-problems.c (can_move_insns_across): Likewise.
27652 * function.c (emit_use_return_register_into_block): Likewise.
27653 * haifa-sched.c (sched_init): Likewise.
27654 * ira.c (find_moveable_pseudos): Likewise.
27655 * loop-invariant.c (find_invariant_insn): Likewise.
27656 * lra-constraints.c (curr_insn_transform): Likewise.
27657 * postreload.c (reload_combine_recognize_const_pattern):
27659 * reload.c (find_reloads): Likewise.
27660 * reorg.c (delete_scheduled_jump): Likewise.
27661 (steal_delay_list_from_target): Likewise.
27662 (steal_delay_list_from_fallthrough): Likewise.
27663 (redundant_insn): Likewise.
27664 (fill_simple_delay_slots): Likewise.
27665 (fill_slots_from_thread): Likewise.
27666 (delete_computation): Likewise.
27667 * sched-rgn.c (add_branch_dependences): Likewise.
27669 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27671 * genconfig.c (main): Always define HAVE_cc0.
27672 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
27674 * cfgcleanup.c (flow_find_cross_jump): Likewise.
27675 (flow_find_head_matching_sequence): Likewise.
27676 (try_head_merge_bb): Likewise.
27677 * cfgrtl.c (rtl_merge_blocks): Likewise.
27678 (try_redirect_by_replacing_jump): Likewise.
27679 (rtl_tidy_fallthru_edge): Likewise.
27680 * combine.c (do_SUBST_MODE): Likewise.
27681 (insn_a_feeds_b): Likewise.
27682 (combine_instructions): Likewise.
27683 (can_combine_p): Likewise.
27684 (try_combine): Likewise.
27685 (find_split_point): Likewise.
27687 (simplify_set): Likewise.
27688 (distribute_notes): Likewise.
27689 * cprop.c (cprop_jump): Likewise.
27690 * cse.c (cse_extended_basic_block): Likewise.
27691 * df-problems.c (can_move_insns_across): Likewise.
27692 * final.c (final): Likewise.
27693 (final_scan_insn): Likewise.
27694 * function.c (emit_use_return_register_into_block): Likewise.
27695 * gcse.c (insert_insn_end_basic_block): Likewise.
27696 * haifa-sched.c (sched_init): Likewise.
27697 * ira.c (find_moveable_pseudos): Likewise.
27698 * loop-invariant.c (find_invariant_insn): Likewise.
27699 * lra-constraints.c (curr_insn_transform): Likewise.
27700 * optabs.c (prepare_cmp_insn): Likewise.
27701 * postreload.c (reload_combine_recognize_const_pattern):
27703 * reload.c (find_reloads): Likewise.
27704 (find_reloads_address_1): Likewise.
27705 * reorg.c (delete_scheduled_jump): Likewise.
27706 (steal_delay_list_from_target): Likewise.
27707 (steal_delay_list_from_fallthrough): Likewise.
27708 (try_merge_delay_insns): Likewise.
27709 (redundant_insn): Likewise.
27710 (fill_simple_delay_slots): Likewise.
27711 (fill_slots_from_thread): Likewise.
27712 (delete_computation): Likewise.
27713 (relax_delay_slots): Likewise.
27714 * sched-deps.c (sched_analyze_2): Likewise.
27715 * sched-rgn.c (add_branch_dependences): Likewise.
27717 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27719 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
27720 that is trivially ded on non cc0 targets.
27721 (simplify_set): Likewise.
27722 (mark_used_regs_combine): Likewise.
27723 * cse.c (new_basic_block): Likewise.
27724 (fold_rtx): Likewise.
27725 (cse_insn): Likewise.
27726 (cse_extended_basic_block): Likewise.
27727 (set_live_p): Likewise.
27728 * rtlanal.c (canonicalize_condition): Likewise.
27729 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
27731 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27733 * conditions.h: Define macros even if HAVE_cc0 is undefined.
27734 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
27735 * final.c: Likewise.
27736 * jump.c: Likewise.
27737 * recog.c: Likewise.
27738 * recog.h: Declare functions even when HAVE_cc0 is undefined.
27739 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
27741 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27743 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
27744 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
27745 * builtins.c (expand_builtin): Remove check if
27746 EH_RETURN_DATA_REGNO is defined.
27747 * df-scan.c (df_bb_refs_collect): Likewise.
27748 (df_get_exit_block_use_set): Likewise.
27749 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
27750 * ira-lives.c (process_bb_node_lives): Likewise.
27751 * lra-lives.c (process_bb_lives): Likewise.
27753 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27755 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
27756 FIRST_PSEUDO_REG): New.
27757 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
27758 (ARG_POINTER_REGNUM): Define to ARGP_REG.
27759 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
27760 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
27761 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
27762 (FIRST_INT_REG): New.
27763 (LAST_INT_REG): New.
27764 (FIRST_*_REG): Define using *_REG.
27765 (LAST_*_REG): Ditto.
27766 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
27767 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
27768 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
27770 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27772 * expmed.c: (synth_mult): Only assume overlapping
27773 shift with previous steps in alg_sub_t_m2 case.
27775 2015-04-21 Richard Biener <rguenther@suse.de>
27777 PR tree-optimization/65650
27778 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
27779 transitions involving copies.
27780 (set_lattice_value): Adjust for copy lattice state.
27781 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
27782 if that doesn't dominate the merge point.
27783 (bit_value_unop): Adjust what we treat as varying mask.
27784 (bit_value_binop): Likewise.
27785 (bit_value_assume_aligned): Likewise.
27786 (evaluate_stmt): When we simplified to a SSA name record a copy
27787 instead of dropping to varying.
27788 (visit_assignment): Simplify.
27790 * gimple-match.h (gimple_simplify): Add another callback.
27791 * gimple-fold.c (fold_stmt_1): Adjust caller.
27792 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
27793 for the 2nd callback.
27794 * gimple-match-head.c (gimple_simplify): Add a callback that is
27795 used to valueize the stmt operands and use it that way.
27797 2015-04-21 Richard Biener <rguenther@suse.de>
27799 PR tree-optimization/65788
27800 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
27802 2015-04-21 Richard Biener <rguenther@suse.de>
27804 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
27805 vec_construct cost by vec_stmt_cost.
27807 2015-04-21 Richard Biener <rguenther@suse.de>
27809 * cfghooks.h (create_basic_block): Replace with two overloads
27810 for RTL and GIMPLE.
27811 (split_block): Likewise.
27812 * cfghooks.c (split_block): Rename to ...
27813 (split_block_1): ... this.
27814 (split_block): Add two type-safe overloads for RTL and GIMPLE.
27815 (split_block_after_labels): Call split_block_1.
27816 (create_basic_block): Rename to ...
27817 (create_basic_block_1): ... this.
27818 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
27819 (create_empty_bb): Call create_basic_block_1.
27820 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
27821 split_block_after_labels.
27822 * omp-low.c (expand_parallel_call): Likewise.
27823 (expand_omp_target): Likewise.
27824 (simd_clone_adjust): Likewise.
27825 * tree-chkp.c (chkp_get_entry_block): Likewise.
27826 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
27827 create_basic_block overload.
27828 (cgraph_node::expand_thunk): Likewise.
27829 * tree-cfg.c (make_blocks): Likewise.
27830 (handle_abnormal_edges): Likewise.
27831 * tree-inline.c (copy_bb): Likewise.
27833 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27835 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
27837 (*xor_one_cmplsidi3_ze): Likewise.
27839 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
27841 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
27842 use df_remove_problem rather than manually removing problems, leaving
27843 holes in df->problems_in_order[].
27845 2015-04-21 Tom de Vries <tom@codesourcery.com>
27847 PR tree-optimization/65802
27848 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27850 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27852 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27854 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27855 at '.'. Assert that there's enough space for everything.
27857 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27859 PR tree-optimization/64950
27861 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
27864 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27867 2015-04-20 Shiva Chen <shiva0217@gmail.com>
27869 PR rtl-optimization/64916
27870 * cfgcleanup.c (values_equal_p): New function.
27871 (can_replace_by): Use it.
27873 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
27876 * doc/invoke.texi ([-Wnarrowing]): Update.
27878 2015-04-20 Jeff Law <law@redhat.com>
27880 PR tree-optimization/65658
27881 * tree-ssa-threadupdate.c (redirection_block_p): Remove
27882 redundant test for GIMPLE_ASSIGN in last change.
27884 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
27886 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27887 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27888 (legitimize_tls_address): Ditto.
27889 (ix86_expand_move): Ditto.
27890 (ix86_expand_binary_operator): Remove reload_in_progress checks.
27891 (ix86_expand_unary_operator): Ditto.
27892 * config/i386/predicates.md (index_register_operand): Ditto.
27894 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
27896 * reorg.c (try_merge_delay_insns): Improve correctness checking
27897 for targets with multiple delay slots.
27899 2015-04-20 Jeff Law <law@redhat.com>
27901 PR tree-optimization/65658
27902 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27905 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27907 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27908 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27911 2015-04-20 Jakub Jelinek <jakub@redhat.com>
27914 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27916 2015-04-20 Richard Biener <rguenther@suse.de>
27918 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27919 * gimple-fold.c (gimple_build_valueize): New function.
27920 (gimple_build): Always use gimple_build_valueize as valueize hook.
27922 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27925 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27926 and overwrite variable parts if <= 1/2 the elements are variable.
27928 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
27930 PR rtl-optimization/65805
27931 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27932 Don't use difference of offset and previous offset if
27933 update_sp_offset is non-zero.
27934 (eliminate_regs_in_insn): Ditto.
27935 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27936 lra_eliminate_regs_1 call.
27937 * lra-constraints.c (get_equiv_with_elimination): Ditto.
27939 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
27941 * hash-table.h: Remove version of hash_table that stored value_type *.
27942 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27943 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27944 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27945 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27946 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27947 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27948 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27949 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27950 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27951 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27952 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27953 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27954 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27955 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27956 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27957 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27959 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27960 Jakub Jelinek <jakub@redhat.com>
27963 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27964 subsequent SH_NONE operand does not overwrite an existing *special
27966 (adjust_extract): Handle case where a vec_extract operation is
27967 wrapped in a PARALLEL.
27969 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27972 * config/i386/i386.c (ix86_binds_local_p): Define only if
27973 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27975 2015-04-17 Jeff Law <law@redhat.com>
27977 PR tree-optimization/47679
27978 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27979 * tree-ssa-scopedtables.c: New file.
27980 * tree-ssa-scopedtables.h: New file.
27981 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27982 (const_and_copies): Change name/type.
27983 (record_const_or_copy): Move into tree-ssa-scopedtables.c
27984 (record_const_or_copy_1): Similarly.
27985 (restore_vars_to_original_value): Similarly.
27986 (pass_dominator::execute): Create and destroy const_and_copies table.
27987 (thread_across_edge): Update passing of const_and_copies.
27988 (record_temporary_equivalence): Use method calls rather than
27989 manipulating const_and_copies directly.
27990 (record_equality, cprop_into_successor_phis): Similarly.
27991 (dom_opt_dom_walker::before_dom_children): Similarly.
27992 (dom_opt_dom_walker::after_dom_children): Similarly.
27993 (eliminate_redundant_computations): Similarly.
27994 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27995 (record_temporary_equivalence): Likewise.
27996 (invalidate_equivalences): Likewise.
27997 (record_temporary_equivalences_from_phis): Update due to type
27998 change of const_and_copies. Use method calls rather than
27999 manipulating the stack directly.
28000 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28001 (thread_through_normal_block, thread_across_edge): Likewise.
28002 (thread_across_edge): Likewise.
28003 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28004 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
28006 (identify_jump_threads): Update due to type change of equiv_stack.
28007 (finalize_jump_threads): Delete the equiv_stack when complete.
28009 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
28011 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28012 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28013 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28015 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
28018 * config.gcc: Exit with a comment when we do not have a major version
28019 number for the FreeBSD target.
28021 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28024 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28025 maybe_allows_mem bitfields.
28026 (maybe_allows_none_start, maybe_allows_none_end,
28027 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28028 maybe_allows_mem_end): New variables.
28029 (compute_maybe_allows): New function.
28030 (add_constraint): Use it to initialize maybe_allows_reg and
28031 maybe_allows_mem fields.
28032 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28033 is_address constraints such that those that allow neither mem nor
28034 reg come first, then those that only allow reg but not mem, then
28035 those that only allow mem but not reg, then the rest.
28036 (write_allows_reg_mem_function): New function.
28037 (write_tm_preds_h): Call it.
28038 * stmt.c (parse_output_constraint, parse_input_constraint): Use
28039 the generated insn_extra_constraint_allows_reg_mem function
28040 instead of always setting *allows_reg = true; *allows_mem = true;
28041 for unknown extra constraints.
28043 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28046 * output.h (default_binds_local_p_3): New.
28047 * varasm.c (default_binds_local_p_3): Make it public. Take an
28048 argument to indicate if common symbol may be local. If common
28049 symbol may be local, treat non-external variable as defined
28051 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28052 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28053 * config/i386/i386.c (ix86_binds_local_p): New.
28054 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28055 ix86_binds_local_p.
28057 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28060 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28061 trying mem_loc_descriptor on XEXP (rtl, 0).
28063 2015-04-17 Martin Liska <mliska@suse.cz>
28065 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28066 Release symbol_compare_collection.
28067 * ipa-reference.c: Add TODO that a vector should be released.
28069 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28072 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28073 to new AVR-LibC file layout (bug #44574).
28074 (*avrlibc_devicelib): Same.
28075 * config/avr/avr-mcus.def: Adjust comments.
28076 * config/avr/avr.opt (nodevicelib): Adjust help.
28078 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
28080 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28082 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
28085 * gimplify.c (gimplify_init_constructor): Always emit a
28086 side-effecting constructor.
28088 2015-04-17 Tom de Vries <tom@codesourcery.com>
28090 PR tree-optimization/64950
28091 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28092 in cfun->curr_properties.
28093 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28094 if we generate an IFN_VA_ARG.
28095 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28096 function if PROP_gimple_lva is not set in src function.
28098 2015-04-17 Tom de Vries <tom@codesourcery.com>
28099 Michael Matz <matz@suse.de>
28101 PR tree-optimization/64950
28102 * gimple-iterator.c (update_modified_stmts): Remove static.
28103 * gimple-iterator.h (update_modified_stmts): Declare.
28104 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
28105 (gimplify_va_arg_internal): New function.
28106 (gimplify_va_arg_expr): Use IFN_VA_ARG.
28107 * gimplify.h (gimplify_va_arg_internal): Declare.
28108 * internal-fn.c (expand_VA_ARG): New unreachable function.
28109 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
28110 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
28111 (expand_ifn_va_arg): New function.
28112 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
28113 (pass_stdarg::execute): Call expand_ifn_va_arg.
28114 (pass_data_lower_vaarg): New pass_data.
28115 (pass_lower_vaarg): New gimple_opt_pass.
28116 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
28117 (make_pass_lower_vaarg): New function.
28118 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
28119 properties_required field.
28120 * passes.def (all_passes): Add pass_lower_vaarg.
28121 * tree-pass.h (PROP_gimple_lva): Add define.
28122 (make_pass_lower_vaarg): Declare.
28124 2015-04-17 Tom de Vries <tom@codesourcery.com>
28126 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
28127 * calls.c (call_expr_flags): Same.
28129 2015-04-17 Tom de Vries <tom@codesourcery.com>
28131 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
28132 (pass_stdarg::execute): ... here.
28134 2015-04-17 Tom de Vries <tom@codesourcery.com>
28135 Michael Matz <matz@suse.de>
28137 * tree-cfg.c (make_blocks_1): Factor out of ...
28138 (make_blocks): ... here.
28139 (make_edges_bb): Factor out of ...
28140 (make_edges): ... here.
28141 (gimple_find_sub_bbs): New function.
28142 * tree-cfg.h (gimple_find_sub_bbs): Declare.
28144 2015-04-17 Tom de Vries <tom@codesourcery.com>
28146 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
28148 2015-04-17 Yury Gribov <y.gribov@samsung.com>
28150 * asan.c (set_sanitized_sections): New function.
28151 (section_sanitized_p): Ditto.
28152 (asan_protect_global): Optionally sanitize user-defined
28154 * asan.h (set_sanitized_sections): Declare new function.
28155 * common.opt (fsanitize-sections): New option.
28156 * doc/invoke.texi (-fsanitize-sections): Document new option.
28157 * opts-global.c (handle_common_deferred_options): Handle new
28160 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28163 * dwarf2out.c (loc_list_from_tree): Return NULL
28164 for DEBUG_EXPR_DECL.
28166 2015-04-17 Christian Bruel <christian.bruel@st.com>
28168 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
28171 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28173 * ira-color.c (setup_left_conflict_sizes_p): Do not process
28174 node itself when computing left conflict subnode size.
28176 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
28178 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
28179 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
28180 *fop_<mode>_1_sse using enabled attribute. Use
28181 register_mixssei387nonimm_operand operand 1 predicate. Change
28182 alternative 3 constraints from "x" to "v".
28184 2015-04-16 Richard Biener <rguenther@suse.de>
28186 PR tree-optimization/65774
28187 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
28188 bit-value tracking on.
28190 2015-04-16 Richard Biener <rguenther@suse.de>
28192 PR tree-optimization/64277
28193 * tree-vrp.c (check_array_ref): Fix anti-range handling,
28194 simplify upper bound handling.
28195 (search_for_addr_array): Simplify.
28196 (check_array_bounds): Handle ADDR_EXPRs here.
28197 (check_all_array_refs): Simplify.
28199 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
28201 * config/i386/i386.c (print_reg): Rewrite function.
28203 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28205 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
28206 Invert the condition.
28208 2015-04-16 Renlin Li <renlin.li@arm.com>
28210 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
28211 simplifications for UNSIGNED_FLOAT.
28213 2015-04-16 Nick Clifton <nickc@redhat.com>
28215 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
28217 (enum rl78_cpu_type): New.
28218 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
28219 (umulhi3_shift_virt): Remove m constraint from operand 1.
28220 (umulqihi3_virt): Likewise.
28221 * config/rl78/rl78.c (rl78_option_override): Add code to process
28222 -mcpu and -mmul options.
28223 (rl78_alloc_physical_registers): Add code to handle divhi and
28224 divsi valloc attributes.
28225 (set_origin): Likewise.
28226 * config/rl78/rl78.h (RL78_MUL_G14): Define.
28227 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
28228 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
28230 (ASM_SPEC): Pass -mcpu on to assembler.
28231 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
28232 (mulqi3_rl78): Likewise.
28233 (mulhi3_g13): Likewise.
28234 (mulhi3): Generate the G13 or G14 versions of the insn directly.
28235 (mulsi3): Likewise.
28236 (mulhi3_g14): Add clobbers of AX and BC.
28237 (mulsi3_g14): Likewise.
28238 (mulsi3_g13): Likewise.
28239 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
28240 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
28241 * config/rl78/rl78.opt (mmul): Initialise value to
28243 (mcpu): New option.
28244 (m13, m14, mrl78): New option aliases.
28245 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
28246 (MULTILIB_DIRNAMES): Add g13 and g14.
28247 * doc/invoke.texi: Document -mcpu and -mmul options.
28249 2015-04-16 Richard Biener <rguenther@suse.de>
28251 * tree-ssa-ccp.c (likely_value): See if we have operands that
28252 are marked as never simulate again and return CONSTANT in this
28254 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
28255 not have any operands that will be simulated again as
28256 not being simulated again.
28258 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
28260 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
28261 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
28262 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
28264 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
28266 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
28267 *float<SWI48:mode><MODEF:mode>2_sse.
28268 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
28270 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
28273 2015-04-15 Tom de Vries <tom@codesourcery.com>
28276 * function.c (push_dummy_function): New function.
28277 (init_dummy_function_start): Use push_dummy_function.
28278 (pop_dummy_function): New function. Factored out of ...
28279 (expand_dummy_function_end): ... here.
28280 * function.h (push_dummy_function, pop_dummy_function): Declare.
28281 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
28282 pop_dummy_function.
28283 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
28285 2015-04-15 Jeff Law <law@redhat.com>
28287 PR tree-optimization/47679
28288 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
28289 need for forward declaration in upcoming changes.
28290 (record_conditions, record_edge_info): Likewise.
28292 PR rtl-optimization/42522
28293 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
28294 SIGN_EXTRACT as a whole object rather than simplifying
28297 2015-04-15 Jakub Jelinek <jakub@redhat.com>
28300 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
28301 and GIMPLE_PREDICT use break instead of return true. For
28302 GIMPLE_EH_DISPATCH, compare dispatch region.
28304 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
28306 * doc/extend.texi (__sync Builtins): Simplify some text. Update
28307 details about the implementation. Make clear preference for
28308 __atomic builtins. Reduce possibility of future change.
28310 2015-04-15 Nick Clifton <nickc@redhat.com>
28312 * config/rx/rx.opt (mallow-string-insns): New option.
28313 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
28314 builtin if string instructions are denied.
28315 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
28316 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
28318 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
28319 * config/rx/rx.md (movstr): Enable pattern only if string
28320 instructions are allowed.
28321 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
28322 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
28323 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
28324 (MULTILIB_DIRNAMES): Add no-strings.
28325 * doc/invoke.texi: Document -mno-allow-string-insns.
28327 2015-04-15 Alan Modra <amodra@gmail.com>
28331 PR middle-end/36043
28332 * calls.c (load_register_parameters): Don't load past end of
28333 mem unless suitably aligned.
28335 2015-04-15 Nick Clifton <nickc@redhat.com>
28337 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
28338 decrement instruction as being frame related.
28339 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
28341 If zero extending a function address enclose the operation in
28343 (rl78_preferred_reload_class): New function.
28344 (TARGET_PREFERRED_RELOAD_CLASS): Define.
28345 * config/rl78/rl78.md: Remove useless constraints in expanders.
28346 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
28347 (mulhi3_rl78): Likewise.
28348 (mulhi3_g13): Likewise.
28349 (mulsi3_rl78): Likewise.
28350 (es_addr): Move to before the multiply patterns.
28352 2015-04-15 Alan Modra <amodra@gmail.com>
28354 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
28355 and sequence_stack. Add seq.
28356 (seq_stack): Delete.
28357 * function.c (prepare_function_start): Don't access x_last_insn.
28358 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
28359 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
28360 * emit_rtl.c (start_sequence, push_topmost_sequence,
28361 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
28362 sequence accessors.
28363 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
28364 remove_insn): Likewise. Simplify.
28365 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
28366 and pop_topmost_sequence.
28367 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
28369 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
28371 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
28374 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
28377 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
28379 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
28380 (LEGACY_INT_REGNO_P): Ditto.
28381 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
28382 (ANY_MASK_REG_P): Remove.
28383 (BND_REG_P): Rename from ANY_BND_REG_P.
28384 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
28385 legacy integer registers. Do not handle MMX_REG_P in a special way.
28386 Merge 64byte and 32byte SSE handling.
28388 2015-04-14 Nick Clifton <nickc@redhat.com>
28390 * expr.c (expand_assignment): Force an address offset computation
28391 into a register before changing its mode.
28392 (expand_expr_real_1): Likewise.
28394 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
28396 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
28397 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
28398 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
28399 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
28400 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
28401 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
28402 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
28403 and __aarch64_vget_lane_any.
28405 2015-04-14 Jakub Jelinek <jakub@redhat.com>
28407 PR rtl-optimization/65761
28408 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
28409 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
28411 2015-04-14 Richard Biener <rguenther@suse.de>
28413 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
28414 (graphite_can_represent_scev): Use POINTER_TYPE_P.
28416 2015-04-14 Richard Biener <rguenther@suse.de>
28418 PR tree-optimization/65758
28419 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
28421 (ccp_lattice_meet): Likewise.
28422 (bit_value_unop): Likewise.
28423 (bit_value_binop): Likewise.
28424 (bit_value_assume_aligned): Likewise.
28426 2015-04-14 Christian Bruel <christian.bruel@st.com>
28428 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
28431 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
28433 PR tree-optimization/63387
28434 * match.pd ((x unord x) | (y unord y) -> (x unord y),
28435 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
28437 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
28439 * config/i386/predicates.md (any_QIreg_operand): Rename from
28440 q_regs_operand. Do not process subregs.
28441 (QIreg_operand): Use QI_REGNO_P predicate.
28442 (ext_QIreg_operand): Ditto.
28443 (ext_register_operand): Ditto.
28444 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
28445 (AND splitters): Ditto.
28446 (AND with -65536 splitter): Add SWI48 mode for operand 0.
28447 (AND with -256 splitter): Use any_QIreg_operand predicate and
28448 SWI248 mode for operand 0.
28449 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
28450 mode for operand 0.
28451 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
28453 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
28455 * doc/plugins.texi: Rewrite first introductory paragraph.
28457 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28459 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
28460 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
28462 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28464 * ipa-profie.c (ipa_profile): Check number of parameters
28465 and possible polymorphic call targets before
28468 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
28470 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
28471 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
28473 2015-04-13 Richard Biener <rguenther@suse.de>
28475 PR tree-optimization/65204
28476 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
28477 takens for bit-CCP.
28479 2015-04-13 Richard Biener <rguenther@suse.de>
28482 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
28483 and cond_not_taken_branch_cost to 4 and 2.
28484 (bdver2_cost): Likewise.
28485 (bdver3_cost): Likewise.
28486 (bdver4_cost): Likewise.
28488 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28490 * hash-table.h (hash_table constructor): Add mem stats.
28491 (alloc_entries): Likewise.
28493 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28495 * ipa-cp.c (ipcp_driver): Relase prev_edge.
28496 * passes.c (execute_one_pass): Only add transform if pass has one.
28498 2015-04-12 Joseph Myers <joseph@codesourcery.com>
28500 * config/i386/i386.c (ix86_option_override_internal): Don't set
28501 -fprefetch-loop-arrays if optimizing for size.
28503 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
28504 Gerald Pfeifer <gerald@pfeifer.com>
28506 * doc/contrib.texi (Contributors): Add Martin Jambor and
28509 2015-04-12 Jakub Jelinek <jakub@redhat.com>
28511 * BASE-VER: Set to 6.0.0.
28513 PR tree-optimization/65747
28514 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
28515 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
28517 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
28519 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
28520 sentence. Improve grammar.
28522 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
28524 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
28526 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
28529 * ipa-inline-transform.c (speculation_removed): Remove static var.
28530 (check_speculations): New function.
28531 (clone_inlined_nodes): Do not check spculations.
28532 (inline_call): Call check_speculations.
28533 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
28534 consider non-invariants.
28536 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
28537 Martin Liska <mliska@suse.cz>
28540 * ipa-icf.c (sem_item::compare_cgraph_references): function and
28541 variable can not match.
28542 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
28543 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
28545 2015-04-11 Jakub Jelinek <jakub@redhat.com>
28547 PR tree-optimization/65735
28548 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
28549 Remove visited_phis argument, add visited_bbs, avoid recursing into the
28550 same bb rather than just into the same phi node.
28551 (thread_through_normal_block): Adjust caller.
28553 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
28555 * doc/contrib.texi (Contributors): Add Ira Rosen.
28557 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
28559 * gcov.c (find_source): Fix miswording in error message.
28560 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
28561 (ix86_expand_sse_comi_round): Fix typo in error message.
28563 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
28565 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
28567 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
28569 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
28571 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
28574 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
28575 Print bad_spills_num and insn_pseudos_num.
28577 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28580 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
28581 when creating +1 values for SImode.
28583 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
28586 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
28589 2015-04-10 Jakub Jelinek <jakub@redhat.com>
28590 Iain Sandoe <iain@codesourcery.com>
28593 * configure: Regenerate.
28595 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
28598 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
28600 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
28602 * doc/contrib.texi (Contributors): Add John Marino.
28604 2015-04-09 Jakub Jelinek <jakub@redhat.com>
28606 PR tree-optimization/65709
28607 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
28608 TREE_TYPE (TREE_TYPE (t)).
28610 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
28613 * lra-int.h (lra_bad_spill_regno_start): New.
28614 * lra.c (lra_bad_spill_regno_start): New.
28615 (lra): Set up lra_bad_spill_regno_start. Set up
28616 lra_constraint_new_regno_start unconditionally.
28617 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
28620 2015-04-09 Marek Polacek <polacek@redhat.com>
28621 Jakub Jelinek <jakub@redhat.com>
28623 PR middle-end/65554
28624 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
28625 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
28628 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
28630 PR rtl-optimization/65693
28631 * combine.c (is_parallel_of_n_reg_sets): Move outside of
28634 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
28637 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
28638 device specs file if "device-specs%s" didn't resolve to a path.
28640 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
28643 * config/i386/i386.c (fixup_modeless_constant): New.
28644 (ix86_expand_args_builtin): Fixup modeless constant operand.
28645 (ix86_expand_round_builtin): Ditto.
28646 (ix86_expand_special_args_builtin): Ditto.
28647 (ix86_expand_builtin): Ditto.
28649 2015-04-09 Jakub Jelinek <jakub@redhat.com>
28652 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
28653 any pow2 integer in between 2 and 0x80000000U inclusive.
28655 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
28657 PR rtl-optimization/65693
28658 * combine.c (is_parallel_of_n_reg_sets): Change first argument
28659 from an rtx_insn * to an rtx.
28660 (try_combine): Adjust both callers. Use it once more.
28662 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28664 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
28665 (chkp_make_static_const_bounds): Search existing
28666 symbol by assembler name. Use make_decl_one_only.
28667 (chkp_get_zero_bounds_var): Remove node search which
28668 is now performed in chkp_make_static_const_bounds.
28669 (chkp_get_none_bounds_var): Likewise.
28671 2015-04-08 Michael Witten <mfwitten@gmail.com>
28673 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
28676 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28678 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
28680 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28682 * doc/extend.texi (__sync Builtins): Fix grammar.
28684 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28686 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
28688 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28690 * varasm.c (emit_local): Move definition of align.
28692 2015-04-08 Julian Brown <julian@codesourcery.com>
28694 * config/nvptx/mkoffload.c (process): Support variable mapping.
28696 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
28698 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
28700 (alpha_write_one_linkage): Correct typo.
28702 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28704 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
28706 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28708 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
28710 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28712 * tree-chkp.h (chkp_insert_retbnd_call): New.
28713 * tree-chkp.c (chkp_insert_retbnd_call): New.
28714 * ipa-split.c (insert_bndret_call_after): Remove.
28715 (split_function): Use chkp_insert_retbnd_call.
28716 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
28717 bounds for instrumented functions.
28719 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
28722 * calls.c (initialize_argument_information): When producing tail
28723 call also turn SSA_NAMES passed by references to original PARM_DECLs
28725 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
28728 * lra-remat.c (do_remat): Process input and non-input insn
28729 registers separately.
28731 2015-04-07 Jakub Jelinek <jakub@redhat.com>
28734 * valtrack.c (debug_lowpart_subreg): New function.
28735 (dead_debug_insert_temp): Use it.
28737 PR middle-end/65680
28738 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
28739 into signed HOST_WIDE_INT the same as negative bit_offset.
28741 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
28743 * ipa-comdats.c (ipa_comdats): Visit all thunks
28744 to set proper comdat group.
28746 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28749 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
28750 on constants for NEON VSTRUCT modes.
28752 2015-04-07 Jakub Jelinek <jakub@redhat.com>
28753 Iain Sandoe <iain@codesourcery.com>
28756 * configure: Regenerate.
28758 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28761 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
28762 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
28763 that LFD is used to load double constants instead of LFS. Add
28764 defaults for all costs structures. Add comments for missing
28765 initialization fields.
28766 (size32_cost): Likewise.
28767 (size64_cost): Likewise.
28768 (rs64a_cost): Likewise.
28769 (mpccore_cost): Likewise.
28770 (ppc403_cost): Likewise.
28771 (ppc405_cost): Likewise.
28772 (ppc440_cost): Likewise.
28773 (ppc476_cost): Likewise.
28774 (ppc601_cost): Likewise.
28775 (ppc603_cost): Likewise.
28776 (ppc604_cost): Likewise.
28777 (ppc604e_cost): Likewise.
28778 (ppc620_cost): Likewise.
28779 (ppc630_cost): Likewise.
28780 (ppccell_cost): Likewise.
28781 (ppc750_cost): Likewise.
28782 (ppc7450_cost): Likewise.
28783 (ppc8540_cost): Likewise.
28784 (ppce300c2c3_cost): Likewise.
28785 (ppce500mc_cost): Likewise.
28786 (ppce500mc64_cost): Likewise.
28787 (ppce5500_cost): Likewise.
28788 (ppce6500_cost): Likewise.
28789 (titan_cost): Likewise.
28790 (power4_cost): Likewise.
28791 (power6_cost): Likewise.
28792 (power7_cost): Likewise.
28793 (power8_cost): Likewise.
28794 (ppca2_cost): Likewise.
28795 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
28797 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
28798 instead of XXLOR to copy SFmode to clear out dirty bits created
28799 when SFmode denormals are generated.
28800 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
28801 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
28803 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28805 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
28806 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
28807 * config/aarch64/aarch64-tune.md: Regenerate.
28809 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28811 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
28812 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
28813 * config/arm/arm-cores.def (exynos-m1): New core.
28814 * config/arm/arm-tune.md: Regenerate.
28815 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
28816 * config/arm/bpabi.h: Likewise.
28818 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28820 * ipa-cp (set_single_call_flag): Remove too
28821 restrictive assert.
28823 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
28825 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
28826 GOMP_offload_unregister from the destructor.
28828 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28830 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
28831 flags for instrumentation thunk.
28832 (chkp_produce_thunks): Likewise.
28834 2015-04-05 Martin Liska <mliska@suse.cz>
28837 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
28838 has computed data structure.
28839 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28841 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
28843 * invoke.texi (inline-unit-growth): Increase growth to 20%
28844 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
28846 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
28849 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
28851 (lra_rematerialization_iter): New.
28852 * lra.c (lra): Initialize lra_rematerialization_iter.
28853 Stop updating lra_constraint_new_regno_start after switching of
28854 inheritance and rematerialization.
28855 * lra-remat.c (lra_rematerialization_iter): New.
28856 (lra_remat): Add printing pass iteration. Do rematerialization
28857 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28859 2015-04-04 Richard Biener <rguenther@suse.de>
28861 PR tree-optimization/64909
28862 PR tree-optimization/65660
28863 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28864 to take a cost vector for scalar iteration cost.
28865 (vect_get_single_scalar_iteration_cost): Likewise.
28866 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28867 Compute the scalar iteration cost into a cost vector.
28868 (vect_get_known_peeling_cost): Use the scalar cost vector to
28869 account for the cost of the peeled iterations.
28870 (vect_estimate_min_profitable_iters): Likewise.
28871 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28874 2015-04-04 Alan Modra <amodra@gmail.com>
28878 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28879 0.0 constant unless TARGET_VSX.
28880 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28883 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28886 * ipa-inline-transform.c (inline_call): Skip sanity check to work
28889 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28892 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28893 speculative indirect edges to avoid ordering issue.
28895 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28898 * ipa-inline.c (edge_badness): Add combined size to the denominator.
28900 2015-04-03 Jakub Jelinek <jakub@redhat.com>
28902 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28903 TYPE_ARTIFICIAL on the .omp_data* types.
28905 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28907 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28908 instrumentation thunks.
28910 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28912 * config/i386/i386.c (ix86_expand_call): Avoid nested
28913 PARALLEL in returned call value.
28915 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28917 * lto-cgraph.c (input_cgraph_1): Always link instrumented
28918 assembler name with original one.
28920 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28922 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28924 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28926 Revert parts of r216820.
28927 * config/i386/i386.md (movqi_internal): Correct type calculation
28928 for alternatives 3 and 5.
28930 2015-04-02 Jakub Jelinek <jakub@redhat.com>
28932 PR preprocessor/61977
28933 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28934 predefine __vector/__bool/__pixel macros nor context sensitive
28935 macros for CLK_ASM.
28936 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28938 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
28940 * config/pa/pa.c (pa_output_move_double): Directly handle register
28941 indexed memory operand. Simplify handling of scaled register indexed
28944 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28947 * config/i386/linux-common.h (MPX_SPEC): New.
28948 (CHKP_SPEC): Add MPX_SPEC.
28949 * doc/invoke.texi (-fcheck-pointer-boudns): Document
28950 possible issues with '-z bndplt' support in linker.
28952 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28954 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28955 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28956 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28957 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28958 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28960 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
28962 * config/i386/sync.md (UNSPEC_MOVA): Remove.
28963 (atomic_load<mode>): Change operand 0 predicate to
28964 nonimmediate_operand and fix up the destination when needed.
28966 (atomic_loaddi_fpu): Use UNSPEC_LDA.
28967 (atomic_store<mode>): Change operand 1 predicate to
28968 nonimmendate_operand and move the source to register when needed.
28970 (atomic_store<mode>_1): Use UNSPEC_STA.
28971 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28972 Fix moves from memory operand. Use UNSPEC_STA.
28974 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28976 * expmed.c (strict_volatile_bitfield_p): Check that the access will
28977 not cross a MODESIZE boundary.
28978 (store_bit_field, extract_bit_field): Added assertions in the
28979 strict volatile bitfields code path.
28981 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
28984 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28985 Increase args array size by one to avoid buffer overflow.
28987 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28989 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28991 * ipa-inline.c (edge_badness): Add wrapper penalty.
28992 (sum_callers): Move up.
28993 (inline_small_functions): Set single_caller.
28994 * ipa-inline.h (inline_summary): Add single_caller.
28995 * ipa-split.c (split_function): Set split_part.
28996 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28997 * cgraph.h (cgraph_node): Add split_part.
28999 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
29002 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29003 Do not split operands 0 and operands 2 to halfmode.
29004 (atomic_compare_and_swap<mode>): Update for
29005 atomic_compare_and_swap<dwi>_doubleword changes.
29007 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29009 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29010 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29011 no caching is done.
29013 2015-03-31 Martin Liska <mliska@suse.cz>
29016 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29017 has already filled up function summary.
29018 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29020 2015-03-31 Richard Biener <rguenther@suse.de>
29022 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29025 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
29027 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29029 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29030 (s390_asm_output_function_label): Adapt to new signature of
29031 s390_function_num_hotpatch_hw
29032 Optimise the code generating assembler output.
29033 Add comments to assembler file.
29035 2015-03-31 Richard Biener <rguenther@suse.de>
29037 PR middle-end/65626
29038 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29039 of the noreturn call so it is last and cleanup_control_flow_bb
29040 can do the CFG part.
29042 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
29045 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29046 same_comdat_group for external symbols.
29047 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29048 infinite same_comdat_group traversal loop.
29050 2015-03-31 Jakub Jelinek <jakub@redhat.com>
29053 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29054 automatically to $headers.
29056 2015-03-30 Jakub Jelinek <jakub@redhat.com>
29059 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29060 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29062 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29064 * ipa-prop.c (param_type_may_change_p): Likewise.
29065 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29066 (remove_unused_scope_block_p): Add in_ctor_dtor_block
29067 argument. Before inlining, preserve
29068 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29069 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
29071 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29073 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29076 * ipa-inline.c (edge_badness): Base denominator on callee's
29079 2015-03-27 Martin Jambor <mjambor@suse.cz>
29082 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29083 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29084 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29085 node_calling_single_call.
29086 * ipa-cp.c (count_callers): New function.
29087 (set_single_call_flag): Likewise.
29088 (initialize_node_lattices): Count callers and set single_flag_call if
29090 (incorporate_penalties): New function.
29091 (good_cloning_opportunity_p): Use it, dump new flags.
29092 (propagate_constants_topo): Set node_within_scc flag if appropriate.
29093 * doc/invoke.texi (ipa-cp-recursion-penalty,
29094 ipa-cp-single-call-pentalty): Document.
29096 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29099 * symtab.c (symtab_node::get_partitioning_class): Register vars
29101 * varpool.c (symbol_table::output_variables) Do not assemble unefined
29102 decls for non-symbols.
29104 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
29107 * output.h (default_binds_local_p_2): New.
29108 * varasm.c (default_binds_local_p_2): Renamed to ...
29109 (default_binds_local_p_3): This. Don't return true on protected
29110 data symbol if protected data may be external.
29111 (default_binds_local_p): Use default_binds_local_p_3.
29112 (default_binds_local_p_1): Likewise.
29113 (default_binds_local_p_2): New.
29114 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
29115 default_binds_local_p_2 if TARGET_MACHO is undefined.
29117 2015-03-27 Jakub Jelinek <jakub@redhat.com>
29120 * config/i386/i386.c (legitimize_pic_address): If base
29121 is SYMBOL_REF or LABEL_REF using %rip addressing, force
29122 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
29124 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29127 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
29130 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29133 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
29134 of optimized out indirect call.
29135 (redirect_to_unreachable): Always build symbol table node for
29136 BUILT_IN_UNREACHABLE
29138 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
29141 * ira-costs.c (record_reg_classes): Process all constraint string
29144 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
29146 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
29150 * config/c6x/constraints.md (S3): New constraint.
29151 * config/c6x/c6x.md (real_jump): Use it.
29153 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29155 PR middle-end/65595
29156 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
29157 do redirection if the call is not optimized out.
29159 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
29162 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
29163 (fchkp-check-incomplete-type): Add LTO.
29164 (fchkp-zero-input-bounds-for-main): Likewise.
29165 (fchkp-first-field-has-own-bounds): Likewise.
29166 (fchkp-narrow-bounds): Likewise.
29167 (fchkp-narrow-to-innermost-array): Likewise.
29168 (fchkp-use-static-bounds): Likewise.
29169 (fchkp-use-static-const-bounds): Likewise.
29170 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29172 2015-03-27 Marek Polacek <polacek@redhat.com>
29174 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
29176 2015-03-27 Marek Polacek <polacek@redhat.com>
29179 * ubsan.c (ubsan_create_edge): New function.
29180 (instrument_bool_enum_load): Call it.
29181 (instrument_nonnull_arg): Likewise.
29182 (instrument_nonnull_return): Likewise.
29183 (instrument_object_size): Likewise.
29185 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29187 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
29190 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29193 * lto-streamer.h (class lto_location_cache): New.
29194 (struct data_in): Add location_cache.
29195 (lto_input_location): Update prototype.
29196 (stream_input_location_now): New.
29197 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
29198 pointer to location.
29199 (stream_input_location): Update.
29200 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
29201 (warn_odr): Apply location cache before warning.
29202 (lto_input_location): Update prototype.
29203 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
29204 Use stream_input_location_now.
29205 * lto-streamer-in.c (lto_location_cache::current_cache): New static
29207 (lto_location_cache::cmp_loc): New function.
29208 (lto_location_cache::apply_location_cache): New function.
29209 (lto_location_cache::accept_location_cache): New function.
29210 (lto_location_cache::revert_location_cache): New function.
29211 (lto_location_cache::input_location): New function.
29212 (lto_input_location): Do location caching.
29213 (stream_input_location_now): New function.
29214 (input_eh_region, input_struct_function_base): Use
29215 stream_input_location_now.
29216 (lto_data_in_create): use new.
29217 (lto_data_in_delete): Use delete.
29218 * tree-streamer-in.c (unpack_ts_block_value_fields,
29219 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
29220 lto_input_ts_exp_tree_pointers): Update for cached location api.
29222 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29225 * passes.def: Add pass_nothrow.
29226 * ipa-pure-const.c: (pass_data_nothrow): New.
29227 (pass_nothrow): New.
29228 (pass_nothrow::execute): New.
29229 (make_pass_nothrow): New.
29230 * tree-pass.h (make_pass_nothrow): Declare.
29232 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29234 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
29235 edge to change by speculation resolution or redirection.
29236 (edge_set_predicate): Likewise.
29237 (inline_summary_t::duplicate): Likewise.
29238 (remap_edge_summaries): Likewise.
29240 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29242 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
29244 (can_inline_edge_p): Relax option matching for always inline functions.
29246 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
29249 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
29250 Check operand 4 and operand 0 for equality.
29251 (avx512f_vextract<shuffletype>32x4_1_maskm):
29252 Check operand 6 and operand 0 for equality.
29253 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
29255 (vec_extract_hi_<mode>_maskm): Ditto.
29257 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29259 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
29260 dead calls back to live.
29261 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
29263 (cgraph_node::verify_node): ... here; verify only callee edges,
29265 * cif-code.def (CILK_SPAWN): New code.
29267 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29269 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
29270 (edge_set_predicate): Use it to mark unreachable edges.
29271 (inline_summary_t::duplicate): Remove unnecesary code.
29272 (remap_edge_summaries): Likewise.
29273 (dump_inline_summary): Report contains_cilk_spawn.
29274 (compute_inline_parameters): Compute contains_cilk_spawn.
29275 (inline_read_section, inline_write_summary): Stream
29276 contains_cilk_spawn.
29277 * ipa-inline.c (can_inline_edge_p): Do not touch
29278 DECL_STRUCT_FUNCTION that may not be available;
29279 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
29280 remove check for callee_fun->can_throw_non_call_exceptions and
29281 replace it by optimization attribute check; check for flag_exceptions.
29282 * ipa-inline-transform.c (inline_call): Maintain
29283 DECL_FUNCTION_PERSONALITY
29284 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
29286 2015-03-26 Jakub Jelinek <jakub@redhat.com>
29288 PR tree-optimization/65551
29289 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
29290 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
29292 2015-03-26 Richard Biener <rguenther@suse.de>
29294 PR middle-end/65555
29295 * tree-cfg.c (verify_gimple_call): Do not require a call to
29296 have no LHS if it wasn't recognized as control altering yet.
29298 2015-03-26 Jakub Jelinek <jakub@redhat.com>
29300 PR tree-optimization/64715
29301 * passes.def: Add another instance of pass_object_sizes before ccp1.
29302 * tree-object-size.c (pass_object_sizes::execute): In
29303 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
29304 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
29305 __bos result and the computed constant. Remove redundant
29306 checks, obsoleted by gimple_call_builtin_p test.
29308 * var-tracking.c (variable_tracking_main_1): Don't track
29309 variables for targetm.no_register_allocation targets.
29311 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
29313 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
29314 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
29316 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
29319 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
29320 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
29321 0.0 is correctly setup.
29322 (extenddftf2_internal): Likewise.
29324 2015-03-25 Sebastian Pop <s.pop@samsung.com>
29326 PR tree-optimization/65177
29327 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
29329 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
29330 edges not adjacent on the path to the original code.
29332 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
29335 * doc/install.texi (Building a native compiler): Document new
29336 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
29337 configuration assumes that the host supports the linker plugin.
29339 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
29342 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
29343 chain for generated call.
29345 2015-03-25 Richard Biener <rguenther@suse.de>
29347 * passes.c (pass_manager::execute_early_local_passes): Guard
29348 execution of pass_chkp_instrumentation_passes with
29349 flag_check_pointer_bounds.
29350 (pass_chkp_instrumentation_passes::gate): Likewise.
29352 2015-03-25 Martin Liska <mliska@suse.cz>
29354 PR tree-optimization/65538
29355 * symbol-summary.h (function_summary::~function_summary):
29356 Relese memory for allocated summaries.
29357 (function_summary::release): New function.
29359 2015-03-25 Jakub Jelinek <jakub@redhat.com>
29362 * lto-streamer-out.c (DFS::worklist): New struct.
29363 (DFS::worklist_vec): New data member.
29364 (DFS::next_dfs_num): Remove.
29365 (DFS::DFS): Rewritten using worklist instead of recursion,
29366 using most of code from DFS::DFS_write_tree.
29367 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
29368 pass it to DFS_write_tree calls.
29369 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
29370 quick initial checks push it into worklist_vec and return.
29372 2015-03-25 Richard Biener <rguenther@suse.de>
29374 PR middle-end/65519
29375 * genmatch.c (expr::gen_transform): Re-write to avoid
29376 using gimple_build.
29378 2015-03-25 Bin Cheng <bin.cheng@arm.com>
29380 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
29382 2015-03-25 Bin Cheng <bin.cheng@arm.com>
29384 * config/arm/arm.opt (print_tune_info): New option.
29385 * config/arm/arm.c (arm_print_tune_info): New function.
29386 (arm_file_start): Call arm_print_tune_info.
29387 * config/arm/arm-protos.h (struct tune_params): Add comment.
29388 * doc/invoke.texi (@item -mprint-tune-info): New item.
29389 (-mtune): mention it in ARM Option Summary.
29391 2015-03-25 DJ Delorie <dj@redhat.com>
29393 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
29396 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
29397 Martin Liska <mliska@suse.cz>
29399 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
29400 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
29401 (sem_item::add_type): New function.
29402 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
29403 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
29404 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
29405 (sem_function::equals_wpa): Fix typo.
29406 * ipa-icf.h (sem_item::add_type): New function.
29407 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
29410 2015-03-24 Jakub Jelinek <jakub@redhat.com>
29412 PR tree-optimization/65533
29413 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
29414 with swapped operands, call vect_free_slp_tree on
29415 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
29418 2015-03-24 Richard Biener <rguenther@suse.de>
29420 PR middle-end/65517
29421 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
29422 for fixup if necessary.
29424 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
29426 * doc/extend.texi (Function Attributes): Add @cindex entries
29427 for all attributes and regularize their format. Delete text
29428 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
29429 information about "eightbit_data", "tiny_data", and "model"
29430 variable attributes to the Variable Attributes section. Fix
29431 some obvious typos and copy-editing issues.
29432 (Variable Attributes, Type Attributes): Likewise add/fix
29433 @cindex entries for all attributes.
29435 2015-03-23 Jakub Jelinek <jakub@redhat.com>
29438 * tree-chkp.c (chkp_build_returned_bound): Ignore
29439 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
29441 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
29444 * config/sh/predicates.md (simple_mem_operand,
29445 displacement_mem_operand): Add test for reg.
29446 (short_displacement_mem_operand): Test for displacement_mem_operand
29447 before invoking sh_disp_addr_displacement.
29448 * config/sh/constraints.md (Sdd, Sra): Simplify.
29449 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
29450 Remove redundant displacement_mem_operand tests.
29452 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
29455 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
29456 the same -mmcu=MCU more than once.
29458 2015-03-23 Jakub Jelinek <jakub@redhat.com>
29461 * ipa-devirt.c: Remove duplicate demangle.h include.
29464 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
29466 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
29467 REG_POINTER on *destptr after adjusting it for prologue size.
29470 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
29471 ultimate_alias_target ()->order ints instead of
29472 ultimate_alias_target () pointers.
29474 2015-03-23 Richard Biener <rguenther@suse.de>
29476 PR tree-optimization/65518
29477 * tree-vect-stmts.c (vectorizable_load): Reject single-element
29478 interleaving cases we generate absymal code for.
29480 2015-03-23 Richard Biener <rguenther@suse.de>
29482 PR tree-optimization/65494
29483 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
29485 (vect_analyze_slp_instance): But do that here, always and once.
29487 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29489 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
29490 adding T or multiplying by T+1 and subracting T.
29492 2015-03-22 Jeff Law <law@redhat.com>
29494 PR rtl-optimization/64317
29495 * Makefile.in (OBJS): Add gcse-common.c
29496 * gcse.c: Include gcse-common.h
29497 (struct modify_pair_s): Move structure definition to gcse-common.h
29498 (compute_transp): Move function to gcse-common.c.
29499 (canon_list_insert): Similarly.
29500 (record_last_mem_set_info): Break out some code and put it into
29501 gcse-common.c. Call into the new common code.
29502 (compute_local_properties): Pass additional arguments to compute_transp.
29503 * postreload-gcse.c: Include gcse-common.h and df.h
29504 (modify_mem_list_set, blocks_with_calls): New variables.
29505 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
29506 (get_bb_avail_insn): Pass in the expression index too.
29507 (alloc_mem): Allocate memory for the new bitmaps and lists.
29508 (free_mem): Free memory for the new bitmaps and lists.
29509 (insert_expr_in_table): Record a bitmap index for each entry we
29511 (record_last_mem_set_info): Call into common code in gcse-common.c.
29512 (get_bb_avail_insn): If no available insn was found in the requested
29513 BB. If BB has a single predecessor, see if the expression is
29514 transparent in BB and available in that single predecessor.
29515 (compute_expr_transp): New wrapper for compute_transp.
29516 (eliminate_partially_redundant_load): Pass expression's bitmap_index
29517 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
29518 (gcse_after_reload_main): If there are elements in the hash table,
29519 then compute transparency for all the elements in the hash table.
29520 * gcse-common.h: New file.
29521 * gcse-common.c: New file.
29523 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
29525 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
29527 (System Headers): Likewise.
29529 (Traditional macros): Likewise.
29530 (Invocation): Likewise.
29531 (Option Index): Likewise.
29532 * doc/cppopts.texi (-M): Likewise.
29533 (-finput-charset): Likewise.
29534 (--help): Likewise.
29535 * doc.invoke.texi (AVR Options): Likewise.
29536 (V850 Options): Likewise.
29538 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
29541 * ipa-devirt.c: Include demangle.h
29542 (odr_type_d): Add field rtti_broken.
29543 (odr_subtypes_equivalent_p): Do not require name to match.
29544 (compare_virtual_tables): Fix typo; if type already has ODR violation,
29545 bypass the tests; be ready for function referneces in vtables that are
29546 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
29547 (warn_odr): Give up for nameless types.
29548 (warn_types_mismatch): Report mismatch in mangled names;
29549 report mismatch in anonymous namespaces; look into component types to
29550 give useful error; report when mismatch is dragged in from other ODR
29552 (odr_types_equivalent_p): Match types for being polymorphic; avoid
29553 duplicated diagnostics.
29554 (add_type_duplicate): Reorder checks so more informative ones come
29555 first; fix typo; do not output "the extra base is defined here" when
29557 (BINFO_N_BASE_BINFOS): Relax sanity check.
29559 2015-03-22 Martin Liska <mliska@suse.cz>
29560 Jakub Jelinek <jakub@redhat.com>
29562 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
29563 masks that can potentially include a builtin.
29564 (ix86_add_new_builtins): Introduce fast filter for isa values
29565 that cannot trigger builtin inclusion.
29567 2015-03-22 Martin Liska <mliska@suse.cz>
29569 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
29570 (sem_item::update_hash_by_local_refs): Likewise.
29571 (sem_variable::get_hash): Empty line is fixed.
29572 (sem_item_optimizer::execute): Include adding of hash references.
29573 (sem_item_optimizer::update_hash_by_addr_refs): New function.
29574 (sem_item_optimizer::build_hash_based_classes): Use local hash.
29575 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
29576 (sem_item::update_hash_by_local_refs): Likewise.
29578 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29581 * ipa-comdats.c (enqueue_references): Walk through thunks.
29582 (ipa_comdats): Likewise.
29583 (set_comdat_group_1): New function.
29585 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29588 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
29591 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
29592 Gerald Pfeifer <gerald@pfeifer.com>
29594 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
29596 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
29597 Sandra Loosemore <sandra@codesourcery.com>
29599 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
29600 function parameter declaration.
29601 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
29602 Update arguments to nios2_adjust_call_address().
29603 (sibcall_internal): Rename from *sibcall.
29604 (sibcall_value_internal): Rename from *sibcall_value.
29605 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
29606 (nios2_large_got_address): Add target temp reg parameter.
29607 (nios2_got_address): Adjust call to nios2_large_got_address, add
29608 force_reg around it.
29609 (nios2_load_pic_address): Add target temp reg parameter, replace call
29610 to nios2_got_address with corresponding code.
29611 (nios2_legitimize_constant_address): Update call to
29612 nios2_load_pic_address.
29613 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
29614 to use temp reg for PIC loading purposes.
29615 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
29616 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29617 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
29619 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29621 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
29622 usage of "the @option{...}".
29623 (-Wopenmp-simd): Likewise.
29624 (-fsanitize-recover): Likewise.
29625 (-fsanitize-undefined-trap-on-error): Likewise.
29627 (tracer-dynamic-coverage-feedback): Likewise.
29628 (reorder-block-duplicate-feedback): Likewise.
29629 (loop-unroll-jam-size): Likewise.
29632 (-mabs=legacy): Likewise.
29633 (-mupper-regs-df): Likewise.
29634 (-mupper-regs-sf): Likewise.
29635 (-mpointers-to-nested-functions): Likewise.
29637 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29639 * doc/extend.texi (Cilk Plus Builtins): Add markup.
29641 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29643 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
29644 additional index entries and cross-references.
29645 (-fchkp-check-incomplete-type): Likewise.
29646 (-fchkp-first-field-has-own-bounds): Likewise.
29647 (-fchkp-narrow-to-innermost-array): Likewise.
29648 (-fchkp-use-fast-string-functions): Likewise.
29649 (-fchkp-use-nochk-string-functions): Likewise.
29650 (-fchkp-use-static-const-bounds): Likewise.
29651 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29652 (-fchkp-instrument-marked-only): Likewise.
29653 (-fchkp-use-wrappers): Likewise.
29654 (-static-libmpx): Likewise.
29655 (-static-libmpxwrappers): Likewise.
29656 * doc/extend.texi (bnd_legacy): Likewise.
29657 (bnd_instrument): Likewise.
29658 (bnd_variable_size): Likewise.
29659 (Pointer Bounds Checker builtins): Likewise.
29661 2015-03-21 Tom de Vries <tom@codesourcery.com>
29663 PR tree-optimization/65458
29664 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
29665 * cgraph.h (cgraph_node): Add parallelized_function field.
29666 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
29667 (input_overwrite_node): Read parallelized_function field.
29668 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
29669 parallelized_function on cgraph_node for child_fn.
29670 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
29671 Remove include of gt-tree-parloops.h.
29672 (parallelized_functions): Remove static variable.
29673 (parallelized_function_p): Rewrite using parallelized_function field of
29675 (create_loop_fn): Remove adding to parallelized_functions.
29676 * Makefile.in (GTFILES): Remove tree-parloops.c
29678 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
29680 PR rtl-optimization/64366
29681 * lra.c (lra_update_insn_regno_info): Consider regs in
29682 CALL_INSN_FUNCTION_USAGE memory.
29684 2015-03-20 Richard Biener <rguenther@suse.de>
29686 PR middle-end/64715
29687 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
29688 for type comparison and gcc_checking_assert.
29689 (chrec_fold_plus_poly_poly): Likewise.
29690 (chrec_fold_multiply_poly_poly): Likewise.
29691 (chrec_convert_1): Likewise.
29692 * gimplify.c (gimplify_expr): Remove premature folding of
29693 &X + CST to &MEM[&X, CST].
29695 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29697 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
29699 (ipa_inline): Recompute inline_failed codes.
29700 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29701 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
29704 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
29706 PR rtl-optimization/60851
29707 * recog.c (constrain_operands): Accept a pseudo register before reload
29708 for LRA enabled targets.
29710 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
29713 * config/rs6000/predicates.md (easy_fp_constant): Remove special
29714 -ffast-math handling that kept non-0 constants live in the RTL
29715 until reload. Remove logic testing the number of instructions it
29716 took to create a constant in a GPR that was never used, due to a
29717 test for soft-float earlier.
29718 (memory_fp_constant): Delete, no longer used.
29720 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
29721 alternatives for loading non-0 constants into GPRs for hard
29722 floating point that is no longer needed due to changes in
29723 easy_fp_constant. Add support for loading 0.0 into GPRs.
29724 (mov<mode>_hardfloat32): Likewise.
29725 (mov<mode>_hardfloat64): Likewise.
29726 (mov<mode>_64bit_dm): Likewise.
29727 (movtd_64bit_nodm): Likewise.
29728 (pre-reload move FP constant define_split): Delete define_split,
29729 since it is no longer used.
29730 (extenddftf2_internal): Remove GHF constraints that are not valid
29733 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
29735 PR rtl-optimization/63491
29736 * lra-constraints.c (check_and_process_move): Use src instead of
29737 sreg. Remove some dead code.
29739 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
29742 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
29743 (sem_variable::merge): Likewise.
29745 2015-03-19 Martin Liska <mliska@suse.cz>
29748 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
29749 all fields of cgraph_thunk_info.
29751 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
29753 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
29754 clone instrumented thunks.
29756 2015-03-19 Richard Biener <rguenther@suse.de>
29759 2015-03-10 Richard Biener <rguenther@suse.de>
29761 PR middle-end/63155
29762 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29763 * tree-ssa-coalesce.c: Include timevar.h.
29764 (attempt_coalesce): Handle graph being NULL.
29765 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29766 Split out abnormal coalescing to ...
29767 (perform_abnormal_coalescing): ... this function.
29768 (coalesce_ssa_name): Perform abnormal coalescing without computing
29770 (verify_ssa_coalescing_worker): New function.
29771 (verify_ssa_coalescing): Likewise.
29773 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29774 Jakub Jelinek <jakub@redhat.com>
29777 * tsan.c (instrument_gimple): Clear tail call flag on
29780 2015-03-19 Jakub Jelinek <jakub@redhat.com>
29783 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
29784 call in the return bb.
29785 (find_split_points): Add RETURN_BB argument, don't call
29787 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
29788 if true append TSAN_FUNC_EXIT internal call after the call to
29789 the split off function.
29790 (execute_split_functions): Call find_return_bb here.
29791 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
29792 Adjust find_split_points and split_function calls.
29794 2015-03-18 DJ Delorie <dj@redhat.com>
29796 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
29797 (iorqi3_virt): Likewise.
29799 2015-03-18 Tom de Vries <tom@codesourcery.com>
29801 * tree-parloops.c (parallelize_loops): Make static.
29802 * tree-parloops.h (parallelize_loops): Remove extern declaration.
29804 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
29806 PR middle-end/64491
29808 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
29810 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
29811 condition would be removed due to undefined behaviour.
29813 2015-03-18 Martin Liska <mliska@suse.cz>
29816 * cgraph.c (cgraph_node::get_create): Remove unnecessary
29817 xstrdup_for_dump wrapper.
29818 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
29820 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
29821 with xstrdup_for_dump.
29822 (sem_variable::equals): Likewise.
29823 (sem_item_optimizer::read_section): Use symtab_node::name instead of
29825 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
29826 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
29827 symtab_node::asm_name with xstrdup_for_dump.
29828 (congruence_class::dump): Use symtab_node::name instead of
29830 * ipa-icf.h (symtab_node::name): Remove.
29831 (symtab_node::asm_name): Likewise.
29833 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29835 PR tree-optimization/65450
29836 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
29838 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
29839 it instead of duplicate_ssa_name_ptr_info.
29842 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
29844 2015-03-18 Richard Biener <rguenther@suse.de>
29846 * tree-data-ref.h (struct access_matrix): Remove.
29847 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29848 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29849 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29850 (am_vector_index_for_loop): Likewise.
29851 (struct data_reference): Remove access_matrix member.
29852 (DR_ACCESS_MATRIX): Remove.
29853 (lambda_vector_new): Add comment.
29854 (lambda_matrix_new): Use XOBNEWVEC.
29856 2015-03-18 Richard Biener <rguenther@suse.de>
29858 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29859 (pass_ch::execute): Cleanup the CFG only if we did sth.
29860 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29862 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29864 * expmed.c (synth_mult): Use std::swap instead of manually
29865 swapping algorithms.
29867 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29870 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29872 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
29875 * config/avr/avr.opt (-nodevicelib): New option.
29876 * doc/invoke.texi (AVR Options): Document it.
29877 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29878 libgcc.a, libc.a, libm.a.
29879 * config/avr/specs.h: Same.
29880 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29881 which don't (directly) depend on the device. Print more help.
29882 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29883 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29884 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29886 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29887 for specs file name.
29888 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29889 * config/avr/avr-mcus.def: Adjust initializers and comments.
29891 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
29893 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29894 DECL_ONE_ONLY to check if decl is one only.
29895 * ipa-split.c (consider_split): Limit splitt of one only functions.
29897 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29899 PR tree-optimization/65427
29900 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29902 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29904 2015-03-16 Marek Polacek <polacek@redhat.com>
29906 * cgraph.h (add_new_static_var): Remove declaration.
29907 * varpool.c (add_new_static_var): Remove function.
29909 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29911 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29912 instead of vec<tree> * with vec_alloc and release for args.
29915 PR middle-end/65431
29916 * omp-low.c (delete_omp_context): Only splay_tree_delete
29917 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29918 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
29920 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
29923 * cfgexpand.c (align_base): New function.
29924 (alloc_stack_frame_space): Call it.
29925 (expand_stack_vars): Align prev_frame to be sure
29926 data->asan_vec elements aligned properly.
29928 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
29930 PR middle-end/65409
29931 * expr.c (store_field): Do not do a direct block copy if the source is
29932 a PARALLEL with BLKmode.
29934 2015-03-16 Tom de Vries <tom@codesourcery.com>
29936 PR middle-end/65414
29938 2015-03-12 Tom de Vries <tom@codesourcery.com>
29940 PR rtl-optimization/64895
29941 * lra-lives.c (check_pseudos_live_through_calls): Use
29942 actual_call_used_reg_set instead of call_used_reg_set, if available.
29944 2015-03-16 Alan Modra <amodra@gmail.com>
29947 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29948 Modify Z->r bswapdi splitter to use dest in place of scratch.
29949 In r->Z and Z->r bswapdi splitter rename word_high, word_low
29950 to word1, word2 and rearrange logic to suit.
29951 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29952 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
29953 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29954 Add one '?' on r->r. Modify Z->r splitter to avoid need for
29957 2015-03-14 Jakub Jelinek <jakub@redhat.com>
29959 PR tree-optimization/65369
29960 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29961 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29962 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29964 PR tree-optimization/65418
29965 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29966 are casts in the first PLUS_EXPR operand, ensure tbias and
29967 *totallowp are in the inner type.
29969 PR rtl-optimization/65401
29970 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29971 argument. If true, adjust_address_nv of x with big-endian
29972 correction for the mode widening to GET_MODE (y).
29973 (make_field_assignment): Don't do MEM mode widening here.
29974 Use MEM_P instead of GET_CODE == MEM.
29976 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
29978 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29979 the external decls.
29981 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29984 * config/arm/arm.c (arm_gen_constant, AND case): Use
29985 ARM_SIGN_EXTEND when constructing AND mask.
29987 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29989 * graph.c (print_graph_cfg): Make function names visible and append
29990 parenthesis to it. Also make groups of basic blocks belonging to the
29991 same function visible.
29993 2015-03-12 Richard Biener <rguenther@suse.de>
29995 PR middle-end/44563
29996 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29997 to avoid quadratic behavior with inline expansion splitting blocks.
29998 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29999 with the successor if the predecessor will be merged with it.
30000 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30001 entry block with its successor.
30003 2015-03-13 Richard Biener <rguenther@suse.de>
30005 PR middle-end/44563
30006 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30007 (cleanup_tree_cfg_1): Do not call it.
30008 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30009 (fixup_noreturn_call): Mark the stmt as control altering.
30010 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30012 (pass_data_fixup_cfg): Produce a dump file.
30013 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30014 (need_noreturn_fixup): New global.
30015 (pass_dominator::execute): Fixup queued noreturn calls.
30016 (optimize_stmt): Queue calls that became noreturn for fixup.
30017 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30018 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30019 (el_to_fixup): New global.
30020 (eliminate_dom_walker::before_dom_childre): Queue calls that
30021 became noreturn for fixup.
30022 (eliminate): Fixup queued noreturn calls.
30023 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30024 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30025 (substitute_and_fold_dom_walker::before_dom_children): Queue
30026 alls that became noreturn for fixup.
30027 (substitute_and_fold): Fixup queued noreturn calls.
30029 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
30031 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30032 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30033 are building; for methods check ODR type of class they belong to if
30034 they may lead to a polymorphic call.
30035 (sem_function::compare_polymorphic_p): Be bit smarter about testing
30036 when function may lead to a polymorphic call.
30037 (sem_function::compare_type_list): Remove.
30038 (sem_variable::equals): Update use of compatible_types_p.
30039 (sem_variable::parse_tree_refs): Remove.
30040 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30042 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30044 (func_checker::compatible_polymorphic_types_p): Break out from ...
30045 (unc_checker::compatible_types_p): ... here.
30046 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30048 (unc_checker::compatible_types_p): Update.
30049 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30052 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30054 PR rtl-optimization/65235
30055 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30056 When first element of vec_concat is const_int, calculate its size
30057 using second element.
30059 2015-03-12 Richard Biener <rguenther@suse.de>
30061 PR middle-end/65270
30062 * fold-const.c (operand_equal_p): Fix ordering of resetting
30063 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30065 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30067 * config/s390/s390.c (s390_reorg): Move code to output nops after label
30069 (s390_asm_output_function_label): Likewise.
30070 * config/s390/s390.c (s390_asm_output_function_label):
30071 Fix function label alignment with -mhtopatch.
30072 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30073 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30074 ("nop_2_byte"): New define_insn.
30075 ("nop_4_byte"): Likewise.
30076 ("nop_6_byte"): Likewise.
30077 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30078 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30080 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30083 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30086 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30089 * toplev.c (process_options): Restrict Pointer Bounds Checker
30090 usage with Address Sanitizer.
30092 2015-03-12 Richard Biener <rguenther@suse.de>
30094 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30096 * omp-low.c (expand_omp_taskreg): Split block before removing
30098 (expand_omp_target): Likewise.
30099 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30100 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30101 stmt to split_block.
30103 2015-03-12 Tom de Vries <tom@codesourcery.com>
30105 PR rtl-optimization/64895
30106 * lra-lives.c (check_pseudos_live_through_calls): Use
30107 actual_call_used_reg_set instead of call_used_reg_set, if available.
30109 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30111 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
30112 (cgraph_node::remove): Likewise.
30113 (cgraph_node::get_untransformed_body): Likewise.
30114 * varpool.c (varpool_node::remove): Likewise.
30115 (varpool_node::get_constructor): Add sanity check.
30117 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
30119 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
30121 (-fabi-compat-version): Likewise.
30122 (-ffriend-injection): Likewise.
30123 (-Wdeclaration-after-statement): Likewise.
30124 (-fomit-frame-pointer): Likewise.
30125 (-ftree-coalesce-inlined-vars): Likewise.
30126 (-fvisibility=): Likewise.
30127 * doc/extend.texi (Typeof): Likewise.
30128 (Zero Length): Likewise.
30129 (Escaped Newlines): Likewise.
30130 (Compound Literals): Likewise.
30131 (Function Attributes): Likewise.
30132 (Label Attributes): Likewise.
30133 (Type Attributes): Likewise.
30134 (Function Names): Likewise.
30135 (Other Builtins): Likewise.
30136 (Function Specific Option Pragmas): Likewise.
30137 (C++ Interface): Likewise.
30139 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
30141 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
30143 2015-03-11 Marek Polacek <polacek@redhat.com>
30145 PR tree-optimization/65388
30146 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
30148 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
30151 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
30152 * configure: Regenerate.
30153 * config.in: Regenerate.
30154 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
30155 [-mn-flash]: Document it.
30156 [__AVR_ARCH__]: Document avrtiny.
30158 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
30159 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
30160 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
30162 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30164 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
30166 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
30169 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
30170 allow reloads of PLUS in floating point/VSX registers.
30172 2015-03-11 Junmo Park <junmoz.park@samsung.com>
30174 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
30175 crypto_sha256_fast.
30176 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
30178 2015-03-11 Richard Biener <rguenther@suse.de>
30180 PR tree-optimization/65310
30181 * tree-sra.c (build_ref_for_offset): Also preserve larger
30184 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
30186 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
30188 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30191 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
30193 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
30195 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30197 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
30198 (sem_function::equals_wpa): ... here.
30200 2015-03-10 Marek Polacek <polacek@redhat.com>
30201 Jakub Jelinek <jakub@redhat.com>
30204 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
30205 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
30208 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30211 * config/rs6000/t-linux: For powerpc64* target set
30212 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
30214 2015-03-10 Richard Biener <rguenther@suse.de>
30216 PR middle-end/44563
30217 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
30218 for redirect_all_calls.
30220 2015-03-10 Marek Polacek <polacek@redhat.com>
30222 * gdbinit.in (pcfun): Define and document.
30224 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
30226 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
30227 of libgomp-plugin.h.
30228 (find_target_compiler): Support a case when the path to gcc is
30229 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
30230 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
30231 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
30233 (main): Use GCC_INSTALL_NAME as target_driver_name.
30234 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
30236 (mkoffload.o): Remove obsolete include path and defines.
30237 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
30239 2015-03-10 Richard Biener <rguenther@suse.de>
30241 PR middle-end/63155
30242 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30243 * tree-ssa-coalesce.c: Include timevar.h.
30244 (attempt_coalesce): Handle graph being NULL.
30245 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30246 Split out abnormal coalescing to ...
30247 (perform_abnormal_coalescing): ... this function.
30248 (coalesce_ssa_name): Perform abnormal coalescing without computing
30250 (verify_ssa_coalescing_worker): New function.
30251 (verify_ssa_coalescing): Likewise.
30253 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
30256 * config.gcc (extra_options) [avr]: Remove.
30257 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
30258 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
30259 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
30261 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
30262 (-mmcu=): Add Var and MissingArgError properties.
30264 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
30265 * config/avr/t-multilib: Regenerate.
30266 * config/avr/specs.h: New file.
30267 * config/avr/driver-avr.c: New file.
30268 * config/avr/genopt.sh: Remove file.
30269 * config/avr/avr-tables.opt: Remove file.
30270 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
30271 * config/avr/avr-c.c: Same.
30272 * avr-arch.h: Same.
30273 (avr_current_device): Remove proto.
30274 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
30275 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
30276 (EXTRA_SPEC_FUNCTIONS): Define.
30277 (avr_devicespecs_file): New specs function proto.
30278 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
30279 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
30280 (avr_current_device): Remove definition and usage.
30281 (avr_set_core_architecture): New static function.
30282 (avr_option_override): Use it.
30283 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
30284 (mcu_name): New static array.
30285 (comparator, avr_archs_str, avr_mcus_str): New static functions.
30286 (avr_inform_devices, avr_inform_core_architectures): New functions.
30287 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
30288 (avrlibc.h) [WITH_AVRLIBC]: Include.
30289 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
30290 (print_mcu): Rewrite from scratch.
30291 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
30292 Forward to avr-specific specs defined in device-specs file.
30293 * config/avr/t-avr (driver-avr.o): New rule.
30294 (avr-devices.o): Depend on avr-arch.h.
30295 (avr-mcus): No more depend on avr-tables.opt.
30296 (avr-tables.opt): Remove rule.
30297 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
30299 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
30301 * c-family/c.opt (fchkp-use-wrappers): New.
30302 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
30303 (chkp_wrap_function): New.
30304 (chkp_build_instrumented_fndecl): Support wrapped
30306 * doc/invoke.texi (-fcheck-pointer-bounds): New.
30307 (-fchkp-check-incomplete-type): New.
30308 (-fchkp-first-field-has-own-bounds): New.
30309 (-fchkp-narrow-bounds): New.
30310 (-fchkp-narrow-to-innermost-array): New.
30311 (-fchkp-optimize): New.
30312 (-fchkp-use-fast-string-functions): New.
30313 (-fchkp-use-nochk-string-functions): New.
30314 (-fchkp-use-static-bounds): New.
30315 (-fchkp-use-static-const-bounds): New.
30316 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
30317 (-fchkp-check-read): New.
30318 (-fchkp-check-write): New.
30319 (-fchkp-store-bounds): New.
30320 (-fchkp-instrument-calls): New.
30321 (-fchkp-instrument-marked-only): New.
30322 (-fchkp-use-wrappers): New.
30323 (-static-libmpx): New.
30324 (-static-libmpxwrappers): New.
30326 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
30328 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
30329 (CHKP_SPEC): Add wrappers library.
30330 * c-family/c.opt (static-libmpxwrappers): New.
30332 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
30334 * config/i386/linux-common.h (LIBMPX_LIBS): New.
30335 (LIBMPX_SPEC): New.
30337 * gcc.c (CHKP_SPEC): New.
30338 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
30339 * c-family/c.opt (static-libmpx): New.
30341 2015-03-10 Richard Biener <rguenther@suse.de>
30343 PR middle-end/44563
30344 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
30346 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
30347 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
30348 (cgraph_add_edge_to_call_site_hash): Likewise.
30349 (cgraph_node::get_edge): Likewise.
30350 (cgraph_edge::set_call_stmt): Likewise.
30351 (cgraph_edge::remove_caller): Likewise.
30353 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
30355 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
30356 (callee_saved_gpr_regs_size): ... this.
30357 (callee_saved_regs_first_regno): Rename to ...
30358 (callee_saved_first_gpr_regno): ... this.
30359 (callee_saved_regs_last_regno) Rename to ...
30360 (callee_saved_last_gpr_regno): ... this.
30361 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
30363 (nds32_initial_elimination_offset): Likewise.
30364 (nds32_expand_prologue): Likewise.
30365 (nds32_expand_epilogue): Likewise.
30366 (nds32_expand_prologue_v3push): Likewise.
30367 (nds32_expand_epilogue_v3pop): Likewise.
30368 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
30369 Adjust renamed variables.
30370 (nds32_output_stack_pop): Likewise.
30372 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
30374 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
30377 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30379 PR rtl-optimization/65321
30380 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
30382 * var-tracking.c (use_narrower_mode): Likewise.
30384 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30386 PR tree-optimization/65355
30387 * varasm.c (notice_global_symbol): Do not produce RTL.
30388 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
30390 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
30391 check for section anchors.
30393 2015-03-10 Alan Modra <amodra@gmail.com>
30396 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
30397 to be single-arch by default. Set cpu_is_64bit for powerpc64
30398 given --with-cpu=native.
30399 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
30400 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
30402 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
30403 rs6000_isa_flags rather than TARGET_64BIT.
30405 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
30406 Kaz Kojima <kkojima@gcc.gnu.org>
30408 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
30410 2015-03-09 Jakub Jelinek <jakub@redhat.com>
30413 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
30414 on a TREE_BINFO, instead use BINFO_TYPE.
30416 2015-03-09 Richard Biener <rguenther@suse.de>
30418 PR middle-end/65270
30419 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
30420 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
30421 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
30422 of that. When comparing dereferences compare alignment.
30423 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
30425 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
30427 * ipa-inline-analysis.c (check_callers): Check
30428 node->can_remove_if_no_direct_calls_and_refs_p.
30429 (growth_likely_positive): Reorganize to call
30430 can_remove_if_no_direct_calls_p later.
30431 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
30432 will_be_removed_from_program_if_no_direct_calls_p): Add
30433 will_inline parameter.
30434 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
30435 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30436 Handle inliner case correctly.
30438 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
30440 PR tree-optimization/63743
30441 * cfgexpand.c (reorder_operands): Also reorder if only second operand
30442 had its definition forwarded by TER.
30444 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
30447 * ipa-utils.h (types_odr_comparable): Add strict argument.
30448 * ipa-devirt.c: Fix whitespace;
30449 (odr_hasher): Remove.
30450 (odr_name_hasher, odr_vtable_hasher): New hashers.
30451 (can_be_name_hashed_p): New predicate.
30452 (hash_type_name): remove.
30453 (hash_odr_name): New.
30454 (odr_name_hasher::hash): new.
30455 (can_be_vtable_hashed_p): New.
30456 (hash_odr_vtable): New.
30457 (odr_vtable_hasher::hash): New.
30458 (types_same_for_odr): Add strict parameter.
30459 (types_odr_comparable): Likewise.
30460 (odr_name_hasher::equal): New.
30461 (odr_vtable_hasher::equal): New.
30462 (odr_name_hasher::remove): New.
30463 (odr_hash_type): Change to hash_table<odr_name_hasher>.
30464 (odr_vtable_hash_type): New.
30465 (odr_vtable_hash): New.
30466 (odr_subtypes_equivalent_p): Do strict comparsion.
30467 (add_type_duplicate): Merge type names; cleanup; avoid type
30469 (register_odr_type): Initialize vtable hash.
30470 (build_type_inheritance_graph): Likewise
30471 (get_odr_type): Reorg to use two hashes.
30472 (dump_possible_polymorphic_call_targets): Move sanity check after debug
30474 (ipa_devirt): Dump type_inheritance_graph.
30475 (types_same_for_odr): Add strict mode.
30477 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30480 * cgraph.h (symtab_node): Add definition_alignment,
30481 can_increase_alignment_p and increase_alignment.
30482 * symtab.c (symtab_node::can_increase_alignment_p,
30483 increase_alignment_1, symtab_node::increase_alignment,
30484 symtab_node::definition_alignment): New.
30485 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
30486 can_increase_alignment_p.
30487 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
30488 * tree-vect-stmts.c (ensure_base_align): Likewise.
30489 * varasm.c (function_section_1): Use definition_alignment.
30490 (assemble_start_function): Likewise.
30491 (emit_local): likewise.
30492 (build_constant_desc): Likewsie.
30493 (output_constant_def_contents): Likewise.
30494 (place_block_symbol): Likewise.
30495 (output_object_block): Likewise.
30497 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30500 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
30501 when outputting debug.
30503 2015-03-07 Marek Polacek <polacek@redhat.com>
30504 Martin Uecker <uecker@eecs.berkeley.edu>
30507 * doc/invoke.texi: Update description of -fsanitize=bounds.
30509 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
30511 * tree-ssa-phiopt.c (neg_replacement): Remove.
30512 (tree_ssa_phiopt_worker): Remove negate optimization.
30514 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30517 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
30519 2015-03-06 Richard Biener <rguenther@suse.de>
30521 PR middle-end/64928
30522 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
30523 and liveout_obstack members.
30524 (calculate_live_on_exit): Remove.
30525 (calculate_live_ranges): Change declaration.
30526 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
30527 (new_tree_live_info): Adjust.
30528 (calculate_live_ranges): Delete livein when not wanted.
30529 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
30530 Deal with partly deleted live info.
30531 (loe_visit_block): Remove temporary bitmap by using
30532 bitmap_ior_and_compl_into.
30533 (live_worklist): Adjust accordingly.
30534 (calculate_live_on_exit): Make static.
30535 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
30536 we do not need livein.
30538 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
30540 * real.c (real_from_string): Fix typo in assertion.
30542 2015-03-06 Alex Velenko <alex.velenko@arm.com>
30544 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
30547 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
30549 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
30551 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
30554 * lra-assigns.c (find_hard_regno_for): Rename to
30555 find_hard_regno_for_1. Add a new parameter.
30556 (find_hard_regno_for): New function using find_hard_regno_for_1.
30558 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
30560 PR rtl-optimization/65067
30561 * expmed.c (store_bit_field, extract_bit_field): Reworked the
30562 strict volatile bitfield handling.
30564 2015-03-05 Martin Liska <mliska@suse.cz>
30567 * ipa-icf.c (sem_variable::equals): Compare variables types.
30569 2015-03-05 Richard Henderson <rth@redhat.com>
30572 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
30573 correctly check weak symbol binding.
30575 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
30577 PR middle-end/65315
30578 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
30581 2015-03-05 Martin Liska <mliska@suse.cz>
30583 * ipa-inline.c (inline_small_functions): Set default value to
30584 prevent warning during bootstrap.
30585 * tree.h: Add pragma guard that ignores false positives during
30588 2015-03-05 Richard Biener <rguenther@suse.de>
30590 PR tree-optimization/65310
30591 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
30592 Properly preserve alignment of the base of the access.
30594 2015-03-05 Richard Biener <rguenther@suse.de>
30597 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
30598 Compare dependence info.
30600 2015-03-05 Richard Biener <rguenther@suse.de>
30602 PR middle-end/65233
30603 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
30605 (walk_ssa_copies): Revert last chage. Instead do not walk
30606 SSA names registered for SSA update.
30608 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30611 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
30612 vtable references for their containing type.
30613 (sem_function::equals_wpa): Compare TYPE_RESTRICT
30614 and type attributes.
30616 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
30618 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
30619 before negating it.
30620 * stor-layout.c (finalize_record_size): Revert latest change.
30622 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
30624 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
30626 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30628 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
30629 for correct comdat handling.
30630 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30632 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
30633 (used_from_object_file_p_worker): Remove.
30634 (cgraph_node::only_called_directly_or_alised): Add
30635 used_from_object_file_p.
30636 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
30637 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
30638 can_remove_if_no_direct_calls_and_refs_p.
30640 2015-03-04 Nick Clifton <nickc@redhat.com>
30642 * config/rl78/rl78.h (enum reg_class): Remove real registers from
30643 General register class.
30644 * config/rl78/rl78-real.md: Replace general register constraints
30645 with real+virtual register constraints.
30647 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30649 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
30650 from checking for -mhtm option.
30652 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30654 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
30655 (struct ipa_sra_check_caller_data): Add has_thunk field.
30656 (ipa_sra_check_caller): Check for thunk.
30657 (ipa_sra_preliminary_function_checks): Give up on function with
30659 (ipa_early_sra): Use call_for_symbol_and_aliases.
30661 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
30664 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
30665 called for __stack_chk_guard symbol.
30667 2015-03-03 DJ Delorie <dj@redhat.com>
30669 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
30671 (*addhi3_real): Likewise.
30672 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
30673 pattern to match incrementing memory.
30674 * config/rl78/predicates.md (rl78_1_2_operand): New.
30675 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
30676 it's the same and only mem.
30677 (rl78_alloc_physical_registers_op2): If there's effectively only
30678 one MEM, transcode it into HL.
30679 (rl78_far_p): Reject addresses that aren't legitimate.
30681 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30683 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
30686 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
30688 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30690 Implement call0 ABI for xtensa
30691 * config/xtensa/constraints.md ("a" constraint): Include stack
30692 pointer in case of call0 ABI.
30693 ("q" constraint): Make empty in case of call0 ABI.
30694 ("D" constraint): Include stack pointer in case of call0 ABI.
30695 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
30696 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
30698 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
30700 (xtensa_regno_to_class): Make it a local variable in the
30701 function xtensa_regno_to_class.
30702 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
30703 macro, function prototype and implementation.
30704 (reg_nonleaf_alloc_order): Make it a local variable in the
30705 function order_regs_for_local_alloc.
30706 (xtensa_conditional_register_usage): New function.
30707 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
30708 (xtensa_valid_move): Allow direct moves to stack pointer
30709 register in call0 ABI.
30710 (xtensa_setup_frame_addresses): Only spill register windows in
30712 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
30713 call0 ABI respectively.
30714 (xtensa_function_arg_1): Only mark a7 register for copying in
30716 (xtensa_call_save_reg): New function.
30717 (compute_frame_size): Add space for callee saved register
30718 storage to the frame size in call0 ABI.
30719 (xtensa_expand_prologue): Generate code to set up stack frame
30720 and save callee-saved registers in call0 ABI.
30721 (xtensa_expand_epilogue): New function.
30722 (xtensa_set_return_address): New function.
30723 (xtensa_return_addr): Calculate return address in call0 ABI.
30724 (xtensa_builtin_saveregs): Only mark a7 register for copying and
30725 emit copying code in windowed ABI.
30726 (order_regs_for_local_alloc): Add preferred register allocation
30727 order for non-leaf function in call0 ABI.
30728 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
30729 (xtensa_asm_trampoline_template): Add trampoline generation for
30731 (xtensa_trampoline_init): Add trampoline initialization for
30733 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
30735 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
30736 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
30737 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
30738 ABI call-used registers.
30739 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
30740 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
30742 (REG_CLASS_CONTENTS): Include all registers into the preferred
30743 reload registers set, adjust the set in the
30744 xtensa_conditional_register_usage.
30745 (xtensa_regno_to_class): Drop variable declaration.
30746 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
30748 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
30750 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
30751 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
30752 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
30753 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
30754 location in call0 ABI.
30755 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
30756 stack adjustment size when handling exception.
30757 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
30758 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
30760 ("return" pattern): Generate ret.n/ret in call0 ABI.
30761 ("epilogue" pattern): Expand epilogue.
30762 ("nonlocal_goto" pattern): Use default in call0 ABI.
30763 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
30764 emit eh_set_a0_* depending on ABI.
30765 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
30766 ("eh_set_a0_call0", "blockage"): New patterns.
30768 2015-03-03 Martin Liska <mliska@suse.cz>
30771 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
30773 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30776 * config/rs6000/rs6000-tables.opt: Regenerate table.
30778 2015-03-03 Renlin Li <renlin.li@arm.com>
30780 * doc/md.texi (@item ^): Change ? into ^.
30782 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
30784 * doc/tm.texi: Regenerated.
30786 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30788 * builtins.c (expand_builtin_return_addr): Add
30789 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
30790 surrounding #ifdef.
30791 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
30793 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
30795 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
30797 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
30800 2015-03-03 Martin Jambor <mjambor@suse.cz>
30801 Eric Botcazou <ebotcazou@adacore.com>
30803 * tree-sra.c (ipa_sra_check_caller_data): New type.
30804 (has_caller_p): Removed.
30805 (ipa_sra_check_caller): New function.
30806 (ipa_sra_preliminary_function_checks): Use it.
30808 2015-03-03 Martin Liska <mliska@suse.cz>
30810 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
30811 instead of if branch.
30813 2015-03-03 Martin Liska <mliska@suse.cz>
30816 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
30818 2015-03-23 Jeff Law <law@redhat.com>
30820 PR tree-optimization/65241
30821 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
30822 hash table if INSERT is true.
30824 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30827 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
30829 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30832 * config/avr/avr.c (context.h, tree-pass.h): Include them.
30833 (avr_pass_data_recompute_notes): New static variable.
30834 (avr_pass_recompute_notes): New class.
30835 (avr_register_passes): New static function.
30836 (avr_option_override): Call it.
30838 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30840 Fix various problems with specs file generation.
30843 * config.gcc (extra_gcc_objs) [avr]: Remove.
30844 * config/avr/driver-avr.c: Remove file.
30845 * config/avr/t-avr (driver-avr.o): Remove rule.
30846 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30847 INCLUDES to build. Depend on TM_H.
30848 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
30849 build warnings. Fix non-matching types and non-existing %-codes.
30851 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30852 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30853 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30854 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30855 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30856 (LIBGCC_SPEC): Remove definitions.
30858 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30860 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30861 to create a register in testing mode.
30863 2015-03-03 Martin Liska <mliska@suse.cz>
30864 Jan Hubicka <hubicka@ucw.cz>
30867 * cgraph.c (cgraph_node::has_thunk_p): New function.
30868 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30869 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30870 (sem_function::merge): Assert is changed.
30872 2015-03-03 Martin Liska <mliska@suse.cz>
30873 Martin Jambor <mjambor@suse.cz>
30876 * ipa-icf.c (sem_item_optimizer::execute): Change function
30877 return value to boolean.
30878 (sem_item_optimizer::merge_classes): Likewise.
30879 (ipa_icf_driver): Return TODO_remove_functions in case there's
30880 a merge operation processed.
30881 * ipa-icf.h: Change function return value to boolean.
30883 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30886 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30887 processor type for 64-bit little endian PowerPC.
30889 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30890 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
30891 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
30892 printing built-in mask so it does not pass NULL pointers.
30894 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30897 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
30900 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30901 !ISA_HAS_FP_CONDMOVE.
30903 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
30905 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30908 2015-03-02 Ulrich Drepper <drepper@gmail.com>
30910 * doc/invoke.texi (Options for Code Generation Conventions):
30911 Fix URL of DSO paper.
30913 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30916 * ipa-inline.c (check_callers): Looks for recursion.
30917 (inline_to_all_callers): Give up on uninlinable or recursive edges.
30918 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30919 summary of inline clones.
30920 (do_estimate_growth_1): Fix recursion check.
30922 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30925 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30928 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30929 Aldy Hernandez <aldyh@redhat.com>
30932 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30933 when checking TYPE_BINFO.
30935 2015-03-02 Richard Biener <rguenther@suse.de>
30938 * ipa-icf-gimple.c: Include builtins.h.
30939 (func_checker::compare_memory_operand): Compare base alignment.
30941 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30944 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
30945 passed by reference.
30947 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30950 * tree-chkp.c (chkp_check_lower): Don't check against
30951 zero bounds for already instrumented functions.
30952 (chkp_check_upper): Likewise.
30953 (chkp_fini): Clean pass local data to avoid wrong reusage.
30955 2015-02-28 Martin Liska <mliska@suse.cz>
30956 Jan Hubicka <hubicka@ucw.cz>
30958 * ipa-icf.c (sem_variable::equals): Improve debug output;
30959 get variable constructor.
30960 (sem_variable::parse): Do not filter out too early; give up on
30961 volatile and register vars.
30962 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30964 * ipa-icf.h (sem_variable::init): Do not set ctor.
30965 (sem_variable::ctor): Remove.
30967 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
30969 PR middle-end/65233
30970 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30972 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30974 * ipa-icf.c: Include stor-layout.h
30975 (sem_function::compare_cgraph_references): Rename to ...
30976 (sem_item::compare_cgraph_references): ... this one.
30977 (sem_variable::equals_wpa): New function
30978 (sem_variable::equals): Do not check stuff already verified by
30980 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30981 * ipa-icf.h (sem_item): Add compare_cgraph_references.
30982 (sem_function): Remove compare_cgraph_references.
30983 (sem_variable): Turns equals_wpa into non-inline.
30985 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30987 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30988 (sem_item::add_expr): New function.
30989 (sem_function::hash_stmt): Handle operands of most statements.
30990 (sem_variable::get_hash): Hash the actual constructor.
30991 * ipa-icf.h (sem_item): Add add_expr.
30992 (sem_function): Update prototype of hash_stmt
30994 2015-02-28 Martin Liska <mliska@suse.cz>
30995 Jan Hubicka <hubicka@ucw.cz>
30998 * ipa-icf-gimple.c (func_checker::compare_function_decl):
31000 (func_checker::compare_variable_decl): Skip symtab vars.
31001 (func_checker::compare_cst_or_decl): Update.
31002 * ipa-icf.c (sem_function::parse): Do not consider aliases.
31003 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31004 use correct symtab predicates.
31005 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31006 (sem_variable::parse): Update comment.
31007 (sem_item_optimizer::build_graph): Consider ultimate aliases
31010 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31012 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31015 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31017 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31018 (sem_variable::merge) Likewise.
31020 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31022 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31023 target; also match flag_ipa_devirt.
31025 2015-03-01 Martin Liska <mliska@suse.cz>
31026 Jan Hubicka <hubicka@ucw.cz>
31028 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31029 Validate variable alignment.
31030 * ipa-icf.c (sem_function::equals_private): Be more precise
31031 about non-common function attributes.
31032 (sem_variable::equals): Likewise.
31034 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31037 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31038 across COMDAT group boundary.
31040 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31043 * ipa-icf.c (clear_decl_rtl): New function.
31044 (sem_function::merge): Clear RTL before forming alias.
31045 (sem_variable::merge): Clear RTL before forming alias.
31047 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31050 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31052 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
31054 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31057 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31059 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31060 a typo in the description.
31062 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31065 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31066 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31067 * lra-constraints.c: Include "params.h".
31068 (EBB_PROBABILITY_CUTOFF): Use
31069 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31070 (lra_inheritance): Use '<' instead of '<=' for
31071 EBB_PROBABILITY_CUTOFF.
31072 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31075 2015-02-27 Martin Liska <mliska@suse.cz>
31077 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31078 vector length condition.
31080 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
31082 * doc/extend.texi (x86 transactional memory intrinsics):
31083 Reorganize discussion of _xbegin. Clarify that the return
31084 value is a bit mask. Expand example and move to end of section.
31086 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31087 Aldy Hernandez <aldyh@redhat.com>
31089 PR rtl-optimization/65220
31090 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31092 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31095 * lra-remat.c (update_scratch_ops): New.
31096 (do_remat): Call it.
31097 * lra.c (lra_register_new_scratch_op): New. Take code from ...
31098 (remove_scratches): ... here.
31099 * lra-int.h (lra_register_new_scratch_op): New prototype.
31101 2015-02-27 Marek Polacek <polacek@redhat.com>
31104 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
31105 -Wformat-signedness anymore.
31107 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31109 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
31111 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
31113 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31115 * config/s390/s390.c (enum s390_builtin):
31116 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
31117 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
31118 (s390_init_builtins): Generate new builtin functions.
31119 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
31120 (s390_sfpc, s390_efpc): New pattern definitions.
31122 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31124 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
31125 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
31126 (s390_builtin_decls): New array.
31127 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
31128 (s390_builtin_decl): New function.
31129 (TARGET_BUILTIN_DECL): Define macro.
31131 2015-02-27 Richard Biener <rguenther@suse.de>
31133 PR middle-end/63175
31134 * builtins.c (get_object_alignment_2): Make sure to re-apply
31135 the ANDed mask after recursing to its operand gets us a new
31136 misalignment bit position.
31138 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
31139 Martin Liska <mliska@suse.cz>
31142 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
31143 Use address_matters_p.
31144 (redirect_all_callers, set_addressable): New functions.
31145 (sem_function::merge): Reorganize and fix merging issues.
31146 (sem_variable::merge): Likewise.
31147 (sem_variable::compare_sections): Remove.
31148 * common.opt (fmerge-all-constants, fmerge-constants): Remove
31150 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
31152 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
31154 (address_matters_1): New function.
31155 (symtab_node::address_matters_p): New function.
31156 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
31157 check for merged flag.
31158 * cgraph.h (address_matters_p): Declare.
31159 (symtab_node::address_taken_from_non_vtable_p): Remove.
31160 (symtab_node::address_can_be_compared_p): New method.
31161 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
31162 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
31164 (comdat_can_be_unshared_p_1) Use address_matters_p.
31165 (update_vtable_references): Fix formating.
31166 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
31167 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
31168 * cgraphclones.c: Preserve merged and icf_merged flags.
31170 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
31172 * doc/extend.texi (Function Attributes): Fix spelling and typos.
31173 (Label Attributes): Likewise.
31174 (Cilk Plus Builtins): Likewise.
31175 (ARC SIMD Built-in Functions): Likewise.
31176 (ARM C Language Extensions (ACLE)): Likewise.
31177 (PowerPC Built-in Functions): Likewise.
31178 (PowerPC Hardware Transactional Memory Built-in Functions):
31181 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31183 PR tree-optimization/65216
31184 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
31185 new stmt and new SSA_NAME for lhs whenever the arguments have
31186 changed and weren't just swapped. Fix comment typo.
31188 PR tree-optimization/65215
31189 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
31190 for PDP endian targets.
31191 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
31192 Fix up formatting issues.
31193 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
31194 size is smaller than the original, adjust MEM_REF offset by the
31195 difference of sizes. Use is_gimple_mem_ref_addr instead of
31196 is_gimple_min_invariant test to avoid adding address temporaries.
31198 2015-02-26 Martin Liska <mliska@suse.cz>
31199 Jan Hubicka <hubicka@ucw.cz>
31202 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
31203 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
31204 (sem_item_optimizer::process_cong_reduction): Include division by
31205 sensitive references.
31206 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
31207 * ipa-ref.c (ipa_ref::address_matters_p): New function.
31208 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
31210 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
31213 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
31215 * config/avr/avr.c: Same.
31216 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
31217 Refuse any constant address not in 0..0xbf.
31218 * config/avr/avr.md (*mov<mode>, *movsf): Remove
31219 tiny_valid_direct_memory_access_range from insn conditions.
31220 (mov<mode>): Don't special-case expansion of avrtiny addresses.
31222 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
31225 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
31226 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
31227 * config/sh/predicates.md (const_logical_operand): New predicate.
31228 * config/sh/sh.md: Add new peephole2 patterns.
31230 2015-02-26 Marek Polacek <polacek@redhat.com>
31233 * ipa-inline.c (early_inliner): Recompute inline parameters.
31235 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31238 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
31239 instructions with TImode operands are included in the analysis.
31241 2015-02-26 Sebastian Pop <s.pop@samsung.com>
31243 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
31244 of an EDGE_FSM_THREAD.
31246 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
31248 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
31250 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
31253 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
31255 2015-02-26 Sebastian Pop <s.pop@samsung.com>
31257 PR tree-optimization/65048
31258 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
31259 (thread_through_all_blocks): Call valid_jump_thread_path.
31260 Remove invalid FSM jump-thread paths.
31262 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31264 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
31265 (ipa_write_optimization_summaries): Likewise.
31266 * tree-streamer.h: Include data-streamer.h.
31267 (streamer_mode_table): Declare extern variable.
31268 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
31269 * lto-streamer-out.c (lto_output_init_mode_table,
31270 lto_write_mode_table): New functions.
31271 (produce_asm_for_decls): Call lto_write_mode_table when streaming
31273 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
31274 (lto_create_simple_input_block): Add mode_table argument to the
31275 lto_input_block constructors.
31276 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
31278 * data-streamer-in.c (string_for_index): Likewise.
31279 * ipa-inline-analysis.c (inline_read_section): Likewise.
31280 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
31281 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
31282 * lto-streamer-in.c (lto_read_body_or_constructor,
31283 lto_input_toplevel_asms): Likewise.
31284 (lto_input_mode_table): New function.
31285 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
31286 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
31287 Use bp_pack_machine_mode.
31288 * real.h (struct real_format): Add name field.
31289 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
31290 (class lto_input_block): Add mode_table member.
31291 (lto_input_block::lto_input_block): Add mode_table_ argument,
31292 initialize mode_table.
31293 (struct lto_file_decl_data): Add mode_table field.
31294 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
31295 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
31296 unpack_ts_decl_common_value_fields,
31297 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
31298 * tree-streamer.c (streamer_mode_table): New variable.
31299 * real.c (ieee_single_format, mips_single_format,
31300 motorola_single_format, spu_single_format, ieee_double_format,
31301 mips_double_format, motorola_double_format,
31302 ieee_extended_motorola_format, ieee_extended_intel_96_format,
31303 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
31304 ibm_extended_format, mips_extended_format, ieee_quad_format,
31305 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
31306 decimal_single_format, decimal_double_format, decimal_quad_format,
31307 ieee_half_format, arm_half_format, real_internal_format): Add name
31309 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
31311 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
31314 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
31315 reordering for selective scheduling.
31317 2015-02-26 Terry Guo <terry.guo@arm.com>
31319 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
31320 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
31321 (arm_arch_no_volatile_ce): Declare new global variable.
31322 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
31323 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
31324 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
31325 (TARGET_NO_VOLATILE_CE): New macro.
31326 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
31327 volatile memory access in IT block
31329 2015-02-25 Kai Tietz <ktietz@redhat.com>
31331 PR tree-optimization/61917
31332 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
31333 that reduc_def_stmt is null.
31335 2015-02-25 Martin Liska <mliska@suse.cz>
31337 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
31338 hard register variables.
31340 2015-02-25 Kai Tietz <ktietz@redhat.com>
31343 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
31344 (symtab::noninterposable_alias): Likewise.
31346 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
31349 * config/i386/i386.c (ix86_function_arg_regno_p): Support
31351 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
31353 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
31356 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
31357 as split condition; force split via '#' in output pattern.
31359 2015-02-25 Richard Biener <rguenther@suse.de>
31360 Kai Tietz <ktietz@redhat.com>
31362 PR tree-optimization/61917
31363 * tree-vect-loop.c (vectorizable_reduction): Allow
31364 vect_internal_def without reduction to exit graceful.
31366 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
31369 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
31370 only with NONDEBUG_INSN_P.
31372 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
31374 Use variadic macros with avr-log.c.
31376 * config/avr/avr-protos.h (avr_vdump): New prototype.
31377 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
31378 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
31379 * config/avr/avr-log.c: Adjust comments.
31380 (avr_vdump): New function.
31381 (avr_vadump): Pass caller as 2nd argument instead of format string.
31382 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
31383 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
31385 2015-02-25 Jakub Jelinek <jakub@redhat.com>
31388 * target.def (target_option_stream_in): New target hook.
31389 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
31390 targetm.target_option.post_stream_in if non-NULL.
31391 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
31392 * doc/tm.texi: Updated.
31393 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
31395 (TARGET_OPTION_POST_STREAM_IN): Redefine.
31397 2015-02-24 Jeff Law <law@redhat.com>
31400 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
31401 of operand 0 and operand 2.
31402 (zero_cost_loop_end, loop_end): Similarly.
31404 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
31406 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
31409 2015-02-24 DJ Delorie <dj@redhat.com>
31411 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
31412 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
31413 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
31414 instead of hardcoding SImode.
31416 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
31418 * omp-low.c (create_omp_child_function): Tag entrypoint
31419 functions with a special attribute.
31421 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31424 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
31426 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
31428 PR rtl-optimization/65123
31429 * lra-remat.c (operand_to_remat): Check hard regs in insn
31432 2015-02-24 Nick Clifton <nickc@redhat.com>
31434 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
31437 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
31440 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
31441 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
31442 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
31443 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
31444 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
31445 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
31446 (BUILT_IN_GOACC_PARALLEL): Specify as
31447 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
31448 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
31449 * builtin-types.def
31450 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31451 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31452 Remove function types.
31453 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
31454 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31455 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31456 New function types.
31458 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
31460 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
31462 2015-02-24 Jakub Jelinek <jakub@redhat.com>
31464 PR tree-optimization/65170
31465 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
31466 if val[1] < 0, clear also val[2] and return 3.
31468 2015-02-24 Alan Modra <amodra@gmail.com>
31471 * config/rs6000/rs6000.c (get_memref_parts): Only return true
31472 when *base is a reg. Handle nested plus addresses. Simplify
31475 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
31477 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
31478 use natural alignment when optimizing for size.
31480 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
31483 * config/sh/sh.md (movsicc_true+3): Remove peephole.
31484 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
31485 * config/sh/sh.c (replace_n_hard_rtx): Remove.
31487 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
31490 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
31491 too big for a wide_int. Implement missing wrapping operation.
31493 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
31496 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
31497 instead of const_int 4294901760.
31499 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
31501 * config/avr/t-avr: Fix typo in comment.
31503 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
31505 * doc/rtl.texi (fma): Clarify documentation.
31507 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
31510 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
31511 over input_location.
31513 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
31515 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
31516 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
31517 restrict alignments to absolute_biggest_alignment.
31518 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
31520 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
31521 * doc/tm.texi: Regenerate.
31522 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
31524 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
31527 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
31529 2015-02-20 Richard Biener <rguenther@suse.de>
31531 PR tree-optimization/65136
31532 * tree-ssa-propagate.c: Include cfgloop.h.
31533 (replace_phi_args_in): Avoid replacing loop latch edge PHI
31534 arguments with constants.
31536 2015-02-20 Jakub Jelinek <jakub@redhat.com>
31537 Martin Liska <mliska@suse.cz>
31540 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
31541 don't try to create_thunk if stdarg_p. If
31542 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
31543 redirect_callers if possible.
31544 (sem_item_optimizer::execute): Call unregister_hooks here...
31545 (ipa_icf_driver): ... instead of here.
31547 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31549 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
31550 Mark operand 0 as earlyclobber in 2nd alternative.
31551 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
31552 Write negated shift amount into QI lowpart operand 0 and use it
31554 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
31556 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
31558 * cgraph.h (clone_function_name_1): Declare.
31559 * cgraphclones.c (clone_function_name_1): New function.
31560 (clone_function_name): Use it.
31561 * lto-partition.c: Include "stringpool.h".
31562 (must_not_rename, maybe_rewrite_identifier)
31563 (validize_symbol_for_target): New static functions.
31564 (privatize_symbol_name): Use must_not_rename.
31565 (promote_symbol): Call validize_symbol_for_target.
31566 (lto_promote_cross_file_statics): Likewise.
31567 (lto_promote_statics_nonwpa): Likewise.
31569 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
31572 * config/avr/avr.md (pushhi_insn): New insn.
31573 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
31575 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
31576 Jakub Jelinek <jakub@redhat.com>
31578 * tree-streamer.c (preload_common_nodes): Don't preload
31579 TI_VA_LIST* for offloading.
31580 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
31583 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
31585 * config/pa/pa.c (pa_emit_move_sequence): Always force
31586 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
31589 * config/pa/pa.c (pa_reloc_rw_mask): New function.
31590 (TARGET_ASM_RELOC_RW_MASK): Define.
31591 (pa_cannot_force_const_mem): Revert previous change.
31593 2015-02-19 Martin Jambor <mjmabor@suse.cz>
31594 Jan Hubicka <hubicka@ucw.cz>
31597 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
31598 across jump functions.
31600 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
31602 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
31604 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
31606 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
31608 2015-02-19 Richard Henderson <rth@redhat.com>
31610 PR middle-end/65074
31611 * varasm.c (default_binds_local_p_2): Don't test node->definition;
31612 test DECL_EXTERNAL independent of symtab_node.
31614 2015-02-19 Jakub Jelinek <jakub@redhat.com>
31617 * varpool.c (varpool_node::get_constructor): Return early
31618 if this->lto_file_data is NULL.
31620 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31622 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
31623 (rank_for_schedule_debug): Update.
31624 (ready_sort): Make static. Move sorting logic to ...
31625 (ready_sort_debug, ready_sort_real): New static functions.
31626 (schedule_block): Sort both debug insns and real insns in preparation
31627 for ready list trimming. Improve debug output.
31628 * sched-int.h (ready_sort): Remove global declaration.
31630 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
31632 * ipa-icf.c (sem_function::equals_private): Adjust.
31633 (sem_function::bb_dict_test): Take a vec<int> * instead of
31635 * ipa-icf.h (bb_dict_test): Likewise.
31637 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31639 PR gcov-profile/64634
31640 * tree-eh.c (frob_into_branch_around): Fix up typos
31641 in function comment.
31642 (lower_catch): Put eh_seq resulting from EH lowering of
31643 the cleanup sequence after the cleanup rather than before it.
31645 2015-02-18 Tom de Vries <tom@codesourcery.com>
31647 * common.opt (fstdarg-opt): New option.
31648 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
31649 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
31650 (@item -fstdarg-opt): New item.
31652 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
31655 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
31656 for common symbols.
31658 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31660 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
31662 (ALL_HOST_OBJS): Add mkoffload.o.
31663 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
31665 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
31667 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
31668 (compare_virtual_tables): Be smarter about skipping typeinfos;
31669 do sane output on virtual table table mismatch.
31670 (warn_odr): Be ready for forward declarations of enums;
31671 output sane info on base mismatch and virtual table mismatch.
31672 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
31673 when only one type is polymorphic.
31674 (get_odr_type): Fix hashtable corruption.
31675 (dump_odr_type): Dump mangled names.
31677 2015-02-18 Richard Biener <rguenther@suse.de>
31679 PR tree-optimization/65063
31680 * tree-predcom.c (determine_unroll_factor): Return 1 if we
31681 have replaced looparound PHIs.
31683 2015-02-18 Martin Liska <mliska@suse.cz>
31685 * lto-streamer.c (lto_streamer_init): Encapsulate
31686 streamer_check_handled_ts_structures with checking macro.
31688 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31691 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
31692 section if !implicit_section.
31693 (cgraph_node::create_version_clone_with_body): Likewise.
31694 * trans-mem.c (ipa_tm_create_version): Likewise.
31696 2015-02-18 Richard Biener <rguenther@suse.de>
31698 PR tree-optimization/62217
31699 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
31702 2015-02-18 Marek Polacek <polacek@redhat.com>
31705 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
31706 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
31707 is in range [-16K, -1]. Don't issue run-time error if
31708 (ptr > ptr + offset).
31710 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
31712 * doc/install.texi (nvptx-*-none): New section.
31713 * doc/invoke.texi (Nvidia PTX Options): Likewise.
31714 * config/nvptx/nvptx.opt: Update.
31716 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
31717 (access_check): New functions, copied from
31718 config/i386/intelmic-mkoffload.c.
31719 (main): For non-installed testing, look in all COMPILER_PATHs for
31722 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
31724 2015-02-18 Andrew Pinski <apinski@cavium.com>
31725 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31727 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
31728 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
31730 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
31732 * ipa-visibility.c (function_and_variable_visibility): Only
31733 check locality if node is not already local.
31734 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31735 call_for_symbol_and_aliases instead of
31736 call_for_symbol_thunks_and_aliases.
31737 (ipa_inline): Likewise.
31738 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31739 first walk aliases.
31740 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31741 call_for_symbol_and_aliases.
31742 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31743 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31744 (ipa_propagate_frequency): Update.
31745 (ipa_profile): Add opt_for_fn gueards.
31747 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
31749 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
31750 * doc/invoke.texi (SH options): Document it.
31751 * config/sh/sh.c (sh_insn_length_adjustment): Check
31752 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
31754 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
31756 * common.opt (fipa-cp-alignment): New.
31757 * ipa-cp.c (ipcp_store_alignment_results): Check
31758 flag_ipa_cp_alignment.
31759 * opts.c (default_options_table): Enable -fipa-cp-alignment for
31761 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
31762 * doc/invoke.texi: Document -fipa-cp-alignment.
31764 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
31767 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
31768 to nil. Adjust comments.
31770 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
31772 * ipa-visibility.c (function_and_variable_visibility): Only
31773 check locality if node is not already local.
31774 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31775 call_for_symbol_and_aliases instead of
31776 call_for_symbol_thunks_and_aliases.
31777 (ipa_inline): Likewise.
31778 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31779 first walk aliases.
31780 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31781 call_for_symbol_and_aliases.
31782 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31783 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31784 (ipa_propagate_frequency): Update.
31785 (ipa_profile): Add opt_for_fn guards.
31787 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
31789 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
31790 skipping of "strange" tokens.
31792 2015-02-17 Jeff Law <law@redhat.com>
31794 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
31797 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
31799 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
31800 as forcing a HARD_DEP between instructions, thereby
31801 disallowing rewriting to break dependencies.
31803 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31805 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
31806 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
31807 variables in boundary that have no inlitalizer encoded and are
31809 * varasm.c (default_binds_local_p_2): External definitions do not
31810 count as definitions here.
31812 2015-02-16 Jeff Law <law@redhat.com>
31814 PR tree-optimization/64823
31815 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
31817 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31818 threading through blocks with PHIs, but no statements.
31819 (thread_through_normal_block): Distinguish between blocks where
31820 we did not process all the statements and blocks with no statements.
31822 2015-02-16 Jakub Jelinek <jakub@redhat.com>
31823 James Greenhalgh <james.greenhalgh@arm.com>
31826 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31827 section if not linkonce. Fix up formatting.
31828 (cgraph_node::create_version_clone_with_body): Copy section.
31829 * trans-mem.c (ipa_tm_create_version): Likewise.
31831 2015-02-16 Richard Biener <rguenther@suse.de>
31833 PR tree-optimization/65077
31834 * tree-ssa-structalias.c (get_constraint_for_1): Handle
31835 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
31836 (find_func_aliases): Allow float values to carry pointers again.
31838 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31840 * doc/install.texi (Specific): Reorder targets list to put
31841 aarch64 in alphabetical order. Add a link to aarch64*-*-*
31844 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31845 David Edelsohn <dje.gcc@gmail.com>
31848 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31849 mapping class to external variable or function reference.
31850 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31853 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
31856 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31857 ASM_WEAKEN_DECL if defined.
31859 2015-02-16 Richard Biener <rguenther@suse.de>
31862 * varasm.c (default_file_start): For LTO produced units
31863 emit <artificial> as file directive.
31865 2015-02-16 Richard Biener <rguenther@suse.de>
31867 PR tree-optimization/63593
31868 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31869 stmts and releasing SSA names until...
31870 (execute_pred_commoning): ... after processing all chains.
31872 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31875 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31876 external functions.
31878 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
31880 * doc/bugreport.texi: Adjust section titles throughout the file
31881 to use "Title Case".
31882 * doc/extend.texi: Likewise.
31883 * doc/gcov.texi: Likewise.
31884 * doc/implement-c.texi: Likewise.
31885 * doc/implement-cxx.texi: Likewise.
31886 * doc/invoke.texi: Likewise.
31887 * doc/objc.texi: Likewise.
31888 * doc/standards.texi: Likewise.
31889 * doc/trouble.texi: Likewise.
31891 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
31893 * cgraph.h (symtab_node::has_aliases_p): Simplify.
31894 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31895 * tree.c (lookup_binfo_at_offset): Make static.
31896 (get_binfo_at_offset): Do not shadow offset; add explanatory
31899 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
31901 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31902 for all floading point loads and stores except those using a register
31904 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31907 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31909 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31910 (do_estimate_growth_1): Record if any uninlinable edge was seen.
31911 (estimate_growth): Handle uninlinable edges correctly.
31912 (check_callers): New.
31913 (growth_likely_positive): Handle aliases correctly.
31915 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31917 * ipa-chkp.c: Use iterate_direct_aliases.
31918 * symtab.c (resolution_used_from_other_file_p): Move inline.
31919 (symtab_node::create_reference): Fix formating.
31920 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31921 (symtab_node::iterate_reference): Move inline.
31922 (symtab_node::iterate_referring): Move inline.
31923 (symtab_node::iterate_direct_aliases): Move inline.
31924 (symtab_node::used_from_object_file_p_worker): Inline into ...
31925 (symtab_node::used_from_object_file_p): ... this one; move inline.
31926 (symtab_node::call_for_symbol_and_aliases): Move inline;
31927 use iterate_direct_aliases.
31928 (symtab_node::call_for_symbol_and_aliases_1): New method.
31929 (cgraph_node::call_for_symbol_and_aliases): Move inline;
31930 use iterate_direct_aliases.
31931 (cgraph_node::call_for_symbol_and_aliases_1): New method.
31932 (varpool_node::call_for_node_and_aliases): Rename to ...
31933 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31934 use iterate_direct_aliases.
31935 (varpool_node::call_for_symbol_and_aliases_1): New method.
31936 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31937 (ipa_discover_readonly_nonaddressable_var): Update.
31938 * ipa-devirt.c: Fix formating.
31939 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31941 (cgraph_node::call_for_symbol_and_aliases): Move inline.
31942 (cgraph_node::call_for_symbol_and_aliases_1): New function..
31943 * cgraph.h (used_from_object_file_p_worker): Remove.
31944 (resolution_used_from_other_file_p): Move inline.
31945 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31946 (symtab_node::iterate_reference): Move inline.
31947 (symtab_node::iterate_referring): Move inline.
31948 (symtab_node::iterate_direct_aliases): Move inline.
31949 (symtab_node::used_from_object_file_p_worker): Inline into ...
31950 (symtab_node::used_from_object_file_p): Move inline.
31951 * tree-emutls.c (ipa_lower_emutls): Update.
31952 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31953 (varpool_node::call_for_node_and_aliases): Remove.
31955 2015-02-14 Jakub Jelinek <jakub@redhat.com>
31957 PR tree-optimization/62209
31958 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31959 op == range->exp, insert seq and gimplified code after labels
31960 instead of after the phi.
31962 2015-02-13 Jeff Law <law@redhat.com>
31965 Revert my change for tree-optimization/64823.
31967 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31969 PR tree-optimization/65053
31970 * tree-ssa-phiopt.c (value_replacement): When moving assign before
31971 cond, either reset VR on lhs or set it to phi result VR.
31973 2015-02-13 Jeff Law <law@redhat.com>
31975 PR tree-optimization/64823
31976 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31977 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31978 threading through blocks with PHIs, but no statements.
31979 (thread_through_normal_block): Distinguish between blocks where
31980 we did not process all the statements and blocks with no statements.
31982 PR rtl-optimization/47477
31983 * match.pd (convert (plus/minus (convert @0) (convert @1): New
31984 simplifier to narrow arithmetic.
31986 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
31989 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31990 polymorphic call info when type is not known to be preserved.
31992 2015-02-13 Maritn Jambor <mjambor@suse.cz>
31995 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31996 (inline_call): Use it.
31998 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
32000 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32001 GOMP_DEVICE_NVIDIA_PTX.
32003 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32006 * stmt.c (emit_case_nodes): Use void_type_node instead of
32007 NULL_TREE as LABEL_DECL type.
32009 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
32011 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32013 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32014 symbolic references to data to be forced to constant memory on the
32017 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
32019 PR tree-optimization/65002
32020 * tree-cfg.c (pass_data_fixup_cfg): Don't update
32022 * tree-sra.c (some_callers_have_no_vuse_p): New.
32023 (ipa_early_sra): Reject functions whose callers
32024 assume function is read only.
32026 2015-02-13 Richard Biener <rguenther@suse.de>
32029 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32030 for LTO produced CUs.
32032 2015-02-13 Bin Cheng <bin.cheng@arm.com>
32034 PR tree-optimization/64705
32035 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32036 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32037 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32038 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32039 expand_simple_operations.
32041 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
32042 Richard Henderson <rth@redhat.com>
32045 * cgraphunit.c (cgraph_node::finalize_function): Set definition
32046 before notice_global_symbol.
32047 (varpool_node::finalize_decl): Likewise.
32048 * varasm.c (default_binds_local_p_2): Rename from
32049 default_binds_local_p_1, add weak_dominate argument. Use direct
32050 returns instead of assigning to local variable. Unify varpool and
32051 cgraph paths via symtab_node. Reject undef weak variables before
32052 testing visibility. Reorder tests for simplicity.
32053 (default_binds_local_p): Use default_binds_local_p_2.
32054 (default_binds_local_p_1): Likewise.
32055 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32057 (default_elf_asm_output_external): Emit visibility when specified.
32059 2015-02-13 Alan Modra <amodra@gmail.com>
32061 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32062 code setting up r11 for out-of-line fp restore.
32064 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
32066 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32067 (muser-mode): Likewise.
32069 2015-02-13 Alan Modra <amodra@gmail.com>
32071 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32072 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32074 2015-02-12 David Howells <dhowells@redhat.com>
32076 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32078 * tree-ssa-uninit.c (dump_predicates): Likewise.
32079 * opts.c (print_filtered_help): Likewise.
32081 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32083 * dwarf2out.c (output_die): Use "%s", name instead of name to
32084 avoid -Wformat-security warning.
32086 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32087 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32088 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32089 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32091 2015-02-12 Jason Merrill <jason@redhat.com>
32093 * common.opt (-flifetime-dse): New.
32095 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32098 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32100 PR tree-optimization/65014
32101 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32102 use original second operand of arg0 or arg1 instead of
32103 that adjusted by STRIP_NOPS.
32105 2015-02-11 Jeff Law <law@redhat.com>
32108 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
32109 that needs to be queued, just queue it for a single cycle.
32111 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
32113 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
32114 bodies of thunks; comment on why.
32115 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
32116 symbols are extern.
32118 2015-02-11 Richard Henderson <rth@redhat.com>
32121 * tree-eh.c (mark_reachable_handlers): Mark source and destination
32122 regions of __builtin_eh_copy_values.
32124 2015-02-11 Jakub Jelinek <jakub@redhat.com>
32126 PR middle-end/65003
32127 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
32128 ultimate alias is MEM with SYMBOL_REF satisfying
32129 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
32130 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
32132 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
32134 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
32135 "diagnostic-core.h".
32136 (main): Initialize progname, and call diagnostic_initialize.
32138 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
32139 instead of __OPENMP_TARGET__.
32141 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
32142 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
32143 hard-coding PTX_ID.
32145 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
32147 * doc/sourcebuild.texi (pie_enabled): Document.
32149 2015-02-11 Martin Liska <mliska@suse.cz>
32152 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
32153 a return value for call to a function that is noreturn.
32155 2015-02-11 Richard Biener <rguenther@suse.de>
32158 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
32161 2015-02-11 Andrew Pinski <apinski@cavium.com>
32164 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
32165 Change the first argument type to size_type_node and add another
32167 (aarch64_simd_expand_builtin): Handle the new argument to
32168 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
32169 print an out when the first two arguments are not
32170 nonzero integer constants.
32171 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
32172 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
32174 2015-02-11 Jakub Jelinek <jakub@redhat.com>
32177 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
32178 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
32179 (ix86_set_current_function): Rewritten.
32180 (ix86_add_new_builtins): Temporarily clear current_target_pragma
32181 when creating builtin fndecls.
32183 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32186 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
32188 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
32189 have no comdat group.
32190 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
32191 (lto_output_varpool_node): Always output alias info.
32192 (output_refs): Output refs of boundary aliases, too.
32193 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
32194 (output_symtab): Output call eges in thunks in boundary.
32195 (get_alias_symbol): Remove.
32196 (input_node, input_varpool_node): Do not special case weakrefs.
32197 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
32198 alias and thunks targets in the boundary; do not take removed symbols
32199 from their comdat groups.
32200 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
32201 (cgraph_node::global_info): Remove.
32202 (cgraph_node::rtl_info): Look through aliases and thunks.
32203 * cgrpah.h (global_info): Remove.
32204 (non_local_p): Remove.
32206 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32207 Sandra Loosemore <sandra@codesourcery.com>
32209 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
32210 to inline asm. List dialects in proper order.
32212 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32213 Sandra Loosemore <sandra@codesourcery.com>
32215 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
32217 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32219 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
32220 modified) reference to Solaris.
32222 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
32224 * doc/extend.texi (Extended Asm): Fix typos.
32226 2015-02-10 Jakub Jelinek <jakub@redhat.com>
32229 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
32231 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
32234 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
32235 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
32236 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
32237 * config/sh/constraints.md (Ara, Add): New constraints.
32238 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
32240 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
32241 atomic_mem_operand_0. Don't use force_reg on the memory address.
32242 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
32243 Sra constraint. Convert to insn_and_split. Add workaround for
32245 (atomic_compare_and_swap<mode>_hard): Copy to
32246 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
32247 Use atomic_mem_operand_0 predicate.
32248 (atomic_compare_and_swap<mode>_soft_gusa,
32249 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
32250 AraAdd constraints.
32251 (atomic_compare_and_swap<mode>_soft_tcb,
32252 atomic_compare_and_swap<mode>_soft_imask,
32253 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
32254 atomic_mem_operand_0 predicate and SraSdd constraints.
32255 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
32257 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
32258 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
32259 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
32260 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
32261 force_reg on the memory address.
32262 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
32263 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
32264 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
32265 atomic_mem_operand_1 predicate and Sra constraint.
32266 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
32267 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
32268 Use atomic_mem_operand_1 predicate.
32269 (atomic_<fetchop_name><mode>_hard): Copy to
32270 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
32271 Use atomic_mem_operand_1 predicate.
32272 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
32273 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
32274 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
32275 insn_and_split. Use atomic_mem_operand_1 predicate.
32276 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
32277 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
32278 Use atomic_mem_operand_1 predicate.
32279 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
32280 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
32281 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
32282 in generated insn with original mem operand before emitting the insn.
32283 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
32284 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
32285 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
32286 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
32287 Use atomic_mem_operand_1 predicate and AraAdd constraints.
32288 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
32289 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
32290 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
32291 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
32292 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
32293 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
32294 atomic_not_fetch<mode>_soft_tcb,
32295 atomic_<fetchop_name>_fetch<mode>_soft_imask,
32296 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
32297 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
32298 Use atomic_mem_operand_1 predicate and SraSdd constraints.
32300 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
32302 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
32303 and 3 earlyclobber operands.
32305 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32307 * common.opt (fstack-reuse): Mark as optimization.
32309 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32312 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
32314 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
32316 PR tree-optimization/64326
32317 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
32319 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
32321 PR gcov-profile/61889
32322 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
32324 2015-02-10 Richard Biener <rguenther@suse.de>
32326 PR tree-optimization/64995
32327 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
32328 value we use is final.
32329 (visit_reference_op_store): Always valueize op.
32330 (visit_use): Properly valueize vuses.
32332 2015-02-10 Richard Biener <rguenther@suse.de>
32334 PR tree-optimization/64909
32335 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
32336 pass a scalar-stmt count estimate to the cost model.
32337 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
32339 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
32341 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
32342 enabled by default together with var-tracking.
32344 2015-02-10 Nick Clifton <nickc@redhat.com>
32346 * config/rl78/rl78.c: Remove DIV attribute code accidentally
32347 included in previous rl78 commit.
32349 2015-02-10 Richard Biener <rguenther@suse.de>
32351 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
32352 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
32353 return the bitpack.
32355 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
32357 PR gcov-profile/61889
32358 * config.in: regenerate.
32359 * configure.in: Likewise.
32360 * configure.ac: Check for ftw.h.
32361 * gcov-tool.c: Check for ftw.h before using nftw.
32363 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
32366 * ipa-visibility.c (update_visibility_by_resolution_info): Only
32367 assert when not in lto mode.
32369 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32371 * ira-color.c (setup_left_conflict_sizes_p): Simplify
32372 initialization/assignment of conflict_size.
32374 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
32377 * ipa-cp.c (gather_caller_stats): Skip thunks.
32378 (propagate_constants_topo): Skip aliases.
32380 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
32383 * config/sh/sh.c (sh_option_override): Don't change
32384 -freorder-blocks-and-partition to -freorder-blocks even when
32385 unwinding is enabled.
32386 (sh_can_follow_jump): Return false if the followee jump is
32387 a crossing jump when -freorder-blocks-and-partition is specified.
32388 * config/sh/sh.md (*jump_compact_crossing): New insn.
32390 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
32391 Kaz Kojima <kkojima@gcc.gnu.org>
32394 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
32395 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
32396 (sh_can_redirect_branch): Rename to ...
32397 (sh_can_follow_jump): ... this. Constify argument types.
32398 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
32399 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
32400 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
32401 * doc/tm.texi: Regenerate.
32403 2015-02-09 Jakub Jelinek <jakub@redhat.com>
32406 * builtins.c (expand_builtin): Call targetm.expand_builtin
32407 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
32409 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32412 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
32414 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32417 * ipa-icf.c (set_local): New function.
32418 (sem_function::merge): Use it.
32420 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32422 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
32423 (add_type_duplicate): Fix comparison of BINFOs.
32425 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32427 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
32428 on getting VOID pointer.
32430 2015-02-09 Jakub Jelinek <jakub@redhat.com>
32433 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
32436 2015-02-09 Richard Biener <rguenther@suse.de>
32438 * genmatch.c (replace_id): Copy expr_type.
32440 2015-02-09 Richard Biener <rguenther@suse.de>
32442 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
32443 (streamer_write_tree_bitfields): Declare.
32444 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
32445 properly unpack padding.
32446 (unpack_value_fields): Inline ...
32447 (streamer_read_tree_bitfields): ... here.
32448 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
32449 and properly add padding bits.
32450 (streamer_pack_tree_bitfields): Fold into ...
32451 (streamer_write_tree_bitfields): ... this new function,
32452 exposing the bitpack object.
32453 * lto-streamer-out.c (lto_write_tree_1): Call
32454 streamer_write_tree_bitfields.
32456 2015-02-09 Richard Biener <rguenther@suse.de>
32458 PR tree-optimization/54000
32459 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
32460 (struct ivopts_data): Add loop_loc member.
32461 (tree_ssa_iv_optimize_loop): Dump loop location.
32462 (create_new_ivs): Likewise, also dump number of IVs generated.
32464 2015-02-09 Martin Liska <mliska@suse.cz>
32466 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
32467 just if not yet registered.
32468 (ipa_icf_generate_summary): Register callgraph hooks.
32470 2015-02-08 Andrew Pinski <apinski@cavium.com>
32472 * config/aarch64/aarch64.c (gty_dummy): Delete.
32474 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32477 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
32478 (cgraph_node::local_p): Remove thunk related FIXME.
32480 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32483 * i386.c (ix86_function_regparm): Look through aliases to see if callee
32484 is local and optimized.
32485 (ix86_function_sseregparm): Likewise; also use target's SSE math
32486 settings; error out instead of silently generating wrong code
32488 (init_cumulative_args): Look through aliases.
32490 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32493 * ipa-split.c (execute_split_functions): Split if function has aliases.
32495 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
32498 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
32499 aliases before trying to expand it.
32500 (cgraph_node::expand_thunk): Fix formating.
32502 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
32504 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
32505 (Using Assembly Language with C): Expand introduction.
32506 (Basic Asm): Copy-edit. Add more information about uses of
32508 (Extended Asm): Copy-edit. Document new escape syntax and
32510 (Global Reg Vars): Copy-edit.
32511 (Local Reg Vars): Likewise.
32513 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
32517 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
32518 (DBX_CONTIN_CHAR): Define.
32520 2015-02-06 Sebastian Pop <s.pop@samsung.com>
32521 Brian Rzycki <b.rzycki@samsung.com>
32523 PR tree-optimization/64878
32524 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
32525 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
32526 Stop recursion at loop phi nodes after having visited a loop phi node.
32528 2015-02-06 Jakub Jelinek <jakub@redhat.com>
32530 * toplev.c (process_options): Change flag_ipa_ra before creating
32531 optimization_{default,current}_node.
32534 * cgraphunit.c (cgraph_node::expand_thunk): If
32535 restype is not is_gimple_reg_type nor the thunk_fndecl
32536 returns aggregate_value_p, set restmp to a temporary variable
32537 instead of resdecl.
32539 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
32541 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
32543 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32546 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
32547 add a general secondary reload handler for SDmode, unless we have
32548 both read/write support for SDmode.
32550 2015-02-06 Jakub Jelinek <jakub@redhat.com>
32552 PR middle-end/64937
32553 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
32554 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
32555 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
32556 1 before, push it to abstract_vec.
32557 (dwarf2out_abstract_function): Adjust caller. Don't call
32558 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
32559 DECL_ABSTRACT_P flags for all abstract_vec elts.
32561 2015-02-06 Renlin Li <renlin.li@arm.com>
32563 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
32565 * tree-ssa.c (execute_update_addresses_taken): Likewise.
32567 2015-02-06 Jeff Law <law@redhat.com>
32570 * config/h8300/h8300.c (push): New argument "in_prologue".
32571 Pass "in_prologue" along to "F".
32572 (h8300_push_pop): Corresponding changes.
32573 (h8300_expand_prologue): Likewise.
32574 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
32576 2015-02-06 Jakub Jelinek <jakub@redhat.com>
32578 PR rtl-optimization/64957
32580 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
32581 IOR rather than for AND.
32583 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
32586 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
32587 of shift-add and (add + shift) operations. Rename local variable.
32589 2015-02-05 Jeff Law <law@redhat.com>
32592 * config/h8300/constraints.md (U): Correctly dectect
32593 "eightbit_data" memory addresses.
32594 * config/h8300/h8300.c (eightbit_constant_address_p): Also
32595 handle (const (plus (symbol_ref (x)))) where x is declared
32596 as an 8-bit data memory address.
32597 * config/h8300/h8300.md (call, call_value): Correctly detect
32598 "funcvec" functions.
32601 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
32602 24 to 28 bits for the H8/300.
32604 2015-02-06 Alan Modra <amodra@gmail.com>
32607 * config/rs6000/rs6000.c (chain_already_loaded): New function.
32608 (rs6000_call_aix): Use it.
32610 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
32612 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
32615 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
32617 * config/h8300/constraints.md ("U" constraint): Use strict
32618 variant of REG_OK_FOR_BASE_P after reload has started.
32620 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
32622 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
32623 define to zero if !TARGET_NEON.
32624 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
32626 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32627 Trevor Saunders <tsaunders@mozilla.com>
32630 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
32632 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32635 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
32636 when removing varpool nodes.
32638 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32641 * varpool.c (varpool_node::remove): Fix order of variables.
32643 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32646 * ipa-inline.c (inline_small_functions): Fix ordering issue between
32647 speculation resolution and key updates.
32649 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32651 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
32652 about not letting any speculative edges unupdated.
32654 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32657 * gcov-io.c (gcov_var): Export.
32659 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32661 PR middle-end/64922
32662 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
32663 edges that become speculative.
32665 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32667 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
32668 or DW_LANG_Fortran08.
32669 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
32671 (gen_compile_unit_die): Handle "GNU Fortran2003" and
32672 "GNU Fortran2008" language strings.
32673 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
32674 * langhooks.h (lang_GNU_Fortran): New prototype.
32675 * langhooks.c (lang_GNU_Fortran): New function.
32676 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
32679 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32681 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
32682 (RTX_OK_FOR_OLO10_P): Likewise.
32684 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32686 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
32688 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32690 PR middle-end/64922
32691 * gimple.c: Include gimple-ssa.h.
32692 (maybe_remove_unused_call_args): New function.
32693 * gimple.h (maybe_remove_unused_call_args): Declare.
32694 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
32695 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32696 * gimple-fold.c (gimple_fold_call): Likewise.
32698 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
32700 PR rtl-optimization/64905
32701 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
32702 pointer alignment if it isn't needed.
32704 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32706 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
32707 cortex-a72.cortex-a53.
32708 * config/aarch64/aarch64-tune.md: Regenerate.
32709 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
32711 2015-02-04 Nick Clifton <nickc@redhat.com>
32713 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
32716 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32718 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
32719 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
32720 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
32722 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
32723 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
32724 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
32725 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
32726 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
32727 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
32728 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
32729 * tree-core.h (enum built_in_function): In between
32730 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
32731 for builtins that use DEF_BUILTIN_CHKP macro.
32733 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
32736 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
32737 operands for tcc_comparison exprs. Fix typos.
32740 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
32741 of two XORs that have an intervening AND or IOR.
32744 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
32745 simplification of XOR of AND to not allocate new rtx before
32746 committing to a simplification.
32748 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32750 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
32751 manual swaps in all peepholes.
32753 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32755 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
32756 of manual swapping implementation.
32757 (aarch64_expand_vec_perm_const_1): Likewise.
32759 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
32761 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
32762 (generic_addrcost_table): Remove NAMED_PARAM.
32763 (cortexa57_addrcost_table): Likewise.
32764 (xgene1_addrcost_table): Likewise.
32765 (generic_regmove_table): Likewise.
32766 (cortexa53_regmove_table): Likewise.
32767 (xgene1_regmove_table): Likewise.
32768 (generic_vector_table): Likewise.
32769 (cortexa57_vector_table): Likewise.
32770 (xgene1_vector_table): Likewise.
32771 (generic_tunings): Likewise.
32772 (cortexa53_tunings): Likewise.
32773 (cortexa57_tunings): Likewise.
32774 (xgene1_tunings): Likewise.
32776 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32778 * config/arm/arm-cores.def: Add cortex-a72 and
32779 cortex-a72.cortex-a53.
32780 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
32781 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
32782 * config/arm/arm-tune.md: Regenerate.
32783 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
32784 "cortex-a72.cortex-a53".
32785 * doc/invoke.texi (ARM Options/-mtune): Likewise.
32787 2015-02-04 Nick Clifton <nickc@redhat.com>
32790 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
32792 (nonimmediate_di_operand): Likewise.
32794 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
32795 prefixes of known F5 using MSP430 MCUs.
32797 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32799 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
32800 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
32801 instead of __builtin_sqrt.
32803 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
32805 * varasm.c (do_assemble_alias): Follow transparent alias
32807 (default_assemble_visibility): Follow transparent alias
32808 chain for decl name.
32810 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32812 PR middle-end/62103
32813 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
32814 to compute size of referenced value in the constant case.
32816 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32818 PR rtl-optimization/64756
32819 * cse.c (invalidate_dest): New function.
32820 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
32821 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
32822 invalidate and do not record it.
32824 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32827 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
32828 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
32829 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
32830 atomic_nand<mode>_soft_tcb): New insns.
32831 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
32832 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
32833 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
32834 Split into atomic_not_fetchsi_hard if operands[0] is unused.
32835 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
32836 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32837 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
32838 atomic_not<mode>_hard if operands[0] is unused.
32839 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
32840 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
32841 if operands[0] is unused.
32842 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
32843 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
32844 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
32845 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32847 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
32848 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32849 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32850 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32851 if operands[0] is unused.
32852 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
32853 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32854 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
32855 atomic_nand_fetchsi_hard if operands[0] is unused.
32856 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
32857 atomic_nand<mode>_hard if operands[0] is unused.
32858 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
32859 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32860 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
32861 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32862 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
32863 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32864 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32865 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32866 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
32867 atomic_not<mode>_hard if operands[0] is unused.
32868 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32869 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32871 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32872 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32873 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
32874 atomic_nand<mode>_hard if operands[0] is unused.
32875 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32876 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32878 2015-02-03 David Malcolm <dmalcolm@redhat.com>
32881 * Makefile.in (GCC_OBJS): Add gcc-main.o.
32882 * gcc-main.c: New file, containing "main" taken from gcc.c.
32883 * gcc.c (do_self_spec): Free decoded_options.
32884 (class driver): Move declaration to gcc.h.
32885 (main): Move declaration and implementation to new file
32887 (driver_get_configure_time_options): New function.
32888 * gcc.h (class driver): Move this declaration here, from
32890 (driver_get_configure_time_options): New declaration.
32892 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
32894 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32895 cross-module inlining.
32896 * cgraph.h (cgraph_node): Add flag merged.
32897 * ipa-icf.c (sem_function::merge): Maintain it.
32899 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
32901 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32902 instead of OBJECT_P.
32904 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
32907 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32908 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32909 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32910 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32912 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32915 * combine.c (reg_n_sets_max): New variable.
32916 (can_change_dest_mode, reg_nonzero_bits_for_combine,
32917 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32918 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32919 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32920 (rest_of_handle_combine): Initialize reg_n_sets_max.
32922 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
32924 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32925 if some always_inline was inlined, apply changes before inlining
32928 2015-02-02 David Malcolm <dmalcolm@redhat.com>
32931 * config/arm/arm.c (arm_option_override): Set
32932 arm_selected_arch/cpu/tune to NULL on entry.
32934 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
32935 Andrew Pinski <pinskia@gcc.gnu.org>
32936 Jakub Jelinek <jakub@gcc.gnu.org>
32939 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32940 integer typing for small model. Use IN_RANGE.
32942 2015-02-02 Richard Biener <rguenther@suse.de>
32944 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32945 * tree-vrp.c (vrp_valueize_1): Likewise.
32947 2015-02-02 Alan Modra <amodra@gmail.com>
32949 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32950 than mem for toc_restore.
32951 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32952 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32953 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32955 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
32958 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32959 explicit default options.
32961 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
32964 * ipa-utils.c (ipa_merge_profiles): Add release argument.
32965 * ipa-icf.c (sem_function::merge): Do not release body when merging.
32966 * ipa-utils.h (ipa_merge_profiles): Update prototype.
32968 2015-02-01 Jakub Jelinek <jakub@redhat.com>
32971 * cfgexpand.c (deep_ter_debug_map): New variable.
32972 (avoid_deep_ter_for_debug): New function.
32973 (expand_debug_expr): If TERed SSA_NAME is in
32974 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32975 instead of trying to expand SSA_NAME's def stmt.
32976 (expand_debug_locations): When expanding debug bind
32977 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32978 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32980 (pass_expand::execute): Call avoid_deep_ter_for_debug on
32981 all debug bind stmts. Delete deep_ter_debug_map after
32982 expand_debug_location if non-NULL and clear it.
32984 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
32987 * config/sh/sync.md (atomic_fetch_notsi_hard,
32988 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32989 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32990 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32991 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32992 atomic_not_fetch<mode>_soft_imask): New insns.
32994 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32996 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32997 (rank_for_schedule_debug): Split from ...
32998 (rank_for_schedule): ... this.
32999 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33000 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33002 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33004 * doc/md.texi (Machine Constraints): Alphabetize table by target.
33005 * doc/extend.texi (x86 Variable Attributes): Move section to
33006 correct alphabetization after renaming.
33007 (x86 Type Attributes): Likewise.
33008 (Target Builtins): Re-alphabetize menu.
33009 (x86 Built-in Functions): Move section to correct alphabetization
33011 (x86 transactional memory intrinsics): Likewise.
33012 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33013 and x86 Windows Options in table and menu.
33014 (x86 Options): Move section to correct alphabetization after
33016 (x86 Windows Options): Likewise.
33018 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33020 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33021 preferred names of the architecture and its 32- and 64-bit
33023 * doc/invoke.texi: Likewise.
33024 * doc/md.texi: Likewise.
33026 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33029 * config/i386/predicates.md (address_no_seg_operand): Reject
33030 non-CONST_INT_P operands in invalid mode.
33032 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33034 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33035 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
33036 * config/i386/predicates.md (address_no_seg_operand): Call
33037 address_operand with VOIDmode.
33038 (vsib_address_operand): Ditto.
33039 (address_mpx_no_base_operand): Ditto.
33040 (address_mpx_no_index_operand): Ditto.
33042 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33045 * lra-constraints.c (original_subreg_reg_mode): New.
33046 (simplify_operand_subreg): Try to simplify subreg of const. Use
33047 original_subreg_reg_mode for it.
33048 (swap_operands): Update original_subreg_reg_mode.
33049 (curr_insn_transform): Set up original_subreg_reg_mode.
33051 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33054 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33056 (process_alt_operands): Use it.
33057 (curr_insn_transform): Check the optional reload pseudo class is
33060 2015-01-30 Joseph Myers <joseph@codesourcery.com>
33062 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33063 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33065 * toplev.h (init_asm_output): Update comment on use of
33066 UNKNOWN_LOCATION with fatal_error.
33067 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33068 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33069 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33070 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33071 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33072 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33073 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33074 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33075 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33076 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33077 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33078 fatal_error changed to pass input_location as first argument.
33080 2015-01-30 Martin Liska <mliska@suse.cz>
33082 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33083 in #pragma GCC diagnostic guards.
33085 2015-01-30 Richard Biener <rguenther@suse.de>
33087 PR tree-optimization/64829
33088 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33089 not add a widening conversion pattern but hand off extra
33090 widenings to callers.
33091 (vect_recog_widen_mult_pattern): Handle extra widening produced
33092 by vect_handle_widen_op_by_const.
33093 (vect_recog_widen_shift_pattern): Likewise.
33094 (vect_pattern_recog_1): Remove excess vertical space in dumping.
33095 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33096 (vect_init_vector_1): Likewise.
33097 (vect_get_vec_def_for_operand): Likewise.
33098 (vect_finish_stmt_generation): Likewise.
33099 (vectorizable_load): Likewise.
33100 (vect_analyze_stmt): Likewise.
33101 (vect_is_simple_use): Likewise.
33103 2015-01-29 Jeff Law <law@redhat.com>
33105 * combine.c (try_combine): Fix typo in comment.
33107 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
33110 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
33111 (rs6000_stack_info): Add assert.
33112 (rs6000_output_savres_externs): New function, split off from...
33113 (rs6000_output_function_prologue): ... here. Do not call it for
33116 2015-01-29 Jeff Law <law@redhat.com>
33119 * combine.c (try_combine): If I0 is a memory load and I3 a store
33120 to a related address, increase the "goodness" of doing a 4-insn
33121 combination with I0-I3.
33122 (make_field_assignment): Handle SUBREGs in the ior+and case.
33124 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
33126 PR tree-optimization/64746
33127 * tree-if-conv.c (mask_exists): New function.
33128 (predicate_mem_writes): Save created mask with given size for further
33130 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
33131 (ifcvt_repair_bool_pattern): Collect all statements that are root
33132 of bool pattern and use iterative algorithm to remove multiple uses
33133 of predicates, display number of required iterations.
33135 2015-01-29 Richard Biener <rguenther@suse.de>
33137 PR tree-optimization/64853
33138 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
33139 stmt will get simulated again.
33140 * tree-ssa-ccp.c (valueize_op_1): Likewise.
33142 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33144 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
33145 return_in_pc. Remove redundant assignments.
33146 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
33147 (arm_expand_epilogue): Don't compare boolean with true in if condition.
33149 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
33151 * config/i386/i386.c (ix86_mode_after): Make static.
33153 2015-01-29 Richard Biener <rguenther@suse.de>
33155 PR tree-optimization/64844
33156 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
33157 dump cost model analysis.
33158 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33159 Do not register adjusted load/store costs here.
33161 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
33162 Uros Bizjak <ubizjak@gmail.com>
33164 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
33165 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
33166 using x86_use_pseudo_pic_reg.
33167 * config/i386/i386.c (ix86_conditional_register_usage): Remove
33168 support for fixed PIC register.
33169 (ix86_use_pseudo_pic_reg): Not static any more.
33171 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
33173 PR middle-end/64805
33174 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
33175 to avoid error in cgraph node verification.
33177 2015-01-29 Marek Polacek <polacek@redhat.com>
33179 * doc/standards.texi: Reflect that the default for C is gnu11.
33181 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
33184 * reorg.c (switch_text_sections_between_p): New function.
33185 (relax_delay_slots): Call it when testing if the jump insn
33186 is removable. Use targetm.can_follow_jump when testing if
33187 the conditional branch can follow an unconditional jump.
33189 2015-01-27 Caroline Tice <cmtice@google.com>
33191 Committing VTV Cywin/Ming patch for Patrick Wollgast
33192 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
33193 if -fvtable-verify=preinit/std is used.
33194 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
33195 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
33196 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
33197 if -fvtable-verify=preinit/std is used.
33198 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
33199 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
33200 if -fvtable-verify=preinit/std is used.
33201 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
33202 * config/i386/mingw32.h (LIB_SPEC): Likewise.
33203 * varasm.c (assemble_variable): Add code to properly set the comdat
33204 section and name for the .vtable_map_vars section in case the
33205 target is PE or COFF.
33207 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
33210 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
33211 make sane BB profile.
33212 (cgraph_node::expand_thunk): Make sane BB profile.
33213 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
33214 * cgraph.h (init_lowered_empty_function): Update prototype.
33215 * config/i386/i386.c (make_resolver_func): Update call.
33216 * predict.c (gate): Disable branch prediction pass if
33217 profile is already there.
33219 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
33221 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
33222 * opth-gen.awk: Likewise.
33223 * common.opt: Mark flag_fp_contract_mode as Optimization.
33225 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
33227 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
33228 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
33230 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
33233 * config/sh/predicates.md (atomic_arith_operand,
33234 atomic_logical_operand): Remove.
33235 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
33236 (atomic_arith_operand_0): New predicate.
33237 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
33238 Use atomic_arith_operand_0 for input values.
33239 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
33240 atomic_compare_and_swap<mode>_soft_gusa,
33241 atomic_compare_and_swap<mode>_soft_tcb,
33242 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
33243 arith_reg_operand instead of register_operand.
33244 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
33245 atomic_arith_operand_0 for newval input.
33246 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
33247 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
33248 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
33249 arith_reg_operand instead of register_operand.
33250 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
33251 fetchop_predicate_1, fetchop_constraint_1_llcs,
33252 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
33253 fetchop_constraint_1_imask): New code iterator attributes.
33254 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
33255 register_operand. Use fetchop_predicate_1.
33256 (atomic_fetch_<fetchop_name>si_hard,
33257 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
33258 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
33259 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
33260 and arith_reg_operand instead of register_operand. Use
33261 fetchop_predicate_1, fetchop_constraint_1_gusa.
33262 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
33263 and arith_reg_operand instead of register_operand. Use
33264 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
33266 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
33267 and arith_reg_operand instead of register_operand. Use
33268 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
33270 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
33271 register_operand. Use atomic_logical_operand_1.
33272 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
33273 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
33274 arith_reg_operand instead of register_operand.
33275 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
33276 Use arith_reg_dest and arith_reg_operand instead of register_operand.
33277 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
33278 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
33279 register_operand. Use fetchop_predicate_1.
33280 (atomic_<fetchop_name>_fetchsi_hard,
33281 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
33282 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33283 fetchop_constraint_1_llcs.
33284 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
33285 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33286 fetchop_constraint_1_gusa.
33287 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
33288 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33289 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
33290 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
33291 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
33292 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
33293 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
33294 register_operand. Use atomic_logical_operand_1.
33295 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
33296 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
33297 arith_reg_operand instead of register_operand.
33298 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
33299 arith_reg_operand instead of register_operand. Use logical_operand
33300 and K08. Adjust asm sequence to allow R0 usage.
33301 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
33302 arith_reg_operand instead of register_operand. Use logical_operand
33305 2015-01-28 Jakub Jelinek <jakub@redhat.com>
33308 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
33309 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
33310 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
33311 only get_full_len HOST_WIDE_INTs from get_val () array rather than
33312 all bits in *val_wide.
33314 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
33316 * varpool.c (tls_model_names): Fix names.
33317 (varpool_node::dump): Dump tls- prefix for tls models.
33319 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
33320 Bernd Schmidt <bernds@codesourcery.com>
33321 Nathan Sidwell <nathan@codesourcery.com>
33323 * config/nvptx/mkoffload.c: New file.
33324 * config/nvptx/t-nvptx: Add build rules for it.
33325 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
33326 (extra_programs): Add mkoffload.
33327 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
33329 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
33331 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
33333 PR middle-end/64809
33334 * cfgexpand.c (reorder_operands): Skip debug gimples.
33336 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
33338 PR tree-optimization/64277
33339 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
33340 range info when possible to refine estimation.
33342 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
33344 PR tree-optimization/64718
33345 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
33346 be a 16bit unsigned integer when n->range is 16.
33347 (bswap_replace): Convert src to that type if necessary for all bswap
33348 sizes. Fix rotation right notation in nearby comment. Use bswap_type
33349 set in pass_optimize_bswap::execute ().
33351 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
33353 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
33354 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
33355 integer and floating point variants.
33356 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
33358 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
33360 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
33361 for all vector modes.
33363 2015-01-28 Jakub Jelinek <jakub@redhat.com>
33366 * doc/sourcebuild.texi (comdat_group): Document.
33368 2015-01-28 Terry Guo <terry.guo@arm.com>
33370 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
33372 2015-01-27 David Malcolm <dmalcolm@redhat.com>
33374 * toplev.c (print_version): Add param "show_global_state", and
33375 only print GGC and plugin information if it is true.
33376 (init_asm_output): Pass in "true" for the new param when calling
33378 (process_options): Likewise.
33379 (toplev::main): Likewise.
33380 * toplev.h (print_version): Add new param to decl.
33382 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
33386 * tree.c (lookup_binfo_at_offset): New function.
33387 (get_binfo_at_offset): Use it.
33389 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
33392 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
33393 on vtable being vtable.
33395 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
33397 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
33398 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
33399 -mhotpatch= option.
33400 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
33401 -mno-hotpatch options. Change syntax of -mhotpatch= option.
33402 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
33404 (s390_hotpatch_trampoline_halfwords_max): Renamed.
33405 (s390_hotpatch_hw_max): New name.
33406 (s390_hotpatch_trampoline_halfwords): Renamed.
33407 (s390_hotpatch_hw_before_label): New name.
33408 (get_hotpatch_attribute): Removed.
33409 (s390_hotpatch_hw_after_label): New name.
33410 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
33412 (s390_attribute_table): Ditto.
33413 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
33414 (s390_function_num_hotpatch_hw): New name.
33415 Remove special handling of inline functions and hotpatching.
33416 Return number of nops before and after the function label.
33417 (s390_can_inline_p): Removed.
33418 (s390_asm_output_function_label): Emit a configurable number of nops
33419 after the function label.
33420 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
33421 (TARGET_CAN_INLINE_P) Removed.
33422 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
33424 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33425 Jiong Wang <jiong.wang@arm.com>
33427 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
33429 (cb<optab><mode>1): Likewise.
33430 * config/aarch64/iterators.md (bcond): New define_code_attr.
33432 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33434 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
33437 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33439 * config/s390/s390.c (s390_register_move_cost): Increase costs for
33442 2015-01-27 Richard Biener <rguenther@suse.de>
33444 * tree-vrp.c (update_value_range): Intersect the range with
33445 old recorded SSA name range information.
33447 2015-01-27 Nick Clifton <nickc@redhat.com>
33449 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
33450 BC, DE and HL registers directly, not via AX.
33451 When decrementing the stack pointer by a large amount, transfer SP
33452 into AX and perform the subtraction there.
33453 (rl78_expand_epilogue): Perform the inverse of the above
33456 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33458 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
33460 2015-01-27 Jakub Jelinek <jakub@redhat.com>
33461 Yury Gribov <y.gribov@samsung.com>
33464 * ubsan.c (ubsan_source_location): Refactor code.
33465 (ubsan_type_descriptor): Update type size. Refactor code.
33467 2015-01-27 Richard Biener <rguenther@suse.de>
33469 PR tree-optimization/56273
33470 PR tree-optimization/59124
33471 PR tree-optimization/64277
33472 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
33473 from the first VRP pass.
33475 2015-01-27 Jakub Jelinek <jakub@redhat.com>
33478 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
33479 handle the first argument in the same loop as all the other arguments.
33481 PR rtl-optimization/61058
33482 * jump.c (cleanup_barriers): Update basic block boundaries
33483 if BLOCK_FOR_INSN is non-NULL on PREV.
33485 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
33487 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
33488 bounds narrowing, already instrumented calls and calls to
33489 not instrumentable functions.
33491 2015-01-27 Jakub Jelinek <jakub@redhat.com>
33493 PR tree-optimization/64807
33494 * wide-int.cc (wi::divmod_internal): Clear
33495 b_dividend[dividend_blocks_needed].
33497 2015-01-26 DJ Delorie <dj@redhat.com>
33499 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
33500 volatile memory references.
33502 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
33505 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
33507 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
33508 shifts if it already fits into K08.
33510 2015-01-26 Jakub Jelinek <jakub@redhat.com>
33513 * ipa-inline.c (inline_small_functions): Print "unknown" even
33514 if edge->call_stmt is non-NULL, but has builtins or unknown
33517 PR middle-end/64421
33518 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
33519 with asterisk, skip the first character.
33521 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
33524 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
33527 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
33530 * config/i386/i386.md (*movdi_internal): Also check operand 0
33531 to determine TYPE_LEA operand.
33532 (*movsi_internal): Ditto.
33534 2015-01-26 Jakub Jelinek <jakub@redhat.com>
33536 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
33537 OPTION_MASK_QUAD_MEMORY_ATOMIC.
33539 2015-01-26 Renlin Li <renlin.li@arm.com>
33541 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
33543 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
33546 2015-01-26 Richard Biener <rguenther@suse.de>
33548 PR middle-end/64764
33549 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
33550 combining two BIT_AND_EXPR predicates.
33552 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
33555 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
33557 2015-01-26 Terry Guo <terry.guo@arm.com>
33559 * config/arm/arm.c (arm_file_start): Update the assignment of
33560 Tag_ABI_HardFP_use.
33562 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
33564 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
33566 config/arm/arm.md: Include the new Cortex-A57 model.
33567 (generic_sched): Don't use generic_sched when tuning for
33570 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
33571 Uros Bizjak <ubizjak@gmail.com>
33573 * config/i386/i386.c (get_builtin_code_for_version): Add
33574 support for BMI and BMI2 multiversion functions.
33576 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33578 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
33579 (extract_bit_field): Likewise.
33580 (extract_low_bits): Likewise.
33581 (expand_mult): Likewise.
33582 (expand_mult_highpart_adjust): Likewise.
33584 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
33586 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
33587 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
33588 * config/i386/i386.c (processor_model): Add
33589 M_INTEL_COREI7_BROADWELL.
33590 (arch_names_table): Add "broadwell".
33592 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
33601 * config/sh/sh-protos.h
33602 (sh_extending_set_of_reg::can_use_as_unextended_reg,
33603 sh_extending_set_of_reg::use_as_unextended_reg,
33604 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
33605 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
33606 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
33607 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
33608 (sh_treg_insns): New class.
33609 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
33610 (scope_counter): New class.
33611 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
33612 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
33613 sh_extending_set_of_reg::can_use_as_unextended_reg,
33614 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
33615 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
33616 sh_split_treg_set_expr): New functions.
33617 (addsubcosts): Handle treg_set_expr.
33618 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
33619 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
33620 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
33621 (sh_insn_operands_modified_between_p): Make non-static.
33622 * config/sh/predicates.md (zero_extend_movu_operand): Allow
33623 simple_mem_operand in addition to displacement_mem_operand.
33624 (zero_extend_operand): Don't allow zero_extend_movu_operand.
33625 (treg_set_expr, treg_set_expr_not_const01,
33626 arith_reg_or_treg_set_expr): New predicates.
33627 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
33628 arith_or_int_operand instead of logical_operand. Convert to
33629 insn_and_split. Try to optimize constant operand in splitter.
33630 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
33631 (*tstqi_t_zero): Delete.
33632 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
33633 (tstsi_t_and_not): Delete.
33634 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
33635 Convert to insn_and_split.
33636 (unnamed split, tstsi_t_zero_extract_xor,
33637 tstsi_t_zero_extract_subreg_xor_little,
33638 tstsi_t_zero_extract_subreg_xor_big): Delete.
33639 (*tstsi_t_shift_mask): New insn_and_split.
33640 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
33641 to recombine with surrounding insns when splitting.
33642 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
33643 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
33644 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
33645 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
33646 (*cbranch_div0s: Delete.
33647 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
33648 Try to recombine with surrounding insns when splitting. Add operand
33650 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
33651 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
33652 *addc_r_r_msb, *addc_2r_msb): Delete.
33653 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
33655 (*addc_negreg_t): New insn_and_split.
33656 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
33657 Try to recombine with surrounding insns when splitting.
33658 Add operand order variants.
33659 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
33660 insn_and_split patterns.
33661 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
33662 surrounding insns when splitting.
33663 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
33664 (*rotcl): Likewise. Add zero_extract variant.
33665 (*ashrsi2_31): New insn_and_split.
33666 (*negc): Convert to insn_and_split. Use treg_set_expr.
33667 (*zero_extend<mode>si2_disp_mem): Update comment.
33668 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
33670 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
33671 with surrounding insns when splitting.
33672 (any_treg_expr_to_reg): New insn_and_split.
33673 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
33674 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
33675 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
33676 *zero_extract_2): New single bit zero extract patterns.
33677 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
33678 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
33679 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
33680 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
33682 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
33683 register_operand for set source.
33685 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
33687 * i386.opt (prefetch_sse): New targetsave.
33688 * i386.c (ix86_function_specific_save): Save prefetch_sse.
33689 (ix86_function_specific_restore): Restore prefetch_sse and initialize
33690 ix86_cost/ix86_tune_cost.
33692 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33694 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
33695 Support the JIT by using 0 as the language type.
33697 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
33700 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
33701 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
33702 (mark_regno_live, process_bb_lives): Pass new parameter value to
33703 make_hard_regno_born.
33705 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33707 PR rtl-optimization/63637
33708 PR rtl-optimization/60663
33709 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
33710 if elt->cost is MAX_COST for ASM_OPERANDS.
33711 (find_sets_in_insn): Fix up comment typo.
33712 (cse_insn): Don't set src_volatile for all non-volatile
33713 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
33714 or with "memory" clobber. Set elt->cost to MAX_COST
33715 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
33716 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
33718 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
33720 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
33723 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
33725 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
33726 libgcc/config/i386/elf-lib.h.
33728 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33731 * gcc.c (print_configuration): Don't print a blank line at the end
33733 (run_attempt): ... but here unstead.
33735 PR middle-end/64734
33736 * omp-low.c (scan_sharing_clauses): Don't ignore
33737 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
33738 on target data/update constructs.
33740 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
33743 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
33744 (DEBUG_RELOAD): Removed define.
33745 (m32c_limit_reload_class): Enable traces with if DEBUG0.
33746 (m32c_function_arg): Added a type cast.
33747 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
33748 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
33749 * config/m32c/bitops.md (andqi3_16): Likewise.
33750 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
33751 (push_a01_l): Likewise.
33753 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33756 * main.c (main): Construct toplev instances with init_signals=true.
33757 * toplev.c (general_init): Add param "init_signals", and use it to
33758 conditionalize the calls to signal and host_hooks.extra_signals.
33759 (toplev::toplev): Add param "init_signals".
33760 (toplev::main): When invoking general_init, pass m_init_signals
33761 to control whether signal-handlers are installed.
33762 * toplev.h (toplev::toplev): Add param "init_signals".
33763 (toplev::m_init_signals): New field.
33765 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33768 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
33769 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
33770 latter may be affected by the former (e.g. on i686).
33772 2015-01-23 Martin Liska <mliska@suse.cz>
33774 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
33775 false positive during profiledbootstrap.
33777 2015-01-23 Tom de Vries <tom@codesourcery.com>
33780 * lto-opts.c (lto_write_options): Output non-explicit conservative
33782 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
33783 (append_compiler_options): Pass -fopenacc through.
33785 2015-01-23 Tom de Vries <tom@codesourcery.com>
33788 * lto-opts.c (lto_write_options): Output non-explicit conservative
33790 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
33791 (append_compiler_options): Pass -fopenmp through.
33793 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33796 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
33799 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
33800 * diagnostic.def (DK_ICE_NOBT): New kind.
33801 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
33802 like DK_ICE, but never print backtrace.
33803 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
33804 (internal_error_no_backtrace): New function.
33805 * gcc.c (execute): Use internal_error_no_backtrace instead of
33808 2015-01-22 Jeff Law <law@redhat.com>
33811 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
33812 improve code density for small immediate to memory case.
33813 (insv): Better handle bitfield assignments when the field is
33814 being set to all ones.
33815 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
33818 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33819 Jakub Jelinek <jakub@redhat.com>
33821 PR middle-end/64729
33822 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
33823 for !TARGET_LIBC_PROVIDES_SSP version and
33824 -fstack-protector-{all,strong,explicit} otherwise.
33825 * config/freebsd.h (LINK_SSP_SPEC): Handle
33826 -fstack-protector-{strong,explicit}.
33828 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
33829 H.J. Lu <hongjiu.lu@intel.com>
33832 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
33835 2015-01-22 Wei Mi <wmi@google.com>
33837 PR rtl-optimization/64557
33838 * dse.c (record_store): Call get_addr for mem_addr.
33839 (check_mem_read_rtx): Likewise.
33841 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
33843 * fold-const.c (const_binop): Add early return for non-tcc_binary.
33845 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
33847 * toplev.c (init_local_tick): Process the failure when read
33848 fails for random_seed.
33850 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33851 'pretty_name' to avoid memory overflow.
33853 2015-01-22 Richard Biener <rguenther@suse.de>
33855 PR middle-end/64728
33856 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33857 abnormal coalescing on undefined SSA names.
33859 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
33863 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33865 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33867 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
33869 PR middle-end/63325
33870 * fold-const.c (fold_checksum_tree): Don't include value of
33871 expr->decl_with_vis.symtab_node in the checksum.
33873 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33875 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33877 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
33880 * gcc.c (insert_comments): New function.
33881 (try_generate_repro): Call it.
33882 (append_text): Removed.
33884 2015-01-22 Richard Biener <rguenther@suse.de>
33886 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33887 with IL incompatible options. Properly honor user optimize
33890 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
33892 PR rtl-optimization/64682
33893 * combine.c (distribute_notes): When moving a death note for
33894 a register that is set in the new I2, make sure to put it
33895 before that new I2.
33897 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
33899 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33900 not TARGET_DEFAULT.
33902 2015-01-21 Jakub Jelinek <jakub@redhat.com>
33905 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33906 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33907 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33910 * doc/invoke.texi (-fsanitize=vptr): Document.
33912 PR rtl-optimization/62078
33913 * dse.c: Include cfgcleanup.h.
33914 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33915 anything call purge_all_dead_edges and cleanup_cfg at the end
33918 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
33920 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33923 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33925 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33928 2015-01-21 David Sherwood <david.sherwood@arm.com>
33929 Tejas Belagod <Tejas.Belagod@arm.com>
33931 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33932 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33933 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33936 2015-01-21 David Sherwood <david.sherwood@arm.com>
33937 Tejas Belagod <Tejas.Belagod@arm.com>
33939 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33940 (aarch64_reverse_mask): New decls.
33941 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33942 (insn_count): New mode_attr.
33943 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33944 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33945 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33946 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33947 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33948 (aarch64_simd_st4): New patterns.
33949 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33950 (aarch64_reverse_mask): New functions.
33952 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33954 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33956 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33957 addressing modes for BE.
33958 (aarch64_print_operand): Add 'R' specifier.
33959 (aarch64_simd_disambiguate_copy): Delete.
33960 (aarch64_simd_emit_reg_reg_move): New function.
33961 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33962 in define_splits for structural moves.
33963 (mov<mode>): Use less restrictive predicates.
33964 (*aarch64_mov<mode>): Simplify and only allow for LE.
33965 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33967 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33969 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33971 2015-01-21 Richard Henderson <rth@redhat.com>
33974 * ccmp.c (used_in_cond_stmt_p): Remove.
33975 (expand_ccmp_expr): Don't use it.
33977 2015-01-21 Nick Clifton <nickc@redhat.com>
33979 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33982 2015-01-21 Richard Biener <rguenther@suse.de>
33984 PR middle-end/64313
33985 * tree-core.h (builtin_info, builtin_info_type): Turn from
33986 an object with two arrays into an array of an object with
33987 decl and two flags, implicit_p and declared_p.
33988 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33989 set_builtin_decl, set_builtin_decl_implicit_p,
33990 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33991 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33992 * builtins.c (builtin_info): Adjust.
33993 * gimplify.c (gimplify_addr_expr): References to builtins
33994 that have been declared by the user makes them eligible for
33995 use by the compiler. Call set_builtin_decl_implicit_p on them.
33997 2015-01-20 Jeff Law <law@redhat.com>
34000 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34001 allow pc-relative addresses in operand predicates or constraints.
34003 2015-01-21 Bin Cheng <bin.cheng@arm.com>
34005 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34006 neon on aarch32 processors for stringops.
34008 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34011 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34013 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34016 * ipa-inline.c: Include lto-streamer.h
34017 (report_inline_failed_reason): Output source file differences and
34018 flags on optimization/target node mismatch.
34019 (can_inline_edge_p): Consider caller to be the outer inline function;
34020 be less restrictive about matching opimize and optimize_size attributes.
34021 (inline_account_function_p): Break out from ...
34022 (inline_small_functions): ... here.
34023 * ipa-inline-transform.c (clone_inlined_nodes): Use
34024 inline_account_function_p.
34025 (inline_call): Use optimize attribution; use inline_account_function_p.
34026 (inline_transform): Use opt_for_fn.
34027 * ipa-inline.h (inline_account_function_p): Declare.
34029 2015-01-20 Jakub Jelinek <jakub@redhat.com>
34032 * dwarf2out.c (decl_piece_node): Don't put bitsize into
34033 mode if bitsize <= 0.
34034 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34035 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34036 sizes and positions.
34038 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
34040 * config/nios2/nios2.c (nios2_asm_file_end): Implement
34041 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34043 (TARGET_ASM_FILE_END): Define.
34045 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34047 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34048 (struct tune_params): Use the enum.
34049 * arm.c (arm_*_tune): Update.
34050 (arm_option_override): Update.
34052 2015-01-20 Richard Biener <rguenther@suse.de>
34055 * ipa-reference.c (add_static_var): Inline ...
34056 (analyze_function): ... here after splitting out from ...
34057 (is_proper_for_analysis): ... this.
34059 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
34062 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34063 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34064 replace the conditional with it's true branch.
34065 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34066 (arm_lra_p): Remove.
34068 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
34070 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34072 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34074 * config/tilegx/mul-tables.c: Move symtab.h include after
34075 coretypes.h include.
34076 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34077 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34078 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34079 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34080 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34082 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
34086 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34088 PR rtl-optimization/64081
34089 * loop-iv.c (def_pred_latch_p): New function.
34090 (latch_dominating_def): Allow specific cases with non-single
34092 (iv_get_reaching_def): Likewise.
34093 (check_complex_exit_p): New function.
34094 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34095 with exits not executing on any iteration.
34097 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34100 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34101 to set branch cost.
34103 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34106 * i386.c (gate): Check flag_expensive_optimizations and
34108 (ix86_option_override_internal): Drop optimize_size condition
34109 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
34110 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
34111 MASK_PREFER_AVX128.
34112 (ix86_avx256_split_vector_move_misalign,
34113 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
34114 * sse.md (all uses of TARGET_PREFER_AVX128): Add
34115 optimize_insn_for_speed_p check.
34117 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
34119 * config/mips/mips.h (FP_ASM_SPEC): New define.
34120 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
34123 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
34126 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
34127 nullptr for insn when reaching the first insn.
34128 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
34129 (sh_insn_operands_modified_between_p): Add nullptr check.
34130 (sh_find_extending_set_of_reg): Fix log message. Don't accept
34131 sign extending mem load if the insn contains any UNSPEC or
34134 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34136 * params.def (inline-unit-growth): Drop to 15%.
34137 * invoke.texi (inline-unit-growth): Document change.
34139 2015-01-19 Martin Liska <mliska@suse.cz>
34142 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
34143 function for second argument of OBJ_TYPE_REF.
34145 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34148 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
34149 whether function is an alias.
34151 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34153 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
34156 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
34158 PR rtl-optimization/64671
34159 * lra-remat.c (operand_to_remat): Don't consider jump and call
34162 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
34165 * config/rs6000/default64.h: Include rs6000-cpus.def.
34166 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
34167 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
34168 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
34170 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
34172 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
34173 pseudo-op to specify assembler dialect.
34175 2015-01-19 Martin Liska <mliska@suse.cz>
34178 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
34179 Handle safe potentially removed nodes during filtering.
34181 2015-01-19 Martin Liska <mliska@suse.cz>
34183 * doc/extend.texi (no_icf): Add new attribute description.
34184 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
34185 where the pass attempts to merge a function with no_icf attribute.
34187 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34190 * doc/md.texi (ARM Options): Document register constraints.
34192 2015-01-19 Jiong Wang <jiong.wang@arm.com>
34193 Andrew Pinski <apinski@cavium.com>
34196 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
34197 (ashl<mode>3): Don't expand if operands[2] is not constant.
34199 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34202 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
34203 Match xor-and-xor RTL pattern.
34205 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34207 PR rtl-optimization/64081
34208 * loop-iv.c (def_pred_latch_p): New function.
34209 (latch_dominating_def): Allow specific cases with non-single
34211 (iv_get_reaching_def): Likewise.
34212 (check_complex_exit_p): New function.
34213 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34214 with exits not executing on any iteration.
34216 2015-01-19 Jakub Jelinek <jakub@redhat.com>
34218 * common.opt (fgraphite): Fix a typo.
34220 2015-01-19 Felix Yang <felix.yang@huawei.com>
34222 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
34224 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
34225 uminp, smax_nanp, smin_nanp): New builtins.
34226 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
34227 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
34228 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
34229 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
34230 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
34231 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
34232 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
34233 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
34234 vpminnms_f32): Rewrite using builtin functions.
34236 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
34239 * omp-low.c (offload_symbol_decl): Remove variable.
34240 (get_offload_symbol_decl): Remove function.
34241 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
34242 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
34243 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
34244 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
34245 BUILT_IN_GOACC_UPDATE don't pass it at all.
34247 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
34249 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
34252 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
34254 * ipa-chkp.c (chkp_produce_thunks): Add early param
34255 to split thunks production into two passes. Keep
34256 'always_inline' function bodies after the first pass.
34257 (pass_data_ipa_chkp_early_produce_thunks): New.
34258 (pass_ipa_chkp_early_produce_thunks): New.
34259 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
34260 chkp_produce_thunks signature.
34261 (make_pass_ipa_chkp_early_produce_thunks): New.
34262 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
34263 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
34264 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
34266 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34268 * cgraph.c (cgraph_node::dump): Dump profile flags.
34270 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
34273 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
34274 reg appear first in the parallel.
34276 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34278 * ipa-reference.c (set_reference_optimization_summary,
34279 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
34281 (ignore_module_statics): New static var.
34282 (propagate_bits): If ipa-reference is disabled, do not look into local
34284 (analyze_function): Disable analysis when ipa_reference is disabled.
34285 (generate_summary): Do not dump when reference is disabled;
34286 collect vars accessed from functions with ipa-reference disabled.
34287 (get_read_write_all_from_node): When ipa-reference is disabled, use the
34289 (gate): Enable for LTO.
34290 (ignore_edge_p): New function.
34291 (propagate): Skip functions w/o ipa-reference analysis.
34292 * optc-save-gen.awk: Handle optimize_debug correctly.
34293 * opth-gen.awk: Likewise.
34294 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
34295 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
34296 fira-share-save-slots, fira-share-spill-slots,
34297 fmodulo-sched-allow-regmoves, fpartial-inlining,
34298 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
34299 ftracer, ftree-parallelize-loops, fassociative-math,
34300 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
34302 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
34303 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
34305 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
34308 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34311 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
34313 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
34315 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
34317 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
34318 Remove duplicate option listings.
34320 2015-01-18 Felix Yang <felix.yang@huawei.com>
34322 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
34323 (autofdo_source_profile::get_callsite_total_count,
34324 function_instance::get_function_instance_by_decl,
34325 string_table::get_index, string_table::get_index_by_decl,
34326 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
34327 Fix comment typos. Reformatting and minor code rearrangement.
34329 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
34331 * config/rs6000/rs6000.md (probe_stack): Delete.
34332 (probe_stack_address): New.
34334 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
34336 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
34337 to test for 32-bit ABIs, not !TARGET_POWERPC64.
34339 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
34341 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
34342 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
34343 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
34345 (rs6000_libcall_value): Use the new function.
34347 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
34349 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
34351 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
34353 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
34354 implement a more precise life analysis for it during backward scan.
34356 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
34358 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
34360 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
34362 PR rtl-optimization/52773
34363 * calls.c (emit_library_call_value): When pushing arguments use
34364 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
34365 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
34366 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
34368 2015-01-17 Jeff Law <law@redhat.com>
34370 PR rtl-optimization/32790
34371 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
34372 not ZERO_EXTEND in SET_DESTs.
34374 2015-01-17 Alan Modra <amodra@gmail.com>
34376 * cprop.c (do_local_cprop): Revert last change.
34378 2015-01-16 DJ Delorie <dj@redhat.com>
34379 Nick Clifton <nickc@redhat.com>
34381 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
34382 (addhi3_real): Likewise. Fix [HL+0] syntax.
34383 (subqi3_real): Likewise.
34384 (subhi3_real): Likewise.
34385 (cbranchqi4_real): Likewise. Allow saddr,#imm.
34386 (cbranchhi4_real): Likewise.
34387 (cbranchhi4_real_inverted): Likewise.
34388 (cbranchsi4_real_lt): Likewise.
34389 (cbranchsi4_real_ge): Likewise.
34390 (cbranchsi4_real_ge): Likewise.
34391 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
34392 (sub<mode>3_virt): Likewise.
34393 (cbranchqi4_virt): Likewise.
34394 (cbranchhi4_virt): Likewise.
34395 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
34396 always use '[reg+imm]' even when imm is zero.
34397 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
34398 (rl78_general_operand): New.
34399 (rl78_nonimmediate_operand): New.
34400 (rl78_nonfar_operand): Use them.
34401 (rl78_nonfar_nonimm_operand): Likewise.
34402 (rl78_stack_based_mem): Fix.
34403 * config/rl78/constraints.md (Ibqi): New.
34408 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
34409 (iorqi3): Likewise.
34410 (xorqi3): Likewise.
34411 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
34413 * config/rl78/constrains (Qs8): New constraint.
34414 * config/rl78/rl78.c (rl78_flags_already_set): New function.
34415 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
34416 * config/rl78/rl78-real.md (update_Z): New attribute.
34417 Update patterns to set it.
34418 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
34419 shorter compare and branch sequence can be used.
34420 (cbranchhi4_real): Likewise.
34421 (cbranchhi4_real_inverted): Likewise.
34423 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
34424 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
34426 * config/rl78/rl78.c (rl78_get_name_encoding): New.
34427 (rl78_option_override): Allow -mes0 only if C.
34428 (characterize_address): Support subregs of symbol_refs.
34429 (rl78_addr_space_address_mode): Move. Add __near.
34430 (rl78_far_p): Likewise.
34431 (rl78_addr_space_pointer_mode): Likewise.
34432 (rl78_as_legitimate_address): Likewise.
34433 (rl78_addr_space_subset_p): Likewise.
34434 (rl78_addr_space_convert): Likewise.
34435 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
34436 symbols with -mes0.
34437 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
34439 (rl78_alloc_physical_registers_op1): Change logic to prefer
34440 symbol[BC] addressing.
34441 (frodata_section): New.
34442 (rl78_asm_init_sections): Initialize it.
34443 (rl78_select_section): Put __far readonly symbols in .frodata.
34444 (rl78_make_type_far): New.
34445 (rl78_insert_attributes): Force all readonly symbols to be
34447 (rl78_asm_out_integer): New.
34448 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
34449 * config/rl78/rl78.opt (-mes0): New.
34451 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
34452 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
34453 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
34454 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
34455 (rl78_saddr_p): New.
34456 (rl78_output_aligned_common): New.
34457 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
34458 (rl78_handle_saddr_attribute): New.
34459 (rl78_handle_naked_attribute): New.
34460 (rl78_attribute_table): Add saddr.
34461 (rl78_print_operand_1): Don't print '!' on saddr operands.
34462 (rl78_print_operand_1): Strip encodings.
34464 (rl78_strip_name_encoding): New.
34465 (rl78_attrlist_to_encoding): New.
34466 (rl78_encode_section_info): New.
34467 (rl78_asm_init_sections): New.
34468 (rl78_select_section): New.
34469 (rl78_output_labelref): New.
34470 (rl78_output_aligned_common): New.
34471 (rl78_asm_out_integer): New.
34472 (rl78_asm_ctor_dtor): New.
34473 (rl78_asm_constructor): New.
34474 (rl78_asm_destructor): New.
34476 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
34477 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
34478 (transcode_memory_rtx): Update.
34479 (rl78_expand_epilogue): Use A_REG instead of 0.
34481 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34483 * config/arm/arm-protos.h (struct tune_params): New field
34484 sched_autopref_queue_depth.
34485 * config/arm/arm.c (sched-int.h): Include header.
34486 (arm_first_cycle_multipass_dfa_lookahead_guard,)
34487 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
34488 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
34489 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
34490 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
34491 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
34492 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
34493 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
34494 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
34495 * config/arm/t-arm (arm.o): Update.
34496 * haifa-sched.c (update_insn_after_change): Update.
34497 (rank_for_schedule): Use auto-prefetcher model, if requested.
34498 (autopref_multipass_init): New static function.
34499 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
34500 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
34501 variable for debug dumps.
34502 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
34503 (autopref_multipass_dfa_lookahead_guard): New global function that
34504 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
34505 (init_h_i_d): Update.
34506 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
34507 * sched-int.h (enum autopref_multipass_data_status): New const enum.
34508 (autopref_multipass_data_): Structure for auto-prefetcher data.
34509 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
34510 (struct _haifa_insn_data:autopref_multipass_data): New field.
34511 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
34512 (autopref_multipass_dfa_lookahead_guard): Declare.
34514 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34516 * rtlanal.c (get_base_term): Handle SCRATCH.
34518 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34520 * config/aarch64/aarch64.c
34521 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
34522 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
34524 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
34525 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
34527 2015-01-17 Alan Modra <amodra@gmail.com>
34529 * cprop.c (do_local_cprop): Disallow replacement of fixed
34532 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34535 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
34538 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
34540 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
34541 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
34543 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34545 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
34546 * config/arm/thumb1.md: ... Here.
34548 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34550 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
34551 TImode for TARGET_32BIT.
34553 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34555 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
34556 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
34558 (rs6000_abi_word_mode): New function.
34560 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34562 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
34563 instead of UNITS_PER_WORD to describe the size of stack slots.
34565 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34567 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
34568 as rs6000_promote_function_mode. Move comment to there.
34569 (rs6000_promote_function_mode): New function.
34571 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
34573 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
34574 -mpowerpc64 is active.
34576 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34578 PR middle-end/64353
34579 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
34582 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
34584 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
34585 introduced in revision 219724.
34587 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34588 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34591 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
34592 destination is not a GP reg.
34593 (*movdi_aarch64): Likewise.
34595 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
34598 * config/rs6000/default64.h: Revert ISA change.
34600 2015-01-16 Richard Biener <rguenther@suse.de>
34602 PR middle-end/64614
34603 * tree-ssa-uninit.c: Include tree-cfg.h.
34604 (MAX_SWITCH_CASES): New define.
34605 (convert_control_dep_chain_into_preds): Handle switch statements.
34606 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
34607 (normalize_one_pred_1): Do not split bit-manipulations.
34610 2015-01-16 Richard Biener <rguenther@suse.de>
34612 PR tree-optimization/64568
34613 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
34614 complex load rewriting for TARGET_MEM_REFs.
34616 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
34618 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
34620 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
34623 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
34625 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
34626 (aarch64_lra_p): Remove.
34628 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34631 * ipa-chkp.h (chkp_instrumentable_p): New.
34632 * ipa-chkp.c: Include tree-inline.h.
34633 (chkp_instrumentable_p): New.
34634 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
34635 Fix processing of not instrumentable functions.
34636 (chkp_versioning): Use chkp_instrumentable_p. Warn about
34637 not instrumentable functions.
34638 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
34639 chkp_instrumentable_p.
34640 * tree-inline.h (copy_forbidden): New.
34641 * tree-inline.c (copy_forbidden): Not static anymore.
34643 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34645 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
34648 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
34650 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
34651 type OP_OUT to OP_INOUT.
34653 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
34655 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
34656 (high x) y) to y if x and y have the same base.
34658 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
34660 * config/arm/cortex-a57.md: New.
34661 * config/aarch64/aarch64.md: Include it.
34662 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
34663 * config/aarch64/aarch64-tune.md: Regenerate.
34665 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
34668 * ccmp.c (expand_ccmp_next): New function.
34669 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
34670 and compare insn sequence.
34671 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
34672 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
34673 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
34674 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
34675 (*ccmp_ior): Changed to ccmp_ior<mode>.
34676 (cmp<mode>): New pattern.
34677 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
34679 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
34681 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
34683 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
34684 _mm256_bsrli_epi128): New.
34685 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
34687 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34689 * expmed.c (store_bit_field_using_insv): Improve warning message.
34690 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
34692 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34694 PR rtl-optimization/64011
34695 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
34696 there is partial overflow.
34698 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34700 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
34702 (nds32_expand_epilogue_v3pop): Likewise.
34703 * config/nds32/nds32.md (sibcall): Define this for sibling call
34705 (sibcall_register): Likewise.
34706 (sibcall_immediate): Likewise.
34707 (sibcall_value): Likewise.
34708 (sibcall_value_register): Likewise.
34709 (sibcall_value_immediate): Likewise.
34710 (sibcall_epilogue): Likewise.
34711 (epilogue): Pass false to indicate this is not a sibcall epilogue.
34712 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
34713 (nds32_expand_epilogue_v3pop): Likewise.
34715 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34717 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
34718 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
34719 (return_internal): New.
34720 (return): Define this named pattern.
34721 (simple_return): Define this named pattern.
34722 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
34723 pattern instead of unspec_volatile_func_return.
34724 (nds32_expand_epilogue_v3pop): Likewise.
34725 (nds32_can_use_return_insn): New function.
34727 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34729 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
34730 * config/nds32/nds32.md (pop25return): New.
34731 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
34732 pop25return pattern.
34734 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34736 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
34737 -mforbid-fp-as-gp, and -mex9 options.
34739 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34741 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
34742 remove -mgp-direct option.
34744 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34746 * doc/invoke.texi (--param early-inlining-insns): Update default value.
34747 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
34749 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34751 * ipa-inline.c (inline_small_functions): Work around hints
34754 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
34757 * doc/invoke.texi (Option Summary): Document new Nios II
34759 (Nios II Options): Likewise.
34760 * config/nios2/nios2.opt: Add -mgpopt= option support.
34761 Modify existing -mgpopt and -mno-gpopt options to be aliases.
34762 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
34763 * config/nios2/nios2.c (nios2_option_override): Adjust
34764 -mgpopt defaulting.
34765 (nios2_in_small_data_p): Return true for explicit small data
34766 sections even with -G0.
34767 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
34770 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34773 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
34775 (inline_call): Fix removal of aliases.
34777 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34779 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
34780 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
34781 * opts.c (common_handle_option): Add -fsanitize=vptr.
34782 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
34783 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
34784 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
34785 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
34786 (ubsan_expand_vptr_ifn): New prototype.
34787 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
34788 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
34789 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
34790 expand_LOOP_VECTORIZED): Make argument nameless, remove
34792 (expand_UBSAN_VPTR): New function.
34793 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
34795 (UBSAN_VPTR): New internal function.
34796 * sanopt.c (tree_map_traits): Renamed to ...
34797 (sanopt_tree_map_traits): ... this.
34798 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
34799 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
34800 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
34801 (maybe_optimize_ubsan_vptr_ifn): New function.
34802 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
34803 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
34805 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
34806 internal calls like pure functions for aliasing, even when they
34807 have other side-effects that prevent making them ECF_PURE.
34808 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
34809 (ubsan_expand_vptr_ifn): New function.
34811 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
34813 PR rtl-optimization/64110
34814 * stmt.c (parse_output_constraint): Process '^' and '$'.
34815 (parse_input_constraint): Ditto.
34816 * lra-constraints.c (process_alt_operands): Process the new
34818 * ira-costs.c (record_reg_classes): Process the new constraint
34820 * genoutput.c (indep_constraints): Add '^' and '$'.
34821 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
34822 * doc/md.texi: Add description of the new constraints.
34824 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
34825 Bernd Schmidt <bernds@codesourcery.com>
34826 Cesar Philippidis <cesar@codesourcery.com>
34827 James Norris <jnorris@codesourcery.com>
34828 Tom de Vries <tom@codesourcery.com>
34829 Ilmir Usmanov <i.usmanov@samsung.com>
34830 Dmitry Bocharnikov <dmitry.b@samsung.com>
34831 Evgeny Gavrin <e.gavrin@samsung.com>
34832 Jakub Jelinek <jakub@redhat.com>
34834 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
34835 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34836 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34837 New function types.
34838 * builtins.c: Include "gomp-constants.h".
34839 (expand_builtin_acc_on_device): New function.
34840 (expand_builtin, is_inexpensive_builtin): Handle
34841 BUILT_IN_ACC_ON_DEVICE.
34842 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
34844 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
34846 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34847 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34848 i386/intelmic-offload.h.
34849 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34850 to libgomp and its dependencies.
34851 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34852 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34853 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34854 * config/ia64/hpux.h (LIB_SPEC): Likewise.
34855 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34856 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34857 * doc/generic.texi: Update for OpenACC changes.
34858 * doc/gimple.texi: Likewise.
34859 * doc/invoke.texi: Likewise.
34860 * doc/sourcebuild.texi: Likewise.
34861 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34862 GF_OMP_FOR_KIND_OACC_LOOP.
34863 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34864 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34865 GF_OMP_TARGET_KIND_OACC_UPDATE,
34866 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34868 * gimple.c: Update comments for OpenACC changes.
34869 * gimple.def: Likewise.
34870 * gimple.h: Likewise.
34871 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34872 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34873 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34874 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34875 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34877 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34878 * gimplify.c: Include "gomp-constants.h".
34879 Update comments for OpenACC changes.
34880 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34881 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34882 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34883 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34884 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34885 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34886 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34887 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34888 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34890 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34891 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34892 OMP_CLAUSE_SET_MAP_KIND.
34893 (gimplify_oacc_cache): New function.
34894 (gimplify_omp_for): Handle OACC_LOOP.
34895 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34897 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34898 OACC_EXIT_DATA, OACC_UPDATE.
34899 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34900 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34901 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34902 (gimplify_body): Consider flag_openacc next to flag_openmp.
34903 * lto-streamer-out.c: Include "gomp-constants.h".
34904 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34905 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34906 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34907 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34908 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34909 (BUILT_IN_ACC_ON_DEVICE): New builtins.
34910 * omp-low.c: Include "gomp-constants.h".
34911 Update comments for OpenACC changes.
34912 (struct omp_context): Add reduction_map, gwv_below, gwv_this
34914 (extract_omp_for_data, use_pointer_for_field, install_var_field)
34915 (new_omp_context, delete_omp_context, scan_sharing_clauses)
34916 (create_omp_child_function, scan_omp_for, scan_omp_target)
34917 (check_omp_nesting_restrictions, lower_reduction_clauses)
34918 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34919 Update for OpenACC changes.
34920 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34921 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34922 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34923 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34924 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34925 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
34927 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34928 Handle GF_OMP_FOR_KIND_OACC_LOOP.
34929 (expand_omp_target, lower_omp_target): Handle
34930 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34931 GF_OMP_TARGET_KIND_OACC_UPDATE,
34932 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34933 GF_OMP_TARGET_KIND_OACC_DATA.
34934 (pass_expand_omp::execute, execute_lower_omp)
34935 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34937 (offload_symbol_decl): New variable.
34938 (oacc_get_reduction_array_id, oacc_max_threads)
34939 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34940 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34941 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34942 (oacc_gimple_assign, oacc_initialize_reduction_data)
34943 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34945 (is_targetreg_ctx): Remove function.
34946 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34947 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34948 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34949 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34950 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34951 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34952 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34953 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34954 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34955 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34956 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34957 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34958 * tree-core.h: Update comments for OpenACC changes.
34959 (enum omp_clause_map_kind): Remove.
34960 (struct tree_omp_clause): Change type of map_kind member from enum
34961 omp_clause_map_kind to unsigned char.
34962 * tree-inline.c: Update comments for OpenACC changes.
34963 * tree-nested.c: Likewise. Include "gomp-constants.h".
34964 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34965 (convert_tramp_reference_stmt, convert_gimple_call): Update for
34966 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34967 OMP_CLAUSE_SET_MAP_KIND.
34968 * tree-pretty-print.c: Include "gomp-constants.h".
34969 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34970 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34971 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34972 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34973 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34974 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
34975 instead of OMP_CLAUSE_MAP_*.
34976 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34977 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34978 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34979 * tree-streamer-in.c: Include "gomp-constants.h".
34980 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34981 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
34982 * tree-streamer-out.c: Include "gomp-constants.h".
34983 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34985 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34986 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34987 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34988 * tree.c (omp_clause_num_ops): Update accordingly.
34989 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34991 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34992 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34993 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34994 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34995 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34996 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34997 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34998 (OMP_CLAUSE_SET_MAP_KIND): New macro.
34999 * varpool.c (varpool_node::get_create): Consider flag_openacc next
35001 * config/i386/intelmic-offload.h: New file.
35002 * config/nvptx/offload.h: Likewise.
35004 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35006 * explow.h: Remove duplicate contents.
35007 * dojump.h: Likewise.
35009 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
35011 * arm.c (arm_xgene_tune): Add default initializer for instruction
35014 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35018 * ipa.c (symbol_table::remove_unreachable_nodes):
35019 Do not put abstract origins into boundary.
35021 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
35023 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35024 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35026 2015-01-15 Steve Ellcey <sellcey@mips.com>
35028 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35029 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35030 builtins.def, and chkp-builtins.def.
35032 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
35034 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35037 2015-01-15 Richard Biener <rguenther@suse.de>
35039 PR tree-optimization/61743
35040 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35041 information on PHIs for some simple cases.
35043 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35045 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35047 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35048 * config/arm/arm-cores.def (xgene1): New entry.
35049 * config/arm/arm-tables.opt: Regenerate.
35050 * config/arm/arm-tune.md: Regenerate.
35051 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35053 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35055 * tree-if-conv.c: Include hash-map.h.
35056 (aggressive_if_conv): New variable.
35057 (fold_build_cond_expr): Add simplification of non-zero condition.
35058 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35059 destination block is not always executed.
35060 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35061 than two predecessors if AGGRESSIVE_IF_CONV is true.
35062 (if_convertible_stmt_p): Fix commentary.
35063 (all_preds_critical_p): New function.
35064 (has_pred_critical_p): New function.
35065 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35066 BB can have more than two predecessors and all incoming edges can be
35068 (predicate_bbs): Skip predication for loop exit block, use build2_loc
35069 to compute predicate for true edge.
35070 (find_phi_replacement_condition): Delete this function.
35071 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35072 Allow interchange PHI arguments if EXTENDED is false.
35073 Change check that block containing reduction statement candidate
35074 is predecessor of phi-block since phi may have more than two arguments.
35075 (phi_args_hash_traits): New helper structure.
35076 (struct phi_args_hash_traits): New type.
35077 (phi_args_hash_traits::hash): New function.
35078 (phi_args_hash_traits::equal_keys): New function.
35079 (gen_phi_arg_condition): New function.
35080 (predicate_scalar_phi): Add handling of phi nodes with more than two
35081 arguments, delete COND and TRUE_BB arguments, insert body of
35082 find_phi_replacement_condition to predicate ordinary phi nodes.
35083 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35084 delete call of find_phi_replacement_condition and invoke
35085 predicate_scalar_phi with two arguments.
35086 (insert_gimplified_predicates): Add assert that non-predicated block
35087 don't have statements to insert.
35088 (ifcvt_split_critical_edges): New function.
35089 (ifcvt_split_def_stmt): Likewise.
35090 (ifcvt_walk_pattern_tree): Likewise.
35091 (stmt_is_root_of_bool_pattern): Likewise.
35092 (ifcvt_repair_bool_pattern): Likewise.
35093 (ifcvt_local_dce): Likewise.
35094 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35095 is copy of inner or outer loop force_vectorize field, invoke
35096 ifcvt_split_critical_edges, ifcvt_local_dce and
35097 ifcvt_repair_bool_pattern for aggressive if-conversion.
35099 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
35101 * config/aarch64/aarch64.md: Include xgene1.md.
35102 * config/aarch64/xgene1.md: New file.
35104 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35106 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
35107 xgene1 (APM XGene-1) core definition.
35108 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
35109 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
35110 * doc/invoke.texi: Document -mcpu=xgene1.
35112 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35114 * dojump.h: New header file.
35115 * explow.h: Likewise.
35116 * expr.h: Remove includes.
35117 Move expmed.c prototypes to expmed.h.
35118 Move dojump.c prototypes to dojump.h.
35119 Move alias.c prototypes to alias.h.
35120 Move explow.c prototypes to explow.h.
35121 Move calls.c prototypes to calls.h.
35122 Move emit-rtl.c prototypes to emit-rtl.h.
35123 Move varasm.c prototypes to varasm.h.
35124 Move stmt.c prototypes to stmt.h.
35125 (saved_pending_stack_adjust): Move to dojump.h.
35126 (adjust_address): Move to explow.h.
35127 (adjust_address_nv): Move to emit-rtl.h.
35128 (adjust_bitfield_address): Likewise.
35129 (adjust_bitfield_address_size): Likewise.
35130 (adjust_bitfield_address_nv): Likewise.
35131 (adjust_automodify_address_nv): Likewise.
35132 * explow.c (expr_size): Move to expr.c.
35133 (int_expr_size): Likewise.
35134 (tree_expr_size): Likewise.
35135 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35136 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35137 * genemit.c (main): Generate includes statistics.h, real.h,
35138 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
35140 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
35141 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
35142 explow.h, emit-rtl.h, stmt.h.
35143 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
35144 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
35145 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
35146 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
35147 emit-rtl.h, varasm.h, stmt.h.
35148 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
35149 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
35150 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
35151 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
35152 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35153 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
35154 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
35155 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
35156 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
35157 tm.h tree.h varasm.h vec.h wide-int.h.
35158 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35159 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35160 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
35161 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
35162 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
35163 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
35164 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
35165 * loop-iv.c: Likewise.
35166 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
35167 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
35168 statistics.h stmt.h tree.h varasm.h wide-int.h.
35169 * lra-constraints.c: Likewise.
35170 * lra-eliminations.c: Likewise.
35171 * lra-lives.c: Likewise.
35172 * lra-remat.c: Likewise.
35173 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35174 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
35175 statistics.h stmt.h tree.h varasm.h wide-int.h.
35176 * hw-doloop.c: Likewise.
35177 * ira-color.c: Likewise.
35178 * ira-emit.c: Likewise.
35179 * loop-doloop.c: Likewise.
35180 * loop-invariant.c: Likewise.
35181 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35182 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
35183 statistics.h stmt.h tree.h varasm.h wide-int.h.
35184 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
35185 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
35186 statistics.h stmt.h tree.h varasm.h wide-int.h.
35187 * combine-stack-adj.c: Likewise.
35190 * ifcvt.c: Likewise.
35191 * ira-costs.c: Likewise.
35192 * jump.c: Likewise.
35193 * lra-coalesce.c: Likewise.
35194 * lra-spills.c: Likewise.
35195 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35196 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
35197 stmt.h varasm.h wide-int.h.
35198 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35199 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35201 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
35202 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
35203 statistics.h stmt.h varasm.h wide-int.h.
35204 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
35205 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
35206 varasm.h wide-int.h.
35207 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
35208 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35209 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
35210 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
35211 statistics.h stmt.h.
35212 * config/tilepro/tilepro.c: Likewise.
35213 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
35214 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
35215 * config/pdp11/pdp11.c: Likewise.
35216 * config/xtensa/xtensa.c: Likewise.
35217 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
35218 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35220 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35221 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35222 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
35223 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35224 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35225 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
35226 * rtl-chkp.c: Likewise.
35227 * tree-chkp-opt.c: Likewise.
35228 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
35229 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35230 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
35231 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35232 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35233 statistics.h stmt.h.
35234 * tree-vect-data-refs.c: Likewise.
35235 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
35236 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35237 rtl.h statistics.h stmt.h varasm.h.
35238 * internal-fn.c: Likewise.
35239 * ipa-icf-gimple.c: Likewise.
35240 * lto-section-out.c: Likewise.
35241 * tree-data-ref.c: Likewise.
35242 * tree-nested.c: Likewise.
35243 * tree-outof-ssa.c: Likewise.
35244 * tree-predcom.c: Likewise.
35245 * tree-pretty-print.c: Likewise.
35246 * tree-scalar-evolution.c: Likewise.
35247 * tree-ssa-strlen.c: Likewise.
35248 * tree-vect-loop.c: Likewise.
35249 * tree-vect-patterns.c: Likewise.
35250 * tree-vect-slp.c: Likewise.
35251 * tree-vect-stmts.c: Likewise.
35252 * tsan.c: Likewise.
35253 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35254 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
35256 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
35257 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35258 statistics.h stmt.h varasm.h.
35259 * loop-unroll.c: Likewise.
35260 * ubsan.c: Likewise.
35261 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
35262 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
35264 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35265 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
35266 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
35267 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35268 statistics.h stmt.h.
35269 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
35270 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35271 statistics.h stmt.h varasm.h.
35272 * gimple-match-head.c: Likewise.
35273 * lto-cgraph.c: Likewise.
35274 * lto-section-in.c: Likewise.
35275 * lto-streamer-in.c: Likewise.
35276 * lto-streamer-out.c: Likewise.
35277 * tree-affine.c: Likewise.
35278 * tree-cfg.c: Likewise.
35279 * tree-cfgcleanup.c: Likewise.
35280 * tree-if-conv.c: Likewise.
35281 * tree-into-ssa.c: Likewise.
35282 * tree-ssa-alias.c: Likewise.
35283 * tree-ssa-copyrename.c: Likewise.
35284 * tree-ssa-dse.c: Likewise.
35285 * tree-ssa-forwprop.c: Likewise.
35286 * tree-ssa-live.c: Likewise.
35287 * tree-ssa-math-opts.c: Likewise.
35288 * tree-ssa-pre.c: Likewise.
35289 * tree-ssa-sccvn.c: Likewise.
35290 * tree-tailcall.c: Likewise.
35291 * tree-vect-generic.c: Likewise.
35292 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35293 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
35294 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35295 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
35296 * varasm.c: Likewise.
35297 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35298 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
35300 * init-regs.c: Likewise.
35302 * omp-low.c: Likewise.
35303 * stack-ptr-mod.c: Likewise.
35304 * tree-ssa-reassoc.c: Likewise.
35305 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35306 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
35308 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35309 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
35310 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35311 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
35312 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35313 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
35314 * tree-ssa-phiopt.c: Likewise.
35315 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35316 fixed-value.h hashtab.h real.h statistics.h stmt.h.
35317 * config/fr30/fr30.c: Likewise.
35318 * config/frv/frv.c: Likewise.
35319 * expr.c: Likewise.
35320 * final.c: Likewise.
35321 * optabs.c: Likewise.
35322 * passes.c: Likewise.
35323 * simplify-rtx.c: Likewise.
35324 * stmt.c: Likewise.
35325 * toplev.c: Likewise.
35326 * var-tracking.c: Likewise.
35327 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35328 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35329 * lower-subreg.c: Likewise.
35330 * postreload-gcse.c: Likewise.
35332 * reginfo.c: Likewise.
35333 * store-motion.c: Likewise.
35334 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35335 fixed-value.h hashtab.h real.h stmt.h varasm.h.
35336 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35337 fixed-value.h hashtab.h statistics.h stmt.h.
35338 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35339 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35340 * except.c: Likewise.
35341 * explow.c: Likewise.
35342 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35343 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
35345 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35346 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
35347 * tree-ssa-structalias.c: Likewise.
35348 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35349 fixed-value.h insn-config.h real.h statistics.h.
35350 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35351 fixed-value.h insn-config.h real.h statistics.h stmt.h.
35352 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35353 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
35354 * cfgbuild.c: Likewise.
35355 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35356 fixed-value.h real.h rtl.h statistics.h stmt.h.
35357 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35358 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35359 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35360 fixed-value.h real.h statistics.h stmt.h.
35361 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35362 fixed-value.h real.h statistics.h stmt.h varasm.h.
35363 * cprop.c: Likewise.
35364 * modulo-sched.c: Likewise.
35365 * postreload.c: Likewise.
35366 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
35367 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
35368 statistics.h stmt.h varasm.h.
35369 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
35370 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35371 rtl.h statistics.h stmt.h varasm.h.
35372 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
35373 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
35375 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
35376 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
35378 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
35379 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
35381 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
35382 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35383 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35384 function.h real.h statistics.h stmt.h varasm.h.
35385 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35386 insn-config.h real.h statistics.h stmt.h.
35387 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
35388 statistics.h stmt.h.
35389 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
35390 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
35391 statistics.h stmt.h varasm.h.
35392 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
35393 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
35394 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35395 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
35396 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
35397 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35398 statistics.h stmt.h varasm.h.
35399 * ipa-polymorphic-call.c: Likewise.
35400 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
35401 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35402 statistics.h stmt.h.
35403 * config/c6x/c6x.c: Likewise.
35404 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
35405 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35406 statistics.h stmt.h varasm.h.
35407 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
35408 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
35410 * ipa-split.c: Likewise.
35411 * tree-eh.c: Likewise.
35412 * tree-ssa-dce.c: Likewise.
35413 * tree-ssa-loop-niter.c: Likewise.
35414 * tree-vrp.c: Likewise.
35415 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
35416 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
35418 * config/nds32/nds32-fp-as-gp.c: Likewise.
35419 * config/nds32/nds32-intrinsic.c: Likewise.
35420 * config/nds32/nds32-isr.c: Likewise.
35421 * config/nds32/nds32-md-auxiliary.c: Likewise.
35422 * config/nds32/nds32-memory-manipulation.c: Likewise.
35423 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
35424 * config/nds32/nds32-predicates.c: Likewise.
35425 * config/nds32/nds32.c: Likewise.
35426 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
35427 fixed-value.h hashtab.h real.h statistics.h.
35428 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
35429 fixed-value.h hashtab.h real.h statistics.h stmt.h.
35430 * config/arm/arm.c: Likewise.
35431 * config/avr/avr.c: Likewise.
35432 * config/bfin/bfin.c: Likewise.
35433 * config/h8300/h8300.c: Likewise.
35434 * config/i386/i386.c: Likewise.
35435 * config/ia64/ia64.c: Likewise.
35436 * config/iq2000/iq2000.c: Likewise.
35437 * config/m32c/m32c.c: Likewise.
35438 * config/m32r/m32r.c: Likewise.
35439 * config/m68k/m68k.c: Likewise.
35440 * config/mcore/mcore.c: Likewise.
35441 * config/mep/mep.c: Likewise.
35442 * config/mips/mips.c: Likewise.
35443 * config/mn10300/mn10300.c: Likewise.
35444 * config/moxie/moxie.c: Likewise.
35445 * config/pa/pa.c: Likewise.
35446 * config/rl78/rl78.c: Likewise.
35447 * config/rx/rx.c: Likewise.
35448 * config/s390/s390.c: Likewise.
35449 * config/sh/sh.c: Likewise.
35450 * config/sparc/sparc.c: Likewise.
35451 * config/spu/spu.c: Likewise.
35452 * config/stormy16/stormy16.c: Likewise.
35453 * config/v850/v850.c: Likewise.
35454 * config/vax/vax.c: Likewise.
35455 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
35456 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
35457 * config/msp430/msp430.c: Likewise.
35458 * predict.c: Likewise.
35459 * value-prof.c: Likewise.
35460 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
35461 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
35462 * config/microblaze/microblaze.c: Likewise.
35463 * config/nios2/nios2.c: Likewise.
35464 * config/rs6000/rs6000.c: Likewise.
35465 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35466 insn-config.h real.h rtl.h statistics.h stmt.h.
35467 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
35468 insn-config.h real.h statistics.h stmt.h.
35469 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
35470 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
35471 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
35472 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35473 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
35474 fixed-value.h real.h statistics.h stmt.h.
35475 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
35476 fixed-value.h statistics.h stmt.h.
35477 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
35480 2015-01-15 Jakub Jelinek <jakub@redhat.com>
35482 * gengtype.c (create_user_defined_type): Workaround
35483 -Wmaybe-uninitialized false positives.
35484 * cse.c (fold_rtx): Likewise.
35485 * loop-invariant.c (gain_for_invariant): Likewise.
35487 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
35489 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
35490 set the memory attributes in all cases but clear MEM_EXPR if need be.
35492 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35494 PR tree-optimization/64434
35495 * cfgexpand.c (reorder_operands): New function.
35496 (expand_gimple_basic_block): Insert call of reorder_operands if
35499 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
35501 * config/mips/micromips.md (*swp): Remove explicit parallel.
35502 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
35503 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
35504 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
35505 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
35506 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
35507 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
35508 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
35509 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
35510 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
35511 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
35512 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
35513 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
35514 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
35515 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
35516 (mips_wrdsp): Likewise.
35517 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
35519 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
35520 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
35521 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
35522 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
35523 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
35524 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
35525 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
35526 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
35527 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
35529 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35531 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
35532 (mips_print_operand): Support 'y' to print exact log2 in decimal
35534 * config/mips/mips.h (ISA_HAS_LSA): New define.
35535 (ISA_HAS_DLSA): Likewise.
35536 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
35537 * config/mips/predicates.md (const_immlsa_operand): New predicate.
35539 2015-01-15 Martin Liska <mliska@suse.cz>
35542 * optc-save-gen.awk: Add support for array types.
35544 2015-01-15 Richard Biener <rguenther@suse.de>
35546 PR middle-end/64365
35547 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
35548 for MEM_REF access functions with the same base can never partially
35551 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
35553 * common.opt: New option -fstack-protector-explicit.
35554 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
35555 (stack_protect_decl_phase): Handle stack_protect attribute for
35556 explicit stack protection requests.
35557 (expand_used_vars): Similarly.
35558 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
35559 * doc/extend.texi: Add documentation for "stack_protect" attribute.
35560 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
35562 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
35565 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
35567 (sh_extending_set_of_reg): New struct.
35568 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
35569 sh_remove_reg_dead_or_unused_notes): New Declarations.
35570 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
35571 sh_find_extending_set_of_reg, sh_split_tst_subregs,
35572 sh_extending_set_of_reg::use_as_extended_reg): New functions.
35573 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
35574 convert to insn_and_split and use new function sh_split_tst_subregs.
35576 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
35578 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
35580 (Optimization Options): Move -fuse-ld documentation to...
35581 (Link Options): ...here.
35583 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35585 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
35587 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
35588 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
35589 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
35590 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
35591 instead of ZR for the memory operand of LL/SC.
35592 (compare_and_swap_12, sync_add<mode>): Likewise.
35593 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
35594 (sync_new_<optab>_12, sync_nand_12): Likewise.
35595 (sync_old_nand_12, sync_new_nand_12): Likewise.
35596 (sync_sub<mode>, sync_old_add<mode>): Likewise.
35597 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
35598 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
35599 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
35600 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
35601 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
35602 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
35603 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
35604 * doc/md.texi (ZC): Update description.
35606 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
35608 * builtins.c (expand_builtin_atomic_exchange): Remove error when
35609 memory model is CONSUME.
35610 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
35611 expand_builtin_atomic_store): Change invalid memory model errors to
35613 (expand_builtin_atomic_clear): Change invalid model errors to warnings
35614 and issue warning for CONSUME.
35616 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
35618 * lto-cgraph: Update function comments for
35619 lto_symtab_encoder_encode_*.
35621 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
35623 * Makefile.in (site.exp): Do not set ENABLE_LTO.
35625 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
35627 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
35628 * lto-cgraph.c (select_what_to_stream): Remove argument, use
35629 lto_stream_offload_p instead.
35630 * lto-streamer.h (select_what_to_stream): Remove argument.
35631 * passes.c (ipa_write_summaries): Likewise.
35632 * tree-pass.h (ipa_write_summaries): Likewise.
35634 2015-01-14 Richard Biener <rguenther@suse.de>
35636 PR tree-optimization/59354
35637 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
35638 groups larger than the slp group size as having gaps.
35640 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
35642 PR middle-end/59448
35643 * builtins.c (get_memmodel): Promote consume to acquire always.
35645 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35648 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
35651 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35654 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
35656 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
35657 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
35658 AVX512VBMI, as it implies AVX512BW.
35660 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35663 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
35664 (vec_unpacks_hi_v16sf): Ditto.
35666 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35668 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
35671 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35673 * doc/invoke.texi (mapcs): Mention deprecation.
35674 (mapcs-frame): Likewise.
35676 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
35679 * config/arm/arm.c (callee_saved_reg_p): Define.
35680 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
35681 register is callee saved instead of !call_used_regs[reg].
35682 (thumb1_compute_save_reg_mask): Likewise.
35684 2015-01-14 Hale Wang <hale.wang@arm.com>
35686 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
35689 2015-01-14 Richard Biener <rguenther@suse.de>
35692 * tree-inline.c (insert_debug_decl_map): Check destination
35693 function MAY_HAVE_DEBUG_STMTS.
35694 (insert_init_debug_bind): Likewise.
35695 (insert_init_stmt): Remove redundant check.
35696 (remap_gimple_stmt): Drop debug stmts if the destination
35697 function has var-tracking assignments disabled.
35699 2015-01-14 Martin Liska <mliska@suse.cz>
35701 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
35702 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
35704 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35707 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
35708 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
35710 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35712 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
35713 level from an ARCH; do not inject the default.
35714 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
35715 MIPS_ISA_LEVEL_SPEC.
35716 (MIPS_ISA_NAN2008_SPEC): Update comment.
35717 (BASE_DRIVER_SELF_SPECS): Likewise.
35718 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
35719 MIPS_DEFAULT_ISA_LEVEL_SPEC.
35720 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
35721 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
35722 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
35724 2015-01-14 Richard Biener <rguenther@suse.de>
35726 PR tree-optimization/64493
35727 PR tree-optimization/64495
35728 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
35729 assign the proper vectorized PHI to the inner loop exit PHIs.
35731 2015-01-14 Joey Ye <joey.ye@arm.com>
35733 * config/arm/arm.c (arm_compute_save_reg_mask):
35734 Do not save lr in case of tail call.
35735 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
35737 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
35739 * tree-vrp.c (check_array_ref): Emit more warnings
35740 for warn_array_bounds >= 2.
35741 * common.opt: New option -Warray-bounds=.
35742 * doc/invoke.texi: Document -Warray-bounds=.
35744 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
35746 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
35747 (mforbid-fp-as-gp): Remove.
35749 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
35750 (nds32_symbol_load_store_p): Remove.
35751 (nds32_fp_as_gp_check_available): Clean up implementation.
35752 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
35754 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
35755 fp-as-gp and ex9 cases.
35757 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35759 * tree-profile.c (init_ic_make_global_vars): Drop workaround
35760 for bintuils bug 14342.
35761 (init_ic_make_global_vars): Likewise.
35762 (gimple_init_edge_profiler): Likewise.
35763 (gimple_gen_ic_func_profiler): Likewise.
35765 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35767 * ipa-inline.c (inline_small_functions): Swap the operands in
35770 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35773 * ipa-inline-analysis.c (node_growth_cache): Remove.
35774 (initialize_growth_caches): Do not initialize it.
35775 (free_growth_caches): Do not free it.
35776 (do_estimate_growth): Rename to ...
35777 (estimate_growth): ... this one; drop growth cache code.
35778 (growth_likely_positive): Always go the heuristics way.
35779 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
35780 (reset_edge_caches): Do not reset node growth.
35781 (heap_edge_removal_hook): Do not maintain cache.
35782 (inline_small_functions): Likewise; strenghten sanity check.
35783 (ipa_inline): Do not maintain caches.
35784 * ipa-inline.h (node_growth_cache): Remove.
35785 (do_estimate_growth): Remove to ...
35786 (estimate_growth): this one; remove inline version.
35787 (reset_node_growth_cache): Remove.
35789 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35792 * ipa-inline.c (inline_small_functions): Update callee keys after
35793 resolving speculation
35794 (inline_small_functions): Always check monotonicity of the queue.
35796 2015-01-13 Marek Polacek <polacek@redhat.com>
35798 PR middle-end/64391
35799 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
35801 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35803 PR rtl-optimization/64286
35804 * ree.c (combine_reaching_defs): Move part of comment earlier,
35805 remove !SCALAR_INT_MODE_P check.
35806 (add_removable_extension): Don't add vector mode
35807 extensions if all uses of the source register aren't the same
35810 2015-01-13 Renlin Li <renlin.li@arm.com>
35812 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
35813 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
35815 2015-01-13 Martin Liska <mliska@suse.cz>
35817 * ipa-icf.c (sem_function::equals_private): Call new functions
35818 cl_target_option_print_diff and cl_optimization_print_diff.
35819 * optc-save-gen.awk (cl_target_option_print_diff): New function.
35820 (cl_optimization_print_diff): Likewise.
35821 * opth-gen.awk: Likewise.
35823 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
35825 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
35826 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
35827 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
35828 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
35829 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
35830 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
35832 2015-01-13 Andrew Pinski <apinski@cavium.com>
35834 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
35835 instead of src mode.
35837 2015-01-13 Richard Biener <rguenther@suse.de>
35840 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
35843 2015-01-13 Andrew Pinski <apinski@cavium.com>
35845 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35847 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35849 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35851 PR middle-end/63974
35852 * cfgexpand.c (expand_computed_goto): Don't call
35853 convert_memory_address here.
35855 2015-01-13 Richard Biener <rguenther@suse.de>
35857 PR tree-optimization/64406
35858 * tree-loop-distibution.c (pass_loop_distribution::execute):
35859 Reset the SCEV hashtable if we distributed anything.
35861 2015-01-13 Richard Biener <rguenther@suse.de>
35863 PR tree-optimization/64404
35864 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35865 SLP types for CSEd loads.
35867 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35869 PR tree-optimization/64436
35870 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35871 merge of two symbolic numbers for a bitwise OR to ...
35872 (perform_symbolic_merge): This. Also fix computation of the range and
35873 end of the symbolic number corresponding to the result of a bitwise OR.
35875 2015-01-13 Richard Biener <rguenther@suse.de>
35877 PR tree-optimization/64568
35878 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35879 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35881 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35883 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35884 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35886 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35888 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35889 target-specific symbol_ref flag.
35890 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35891 resides in rodata section.
35892 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35893 (nds32_encode_section_info): New function.
35895 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35897 * config/nds32/nds32.md (call): Use pseudo instruction bal which
35898 clobbers TA_REGNUM if large code model is specified.
35899 (call_register): Likewise.
35900 (call_immediate): Likewise.
35901 (call_value): Likewise.
35902 (call_value_register): Likewise.
35903 (call_value_immediate): Likewise.
35905 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35907 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35908 (TARGET_CMODEL_MEDIUM): New macro.
35909 (TARGET_CMODEL_LARGE): New macro.
35910 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35911 code model setting in assembly code.
35913 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35915 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35916 Remove MASK_GP_DIRECT flag.
35917 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35918 one of the multilib default options.
35919 * config/nds32/nds32.opt (mgp-direct): Remove.
35920 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35921 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
35923 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35925 * config/nds32/nds32.opt (mcmodel): Add new option.
35926 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35927 to describe code model.
35929 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
35932 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35934 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
35936 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35937 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35938 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35939 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35940 __builtin_sh_set_fpscr.
35942 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35944 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35945 after a funtion name just to indicate it is a function.
35946 ([-fsanitize-undefined-trap-on-error]): Likewise.
35947 ([-fdbg-cnt=]): Likewise.
35948 ([-mmemcpy]): Likewise.
35949 ([-mflush-func]): Likewise.
35950 ([-msynci]): Likewise.
35952 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35954 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35957 2015-01-12 Jakub Jelinek <jakub@redhat.com>
35959 PR tree-optimization/64563
35960 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35961 instead of != VR_VARYING.
35964 * config/i386/i386.c (ix86_expand_prologue): Add
35965 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35967 PR tree-optimization/64454
35968 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35969 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35970 for signed or [0, op1 - 1] for unsigned modulo.
35971 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35972 even if op1 does not satisfy integer_pow2p.
35975 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35977 2015-01-12 Jeff Law <law@redhat.com>
35980 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35981 (trunchiqi2, truncsihi2): Similarly.
35983 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35984 rather than calling F.
35986 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
35988 * tsan.c (instrument_expr): Use force_gimple_operand.
35989 Use may_be_nonaddressable_p instead of is_gimple_addressable.
35991 2015-01-12 Richard Biener <rguenther@suse.de>
35993 PR tree-optimization/64530
35994 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35997 2015-01-12 Richard Biener <rguenther@suse.de>
35999 PR middle-end/64357
36000 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36003 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36005 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36006 Cortex-A17 tuning parameters.
36007 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36009 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36011 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36012 * config/arm/arm.c (arm_macro_fusion_p): New function.
36013 (arm_macro_fusion_pair_p): Likewise.
36014 (TARGET_SCHED_MACRO_FUSION_P): Define.
36015 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36016 (ARM_FUSE_NOTHING): Likewise.
36017 (ARM_FUSE_MOVW_MOVT): Likewise.
36018 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36019 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36020 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36021 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36022 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36023 arm_cortex_a5_tune): Specify fuseable_ops value.
36025 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
36028 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36029 test for PIE with copy reloc.
36030 * configure: Regenerated.
36032 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36034 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36036 (arm_tls_descseq_addr): Likewise.
36037 (arm_gen_movmemqi): Likewise.
36038 (arm_expand_epilogue_apcs_frame): Likewise.
36039 (arm_expand_epilogue): Likewise.
36040 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
36043 2015-01-12 Martin Liska <mliska@suse.cz>
36046 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36047 volatility for correct operands.
36049 2015-01-12 Martin Liska <mliska@suse.cz>
36051 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36052 indication that a function is not leaf.
36053 (sem_function::compare_polymorphic_p): Likewise.
36055 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36057 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36058 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36059 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36060 fold-const.h, tree-check.h.
36062 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36066 * ipa-inline.c (compute_uninlined_call_time,
36067 compute_inlined_call_time): Use counts for extra precision when
36069 (big_speedup_p): Fix formating.
36070 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36071 (relative_time_benefit): Remove.
36072 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36073 merge guessed and read profile paths.
36074 (inline_small_functions): Count only !optimize_size functions into
36075 initial size; be more lax about sanity check when profile is used;
36076 be sure to update inlined function profile when profile is read.
36078 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36081 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36082 cost when edge becomes direct.
36083 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36084 is resolved or when introducing new speculation.
36086 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
36090 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36091 '||' to fix typo issue.
36093 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36094 accept and return NULL.
36096 2015-01-12 Martin Liska <mliska@suse.cz>
36098 * cgraph.c (cgraph_edge::remove_callee): Move function to header
36099 file for being inlined.
36100 (cgraph_set_edge_callee): Delete.
36101 (cgraph_edge::redirect_callee): Move function to header file
36103 (cgraph_edge::make_direct): Use new function.
36104 (cgraph_edge::dump_edge_flags): New function created from
36105 static dump_edge_flags function.
36106 (cgraph_node::dump): Use new function.
36107 (cgraph_edge::verify_count_and_frequency): New function created
36108 from verify_edge_count_and_frequency.
36109 (cgraph_edge::verify_corresponds_to_fndecl): New function created
36110 from verify_edge_corresponds_to_fndecl.
36111 (verify_edge_corresponds_to_fndecl): Delete.
36112 (cgraph_node::verify_node): Use new function.
36113 * cgraph.h (cgraph_edge::set_callee): New function.
36114 (cgraph_edge::dump_edge_flags): Likewise.
36115 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
36117 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
36119 * ipa-utils.c (estimate_function_body_sizes): Do not
36120 free node params when called late with early=true.
36122 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
36124 * doc/md.texi (Instruction Patterns): Rewrite text for
36126 (Example): Likewise.
36128 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
36130 * doc/invoke.texi (Option Summary): Break long lines.
36131 [(-fdiagnostics-color)]: Put long literal in @smallexample
36133 [(-fsanitize-recover)]: Likewise.
36134 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
36135 [(-ffast-math)]: Likewise.
36136 [(--param max-inline-insns-recursive)]: Likewise.
36137 [(--param max-inline-recursive-depth)]: Likewise.
36138 [(-mno-text-section-literals)]: Likewise.
36140 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
36142 * doc/install.texi: Update for libgomp being renamed from "GNU
36143 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
36145 * doc/sourcebuild.texi: Likewise.
36147 2015-01-10 Anthony Green <green@moxielogic.com>
36149 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
36150 mul.x availability for moxiebox configuration.
36152 2015-01-09 Anthony Green <green@moxielogic.com>
36154 * config/moxie/moxie.md: Tabify assembly output.
36156 2015-01-09 Anthony Green <green@moxielogic.com>
36158 * config/moxie/moxie.md (CC_REG): Correct register definition.
36160 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
36162 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
36163 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
36166 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36168 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
36170 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
36171 Jakub Jelinek <jakub@redhat.com>
36173 PR middle-end/64412
36174 * lto-streamer.h (lto_stream_offload_p): New declaration.
36175 * lto-streamer.c (lto_stream_offload_p): New variable.
36176 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
36177 at the same time as section_name_prefix.
36178 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
36179 if lto_stream_offload_p.
36180 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
36181 stream TREE_TARGET_OPTION if lto_stream_offload_p.
36182 (write_ts_function_decl_tree_pointers): Don't
36183 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
36184 * tree-streamer-in.c (unpack_value_fields): Don't stream
36185 TREE_TARGET_OPTION in if ACCEL_COMPILER.
36186 (lto_input_ts_function_decl_tree_pointers): Don't stream
36187 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
36188 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
36189 instead of section_name_prefix string comparisons.
36191 2015-01-09 Jakub Jelinek <jakub@redhat.com>
36193 PR rtl-optimization/64536
36194 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
36197 2015-01-09 Michael Collison <michael.collison@linaro.org>
36199 PR tree-optimization/64322
36200 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
36201 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
36203 2015-01-09 Tom de Vries <tom@codesourcery.com>
36205 PR rtl-optimization/64539
36206 * regcprop.c (kill_clobbered_values): Factor out of ...
36207 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
36208 instead of note_stores with kill_clobbered_value.
36210 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36212 * ginclude/unwind-arm-common.h: Revert previous commit.
36214 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36216 * config.gcc (arm*-*-freebsd*): New configuration.
36217 * config/arm/freebsd.h: New file.
36218 * config.host: Add extra components for arm*-*-freebsd*.
36219 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
36220 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
36222 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36224 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
36226 * config/rs6000/t-rtems: Add e6500 multilibs.
36228 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36230 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
36233 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36235 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
36236 MULTILIB_EXCEPTIONS.
36238 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36240 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
36241 MULTILIB_EXCEPTIONS.
36243 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36245 * config/arm/t-rtems-eabi: Rename to...
36246 * config/arm/t-rtems: ...this.
36247 * config/arm/rtems-eabi.h: Rename to...
36248 * config/arm/rtems.h: ...this.
36249 * config.gcc (arm*-*-rtems*): Reflect changes above.
36251 2015-01-09 Richard Biener <rguenther@suse.de>
36253 PR tree-optimization/64410
36254 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
36256 (execute_update_addresses_taken): Deal with that.
36257 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
36258 loads/stores for complex variables.
36260 2015-01-09 Martin Liska <mliska@suse.cz>
36262 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
36264 (func_checker::compare_memory_operand): New function.
36265 (func_checker::compare_operand): Split case to newly
36267 (func_checker::compare_cst_or_decl): New function.
36268 (func_checker::compare_gimple_call): Identify
36270 (func_checker::compare_gimple_assign): Likewise.
36271 * ipa-icf-gimple.h: New function.
36273 2015-01-09 Martin Liska <mliska@suse.cz>
36276 * sreal.c (sreal::dump): Change unsigned format to signed for
36278 (sreal::to_double): Replace exp2 with scalbln.
36280 2015-01-09 Martin Liska <mliska@suse.cz>
36282 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
36283 * ipa-icf.c (sem_function::equals_private): Add support for target and
36284 (sem_item_optimizer::merge_classes): Remove redundant function
36285 optimization flags comparison.
36286 * tree.h (target_opts_for_fn): New function.
36288 2015-01-09 Tom de Vries <tom@codesourcery.com>
36290 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
36292 2015-01-09 Kito Cheng <kito@0xlab.org>
36294 PR rtl-optimization/64348
36295 * lra-constraints.c (split_reg): Fix caller-save store/restore
36296 instruction generation.
36298 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
36300 PR gcov-profile/61790
36301 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
36302 long long. Fallback to int64_t if host doesn't have long long and
36303 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
36305 2015-01-08 Jakub Jelinek <jakub@redhat.com>
36307 PR tree-optimization/63989
36308 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
36309 from 1000 to 10000.
36310 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
36311 (get_stridx): If we don't have a record for certain SSA_NAME,
36312 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
36313 constant offset, call get_stridx_plus_constant.
36314 (get_stridx_plus_constant): New function.
36315 (zero_length_string): Don't use get_stridx here.
36318 PR middle-end/64388
36319 * dse.c (struct insn_info): Mention frame_read set also
36320 before reload for tail calls on some targets.
36321 (scan_insn): Revert 2014-12-22 change. Set frame_read
36322 also before reload for tail calls if
36323 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
36324 instead of add_non_frame_wild_read for non-const/memset
36325 tail calls after reload.
36327 2015-01-08 Jason Merrill <jason@redhat.com>
36329 * ubsan.c (do_ubsan_in_current_function): New.
36330 (pass_ubsan::gate): Use it.
36331 * ubsan.h: Declare it.
36332 * convert.c (convert_to_integer): Use it.
36334 2015-01-08 Jakub Jelinek <jakub@redhat.com>
36337 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
36338 compare_code when it is unconditionally overwritten afterwards.
36339 Use ix86_reverse_condition instead of reverse_condition. Don't
36340 change code if *reverse_condition* returned UNKNOWN and don't
36341 swap ct/cf and negate diff in that case.
36343 2015-01-08 Mike Stump <mikestump@comcast.net>
36345 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
36346 (pass_tsan_O0::gate): Likewise.
36347 * extend.texi (Function Attributes): Add no_sanitize_thread
36350 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
36352 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
36353 for registering builtins.
36354 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
36355 add -fopenmp to the argv_obstack used when invoking
36356 compile_for_target.
36358 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
36359 add "-m32" or "-m64" to argv_obstack.
36360 (generate_host_descr_file): Likewise, when invoking host_compiler.
36361 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
36364 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
36366 * config/sh/sh-mem.cc: Use constant as second operand when emitting
36369 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
36372 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
36373 constant load if constant operand fits into I08.
36375 2015-01-08 Jakub Jelinek <jakub@redhat.com>
36378 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
36379 and TREE_THIS_VOLATILE for MEM_REFs.
36380 (build5_stat): Fix up initialization of TREE_READONLY and
36381 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
36383 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
36386 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
36387 of r for the second alternative of the destination operand.
36389 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
36392 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
36394 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
36396 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
36398 ([-fivar-visibility], [-fvisibility]): Likewise.
36400 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
36402 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
36403 the file where @code, @command, etc is more appropriate.
36405 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
36407 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
36408 of -mrecip= documentation.
36410 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36413 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
36414 correct reload handler if -m32 -mpowerpc64 is used.
36416 2015-01-06 Tom de Vries <tom@codesourcery.com>
36418 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
36420 2015-01-08 Christian Bruel <christian.bruel@st.com>
36423 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
36425 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
36427 PR tree-optimization/63259
36428 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
36429 if optab exists for 16bit byteswap.
36431 2015-01-06 Jakub Jelinek <jakub@redhat.com>
36433 * opts.c (common_handle_option): Add support for
36434 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
36435 * doc/invoke.texi: Document -fno-sanitize=all,
36436 -f{,no-}sanitize-recover=all. Document that
36437 -fsanitize=float-cast-overflow is not enabled
36438 by -fsanitize=undefined. Fix up documentation
36439 of -f{,no-}sanitize-recover.
36441 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
36443 * config.gcc: Add Visium support.
36444 * configure.ac: Likewise.
36445 * configure: Regenerate.
36446 * doc/extend.texi (interrupt attribute): Add Visium.
36447 * doc/invoke.texi: Document Visium options.
36448 * doc/install.texi: Document Visium target.
36449 * doc/md.texi: Document Visium constraints.
36450 * common/config/visium: New directory.
36451 * config/visium: Likewise.
36453 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
36455 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
36456 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
36458 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
36460 * combine.c (combine_validate_cost): Do not count the cost of a
36461 split I2 twice. Do not display it twice in the dump, either.
36463 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
36465 Revert parts of r219199.
36466 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
36468 ([-Wtraditional]): Restore markup on <limits.h>.
36470 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
36473 * doc/invoke.texi: Document -Wsuggest-override.
36475 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
36477 PR rtl-optimization/64287
36478 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
36479 (process_options): Disable flag_ipa_ra if profiling.
36481 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
36483 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
36485 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
36487 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
36488 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
36489 put under #if TARGET_LOOPS guard.
36491 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
36493 * config/i386/i386.c (output_387_binary_op): Use std::swap.
36495 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
36497 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
36498 * rtl.h (refers_to_regno_p): Add overload.
36500 * bt-load.c: Likewise.
36501 * combine.c: Likewise.
36502 * df-scan.c: Likewise.
36503 * sched-deps.c: Likewise.
36504 * config/s390/s390.c: Likewise.
36505 * config/m32r/m32r.c: Likewise.
36506 * config/rs6000/spe.md: Likewise.
36507 * config/rs6000/rs6000.c: Likewise.
36508 * config/pa/pa.c: Likewise.
36509 * config/stormy16/stormy16.c: Likewise.
36510 * config/cris/cris.c: Likewise.
36511 * config/arc/arc.md: Likewise.
36512 * config/arc/arc.c: Likewise.
36513 * config/sh/sh.md: Likewise.
36514 * config/sh/sh.c: Likewise.
36515 * config/frv/frv.c: Likewise.
36517 2015-01-05 Jakub Jelinek <jakub@redhat.com>
36520 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
36521 call as cleanup of the whole body.
36522 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
36523 * tsan.c (replace_func_exit): New function.
36524 (instrument_func_exit): Moved earlier.
36525 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
36526 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
36528 (tsan_pass): Don't call instrument_func_exit.
36529 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
36530 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
36534 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
36535 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
36536 it to libubsan handler instead of EXPR. Fold comparisons earlier,
36537 if the result is integer_zerop, return NULL_TREE.
36538 * convert.c (convert_to_integer): Pass expr as ARG.
36540 PR tree-optimization/64465
36541 * tree-inline.c (redirect_all_calls): During inlining
36542 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
36543 changed the stmt to a non-throwing call.
36545 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
36547 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
36548 etc markup throughout the file.
36550 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36552 Enable experimental TSAN support for Ada.
36553 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
36555 2015-01-05 Jakub Jelinek <jakub@redhat.com>
36557 PR tree-optimization/64494
36558 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
36559 clear SSA_NAME_ANTI_RANGE_P flag.
36561 2015-01-05 Marek Polacek <polacek@redhat.com>
36563 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
36565 2015-01-05 Jakub Jelinek <jakub@redhat.com>
36567 Update copyright years.
36569 * gcc.c (process_command): Update copyright notice dates.
36570 * gcov-dump.c: Ditto.
36572 * doc/cpp.texi: Bump @copying's copyright year.
36573 * doc/cppinternals.texi: Ditto.
36574 * doc/gcc.texi: Ditto.
36575 * doc/gccint.texi: Ditto.
36576 * doc/gcov.texi: Ditto.
36577 * doc/install.texi: Ditto.
36578 * doc/invoke.texi: Ditto.
36580 * auto-profile.c, auto-profile.h: Fix up Copyright line.
36582 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
36584 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
36586 ([-fvtable-verify], [-fvtv-debug]): Likewise.
36587 ([-Wabi]): Likewise.
36588 ([-fmessage-length]): Likewise.
36589 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
36590 ([-Wno-discarded-qualifiers]): Likewise.
36591 ([-Wnodiscarded-array-qualifiers]): Likewise.
36592 ([-Wno-virtual-move-assign]): Likewise.
36593 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
36594 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
36595 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
36596 ([-fsanitize-undefined-trap-on-error]): Likewise.
36597 ([-floop-interchange]): Likewise.
36598 ([-ftree-coalesce-inlined-vars]): Likewise.
36599 ([-fvect-cost-model]): Likewise.
36600 ([-flto]): Likewise.
36601 ([--param]): Likewise.
36602 (Spec Files): Likewise.
36603 ([-mstrict-align]): Likewise.
36604 ([-mfix-cortex-a53-835769]): Likewise.
36605 ([-march], [-mtune]): Likewise.
36606 ([-mpic-register]): Likewise.
36607 ([-munaligned-access]): Likewise.
36608 ([-msp8]): Likewise.
36609 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
36610 (AVR Built-in Macros): Likewise.
36611 ([-mpreferred-stack-boundary]): Likewise.
36612 ([-mtune-crtl]): Likewise.
36613 ([-mashf]): Likewise.
36614 ([-mmcu=]): Likewise.
36615 ([-minrt]): Likewise.
36616 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
36617 ([-mupper-regs]): Likewise.
36618 ([-matomic-model]): Likewise.
36619 ([-mdiv]): Likewise.
36620 ([-mzdcbranch]): Likewise.
36621 ([-mdisable-callt]): Likewise.
36622 ([-msoft-float]): Likewise.
36623 ([-m8byte-align]): Likewise.
36624 ([-fstack-reuse]): Likewise.
36626 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36628 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
36629 Fix markup, light copy-editing.
36630 ([-fauto-profile]): Rewrite to fix formatting and content
36633 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36635 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
36636 Copy-edit description.
36637 ([-fisolate-erroneous-paths-attribute]): Likewise.
36638 * common.opt (fisolate-erroneous-paths-dereference):
36639 Copy-edit description.
36640 (fisolate-erroneous-paths-attribute): Likewise.
36642 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36644 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
36647 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36649 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
36650 ([-fvtv-debug]): Likewise.
36651 ([-Wc++-compat]): Likewise.
36652 ([-Wc++11-compat]): Likewise.
36653 ([-Wc++14-compat]): Likewise.
36654 ([-Wno-sized-deallocation]): Likewise.
36655 ([-femit-class-debug-always]): Likewise.
36656 ([-femit-struct-debug-detailed]): Likewise.
36657 ([-fno-keep-inline-dllexport]): Likewise.
36658 ([-fira-algorithm]): Likewise.
36659 ([-fira-region]): Likewise.
36660 ([-flra-remat]): Likewise.
36661 ([-fipa-ra]): Likewise.
36662 ([-fhoist-adjacent-loads]): Likewise.
36663 ([-fisolate-erroneous-paths-dereference]): Likewise.
36664 ([-fisolate-erroneous-paths-attribute]): Likewise.
36665 ([-ftree-switch-conversion]): Likewise.
36666 ([-ftree-tail-merge]): Likewise.
36667 ([-ftree-loop-if-convert]): Likewise.
36668 ([-ftree-loop-if-convert-stores]): Likewise.
36669 ([-ftree-loop-distribution]): Likewise.
36670 ([-ftree-loop-distribute-patterns]): Likewise.
36671 ([-flto-compression-level]): Likewise.
36672 ([-flto-report]): Likewise.
36673 ([-flto-report-wpa]): Likewise.
36674 ([-fuse-linker-plugin]): Likewise.
36675 ([-mfix-cortex-a53-835769]): Likewise.
36676 ([-mno-fix-cortex-a53-835769]): Likewise.
36677 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
36678 explicit listing; add a note to the discussion indicating they
36679 exist. Reorder table to group similar options. Add missing
36680 @opindex entries. Add @need commands throughout the table to
36681 allow it to be split across multiple pages.
36682 ([-m8bit-idiv]): Fix @opindex.
36683 ([-mavx256-split-unaligned-load]): Likewise.
36684 ([-mavx256-split-unaligned-store]): Likewise.
36685 ([-mstack-protector-guard]): Likewise.
36686 ([-mcpu=]): Likewise.
36687 ([-mcpu]): Likewise.
36688 ([-mpointer-size=]): Likewise.
36690 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
36692 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
36693 instead of `m' constraint. Likewise for unnamed movb comparison
36694 patterns using reg_before_reload_operand predicate.
36695 * config/pa/predicates.md (reg_before_reload_operand): Tighten
36696 predicate to reject register index and LO_SUM DLT memory forms
36699 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
36701 * doc/invoke.texi (Option Summary): Fix spelling of
36702 -fdevirtualize-at-ltrans.
36703 ([-fdevirtualize]): Fix markup.
36704 ([-fdevirtualize-speculatively]): Fix typo.
36705 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
36706 implementor-speaky.
36707 * common.opt (fdevirtualize-at-ltrans): Likewise.
36708 * ipa-devirt.c: Fix typos in comments throughout the file.
36709 (ipa_devirt): Fix typos in format strings for dump output.
36711 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
36713 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
36714 discussion of defaults, light copy-editing.
36716 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
36718 * tsan.c (instrument_expr): corrected previous checkin.
36720 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
36722 Instrument bit field and unaligned accesses for TSAN.
36723 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
36724 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
36725 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
36726 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
36727 unaligned memory regions.
36729 2015-01-01 Anthony Green <green@moxielogic.com>
36731 * config/moxie/predicates.md (moxie_general_movsrc_operand):
36732 Restrict move source register offsets to 16 bits.
36734 Copyright (C) 2015 Free Software Foundation, Inc.
36736 Copying and distribution of this file, with or without modification,
36737 are permitted in any medium without royalty provided the copyright
36738 notice and this notice are preserved.