1 2015-12-16 Nathan Sidwell <nathan@acm.org>
3 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
4 (REGISTER_NAMES): Adjust.
5 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
6 (nvptx_static_hain): Delete.
7 (write_arg_mode): Don't emit initializer if argno < 0.
8 (write_arg_type): Fix whitespace.
9 (init_frame): Initialize reg to zero if frame is zero-sized.
10 (nvptx_declare_function_name): Use write_arg_type to emit chain
12 (nvptx_output_call_insn): Adjust static chain emission.
13 (nvptx_goacc_reduction): Make static.
14 (TARGET_STATIC_CHAIN): Don't override.
16 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
18 * graphite-dependences.c (scop_get_dependences): Use local pointers.
19 * graphite-isl-ast-to-gimple.c
20 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
21 * graphite-optimize-isl.c (optimize_isl): Same.
22 * graphite-poly.c (new_scop): Remove initialization of removed
25 * graphite.h (struct scop): Remove individial dependence pointers and
26 add a scop::dependence to contain all the dependence.
28 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
30 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
32 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
33 Sebastian Pop <s.pop@samsung.com>
35 * config.in: Regenerate.
36 * configure: Regenerate.
37 * configure.ac: Remove checks for functions that exist in isl 0.13
39 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
40 * graphite-optimize-isl.c: Same.
41 * graphite-poly.c: Same.
42 * graphite-sese-to-poly.c: Same.
43 * graphite.h: Add comment for isl 0.14.
44 * toplev.c (print_version): Print isl version.
46 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
48 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
49 speculate to impossible targets.
50 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
52 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
53 Sebastian Pop <s.pop@samsung.com>
55 * graphite-dependences.c (scop_get_reads): Add more dumps.
56 (scop_get_must_writes): Same.
57 (scop_get_may_writes): Same.
58 * graphite-poly.c (new_poly_dr): Same.
59 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
60 (gather_bbs::before_dom_children): Same.
62 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
64 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
66 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
67 to handle extend+shift rtxes.
69 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
72 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
74 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
77 2015-12-16 Richard Biener <rguenther@suse.de>
79 PR tree-optimization/68870
80 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
81 parameter, if set only perform trivial constant folding.
82 Queue other blocks with conditions for later processing.
83 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
84 (cleanup_tree_cfg_1): Pass true for the first iteration
85 cleanup_control_expr_graph.
87 2015-12-16 Nathan Sidwell <nathan@acm.org>
89 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
90 * config/nvptx/nvptx.h (struct machine_function):
91 Reimplement. Adjust all users.
92 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
93 and frame array generation earlier.
94 (nvptx_call_args): Reimplement.
95 (nvptx_expand_call): Adjust.
96 (nvptx_hard_reno_mode_ok): Delete.
97 (nvptx_reorg): Revert scan of hard regs.
99 2015-12-16 Tom de Vries <tom@codesourcery.com>
101 * opts.c (default_options_optimization): Set fipa-pta on by
102 default for fopenacc.
103 * passes.def: Move kernels pass group to pass_ipa_oacc.
104 * tree-pass.h (make_pass_oacc_kernels2): Remove.
105 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
106 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
108 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
109 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
110 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
112 2015-12-16 Richard Biener <rguenther@suse.de>
114 PR tree-optimization/68861
115 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
116 duplicate stmts when applying swapping to stmts.
118 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
120 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
121 duplicate check (__CLZERO__).
123 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
125 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
126 (vqrdmlahq_lane_s32): New.
127 (vqrdmlah_lane_s16): New.
128 (vqrdmlah_lane_s32): New.
129 (vqrdmlshq_lane_s16): New.
130 (vqrdmlshq_lane_s32): New.
131 (vqrdmlsh_lane_s16): New.
132 (vqrdmlsh_lane_s32): New.
133 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
136 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
138 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
139 (vqrdmlahq_s16, vqrdmlahq_s32): New.
140 (vqrdmlsh_s16, vqrdmlsh_s32): New.
141 (vqrdmlahq_s16, vqrdmlshq_s32): New.
142 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
144 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
146 * doc/sourcebuild.texi (ARM-specific attributes): Add
147 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
149 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
151 * config/arm/arm-c.c (arm_cpu_builtins): Define
152 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
154 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
156 * config/arm/iterators.md (VQRDMLH_AS): New.
159 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
160 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
161 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
162 (UNSPEC_VQRDMLSH): New.
164 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
166 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
167 matches for "armv8-a".
169 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
171 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
172 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
173 (FL2_FOR_ARCH8_1A): New.
174 * config/arm/arm-tables.opt: Regenerate.
175 * config/arm/arm.c (arm_arch8_1): New.
176 (arm_option_override): Set arm_arch8_1.
177 * config/arm/arm.h (TARGET_NEON_RDMA): New.
178 (arm_arch8_1): Declare.
179 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
181 (ARM Options, -mfpu): Fix a typo.
183 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
186 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
187 the complement of operands[3] during splitting.
189 2015-12-16 Richard Biener <rguenther@suse.de>
191 PR tree-optimization/68892
192 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
193 cost for permuted loads.
195 2015-12-16 Jakub Jelinek <jakub@redhat.com>
197 PR rtl-optimization/65980
198 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
199 next_nonnote_nondebug_insn instead of next_real_insn and
200 skip over CODE_LABELs too.
202 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
204 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
205 Do not copy DECL_VIRTUAL_P.
207 2015-12-15 Martin Sebor <msebor@redhat.com>
210 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
212 * tree.c (type_contains_placeholder_1): Avoid assuming type has
213 a non-null domain or an upper bound to handle flexible array
215 * varasm.c (output_constructor_regular_field): Same.
216 (output_constructor): Set min_index to integer_zero_node rather
217 than null when a type has no domain to avoid crashing later.
219 2015-12-15 Nathan Sidwell <nathan@acm.org>
221 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
222 (write_arg_mode): ... here. Update callers.
223 (write_arg): Rename to ...
224 (write__arg_type): ... here. Update callers.
225 (write_return_mode): New fn, broken out of ...
226 (write_return): ... here. Rename to ...
227 (write_return_type): ... here. Call it. Update callers.
228 (write_fn_proto_from_insn): Use write_arg_mode and
230 (init_frame): New fn.
231 (nvptx_declare_function_name): Call it for frame and varargs. Only
232 emit outgoing static chain, if it's live.
233 (nvptx_output_return): Use reg_names for return reg name.
234 (nvptx_output_call_insn): Likewise.
235 (nvptx_reorg): Mark unused hard regs too.
237 2015-12-15 Nathan Sidwell <nathan@acm.org>
239 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
241 (nvptx_reg_or_mem_operand): Likewise.
242 (nvptx_nonmemory_operand): Likewise.
243 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
244 (call_insn, call_value_insn): Address is not SImode.
245 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
246 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
248 (REGNO_REG_CLASS): Alwaus ALL_REGS.
249 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
250 (HARD_FRAME_POINTER_REGNUM): Delete.
251 (REGISTER_NAMES): Move earlier.
252 (struct nvptx_args): Remove 'off'.
253 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
254 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
255 * config/nvptx/nvptx.c (arg_promotion): Delete.
256 (nvptx_expand_call): Remove check for funtype being an fntype.
258 2015-12-15 Jason Merrill <jason@redhat.com>
260 * hash-map.h, hash-table.h: Make copy constructors explicit.
262 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
264 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
265 link" variables in ACCEL_COMPILER.
266 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
267 "omp declare target link" variables.
268 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
269 declare target link" variables.
270 (add_decls_addresses_to_decl_constructor): For "omp declare target
271 link" variables output address of the artificial pointer instead
272 of address of the variable. Set most significant bit of the size
274 (pass_data_omp_target_link): New pass_data.
275 (pass_omp_target_link): New class.
276 (find_link_var_op): New static function.
277 (make_pass_omp_target_link): New function.
278 * passes.def: Add pass_omp_target_link.
279 * tree-pass.h (make_pass_omp_target_link): Declare.
280 * varpool.c (symbol_table::output_variables): Do not assemble "omp
281 declare target link" variables in ACCEL_COMPILER.
283 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
286 * gensupport.c (collect_insn_data): Look for number of alternatives
289 2015-12-15 Nathan Sidwell <nathan@acm.org>
291 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
292 (CANNOT_CHANGE_MODE_CLASS): Always return true.
293 (HARD_REGNO_MODE_OK): Reformat.
294 * config/nvptx/nvptx.md (define_expand mov<mode>): No
295 RETURN_REGNUM handling here.
296 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
298 (write_one_arg): No QI or HI mode args.
299 (write_fn_proto_from_insn): No argument promotion here.
300 (nvptx_output_return_insn): No return promotion here.
301 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
302 (nvptx_output_call_insn): No return promotion here.
304 2015-12-15 Martin Jambor <mjambor@suse.cz>
307 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
308 * cgraph.h (cgraph_node): Change comment of collect_callers.
310 2015-12-15 Jakub Jelinek <jakub@redhat.com>
312 PR tree-optimization/66688
313 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
314 noreturn call followed only by debug stmts by removing
315 the debug stmts and handling it the same as if the noreturn
316 call is the last stmt.
318 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
320 * config/mips/mips.c (mips_promote_function_mode): New function.
321 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
322 (TARGET_PROMOTE_PROTOTYPES): Remove.
324 2015-12-14 Jason Merrill <jason@redhat.com>
327 * hash-table.h: Add copy constructor.
328 * hash-map.h: Add copy constructor.
330 2015-12-14 Tom de Vries <tom@codesourcery.com>
333 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
334 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
335 * tree-cfg.c (dump_default_def): New function.
336 (dump_function_to_file): Dump default defs for arguments, static chain,
337 and decl-by-reference.
339 2015-12-14 Nathan Sidwell <nathan@acm.org>
341 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
342 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
343 (pass_in_memory, promote_arg, promote_return): New.
344 (nvptx_function_arg_boundary): Delete.
345 (nvptx_function_value): Use promote_return.
346 (nvptx_pass_by_reference): Use pass_in_memory.
347 (nvptx_return_in_memory): Use pass_in_memory.
348 (nvptx_promote_function_mode): Use promote_arg.
349 (write_arg): Adjust arg splitting logic.
350 (write_return): Check and clear ret_reg_mode, if needed.
351 (write_fn_proto, nvptx_declare_function_name): Adust write_return
353 (TARGET_RUNCTION_ARG_BOUNDARY,
354 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
356 2015-12-14 Jakub Jelinek <jakub@redhat.com>
359 * common.opt (Wmissing-noreturn): Add Warning option.
360 * opts-common.c (control_warning_option): If opt is
361 alias_target with alias_arg, set arg to it.
363 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
367 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
370 2015-12-14 Richard Biener <rguenther@suse.de>
372 Revert accidentially applied
373 PR tree-optimization/68707
374 PR tree-optimization/67323
375 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
376 if they can be vectorized using load/store-lane instructions.
378 2015-12-14 Richard Biener <rguenther@suse.de>
380 PR tree-optimization/68852
381 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
382 (SLP_TREE_DEF_TYPE): New accessor.
383 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
385 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
387 (vect_build_slp_tree): When a node is to be built up from scalars
388 do not push a NULL as child but instead set its def_type to
390 (vect_analyze_slp_cost_1): Check for child def-type instead
392 (vect_detect_hybrid_slp_stmts): Likewise.
393 (vect_bb_slp_scalar_cost): Likewise.
394 (vect_get_slp_defs): Likewise.
395 (vect_slp_analyze_node_operations): Likewise. Before
396 processing node push the children def-types to the underlying
397 stmts vinfo and restore it afterwards.
398 (vect_schedule_slp_instance): Likewise.
399 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
402 2015-12-14 Richard Biener <rguenther@suse.de>
404 PR tree-optimization/68775
405 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
406 a operand swapping even if replacing the op with scalars.
408 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
410 * combine.c (change_zero_ext): Do not create a shift of zero length.
412 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
414 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
416 (arc_no_speculation_in_delay_slots_p): New function.
418 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
419 Andrew Burgess <andrew.burgess@embecosm.com>
421 * config/arc/arc.c (frame_move): Set frame related flag.
422 (arc_save_restore): Emit epilogue related DWARF2 information.
423 (arc_expand_epilogue): Likewise.
424 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
425 (mepilogue-cfi): Likewise.
426 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
428 2015-12-14 Martin Jambor <mjambor@suse.cz>
431 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
432 (call_passes_through_thunk_p): ...here.
433 (find_more_scalar_values_for_callers_subset): Perform thunk checks
434 like propagate_constants_accross_call does.
436 2015-12-14 Jakub Jelinek <jakub@redhat.com>
438 PR rtl-optimization/68730
439 * cfgrtl.c (cfg_layout_finalize): Free dominators.
441 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
444 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
445 ops that simplify back to the original value.
446 * alias.c (refs_newer_value_p): Cut off recursion for
447 expressions containing the original value.
449 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
451 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
453 2015-12-13 Tom de Vries <tom@codesourcery.com>
455 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
456 parameters of GOACC_paralllel.
458 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
460 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
461 flag to lto_get_section_data.
462 * varpool.c (varpool_node::get_constructor): Likewise.
463 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
464 (lto_free_section_data): Likewise.
465 (lto_get_raw_section_data): New function.
466 (lto_free_raw_section_data): New function.
467 (copy_function_or_variable): Copy sections w/o decompressing.
468 (lto_output_decl_state_refs): Picke compressed bit.
469 * lto-streamer.h (lto_in_decl_state): New flag compressed.
470 (lto_out_decl_state): Likewise.
471 (lto_get_section_data, lto_free_section_data): Update prototypes
472 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
473 (lto_write_raw_data): Declare.
474 (lto_begin_section): Remove FIXME.
475 (lto_write_raw_data): New function.
476 (lto_write_stream): Remove FIXME.
477 (lto_new_out_decl_state): Set compressed flag.
479 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
481 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
482 unnecesary type decls.
483 * tree.h (is_redundant_typedef): Declare.
484 * dwarf2out.c (is_redundant_typedef): Export; booleanize
486 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
488 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
489 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
490 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
491 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
492 <CONST_DOUBLE>: Remove VOIDmode test.
493 (epilogue_renumber) <CONST_WIDE_INT>: New case.
494 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
495 (sparc_assemble_integer): Likewise.
496 (set_extends): Likewise.
497 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
498 <CONST_WIDE_INT>: New case.
499 <CONST_DOUBLE>: Remove support for VOIDmode.
500 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
501 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
502 (const_all_ones_operand): Likewise.
503 (uns_small_int_operand): Remove const_double and code conditionalized
504 on HOST_BITS_PER_WIDE_INT == 32.
505 (arith_double_operand): Likewise.
506 (arith_double_add_operand): Likewise.
507 (input_operand): Remove support for CONST_DOUBLE with DImode.
508 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
509 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
510 (DFmode CONST_DOUBLE splitter): Likewise.
511 (*adddi3_insn_sp32): Likewise.
512 (*subdi3_insn_sp32): Likewise.
513 (DImode logical splitter): Likewise.
514 (DImode CONST_DOUBLE splitter): Delete.
516 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
519 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
520 sanitization of left shifts for wrapping signed types as well.
522 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
525 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
526 Do not gimplify the result.
527 (do_unop): Adjust call to tree_vec_extract.
528 (do_binop): Likewise.
529 (do_compare): Likewise.
530 (do_plus_minus): Likewise.
531 (do_negate): Likewise.
532 (expand_vector_condition): Likewise.
535 2015-12-11 Nathan Sidwell <nathan@acm.org>
537 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
538 (OUTGOING_ARG_POINTER_REGNUM): Delete.
539 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
540 (REGISTER_NAMES): Name static chain regs.
541 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
543 (nvptx_incoming_arg): Merge ifs.
544 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
545 (nvptx_function_value): Tail call nvptx_libcall_value.
546 (nvptx_pass_by_reference): Add ARG_UNUSED.
547 (nvptx_static_chain): Use conditional op.
548 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
550 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
551 Dominique d'Humieres <dominiq@lps.ens.fr>
556 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
559 2015-12-11 Jan Beulich <jbeulich@suse.com>
561 * cfgexpand.c (expand_one_var): Exit early for static and
562 external variables when adjusting stack alignment related.
564 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
566 * config/s390/s390.c (s390_rtx_costs)
567 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
568 (s390_preferred_reload_class, s390_reload_symref_address)
569 (legitimate_reload_constant_p, print_operand): Wide int support.
570 * config/s390/predicates.md ("const0_operand", "constm1_operand")
571 ("consttable_operand"): Likewise.
572 ("larl_operand"): Add a comment.
573 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
576 2015-12-11 Nathan Sidwell <nathan@acm.org>
578 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
579 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
582 2015-12-11 Tom de Vries <tom@codesourcery.com>
584 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
586 2015-12-11 Michael Matz <matz@suse.de>
588 * hash-map.h (hash_map::hash_map): Gather statistics only
589 when GATHER_STATISTICS is true.
590 * hash-set.h (hash_set::hash_set): Ditto.
591 * hash-table.h (hash_table::hash_table): Ditto.
592 (hash_table::create_ggc): Ditto.
594 2015-12-11 Martin Jambor <mjambor@suse.cz>
597 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
598 assert that align is nonzero.
600 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
602 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
603 * config/s390/s390.md ("*setmem_long")
604 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
605 ("*setmem_long_and_31z"): New define_insn.
606 ("setmem_long_<P:mode>"): New expanders.
607 * (<modesize>): New mode attribute
609 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
611 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
612 ("movstr<P:mode>"): New indirect expanders used by "movstr".
614 2015-12-11 Martin Liska <mliska@suse.cz>
615 Uros Bizjak <ubizjak@gmail.com>
618 * config/i386/i386.c (ix86_valid_target_attribute_tree):
619 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
620 opts->x_ix86_tune_string.
622 2015-12-11 Richard Biener <rguenther@suse.de>
624 * lto-streamer.h (lto_simple_header_with_strings): Remove
625 main_size field already in lto_simple_header.
627 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
629 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
632 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
634 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
635 modes for 32 and 16 byte boolean vectors when possible.
637 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
639 PR rtl-optimization/67778
640 PR rtl-optimization/68634
641 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
642 to put the prologue earlier. When determining if an earlier block is
643 suitable, make sure it dominates every block reachable from it.
645 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
647 PR rtl-optimization/68814
648 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
651 2015-12-10 Nathan Sidwell <nathan@acm.org>
653 * config/nvptx/nvptx.c (nvptx_function_arg,
654 nvptx_function_incoming_arg, nvptx_function_arg_advance,
655 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
656 nvptx_libcall_value, nvptx_function_value,
657 nvptx_function_value_regno_p, nvptx_pass_by_reference,
658 nvptx_return_in_memory, nvptx_promote_function_mode,
659 nvptx_static_chain): Move earlier.
660 (write_one_arg): Break out as helper fn for ...
661 (write_arg): ... this new function. Adjust all callers.
663 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
665 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
667 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
669 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
670 (good_cloning_opportunity_p): Likewise.
671 (gather_context_independent_values): Do not return true when
672 polymorphic call context is known or when we have known aggregate
673 value of unused parameter.
674 (estimate_local_effects): Try to create clone for all context
675 when either some params are substituted or devirtualization is possible
676 or some params can be removed; use local flag instead of
677 node->will_be_removed_from_program_if_no_direct_calls_p.
678 (identify_dead_nodes): Likewise.
680 2015-12-10 David Malcolm <dmalcolm@redhat.com>
682 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
684 (-Wmisleading-indentation): Update documentation to reflect
685 being enabled by -Wall in C/C++.
687 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
689 PR rtl-optimization/68691
690 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
691 number in non-debug insns and remove debug insns if necessary.
693 2015-12-10 Martin Sebor <msebor@redhat.com>
695 * invoke.texi (Warning Options): Update -Wall options. Clarify
696 when some -Wextra options are enabled. Add -Wplacement-new example.
698 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
700 * graphite-scop-detection.c (gather_bbs::before_dom_children):
701 Change return type to an edge. Always return NULL.
703 2015-12-10 Jeff Law <law@redhat.com>
705 PR tree-optimization/68619
706 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
707 return value from optimize_stmt.
708 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
709 (pass_dominator:execute): If a block has an unreachable edge,
710 remove all jump threads through any successor of the affected block.
711 (record_equivalences_from_phis): Ignore alternative if the edge
712 does not have EDGE_EXECUTABLE set.
713 (single_incoming_edge_ignoring_loop_edges): Similarly.
714 (optimize_stmt): If a gimple_code has a compile-time constant
715 condition, return the edge taken for that constant value. Also
716 change the condition to true/false as necessary.
717 * domwalk.h (dom_walker::dom_walker): Add new argument
718 skip_unreachable_blocks. Don't provide empty constructor body.
719 (dom_walker::before_dom_children): Change return type.
720 (dom_walker::bb_reachable): Declare new private method.
721 (dom_walker::propagate_unreachable_to_edges): Likewise.
722 (dom_walker::m_unreachable_dom): Declare new private data member.
723 (dom_walker::m_skip_unreachable_blocks): Likewise.
724 * domwalk.c: Include dumpfile.h.
725 (dom_walker::dom_walker): New constructor. Initialize private data
726 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
727 extracted from tree-ssa-sccvn.c.
728 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
729 (dom_walker::propagate_unreachable_to_edges): Likewise.
730 (dom_walker::walk): Only call before_dom_children on reachable
731 blocks. If before_dom_children returns an edge, then clear
732 EDGE_EXECUTABLE for all other outgoing edges from the same block.
733 For unreachable blocks, call propagate_unreachable_to_edges.
734 Similarly, only call after_dom_children on reachable blocks. For
735 unreachable blocks, conditionally clear m_unreachable_dom.
736 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
738 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
740 (run_scc_vn): Likewise.
741 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
742 outgoing edge if a COND, SWITCH, or GOTO are optimized.
743 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
744 Change return type to an edge. Always return NULL.
745 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
746 * gimple-ssa-strength-reduction.c
747 (find_candidates_dom_walker::before_dom_children): Likewise.
748 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
749 (ipcp_modif_dom_walker::before_dom_children): Likewise.
750 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
751 (rewrite_update_dom_walker::before_dom_children): Likewise.
752 (mark_def_dom_children::before_dom_children): Likewise.
753 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
755 (invariantness_dom_walker::before_dom_children): Likewise.
756 (move_computations_dom_walker::before_dom_walker): Likewise.
758 (nontrapping_dom_walker::before_dom_children): Likewise.
760 (eliminate_dom_walker::before_dom_children): Likewise.
761 * tree-ssa-propagate.c
762 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
764 (strlen_dom_walker::before_dom_children): Likewise.
766 (uncprop_dom_walker::before_dom_children): Likewise.
768 2015-12-10 Jakub Jelinek <jakub@redhat.com>
770 PR rtl-optimization/68376
771 PR rtl-optimization/68670
772 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
773 or > -1 conditions regardless of negate, and disallow
774 all other conditions.
776 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
778 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
780 (chkp_fixup_inlined_call): New.
781 * tree-chkp.h (chkp_fixup_inlined_call): New.
782 * tree-stdarg.c: Include tree-chkp.h.
783 (expand_ifn_va_arg_1): Fixup bndret calls for removed
786 2015-12-10 Martin Jambor <mjambor@suse.cz>
788 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
789 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
791 2015-12-10 David Malcolm <dmalcolm@redhat.com>
793 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
795 2015-12-10 David Malcolm <dmalcolm@redhat.com>
797 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
799 2015-12-10 David Malcolm <dmalcolm@redhat.com>
801 * regrename.c (scan_rtx_address): Fix indentation.
803 2015-12-10 David Malcolm <dmalcolm@redhat.com>
805 * function.c (locate_and_pad_parm): Fix indentation.
807 2015-12-10 Richard Biener <rguenther@suse.de>
809 * tree-ssa-structalias.c (struct variable_info): Add
810 is_ipa_escape_point flag.
811 (new_var_info): Initialize to false.
812 (find_func_aliases): Generate escape constraints for stores
813 properly in IPA mode.
814 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
816 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
818 * config/arc/atomic.md: Add new file.
820 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
822 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
823 (arc_split_compare_and_swap): Likewise.
824 (arc_expand_compare_and_swap): Likewise.
825 * config/arc/arc.c (arc_init): Check usage atomic option.
826 (arc_pre_atomic_barrier): New function.
827 (arc_post_atomic_barrier): Likewise.
828 (emit_unlikely_jump): Likewise.
829 (arc_expand_compare_and_swap_qh): Likewise.
830 (arc_expand_compare_and_swap): Likewise.
831 (arc_split_compare_and_swap): Likewise.
832 (arc_expand_atomic_op): Likewise.
833 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
834 (ASM_SPEC): Enable mlock option when matomic is used.
835 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
836 (VUNSPEC_ARC_CAS): Likewise.
837 (VUNSPEC_ARC_LL): Likewise.
838 (VUNSPEC_ARC_SC): Likewise.
839 (VUNSPEC_ARC_EX): Likewise.
840 * config/arc/arc.opt (matomic): New option.
841 * config/arc/constraints.md (ATO): New constraint.
842 * config/arc/predicates.md (mem_noofs_operand): New predicate.
843 * doc/invoke.texi: Document -matomic.
844 * config/arc/atomic.md: New file.
846 2015-12-10 Richard Biener <rguenther@suse.de>
848 PR tree-optimization/68817
849 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
852 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
854 * tree-vect-stmts.c (vectorizable_assignment): Support
855 useless boolean conversion.
857 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
859 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
861 2015-12-10 Jakub Jelinek <jakub@redhat.com>
863 PR tree-optimization/68785
864 * gimple-fold.c (fold_ctor_reference): Pass return value from
865 native_encode_expr to native_interpret_expr.
866 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
868 2015-12-10 Richard Biener <rguenther@suse.de>
871 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
872 parameter and make vars_contains_nonlocal properly have
873 function-scope semantics in IPA mode.
874 (find_what_var_points_to): Add fndecl parameter.
875 (find_what_p_points_to): Likewise.
876 (pt_solution_includes_global): Remove IPA PTA early out.
877 (compute_points_to_sets): Adjust.
878 (ipa_pta_execute): Likewise. Clear final_solutions after
881 2015-12-10 Tom de Vries <tom@codesourcery.com>
884 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
885 ifdef to allow disabling default @node GNU Free Documentation License.
887 2015-12-10 Richard Biener <rguenther@suse.de>
889 * tree-ssa-structalias.c (create_function_info_for): Add missing
890 constraint from nonlocal for DECL_RESULT.
892 2015-12-10 Richard Biener <rguenther@suse.de>
894 * tree-if-conv.c: Include params.h.
895 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
896 instead of flag_tree_loop_if_convert_stores to guard cases
897 we'd introduce store-data-races.
899 2015-12-10 Richard Biener <rguenther@suse.de>
902 * ipa-split.c (split_function): Record return value properly
903 when the split part doesn't set it.
905 2015-12-10 Richard Biener <rguenther@suse.de>
907 PR tree-optimization/68806
908 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
909 reduction chains and ignore SLP reductions.
911 2015-12-10 Richard Biener <rguenther@suse.de>
913 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
915 (if_convertible_loop_p): Adjust.
917 2015-12-10 Tom de Vries <tom@codesourcery.com>
919 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
922 2015-12-10 Martin Liska <mliska@suse.cz>
924 * tree-vect-data-refs.c: Free an overwritten dataref.
926 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
929 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
930 consistent with modes of the input and output operands when doing
931 reloads to and from floating point registers. Do reload for all
934 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
938 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
939 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
940 (decl_refs_may_alias_p): Use compare_base_decls.
941 * alias.c: Include cgraph.h
942 (get_alias_set): Add cut-off for recursion.
943 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
944 (compare_base_decls): New function.
945 (base_alias_check): Likewise.
946 (memrefs_conflict_p): Likewise.
947 (nonoverlapping_memrefs_p): Likewise.
948 * alias.h (compare_base_decls): Declare.
950 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
953 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
956 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
960 * ipa-reference.c (ipa_reference_get_not_read_global,
961 ipa_reference_get_not_read_global): Fix WRT aliases.
962 (is_improper): Break out from ...
963 (is_proper_for_analysis): ... here; fix WRT aliases.
964 (analyze_function, generate_summary,
965 ipa_reference_write_optimization_summary,
966 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
967 * ipa-refrence.h (ipa_reference_var_uid): New inline.
968 * tree-ssa-alias.c: Revert my accidental previous commit.
969 (ref_maybe_used_by_call_p_1,
970 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
972 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
974 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
976 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
977 Sebastian Pop <s.pop@samsung.com>
979 * graphite-optimize-isl.c: Include isl/ast_build.h
980 (optimize_isl): Set several isl_options_set_* options.
982 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
983 Sebastian Pop <s.pop@samsung.com>
985 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
986 the same order as adding data reference access functions.
988 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
989 Sebastian Pop <s.pop@samsung.com>
991 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
993 2015-12-09 Marek Polacek <polacek@redhat.com>
995 PR tree-optimization/66949
996 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
997 single_non_singleton_phi_for_edges to get the PHI from
998 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
999 (factor_out_conditional_conversion): Adjust declaration. Make it
1000 return the newly-created PHI.
1002 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1004 * config/aarch64/aarch64-protos.h
1005 (aarch64_cannot_change_mode_class): Bring back.
1006 * config/aarch64/aarch64.c
1007 (aarch64_cannot_change_mode_class): Likewise.
1008 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1009 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1010 zero_extract rather than truncate.
1011 (aarch64_movdi_<mode>high): Likewise.
1013 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1015 PR tree-optimization/68786
1016 * tree-if-conv.c: Include builtins.h.
1017 (predicate_mem_writes): Put result of get_object_alignment (ref)
1018 into second argument's value.
1019 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1020 pointer alignment into second argument's value.
1021 * tree-data-ref.c (get_references_in_stmt): Use value of second
1022 argument for build_aligned_type, and only the type to build
1023 a zero second argument for MEM_REF.
1024 * internal-fn.c (expand_mask_load_optab_fn,
1025 expand_mask_store_optab_fn): Likewise.
1027 2015-12-09 Richard Biener <rguenther@suse.de>
1029 PR tree-optimization/68583
1030 * tree-if-conv.c (if_convertible_phi_p): Drop
1031 flag_tree_loop_if_convert_stores check in favor of the
1032 existing any_mask_load_store check.
1033 (insert_gimplified_predicates): Likewise.
1034 (combine_blocks): Likewise.
1035 (tree_if_conversion): Likewise.
1036 (ifcvt_memrefs_wont_trap): Properly check
1037 flag_tree_loop_if_convert_stores in all places that can end
1038 up introducing store-data-races.
1039 (if_convertible_gimple_assign_stmt_p): Remove restriction
1040 on flag_tree_loop_if_convert_stores for stores we can if-convert
1041 without introducing store-data-races. Force versioning for
1042 all if-converted stores.
1044 2015-12-09 Tom de Vries <tom@codesourcery.com>
1046 PR tree-optimization/68716
1047 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1048 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1050 2015-12-09 Martin Liska <mliska@suse.cz>
1052 * hash-traits.h (struct typed_delete_remove): New function.
1053 (typed_delete_remove ::remove): Likewise.
1054 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1056 (record_common_cand): Replace XNEW with operator new.
1058 2015-12-09 Martin Liska <mliska@suse.cz>
1060 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1062 2015-12-09 Martin Liska <mliska@suse.cz>
1065 * ipa-icf.c (sem_function::param_used_p): Return true
1066 if ipa_node_params_sum equals to NULL.
1068 2015-12-09 Richard Biener <rguenther@suse.de>
1070 PR tree-optimization/68583
1071 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1072 flag and rename predicates to w_predicate, rw_predicate and
1074 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1075 (DR_BASE_W_UNCONDITIONALLY): ... this.
1076 (DR_W_UNCONDITIONALLY): Add.
1077 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
1078 unconditionally written separately from read or written.
1079 (ifcvt_memrefs_wont_trap): Properly treat reads.
1080 (ifcvt_could_trap_p): Inline ...
1081 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
1082 to avoid code duplication.
1083 (if_convertible_loop_p_1): Adjust and properly initialize
1086 2015-12-09 Richard Biener <rguenther@suse.de>
1088 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1089 if it was not yet set.
1090 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1091 overwrite an existing entry.
1093 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1095 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
1096 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
1097 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
1099 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1102 * symtab.c (symtab_node::equal_address_to): New parameter
1104 * cgraph.h (symtab_node::equal_address_to): Update prototype.
1106 2015-12-08 DJ Delorie <dj@redhat.com>
1108 * config/rx/rx.opt (-mjsr): Add.
1109 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
1111 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
1113 * doc/invoke.texi (-mjsr): Document it.
1115 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1118 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
1119 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
1120 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
1121 DECL_ABSTRACT_ORIGIN is not error_mark_node.
1123 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1125 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
1127 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1129 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
1132 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1135 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
1138 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1141 * varpool.c (varpool_node::get_availability): Recurse only on
1142 weakrefs with definition in the target.
1143 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
1145 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1148 * ipa-visibility.c (can_replace_by_local_alias): Look through
1149 transparent aliases; refuse weakrefs.
1150 (update_visibility_by_resolution_info): Skip transparent aliases in the
1153 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1156 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
1157 (symtab_node::noninterposable_alias): Do not accept transparent
1160 2015-12-08 Nathan Sidwell <nathan@acm.org>
1162 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
1163 decl_offset, init_part, object_size, object_finished): Replace
1165 (struct init_frag): ... this new struct variable.
1166 (begin_decl_field, output_decl_chunk): Replace with ...
1167 (output_init_frag): ... this new function.
1168 (nvptx_assemble_value): Reimplement.
1169 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
1170 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
1171 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
1173 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1177 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
1178 with BLKmode promoted mode based on RESULT_DECLs.
1180 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1183 * config/i386/i386.c (ix86_option_override_internal): Enable
1184 -maccumulate-outgoing-args when %ebp is fixed due to stack
1185 realignment requirements.
1187 2015-12-08 Tom de Vries <tom@codesourcery.com>
1189 PR tree-optimization/68640
1190 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
1193 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
1195 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
1196 assembler to make source always 128bit.
1198 2015-12-08 Jakub Jelinek <jakub@redhat.com>
1202 * common.opt (Wframe-larger-than=): Add Warning.
1203 * opts.h (control_warning_option): Add ARG argument.
1204 * opts-common.c (cmdline_handle_error): New function.
1205 (read_cmdline_option): Use it.
1206 (control_warning_option): Likewise. Add ARG argument.
1207 If non-NULL, decode it if needed and pass through
1208 to handle_generated_option. Handle CLVC_ENUM like
1210 * opts.c (common_handle_option): Adjust control_warning_option
1212 (enable_warning_as_error): Likewise.
1214 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
1216 * config/aarch64/aarch64-options-extensions.def: Remove
1217 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
1219 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
1220 (AARCH64_FL_LOR): Remove.
1221 (AARCH64_FL_RDMA): Remove.
1222 (AARCH64_FL_V8_1): New.
1223 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
1224 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1225 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1226 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
1227 section on -march=native. Group descriptions of permitted
1228 architecture names together. Expand description of
1230 (AArch64 -mtune): Slightly rework section on -march=native.
1231 (AArch64 -mcpu): Slightly rework section on -march=native.
1232 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
1233 State that -march=armv8.1-a enables "crc" and "lse".
1235 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1237 * doc/invoke.texi (SPARC options): Fix typo.
1239 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1241 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
1242 (output_probe_stack_range): Rotate the loop and simplify.
1244 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1246 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
1247 infinity filterning code.
1249 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
1251 PR tree-optimization/68766
1252 * tree-vectorizer.c (vectorize_loops): Check for
1253 if-converted loops when debug counters are used.
1255 2015-12-07 DJ Delorie <dj@redhat.com>
1257 * config/rl78/constraints.md (Wfr): Change to be a non-memory
1259 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
1260 * config/rl78/rl78.c (rl78_one_far_p): Define.
1261 * config/rl78/rl78-virt (movqi_virt): Fix far memory
1263 (movhi_virt): Likewise.
1264 (zero_extendqihi2_virt): Likewise.
1265 (extendqihi2_virt): Likewise.
1266 (add<mode>3_virt): Likewise.
1267 (sub<mode>3_virt): Likewise.
1268 (andqi3_virt): Likewise.
1269 (iorqi3_virt): Likewise.
1270 (xorqi3_virt): Likewise.
1271 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
1272 overflow in large files.
1274 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1277 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
1278 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
1279 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
1280 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
1282 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
1284 * reorg.c (optimize_skip): Do not put frame related instructions
1285 in annulled delay slots.
1286 (steal_delay_list_from_target): Ditto.
1287 (fill_slots_from_thread): Ditto.
1289 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
1291 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
1292 * config/aarch64/aarch64.md: Include "exynos-m1.md".
1293 * config/arm/arm.md: Likewise.
1294 * config/arm/exynos-m1.md: New file.
1296 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1298 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
1300 2015-12-07 Nathan Sidwell <nathan@acm.org>
1302 * config//nvptx/nvptx.c (write_return): New.
1303 (write_fn_proto, nvptx_declare_function_name): Call it.
1305 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1308 * symtab.c (ultimate_transparent_alias_target): New inline function.
1309 (symbol_table::assembler_names_equal_p): New method; break out from ...
1310 (symbol_table::decl_assembler_name_equal): ... here.
1311 (symbol_table::change_decl_assembler_name): Also update names and
1312 translation links of transparent aliases.
1313 (symtab_node::dump_base): Dump transparent_alias.
1314 (symtab_node::verify_base): Implement basic transparent alias
1316 (symtab_node::make_decl_local): Support localization of weakrefs;
1317 recurse to transparent aliases; set TREE_STATIC.
1318 (symtab_node::ultimate_alias_target_1): Handle visibility of
1319 transparent aliases.
1320 (symtab_node::resolve_alias): New parmaeter transparent; handle
1321 transparent aliases; recurse to aliases of aliases to fix comdat
1323 (symtab_node::get_partitioning_class): Handle transparent aliases.
1324 * ipa-visibility.c (cgraph_externally_visible_p,
1325 varpool_node::externally_visible_p): Visibility of transparent alias
1326 depends on its target.
1327 (function_and_variable_visibility): Do not tweak visibility of
1328 transparent laiases.
1329 (function_and_variable_visibility): Likewise.
1330 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1331 transparent_alias flag.
1332 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1333 Support transparent aliases.
1334 * cgraph.h (symtab_node): Update prototype of resolve_alias;
1335 add transparent_alias flag.
1336 (symbol_table: Add assembler_names_equal_p.
1337 (symtab_node::real_symbol_p): Skip transparent aliases.
1338 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1339 (handle_alias_pairs): Set transparent_alias for weakref.
1340 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1342 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1343 skip symbols not put into boundary; stream transparent_alias.
1344 (lto_output_varpool_node): Likewise.
1345 (input_overwrite_node, input_varpool_node): Stream transparent alias.
1346 * varpool.c (ctor_for_folding, varpool_node::get_availability,
1347 varpool_node::assemble_aliases,
1348 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1349 (varpool_node::create_alias): Set transparent_alias.
1351 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1355 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1356 SSA names based on RESULT_DECLs.
1357 * function.c (expand_function_start): Do not create BLKmode REGs
1358 for GIMPLE registers when coalescing is enabled.
1360 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1362 * final.c (shorten_branches): Fix check for basic asm.
1363 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1366 2015-12-07 Nathan Sidwell <nathan@acm.org>
1368 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1371 2015-12-07 David Malcolm <dmalcolm@redhat.com>
1373 * pretty-print.c (text_info::set_range): Rename to...
1374 (text_info::set_location): ...this, converting 2nd param
1375 from source_range to a location_t.
1376 * pretty-print.h (text_info::set_location): Convert
1377 from inline function to external definition.
1378 (text_info::set_range): Delete.
1380 2015-12-07 Nathan Sidwell <nathan@acm.org>
1382 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1383 complex and vector types. Cope with packed structs.
1385 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1388 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1389 Force destination to 512 bits register.
1391 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1394 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1395 (define_insn "kunpcksi"): Ditto.
1396 (define_insn "kunpckdi"): Ditto.
1398 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
1400 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1402 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
1404 * common/config/i386/i386-common.c
1405 (OPTION_MASK_ISA_CLZERO_SET): New.
1406 (ix86_handle_option): Handle clzero.
1407 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1408 (x86_64-*-*): Likewise.
1409 * config/i386/clzerointrin.h: New header.
1410 * config/i386/cpuid.h (bit_CLZERO): Define.
1411 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1413 * config/i386/i386.opt (clzero): New.
1414 * config/i386/i386-c.c: Define __CLZERO__ if needed.
1415 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1417 (ix86_option_override_internal): Handle new option.
1418 (processor_alias_table): Added PTA_CLZERO.
1419 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1420 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1421 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1422 IX86_BUILTIN_CLZERO built-ins.
1423 * config/i386/i386.h (TARGET_CLZERO): New.
1424 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1425 (clzero): New pattern.
1426 (clzero_<mode>): New pattern.
1427 * config/i386/x86intrin.h: Include clzerointrin.h.
1428 * doc/extend.texi: Document clzero builtins.
1429 * doc/invoke.texi: Document -mclzero option.
1431 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
1433 * ipa-icf.c (sem_function::merge): Check that local_original exists.
1435 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
1438 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1440 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1441 non-reciporcal path.
1442 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1443 (sqrt<mode>2): Replace define_insn with define_expand that may call
1446 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1447 Sebastian Pop <s.pop@samsung.com>
1449 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1451 (get_rename_from_scev): Check that all the ops in an expression
1452 have their uses dominated by corresponding defs.
1454 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1455 Sebastian Pop <s.pop@samsung.com>
1457 PR tree-optimization/68693
1458 * graphite-scop-detection.c (dot_all_sese): New
1459 (dot_all_scops_1): Renamed to dot_all_sese.
1460 (dot_all_scops): Removed.
1463 (scop_detection::get_nearest_dom_with_single_entry): Check that
1464 preds are from different loop levels.
1465 (scop_detection::get_nearest_pdom_with_single_exit): Check that
1466 succs are from different loop levels.
1467 (scop_detection::print_sese): Inlined.
1468 (scop_detection::print_edge): New.
1469 (scop_detection::merge_sese): Added dumps.
1470 * graphite.h: Add declarations.
1472 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
1474 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1477 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
1479 PR rtl-optimization/68349
1480 * lra-eliminations.c (move_plus_up): New function.
1481 (lra_eliminate_regs_1): Use the function.
1483 2015-12-04 Nathan Sidwell <nathan@acm.org>
1485 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1486 (init_output_initializer): ... this.
1487 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1488 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1489 nvptx_assemble_decl_begin.
1491 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
1493 * sancov.c: New file.
1494 * Makefile.in (OBJS): Add sancov.o.
1495 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1496 * passes.def (sancov_pass): Add.
1497 * tree-pass.h (sancov_pass): Add.
1498 * common.opt (-fsanitize-coverage=trace-pc): Add.
1499 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1500 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1501 flag_sanitize_coverage.
1503 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1506 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1507 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1508 * config/arm/arm.md (probe_stack_range): Adjust.
1509 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1510 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1511 (probe_stack_range_<PTR:mode>): Adjust.
1513 2015-12-04 David Malcolm <dmalcolm@redhat.com>
1515 * convert.c (convert_to_real_1): When converting from a
1516 REAL_TYPE, preserve the location of EXPR in the result.
1517 * tree.c (get_pure_location): Make non-static.
1518 (set_source_range): Return the resulting location_t.
1519 (make_location): New function.
1520 * tree.h (get_pure_location): New decl.
1521 (get_finish): New inline function.
1522 (set_source_range): Convert return type from void to location_t.
1523 (make_location): New decl.
1525 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1528 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1529 input_location to inform.
1530 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1531 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1532 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1534 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
1536 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1537 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1538 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1539 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1540 comdat and non-comdat.
1541 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1542 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1545 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
1547 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1548 instead of register_operand. Remove empty constraints. Use std::swap.
1549 (cstore_si_as_di, cstore<mode>4_signed_imm,
1550 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1551 gpc_reg_operand instead of register_operand.
1552 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1553 register_operand. Remove empty constraints.
1555 2015-12-04 Nick Clifton <nickc@redhat.com>
1557 * config.gcc (extra_gcc_objs): Define for MSP430.
1558 * common/config/msp430/msp430-common.c (msp430_handle_option):
1559 Pass both -mmcu and -mcpu on to the back end if they are both defined.
1560 * config/msp430/msp430.c (hwmult_name): New function.
1561 (msp430_option_override): If an unrecognised MCU name is
1562 detected only warn if the user has not provided suitable
1563 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
1564 warning messages. Generate warnings about conflicts between
1565 -mmcu and -mcpu and -mhwmult options.
1566 If neither -mcpu nor -mmcu have been specified but -mhwmult=
1567 f5series has the select the 430X isa.
1568 (msp430_no_hwmult): If -mmcu has not been specified and
1569 msp430_hwmult_type is AUTO then return true.
1570 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1571 (LIB_SPEC): Add hardware multiply library selection.
1572 * config/msp430/t-msp430: Delete hardware multiply multilibs.
1573 Add rule to build driver-msp430.o
1574 * config/msp430/driver-msp430.c: New file.
1575 * config/msp430/msp430.opt (warn-mcu): New option.
1576 * doc/invoke.texi: Update description of -mhwmult=auto.
1577 Document -mwarn-mcu option.
1579 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
1581 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1582 (cstore<mode>4): Call it.
1584 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1586 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1588 PR tree-optimization/68680
1589 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1590 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
1593 PR tree-optimization/68671
1594 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1595 blocks starting with the successor of first bb we've modified
1596 and ending with last_bb call reset_flow_sensitive_info_in_bb.
1598 2015-12-04 Jeff Law <law@redhat.com>
1600 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1601 indicating if a gimple conditional was optimized to true/false.
1602 (reassociate_bb): Bubble up return value from
1603 maybe_optimize_range_tests.
1604 (do_reassoc): Similarly, but for reassociate_bb.
1605 (execute_reassoc): Return TODO_cleanup_cfg as needed.
1607 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1609 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1610 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1611 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1612 does not affect the assembler directives.
1614 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1616 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
1617 emit .machine and .machinemode to the top of the assembler file.
1618 (TARGET_ASM_FILE_START): Provide target hook.
1619 (s390_asm_output_machine_for_arch): Protect with
1620 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
1622 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1624 * config/s390/s390.opt (s390_arch_string): Remove.
1625 (s390_tune_string): Likewise.
1626 (s390_cost_pointer): Add Variable.
1627 (s390_tune_flags): Add TargetVariable.
1628 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
1629 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
1630 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
1631 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
1632 (mwarn-framesize=): Save option.
1633 (mno-stack-guard, mno-stack-guard): New option.
1634 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
1635 (mwarn-framesize=): Convert to UInteger (negative values are rejected
1637 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
1638 macros changeable through the GCC target pragma into a separate
1640 (s390_cpu_cpp_builtins): Likewise.
1641 (s390_pragma_target_parse): New function, implement GCC target pragma
1643 (s390_register_target_pragmas): Register s390_pragma_target_parse if
1645 * common/config/s390/s390-common.c (s390_handle_option):
1647 Move setting s390_arch_flags to s390.c.
1648 Remove s390_tune_flags.
1649 Allow 0 as argument to -mstack-size (switch to default value).
1650 Allow 0 as argument to -mstack-guard (switch off).
1651 Remove now unnecessary explicit parsing code for -mwarn-framesize.
1652 * config/s390/s390-protos.h (s390_handle_option): Export.
1653 (s390_valid_target_attribute_tree): Export.
1654 (s390_reset_previous_fndecl): Export.
1655 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
1656 and end of HTM and VX builtins.
1657 (s390_asm_output_function_prefix): Declare hook.
1658 (s390_asm_declare_function_size): Likewise.
1659 * config/s390/s390-builtins.h (B_GROUP): Use macro.
1660 * config/s390/s390-opts.h: Add comment about processor_type usage.
1661 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
1662 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
1663 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
1664 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
1665 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
1666 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
1667 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
1668 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
1669 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
1670 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
1671 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
1672 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
1673 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
1674 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
1676 (vec_all_nan): Rewrite as macro using statement expressions to avoid
1677 that the vector keyword needs to be defined when including the file.
1678 (vec_all_numeric): Likewise.
1679 (vec_any_nan): Likewise.
1680 (vec_any_numeric): Likewise.
1681 * config/s390/s390.c (s390_previous_fndecl): New static variable.
1682 (s390_set_current_function): New function.
1683 (s390_cost): Wrapper macro to allow defining the cost table pointer in
1685 (processor_table): Table for march= and mtune= parsing.
1686 (s390_init_builtins): Enable all builtins and types unconditionally.
1687 (s390_expand_builtin): Generate an error message if builtin is not
1688 supported by current options.
1689 Correct an error message.
1690 (s390_function_specific_restore): New function to set s390_cost.
1691 (s390_asm_output_machine_for_arch): New function for emitting .machine
1692 and .machinmode directives to the assembler file.
1693 (s390_asm_output_function_prefix): Likewise.
1694 (s390_asm_declare_function_size): Likewise.
1695 (s390_asm_output_function_label): Add mdebug output for feature testing.
1696 (s390_option_override): Move implementation into internal function.
1697 (s390_option_override_internal): Likewise.
1698 Implement option overriding based on current options.
1699 (s390_valid_target_attribute_inner_p): New function implementing target
1701 (s390_valid_target_attribute_tree): Likewise.
1702 (s390_valid_target_attribute_p): Likewise.
1703 (s390_reset_previous_fndecl): Likewise.
1704 (s390_set_current_function): Likewise.
1705 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
1706 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
1707 (TARGET_OPTION_RESTORE): Likewise.
1708 * doc/extend.texi: S390: Document target attribute and pragma.
1709 * config.in: Regenerated.
1710 * configure: Regenerated.
1711 * configure.ac: S390: Check for .machinemode and .machine in gas.
1712 S390: Check for architecture modifiers support in gas.
1714 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1716 * doc/extend.texi ("simd"): Describe new flags.
1718 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
1720 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
1721 operand checked for alignment.
1723 2015-12-04 Nathan Sidwell <nathan@acm.org>
1725 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
1726 emission too. Change 'no_arg_types' to 'prototyped'.
1727 (write_fn_proto): Use write_one_arg for stdarg, static chain &
1729 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
1731 2015-12-04 Richard Biener <rguenther@suse.de>
1733 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
1734 member and initialize it.
1735 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
1737 (sccvn_dom_walker::before_dom_children): If unreachable_dom
1738 is set BB is not reachable either. Set unreachable_dom
1739 if not set and BB is unreachable.
1741 2015-12-04 Richard Biener <rguenther@suse.de>
1743 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
1744 query with GATHER_STATISTICS.
1746 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1749 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
1750 fields, add keep_stack and reorder them.
1751 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
1752 set it to false. Do not insert a stack save/restore pair if it has
1753 been set to true by the gimplification of the statements.
1754 Restore it to the saved value on exit if it is still false.
1755 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
1756 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
1757 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
1758 * doc/extend.texi (Variable Length): Document new behavior.
1759 * doc/generic.texi (Blocks): Document new handling of VLAs.
1761 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1762 Tristan Gingold <gingold@adacore.com>
1765 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
1767 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
1768 UNSPEC_PROBE_STACK_RANGE.
1769 (blockage): New instruction.
1770 (probe_stack_range_<PTR:mode>): Likewise.
1771 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
1773 (aarch64_output_probe_stack_range): Likewise.
1774 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
1775 static builtin stack checking is enabled.
1776 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
1779 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1782 * config/arm/arm.md (*call_mem): Delete pattern.
1783 (*call_value_mem): Likewise.
1784 * config/arm/arm.c (output_call_mem): Delete.
1785 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
1787 2015-12-04 Bin Cheng <bin.cheng@arm.com>
1789 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
1790 aarch64_sync_memory_operand.
1792 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1795 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
1796 (expand_vec_perm_1): Use it and recurse if everything else
1797 failed. Use nd.perm instead of perm2.
1798 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
1799 instead of gen_lowpart for the target.
1800 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
1801 and recurse if everything else failed.
1803 2015-12-04 Richard Biener <rguenther@suse.de>
1806 * builtins.c (get_pointer_alignment_1): Take care of byte to
1807 bit alignment computation overflow.
1809 2015-12-04 Richard Biener <rguenther@suse.de>
1812 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
1813 a constant with single_use.
1815 2015-12-04 Bin Cheng <bin.cheng@arm.com>
1816 Jiong Wang <jiong.wang@arm.com>
1818 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
1819 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
1821 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
1823 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
1824 Add short circuit for !flag_strict_aliasing
1825 (get_alias_set): Remove flag_strict_aliasing check.
1826 (new_alias_set): Likewise.
1828 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
1830 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
1831 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
1832 (exynosm1_regmove_cost): Likewise.
1833 (exynosm1_vector_cost): Likewise.
1834 (exynosm1_tunings): Likewise.
1835 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
1836 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
1838 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
1839 Richard Biener <richard.guenther@gmail.com>
1841 * cfgexpand.c (pass_expand::execute): Replace call to
1842 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
1843 * tree-ssa.c (delete_tree_ssa): Likewise.
1844 * function.c (set_cfun): Call redirect_edge_var_map_empty.
1845 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
1846 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
1847 (redirect_edge_var_map_empty): New.
1848 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
1849 (redirect_edge_var_map_empty): New.
1851 2015-12-03 Jeff Law <law@redhat.com>
1853 PR tree-optimization/68599
1854 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
1855 in call to loop_optimizer_init.
1856 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
1857 optimization to drop the assumptions/infinite notations if
1858 the loop has a single exit.
1860 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
1862 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
1863 the pattern cannot FAIL.
1864 (vec_store_lanes@var{m}@var{n}): Likewise.
1865 (maskload@var{m}@var{n}): Likewise.
1866 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
1867 in the name of the pattern.
1868 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
1869 floating-point mode and that all operands have that mode.
1870 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
1871 pattern cannot FAIL.
1872 (sqrt@var{m}2): Document that mode m must be a scalar or vector
1873 floating-point mode, that all operands have that mode, and that
1874 the patterns cannot FAIL. Remove previous documentation referring
1875 to @code{double} and @code{float}.
1876 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
1877 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
1878 (copysign@var{m}3): Likewise.
1879 (exp@var{m}2): Likewise. Explicitly state the base.
1880 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
1881 (btrunc@var{m}2, rint@var{m}2): Likewise.
1882 (round@var{m}2): Likewise. Fix incorrect description of rounding
1884 (ceil@var{m}2): As for round@var{m}2.
1885 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
1886 the instruction must not raise an inexact condition.
1887 (scalb@var{m}3): Document previously-undocumented pattern
1888 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
1889 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
1890 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
1891 (significand@var{m}2): Likewise.
1892 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
1893 mode m and operand 0 is defined more freely. Document that @var{m}
1894 can be a scalar or vector integer mode and that the pattern is not
1896 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
1897 (clrsb@var{m}2): Likewise, except that the description of the
1898 mode was missing in this case.
1900 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
1902 * internal-fn.def (RSQRT): New function.
1903 * optabs.def (rsqrt_optab): New optab.
1904 * doc/md.texi (rsqrtM2): Document.
1905 * target.def (builtin_reciprocal): Replace gcall argument with
1906 a function decl. Restrict hook to machine functions.
1907 * doc/tm.texi: Regenerate.
1908 * targhooks.h (default_builtin_reciprocal): Update prototype.
1909 * targhooks.c (default_builtin_reciprocal): Likewise.
1910 * tree-ssa-math-opts.c: Include internal-fn.h.
1911 (internal_fn_reciprocal): New function.
1912 (pass_cse_reciprocals::execute): Call it, and build a call to an
1913 internal function on success. Only call targetm.builtin_reciprocal
1914 for machine functions.
1915 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1917 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1918 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1919 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1921 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1922 (aarch64_builtin_reciprocal): Replace gcall argument with a
1923 function decl. Use use_rsqrt_p. Remove optimize_size check.
1924 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
1925 (aarch64_optab_supported_p): New function.
1926 (TARGET_OPTAB_SUPPORTED_P): Define.
1927 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1928 (rsqrt<mode>2): ...this.
1929 * config/i386/i386.c (use_rsqrt_p): New function.
1930 (ix86_builtin_reciprocal): Replace gcall argument with a
1931 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
1932 check. Only handle machine functions.
1933 (ix86_optab_supported_p): Handle rsqrt_optab.
1934 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1935 (rs6000_builtin_reciprocal): Replace gcall argument with a
1936 function decl. Remove optimize_insn_for_size_p check.
1937 Only handle machine functions.
1938 (rs6000_optab_supported_p): New function.
1940 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
1944 * config/i386/i386.c (ix86_mitigate_rop): Don't call
1945 compute_bb_for_insn again. Call df_insn_rescan_all.
1946 * config/i386/i386.md (set_got_rex64): Override modrm_class.
1948 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1950 2015-12-03 Nathan Sidwell <nathan@acm.org>
1952 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1953 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1954 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1955 (nvptx_option_override): Set data ares for worker vars.
1956 (nvptx_addr_space_from_sym): Delete.
1957 (nvptx_encode_section_info): New.
1958 (section_for_sym, section_for_decl): New.
1959 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1960 (nvptx_section_from_addr_space): Delete.
1961 (nvptx_section_for_decl): Delete.
1962 (nvptx_output_aligned, nvptx_declare_object_name,
1963 nvptx_assemble_undefined_decl): Use section_for_decl, remove
1965 (nvptx_print_operand): Add 'D', adjust 'A'.
1966 (nvptx_expand_worker_addr): Adjust unspec generation.
1967 (TARGET_ENCODE_SECTION_INFO): Override.
1968 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1969 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1970 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1971 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1972 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1973 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1974 (UNSPEC_TO_GENERIC): New.
1975 (nvptx_register_or_symbolic_operand): Delete.
1976 (cvt_code, cvt_name, cvt_str): Delete.
1977 (convaddr_<cvt_name><mode> [P]): Delete.
1978 (convaddr_<mode> [P]): New.
1980 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1982 PR rtl-optimization/68624
1983 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1984 blocks if they exist and simplify the logic choosing the order to emit
1987 2015-12-03 Richard Biener <rguenther@suse.de>
1989 PR tree-optimization/66051
1990 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1991 on load group size. Do not pass in vectorization_factor.
1992 (vect_transform_slp_perm_load): Do not require any permute support.
1993 (vect_build_slp_tree): Do not pass in vectorization factor.
1994 (vect_analyze_slp_instance): Do not compute vectorization
1995 factor estimate. Use vector size instead of vectorization factor
1996 estimate to split store groups for BB vectorization.
1998 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2000 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2001 DECL as return value is allowed to have NULL bounds.
2003 2015-12-03 Tom de Vries <tom@codesourcery.com>
2005 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2006 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2007 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2009 2015-12-03 Richard Biener <rguenther@suse.de>
2011 PR tree-optimization/67800
2012 PR tree-optimization/68333
2013 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2014 restriction to reduction contexts but allow SLP reductions as well.
2015 (vect_recog_sad_pattern): Likewise.
2016 (vect_recog_widen_sum_pattern): Likewise.
2018 2015-12-03 Richard Biener <rguenther@suse.de>
2020 PR tree-optimization/68639
2021 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2022 belonging to different loops.
2023 (vect_analyze_data_ref_accesses): Likewise.
2025 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
2027 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2028 Remove "prefix_extra".
2029 (define_insn "vec_extract_hi_<mode>_mask"): New.
2030 (define_insn "vec_extract_hi_<mode>"): Remove masking.
2032 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2034 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2035 (propagate_pure_const): Use it; fix comments and optimize loops.
2037 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2039 * ipa-pure-const.c (ignore_edge): Rename to ...
2040 (ignore_edge_for_nothrow) ... this one; also ignore eges to
2041 interposable functions or ones that can not throw.
2042 (propagate_nothrow): Fix handling of availability.
2044 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2047 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2049 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2050 Sebastian Pop <s.pop@samsung.com>
2052 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2054 (gcc_expression_from_isl_expr_op): Same.
2056 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2057 Sebastian Pop <s.pop@samsung.com>
2059 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2060 that insertion point is still in the region.
2062 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2063 Sebastian Pop <s.pop@samsung.com>
2065 PR tree-optimization/68550
2066 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2067 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2070 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2072 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2073 * configure: Regenerate.
2074 * config.in: Regenerate.
2075 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2077 (rs6000_output_function_prologue): Use it instead of checking
2078 cfun->machine->r2_setup_needed. Use internal labels instead of
2079 GNU as local label extension. Handle ELFv2 large code model.
2080 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2081 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2083 2015-12-02 Jakub Jelinek <jakub@redhat.com>
2086 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2088 (expand_unop): Use them.
2090 2015-12-02 Marek Polacek <polacek@redhat.com>
2093 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2095 2015-12-02 Nathan Sidwell <nathan@acm.org>
2097 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
2099 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
2101 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2102 Sebastian Pop <s.pop@samsung.com>
2104 * graphite-dependences.c (scop_get_reads): Add extra dumps.
2105 (scop_get_must_writes): Same.
2106 (scop_get_may_writes): Same.
2107 (compute_deps): Same.
2108 * graphite-sese-to-poly.c (bounds_are_valid): New.
2109 (pdr_add_data_dimensions): Call bounds_are_valid.
2111 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2112 Sebastian Pop <s.pop@samsung.com>
2114 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
2115 * graphite-poly.c (apply_poly_transforms): Same.
2116 * graphite.c (gate_graphite_transforms): Same.
2117 * toplev.c (process_options): Same.
2119 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
2121 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
2122 (mips_output_probe_stack_range): Rotate the loop and simplify.
2124 2015-12-02 David Sherwood <david.sherwood@arm.com>
2126 * config/aarch64/aarch64.md: New pattern.
2127 * config/aarch64/aarch64-simd.md: Likewise.
2128 * config/aarch64/iterators.md: New unspecs, iterators.
2130 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
2132 * dwarf2out.c (dwar2out_var_location): In addition to notes,
2133 process indirect calls whose target is compile-time known.
2134 Enhance pattern matching to get the SYMBOL_REF they embed.
2135 (gen_subprogram_die): Handle such calls.
2136 * final.c (final_scan_insn): For call instructions, invoke the
2137 var_location debug hook only after the call has been emitted.
2139 2015-12-02 Tom de Vries <tom@codesourcery.com>
2141 * gimplify.c (enum gimplify_omp_var_data): Add enum value
2143 (oacc_default_clause): Fix default for scalars in oacc kernels.
2144 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
2146 2015-12-02 Tom de Vries <tom@codesourcery.com>
2148 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
2149 parameter base_pointers_restrict.
2150 (omp_target_base_pointers_restrict_p): New function.
2151 (scan_omp_target): Call scan_sharing_clauses with
2152 base_pointers_restrict arg.
2154 2015-12-02 Nathan Sidwell <nathan@acm.org>
2156 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
2157 (nvptx_underlying_object_mode): Delete.
2158 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
2160 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
2161 (nvptx_output_mov_insn): New.
2162 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
2163 Use output_reg. Merge 't' and 'u' handling.
2164 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
2165 (struct machine_function): Remvoe punning_buffer_size.
2166 (REGISTER_NAMES): Remove %punbuffer.
2167 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
2168 UNSPEC_CPLX_HIGHPART): Delete.
2169 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
2170 nvptx_output_mov_insn.
2171 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
2172 Use nvptx_output_mov_insn.
2173 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
2175 (mov<mode> [SDCM]): Delete.
2177 2015-12-02 Richard Biener <rguenther@suse.de>
2179 * tree.h (tree_invariant_p): Declare.
2180 * tree.c (tree_invariant_p): Export.
2181 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
2182 create SAVE_EXPRs but reject patterns if we would need to.
2184 2015-12-02 Tom de Vries <tom@codesourcery.com>
2186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
2187 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
2189 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2191 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
2192 (cstore<mode>4): Use it.
2194 2015-12-02 Richard Biener <rguenther@suse.de>
2196 PR tree-optimization/68625
2197 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
2198 cleanup_control_flow_bb.
2199 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
2200 on all BBs, then cleanup_tree_cfg_bb and finally iterate
2201 over the worklist doing both.
2203 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2205 PR tree-optimization/68432
2206 * coretypes.h (optimization_type): New enum.
2207 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
2208 * doc/tm.texi: Regenerate.
2209 * target.def (optab_supported_p): New hook.
2210 * targhooks.h (default_optab_supported_p): Declare.
2211 * targhooks.c (default_optab_supported_p): New function.
2212 * predict.h (function_optimization_type): Declare.
2213 (bb_optimization_type): Likewise.
2214 * predict.c (function_optimization_type): New function.
2215 (bb_optimization_type): Likewise.
2216 * optabs-query.h (convert_optab_handler): Define an overload
2217 that takes an optimization type.
2218 (direct_optab_handler): Likewise.
2219 * optabs-query.c (convert_optab_handler): Likewise.
2220 (direct_optab_handler): Likewise.
2221 * internal-fn.h (direct_internal_fn_supported_p): Take an
2222 optimization_type argument.
2223 * internal-fn.c (direct_optab_supported_p): Likewise.
2224 (multi_vector_optab_supported_p): Likewise.
2225 (direct_internal_fn_supported_p): Likewise.
2226 * builtins.c (replacement_internal_fn): Update call to
2227 direct_internal_fn_supported_p.
2228 * gimple-match-head.c (build_call_internal): Likewise.
2229 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2230 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
2231 * tree.c (maybe_build_call_expr_loc): Likewise.
2232 * config/i386/i386.c (ix86_optab_supported_p): New function.
2233 (TARGET_OPTAB_SUPPORTED_P): Define.
2234 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
2235 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
2236 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
2237 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
2238 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
2239 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
2241 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2243 * Makefile.in (GENSUPPORT_H): New macro.
2244 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2245 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
2246 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
2247 (build/genconstants.o, build/genextract.o, build/genflags.o)
2248 (build/gentarget-def.o): Use it.
2249 (build/genemit.o): Likewise. Depend on internal-fn.def.
2250 * genopinit.c: Move block comment to optabs.def.
2251 (optab_tag, optab_def): Move to gensupport.h
2252 (pattern): Likewise, renaming to optab_pattern.
2253 (match_pattern): Move to gensupport.c
2254 (gen_insn): Use find_optab.
2255 (patterns, pattern_cmp): Replace pattern with optab_pattern.
2256 (main): Likewise. Use num_optabs.
2257 * optabs.def: Add comment that was previously in genopinit.c.
2258 * gensupport.h (optab_tag): Moved from genopinit.c
2259 (optab_def): Likewise, expanding commentary.
2260 (optab_pattern): Likewise, after renaming from pattern.
2261 (optabs, num_optabs, find_optab): Declare.
2262 * gensupport.c (optabs): Moved from genopinit.c.
2263 (num_optabs): New variable.
2264 (match_pattern): Moved from genopinit.c.
2265 (find_optab): New function, extracted from genopinit.c:gen_insn.
2266 * genemit.c (nofail_optabs): New variable.
2267 (emit_c_code): New function.
2268 (gen_expand): Check whether the instruction is an optab that isn't
2269 allowed to fail. Call emit_c_code.
2270 (gen_split): Call emit_c_code here too.
2271 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
2273 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2275 * config/s390/predicates.md (const_mask_operand): New predicate.
2276 * config/s390/s390-builtins.def: Set a smaller bitmask
2278 * config/s390/vector.md: Change predicate from immediate_operand
2279 to either const_int_operand or const_mask_operand. Add special
2280 insn conditions on patterns which have to exclude certain values.
2281 * config/s390/vx-builtins.md: Likewise.
2283 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2285 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
2288 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2290 * config/s390/s390-builtin-types.def: New builtin types added.
2291 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
2292 * config/s390/s390.c (s390_expand_builtin): Always truncate
2293 constants to the mode in the pattern.
2294 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
2295 respective builtin __builtin_s390_vec_splat_*.
2297 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2299 * config/s390/s390-builtin-types.def: Sort builtin types.
2301 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2303 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
2304 condition for the RT flag.
2306 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2308 * config/s390/constraints.md ("jKK"): New constraint.
2309 * config/s390/s390.c (tm-constrs.h): Include for
2310 satisfies_constraint_*.
2311 (s390_legitimate_constant_p): Allow jKK constants. Use
2312 satisfies_constraint_* also for the others.
2313 (legitimate_reload_vector_constant_p): Likewise.
2314 (print_operand): Allow h output modifier on vectors.
2315 * config/s390/vector.md ("mov<mode>"): Add vrepi.
2317 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2319 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2322 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2324 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2325 ("bswaphi2"): New pattern.
2326 New splitter for HI reg-reg bswap.
2328 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
2331 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2332 if it is the first parameter.
2334 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2336 PR tree-optimization/68577
2337 * tree-vect-stmts.c (simple_integer_narrowing): New function.
2338 (vectorizable_call): Restrict internal function handling
2339 to NONE and NARROW cases, using simple_integer_narrowing
2340 to test for the latter. Add cost of narrowing operation
2341 and insert it where necessary.
2343 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
2345 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2346 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2347 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2349 2015-12-01 Nathan Sidwell <nathan@acm.org>
2351 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2352 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2353 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2354 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2355 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2356 (init_output_initializer): Call write_var_marker.
2357 (nvptx_output_aligned_decl): New.
2358 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2360 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2362 * c-common.c (parse_optimize_options): Do not silently ignore
2363 -fstrict-aliasing changes.
2365 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2367 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2368 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2369 stream TYPE_ALIAS_SET.
2370 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2371 stream TYPE_ALIAS_SET.
2373 2015-12-01 Nathan Sidwell <nathan@acm.org>
2375 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2378 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2380 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2381 indirection for large and small code models.
2382 (adjust_vperm): Likewise.
2384 2015-12-01 Julian Brown <julian@codesourcery.com>
2385 Cesar Philippidis <cesar@codesourcery.com>
2386 James Norris <James_Norris@mentor.com>
2388 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2389 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2390 (is_gimple_omp_oacc): Add support for above.
2391 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2392 (omp_notice_variable): Diagnose undefined implicit uses of
2393 use_device variables in offloaded regions.
2394 (gimplify_scan_omp_clauses): Add host_data, use_device
2395 support. Diagnose undefined mapping of use_device variables in
2397 (gimplify_omp_workshare): Add host_data support.
2398 (gimplify_expr): Likewise.
2399 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2400 * omp-low.c (lookup_decl_in_outer_ctx)
2401 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2403 (scan_sharing_clauses): Support use_device.
2404 (check_omp_nesting_restrictions): Support host_data.
2405 (expand_omp_target): Support host_data.
2406 (lower_omp_target): Skip over outer host_data regions when looking
2407 up decls. Support use_device.
2408 (make_gimple_omp_edges): Support host_data.
2409 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2411 2015-12-01 Marek Polacek <polacek@redhat.com>
2414 * cgraphunit.c (check_global_declaration): Only depend
2415 on TREE_THIS_VOLATILE for VAR_DECLs.
2417 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2419 PR tree-optimization/68474
2420 * tree-call-cdce.c (use_internal_fn): Protect call to
2421 gen_shrink_wrap_conditions.
2423 2015-12-01 Christian Bruel <christian.bruel@st.com>
2426 * config/arm/arm.opt (unaligned_access): Save.
2427 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2428 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2429 (arm_option_override_internal): ... here.
2430 * config/arm/arm.h (TARGET_32BIT_P): New macro.
2432 2015-12-01 Richard Biener <rguenther@suse.de>
2434 PR tree-optimization/68379
2435 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2436 always base loads on the first used DR of a group.
2437 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2438 Compute alignment of the first scalar element unconditionally.
2440 2015-12-01 Richard Biener <rguenther@suse.de>
2443 * genmatch.c (struct capture_info): Add match_use_count.
2444 (capture_info::walk_match): Increment match_use_count.
2445 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2446 replacements in a save_expr if they occur more often than
2447 in the original expression.
2449 2015-12-01 Richard Biener <rguenther@suse.de>
2452 * ipa-split.c (split_function): Handle main part not returning.
2454 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2457 * tree-vect-stmts.c (vect_init_vector): Cast boolean
2458 scalars to a proper value before building a vector.
2460 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2462 * genattrtab.c (check_attr_test): Take an attr_desc instead of
2463 an is_const flag. Put the file_location argument first.
2464 Update recursive calls. Improve error messages.
2465 (check_attr_value): Take a file location and use it instead
2466 of attr->loc. Improve error messages. Update calls to
2468 (check_defs): Update call to check_attr_value.
2469 (make_canonical): Likewise.
2470 (gen_attr): Likewise.
2472 (gen_insn_reserv): Update call to check_attr_test.
2474 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2476 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2478 2015-12-01 Richard Biener <rguenther@suse.de>
2481 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2483 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2485 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2486 odr_type_p): Move to ...
2487 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2488 odr_type_p): here; miscro-optimize.
2490 2015-12-01 Bin Cheng <bin.cheng@arm.com>
2492 PR tree-optimization/68529
2493 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2494 Compute no-overflow information for control iv.
2495 (number_of_iterations_lt, number_of_iterations_le): Add new param.
2496 (number_of_iterations_cond): Pass new argument to above functions.
2498 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
2500 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2501 inlining -fno-strict-aliasing into -fstrict-aliasing body.
2503 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2504 Sebastian Pop <s.pop@samsung.com>
2506 PR tree-optimization/68565
2507 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2508 codegen_error. Fail when rhs of division operations is integer_zerop.
2509 (ternary_op_to_tree): Early return on codegen_error.
2510 (unary_op_to_tree): Same.
2511 (nary_op_to_tree): Same.
2512 (gcc_expression_from_isl_expr_op): Same.
2513 (gcc_expression_from_isl_expression): Same.
2514 (graphite_create_new_loop): On codegen_error continue generating
2516 (graphite_create_new_loop_guard): Same.
2517 (build_iv_mapping): Same.
2518 (graphite_create_new_guard): Same.
2520 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2521 Sebastian Pop <s.pop@samsung.com>
2523 * graphite-isl-ast-to-gimple.c: Fix dump messages.
2524 * graphite-scop-detection.c: Same.
2525 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2527 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
2529 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2530 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2531 (convert_local_omp_clauses): Likewise.
2533 2015-11-30 Tom de Vries <tom@codesourcery.com>
2535 PR tree-optimization/46032
2536 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2538 (find_func_aliases_for_call): ... here.
2539 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2540 BUILT_IN_GOMP_PARALLEL.
2541 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
2544 2015-11-30 Jakub Jelinek <jakub@redhat.com>
2546 PR tree-optimization/68501
2547 * target.def (builtin_reciprocal): Replace the 3 arguments with
2548 a gcall * one, adjust description.
2549 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2551 * targhooks.c (default_builtin_reciprocal): Likewise.
2552 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2553 targetm.builtin_reciprocal even on internal functions, adjust
2554 the arguments and allow replacing an internal function with normal
2556 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2557 with a gcall * one. Handle internal fns too.
2558 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2559 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2560 * doc/tm.texi (builtin_reciprocal): Document.
2562 2015-11-30 Richard Biener <rguenther@suse.de>
2564 PR tree-optimization/68592
2565 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2566 on the pattern def sequence.
2568 2015-11-30 Nathan Sidwell <nathan@acm.org>
2570 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2571 (write_one_arg): Reorder parms, add 'sep' param.
2572 (nvptx_write_function_decl): Rename to ...
2573 (write_fn_proto): ... here. Do name replacement. Emit linaer
2574 comment marker. Deal with both decls and defns. Simplify argument
2576 (write_function_decl_and_comment): Delete.
2577 (write_func_decl_from_insn): Rename to ...
2578 (write_fn_proto_from_insn): ... here. Don't do name replacement.
2579 (nvptx_record_fndecl): Call write_fn_proto.
2580 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2581 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2582 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2584 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
2586 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2587 (define_insn "*k<logic><mode>"): Use new iterator.
2589 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2592 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2593 (sparc_adjust_cost): Add missing space.
2595 2015-11-30 Richard Biener <rguenther@suse.de>
2598 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2600 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2602 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2603 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2604 base ref, DR pairs and store base_predicate for write type DRs.
2605 (ifcvt_memrefs_wont_trap): Guard checks with
2606 -ftree-loop-if-convert-stores flag.
2608 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2610 * cgraph.c (cgraph_node::make_local): No name is unique during
2611 incremental linking.
2612 * cgraph.h (can_be_discarded_p): Update comment; also common and
2613 WEAK in named sections can be discarded; when doing incremental
2614 link do not rely on resolution being the final one.
2615 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
2616 When symbol can be discarded, do not rely on resolution info.
2617 * symtab.c (symtab_node::nonzero_address): Take into account that
2618 symbol can be discarded.
2619 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
2620 definition correctly.
2621 (function_and_variable_visibility): Do not set unique_name when
2622 incrementally linking.
2624 2015-11-29 Nathan Sidwell <nathan@acm.org>
2626 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
2627 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
2628 (ctrap<mode>): Use const0_operand.
2630 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2632 * ipa-devirt.c (add_type_duplicate): Remove redundant
2635 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
2638 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
2639 recog_memoized test for insn and check recog_memoized for dep_insn.
2641 2015-11-28 Nathan Sidwell <nathan@acm.org>
2643 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
2644 (FRAME_POINTER_CFA_OFFSET): Define.
2645 (struct nvptx_args): Use 'tree' type.
2646 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
2648 2015-11-28 Tom de Vries <tom@codesourcery.com>
2650 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2652 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
2654 * doc/invoke.texi (Option Summary): Use negative form of
2655 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
2656 sort alphabetically and re-justify.
2658 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
2660 PR rtl-optimization/68536
2661 * lra.c (lra_emit_add): Add code for null base.
2662 * lra-constraints.c (curr_insn_transform): Skip operators for
2665 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2668 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2670 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2672 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2673 are not modified by the final modified insns in the basic blocks.
2675 2015-11-27 Nathan Sidwell <nathan@acm.org>
2677 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
2679 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
2680 (nvptx_maybe_convert_symbolic_operand): Simplify.
2681 (nvptx_addr_space_from_address): Delete.
2682 (nvptx_print_operand): Adjust 'A' case.
2684 2015-11-27 Richard Biener <rguenther@suse.de>
2686 PR tree-optimization/68559
2687 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
2688 peeling for gap checks ...
2689 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
2690 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
2691 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
2693 2015-11-27 Nathan Sidwell <nathan@acm.org>
2695 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
2696 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
2697 (nvptx_record_fndecl): Don't return value, remove force
2698 argument. Require fndecl.
2699 (nvptx_record_libfunc): New.
2700 (nvptx_record_needed_decl): Deteermine how to record decl here.
2701 (nvptx_maybe_record_fnsym): New.
2702 (nvptx_expand_call): Don't record libfuncs here,
2703 (nvptx_maybe_convert_symbolic_operand): Use
2704 nvptx_maye_record_fnsym.
2705 (nvptx_assemble_integer): Reimplement with single switch.
2706 (nvptx_output_call_insn): Register libfuncs here.
2707 (nvptx_file_end): Adjust nvptx_record_fndecl call.
2708 * config/nvptx/nvptx.md (expand_movdi): Don't call
2709 nvptx_record_needed_decl.
2711 2015-11-27 Richard Biener <rguenther@suse.de>
2713 PR tree-optimization/68553
2714 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
2715 generation for 1:1 permutations.
2716 (vect_transform_slp_perm_load): Detect 1:1 permutations.
2718 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
2720 * gimple.h (nonbarrier_call_p): Declare.
2721 * gimple.c (nonbarrier_call_p): New function.
2722 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
2723 Also increment call phase for ASMs with vdef and potential barrier
2726 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2728 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2730 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2731 are not modified by the final modified insns in the basic blocks.
2733 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2735 PR rtl-optimization/68506
2736 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
2737 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
2740 2015-11-27 Martin Liska <mliska@suse.cz>
2743 * vec.h (release_vec_vec): New function.
2745 2015-11-27 Jakub Jelinek <jakub@redhat.com>
2747 PR tree-optimization/68552
2748 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
2749 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
2750 or whether v0 == v1.
2752 2015-11-27 Martin Liska <mliska@suse.cz>
2754 * tree-ssa-uninit.c: Fix whitespaces in the source file.
2755 The change is just automatical.
2757 2015-11-27 Martin Liska <mliska@suse.cz>
2759 * tree-chkp.c (chkp_make_static_bounds): Release buffer
2762 2015-11-27 Martin Liska <mliska@suse.cz>
2764 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2765 Do not release memory for comp_alias_ddrs.
2766 * tree-vect-loop.c (destroy_loop_vec_info): Release
2767 the memory for all loop_vec_info.
2769 2015-11-27 Martin Liska <mliska@suse.cz>
2771 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
2772 of a local-scope vec.
2773 (struct final_warning_record): Use auto_vec instead of vec.
2775 2015-11-27 Richard Biener <rguenther@suse.de>
2777 PR tree-optimization/68553
2778 * tree-vect-slp.c (vect_get_mask_element): Remove.
2779 (vect_transform_slp_perm_load): Implement in a simpler way.
2781 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
2783 PR rtl-optimization/67753
2784 PR rtl-optimization/64164
2785 * function.c (assign_parm_setup_block): Right-shift
2786 upward-padded big-endian args when bypassing the stack slot.
2788 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
2790 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
2791 `-mcompact-branches='.
2792 (MIPS Options): Likewise.
2794 2015-11-26 Jakub Jelinek <jakub@redhat.com>
2796 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
2798 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
2800 * doc/install.texi (Prerequisites): Increase ISL requirement to
2803 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2805 * config/aarch64/arm_neon.h
2806 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
2807 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
2808 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2809 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
2810 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
2811 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
2812 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
2813 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
2814 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2815 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
2816 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
2817 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
2819 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2821 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
2822 (vqrdmlahq_s16, vqrdmlahq_s32): New.
2823 (vqrdmlsh_s16, vqrdmlsh_s32): New.
2824 (vqrdmlshq_s16, vqrdmlshq_s32): New.
2826 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2828 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
2831 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
2834 * tree-nested.c (finalize_nesting_tree_1): Append a field to
2835 hold the frame base address.
2836 * dwarf2out.c (gen_subprogram_die): Generate for
2837 DW_AT_static_link a location description that computes the value
2840 2015-11-26 Tom de Vries <tom@codesourcery.com>
2843 2015-11-25 Tom de Vries <tom@codesourcery.com>
2845 * cfgloop.c (find_single_latch): New function, factored out of ...
2846 (flow_loops_find): ... here.
2847 (verify_loop_structure): Improve verification of loop->latch.
2848 * cfgloop.h (find_single_latch): Declare.
2849 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2851 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2853 * config/aarch64/aarch64-simd-builtins.def:
2854 Add missing changes from r230962.
2856 2015-11-26 Nathan Sidwell <nathan@acm.org>
2858 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
2859 arg with name. Don't deal with split regs. Tweak formatting.
2860 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
2861 (nvptx_output_call_insn): Don't deal with split regs here.
2863 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2865 * config/aarch64/aarch64-simd-builtins.def
2866 (sqrdmlah, sqrdmlsh): New.
2867 (sqrdmlah_lane, sqrdmlsh_lane): New.
2868 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
2870 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2872 * config/aarch64/aarch64-simd.md
2873 (aarch64_sqmovun<mode>): Fix some white-space.
2874 (aarch64_<sur>qmovun<mode>): Likewise.
2875 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
2876 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
2877 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
2878 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
2879 (UNSPEC_SQRDMLSH): New.
2883 2015-11-26 Richard Biener <rguenther@suse.de>
2885 PR tree-optimization/66721
2886 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
2887 iteration cost earlier. Re-do analysis without SLP when
2888 vectorization using SLP fails and without has a chance to succeed.
2890 2015-11-26 Richard Biener <rguenther@suse.de>
2892 * genmatch.c (dt_simplify::gen_1): For generic wrap all
2893 multi-result-use captures in a SAVE_EXPR.
2895 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2897 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
2898 (TARGET_SIMD_RDMA): New.
2900 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2902 * combine.c (subst): Do not return clobber of zero in widening mult
2903 case. Just return x unchanged if it is a no-op substitution.
2905 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
2908 * config/i386/i386.h (enum reg_class): Add
2909 bounds registers to ALL_REGS.
2911 2015-11-26 Jakub Jelinek <jakub@redhat.com>
2913 PR tree-optimization/68128
2914 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2915 * gimplify.c: Include gimple-walk.h.
2916 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2917 (omp_notice_variable): Set flags to n->value if n already
2918 exists in target region, but we need to jump to do_outer.
2919 (omp_shared_to_firstprivate_optimizable_decl_p,
2920 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2922 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2923 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2924 not modified in the body. Call omp_mark_stores for outer
2925 contexts on OMP_CLAUSE_SHARED clauses if they could be written
2926 in the body or on OMP_CLAUSE_LASTPRIVATE.
2927 (gimplify_adjust_omp_clauses): Add body argument, call
2928 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2929 Set OMP_CLAUSE_SHARED_READONLY
2930 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2931 not modified in the body. Call omp_mark_stores for outer
2932 contexts on OMP_CLAUSE_SHARED clauses if they could be written
2933 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2934 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2935 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2936 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2937 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2938 * tree-nested.c (convert_nonlocal_omp_clauses,
2939 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2940 non-local vars or local vars referenced from nested routines.
2941 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2942 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
2943 TREE_READONLY, don't call use_pointer_for_field with non-NULL
2944 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2946 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
2948 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2949 about signed left shift stronger and clarify the cases when they're
2952 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2953 Bernd Schmidt <bschmidt@redhat.com>
2955 PR rtl-optimization/67226
2956 * calls.c (store_one_arg): Take into account
2957 crtl->args.pretend_args_size when checking for overlap between
2958 arg->value and argblock + arg->locate.offset during sibcall
2961 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
2963 * config/aarch64/aarch64.md (cbranch<mode>4): Use
2964 aarch64_fp_compare_operand.
2965 (store_pairsf): Use aarch64_reg_or_fp_zero.
2966 (store_pairdf): Likewise.
2967 (cstore<mode>4): Use aarch64_fp_compare_operand.
2968 (cmov<mode>6): Likewise.
2969 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2971 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
2972 Sebastian Pop <s.pop@samsung.com>
2974 PR tree-optimization/68453
2975 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2976 not redirect edges already pointing to their destination.
2977 (translate_isl_ast_node_for): Split edges after loops to create
2978 basic blocks for close phi nodes. Save merge points at the end of
2980 (translate_isl_ast_node_if): Save merge points at the end of the
2982 (add_close_phis_to_outer_loops): New.
2983 (add_close_phis_to_merge_points): New.
2984 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2985 (copy_bb_and_scalar_dependences): Do not split basic blocks on
2986 loop close phi locations.
2988 2015-11-25 Jan Hubicka <jh@suse.cz>
2990 * ipa-visibility.c (cgraph_externally_visible_p,
2991 varpool_node::externally_visible_p): When doing incremental linking,
2992 hidden symbols may be still used later.
2993 (update_visibility_by_resolution_info): Do not drop weak during
2995 (function_and_variable_visibility): Fix formating.
2996 * flag-types.h (lto_linker_output): Declare.
2997 * common.opt 9flag_incremental_link): New flag.
2999 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3001 * config/rs6000/constraints.md (wb constraint): New constraint for
3002 ISA 3.0 d-form scalar addressing.
3004 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3005 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3006 Altivec registers. Add wb constraint for Altivec registers with
3007 D-form addressing. If we have ISA 3.0 d-form support, undo
3008 secondary reload support for using FPR registers if we want to do
3010 (rs6000_debug_reg_global): Likewise.
3011 (rs6000_setup_reg_addr_masks): Likewise.
3012 (rs6000_init_hard_regno_mode_ok): Likewise.
3013 (rs6000_secondary_reload): Likewise.
3014 (rs6000_preferred_reload_class): Likewise.
3015 (rs6000_secondary_reload_class): Likewise.
3017 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3020 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3021 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3022 (f32_lm2): Likewise.
3023 (f32_li2): Likewise.
3024 (f32_sr2): Likewise.
3025 (f32_sm2): Likewise.
3026 (f32_si2): Likewise.
3028 (extendsfdf2_fpr): Likewise.
3029 (mov<mode>_hardfloat): Likewise.
3030 (mov<mode>_hardfloat32): Likewise.
3031 (mov<mode>_hardfloat64): Likewise.
3033 * doc/md.texi (RS/6000 constraints): Document wb constraint.
3034 Fixup we constraint documentation.
3036 2015-11-25 Tom de Vries <tom@codesourcery.com>
3038 * omp-low.c (pass_expand_omp_ssa::clone): New function.
3039 * passes.def: Add pass_oacc_kernels pass group.
3040 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3042 2015-11-25 Tom de Vries <tom@codesourcery.com>
3044 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3046 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3047 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3048 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3049 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3051 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3053 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3054 TV_IPA_LTO_OUTPUT): New.
3055 * lto-compress.c: Include timevar.h
3056 (lto_end_compression, lto_end_uncompression): Add timers.
3057 * langhooks.c: Include timevar.h.
3058 (lhd_append_data): Add timer.
3060 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3062 * varasm.c (default_elf_asm_output_limited_string,
3063 default_elf_asm_output_ascii): Replace fprintf by putc.
3065 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
3067 PR rtl-optimization/67954
3068 * lra-constraints.c (curr_insn_transform): Add check on scratch
3069 pseudo when change class to NO_REGS. Add an assert.
3071 2015-11-25 Nathan Sidwell <nathan@acm.org>
3073 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3075 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3076 (nvptx_write_function_decl): Number args from 0.
3077 (nvptx_declare_function_name): Likewise.
3078 (nvptx_function_incoming_arg): Likewise.
3079 (nvptx_output_call_insn): Correct formatting.
3081 2015-11-25 David Sherwood <david.sherwood@arm.com>
3083 * optabs.def: Add new optabs fmax_optab/fmin_optab.
3084 * internal-fn.def: Add new fmax/fmin internal functions.
3085 * doc/md.texi: Add fmin and fmax patterns.
3087 2015-11-25 Jason Merrill <jason@redhat.com>
3090 * tree.c (integer_zerop, integer_onep, integer_each_onep)
3091 (integer_all_onesp, integer_minus_onep, integer_pow2p)
3092 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3093 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3095 2015-11-25 Richard Biener <rguenther@suse.de>
3098 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
3099 on stripped operands.
3101 2015-11-25 Nathan Sidwell <nathan@acm.org>
3103 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
3104 (nvptx_declare_function_name): Move assignments next to register
3105 declarations, and process params here.
3107 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
3109 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
3110 both the symbol and the "dot" symbol for function descriptors. Fix
3111 inversion for rename of symbols with dollar sign.
3113 2015-11-25 Tom de Vries <tom@codesourcery.com>
3115 * cfgloop.c (find_single_latch): New function, factored out of ...
3116 (flow_loops_find): ... here.
3117 (verify_loop_structure): Improve verification of loop->latch.
3118 * cfgloop.h (find_single_latch): Declare.
3119 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3121 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3123 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
3124 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
3125 (STARTFILE_SPEC): Use %(startfile_vtv).
3126 (ENDFILE_SPEC): Use %(endfile_vtv).
3127 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
3130 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
3132 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
3134 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
3135 noce_can_store_speculate): Delete.
3136 (noce_process_if_block): Don't try to handle single MEM stores.
3137 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
3138 * alias.c (memory_must_be_modified_in_insn_p): Delete.
3140 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3142 PR rtl-optimization/68435
3143 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
3144 for conflicts between a, b and the set destinations.
3146 2015-11-25 Richard Biener <rguenther@suse.de>
3148 PR tree-optimization/68517
3149 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
3150 Properly handle zero-sized types.
3152 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3154 * ipa-inline-analysis.c: Include gimplify.h
3155 (set_cond_stmt_execution_predicate,
3156 set_switch_stmt_execution_predicate): Be sure to not leak locations
3159 2015-11-25 Jakub Jelinek <jakub@redhat.com>
3162 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
3163 match_uaddsub_overflow): New functions.
3164 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
3166 2015-11-25 Richard Biener <rguenther@suse.de>
3168 PR tree-optimization/68492
3169 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
3170 op from scalars after operand swapping.
3172 2015-11-25 Richard Biener <rguenther@suse.de>
3174 PR tree-optimization/68502
3175 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
3176 check that the step is a multiple of the type size.
3178 2015-11-24 Michael Collison <michael.collison@linaro.org>
3180 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
3181 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
3182 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
3184 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
3186 * frame-header-opt.c (gate): Check for optimize > 0.
3187 (has_inlined_assembly): New function.
3188 (needs_frame_header_p): Remove is_leaf_function check,
3189 add argument type check.
3190 (callees_functions_use_frame_header): Add is_leaf_function
3191 and has_inlined_assembly calls..
3192 (set_callers_may_not_allocate_frame): New function.
3193 (frame_header_opt): Add is_leaf_function call, add
3194 set_callers_may_not_allocate_frame call.
3195 * config/mips/mips.c (mips_compute_frame_info): Add check
3196 to see if callee saved regs can be put in frame header.
3197 (mips_expand_prologue): Add check to see if step1 is zero,
3198 fix cfa restores when using frame header to store regs.
3199 (mips_can_use_return_insn): Check to see if registers are
3200 stored in frame header.
3201 * config/mips/mips.h (machine_function): Add
3202 callers_may_not_allocate_frame and
3203 use_frame_header_for_callee_saved_regs fields.
3205 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3207 PR rtl-optimization/68520
3208 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
3209 its bit was already set in BB_WITH.
3211 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3213 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
3214 double check that type is main variant.
3215 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
3217 (verify_type_variant): Verify that variants have no
3218 TYPE_ALIAS_SET_KNOWN_P set
3219 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
3220 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
3221 only for main variants; stream TYPE_ALIAS_SET as a bit.
3222 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
3225 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3227 * tree.c (make_vector_type): Properly compute canonical type of the
3229 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
3232 2015-11-24 Nathan Sidwell <nathan@acm.org>
3234 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
3235 VOIDmode, don't alter incoming mode.
3236 (nvptx_split_reg_p): Delete.
3237 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
3238 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
3239 maybe_split_mode calls.
3240 (nvptx_print_operand): Use maybe_split_mode.
3242 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3244 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
3245 only for types where LTO sets them.
3246 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
3247 (make_vector_type): Likewise.
3248 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
3249 * tree.h (canonical_type_used_p): New inline.
3250 * alias.c (get_alias_set): Handle structural equality for all
3251 types that pass canonical_type_used_p.
3252 (record_component_aliases): Look through all types with
3253 record_component_aliases for possible pointers; sanity check that
3254 the alias sets match.
3256 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3258 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
3260 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3262 * tree.c (free_node): New function.
3263 (type_hash_canon): Use it.
3264 * tree.h (free_node): Declare.
3266 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
3267 Michael Meissner <meissner@linux.vnet.ibm.com>
3269 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
3270 (Fv2): New mode attribute to be used when ISA 2.07 instructions
3271 are used on SF values, and ISA 2.06 instructions on DF values.
3272 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
3273 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
3274 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
3275 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
3276 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
3277 (fre<Fs>): Use <Fv2> instead of <Fv>.
3278 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
3279 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
3280 (xsrdpi<mode>): Add support for the lround function.
3281 (lround<mode>di2): Likewise.
3282 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3283 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3284 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3285 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3287 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3288 Sebastian Pop <s.pop@samsung.com>
3290 PR tree-optimization/67984
3291 * graphite-isl-ast-to-gimple.c (is_constant): New.
3292 (get_rename): Call is_constant.
3293 (get_new_name): Same.
3295 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3296 Sebastian Pop <s.pop@samsung.com>
3298 * graphite-dependences.c: Only include graphite.h.
3299 * graphite-isl-ast-to-gimple.c: Same.
3300 * graphite-optimize-isl.c: Same.
3301 * graphite-poly.c: Same.
3302 * graphite-scop-detection.c: Same.
3303 * graphite-sese-to-poly.c: Same.
3305 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
3306 * graphite-poly.h: Same.
3307 * graphite-scop-detection.h: Same.
3310 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
3312 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
3313 DW_TAG_namespace for IMPORTED_DECL declarations. Call
3314 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
3315 function already takes care of checking what it can emit.
3317 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3319 * doc/invoke.texi (-fpic): Add the AArch64 limit.
3320 (-fPIC): Add AArch64.
3322 2015-11-24 Tom de Vries <tom@codesourcery.com>
3324 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3325 (pass_lim::execute): Allow to run outside pass_tree_loop.
3327 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
3329 * config/aarch64/aarch64.md (add<mode>3):
3330 Block early expansion into 2 add instructions.
3331 (add<mode>3_pluslong): New pattern to combine complex
3332 immediates into 2 additions.
3334 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3339 * config/rs6000/predicates.md (and_operand): Check that the operand
3340 is a const_int before calling rs6000_is_valid_and_mask.
3342 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3344 * config/aarch64/aarch64.md (*condjump): Rename to...
3345 (condjump): ... This.
3346 (*compare_condjump<mode>): New define_insn_and_split.
3347 (*compare_cstore<mode>_insn): Likewise.
3348 (*cstore<mode>_insn): Rename to...
3349 (cstore<mode>_insn): ... This.
3350 * config/aarch64/iterators.md (CMP): Handle ne code.
3351 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3353 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
3356 * config/i386/i386.c (output_387_binary_op): Fix assertion for
3359 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3361 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3362 (val_ssa_equiv_hash_traits::remove): Likewise.
3363 (pass_uncprop::execute): Adjust.
3365 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3367 * hash-map-traits.h (simple_hashmap_traits ::remove): call
3368 destructors on values that are being removed.
3369 * mem-stats.h (hash_map): Pass type of values to
3370 simple_hashmap_traits.
3371 * tree-sra.c (sra_deinitialize): Remove work around for hash
3372 maps not destructing values.
3373 * genmatch.c (sinfo_hashmap_traits): Adjust.
3374 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3376 2015-11-24 Richard Biener <rguenther@suse.de>
3377 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3380 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3383 2015-11-24 Jakub Jelinek <jakub@redhat.com>
3386 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3387 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3389 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3390 whenever first is nelt or above. Don't mask expected with
3393 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
3396 * gimple-fold.c: Include ipa-chkp.h.
3397 (gimple_fold_builtin_memory_op): Don't fold call if we
3398 are going to instrument it and it may copy pointers.
3400 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
3401 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3403 PR rtl-optimization/68194
3404 PR rtl-optimization/68328
3405 PR rtl-optimization/68185
3406 * ree.c (combine_reaching_defs): Reject copy_needed case if
3407 copies_list is not empty.
3409 2015-11-24 Richard Biener <rguenther@suse.de>
3412 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3415 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3417 PR rtl-optimization/68381
3418 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3421 2015-11-23 Nick Clifton <nickc@redhat.com>
3422 Jeff Law <law@redhat.com>
3424 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3425 the source/dest of the target extension require a different number of
3427 (combine_set_extension): Remove #if 0 code.
3429 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3430 Sebastian Pop <s.pop@samsung.com>
3432 PR tree-optimization/68314
3433 * graphite-optimize-isl.c (optimize_isl): Do not call
3434 isl_union_map_is_equal.
3435 * graphite-poly.c (new_scop): Remove original_schedule.
3437 * graphite-poly.h (struct scop): Same.
3438 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3440 (build_pbb_scattering_polyhedrons): Add back.
3441 (build_scop_minimal_scattering): Remove.
3442 (build_scop_scattering): Add back.
3443 (build_scop_original_schedule): Remove.
3444 (build_poly_scop): Revert to only call build_scop_scattering.
3446 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3447 Sebastian Pop <s.pop@samsung.com>
3449 PR tree-optimization/68493
3450 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3451 missing early return when codegen_error is set.
3453 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3454 Sebastian Pop <s.pop@samsung.com>
3456 PR tree-optimization/68279
3457 * graphite-poly.c (new_scop): Remove poly_scop_p.
3458 * graphite-poly.h (struct scop): Same.
3459 (build_poly_scop): Declare.
3460 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3461 (cleanup_loop_iter_dom): New.
3462 (build_loop_iteration_domains): Early return when scev analysis fails.
3463 (create_pw_aff_from_tree): Same.
3464 (add_condition_to_pbb): Same.
3465 (add_conditions_to_domain): Same.
3466 (add_conditions_to_constraints): Same.
3467 (build_scop_iteration_domain): Same.
3468 (build_poly_scop): Same. Do not initialize poly_scop_p.
3469 * graphite-sese-to-poly.h: Remove.
3470 * graphite.c: Do not include graphite-sese-to-poly.h.
3471 (graphite_transform_loops): Stop before code generation when
3472 build_poly_scop fails.
3473 * sese.c (scalar_evolution_in_region): Add fixme note about scev
3476 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3477 Sebastian Pop <s.pop@samsung.com>
3479 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3480 Remove call to update_ssa.
3481 * sese.c (sese_insert_phis_for_liveouts): Same.
3483 2015-11-23 Marek Polacek <polacek@redhat.com>
3485 PR tree-optimization/68455
3486 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3487 extract_range_from_multiplicative_op_1 on symbolic ranges.
3489 2015-11-23 Richard Henderson <rth@redhat.com>
3491 * optabs.def (uaddv4_optab, usubv4_optab): New.
3492 * internal-fn.c (expand_addsub_overflow): Use them.
3493 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3495 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3496 to reversed operands.
3497 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3498 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3499 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3500 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3501 (*add<SWI>3_cconly_overflow_2): New.
3502 (*add<SWI>3_cc_overflow_2): New.
3503 (*addsi3_zext_cc_overflow_2): New.
3505 2015-11-23 Richard Biener <rguenther@suse.de>
3507 PR tree-optimization/68465
3508 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3509 Also record equalities from multiple predecessor blocks if
3510 only one non-backedge exists.
3512 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3515 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3516 that are not INSN_P.
3518 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
3520 * config/aarch64/aarch64-builtins.c
3521 (aarch64_gimple_fold_builtin): Fold FMULX.
3523 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
3525 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3526 * graphite-dependences.c: Define USES_ISL. Include ISL header files
3527 after GCC header files and before graphite header files.
3528 * graphite-dependences.c: Same.
3529 * graphite-isl-ast-to-gimple.c: Same.
3530 * graphite-optimize-isl.c: Same.
3531 * graphite-poly.c: Same.
3532 * graphite-scop-detection.c: Same.
3533 * graphite-sese-to-poly.c: Same.
3536 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
3537 Jiong Wang <jiong.wang@arm.com>
3539 PR tree-optimization/68317
3540 PR tree-optimization/68326
3541 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3542 final min and max are not infinity.
3544 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3545 Richard Biener <rguenther@suse.de>
3547 PR tree-optimization/68327
3548 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3549 compute vectype for non-relevant mask producers.
3550 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3553 2015-11-23 Tom de Vries <tom@codesourcery.com>
3555 PR tree-optimization/68460
3556 * tree-parloops.c (gather_scalar_reductions): Also call
3557 free_stmt_vec_info_vec if simple_loop_info == NULL.
3559 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
3561 * opts.c (finish_options): Allow -fsanitize-recover=address for
3562 userspace sanitization.
3563 * asan.c (asan_expand_check_ifn): Redefine recover_p.
3564 * doc/invoke.texi (fsanitize-recover): Update documentation.
3566 2015-11-23 Tom de Vries <tom@codesourcery.com>
3568 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3570 2015-11-23 Richard Biener <rguenther@suse.de>
3572 PR tree-optimization/68445
3573 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3574 two different strides.
3576 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
3578 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3579 * config/s390/s390.c (s390_check_symref_alignment): Use new
3580 symref flags, early abort on wrong alignment
3581 (s390_secondary_reload): Use new symref flags.
3582 (s390_encode_section_info): Likewise.
3583 * config/s390/predicates.md: Likewise.
3585 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3588 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3589 for indirect function call.
3591 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
3593 * config/aarch64/aarch64-simd.md
3594 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3595 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3596 (*aarch64_mulx_elt_to_64v2df): Likewise.
3597 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3598 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3599 (vmulx_lane_f64): Likewise.
3600 (vmulxq_lane_f32): Refactored & moved.
3601 (vmulxq_lane_f64): Likewise.
3602 (vmulx_laneq_f32): New.
3603 (vmulx_laneq_f64): Likewise.
3604 (vmulxq_laneq_f32): Likewise.
3605 (vmulxq_laneq_f64): Likewise.
3606 (vmulxs_lane_f32): Likewise.
3607 (vmulxs_laneq_f32): Likewise.
3608 (vmulxd_lane_f64): Likewise.
3609 (vmulxd_laneq_f64): Likewise.
3611 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
3613 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
3614 In LTO we do not compute TYPE_CANONICAL of pointers.
3615 (gimple_canonical_types_compatible_p): Improve coments; sanity check
3616 that pointers do not have canonical type that would make us believe
3618 * alias.c (get_alias_set): Do structural type equality on pointers;
3619 enable pointer path for LTO; also glob pointer to vector with pointer
3620 to vector element; glob pointers and references for LTO; do more strict
3621 sanity checking about build_pointer_type returning the canonical type
3622 which is also the main variant.
3623 (record_component_aliases): When component type is pointer and we
3624 do LTO; record void_type_node alias set.
3626 2015-11-21 Nathan Sidwell <nathan@acm.org>
3628 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
3630 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
3632 (write_func_decl_from_insn): Likewise.
3633 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
3634 (nvptx_file_end): Likewise.
3635 (nvptx_function_end): Undent output.
3636 (nvptx_expand_call): Fix formatting.
3637 (nvptx_output_call_insn): Indent output.
3638 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3639 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
3641 2015-11-21 Jakub Jelinek <jakub@redhat.com>
3644 * tree-inline.c (copy_debug_stmt): If
3645 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
3646 in decl_debug_args, don't call remap_gimple_op_r on it.
3648 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3650 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
3651 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
3652 Check that all record types are complete.
3653 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
3654 compare alias sets for types w/o alias sets.
3656 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
3658 * config/sparc/sparc.md (umulxhi_vis): Move around.
3659 (*umulxhi_sp64): Likewise.
3660 (umulxhi_v8plus): Likewise.
3661 (xmulx_vis): Likewise.
3662 (*xmulx_sp64): Likewise.
3663 (xmulx_v8plus): Likewise.
3664 (xmulxhi_vis): Likewise.
3665 (*xmulxhi_sp64): Likewise.
3666 (xmulxhi_v8plus): Likewise.
3668 2015-11-20 David Malcolm <dmalcolm@redhat.com>
3671 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
3672 (class layout): Update comment
3673 (layout::print_any_fixits): New method.
3674 (layout::move_to_column): New method.
3675 (diagnostic_show_locus): Add call to layout.print_any_fixits.
3677 2015-11-20 Jakub Jelinek <jakub@redhat.com>
3680 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
3681 has non-zero bias, subtract it in integer type instead of
3682 pointer plus of negated bias.
3685 * omp-low.c (expand_simd_clones): Call node->get_body () before
3686 allocating stuff in GC.
3688 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
3690 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
3692 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
3694 * config/aarch64/aarch64.md (predicated): Copy attribute from
3696 * config/arm/arm.md (predicated): Added description.
3698 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3700 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
3701 for unaligned_access.
3702 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
3703 from matching condition.
3704 (unaligned_loadhis): Likewise.
3705 (unaligned_loadhiu): Likewise.
3706 (unaligned_storesi): Likewise.
3707 (unaligned_storehi): Likewise.
3709 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3712 * config/arm/arm.md (unaligned_loaddi): Delete.
3713 (unaligned_storedi): Likewise.
3714 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
3715 unaligned DImode memory ops. Instead perform two back-to-back
3716 unaligned SImode ops.
3718 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
3719 James Norris <jnorris@codesourcery.com>
3721 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
3722 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
3724 2015-11-20 Alan Hayward <alan.hayward@arm.com>
3726 PR tree-optimization/68413
3727 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
3729 (vectorizable_reduction): Use cached base
3731 2015-11-20 Tom de Vries <tom@codesourcery.com>
3733 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
3735 (try_create_reduction_list): Same. Fix typo in dump-file string.
3737 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
3739 * doc/md.texi (Standard Names): Move entry for addptr3 around,
3740 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
3741 glitch in entries for cbranch4 and jump.
3743 2015-11-20 Tom de Vries <tom@codesourcery.com>
3745 PR tree-optimization/68373
3746 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
3748 (scev_const_prop): ... here.
3749 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
3750 * tree-parloops.c (try_create_reduction_list): Call
3751 final_value_replacement_loop.
3753 2015-11-20 Bin Cheng <bin.cheng@arm.com>
3755 PR tree-optimization/52272
3756 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
3757 (struct iv_common_cand_hasher): New struct.
3758 (iv_common_cand_hasher::hash): New function.
3759 (iv_common_cand_hasher::equal): New function.
3760 (struct ivopts_data): New fields, iv_common_cand_tab and
3762 (tree_ssa_iv_optimize_init): Initialize above fields.
3763 (record_common_cand, common_cand_cmp): New functions.
3764 (add_iv_candidate_derived_from_uses): New function.
3765 (add_iv_candidate_for_use): Record iv_common_cands derived from
3766 iv use in hash table, instead of adding candidates directly.
3767 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
3768 (record_important_candidates): Add important candidates to iv uses'
3769 related_cands. Always keep related_cands for future use.
3770 (try_add_cand_for): Use iv uses' related_cands.
3771 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
3772 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
3774 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3776 * config/s390/s390.md ("bswaphi2"): New pattern.
3778 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
3780 * config/s390/s390.md (GPR1_REGNUM): New constant.
3781 ("*trunc<BFP:mode><DFP_ALL:mode>2")
3782 ("*trunc<DFP_ALL:mode><BFP:mode>2")
3783 ("trunc<BFP:mode><DFP_ALL:mode>2")
3784 ("trunc<DFP_ALL:mode><BFP:mode>2")
3785 ("*extend<BFP:mode><DFP_ALL:mode>2")
3786 ("*extend<DFP_ALL:mode><BFP:mode>2")
3787 ("extend<BFP:mode><DFP_ALL:mode>2")
3788 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
3790 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3791 Sebastian Pop <s.pop@samsung.com>
3793 PR tree-optimization/68428
3794 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
3795 over basic blocks outside the scop.
3797 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3798 Sebastian Pop <s.pop@samsung.com>
3800 PR tree-optimization/68341
3801 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
3802 gcc_unreachable and safely fail codegen.
3803 (copy_loop_close_phi_args): Do not insert merge phis in a basic
3804 block with loop phi nodes.
3805 (edge_for_new_close_phis): New.
3806 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
3808 2015-11-19 Nathan Sidwell <nathan@acm.org>
3810 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
3811 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
3812 (nvptx_declare_objec_name): Likewise.
3814 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3816 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
3817 (get_false_edge_from_guard_bb): Move...
3818 * sese.c (get_false_edge_from_guard_bb)
3819 (get_true_edge_from_guard_bb): ... here.
3821 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
3824 2015-11-18 Alan Modra <amodra@gmail.com>
3826 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3827 type-limits warning.
3830 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3832 * tree.h (desired_pro_or_demotion_p): New function.
3833 * tree-vrp.c (simplify_cond_using_ranges): Call it.
3835 2015-11-19 Michael Matz <matz@suse.de>
3837 PR rtl-optimization/68392
3838 * fwprop.c (update_uses): Use flag_checking instead of
3839 gcc_checking_assert.
3841 2015-11-19 David Malcolm <dmalcolm@redhat.com>
3843 * doc/gty.texi (Support for inheritance): Fix missing
3844 parentheses in example.
3846 2015-11-19 Marek Polacek <polacek@redhat.com>
3848 PR tree-optimization/68431
3849 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
3851 2015-11-19 Nathan Sidwell <nathan@acm.org>
3853 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
3854 atomic_exchange<mode>): Input values can be immediates.
3856 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
3859 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
3861 * configure: Regenerate.
3863 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
3866 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
3867 (DTORS_SECTION_ASM_OP): Likewise.
3869 2015-11-19 Jakub Jelinek <jakub@redhat.com>
3871 PR rtl-optimization/68376
3872 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
3873 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
3875 2015-11-19 Richard Biener <rguenther@suse.de>
3878 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
3879 redirect_edge_var_map_destroy.
3881 2015-11-19 Jakub Jelinek <jakub@redhat.com>
3884 * config/i386/i386.md (simple_return): Disable if
3885 ix86_static_chain_on_stack is true.
3887 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
3890 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
3893 2015-11-18 Jeff Law <law@redhat.com>
3895 PR tree-optimization/68198
3896 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
3897 between threading a multi-way branch and a thread path that contains
3898 a multi-way branch. Disallow the case where a path contains a
3899 multi-way branch and does not thread a multi-way branch.
3900 (thread_through_all_blocks): Update comment.
3902 2015-11-18 Joseph Myers <joseph@codesourcery.com>
3905 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
3906 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
3907 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
3908 functions before defining as macros.
3910 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3912 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3913 (nvptx_record_offload_symbol): Remove code compensating for lack
3914 of default dimension handling.
3915 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3917 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
3919 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3920 type to bool for early exit.
3921 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3923 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3924 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3925 predecessor dominates the other.
3926 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3927 element is not found it returns -1.
3928 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3929 out early when codegen fails.
3930 (graphite_regenerate_ast_isl): Remove codegen region when pending
3931 phis could not be generated.
3933 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
3935 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3937 (class translate_isl_ast_to_gimple): Indentation.
3938 (translate_pending_phi_nodes): Comment.
3939 (add_parameters_to_ivs_params): Moved from sese.c inside class
3940 translate_isl_ast_to_gimple.
3941 (get_max_schedule_dimensions): Same.
3942 (generate_isl_context): Same.
3943 (extend_schedule): Same.
3944 (generate_isl_schedule): Same.
3945 (set_options): Same.
3946 (scop_to_isl_ast): Same.
3947 (is_valid_rename): Same.
3949 (get_rename_from_scev): Same.
3950 (get_def_bb_for_const): Same.
3951 (get_new_name): Same.
3952 (collect_all_ssa_names): Same.
3953 (copy_loop_phi_args): Same.
3954 (copy_loop_phi_nodes): Same.
3955 (copy_loop_close_phi_args): Same.
3956 (copy_loop_close_phi_nodes): Same.
3957 (copy_cond_phi_args): Same.
3958 (copy_cond_phi_nodes): Same.
3959 (graphite_copy_stmts_from_block): Same.
3960 (copy_bb_and_scalar_dependences): Same.
3961 (add_phi_arg_for_new_expr): Same.
3962 (rename_uses): Same.
3964 (set_rename_for_each_def): Same.
3965 (gsi_insert_earliest): Same.
3966 (rename_all_uses): Same.
3967 (codegen_error_p): Same.
3968 (print_isl_ast_node): Same.
3969 (translate_isl_ast_for_loop): Call function codegen_error_p.
3970 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3971 (translate_isl_ast_node_user): Make nb_loops const and release
3973 (get_true_edge_from_guard_bb): Move all free-functions early.
3974 (get_false_edge_from_guard_bb): Same.
3975 (bb_contains_loop_close_phi_nodes): Same.
3976 (bb_contains_loop_phi_nodes): Same.
3977 (is_loop_closed_ssa_use): Same.
3978 (number_of_phi_nodes): Same.
3979 (phi_uses_name): Same.
3980 (later_of_the_two): Same.
3981 (substitute_ssa_name):
3984 (get_loop_init_value): Same.
3985 (find_init_value): Same.
3986 (find_init_value_close_phi): Same.
3987 (ast_build_before_for): Same.
3988 (graphite_regenerate_ast_isl): Formatting changes.
3989 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3990 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3992 (gsi_insert_earliest): Same.
3993 (collect_all_ssa_names): Same.
3994 (rename_all_uses): Same.
3995 (rename_uses): Same.
3996 (get_def_bb_for_const): Same.
3997 (copy_loop_phi_nodes): Same.
3998 (copy_loop_close_phi_args): Same.
3999 (copy_loop_close_phi_nodes): Same.
4000 (copy_cond_phi_args): Same.
4001 (copy_cond_phi_nodes): Same.
4002 (set_rename_for_each_def): Same.
4003 (graphite_copy_stmts_from_block): Same.
4004 (copy_bb_and_scalar_dependences): Same.
4005 (if_region_set_false_region): Same.
4006 (scev_analyzable_p): Same.
4007 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4009 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4011 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4012 commit from r125920 for FreeBSD.
4014 2015-11-18 Jason Merrill <jason@redhat.com>
4016 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4018 (add_finalizer): Split out from ggc_internal_alloc.
4019 (ggc_handle_finalizers): Run finalizers for the current depth.
4020 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4022 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4025 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4028 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4030 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4031 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4033 * doc/avr-mmcu.texi: Regenerate.
4035 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4037 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4038 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4039 (struct bb_sese): New struct.
4040 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4041 (BB_GET_SESE, BB_SET_SESE): Define.
4042 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4043 (nvptx_find_sese): New.
4044 (nvptx_neuter_pars): Find SESE regions when optimizing.
4046 2015-11-18 Alan Modra <amodra@gmail.com>
4048 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4049 type-limits warning.
4051 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
4054 * hash-set.h (hash_set::traverse): Expand Key typedef.
4056 2015-11-18 Martin Liska <mliska@suse.cz>
4058 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4061 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4063 * config/nvptx/nvptx.c (global_lock_var): New.
4064 (nvptx_global_lock_addr): New.
4065 (nvptx_lockless_update): Recomment and adjust for clarity.
4066 (nvptx_lockfull_update): New.
4067 (nvptx_reduction_update): New.
4068 (nvptx_goacc_reduction_fini): Call it.
4070 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
4072 * regrename.h (struct du_head): Add target_data_1 and target_data_2
4074 * regrename.c (create_new_chain): Clear entire struct after allocating.
4076 * config/i386/i386.opt (mmitigate-rop): New option.
4077 * doc/invoke.texi (mmitigate-rop): Document.
4078 * config/i386/i386.c: Include "regrename.h".
4079 (ix86_rop_should_change_byte_p, reg_encoded_number,
4080 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4082 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4083 * config/i386/i386.md (attr "modrm_class"): New.
4084 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4085 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4086 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4088 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4091 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4093 2015-11-18 Jakub Jelinek <jakub@redhat.com>
4095 PR tree-optimization/68157
4096 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
4097 pow_stmt or mul_stmt from stmt's uid.
4098 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
4100 2015-11-18 Martin Liska <mliska@suse.cz>
4102 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
4104 2015-11-18 Martin Liska <mliska@suse.cz>
4106 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4107 Fix GNU coding style.
4108 (find_def_preds): Use auto_vec.
4109 (destroy_predicate_vecs): Change signature of the function.
4110 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
4112 (simplify_preds_4): Use destroy_predicate_vecs instread of
4113 just releasing preds vector.
4114 (normalize_preds): Likewise.
4115 (is_use_properly_guarded): Use new signature of
4116 destroy_predicate_vecs.
4117 (find_uninit_use): Likewise.
4119 2015-11-18 Richard Biener <rguenther@suse.de>
4121 PR tree-optimization/67790
4122 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
4123 IL rewrite for MINUS_EXPR reductions, rename back to ...
4124 (vect_is_simple_reduction): ... this, removing the wrapper.
4125 (vect_force_simple_reduction): Adjust.
4126 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
4127 reductions and make use if reduc_index in all places. For
4128 the final reduction of MINUS_EXPR use PLUS_EXPR.
4130 2015-11-18 Alan Modra <amodra@gmail.com>
4132 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
4134 * configure: Regenerate.
4136 2015-11-17 Tom de Vries <tom@codesourcery.com>
4138 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
4140 2015-11-17 Tom de Vries <tom@codesourcery.com>
4142 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
4143 uses of ssa_name with constant.
4145 2015-11-17 Tom de Vries <tom@codesourcery.com>
4147 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
4150 2015-11-17 Tom de Vries <tom@codesourcery.com>
4152 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
4153 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
4154 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
4156 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
4158 * regrename.c (regrename_find_superclass): New function, code moved
4160 (rename_chains): ... here. Call it.
4161 * regrename.h (regrename_find_superclass): Declare.
4163 * regrename.c (record_out_operands): Terminate earlyclobbered
4167 * regrename.c (record_operand_use): Keep track of failed operands
4168 and stop appending if we see any.
4169 * regrename.h (struct operand_rr_info): Add a failed field and shrink
4172 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4175 * doc/extend.texi (Common Function Attributes) [visibility]:
4176 Add cross-references to matching variable and type attributes.
4177 (Common Variable Attributes) [visibility]: Add missing entry.
4179 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4181 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
4182 entries that map directly to optabs.
4184 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4186 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
4187 entries that map directly to optabs.
4189 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4191 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
4192 * internal-fn.c (direct_internal_fn_array): Update accordingly.
4193 * tree-vectorizer.h (vectorizable_function): Delete.
4194 * tree-vect-stmts.c: Include internal-fn.h.
4195 (vectorizable_internal_function): New function.
4196 (vectorizable_function): Inline into...
4197 (vectorizable_call): ...here. Explicitly reject calls that read
4198 from or write to memory. Try using an internal function before
4199 falling back on the old vectorizable_function behavior.
4201 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4203 * target.def (builtin_vectorized_function): Take a combined_fn (in
4204 the form of an unsigned int) rather than a function decl.
4205 (builtin_md_vectorized_function): New.
4206 * targhooks.h (default_builtin_vectorized_function): Replace the
4207 fndecl argument with an unsigned int.
4208 (default_builtin_md_vectorized_function): Declare.
4209 * targhooks.c (default_builtin_vectorized_function): Replace the
4210 fndecl argument with an unsigned int.
4211 (default_builtin_md_vectorized_function): New function.
4212 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
4214 * doc/tm.texi: Regenerate.
4215 * tree-vect-stmts.c (vectorizable_function): Update call to
4216 builtin_vectorized_function, also passing internal functions.
4217 Call builtin_md_vectorized_function for target-specific builtins.
4218 * config/aarch64/aarch64-protos.h
4219 (aarch64_builtin_vectorized_function): Replace fndecl argument
4220 with an unsigned int.
4221 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
4222 (aarch64_builtin_vectorized_function): Update after above changes.
4224 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
4225 fndecl argument with an unsigned int.
4226 * config/arm/arm-builtins.c: Include case-cfn-macros.h
4227 (arm_builtin_vectorized_function): Update after above changes.
4229 * config/i386/i386.c: Include case-cfn-macros.h
4230 (ix86_veclib_handler): Take a combined_fn rather than a
4232 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
4233 mathfn_built_in rather than calling builtin_decl_implicit directly.
4234 (ix86_builtin_vectorized_function) Update after above changes.
4236 * config/rs6000/rs6000.c: Include case-cfn-macros.h
4237 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
4238 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
4239 than calling builtin_decl_implicit directly.
4240 (rs6000_builtin_vectorized_function): Update after above changes.
4241 Use CASE_CFN_*. Move BUILT_IN_MD to...
4242 (rs6000_builtin_md_vectorized_function): ...this new function.
4243 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
4245 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4247 * tree-vect-patterns.c: Include internal-fn.h.
4248 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
4250 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4252 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4253 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
4255 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4257 * builtins.c (expand_errno_check, expand_builtin_mathfn)
4258 (expand_builtin_mathfn_2): Delete.
4259 (expand_builtin): Remove handling of functions with
4260 internal function equivalents.
4261 * internal-fn.def (SET_EDOM): New internal function.
4262 * internal-fn.h (set_edom_supported_p): Declare.
4263 * internal-fn.c (expand_SET_EDOM): New function.
4264 (set_edom_supported_p): Likewise.
4265 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
4266 Rewrite comment at head of file.
4267 (is_call_dce_candidate): Rename to...
4268 (can_test_argument_range): ...this. Don't check gimple_call_lhs
4269 or gimple_call_builtin_p here.
4270 (edom_only_function): New function.
4271 (shrink_wrap_one_built_in_call_with_conds): New function, split out
4273 (shrink_wrap_one_built_in_call): ...here.
4274 (can_use_internal_fn, use_internal_fn): New functions.
4275 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
4276 for calls that have an lhs.
4277 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
4278 (pass_call_cdce::execute): Skip blocks that are optimized for size.
4279 Check gimple_call_builtin_p here. Use can_use_internal_fn for
4281 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
4284 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4286 * builtins.h (called_as_built_in): Declare.
4287 * builtins.c (called_as_built_in): Make external.
4288 * internal-fn.h (expand_internal_call): Define a variant that
4289 specifies the internal function explicitly.
4290 * internal-fn.c (expand_load_lanes_optab_fn)
4291 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
4292 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
4293 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
4294 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
4295 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
4296 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
4297 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
4298 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
4299 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
4300 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
4301 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
4302 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
4303 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
4305 (internal_fn_expanders): Update prototype.
4306 (expand_internal_call): Define a variant that specifies the
4307 internal function explicitly. Use it to implement the previous
4309 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
4310 functions as calls to internal functions.
4312 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4314 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
4315 (generated_files): Likewise.
4316 (s-cfn-operators, cfn-operators.pd): New rules.
4317 (s-match): Depend on cfn-operators.pd.
4318 * gencfn-macros.c: Expand comment to describe -o behavior.
4319 (print_define_operator_list): New function.
4320 (main): Accept -o. Call print_define_operator_list.
4321 * genmatch.c (main): Add the current directory to the include path.
4322 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
4325 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4327 * doc/match-and-simplify.texi: Document the "null" identifier.
4328 * genmatch.c (id_base::NULL_ID): New kind.
4329 (null_id): New variable.
4330 (get_operator): Add a parameter that says whether null identifiers
4332 (contains_id): New function.
4333 (lower_for): Skip substitutions that would have a null_id in
4334 either the match or the result.
4335 (parser::parse_for): Allow the null identifier to be used.
4336 (parser::parse_operator_list): Likewise.
4337 (main): Initialize null_id.
4339 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4341 * match.pd: Use HYPOT and COS rather than hypot and cos.
4342 Use CASE_CFN_* macros. Guard log/exp folds with
4343 SCALAR_FLOAT_TYPE_P.
4344 * genmatch.c (internal_fn): New enum.
4345 (fn_id::fn): Change to an unsigned int.
4346 (fn_id::fn_id): Accept internal_fn too.
4347 (add_builtin): Rename to...
4348 (add_function): ...this and turn into a template.
4349 (get_operator): Only try one variation if the original name fails.
4350 Only add _EXPR if the original name was all lower case.
4351 Try converting internal and built-in function names to their
4353 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4354 (dt_simplify::gen_1): Likewise.
4355 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4356 and get_call_combined_fn for generic.
4357 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4358 (decision_tree::gen): Likewise.
4359 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4360 Use add_function rather than add_builtin. Register internal
4362 * generic-match-head.c: Include case-cfn-macros.h.
4363 * gimple-fold.c (replace_stmt_with_simplification): Use
4364 gimple_call_combined_fn to test whether we can keep an
4366 * gimple-match.h (code_helper): Replace built_in_function
4368 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4369 and case-fn-macros.h.
4370 (gimple_resimplify1): Use fold_const_call.
4371 (gimple_resimplify2, gimple_resimplify3): Likewise.
4372 (build_call_internal, build_call): New functions.
4373 (maybe_push_res_to_seq): Use them.
4374 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
4375 rather than a built-in function.
4376 * tree.h (build_call_expr_internal_loc): Declare.
4377 (maybe_build_call_expr_loc): Likewise.
4378 * tree.c (build_call_expr_internal_loc_array): New function.
4379 (maybe_build_call_expr_loc): Likewise.
4381 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4383 * builtins.h (mathfn_built_in): Add a variant that takes
4385 * builtins.c: Include case-cfn-macros.h.
4386 (CASE_MATHFN): Use CASE_CFN_*.
4387 (CASE_MATHFN_REENT): Use CFN_ codes.
4388 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4389 argument with a combined_fn.
4390 (mathfn_built_in): Add a variant that takes a combined_fn.
4391 (expand_builtin_int_roundingfn_2): Update callers accordingly.
4392 (fold_builtin_sincos, fold_builtin_classify): Likewise.
4394 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4396 * tree-vect-patterns.c: Include case-cfn-macros.h.
4397 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4399 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4401 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4402 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4403 (pass_cse_sincos::execute): Likewise.
4405 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4407 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4408 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4409 (decrement_power, acceptable_pow_call): Likewise.
4410 (attempt_builtin_copysign): Likewise.
4412 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4414 * tree-vrp.c: Include case-cfn-macros.h.
4415 (extract_range_basic): Switch on combined_fn rather than handling
4416 built-in functions and internal functions separately.
4418 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4420 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4421 than a built_in_function.
4422 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4424 (integer_valued_real_call_p): Likewise.
4425 * fold-const.c: Include case-cfn-macros.h
4426 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4427 (negate_expr_p): Update accordingly.
4428 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4430 (integer_valued_real_call_p): Likewise.
4431 (tree_invalid_nonnegative_warnv_p): Update accordingly.
4432 (integer_valued_real_p): Likewise.
4433 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4434 to tree_call_nonnegative_warnv_p.
4435 (gimple_call_integer_valued_real_p): Likewise
4436 integer_valued_real_call_p.
4437 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4438 (backprop::process_builtin_call_use): Extend to combined_fn.
4439 (strip_sign_op_1): Likewise.
4440 (backprop::process_use): Don't check for built-in calls here.
4441 (backprop::execute): Likewise.
4442 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4444 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4446 * fold-const-call.h (fold_const_call): Replace built_in_function
4447 arguments with combined_fn arguments.
4448 * fold-const-call.c: Include case-cfn-macros.h.
4449 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4450 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4451 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4452 built_in_function arguments with combined_fn arguments.
4453 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4454 (fold_builtin_3): Update calls to fold_const_call.
4456 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4458 * Makefile.in (HASH_TABLE_H): Add GGC_H.
4459 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4460 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4461 (build/gencfn-macros$(build_exeext): New rules.
4462 (genprogerr): Add cfn-macros.
4463 * hash-set.h (hash_set): Use the traits value_type as the key.
4464 * gencfn-macros.c: New file.
4466 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4468 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4469 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4470 * builtins.c (associated_internal_fn): Handle them.
4472 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4474 * builtins.h (associated_internal_fn): Declare.
4475 (replacement_internal_fn): Likewise.
4476 * builtins.c: Include internal-fn.h
4477 (associated_internal_fn, replacement_internal_fn): New functions.
4478 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4479 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4480 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4481 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4482 (LDEXP): New functions.
4483 * internal-fn.c: Include recog.h.
4484 (unary_direct, binary_direct): New macros.
4485 (expand_direct_optab_fn): New function.
4486 (expand_unary_optab_fn): New macro.
4487 (expand_binary_optab_fn): Likewise.
4488 (direct_unary_optab_supported_p): Likewise.
4489 (direct_binary_optab_supported_p): Likewise.
4491 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4493 * coretypes.h (tree_pair): New type.
4494 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
4495 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4496 * internal-fn.h (direct_internal_fn_info): New structure.
4497 (direct_internal_fn_array): Declare.
4498 (direct_internal_fn_p, direct_internal_fn): New functions.
4499 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4500 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4501 (mask_store_direct, store_lanes_direct): New macros.
4502 (direct_internal_fn_array) New array.
4503 (get_multi_vector_move): Return the optab handler without asserting
4504 that it is available.
4505 (expand_LOAD_LANES): Rename to...
4506 (expand_load_lanes_optab_fn): ...this and add an optab argument.
4507 (expand_STORE_LANES): Rename to...
4508 (expand_store_lanes_optab_fn): ...this and add an optab argument.
4509 (expand_MASK_LOAD): Rename to...
4510 (expand_mask_load_optab_fn): ...this and add an optab argument.
4511 (expand_MASK_STORE): Rename to...
4512 (expand_mask_store_optab_fn): ...this and add an optab argument.
4513 (direct_internal_fn_types, direct_optab_supported_p)
4514 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4515 (direct_internal_fn_supported_p): New functions.
4516 (direct_mask_load_optab_supported_p): New macro.
4517 (direct_load_lanes_optab_supported_p): Likewise.
4518 (direct_mask_store_optab_supported_p): Likewise.
4519 (direct_store_lanes_optab_supported_p): Likewise.
4521 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4523 * tree-core.h (internal_fn): Move immediately after the definition
4524 of built_in_function.
4525 (combined_fn): New enum.
4526 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4527 (internal_fn_p, as_internal_fn): New functions.
4528 (get_call_combined_fn, combined_fn_name): Declare.
4529 * tree.c (get_call_combined_fn): New function.
4530 (combined_fn_name): Likewise.
4531 * gimple.h (gimple_call_combined_fn): Declare.
4532 * gimple.c (gimple_call_combined_fn): New function.
4534 2015-11-17 Martin Sebor <msebor@redhat.com>
4537 * cp/init.c (build_new_1): Check for expression constness
4540 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4543 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4545 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
4546 discussion of the Microsoft structure layout details here from
4547 its former home in extend.texi.
4548 * doc/extend.texi (x86 Variable Attributes): Replace detailed
4549 discussion with pointer to its new location. Add cross-reference
4550 to corresponding type attributes.
4551 (x86 Type Attributes): Add cross-references to command-line options
4552 and variable attributes.
4554 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
4557 * targhooks.c (default_get_mask_mode): Filter out
4558 scalar modes returned by mode_for_vector.
4560 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4563 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4564 offset from dstbase and use it appropriately in
4565 adjust_automodify_address.
4566 (arm_block_set_aligned_vect): Likewise.
4568 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
4570 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4571 (MULTILIB_DIRNAMES): Adjust accordingly.
4573 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
4575 * config/aarch64/aarch64-cores.def (cortex-a35): New.
4576 * config/aarch64/aarch64.c (cortexa35_tunings): New.
4577 * config/aarch64/aarch64-tune.md: Regenerate.
4578 * doc/invoke.texi (-mcpu): Add Cortex-A35
4580 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
4583 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4585 * config/i386/sse.md (*mov<mode>_internal): Always enable
4586 AVX and SSE unaligned moves for IAMCU.
4588 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
4590 * tree-if-conv.c: Include varasm.h
4591 (ref_DR_map): Define.
4592 (baseref_DR_map): Like wise
4593 (struct ifc_dr): Add new tree predicate field.
4594 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4595 (memrefs_read_or_written_unconditionally): Remove.
4596 (write_memrefs_written_at_least_once): Remove.
4597 (ifcvt_memrefs_wont_trap): Use hash maps to query
4598 unconditional read/written information.
4599 (if_convertible_loop_p_1): Initialize hash maps and predicates
4600 before hashing data references and delete hashmaps at the end.
4602 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4605 * doc/invoke.texi (Optimize Options): Move @end table to the right
4608 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
4611 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4614 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
4616 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
4617 128-bit types, just types that fit in a single vector.
4618 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
4620 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
4622 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
4623 in the user documentation.
4624 (define_peephole2, define_split): Similarly.
4626 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
4628 * lto-streamer-out.c (write_global_references): Adjust integer type.
4629 (lto_output_decl_state_refs): Likewise.
4631 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
4633 * config/arm/arm-cores.def (cortex-a35): New.
4634 * config/arm/arm.c (arm_cortex_a35_tune): New.
4635 * config/arm/arm-tables.opt: Regenerate.
4636 * config/arm/arm-tune.md: Regenerate.
4637 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
4638 * config/arm/t-aprofile: Likewise.
4639 * doc/invoke.texi (-mcpu): Likewise.
4641 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
4643 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
4644 and qdf24xx and xgene1 to match -march=armv8-a.
4646 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4648 PR rtl-optimization/68330
4649 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
4650 of LSHIFTRT by a non-zero constant integer.
4652 2015-11-16 Richard Biener <rguenther@suse.de>
4654 PR tree-optimization/68306
4655 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
4656 bogus copying from verify_data_ref_alignment and use continue
4659 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
4660 Kaz Kojima <kkojima@gcc.gnu.org>
4663 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
4665 (*addsi3): Add another insn_and_split variant for reload.
4667 2015-11-16 Richard Biener <rguenther@suse.de>
4670 * cfgexpand.c (pass_expand::execute): Destroy the edge
4671 redirection var map before setting RTL CFG hooks.
4673 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
4675 * config/i386/sse.md (reduc_splus_v8df): Rename to...
4676 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
4678 (reduc_splus_v4df): Rename to...
4679 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
4681 (reduc_splus_v2df): Rename to...
4682 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
4684 (reduc_splus_v16sf): Rename to...
4685 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
4687 (reduc_splus_v8sf): Rename to...
4688 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
4690 (reduc_splus_v4sf): Rename to...
4691 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
4693 (reduc_<code>_<mode>, all 3 variants): Rename each to...
4694 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
4696 (reduc_umin_v8hf): Rename to...
4697 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
4699 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
4701 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
4702 without additional conditions.
4703 * doc/extend.texi (@item simd): New.
4705 2015-11-16 Tom de Vries <tom@codesourcery.com>
4707 * passes.c (first_pass_instance): Remove variable.
4708 (execute_todo): Remove setting of first_pass_instance.
4709 * tree-pass.h (first_pass_instance): Remove declaration.
4711 2015-11-16 Tom de Vries <tom@codesourcery.com>
4713 * passes.def: Add arg to pass_ccp pass instantiation.
4714 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
4715 instead of first_pass_instance.
4716 (do_ssa_ccp): Add and handle param nonzero_p.
4717 (pass_ccp::pass_ccp): Initialize nonzero_p.
4718 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
4719 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
4720 (pass_ccp::nonzero_p): New private member.
4722 2015-11-16 Tom de Vries <tom@codesourcery.com>
4724 * passes.def: Add arg to pass_object_sizes pass instantiation.
4725 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
4727 (pass_object_sizes::set_pass_param): New member function. Set
4729 (pass_object_sizes::insert_min_max_p): New private member.
4730 (pass_object_sizes::execute): Use insert_min_max_p instead of
4731 first_pass_instance.
4733 2015-11-16 Tom de Vries <tom@codesourcery.com>
4735 * passes.def: Add arg to pass_dominator pass instantiation.
4736 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
4738 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
4739 may_peel_loop_headers_p.
4740 (pass_dominator::set_pass_param): New member function. Set
4741 may_peel_loop_headers_p.
4742 (pass_dominator::may_peel_loop_headers_p): New private member.
4743 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
4744 first_pass_instance.
4746 2015-11-16 Tom de Vries <tom@codesourcery.com>
4748 * passes.def: Add arg to pass_reassoc pass instantiation.
4749 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
4750 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
4751 of first_pass_instance.
4752 (execute_reassoc): Add and handle insert_powi_p parameter.
4753 (pass_reassoc::insert_powi_p): New private member.
4754 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
4755 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
4756 (pass_reassoc::execute): Call execute_reassoc with extra arg.
4758 2015-11-16 Tom de Vries <tom@codesourcery.com>
4760 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
4761 * gen-pass-instances.awk (handle_line): Same.
4762 * pass_manager.h (class pass_manager): Define and undefine
4764 * passes.c (opt_pass::set_pass_param): New function.
4765 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
4766 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
4767 * tree-pass.h (gimple_opt::set_pass_param): Declare.
4768 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
4769 warn_array_bounds_p parameter.
4770 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
4771 (pass_vrp::set_pass_param): New function.
4772 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
4773 (pass_vrp::warn_array_bounds_p): New private member.
4775 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4777 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
4778 (output_probe_stack_range): Rotate the loop and simplify.
4780 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4782 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4783 (output_probe_stack_range): Rotate the loop and simplify.
4785 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4787 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
4788 an lea instruction when possible.
4789 (output_adjust_stack_and_probe): Rotate the loop and simplify.
4790 (ix86_emit_probe_stack_range): Adjust.
4791 (output_probe_stack_range): Rotate the loop and simplify.
4793 2015-11-16 Christian Bruel <christian.bruel@st.com>
4795 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
4796 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
4797 with appropriate pragma GCC target.
4799 2015-11-16 Christian Bruel <christian.bruel@st.com>
4802 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
4803 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
4805 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
4807 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
4808 (cortexa57_tunings): Use it.
4810 2015-11-16 Christian Bruel <christian.bruel@st.com>
4813 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
4814 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
4815 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
4817 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
4818 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
4819 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
4820 * doc/extend.texi (-mfpu=): Describe attribute.
4822 2015-11-16 Christian Bruel <christian.bruel@st.com>
4825 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
4826 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
4827 arm_init_neon_builtins.
4828 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
4829 (arm_init_neon_builtins_internal)
4830 (arm_init_crypto_builtins_internal):
4831 Test and set neon_set_p, neon_crypto_set_p.
4832 (neon_set_p, neon_crypto_set_p): New static booleans.
4834 2015-11-16 Christian Bruel <christian.bruel@st.com>
4837 * config/arm/arm.c (arm_fpu_desc): Remove.
4838 (all_fpus): Make global.
4839 (arm_option_override): Use FPU TARGET accessors.
4840 (arm_declare_function_name): Likewise.
4841 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
4842 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
4843 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
4844 (TARGET_NEON): Likewise.
4845 (all_fpus): Declare extern.
4846 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
4847 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
4849 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4852 * sdbout.c: Include emit-rtl.h and function.h.
4854 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
4856 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
4857 Remove support for FreeBSD 5 and earlier.
4859 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4861 * configure: Regenerate.
4862 * configure.ac: Always define ENABLE_OFFLOADING.
4863 * cgraph.c (cgraph_node::create): Adjust.
4864 * gcc.c (process_command): Likewise.
4865 * omp-low.c (create_omp_child_function): Likewise.
4866 (expand_omp_target): Likewise.
4867 * varpool.c (varpool_node::get_create): Likewise.
4869 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4871 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
4872 * df-scan.c (df_get_exit_block_use_set): Adjust.
4873 * except.c (expand_eh_return): Likewise.
4875 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4877 * config/i386/i386.h (TARGET_PECOFF): Remove define.
4878 * defaults.h (TARGET_PECOFF): New default definition.
4879 * varasm.c (handle_vtv_comdat_section): Adjust.
4881 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4883 * defaults.h: New definition of SDB_DEBUGGING_INFO.
4884 * doc/tm.texi: Regenerate.
4885 * doc/tm.texi.in: Adjust.
4886 * final.c (rest_of_clean_state): Remove check if
4887 SDB_DEBUGGING_INFO is defined.
4888 * function.c (number_blocks): Likewise.
4889 * output.h: Likewise.
4890 * sdbout.c: Likewise.
4891 * toplev.c (process_options): Likewise.
4893 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4895 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
4896 (enum sdb_masks): Likewise.
4897 * sdbout.c (plain_type_1): Likewise.
4898 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
4900 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4902 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
4903 internal calls - 0 if ordered simd and 1 for ordered threads simd.
4904 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
4905 argument is 1, replace it with GOMP_ordered_* call instead of removing
4908 2015-11-13 Rich Felker <dalias@libc.org>
4910 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
4911 address loading hack for FDPIC targets.
4913 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
4914 Jeff Law <law@redhat.com>
4916 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4917 * common.opt (-fsplit-paths): New flag controlling path splitting.
4918 * doc/invoke.texi (fsplit-paths): Document.
4919 * opts.c (default_options_table): Add -fsplit-paths to -O2.
4920 * passes.def: Add split_paths pass.
4921 * timevar.def (TV_SPLIT_PATHS): New timevar.
4922 * tracer.c: Include "tracer.h"
4923 (ignore_bb_p): No longer static.
4924 (transform_duplicate): New function, broken out of tail_duplicate.
4925 (tail_duplicate): Use transform_duplicate.
4926 * tracer.h (ignore_bb_p): Declare
4927 (transform_duplicate): Likewise.
4928 * tree-pass.h (make_pass_split_paths): Declare.
4929 * gimple-ssa-split-paths.c: New file.
4931 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
4932 Marek Polacek <polacek@redhat.com>
4933 Jason Merrill <jason@redhat.com>
4935 * convert.c (maybe_fold_build1_loc): New.
4936 (maybe_fold_build2_loc): New.
4937 (convert_to_pointer_1): Split out from convert_to_pointer.
4938 (convert_to_pointer_nofold): New.
4939 (convert_to_real_1): Split out from convert_to_real.
4940 (convert_to_real_nofold): New.
4941 (convert_to_integer_1): Split out from convert_to_integer.
4942 (convert_to_integer_nofold): New.
4943 (convert_to_complex_1): Split out from convert_to_complex.
4944 (convert_to_complex_nofold): New.
4945 * convert.h: Declare new functions.
4946 * tree-complex.c (create_one_component_var): Break up line to
4947 avoid sequence point issues.
4949 2015-11-13 Jason Merrill <jason@redhat.com>
4951 * fold-const.c (fold_convert_const): Fold changing cv-quals on
4954 * hash-map.h (hash_map::empty): New.
4956 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4958 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4959 (oacc_loop_fixed_partitions): Correct return type to bool.
4960 (oacc_loop_auto_partitions): New.
4961 (oacc_loop_partition): Take mask argument, call
4962 oacc_loop_auto_partitions.
4963 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4965 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4967 * config/rs6000/constraints.md (we constraint): New constraint for
4968 64-bit power9 vector support.
4969 (wL constraint): New constraint for the element in a vector that
4970 can be addressed by the MFVSRLD instruction.
4972 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4974 (convert_int_to_float128): Likewise.
4975 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4976 hardware support for IEEE 128-bit floating point.
4977 (rs6000_expand_float128_convert): Likewise.
4978 (convert_float128_to_int): Likewise.
4979 (convert_int_to_float128): Likewise.
4981 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4982 ISA 3.0 hardware IEEE 128-bit floating point.
4983 (UNSPEC_IEEE128_MOVE): Likewise.
4984 (UNSPEC_IEEE128_CONVERT): Likewise.
4985 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4986 (Ff): Add support for DImode.
4988 (any_fix code iterator): New and updated iterators for IEEE
4989 128-bit floating point hardware support.
4990 (any_float code iterator): Likewise.
4991 (s code attribute): Likewise.
4992 (su code attribute): Likewise.
4993 (az code attribute): Likewise.
4994 (uns code attribute): Likewise.
4995 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4996 floating point hardware support.
4997 (abs<mode>2, FLOAT128 iterator): Likewise.
4998 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4999 floating point hardware.
5000 (sub<mode>3, IEEE128 iterator): Likewise.
5001 (mul<mode>3, IEEE128 iterator): Likewise.
5002 (div<mode>3, IEEE128 iterator): Likewise.
5003 (copysign<mode>3, IEEE128 iterator): Likewise.
5004 (sqrt<mode>2, IEEE128 iterator): Likewise.
5005 (neg<mode>2, IEEE128 iterator): Likewise.
5006 (abs<mode>2, IEEE128 iterator): Likewise.
5007 (nabs<mode>2, IEEE128 iterator): Likewise.
5008 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5009 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5010 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5011 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5012 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5013 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5014 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5015 (fix_fixuns code attribute): Likewise.
5016 (float_floatuns code attribute): Likewise.
5017 (fix<uns>_<mode>si2_hw): Likewise.
5018 (fix<uns>_<mode>di2_hw): Likewise.
5019 (float<uns>_<mode>si2_hw): Likewise.
5020 (float<uns>_<mode>di2_hw): Likewise.
5021 (xscvqp<su>wz_<mode>): Likewise.
5022 (xscvqp<su>dz_<mode>): Likewise.
5023 (xscv<su>dqp_<mode): Likewise.
5024 (ieee128_mfvsrd): Likewise.
5025 (ieee128_mfvsrwz): Likewise.
5026 (ieee128_mtvsrw): Likewise.
5027 (ieee128_mtvsrd): Likewise.
5028 (trunc<mode>df2_odd): Likewise.
5029 (cmp<mode>_h): Likewise.
5030 (128-bit GPR splitters): Don't split a 128-bit move that is a
5031 direct move between GPR and vector registers using ISA 3.0 direct
5033 (maddld4): Add support for the ISA 3.0 integer multiply-add
5036 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5038 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5039 constraint. Disable the VSX<->GPR direct move helpers if we have
5040 the MFVSRLD and MTVSRDD instructions.
5041 (rs6000_secondary_reload_simple_move): Add support for doing
5042 vector direct moves directly without additional scratch registers
5043 if we have ISA 3.0 instructions.
5044 (rs6000_secondary_reload_direct_move): Update comments.
5045 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5048 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5049 direct move instructions.
5050 (vsx_movti_64bit): Likewise.
5051 (vsx_extract_<mode>): Likewise.
5053 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5054 macros for ISA 3.0 direct move instructions.
5055 (TARGET_DIRECT_MOVE_128): Likewise.
5056 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5059 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5060 constraints. Update wa documentation to say not to use %x<n> on
5061 instructions that only take Altivec registers.
5063 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5065 * Makefile.in (OBJS): Add gcc-rich-location.o.
5066 * diagnostic.c (diagnostic_append_note): Pass line_table to
5068 (emit_diagnostic): Likewise.
5070 (inform_n): Likewise.
5071 (warning): Likewise.
5072 (warning_at): Likewise.
5073 (warning_n): Likewise.
5074 (pedwarn): Likewise.
5075 (permerror): Likewise.
5077 (error_n): Likewise.
5078 (error_at): Likewise.
5080 (fatal_error): Likewise.
5081 (internal_error): Likewise.
5082 (internal_error_no_backtrace): Likewise.
5083 (source_range::debug): Likewise.
5084 * gcc-rich-location.c: New file.
5085 * gcc-rich-location.h: New file.
5086 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5087 (warning_at): Likewise.
5088 * gimple.h (gimple_set_block): Use set_block function.
5089 * input.c (dump_line_table_statistics): Dump stats on how many
5090 ranges were optimized vs how many needed ad-hoc table.
5091 (write_digit_row): Add "map" param; use its range_bits
5092 to calculate the per-character offset.
5093 (dump_location_info): Print the range and column bits for each
5094 ordinary map. Use the range bits to calculate the per-character
5095 offset. Pass the map as a new param to the various calls to
5096 write_digit_row. Eliminate uses of
5097 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
5098 * print-tree.c (print_node): Print any source range information.
5099 * rtl-error.c (diagnostic_for_asm): Likewise.
5100 * toplev.c (general_init): Initialize line_table's
5102 * tree-cfg.c (move_block_to_fn): Likewise.
5103 (move_block_to_fn): Likewise.
5104 * tree-inline.c (copy_phis_for_bb): Likewise.
5105 * tree.c (tree_set_block): Likewise.
5106 (get_pure_location): New function.
5107 (set_source_range): New functions.
5108 (set_block): New function.
5109 (set_source_range): New functions.
5110 * tree.h (CAN_HAVE_RANGE_P): New.
5111 (EXPR_LOCATION_RANGE): New.
5112 (EXPR_HAS_RANGE): New.
5113 (get_expr_source_range): New inline function.
5114 (DECL_LOCATION_RANGE): New.
5115 (set_source_range): New decls.
5116 (get_decl_source_range): New inline function.
5118 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
5120 PR tree-optimization/67682
5121 * tree-vect-slp.c (vect_split_slp_store_group): New.
5122 (vect_analyze_slp_instance): During basic block SLP, recurse on
5123 subgroups if vect_build_slp_tree fails after 1st vector.
5125 2015-11-13 Christian Bruel <christian.bruel@st.com>
5128 * config/arm/arm.c (arm_option_override): Move NEON check...
5129 (arm_option_check_internal): here
5130 (arm_file_start): Move .fpu print...
5131 (arm_declare_function_name): here
5132 (arm_option_print): Dump current fpu name.
5133 * config/arm/arm.opt (arm_fpu_index): Mark Save.
5135 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
5136 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5138 * combine.c (subst): Don't substitute or simplify when
5139 handling register-wise widening multiply.
5140 (force_to_mode): Likewise.
5142 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
5144 PR tree-optimization/68264
5145 * tree-call-cdce.c (gen_one_condition): Update commentary.
5146 (gen_conditions_for_pow_int_base): Invert the sense of the tests
5147 passed to gen_one_condition.
5148 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
5149 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
5150 using EDGE_FALSE_VALUE for edges to the call block and
5151 EDGE_TRUE_VALUE for the others.
5153 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5155 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
5158 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5160 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
5162 2015-11-13 Tom de Vries <tom@codesourcery.com>
5164 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
5167 2015-11-13 Tom de Vries <tom@codesourcery.com>
5169 * gen-pass-instances.awk (handle_line): Add args_str variable.
5171 2015-11-13 Martin Liska <mliska@suse.cz>
5173 * graphite-poly.c (free_scop): Release scop->drs vector.
5174 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
5176 (try_generate_gimple_bb): Use vNULL as a default initialization
5179 2015-11-13 Martin Liska <mliska@suse.cz>
5182 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
5183 Replace array initialization (using a variable post-increment)
5184 that possible triggers multiple unsequenced modifications
5185 with a pair of pushes to a vector.
5187 2015-11-13 Richard Biener <rguenther@suse.de>
5189 PR tree-optimization/68306
5190 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
5191 loop related checks ...
5192 (vect_verify_datarefs_alignment): ... here.
5193 (vect_slp_analyze_and_verify_node_alignment): Compute and
5194 verify alignment of the single DR that it matters.
5195 * tree-vect-stmts.c (vectorizable_store): Add an assert.
5196 (vectorizable_load): Add a comment.
5197 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
5198 for determining load cost.
5200 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5202 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
5203 mix of boolean and integer vectors in a single statement.
5204 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
5205 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
5206 determine constant type.
5207 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
5208 for loop invariants.
5210 2015-11-13 Alan Hayward <alan.hayward@arm.com>
5212 PR tree-optimization/66558
5213 * tree-vect-loop.c (is_integer_induction):Add.
5214 (vectorizable_reduction): Add integer induction checks.
5216 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5218 Revert [ARM] Remove neon-testgen.ml and generated tests.
5220 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5222 [ARM] Remove neon-testgen.ml and generated tests.
5224 * config/arm/neon-testgen.ml: Remove.
5226 2015-11-13 Richard Biener <rguenther@suse.de>
5228 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
5229 Signal fatal failure if early checks fail.
5230 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
5231 do not bother testing further vector sizes.
5233 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
5235 * config/i386/predicates.md (misaligned_operand): Return true if
5236 operand is aligned to less than its natural alignmnet.
5238 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5240 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
5241 (vec_cmpu@var{m}@var{n}): New item.
5242 (vcond@var{m}@var{n}): Specify comparison is signed.
5243 (vcondu@var{m}@var{n}): New item.
5244 (vcond_mask_@var{m}@var{n}): New item.
5245 (maskload@var{m}@var{n}): New item.
5246 (maskstore@var{m}@var{n}): New item.
5248 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5250 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5251 types of stored value and storage are compatible.
5253 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
5255 * gcc.c (POST_LINK_SPEC): Define if not already defined.
5256 (LINK_COMMAND_SPEC): Use post_link.
5257 (post_link_spec): New, initialize to POST_LINK_SPEC.
5258 (post_link): Initialize new static spec.
5259 * doc/tm.texi.in (POST_LINK_SPEC): Document.
5260 * doc/tm.texi: Regenerated.
5262 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5265 * Makefile.in (GCC_OBJS): Add spellcheck.o.
5266 (OBJS): Add spellcheck-tree.o.
5267 * gcc.c: Include "spellcheck.h".
5268 (suggest_option): New function.
5269 (driver::handle_unrecognized_options): Call suggest_option to
5270 provide a hint about misspelled options.
5271 * spellcheck.c: Update file comment.
5272 (levenshtein_distance): Convert 4-param implementation from static
5273 to extern scope. Remove note about unit tests from leading
5274 comment for const char * implementation. Move tree
5275 implementation to...
5276 * spellcheck-tree.c: New file.
5277 * spellcheck.h (levenshtein_distance): Add 4-param decl.
5279 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5281 * Makefile.in (OBJS): Add spellcheck.o.
5282 * spellcheck.c: New file.
5283 * spellcheck.h: New file.
5285 2015-11-13 James Bowman <james.bowman@ftdichip.com>
5287 * config/ft32/ft32.md (*sne): New insn pattern.
5289 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
5291 * cprop.c (is_too_expensive): Remove.
5293 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
5295 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
5296 * gcse.c (is_too_expensive): Rename to ...
5297 (gcse_or_cprop_is_too_expensive): ... this.
5298 Expand warning to add required size of max-gcse-memory.
5299 (one_pre_gcse_pass): Use it.
5300 (one_code_hoisting_pass): Use it.
5301 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
5303 2015-11-12 James Norris <jnorris@codesourcery.com>
5304 Joseph Myers <joseph@codesourcery.com>
5306 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
5307 GF_OMP_TARGET_KIND_OACC_DECLARE.
5308 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
5309 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5310 * gimplify.c (oacc_declare_returns): New.
5311 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
5312 (device_resident_p): New function.
5313 (oacc_default_clause): Handle device_resident clause.
5314 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
5315 (gimplify_expr): Handle OACC_DECLARE.
5316 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5317 * omp-low.c (expand_omp_target): Handle
5318 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5319 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5320 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5321 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5322 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5323 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5324 GOMP_MAP_DEVICE_RESIDENT.
5326 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5328 [ARM] Remove neon-testgen.ml and generated tests.
5330 * config/arm/neon-testgen.ml: Remove.
5332 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
5334 * config/aarch64/aarch64-cores.def (qdf24xx): New.
5335 * config/aarch64/aarch64-tune.md: Regenerated.
5336 * config/arm/arm-cores.def (qdf24xx): New.
5337 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5338 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5339 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5340 (ARM Options/-mtune): Likewise.
5342 2015-11-12 Martin Liska <mliska@suse.cz>
5344 * config/i386/i386.c (ix86_valid_target_attribute_p):
5345 Finalize options at the of the function.
5346 * gcc.c (driver_get_configure_time_options): Call newly
5347 introduced init_opts_obstack.
5348 * lto-wrapper.c (main): Likewise.
5349 * opts.c (init_opts_obstack): New function.
5350 (init_options_struct): Call newly introduced init_opts_obstack.
5351 * opts.h (init_options_struct): Declare.
5353 2015-11-12 Martin Liska <mliska@suse.cz>
5356 * ipa-icf.c (void sem_item::set_hash): New function.
5357 (sem_function::get_hash): Use renamed m_hash member variable.
5358 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5359 (sem_item::update_hash_by_local_refs): Likewise.
5360 (sem_variable::get_hash): Use renamed m_hash member variable.
5361 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5362 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5363 (sem_item_optimizer::build_graph): As the hash value of an item
5364 is lazy initialized, force the calculation.
5365 * ipa-icf.h (set_hash): Declare new function and rename hash member
5368 2015-11-12 Richard Biener <rguenther@suse.de>
5370 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5371 Rename to vect_slp_analyze_instance_dependence.
5372 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5373 Remove WAR special-case.
5374 (vect_slp_analyze_node_dependences): Instead add more specific
5375 code here, not relying on other instances being vectorized.
5376 (vect_slp_analyze_instance_dependence): Adjust accordingly.
5377 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5378 vertical space in dump files.
5379 (vect_print_slp_tree): Likewise.
5380 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5381 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5382 not vectorized stmts until after dependence analysis removed
5383 instances. Merge alignment and dependence checks.
5384 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5387 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
5389 * config/aarch64/aarch64-protos.h (tune_params): Add new members
5390 "max_case_values" and "cache_line_size".
5391 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5393 (aarch64_override_options_internal): Tune heuristics based on new
5394 members in "tune_params".
5395 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5397 2015-11-12 Richard Biener <rguenther@suse.de>
5399 PR tree-optimization/68306
5400 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5401 relevant and vectorizable checks here.
5402 (vect_verify_datarefs_alignment): Add relevant check here.
5404 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5406 * gimplify.c (oacc_default_clause): New.
5407 (omp_notice_variable): Call it.
5409 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5411 PR tree-optimization/68305
5412 * tree-vect-slp.c (vect_get_constant_vectors): Support
5413 COND_EXPR with SSA_NAME as a condition.
5415 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5417 * config/visium/visium-protos.h (notice_update_cc): Delete.
5418 (print_operand): Likewise.
5419 (print_operand_address): Likewise.
5421 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5423 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5424 FUNCTION_VALUE_REGNO_P): Remove.
5425 * config/alpha/alpha-protos.h (function_value): Remove.
5426 * config/alpha/alpha.c (function_value): Rename to...
5427 (alpha_function_value_1): ... this. Make static.
5428 (alpha_function_value, alpha_libcall_value,
5429 alpha_function_value_regno_p): New functions.
5430 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5431 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5433 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5435 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5436 * config/alpha/alpha.c (alpha_memory_latency): Make static.
5437 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5438 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5440 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5443 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5444 assertion on the CFA register.
5446 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5448 * expr.c (do_store_flag): Expand vector comparison as
5449 VEC_COND_EXPR if vector comparison is not supported by target.
5451 2015-11-12 Renlin Li <renlin.li@arm.com>
5453 * config/arm/arm.md (addsi3_compare_op2): Make the order of
5454 assembly pattern consistent with constraint order.
5456 2015-11-12 Tom de Vries <tom@codesourcery.com>
5458 * gen-pass-instances.awk (handle_line): Simplify match regexp.
5460 2015-11-12 Tom de Vries <tom@codesourcery.com>
5462 * gen-pass-instances.awk (handle_line): Simplify init of
5465 2015-11-12 Tom de Vries <tom@codesourcery.com>
5467 * gen-pass-instances.awk (handle_line): Rename var where to
5470 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
5472 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5473 do not expand to rtl.
5475 2015-11-12 Richard Biener <rguenther@suse.de>
5477 PR tree-optimization/58497
5478 * tree-vect-generic.c: Include gimplify.h.
5479 (tree_vec_extract): Lookup constant/constructor DEFs.
5480 (do_cond): Unshare cond.
5482 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5484 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5485 combined insn if the alignment of vector mode memory operand
5486 is less than ssememalign.
5488 2015-11-12 Tom de Vries <tom@codesourcery.com>
5490 * gen-pass-instances.awk (handle_line): Print parentheses and
5491 pass_name explicitly.
5493 2015-11-12 Tom de Vries <tom@codesourcery.com>
5495 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5498 2015-11-12 Tom de Vries <tom@codesourcery.com>
5500 * gen-pass-instances.awk (handle_line): Add comments.
5502 2015-11-12 Tom de Vries <tom@codesourcery.com>
5504 * gen-pass-instances.awk (handle_line): Rename len_of_end to
5507 2015-11-12 Tom de Vries <tom@codesourcery.com>
5509 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5511 2015-11-12 Tom de Vries <tom@codesourcery.com>
5513 * gen-pass-instances.awk (handle_line): Restructure using early-out.
5515 2015-11-12 Tom de Vries <tom@codesourcery.com>
5517 * gen-pass-instances.awk (handle_line): Unify semicolon use.
5519 2015-11-12 Tom de Vries <tom@codesourcery.com>
5521 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5523 2015-11-12 Tom de Vries <tom@codesourcery.com>
5525 * gen-pass-instances.awk: Add emacs indent setting.
5527 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5529 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5531 Move Convert A/(B/C) to (A/B)*C to match.pd.
5532 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5533 Move Optimize (X & (-A)) / A where A is a power of 2, to
5534 X >> log2(A) to match.pd.
5536 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5537 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5538 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5540 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5542 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
5544 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5546 (neon_vst2_lane<mode>): Likewise.
5547 (neon_vld3_lane<mode>): Likewise.
5548 (neon_vst3_lane<mode>): Likewise.
5549 (neon_vld4_lane<mode>): Likewise.
5550 (neon_vst4_lane<mode>): Likewise.
5552 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
5553 Sebastian Pop <s.pop@samsung.com>
5555 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5556 New member codegen_error
5557 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5559 (translate_isl_ast_node_user): Early return in case of error.
5560 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5561 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5562 (add_parameters_to_ivs_params): Remove macro.
5563 (graphite_regenerate_ast_isl): Add if_region pointer to region.
5564 * graphite-poly.c (new_poly_dr): Remove macro.
5566 (new_gimple_poly_bb): Same.
5567 (free_gimple_poly_bb): Same.
5568 (print_scop_params): Same.
5569 * graphite-poly.h (struct poly_dr): Same.
5570 (struct poly_bb): Add new_bb.
5571 (gbb_from_bb): Remove dead code.
5572 (pbb_from_bb): Same.
5573 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5574 (parameter_index_in_region): Same.
5575 (find_scop_parameters): Same.
5576 (build_cross_bb_scalars_def): New.
5577 (build_cross_bb_scalars_use): New.
5578 (graphite_find_cross_bb_scalar_vars): New
5579 (try_generate_gimple_bb): Reads and Writes.
5580 (build_alias_set): Move.
5581 (gather_bbs::before_dom_children): Gather bbs visited.
5582 (build_scops): call build_alias_set.
5583 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5584 (remove_simple_copy_phi): Delete.
5585 (remove_invariant_phi): Delete.
5586 (simple_copy_phi_p): Delete.
5587 (reduction_phi_p): Delete.
5588 (isl_id_for_dr): Remove unused param.
5589 (parameter_index_in_region_1): Remove macro usage.
5590 (set_scop_parameter_dim): Same.
5591 (add_param_constraints): Same.
5592 (add_conditions_to_constraints): Same
5593 (build_scop_iteration_domain): Same.
5594 (pdr_add_alias_set): Comment.
5595 (add_scalar_version_numbers): New.
5596 (build_poly_dr): ISL id.
5597 (build_scop_drs): Move.
5598 (build_poly_sr_1): Same.
5599 (insert_stmts): Remove.
5600 (build_poly_sr): New.
5601 (new_pbb_from_pbb): Delete.
5602 (insert_out_of_ssa_copy_on_edge): Delete.
5603 (create_zero_dim_array): Delete.
5604 (scalar_close_phi_node_p): Delete.
5605 (propagate_expr_outside_region): Delete.
5606 (rewrite_close_phi_out_of_ssa): Delete.
5607 (rewrite_phi_out_of_ssa): Delete.
5608 (rewrite_degenerate_phi): Delete.
5609 (rewrite_reductions_out_of_ssa): Delete.
5610 (rewrite_cross_bb_scalar_dependence): Delete.
5611 (handle_scalar_deps_crossing_scop_limits):
5612 (rewrite_cross_bb_scalar_deps): Delete.
5613 (build_poly_scop): Remove calls to out-of-ssa functions.
5614 * graphite.c (graphite_transform_loops): Early return in case of
5616 * sese.c (debug_rename_map_1): Delete.
5617 (debug_rename_map): Delete.
5618 (sese_record_loop): Remove macro.
5619 (build_sese_loop_nests): Same.
5620 (new_sese_info): Same.
5621 (free_sese_info): Same.
5622 (sese_insert_phis_for_liveouts):
5623 (is_loop_closed_ssa_use): New.
5624 (number_of_phi_nodes): New.
5625 (bb_contains_loop_close_phi_nodes): New.
5626 (bb_contains_loop_phi_nodes): New.
5627 (phi_uses_name): New.
5629 (get_rename): Add old_bb and loop_phi for more precise matching of
5631 (set_rename): Pass region.
5632 (later_of_the_two): New.
5633 (gsi_insert_earliest): New.
5634 (collect_all_ssa_names): New.
5635 (substitute_ssa_name): New.
5636 (rename_all_uses): New.
5637 (get_rename_from_scev): New.
5638 (rename_uses): Pass old_bb for more precise matching of exprs.
5639 (get_def_bb_for_const): New.
5640 (get_new_name): New.
5643 (copy_loop_phi_args): New.
5644 (copy_loop_phi_nodes): New.
5645 (get_loop_init_value): New.
5646 (find_init_value): New.
5647 (find_init_value_close_phi): New.
5648 (copy_loop_close_phi_args): New.
5649 (copy_loop_close_phi_nodes): New.
5650 (add_phi_arg_for_new_expr): New.
5651 (copy_cond_phi_args): New.
5652 (copy_cond_phi_nodes): New.
5653 (copy_phi_nodes): New.
5654 (should_copy_to_new_region): New.
5655 (set_rename_for_each_def): New.
5656 (graphite_copy_stmts_from_block): Early return in case of error.
5657 (copy_bb_and_scalar_dependences): Same.
5658 * sese.h (vec_find): New.
5659 (SESE_PARAMS): Delete.
5660 (SESE_LOOPS): Delete.
5661 (SESE_LOOP_NEST): Delete.
5662 (sese_contains_loop): Remove macro usage.
5663 (sese_nb_params): Same.
5664 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
5666 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5668 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
5669 isl_union_map_add_map on every pbb->schedule.
5671 2015-11-11 Tom de Vries <tom@codesourcery.com>
5673 * tree-parloops.c (create_parallel_loop): Return void.
5675 2015-11-11 Tom de Vries <tom@codesourcery.com>
5677 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
5678 block only when needed.
5680 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
5682 * config/alpha/alpha-protos.h (print_operand): Remove.
5683 (print_operand_address): Remove.
5684 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
5685 (PRINT_OPERAND_ADDRESS): Remove.
5686 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
5687 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
5688 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
5689 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
5690 (print_operand_address): Rename to...
5691 (alpha_print_operand_address): ...this and make static.
5692 (print_operand): Rename to...
5693 (alpha_print_operand): ...this and make static.
5694 (alpha_print_operand_punct_valid_p): New static function.
5696 2015-11-11 Richard Biener <rguenther@suse.de>
5698 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
5700 (vect_analyze_data_refs_alignment): Make loop vect specific.
5701 (vect_verify_datarefs_alignment): Likewise.
5702 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
5703 Add missing continue.
5704 (vect_compute_data_ref_alignment): Export.
5705 (vect_compute_data_refs_alignment): Merge into...
5706 (vect_analyze_data_refs_alignment): ... this.
5707 (verify_data_ref_alignment): Split out from ...
5708 (vect_verify_datarefs_alignment): ... here.
5709 (vect_slp_analyze_and_verify_node_alignment): New function.
5710 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
5711 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
5712 misplaced checks on alignment.
5713 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
5714 alignment analysis after SLP discovery and do it per instance.
5715 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
5716 bother to re-try using different vector sizes.
5718 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
5719 Cesar Philippidis <cesar@codesourcery.com>
5721 * gimplify.c (enum omp_region_type): Add ORT_ACC,
5722 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
5723 (gimple_add_tmp_var): Add ORT_ACC checks.
5724 (gimplify_var_or_parm_decl): Likewise.
5725 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
5726 (omp_add_variable): Look in outer contexts for openacc and allow
5727 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
5728 (omp_notice_variable, omp_is_private, omp_check_private): Add
5730 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
5731 Permit private openacc reductions.
5732 (gimplify_oacc_cache): Specify ORT_ACC.
5733 (gimplify_omp_workshare): Adjust OpenACC region types.
5734 (gimplify_omp_target_update): Likewise.
5735 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
5736 (lower-rec_input_clauses): Don't handle openacc firstprivate
5738 (lower_omp_target): Emit initializers for openacc firstprivate vars.
5740 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
5743 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
5744 frame pointer for stack checking if non-call exceptions aren't used.
5745 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
5747 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
5749 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
5752 2015-11-11 Martin Liska <mliska@suse.cz>
5753 Richard Biener <rguenther@suse.de>
5755 PR rtl-optimization/68287
5756 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
5759 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
5761 * config/mips/mips.c (mips_breakable_sequence_p): New function.
5762 (mips_break_sequence): New function.
5763 (mips_reorg_process_insns): Use them. Use compact branches in selected
5766 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
5768 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
5770 2015-11-11 Jiong Wang <jiong.wang@arm.com>
5771 Jim Wilson <wilson@gcc.gnu.org>
5774 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
5775 be true and eliminable registers mentioned.
5777 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
5779 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
5781 * config/arc/arc-opts.h: Add ARCv2 CPUs.
5782 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
5783 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
5784 situation, and store instructions with large offsets.
5785 (arc_secondary_reload_conv): New function.
5786 (arc_init): Add ARCv2 options.
5787 (arc_conditional_register_usage): Select the proper register usage
5788 for ARCv2 processors.
5789 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
5791 (arc_compute_function_type): Likewise.
5792 (arc_print_operand): Handle new ARCv2 punctuation characters.
5793 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
5794 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
5796 (arc_reorg, arc_hazard): Use it.
5797 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
5798 (ASM_SPEC): Add ARCv2 options.
5799 (TARGET_NORM): ARC HS has norm instructions by default.
5800 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
5801 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
5802 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
5803 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
5805 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
5806 (TARGET_LP_WR_INTERLOCK): Likewise.
5808 (commutative_binary_mult_comparison_result_used, movsicc_insn)
5809 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
5810 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
5811 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
5813 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
5814 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
5815 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
5816 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
5817 (extzvsi): New pattern.
5818 * config/arc/arc.opt: New ARCv2 options.
5819 * config/arc/arcEM.md: New file.
5820 * config/arc/arcHS.md: Likewise.
5821 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
5823 (Cm2): A signed 9-bit integer constant constraint.
5824 (C62): An unsigned 6-bit integer constant constraint.
5825 (C16): A signed 16-bit integer constant constraint.
5826 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
5827 (short_const_int_operand): New predicate.
5828 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
5829 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
5830 -mcode-density and -mdiv-rem.
5832 2015-11-11 Julia Koval <julia.koval@intel.com>
5834 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
5836 2015-11-11 Julia Koval <julia.koval@intel.com>
5838 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
5840 2015-11-11 Martin Liska <mliska@suse.cz>
5842 * gimple-ssa-strength-reduction.c (create_phi_basis):
5844 * passes.c (release_dump_file_name): New function.
5845 (pass_init_dump_file): Used from this function.
5846 (pass_fini_dump_file): Likewise.
5847 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
5848 * var-tracking.c (vt_initialize): Use pool_allocator.
5850 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
5851 Jiong Wang <jiong.wang@arm.com>
5853 PR tree-optimization/68234
5854 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
5855 node which estimiated to be VR_VARYING initially.
5857 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
5859 * regname.c (scan_rtx_reg): Check the matching number of consecutive
5860 registers when tying chains.
5861 (build_def_use): Move terminated_this_insn earlier in the function.
5863 2015-11-10 Mike Frysinger <vapier@gentoo.org>
5865 * configure.ac: Use = with test and not ==.
5866 * configure: Regenerated.
5868 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
5870 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
5871 machine asserts. Update defines for 64 bit.
5873 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5876 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
5878 (neon_vst1_lane<mode>): Likewise.
5879 (neon_vld2_lane<mode>): Likewise.
5880 (neon_vst2_lane<mode>): Likewise.
5881 (neon_vld3_lane<mode>): Likewise.
5882 (neon_vst3_lane<mode>): Likewise.
5883 (neon_vld4_lane<mode>): Likewise.
5884 (neon_vst4_lane<mode>): Likewise.
5886 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5889 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
5890 qualifier_struct_load_store_lane_index.
5891 (arm_storestruct_lane_qualifiers) Likewise.
5892 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
5894 (neon_vst1_lane<mode>) Likewise.
5895 (neon_vld2_lane<mode>) Likewise.
5896 (neon_vst2_lane<mode>) Likewise.
5897 (neon_vld3_lane<mode>) Likewise.
5898 (neon_vst3_lane<mode>) Likewise.
5899 (neon_vld4_lane<mode>) Likewise.
5900 (neon_vst4_lane<mode>) Likewise.
5902 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5905 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
5906 qualifier_struct_load_store_lane_index.
5907 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5908 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
5909 argument qualifiers.
5910 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
5911 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5913 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
5915 * config/nvptx/nvptx.opt (moptimize): New flag.
5916 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5918 (nvptx_optimize_inner): New.
5919 (nvptx_process_pars): Call it when optimizing.
5920 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5922 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5924 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5925 Remove redundant code.
5927 2015-11-10 Jeff Law <law@redhat.com>
5929 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5930 call to output_address.
5931 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5932 Add unnamed machine_mode argument.
5934 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5936 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5939 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5941 * config/i386/i386.md (*movabs<mode>_1): Add explicit
5942 size directives for -masm=intel.
5943 (*movabs<mode>_2): Ditto.
5945 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5947 * config/i386/i386.c (ix86_print_operand): Remove dead code that
5948 tried to avoid (%rip) for call operands.
5950 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5952 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5953 argument. Do not use RIP relative addressing when no_rip is set.
5954 (ix86_print_operand): Update call to ix86_print_operand_address_as.
5955 (ix86_print_operand_address): Ditto.
5956 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5957 absolute movabs operand 0. Add square braces for -masm=intel.
5958 (*movabs<mode>_2): Ditto for operand 1.
5960 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5962 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5963 combine_vcvtf2i pattern.
5965 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5967 * config/arm/arm.c (neon_valid_immediate): Remove integer
5968 CONST_DOUBLE handling. It should never occur.
5970 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
5972 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5973 (ATOMIC_LDOP): Likewise.
5974 (atomic_ldop): Likewise.
5975 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5976 (ATOMIC_LDOP): Likewise.
5977 (atomic_ldop): Likewise.
5979 2015-11-10 Martin Liska <mliska@suse.cz>
5981 * alloc-pool.h (allocate_raw): New function.
5982 (operator new (size_t, object_allocator<T> &a)): Use the
5983 function instead of object_allocator::allocate).
5985 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5987 * config/i386/sse.md (HALFMASKMODE): New attribute.
5988 (DOUBLEMASKMODE): New attribute.
5989 (vec_pack_trunc_qi): New.
5990 (vec_pack_trunc_<mode>): New.
5991 (vec_unpacks_lo_hi): New.
5992 (vec_unpacks_lo_si): New.
5993 (vec_unpacks_lo_di): New.
5994 (vec_unpacks_hi_hi): New.
5995 (vec_unpacks_hi_<mode>): New.
5997 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5999 * optabs.c (expand_binop_directly): Allow scalar mode for
6000 vec_pack_trunc_optab.
6001 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6002 boolean vector producers from pattern sequence when computing VF.
6003 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6004 vect_recog_mask_conversion_pattern.
6005 (search_type_for_mask): Choose the smallest
6006 type if different size types are mixed.
6007 (build_mask_conversion): New.
6008 (vect_recog_mask_conversion_pattern): New.
6009 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6010 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6012 (vectorizable_conversion): Support boolean vectors.
6013 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6014 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6016 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6018 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6019 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6020 Cast mask to FP mode if required.
6021 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6022 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6023 (vcond_mask_<mode><sseintvecmodelower>): New.
6024 (vcond_mask_<mode><sseintvecmodelower>): New.
6025 (vcond_mask_v2div2di): New.
6026 (vcond_mask_<mode><sseintvecmodelower>): New.
6027 (vcond_mask_<mode><sseintvecmodelower>): New.
6029 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6031 * optabs-query.h (get_vcond_mask_icode): New.
6032 * optabs-tree.c (expand_vec_cond_expr_p): Use
6033 get_vcond_mask_icode for VEC_COND_EXPR with mask.
6034 * optabs.c (expand_vec_cond_mask_expr): New.
6035 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6036 * optabs.def (vcond_mask_optab): New.
6037 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6038 generate redundant comparison for COND_EXPR.
6039 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6041 (vectorizable_condition): Likewise.
6042 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6043 cond_exp with no embedded comparison.
6044 (vect_build_slp_tree_1): Likewise.
6046 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6048 * config/i386/sse.md (maskload<mode>): Rename to ...
6049 (maskload<mode><sseintvecmodelower>): ... this.
6050 (maskstore<mode>): Rename to ...
6051 (maskstore<mode><sseintvecmodelower>): ... this.
6052 (maskload<mode><avx512fmaskmodelower>): New.
6053 (maskstore<mode><avx512fmaskmodelower>): New.
6055 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6057 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6058 (expand_MASK_STORE): Adjust to maskstore optab changes.
6059 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6060 Adjust to maskload, maskstore optab changes.
6061 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6062 * optabs.def (maskload_optab): Transform into convert optab.
6063 (maskstore_optab): Likewise.
6064 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6065 can_vec_mask_load_store_p signature change.
6066 (predicate_mem_writes): Use boolean mask.
6067 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6068 can_vec_mask_load_store_p signature change. Allow invariant masks.
6069 (vectorizable_operation): Ignore type precision for boolean vectors.
6071 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6073 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6074 (const_vector_mask_from_tree): New.
6075 (const_vector_from_tree): Use const_vector_mask_from_tree
6076 for boolean vectors.
6077 * optabs-query.h (get_vec_cmp_icode): New.
6078 * optabs-tree.c (expand_vec_cmp_expr_p): New.
6079 * optabs-tree.h (expand_vec_cmp_expr_p): New.
6080 * optabs.c (vector_compare_rtx): Add OPNO arg.
6081 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6082 (expand_vec_cmp_expr): New.
6083 * optabs.def (vec_cmp_optab): New.
6084 (vec_cmpu_optab): New.
6085 * optabs.h (expand_vec_cmp_expr): New.
6086 * tree-vect-generic.c (expand_vector_comparison): Add vector
6087 comparison optabs check.
6088 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
6089 operations for VF. Add mask type computation.
6090 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6091 (vectorizable_comparison): New.
6092 (vect_analyze_stmt): Add vectorizable_comparison.
6093 (vect_transform_stmt): Likewise.
6094 (vect_init_vector): Support boolean vector invariants.
6095 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6096 (vectorizable_condition): Directly provide vectype for invariants
6098 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
6099 (enum vect_var_kind): Add vect_mask_var.
6100 (enum stmt_vec_info_type): Add comparison_vec_info_type.
6101 (vectorizable_comparison): New.
6102 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6103 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
6104 (vect_create_destination_var): Likewise.
6105 * tree-vect-patterns.c (check_bool_pattern): Check fails
6106 if we can vectorize comparison directly.
6107 (search_type_for_mask): New.
6108 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
6109 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
6110 comparison statements.
6111 (vect_get_constant_vectors): Support boolean vector constants.
6112 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
6113 (ix86_expand_int_vec_cmp): New.
6114 (ix86_expand_fp_vec_cmp): New.
6115 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
6116 op_true and op_false.
6117 (ix86_int_cmp_code_to_pcmp_immediate): New.
6118 (ix86_fp_cmp_code_to_pcmp_immediate): New.
6119 (ix86_cmp_code_to_pcmp_immediate): New.
6120 (ix86_expand_mask_vec_cmp): New.
6121 (ix86_expand_fp_vec_cmp): New.
6122 (ix86_expand_int_sse_cmp): New.
6123 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
6124 (ix86_expand_int_vec_cmp): New.
6125 (ix86_get_mask_mode): New.
6126 (TARGET_VECTORIZE_GET_MASK_MODE): New.
6127 * config/i386/sse.md (avx512fmaskmodelower): New.
6128 (vec_cmp<mode><avx512fmaskmodelower>): New.
6129 (vec_cmp<mode><sseintvecmodelower>): New.
6130 (vec_cmpv2div2di): New.
6131 (vec_cmpu<mode><avx512fmaskmodelower>): New.
6132 (vec_cmpu<mode><sseintvecmodelower>): New.
6133 (vec_cmpuv2div2di): New.
6135 2015-11-10 Richard Biener <rguenther@suse.de>
6137 PR tree-optimization/68240
6138 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
6140 (visit_phi): For PHIs with just a single executable edge
6141 take its value directly.
6142 (expressions_equal_p): Handle VN_TOP properly.
6144 2015-11-10 Richard Biener <rguenther@suse.de>
6146 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
6147 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
6150 2015-11-10 Richard Biener <rguenther@suse.de>
6152 PR tree-optimization/56118
6153 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
6154 cost favor vectorized version.
6156 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6158 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
6159 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
6160 (neg_not_op): New code attribute.
6162 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6164 * ifcvt.c (noce_try_inverse_constants): New function.
6165 (noce_process_if_block): Call it.
6166 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
6167 * optabs.def (negcc_optab, notcc_optab): Declare.
6168 * optabs.c (emit_conditional_neg_or_complement): New function.
6169 * doc/tm.texi (Standard Names): Document negcc, notcc names.
6171 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6173 PR rtl-optimization/68236
6174 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
6175 if insn_queue doesn't exist.
6176 (haifa_sched_finish): Reset insn_queue to NULL.
6178 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
6180 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
6181 (build_def_use): Initialize terminated_this_insn.
6182 (find_best_rename_reg): Pick and check register from the tied chain.
6183 (regrename_do_replace): Mark head as renamed.
6184 (struct du_head *terminated_this_insn). New static variable.
6185 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
6186 * regrename.h (struct du_head): Add tied_chain, renamed members.
6188 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6191 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
6194 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6197 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
6198 not promote the mode for aggregate types.
6200 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6202 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
6203 * omp-low.c (build_oacc_routine_dims): New.
6205 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6207 * config/rs6000/constraints.md (wF constraint): New constraints
6208 for power9/toc fusion.
6209 (wG constraint): Likewise.
6211 * config/rs6000/predicates.md (u6bit_cint_operand): New
6212 predicate, recognize 0..63.
6213 (upper16_cint_operand): New predicate for power9 and toc fusion.
6214 (fpr_reg_operand): Likewise.
6215 (toc_fusion_or_p9_reg_operand): Likewise.
6216 (toc_fusion_mem_raw): Likewise.
6217 (toc_fusion_mem_wrapped): Likewise.
6218 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
6220 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
6222 (fusion_addis_mem_combo_load): Add support for power9 fusion of
6223 floating point loads, floating point stores, and gpr stores.
6224 (fusion_addis_mem_combo_store): Likewise.
6225 (fusion_offsettable_mem_operand): Likewise.
6227 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
6228 (emit_fusion_load_store): Likewise.
6229 (fusion_p9_p): Likewise.
6230 (expand_fusion_p9_load): Likewise.
6231 (expand_fusion_p9_store): Likewise.
6232 (emit_fusion_p9_load): Likewise.
6233 (emit_fusion_p9_store): Likewise.
6234 (fusion_wrap_memory_address): Likewise.
6236 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
6237 elements for power9 fusion.
6238 (rs6000_debug_print_mode): Rework debug information to print more
6239 information about fusion.
6240 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
6241 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
6242 offsettable memory address.
6243 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
6244 (emit_fusion_gpr_load): Move most of the code from
6245 emit_fusion_gpr_load into emit_fusion-addis that handles both
6246 power8 and power9 fusion.
6247 (emit_fusion_addis): Likewise.
6248 (emit_fusion_load_store): Likewise.
6249 (fusion_wrap_memory_address): Add support for TOC fusion.
6250 (fusion_split_address): Likewise.
6251 (fusion_p9_p): Add support for power9 fusion.
6252 (expand_fusion_p9_load): Likewise.
6253 (expand_fusion_p9_store): Likewise.
6254 (emit_fusion_p9_load): Likewise.
6255 (emit_fusion_p9_store): Likewise.
6257 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
6258 new instructions in ISA 3.0.
6259 (TARGET_CTZ): Likewise.
6260 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
6261 (TARGET_TOC_FUSION_FP): Likewise.
6263 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
6265 (UNSPEC_FUSION_ADDIS): Likewise.
6266 (QHSI mode iterator): New iterator for power9 fusion.
6267 (GPR_FUSION): Likewise.
6268 (FPR_FUSION): Likewise.
6269 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
6270 (umod<mode>3): Likewise.
6271 (divmod peephole): Likewise.
6272 (udivmod peephole): Likewise.
6273 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
6275 (ctz<mode>2_h): Likewise.
6276 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
6277 (ashdi3_extswsli_dot): Likewise.
6278 (ashdi3_extswsli_dot2): Likewise.
6279 (power9 fusion splitter): New power9/toc fusion support.
6280 (toc_fusionload_<mode>): Likewise.
6281 (toc_fusionload_di): Likewise.
6282 (fusion_gpr_load_<mode>): Update predicate function.
6283 (power9 fusion peephole2s): New power9/toc fusion support.
6284 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6285 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
6286 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
6287 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
6288 (fusion_p9_<mode>_constant): Likewise.
6290 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
6292 * optabs.c (prepare_libcall_arg): New function.
6293 (expand_fixed_convert): Add call to prepare_libcall_arg.
6295 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
6297 * sched-int.h (dump_rgn_dependencies_dot): Declare
6298 * sched-rgn.c (dump_rgn_dependencies_dot): New function
6299 * print-rtl.h (print_insn): Add prototype
6301 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
6302 * common.opt (-fsched-verbose): Set default value to 1.
6303 * invoke.texi (-fsched-verbose): Update the option's description.
6305 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6307 * config/visium/visium.h (PRINT_OPERAND): Delete.
6308 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6309 (PRINT_OPERAND_ADDRESS): Likewise.
6310 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
6312 (visium_print_operand_punct_valid_p): ...this. New function.
6313 (TARGET_PRINT_OPERAND): Define to...
6314 (print_operand): Rename to...
6315 (visium_print_operand): ...this.
6316 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6317 (visium_output_address): Rename to...
6318 (visium_print_operand_address): ...this.
6319 (print_operand_address): Delete.
6321 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6324 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6325 Check that the type of the first operand is an aggregate type.
6327 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6329 * omp-low.c: Fix some OpenACC comment typos.
6330 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6331 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6332 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6334 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
6336 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6338 2015-11-09 Jeff Law <law@redhat.com>
6340 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6341 being in gimple/ssa form. Remove redundant check for SSA_NAME.
6344 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6345 Peter Bergner <bergner@vnet.ibm.com>
6347 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6349 (-mpower9-vector): Likewise.
6350 (-mpower9-dform): Likewise.
6351 (-mpower9-minmax): Likewise.
6352 (-mtoc-fusion): Likewise.
6353 (-mmodulo): Likewise.
6354 (-mfloat128-hardware): Likewise.
6356 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6357 mask for ISA 3.0 (power9).
6358 (POWERPC_MASKS): Add new ISA 3.0 switches.
6359 (power9 cpu): Add power9 cpu.
6361 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6362 (ASM_CPU_SPEC): Likewise.
6363 (EXTRA_SPECS): Likewise.
6365 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6368 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6369 (rs6000_debug_reg_global): Add support for power9 fusion.
6370 (rs6000_setup_reg_addr_masks): Cache mode size.
6371 (rs6000_option_override_internal): Until real power9 tuning is
6372 added, use -mtune=power8 for -mcpu=power9.
6373 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6374 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6375 of Altivec registers.
6376 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6377 (rs6000_loop_align): Add support for power9 cpu.
6378 (rs6000_file_start): Likewise.
6379 (rs6000_adjust_cost): Likewise.
6380 (rs6000_issue_rate): Likewise.
6381 (insn_must_be_first_in_group): Likewise.
6382 (insn_must_be_last_in_group): Likewise.
6383 (force_new_group): Likewise.
6384 (rs6000_register_move_cost): Likewise.
6385 (rs6000_opt_masks): Likewise.
6387 * config/rs6000/rs6000.md (cpu attribute): Add power9.
6388 * config/rs6000/rs6000-tables.opt: Regenerate.
6390 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6391 _ARCH_PWR9 if power9 support is available.
6393 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6394 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6396 * configure.ac: Determine if the assembler supports the ISA 3.0
6398 * config.in (HAVE_AS_POWER9): Likewise.
6399 * configure: Regenerate.
6401 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6404 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6406 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6407 Remove integer CONST_DOUBLE handling. It should never occur.
6409 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6412 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6413 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6414 Delete VOIDmode case. Assert that mode is not VOIDmode.
6415 * config/aarch64/predicates.md (const0_operand): Remove const_double
6418 2015-11-09 Martin Liska <mliska@suse.cz>
6420 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6421 body_info release function.
6422 * ipa-prop.c (ipa_release_body_info): New function.
6423 (ipa_analyze_node): Call the function.
6424 (ipa_node_params::~ipa_node_params): Release known_csts.
6425 * ipa-prop.h (ipa_release_body_info): Declare.
6427 2015-11-09 Martin Liska <mliska@suse.cz>
6429 * gcc.c (record_temp_file): Release name string.
6430 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6431 * lra-lives.c (free_live_range_list): Utilize
6432 lra_live_range_pool for allocation and deallocation.
6433 (create_live_range): Likewise.
6434 (copy_live_range): Likewise.
6435 (lra_merge_live_ranges): Likewise.
6436 (remove_some_program_points_and_update_live_ranges): Likewise.
6437 (lra_create_live_ranges_1): Release point_freq_vec that can
6438 be not freed from previous iteration of the function.
6439 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6440 * tree-sra.c (sra_deinitialize): Release all vectors in
6442 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6443 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6444 Release edge_info for a removed edge.
6445 (thread_through_all_blocks): Free region vector.
6446 * tree-ssa.h (free_dom_edge_info): Declare function extern.
6448 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
6450 * optabs.c (expand_vec_cond_expr): Always get sign from type.
6451 * tree.c (wide_int_to_tree): Support negative values for boolean.
6452 (build_nonstandard_boolean_type): Use signed type for booleans.
6454 2015-11-09 Richard Biener <rguenther@suse.de>
6456 PR tree-optimization/68248
6457 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6459 2015-11-09 Richard Biener <rguenther@suse.de>
6461 PR tree-optimization/56118
6462 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6463 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6464 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6466 (vect_slp_analyze_data_ref_dependences): Instead of computing
6467 all dependences of the region DRs just analyze the code motions
6468 SLP vectorization will perform. Remove SLP instances that
6469 cannot have their store/load motions applied.
6470 (vect_analyze_data_refs): Allow DRs without a vectype
6471 in BB vectorization.
6473 2015-11-09 Julian Brown <julian@codesourcery.com>
6475 * final.c (output_asm_insn): Pass VOIDmode to output_address.
6476 (output_address): Add MODE argument. Pass to print_operand_address
6478 * targhooks.c (default_print_operand_address): Add MODE argument.
6479 * targhooks.h (default_print_operand_address): Update prototype.
6480 * output.h (output_address): Update prototype.
6481 * target.def (print_operand_address): Add MODE argument.
6482 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6484 (print_operand): Pass access mode to output_address.
6485 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6487 (mcore_print_operand): Update calls to mcore_print_operand_address.
6488 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6490 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6492 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6494 (tilegx_print_operand): Don't set above global. Update calls to
6496 (tilegx_print_operand_address): Add MODE argument. Use instead of
6497 output_memory_reference_mode global.
6498 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6499 (frv_print_operand): Pass mode to frv_print_operand_address calls.
6500 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6502 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6503 (cris_print_operand): Pass mode to output_address calls.
6504 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6505 * config/aarch64/aarch64.h (aarch64_print_operand)
6506 (aarch64_print_operand_address): Remove prototypes.
6507 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6509 (aarch64_print_operand): Make static. Update calls to output_address.
6510 (aarch64_print_operand_address): Add MODE argument. Use instead of
6511 aarch64_memory_reference_mode global.
6512 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6514 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6515 Delete macro definitions.
6516 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6517 * config/xtensa/xtensa.c (print_operand): Pass mode in
6518 output_address calls.
6519 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6521 (h83000_print_operand): Update calls to h8300_print_operand_address
6523 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6524 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6526 (tilepro_print_operand): Pass mode to output_address.
6527 (tilepro_print_operand_address): Add MODE argument. Use instead of
6528 output_memory_reference_mode.
6529 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6530 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6531 to output_address calls.
6532 (nvptx_print_operand_address): Add MODE argument.
6533 * config/alpha/alpha.c (print_operand): Pass mode argument in
6534 output_address calls.
6535 * config/m68k/m68k.c (print_operand): Pass mode argument in
6536 output_address call.
6537 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6538 (avr_print_operand): Update calls to avr_print_operand_address.
6539 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6540 argument. Update calls to output_address.
6541 (sparc_print_operand): Pass mode to output_address.
6542 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6544 (iq2000_print_operand): Pass mode in output_address calls.
6545 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6547 (xstormy16_print_operand): Pass mode to
6548 xstormy16_print_operand_address calls.
6549 * config/mips/mips.c (mips_print_operand): Update calls to
6551 (mips_print_operand_address): Add MODE argument.
6552 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6554 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6555 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6557 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6558 (rx_print_operand): Update calls to output_address,
6559 rx_print_operand_address.
6560 * config/nds32/nds32.c (nds32_print_operand): Update calls to
6562 (nds32_print_operand_address): Add MODE argument.
6563 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6564 output_address calls.
6565 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6566 output_address call.
6567 (c6x_print_address_operand): Update calls to output_address.
6568 (c6x_print_operand_address): Pass mode to above.
6569 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6570 (v850_print_operand): Pass mode to v850_print_operand_address,
6572 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6573 (mmix_print_operand): Pass mode in output_address calls.
6574 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6575 (sh_print_operand): Pass mem mode to output_address,
6576 sh_print_operand_address.
6577 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6578 (cr16_print_operand): Pass mode to output_address,
6579 cr16_print_operand_address.
6580 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6582 * config/microblaze/microblaze.c (print_operand): Pass mode to
6584 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6586 (nios2_print_operand_address): Add MODE argument. Update call to
6587 nios2_print_operand_address.
6588 * config/s390/s390.c (print_operand): Pass mode to output_address.
6589 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6590 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6592 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6593 Use instead of output_memory_reference_mode.
6594 (output_memory_reference_mode): Delete global.
6595 (arm_print_operand): Pass mem mode to output_address.
6596 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6597 (m32r_print_operand): Pass mode to output_address.
6598 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6600 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6601 * config/i386/i386.c (ix86_print_operand): Pass mode to
6602 output_address calls.
6603 (ix86_print_operand_address): Add MODE argument.
6605 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6608 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6609 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6610 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6611 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6613 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6615 PR rtl-optimization/67749
6616 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
6617 case before emitting the two blocks. Instead modify the register
6618 in the corresponding final insn of the basic block.
6620 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6622 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
6625 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
6627 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
6628 HAVE_INITFINI_ARRAY_SUPPORT.
6629 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
6631 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
6632 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
6633 Don't check HAVE_AS_SPARC_NOBITS.
6634 Heed SECTION_NOTYPE.
6636 * configure: Regenerate.
6637 * config.in: Regenerate.
6639 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6642 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
6644 2015-11-09 Richard Henderson <rth@redhat.com>
6646 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
6647 __SEG_GS, __SEG_TLS.
6648 (ix86_register_pragmas): Register address spaces __seg_fs,
6649 __seg_gs, __seg_tls.
6650 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
6651 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
6652 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
6653 * config/i386/i386.c (ix86_decompose_address): Likewise.
6654 (ix86_legitimate_address_p): Likewise.
6655 (memory_address_length): Likewise. Check mem address space too.
6656 (ix86_print_operand): Use ix86_print_operand_address_as.
6657 (ix86_print_operand_address_as): Rename from
6658 ix86_print_operand_address, add new addr_space_t parameter.
6659 Validate that either the parameter or the ix86_address segment
6660 is default address space. Handle ADDR_SPACE_SEG_TLS.
6661 (ix86_print_operand_address): New.
6662 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
6663 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
6664 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
6665 (ix86_addr_space_zero_address_valid): New.
6666 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6667 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
6668 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
6669 * config/i386/predicates.md (address_no_seg_operand): Likewise.
6670 (vsib_address_operand): Likewise.
6671 (address_mpx_no_base_operand): Likewise.
6672 (address_mpx_no_index_operand): Likewise.
6673 * doc/extend.texi (x86 Named Address Spaces): New section.
6675 * config/i386/i386.c (ix86_check_no_addr_space): New.
6676 (decide_alg): Add have_as parameter.
6677 (alg_usable_p): Likewise; disable rep algorithms if set.
6678 (ix86_expand_set_or_movmem): Notice if either MEM has a
6679 non-default address space.
6680 (ix86_expand_strlen): Likewise.
6681 * config/i386/i386.md (strmov, strset): Likewise.
6682 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
6683 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
6684 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
6685 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
6686 *cmpstrnqi_1, *strlenqi_1): Likewise.
6688 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
6689 (*movabs<mode>_2): Likewise.
6691 * dwarf2out.c (modified_type_die): Pass the address space number
6692 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
6693 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
6694 * targhooks.c (default_addr_space_debug): New.
6695 * targhooks.h (default_addr_space_debug): Declare.
6696 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
6697 * doc/tm.texi: Rebuild.
6699 * gimple.c (check_loadstore): Return false when 0 is a valid address.
6700 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
6701 null when 0 is valid in the source address space.
6702 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6703 * targhooks.c (default_addr_space_zero_address_valid): New.
6704 * targhooks.h (default_addr_space_zero_address_valid): Declare.
6705 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
6706 * doc/tm.texi: Rebuild.
6708 * cselib.c (add_mem_for_addr): Compare address spaces when
6710 (cselib_lookup_mem): Likewise.
6711 * fold-const.c (operand_equal_p): Check address spaces of
6712 pointer types before checking integer constants.
6715 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
6716 the correct type for the base.
6718 2015-11-09 Jeff Law <law@redhat.com>
6720 * tree-into-ssa.c (names_to_release): No longer static.
6721 * tree-into-ssa.h (names_to_release): Declare.
6722 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
6723 (release_free_names_and_compact_live_names): New function extracted
6724 from pass_release_ssa_names::execute.
6725 (pass_release_ssa_names::execute): Use it.
6727 2015-11-09 Alan Modra <amodra@gmail.com>
6729 * gensupport.c (add_mnemonic_string): Make len param a size_t.
6730 (gen_mnemonic_setattr): Make "size" var a size_t. Use
6731 obstack_blank_fast to shrink obstack. Cast obstack_next_free
6734 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6736 PR rtl-optimization/68182
6737 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
6738 branch with only one successor just like unconditional branches.
6740 2015-11-08 Jeff Law <law@redhat.com>
6742 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
6743 non-FSM path has no edges marked with EDGE_DFS_BACK.
6744 (ssa_redirect_edges): No longer call mark_loop_for_removal.
6745 (thread_single_edge, def_split_header_continue_p): Remove.
6746 (bb_ends_with_multiway_branch): Likewise.
6747 (thread_through_loop_header): Remove cases of threading from
6748 latch through the header. Simplify knowing we won't thread
6750 (thread_through_all_blocks): Simplify knowing that only the FSM
6751 threader needs to handle backedges.
6753 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
6755 * doc/extend.texi (type attributes): Document scalar_storage_order.
6756 (Structure-Packing Pragmas): Rename into...
6757 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
6758 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
6759 (Warnings): Document -Wno-scalar-storage-order.
6760 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
6761 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
6762 extract_bit_field and store_bit_field.
6763 (initialize_argument_information): Adjust call to store_expr.
6764 (load_register_parameters): Adjust call to extract_bit_field.
6765 * expmed.c (check_reverse_storage_order_support): New function.
6766 (check_reverse_float_storage_order_support): Likewise.
6767 (flip_storage_order): Likewise.
6768 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
6769 of the value if it is true. Pass REVERSE to recursive call after
6770 adjusting the target offset.
6771 Do not use extraction or movstrict instruction if REVERSE is true.
6772 Pass REVERSE to store_fixed_bit_field.
6773 (store_bit_field): Add REVERSE parameter and pass to it to above.
6774 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
6775 store_split_bit_field and store_fixed_bit_field_1.
6776 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
6777 order of the value if it is true and adjust the target offset.
6778 (store_split_bit_field): Add REVERSE parameter and pass it to
6779 store_fixed_bit_field. Adjust the target offset if it is true.
6780 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
6781 of the value if it is true. Pass REVERSE to recursive call after
6782 adjusting the target offset.
6783 Do not use extraction or subreg instruction if REVERSE is true.
6784 Pass REVERSE to extract_fixed_bit_field.
6785 (extract_bit_field): Add REVERSE parameter and pass to it to above.
6786 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
6787 extract_split_bit_field and extract_fixed_bit_field_1.
6788 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
6789 order of the value if it is true and adjust the target offset.
6790 (extract_split_bit_field): Add REVERSE parameter and pass it to
6791 extract_fixed_bit_field. Adjust the target offset if it is true.
6792 * expmed.h (flip_storage_order): Declare.
6793 (store_bit_field): Adjust prototype.
6794 (extract_bit_field): Likewise.
6795 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
6796 (emit_group_store): Adjust call to store_bit_field.
6797 (copy_blkmode_from_reg): Likewise.
6798 (copy_blkmode_to_reg): Likewise.
6799 (write_complex_part): Likewise.
6800 (read_complex_part): Likewise.
6801 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
6802 that it isn't true if the target is a register.
6803 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
6804 and flip the storage order of the value.
6805 <BIT_IOR_EXPR>: Flip the storage order of the value.
6806 (get_bit_range): Adjust call to get_inner_reference.
6807 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
6808 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
6809 with reverse storage order.
6810 (store_expr_with_bounds): Add REVERSE parameter and pass it to
6811 recursive calls and call to store_bit_field. Force the value into a
6812 register if it is true and then flip the storage order of the value.
6813 (store_expr): Add REVERSE parameter and pass it to above.
6814 (categorize_ctor_elements_1): Adjust call to
6815 initializer_constant_valid_p.
6816 (store_constructor_field): Add REVERSE parameter and pass it to
6817 recursive calls and call to store_field.
6818 (store_constructor): Add REVERSE parameter and pass it to calls to
6819 store_constructor_field and store_expr. Set it to true for an
6820 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
6821 (store_field): Add REVERSE parameter and pass it to recursive calls
6822 and calls to store_expr and store_bit_field. Temporarily flip the
6823 storage order of the value with record type and integral mode and
6824 adjust the shift if it is true.
6825 (get_inner_reference): Add PREVERSEP parameter and set it to true
6826 upon encoutering a reference with reverse storage order.
6827 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
6828 (expand_constructor): Adjust call to store_constructor.
6829 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
6830 of the union type to store_expr in the MEM case and assert that it
6831 isn't set in the REG case. Adjust call to store_field.
6832 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
6833 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
6834 get_inner_reference and extract_bit_field. Temporarily flip the
6835 storage order of the value with record type and integral mode and
6836 adjust the shift if it is true. Flip the storage order of the value
6837 at the end if it is true.
6838 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
6839 get_inner_reference. Do not fetch an inner reference if it is true.
6840 * expr.h (store_expr_with_bounds): Ajust prototype.
6841 (store_expr): Likewise.
6842 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
6843 REF_REVERSE_STORAGE_ORDER on the reference according to it.
6844 (optimize_bit_field_compare): Deal with reverse storage order.
6845 Adjust calls to get_inner_reference and make_bit_field_ref.
6846 (decode_field_reference): Add PREVERSEP parameter and adjust call to
6847 get_inner_reference.
6848 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
6849 to decode_field_reference and make_bit_field_ref.
6850 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
6851 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
6852 (fold_comparison): Adjust call to get_inner_reference.
6853 (split_address_to_core_and_offset): Adjust call to
6854 get_inner_reference.
6855 * gimple-expr.c (useless_type_conversion_p): Return false for array
6856 types with different TYPE_REVERSE_STORAGE_ORDER flag.
6857 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
6858 REF_REVERSE_STORAGE_ORDER flag.
6859 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
6860 * output.h (assemble_real): Adjust prototype.
6861 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
6862 * stor-layout.c (finish_record_layout): Propagate the
6863 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
6864 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
6865 (TYPE_SATURATING): Adjust.
6866 (REF_REVERSE_STORAGE_ORDER): Document.
6867 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
6868 set it to true upon encoutering a reference with reverse storage order.
6869 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
6870 * tree-inline.c (remap_gimple_op_r): Propagate the
6871 REF_REVERSE_STORAGE_ORDER flag.
6872 (copy_tree_body_r): Likewise.
6873 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
6875 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
6876 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
6877 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6878 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
6879 REF_REVERSE_STORAGE_ORDER flag.
6880 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
6881 (gimple_canonical_types_compatible_p): Likewise.
6882 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
6883 (TYPE_SATURATING): Adjust.
6884 (REF_REVERSE_STORAGE_ORDER): New flag.
6885 (reverse_storage_order_for_component_p): New inline predicate.
6886 (storage_order_barrier_p): Likewise.
6887 (get_inner_reference): Adjust prototype.
6888 * varasm.c: Include expmed.h.
6889 (assemble_variable_contents): Adjust call to output_constant.
6890 (assemble_real): Add REVERSE parameter. Flip the storage
6891 order of the value if REVERSE is true.
6892 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
6893 (assemble_constant_contents): Adjust call to output_constant.
6894 (output_constant_pool_2): Adjust call to assemble_real.
6895 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
6896 TYPE_REVERSE_STORAGE_ORDER.
6897 (initializer_constant_valid_p): Add REVERSE parameter.
6898 (output_constant): Add REVERSE parameter.
6899 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
6900 <REAL_TYPE>: Adjust call to assemble_real.
6901 <COMPLEX_TYPE>: Pass it to recursive calls.
6902 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
6903 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
6904 (struct oc_local_state): Add REVERSE field.
6905 (output_constructor_array_range): Adjust calls to output_constant.
6906 (output_constructor_regular_field): Likewise.
6907 (output_constructor_bitfield): Adjust call to output_constructor.
6908 Flip the storage order of the value if REVERSE is true.
6909 (output_constructor): Add REVERSE parameter. Set it to true for an
6910 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
6911 output_constructor_bitfield.
6912 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6913 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6914 * builtins.c (get_object_alignment_2): Likewise.
6915 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6916 and get_ref_base_and_extent.
6917 * dbxout.c (dbxout_expand_expr): Likewise.
6918 * dwarf2out.c (add_var_loc_to_decl): Likewise.
6919 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6920 (loc_list_from_tree): Likewise.
6921 (fortran_common): Likewise.
6922 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6923 get_ref_base_and_extent.
6924 (get_base_constructor): Likewise.
6925 (fold_const_aggregate_ref_1): Likewise.
6926 * gimple-laddress.c (pass_laddress::execute): Adjust call to
6927 get_inner_reference.
6928 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6929 get_inner_reference and bail out on reverse storage order.
6930 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6931 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6932 build_ref_for_offset.
6933 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6934 get_ref_base_and_extent.
6935 (ipa_polymorphic_call_context): Likewise.
6936 (extr_type_from_vtbl_ptr_store): Likewise.
6937 (check_stmt_for_type_change): Likewise.
6938 (get_dynamic_type): Likewise.
6939 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6940 get_ref_base_and_extent.
6941 (compute_complex_assign_jump_func): Likewise.
6942 (get_ancestor_addr_info): Likewise.
6943 (compute_known_type_jump_func): Likewise.
6944 (determine_known_aggregate_parts): Likewise.
6945 (ipa_get_adjustment_candidate): Likewise.
6946 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6947 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6948 (build_ref_for_offset): Adjust prototype.
6949 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6950 get_inner_reference.
6951 * tree-affine.c (tree_to_aff_combination): Adjust call to
6952 get_inner_reference.
6953 (get_inner_reference_aff): Likewise.
6954 * tree-data-ref.c (split_constant_offset_1): Likewise.
6955 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
6956 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6957 get_inner_reference.
6958 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6959 (dump_access): Print new fields.
6960 (create_access): Adjust call to get_ref_base_and_extent and set the
6961 REVERSE flag according to the result.
6962 (completely_scalarize_record): Set the REVERSE flag.
6963 (scalarize_elem): Add REVERSE parameter.
6964 (build_access_from_expr_1): Preserve storage order barriers.
6965 (build_accesses_from_assign): Likewise.
6966 (build_ref_for_offset): Add REVERSE parameter and set the
6967 REF_REVERSE_STORAGE_ORDER flag accordingly.
6968 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6969 the REF_REVERSE_STORAGE_ORDER flag if there are components.
6970 (analyze_access_subtree): Likewise.
6971 (create_artificial_child_access): Set the REVERSE flag.
6972 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6973 (turn_representatives_into_adjustments): Propagate REVERSE flag.
6974 (ipa_sra_check_caller): Adjust call to get_inner_reference.
6975 * tree-ssa-alias.c (ao_ref_base): Adjust call to
6976 get_ref_base_and_extent.
6977 (aliasing_component_refs_p): Likewise.
6978 (stmt_kills_ref_p_1): Likewise.
6979 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6980 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6981 Return true if reverse storage order.
6982 <BIT_FIELD_REF>: Likewise.
6983 <COMPONENT_REF>: Likewise.
6984 <ARRAY_REF>: Likewise.
6985 <ARRAY_RANGE_REF>: Likewise.
6986 (split_address_cost): Likewise. Bail out if reverse storage order.
6987 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6988 get_inner_reference. Bail out if reverse storage order.
6989 (bswap_replace): Adjust call to get_inner_reference.
6990 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6991 the REF_REVERSE_STORAGE_ORDER flag.
6992 <BIT_FIELD_REF>: Likewise.
6993 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6995 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6996 to the REF_REVERSE_STORAGE_ORDER flag.
6997 <BIT_FIELD_REF>: Likewise.
6998 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6999 (contains_storage_order_barrier_p): New predicate.
7000 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7001 Punt on storage order barriers if necessary.
7002 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7003 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7004 call to get_ref_base_and_extent.
7005 (do_structure_copy): Likewise.
7006 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7007 get_inner_reference.
7008 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7009 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7010 * ubsan.c (instrument_bool_enum_load): Likewise.
7011 (instrument_object_size): Likewise.
7012 * var-tracking.c (track_expr_p): Adjust call to
7013 get_ref_base_and_extent.
7014 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7015 get_inner_reference.
7016 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7018 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7020 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7022 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7024 * config/sparc/sparc.opt (mfix-at697f): Add final period.
7026 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
7028 PR rtl-optimization/67864
7029 * common/config/i386/i386-common.c (ix86_option_optimization_table)
7030 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7033 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7035 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7038 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7040 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7041 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7043 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7045 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7046 * internal-fn.c: Don't undef it here.
7047 * tree-core.h: Likewise.
7049 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7051 * builtins.c (fold_builtin_nan): Delete.
7052 (fold_builtin_memcmp): Remove case where both arguments are constant.
7053 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7054 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7055 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7056 * fold-const-call.c: Include fold-const.h.
7057 (host_size_t_cst_p): New function.
7058 (build_cmp_result, fold_const_builtin_nan): Likewise.
7059 (fold_const_call_1): New function, split out from...
7060 (fold_const_call): ...here (for all three interfaces). Handle
7061 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7063 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7065 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7066 (fold_builtin_1): Don't call them.
7067 * fold-const-call.c: Include tm.h.
7068 (fold_const_call_ss): New variant for integer-to-integer folds.
7069 (fold_const_call): Call it.
7071 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7073 * builtins.c (fold_builtin_classify): Move constant cases to...
7074 * fold-const-call.c (fold_const_call_ss): ...here.
7076 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7078 * builtins.h (c_getstr): Move to...
7079 * fold-const.h (c_getstr): ...here.
7080 * builtins.c (c_getstr): Move to...
7081 * fold-const.c (c_getstr): ...here.
7083 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7085 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7086 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7088 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7090 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7091 the dominance info; free it if we can't.
7092 (pass_call_cdce::execute): Don't free the dominance info here.
7094 2015-11-06 Jeff Law <law@redhat.com>
7096 * tree-ssa-threadedge.c (dummy_simplify): Remove.
7097 (thread_around_empty_blocks): Remove backedge_seen_p argument.
7098 If we thread to a backedge, then return false. Update recursive
7099 call to eliminate backedge_seen_p argument.
7100 (thread_through_normal_block): Remove backedge_seen_p argument.
7101 Remove backedge_seen_p argument from calls to
7102 thread_around_empty_blocks. Remove checks on backedge_seen_p.
7103 If we thread to a backedge, then return 0.
7104 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
7105 pass it to thread_through_normal_block or thread_through_empty_blocks.
7106 For joiner handling, if we see a backedge, do not try normal
7109 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7111 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
7112 * graphite-poly.c (new_scop): Initialize original_schedule.
7113 (free_scop): Free original_schedule.
7114 * graphite-poly.h (struct scop): Add field original_schedule.
7115 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
7116 (build_poly_scop): Call build_scop_original_schedule.
7118 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7120 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7121 (build_pbb_minimal_scattering_polyhedrons): New.
7122 (build_scop_scattering): Remove.
7123 (build_scop_minimal_scattering): New.
7124 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
7125 (build_poly_scop): Call build_scop_minimal_scattering.
7127 2015-11-06 Jeff Law <law@redhat.com>
7129 * cfg-flags.def (IGNORE): New edge flag.
7130 * tree-vrp.c (identify_jump_threads): Mark and clear edges
7131 scheduled for removal with EDGE_IGNORE around call into
7132 jump threader. Do no thread across edges with EDGE_IGNORE,
7133 but do allow threading across those with EDGE_DFS_BACK.
7135 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
7137 * doc/md.texi (multi-alternative constraints): Don't document
7138 alternatives inherently tied to reload for the user documentation.
7140 2015-11-06 Michael Collison <michael.collison@linaro.org>
7141 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7144 2015-08-01 Michael Collison <michael.collison@linaro.org
7145 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7147 * config/arm/arm.md (*arm_smin_cmp): New pattern.
7148 (*arm_umin_cmp): Likewise.
7150 2015-11-06 Jakub Jelinek <jakub@redhat.com>
7152 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
7153 * omp-low.c (check_omp_nesting_restrictions): Update for the
7154 various new OpenMP 4.5 nesting restrictions, clarified
7155 nesting glossary, closely nested region relationship clarified
7156 to mean explicit or implicit parallel regions (target/teams),
7157 use %</%> or %qs where appropriate.
7159 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7160 Sebastian Pop <s.pop@samsung.com>
7162 * graphite-scop-detection.c (loop_is_valid_scop): Call
7163 optimize_loop_nest_for_speed_p.
7165 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7166 Sebastian Pop <s.pop@samsung.com>
7168 * graphite-optimize-isl.c (optimize_isl): Call
7169 isl_options_set_schedule_maximize_band_depth.
7171 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7172 Sebastian Pop <s.pop@samsung.com>
7174 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
7175 and exit edges should not be a part of irreducible loop.
7176 (scop_detection::can_represent_loop_1): Loops should not be
7178 (scop_detection::harmful_stmt_in_region): All the basic block
7179 should belong to reducible loops.
7181 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
7183 * config/aarch64/aarch64-simd-builtins.def: Update builtins
7184 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
7185 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
7186 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
7187 (aarch64_tbx4v8qi): Rename to...
7188 aarch64_tbx4<mode>): ... this.
7189 (aarch64_qtbl3<mode>): New pattern.
7190 (aarch64_qtbx3<mode>): New pattern.
7191 (aarch64_qtbl4<mode>): New pattern.
7192 (aarch64_qtbx4<mode>): New pattern.
7193 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
7194 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
7195 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
7196 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
7197 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
7198 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
7199 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
7200 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
7203 2015-11-06 Mike Stump <mikestump@comcast.net>
7206 * dwarf2out.c (get_full_len): Return a value based upon the actual
7207 precision needed for the value.
7208 (add_const_value_attribute): Use a maximal wide-int for
7209 CONST_WIDE_INTs, not VOIDmode.
7210 (output_die): Don't ever output NULL with printf.
7212 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
7213 BLKmode nor VOIDmode values.
7215 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7217 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
7219 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
7220 * diagnostic-core.h (warning_at_rich_loc): New declaration.
7221 (error_at_rich_loc): New declaration.
7222 (permerror_at_rich_loc): New declaration.
7223 (inform_at_rich_loc): New declaration.
7224 * diagnostic-show-locus.c (adjust_line): Delete.
7225 (struct point_state): New struct.
7226 (class colorizer): New class.
7227 (class layout_point): New class.
7228 (class layout_range): New class.
7229 (struct line_bounds): New.
7230 (class layout): New class.
7231 (colorizer::colorizer): New ctor.
7232 (colorizer::~colorizer): New dtor.
7233 (layout::layout): New ctor.
7234 (layout::print_source_line): New method.
7235 (layout::print_annotation_line): New method.
7236 (layout::get_state_at_point): New method.
7237 (layout::get_x_bound_for_row): New method.
7238 (diagnostic_show_locus): Reimplement in terms of class layout.
7239 (diagnostic_print_caret_line): Delete.
7240 * diagnostic.c (diagnostic_initialize): Replace
7241 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
7242 (diagnostic_set_info_translated): Convert param from location_t
7243 to rich_location *. Eliminate calls to set_location on the
7244 message in favor of storing the rich_location ptr there.
7245 (diagnostic_set_info): Convert param from location_t to
7247 (diagnostic_build_prefix): Break out array into...
7248 (diagnostic_kind_color): New variable.
7249 (diagnostic_get_color_for_kind): New function.
7250 (diagnostic_report_diagnostic): Colorize the option_text
7251 using the color for the severity.
7252 (diagnostic_append_note): Update for change in signature of
7253 diagnostic_set_info.
7254 (diagnostic_append_note_at_rich_loc): New function.
7255 (emit_diagnostic): Update for change in signature of
7256 diagnostic_set_info.
7258 (inform_at_rich_loc): New function.
7259 (inform_n): Update for change in signature of diagnostic_set_info.
7260 (warning): Likewise.
7261 (warning_at): Likewise.
7262 (warning_at_rich_loc): New function.
7263 (warning_n): Update for change in signature of diagnostic_set_info.
7264 (pedwarn): Likewise.
7265 (permerror): Likewise.
7266 (permerror_at_rich_loc): New function.
7267 (error): Update for change in signature of diagnostic_set_info.
7268 (error_n): Likewise.
7269 (error_at): Likewise.
7270 (error_at_rich_loc): New function.
7271 (sorry): Update for change in signature of diagnostic_set_info.
7272 (fatal_error): Likewise.
7273 (internal_error): Likewise.
7274 (internal_error_no_backtrace): Likewise.
7275 (source_range::debug): New function.
7276 * diagnostic.h (struct diagnostic_info): Eliminate field
7277 "override_column". Add field "richloc".
7278 (struct diagnostic_context): Add field "colorize_source_p".
7279 (diagnostic_override_column): Delete.
7280 (diagnostic_set_info): Convert param from location_t to
7282 (diagnostic_set_info_translated): Likewise.
7283 (diagnostic_append_note_at_rich_loc): New function.
7284 (diagnostic_num_locations): New function.
7285 (diagnostic_expand_location): Get the location from the
7287 (diagnostic_print_caret_line): Delete.
7288 (diagnostic_get_color_for_kind): New declaration.
7289 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
7290 (error_cb): Update for change in signature of "error" callback.
7291 (fatal_at): Likewise.
7292 (warning_at): Likewise.
7293 * input.c (linemap_client_expand_location_to_spelling_point): New.
7294 * pretty-print.c (text_info::set_range): New method.
7295 (text_info::get_location): New method.
7296 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
7297 (struct text_info): Eliminate "locations" array in favor of
7298 "m_richloc", a rich_location *.
7299 (textinfo::set_location): Add a "caret_p" param, and reimplement
7300 in terms of a call to set_range.
7301 (textinfo::get_location): Eliminate inline implementation in favor of
7302 an out-of-line reimplementation.
7303 (textinfo::set_range): New method.
7304 * rtl-error.c (diagnostic_for_asm): Update for change in signature
7305 of diagnostic_set_info.
7306 * tree-diagnostic.c (default_tree_printer): Update for new
7307 "caret_p" param for textinfo::set_location.
7308 * tree-pretty-print.c (percent_K_format): Likewise.
7310 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7313 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7314 * config/aarch64/aarch64.c
7315 (aarch64_can_use_per_function_literal_pools_p): New.
7316 (aarch64_use_blocks_for_constant_p): Adjust declaration
7317 and use aarch64_can_use_function_literal_pools_p.
7318 (aarch64_select_rtx_section): Update.
7320 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7322 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7323 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7324 (arm_output_multireg_pop): Likewise.
7325 (output_move_double): Likewise.
7326 (output_move_quad): Likewise.
7327 (output_return_instruction): Likewise.
7328 (arm_print_operand): Remove support for %( and %. print modifiers.
7329 (arm_output_shift): Make unified asm.
7330 (arm_declare_function_name): Likewise.
7331 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7332 (ASM_APP_OFF): Adjust.
7333 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7334 (ASM_OUTPUT_REG_POP): Likewise.
7335 * config/arm/arm.md: Adjust uses of %., %(, %)
7336 * config/arm/sync.md: Likewise.
7337 * config/arm/thumb2.md: Likewise.
7338 * config/arm/ldmstm.md: Regenerate.
7339 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7340 * doc/invoke.texi (masm-unified-syntax): Update documentation.
7342 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7344 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7346 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7348 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7349 add OEP_MATCH_SIDE_EFFECTS.
7350 * fold-const.c (operand_equal_p): Update documentation; handle
7351 OEP_MATCH_SIDE_EFFECTS.
7352 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7353 OEP_MATCH_SIDE_EFFECTS.
7355 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
7356 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7358 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7359 * config/aarch64/aarch64-protos.h: Declare.
7360 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7362 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7363 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7364 code when applicable.
7365 * config/aarch64/aarch64.md: Added enum entries.
7366 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7368 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7372 * ipa-polymorphic-call.c
7373 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7374 issue when offset is out of range.
7375 (contains_type_p): Fix out of range check, clear dynamic flag.
7377 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
7379 * config.gcc (e6500): Fix cpu_is_64bit typo.
7381 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
7383 * tree-sra.c (completely_scalarize): Properly handle negative array
7384 indices using offset_int.
7386 2015-11-06 Richard Biener <rguenther@suse.de>
7388 * alloc-pool.h (object_allocator::allocate): Default-initialize
7391 2015-11-06 Richard Biener <rguenther@suse.de>
7393 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7394 * lra.c (init_reg_info): Truncate copy_vec instead of
7395 re-allocating a new one and leaking the old.
7396 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7398 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7399 * postreload-gcse.c (free_mem): Free modify_mem_list and
7400 canon_modify_mem_list.
7402 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
7404 PR tree-optimization/68145
7405 * tree-vect-stmts.c (vectorizable_operation): Fix
7406 determination for booleans.
7408 2015-11-06 Tom de Vries <tom@codesourcery.com>
7410 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7411 cond_jump, instead of split after last nondebug insn before cond_jump.
7412 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7415 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7418 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7419 subregs from accumulator and make sure it's a register.
7421 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
7423 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7425 (reduc_uplus_<mode>): Remove.
7426 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7427 loongson_extract_lo_<mode>.
7428 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7429 reduc_smax_<mode>, reduc_smax_<mode>, use vec
7430 loongson_extract_lo_<mode>.
7431 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7433 2015-11-06 Richard Biener <rguenther@suse.de>
7435 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7437 (vect_stmt_in_region_p): Declare.
7438 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7439 (destroy_bb_vec_info): Likewise.
7440 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7441 (vect_get_and_check_slp_defs): Likewise.
7442 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7443 (vect_slp_bb): Likewise.
7444 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7445 in terms of vect_stmt_in_region_p.
7446 (vect_pattern_recog): Iterate over the BB region.
7447 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7448 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7449 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7450 * config/i386/i386.c: Include gimple-iterator.h.
7451 * config/aarch64/aarch64.c: Likewise.
7453 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
7455 PR rtl-optimization/67753
7456 PR rtl-optimization/64164
7457 * function.c (assign_parm_setup_block): Avoid allocating a
7458 stack slot if we don't have an ABI-reserved one. Emit the
7459 copy to target_reg in the conversion seq if the copy from
7460 entry_parm is in it too. Don't use the conversion seq to copy
7461 a PARALLEL to a REG or a CONCAT.
7463 2015-11-06 Richard Biener <rguenther@suse.de>
7465 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7468 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7469 Thomas Schwinge <thomas@codesourcery.com>
7470 James Norris <jnorris@codesourcery.com>
7473 * gimplify.c (gimplify_scan_omp_clauses): Add support for
7474 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
7475 (gimplify_adjust_omp_clauses): Likewise.
7476 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7477 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7478 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7479 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7480 (omp_clause_code_name): Likewise.
7481 (walk_tree_1): Handle OMP_CLAUSE_TILE.
7482 * tree.h (OMP_TILE_LIST): New macro.
7484 2015-11-05 Martin Sebor <msebor@redhat.com>
7487 * doc/invoke.texi (-Wplacement-new): Document new option.
7489 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
7491 PR tree-optimization/65963
7492 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7493 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7495 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
7497 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7498 (noce_convert_multiple_sets): Likewise.
7499 (noce_process_if_block): Call them.
7501 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7503 * gimple-fold.c: Include omp-low.h.
7504 (fold_internal_goacc_dim): New.
7505 (gimple_fold_call): Call it.
7507 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7508 Ilya Verbin <ilya.verbin@intel.com>
7511 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7512 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7513 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7514 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7515 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7516 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7517 (struct cgraph_simd_clone_arg): Adjust comment.
7518 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7519 to GOMP_target_ext. Add num_teams and thread_limit arguments.
7520 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7521 to GOMP_target_data_ext.
7522 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7523 to GOMP_target_update_ext.
7524 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7525 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7526 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7527 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7528 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7529 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7530 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7531 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7532 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7533 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7534 * tree-core.h (enum omp_clause_schedule_kind): Add
7535 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7536 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7537 OMP_CLAUSE_SCHEDULE_LAST value.
7538 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7539 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7540 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7541 OMP_FOR_CHECK. Remove comment.
7542 * tree-pretty-print.c (dump_omp_clause): Handle
7543 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7544 Simplify. Print schedule clause modifiers.
7545 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7546 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7548 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7549 (omp_default_clause): Tweak for
7550 private/firstprivate/is_device_ptr variables on target
7551 construct and use_device_ptr on target data.
7552 (omp_check_private): Likewise.
7553 (omp_notice_variable): For references check whether what it refers
7554 to has mappable type, rather than the reference itself.
7555 (omp_is_private): Diagnose linear iteration variables on non-simd
7557 (omp_no_lastprivate): Return true only for Fortran.
7558 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7559 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7560 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7561 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7562 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
7563 lastprivate and linear when combined with distribute. Gimplify
7564 variable low-bound for array reduction. Look through
7565 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7567 (gimplify_adjust_omp_clauses_1): For implicit references to
7568 variables with reference type and when not ref to scalar or
7569 ref to pointer, map what they refer to using tofrom and
7570 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7571 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7572 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7573 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
7574 Diagnose the same var on both firstprivate and lastprivate on
7575 distribute construct.
7576 (gimplify_omp_for): Fix up handling of predetermined
7577 lastprivate or linear iter vars when combined with distribute.
7578 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7580 (gimplify_omp_workshare): Call optimize_target_teams.
7581 * omp-low.c (struct omp_region): Add sched_modifiers field.
7582 (struct omp_for_data): Likewise.
7583 (omp_any_child_fn_dumped): New variable.
7584 (extract_omp_for_data): Fill in sched_modifiers, and mask out
7585 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7587 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7588 bits of OMP_CLAUSE_SCHED_KIND.
7589 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7590 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
7591 for array section reductions.
7592 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7593 for distribute parallel for, if there are lastprivate clauses on the
7595 (lower_rec_input_clauses): Handle non-zero low-bound on array
7597 (lower_reduction_clauses): Likewise.
7598 (lower_send_clauses): Look through POINTER_PLUS_EXPR
7599 for array section reductions.
7600 (expand_parallel_call): Use nonmonotonic entrypoints for
7601 nonmonotonic: dynamic/guided.
7602 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7603 child_fn if current_function_decl has assembler name set, but child_fn
7604 does not. Dump the header and IL of the child function when not in SSA
7606 (expand_omp_target): Likewise. Pass num_teams and thread_limit
7607 arguments to BUILT_IN_GOMP_TARGET.
7608 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7609 Initialize the extra _looptemp_ clause to fd->loop.n2.
7610 (expand_omp_for): Use nonmonotonic entrypoints for
7611 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
7612 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
7613 again if we have dumped any child functions.
7614 (lower_omp_for_lastprivate): Determine the right count variable
7615 for distribute simd, or distribute parallel for{, simd}.
7616 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
7617 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
7619 (simd_clone_clauses_extract): Handle variable step
7620 for references and arguments passed by reference.
7621 (simd_clone_mangle): Mangle ref/uval/val variable steps.
7622 (simd_clone_adjust_argument_types): Handle
7623 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
7624 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7625 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
7626 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7627 (simd_clone_linear_addend): New function.
7628 (simd_clone_adjust): Handle variable step like similarly
7629 to constant step, use simd_clone_linear_addend to determine
7630 the actual step at runtime.
7632 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7634 * target.def (goacc.dim_limit): New hook.
7635 * targhooks.h (default_goacc_dim_limit): Declare.
7636 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
7637 * doc/tm.texi: Rebuilt.
7638 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
7639 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
7640 (default_goacc_dim_limit): New.
7641 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7642 (nvptx_goacc_dim_limit) New.
7643 (TARGET_GOACC_DIM_LIMIT): Override.
7644 * tree-vrp.c: Include omp-low.h, target.h.
7645 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
7648 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7650 * tree-vect-generic.c (do_compare): Use -1 for true
7651 result instead of 1.
7653 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7655 * config/aarch64/aarch64.c
7656 (aarch64_can_use_per_function_literal_pools_p): New.
7657 (aarch64_use_blocks_for_constant_p): Adjust declaration
7658 and use aarch64_can_use_function_literal_pools_p.
7659 (aarch64_select_rtx_section): Update.
7661 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7663 * targhooks.c (default_get_mask_mode): Use BLKmode in
7664 case target doesn't support required vector mode.
7665 * stor-layout.c (layout_type); Check for BLKmode.
7667 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
7668 Sebastian Pop <s.pop@samsung.com>
7670 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7671 Remove use of parameter_rename_map.
7673 (copy_internal_parameters): Remove.
7674 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7675 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7676 (free_sese_info): Do not free parameter_rename_map.
7677 (set_rename): Do not use parameter_rename_map.
7678 (rename_uses): Update call to set_rename.
7679 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7680 * sese.h (parameter_rename_map_t): Remove.
7681 (struct sese_info_t): Remove field parameter_rename_map.
7683 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
7684 Sebastian Pop <s.pop@samsung.com>
7686 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
7687 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
7688 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
7689 anonymous namespace.
7690 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
7691 (isl_id_for_pbb): Use a buffer of size 10.
7692 (isl_id_for_ssa_name): Same.
7693 * sese.c (set_rename): Add more dumps.
7695 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7697 * omp-low.c (struct omp_context): Remove reduction_map field.
7698 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
7699 (new_omp_context, delete_omp_context, scan_omp_target): Remove
7700 reduction_map handling.
7701 (lower_omp_target): Remove obsolete openacc reduction handling.
7703 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7705 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
7707 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7708 Cesar Philippidis <cesar@codesourcery.com>
7710 * config/nvptx/nvptx.c: Include gimple headers.
7711 (worker_red_size, worker_red_align, worker_red_name,
7712 worker_red_sym): New.
7713 (nvptx_option_override): Initialize worker reduction buffer.
7714 (nvptx_file_end): Write out worker reduction buffer var.
7715 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
7716 nvptx_expand_cmp_swap): New builtin expanders.
7717 (enum nvptx_builtins): New.
7718 (nvptx_builtin_decls): New.
7719 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
7720 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7721 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
7722 nvptx_lockless_update): New helpers.
7723 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
7724 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
7725 (nvptx_goacc_reduction): New.
7726 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
7727 TARGET_BUILTIN_DECL): Override.
7728 (TARGET_GOACC_REDUCTION): Override.
7730 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7731 Cesar Philippidis <cesar@codesourcery.com>
7733 * internal-fn.def (GOACC_REDUCTION): New.
7734 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
7735 * internal-fn.c (expand_GOACC_REDUCTION): New.
7736 * target.def (goacc.reduction): New OpenACC hook.
7737 * targhooks.h (default_goacc_reduction): Declare.
7738 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
7739 * doc/tm.texi: Rebuilt.
7740 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
7741 scan_sharing_clauses): Remove oacc reduction handling here.
7742 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
7743 (oacc_lower_reduction_var_helper): Delete.
7744 (lower_oacc_reductions): New.
7745 (lower_reduction_clauses): Don't handle OpenACC reductions here.
7746 (lower_oacc_head_tail): Call lower_oacc_reductions.
7747 (oacc_gimple_assign, oacc_init_reduction_array,
7748 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
7749 oacc_process_reduction_data): Delete.
7750 (lower_omp_target): Remove old OpenACC reduction handling. Insert
7751 dummy OpenACC gang reduction for reductions at outer level.
7752 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
7753 (default_goacc_reduction): New.
7754 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
7756 2015-11-04 Martin Liska <mliska@suse.cz>
7758 * cgraphunit.c (cgraph_node::expand_thunk): Call
7759 allocate_struct_function before init_function_start.
7760 (cgraph_node::expand): Use push_cfun and pop_cfun.
7761 * config/i386/i386.c (ix86_code_end): Call
7762 allocate_struct_function before init_function_start.
7763 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
7764 * function.c (init_function_start): Move preamble to all
7766 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
7767 (execute_one_pass): Handle newly added TODO_discard_function.
7768 (execute_pass_list_1): Terminate if cfun equals to NULL.
7769 (execute_pass_list): Do not push and pop cfun, expect that
7771 * tree-pass.h (TODO_discard_function): Define.
7773 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
7775 * cfganal.c (inverted_post_order_compute): Remove conditional
7776 compilation, use flag_checking.
7777 * config.in: Regenerate.
7778 * configure: Regenerate.
7779 * configure.ac: Remove ENABLE_CHECKING.
7780 * genconditions.c: Do not #undef ENABLE_CHECKING.
7781 * sese.h (bb_in_region): Comment out broken check.
7782 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
7783 conditional compilation, use flag_checking.
7785 2015-11-04 Tom de Vries <tom@codesourcery.com>
7787 PR tree-optimization/67742
7788 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
7790 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
7791 (create_variable_info_for_1): Add and handle handle_param parameter.
7792 Add restrict handling.
7793 (create_variable_info_for): Call create_variable_info_for_1 with extra
7795 (make_param_constraints): Drop restrict_name parameter. Ignore
7796 vi->only_restrict_pointers.
7797 (intra_create_variable_infos): Call create_variable_info_for_1 with
7798 extra arg. Remove restrict handling. Call make_param_constraints with
7801 2015-11-04 Tom de Vries <tom@codesourcery.com>
7803 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
7806 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7808 * config/arm/coff.h: Remove.
7810 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
7812 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
7813 check for aggregate types and beef up comment for mode check.
7815 2015-11-03 Richard Biener <rguenther@suse.de>
7817 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
7818 data references here.
7819 * tree-vect-loop.c: Include cgraph.h.
7820 (vect_analyze_loop_2): Collect data references here.
7821 * tree-vect-slp.c (find_bb_location): Inline ...
7822 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
7823 Factor in vect_slp_transform_bb.
7824 (vect_slp_transform_bb): Removed.
7825 (vect_slp_analyze_bb_1): Collect data references here.
7826 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
7828 * tree-vectorizer.h (vect_slp_bb): Declare.
7829 (vect_slp_analyze_bb): Remove.
7830 (vect_slp_transform_bb): Remove.
7831 (find_bb_location): Remove.
7832 (vect_analyze_data_refs): Remove stmt count reference parameter.
7834 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
7836 * multiple_target.c (create_dispatcher_calls): Add target check
7838 (create_target_clone): Change assembler name for versioned declarations.
7840 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
7841 Chung-Lin Tang <cltang@codesourcery.com>
7843 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
7844 * omp-low.c (check_omp_nesting_restrictions): Allow
7845 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
7848 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
7850 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
7851 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
7852 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
7854 (vmulxq_f32): Likewise.
7856 (vmulxq_f64): Rewrite to call fmulx builtin.
7857 (vmulxs_f32): Likewise.
7858 (vmulxd_f64): Likewise.
7859 (vmulx_lane_f32): Remove.
7860 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
7862 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
7864 * config/aarch64/aarch64.md (*movhf_aarch64): Use
7865 aarch64_reg_or_fp_zero for second operand.
7867 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
7869 * gimple-expr.c: Include hash-set.h and rtl.h.
7870 (mark_addressable_queue): New var.
7871 (mark_addressable): Factor actual marking into...
7872 (mark_addressable_1): ... this. Queue it up during expand.
7873 (mark_addressable_2): New.
7874 (flush_mark_addressable_queue): New.
7875 * gimple-expr.h (flush_mark_addressable_queue): Declare.
7876 * cfgexpand.c: Include gimple-expr.h.
7877 (pass_expand::execute): Flush mark_addressable queue.
7879 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
7881 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
7882 bb_no_side_effects_p tests...
7883 (tree_ssa_ifcombine_bb): ... here.
7885 PR tree-optimization/68083
7886 * tree-ssa-ifcombine.c: Include tree-ssa.h.
7887 (bb_no_side_effects_p): Test for undefined uses too.
7888 * tree-ssa.c (gimple_uses_undefined_value_p): New.
7889 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
7891 2015-11-02 Jeff Law <law@redhat.com>
7893 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
7894 cases where the loop latch edge is in the middle of an FSM path.
7896 2015-11-03 Tom de Vries <tom@codesourcery.com>
7898 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
7899 (make_param_constraints): ... this. Add and handle restrict_name
7900 parameter. Handle is_full_var case.
7901 (intra_create_variable_infos): Use make_param_constraints.
7903 2015-11-03 Tom de Vries <tom@codesourcery.com>
7905 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
7906 make_copy_constraint call with make_constraint_from call.
7908 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
7910 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
7913 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
7915 * builtins.h (fold_fma): Move to fold-const-call.h.
7916 * builtins.c: Include fold-const-call.h.
7917 (mathfn_built_in_2): New function, split out from...
7918 (mathfn_built_in_1): ...here.
7919 (do_real_to_int_conversion, fold_const_builtin_pow)
7920 (fold_const_builtin_logb, fold_const_builtin_significand)
7921 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7922 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7923 (fold_builtin_sincos): Use fold_const_call to handle constants.
7924 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7925 checks for ERROR_MARK. Use fold_const_call to handle constant
7926 folds for math functions.
7927 (fold_fma): Move to fold-const-call.c.
7928 * fold-const.c: Include fold-const-call.h.
7929 * Makefile.in (OBJS): Add fold-const-call.o.
7930 (PLUGIN_HEADERS): Add fold-const-call.h.
7931 * realmpfr.h (real_from_mpfr): Allow the format to be specified
7933 * realmpfr.c (real_from_mpfr): Likewise.
7934 * fold-const-call.h, fold-const-call.c: New files.
7936 2015-11-02 Julian Brown <julian@codesourcery.com>
7938 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7939 brackets and semicolon.
7941 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
7944 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7946 PR tree-optimization/65963
7947 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7948 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7950 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
7953 * fold-const.c: Include "md5.h".
7955 2015-11-01 Jeff Law <law@redhat.com>
7957 * vmsdbgout.c: Revert unused header file reduction patch.
7959 * config/mcore/mcore.c: Include regs.h.
7961 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
7963 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7965 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
7967 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7968 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7969 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7971 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
7973 * ggc-common.c: Restore needed header for checking=release.
7975 2015-10-31 Tom de Vries <tom@codesourcery.com>
7977 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7979 2015-10-31 Tom de Vries <tom@codesourcery.com>
7981 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7982 existing varinfo for arguments.
7984 2015-10-31 Tom de Vries <tom@codesourcery.com>
7986 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7987 create_function_info_for. Dump constraints generated during
7988 create_function_info_for. Move intra_create_variable_infos call and
7989 function-return-values-escape bit to ...
7990 (create_function_info_for): ... here, and merge
7991 intra_create_variable_infos call with argument loop. Add and handle
7992 nonlocal_p parameter.
7994 2015-10-31 Tom de Vries <tom@codesourcery.com>
7996 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7997 updating is alap, and seperated from preceding code. Make sure
7998 insert_vi_for_tree is seperated from surrounding code.
8000 2015-10-31 Tom de Vries <tom@codesourcery.com>
8002 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8004 2015-10-30 Jeff Law <law@redhat.com>
8005 Nathan Sidwell <nathan@acm.org>
8007 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8009 (MOVE_MAX): Set to 8.
8011 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8013 * cgraph.c: Include context.h for offloading.
8014 * varpool.c: Include context.h and omp-low.h.
8016 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8018 * rtl.h (contains_symbol_ref_p): Declare.
8019 (SYMBOL_REF_P): Define.
8020 * rtlanal.c (contains_symbol_ref_p: New function.
8021 * lra-constraints.c (contains_symbol_ref_p): Remove.
8022 * var-tracking.c (contains_symbol_ref): Remove.
8023 (track_expr_p): Use contains_symbol_ref_p instead of
8024 contains_symbol_ref.
8026 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8028 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8029 * fold-const.c (get_array_ctor_element_at_index): New.
8030 (fold): Remove binary-search through CONSTRUCTOR, call previous.
8032 * fold-const.h (get_array_ctor_element_at_index): New.
8034 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8036 * Makefile.in (OBJS): Add multiple_target.o.
8037 * attrib.c (make_attribute): Moved from config/i386/i386.c
8038 * config/i386/i386.c (make_attribute): Deleted.
8039 * multiple_target.c (create_dispatcher_calls): New.
8040 (get_attr_len): Ditto.
8041 (get_attr_str): Ditto.
8042 (separate_attrs): Ditto.
8043 (is_valid_asm_symbol): Ditto.
8044 (create_new_asm_name): Ditto.
8045 (create_target_clone): Ditto.
8046 (expand_target_clones): Ditto.
8047 (ipa_target_clone): Ditto.
8048 (ipa_dispatcher_calls): Ditto.
8049 * passes.def (pass_target_clone): Two new ipa passes.
8050 * tree-pass.h (make_pass_target_clone): Ditto.
8051 * doc/extend.texi (target_clones): New attribute description.
8053 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
8055 PR rtl-optimization/68106
8056 * lra-remat.c (input_regno_present_p): Process hard regs
8057 explicitly present in machine description insns.
8058 (call_used_input_regno_present_p): Ditto.
8059 (calculate_gen_cands): Ditto.
8062 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
8064 * config/arm/neon-testgen.ml: Fix comment typo.
8066 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8068 * rtlanal.c (reg_set_p): Expand function comment.
8070 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
8072 * alias.c: Remove unused headers.
8074 * attribs.c: Likewise.
8075 * auto-inc-dec.c: Likewise.
8076 * auto-profile.c: Likewise.
8077 * bb-reorder.c: Likewise.
8078 * bitmap.c: Likewise.
8079 * bt-load.c: Likewise.
8080 * builtins.c: Likewise.
8081 * caller-save.c: Likewise.
8082 * calls.c: Likewise.
8085 * cfganal.c: Likewise.
8086 * cfgbuild.c: Likewise.
8087 * cfgcleanup.c: Likewise.
8088 * cfgexpand.c: Likewise.
8089 * cfghooks.c: Likewise.
8090 * cfgloop.c: Likewise.
8091 * cfgloopanal.c: Likewise.
8092 * cfgloopmanip.c: Likewise.
8093 * cfgrtl.c: Likewise.
8094 * cgraph.c: Likewise.
8095 * cgraphbuild.c: Likewise.
8096 * cgraphclones.c: Likewise.
8097 * cgraphunit.c: Likewise.
8098 * cilk-common.c: Likewise.
8099 * combine-stack-adj.c: Likewise.
8100 * combine.c: Likewise.
8101 * compare-elim.c: Likewise.
8102 * convert.c: Likewise.
8103 * coverage.c: Likewise.
8104 * cppbuiltin.c: Likewise.
8105 * cprop.c: Likewise.
8107 * cselib.c: Likewise.
8108 * data-streamer-in.c: Likewise.
8109 * data-streamer-out.c: Likewise.
8110 * data-streamer.c: Likewise.
8111 * dbxout.c: Likewise.
8114 * debug.c: Likewise.
8115 * df-core.c: Likewise.
8116 * df-problems.c: Likewise.
8117 * df-scan.c: Likewise.
8119 * dojump.c: Likewise.
8120 * dominance.c: Likewise.
8121 * domwalk.c: Likewise.
8122 * double-int.c: Likewise.
8124 * dumpfile.c: Likewise.
8125 * dwarf2asm.c: Likewise.
8126 * dwarf2cfi.c: Likewise.
8127 * dwarf2out.c: Likewise.
8128 * emit-rtl.c: Likewise.
8129 * except.c: Likewise.
8130 * explow.c: Likewise.
8131 * expmed.c: Likewise.
8133 * final.c: Likewise.
8134 * fixed-value.c: Likewise.
8135 * fold-const.c: Likewise.
8136 * function.c: Likewise.
8137 * fwprop.c: Likewise.
8139 * generic-match-head.c: Likewise.
8140 * ggc-common.c: Likewise.
8141 * gimple-builder.c: Likewise.
8142 * gimple-expr.c: Likewise.
8143 * gimple-fold.c: Likewise.
8144 * gimple-iterator.c: Likewise.
8145 * gimple-low.c: Likewise.
8146 * gimple-match-head.c: Likewise.
8147 * gimple-pretty-print.c: Likewise.
8148 * gimple-ssa-isolate-paths.c: Likewise.
8149 * gimple-ssa-strength-reduction.c: Likewise.
8150 * gimple-streamer-in.c: Likewise.
8151 * gimple-streamer-out.c: Likewise.
8152 * gimple-walk.c: Likewise.
8153 * gimple.c: Likewise.
8154 * gimplify-me.c: Likewise.
8155 * gimplify.c: Likewise.
8156 * godump.c: Likewise.
8157 * graph.c: Likewise.
8158 * graphds.c: Likewise.
8159 * haifa-sched.c: Likewise.
8160 * hw-doloop.c: Likewise.
8161 * ifcvt.c: Likewise.
8162 * init-regs.c: Likewise.
8163 * internal-fn.c: Likewise.
8164 * ipa-chkp.c: Likewise.
8165 * ipa-comdats.c: Likewise.
8166 * ipa-cp.c: Likewise.
8167 * ipa-devirt.c: Likewise.
8168 * ipa-icf-gimple.c: Likewise.
8169 * ipa-icf.c: Likewise.
8170 * ipa-inline-analysis.c: Likewise.
8171 * ipa-inline-transform.c: Likewise.
8172 * ipa-inline.c: Likewise.
8173 * ipa-polymorphic-call.c: Likewise.
8174 * ipa-profile.c: Likewise.
8175 * ipa-prop.c: Likewise.
8176 * ipa-pure-const.c: Likewise.
8177 * ipa-ref.c: Likewise.
8178 * ipa-reference.c: Likewise.
8179 * ipa-split.c: Likewise.
8180 * ipa-utils.c: Likewise.
8181 * ipa-visibility.c: Likewise.
8183 * ira-build.c: Likewise.
8184 * ira-color.c: Likewise.
8185 * ira-conflicts.c: Likewise.
8186 * ira-costs.c: Likewise.
8187 * ira-emit.c: Likewise.
8188 * ira-lives.c: Likewise.
8191 * langhooks.c: Likewise.
8193 * lists.c: Likewise.
8194 * loop-doloop.c: Likewise.
8195 * loop-init.c: Likewise.
8196 * loop-invariant.c: Likewise.
8197 * loop-iv.c: Likewise.
8198 * loop-unroll.c: Likewise.
8199 * lower-subreg.c: Likewise.
8200 * lra-assigns.c: Likewise.
8201 * lra-coalesce.c: Likewise.
8202 * lra-constraints.c: Likewise.
8203 * lra-eliminations.c: Likewise.
8204 * lra-lives.c: Likewise.
8205 * lra-remat.c: Likewise.
8206 * lra-spills.c: Likewise.
8208 * lto-cgraph.c: Likewise.
8209 * lto-compress.c: Likewise.
8210 * lto-opts.c: Likewise.
8211 * lto-section-in.c: Likewise.
8212 * lto-section-out.c: Likewise.
8213 * lto-streamer-in.c: Likewise.
8214 * lto-streamer-out.c: Likewise.
8215 * lto-streamer.c: Likewise.
8217 * mode-switching.c: Likewise.
8218 * modulo-sched.c: Likewise.
8219 * optabs.c: Likewise.
8220 * opts-global.c: Likewise.
8221 * passes.c: Likewise.
8222 * plugin.c: Likewise.
8223 * postreload-gcse.c: Likewise.
8224 * postreload.c: Likewise.
8225 * predict.c: Likewise.
8226 * print-tree.c: Likewise.
8227 * profile.c: Likewise.
8229 * realmpfr.c: Likewise.
8230 * recog.c: Likewise.
8232 * reg-stack.c: Likewise.
8233 * regcprop.c: Likewise.
8234 * reginfo.c: Likewise.
8235 * regrename.c: Likewise.
8236 * regstat.c: Likewise.
8237 * reload.c: Likewise.
8238 * reload1.c: Likewise.
8239 * reorg.c: Likewise.
8240 * resource.c: Likewise.
8241 * rtl-chkp.c: Likewise.
8242 * rtl-error.c: Likewise.
8243 * rtlanal.c: Likewise.
8244 * rtlhooks.c: Likewise.
8245 * sanopt.c: Likewise.
8246 * sched-deps.c: Likewise.
8247 * sched-ebb.c: Likewise.
8248 * sched-rgn.c: Likewise.
8249 * sdbout.c: Likewise.
8250 * sel-sched-dump.c: Likewise.
8251 * sel-sched-ir.c: Likewise.
8252 * sel-sched.c: Likewise.
8254 * shrink-wrap.c: Likewise.
8255 * simplify-rtx.c: Likewise.
8256 * stack-ptr-mod.c: Likewise.
8257 * statistics.c: Likewise.
8259 * stor-layout.c: Likewise.
8260 * store-motion.c: Likewise.
8261 * stringpool.c: Likewise.
8262 * symtab.c: Likewise.
8263 * target-globals.c: Likewise.
8264 * targhooks.c: Likewise.
8265 * toplev.c: Likewise.
8266 * tracer.c: Likewise.
8267 * trans-mem.c: Likewise.
8268 * tree-affine.c: Likewise.
8269 * tree-call-cdce.c: Likewise.
8270 * tree-cfg.c: Likewise.
8271 * tree-cfgcleanup.c: Likewise.
8272 * tree-chkp-opt.c: Likewise.
8273 * tree-chkp.c: Likewise.
8274 * tree-chrec.c: Likewise.
8275 * tree-complex.c: Likewise.
8276 * tree-data-ref.c: Likewise.
8277 * tree-dfa.c: Likewise.
8278 * tree-diagnostic.c: Likewise.
8279 * tree-dump.c: Likewise.
8280 * tree-eh.c: Likewise.
8281 * tree-emutls.c: Likewise.
8282 * tree-if-conv.c: Likewise.
8283 * tree-inline.c: Likewise.
8284 * tree-into-ssa.c: Likewise.
8285 * tree-iterator.c: Likewise.
8286 * tree-loop-distribution.c: Likewise.
8287 * tree-nested.c: Likewise.
8288 * tree-nrv.c: Likewise.
8289 * tree-object-size.c: Likewise.
8290 * tree-outof-ssa.c: Likewise.
8291 * tree-parloops.c: Likewise.
8292 * tree-phinodes.c: Likewise.
8293 * tree-predcom.c: Likewise.
8294 * tree-pretty-print.c: Likewise.
8295 * tree-profile.c: Likewise.
8296 * tree-scalar-evolution.c: Likewise.
8297 * tree-sra.c: Likewise.
8298 * tree-ssa-address.c: Likewise.
8299 * tree-ssa-alias.c: Likewise.
8300 * tree-ssa-ccp.c: Likewise.
8301 * tree-ssa-coalesce.c: Likewise.
8302 * tree-ssa-copy.c: Likewise.
8303 * tree-ssa-dce.c: Likewise.
8304 * tree-ssa-dse.c: Likewise.
8305 * tree-ssa-forwprop.c: Likewise.
8306 * tree-ssa-ifcombine.c: Likewise.
8307 * tree-ssa-live.c: Likewise.
8308 * tree-ssa-loop-ch.c: Likewise.
8309 * tree-ssa-loop-im.c: Likewise.
8310 * tree-ssa-loop-ivcanon.c: Likewise.
8311 * tree-ssa-loop-ivopts.c: Likewise.
8312 * tree-ssa-loop-manip.c: Likewise.
8313 * tree-ssa-loop-niter.c: Likewise.
8314 * tree-ssa-loop-prefetch.c: Likewise.
8315 * tree-ssa-loop-unswitch.c: Likewise.
8316 * tree-ssa-loop.c: Likewise.
8317 * tree-ssa-math-opts.c: Likewise.
8318 * tree-ssa-operands.c: Likewise.
8319 * tree-ssa-phiopt.c: Likewise.
8320 * tree-ssa-phiprop.c: Likewise.
8321 * tree-ssa-pre.c: Likewise.
8322 * tree-ssa-propagate.c: Likewise.
8323 * tree-ssa-reassoc.c: Likewise.
8324 * tree-ssa-scopedtables.c: Likewise.
8325 * tree-ssa-sink.c: Likewise.
8326 * tree-ssa-strlen.c: Likewise.
8327 * tree-ssa-structalias.c: Likewise.
8328 * tree-ssa-tail-merge.c: Likewise.
8329 * tree-ssa-ter.c: Likewise.
8330 * tree-ssa-threadupdate.c: Likewise.
8331 * tree-ssa-uncprop.c: Likewise.
8332 * tree-ssa-uninit.c: Likewise.
8333 * tree-ssa.c: Likewise.
8334 * tree-ssanames.c: Likewise.
8335 * tree-stdarg.c: Likewise.
8336 * tree-streamer-in.c: Likewise.
8337 * tree-streamer-out.c: Likewise.
8338 * tree-streamer.c: Likewise.
8339 * tree-switch-conversion.c: Likewise.
8340 * tree-tailcall.c: Likewise.
8341 * tree-vect-data-refs.c: Likewise.
8342 * tree-vect-generic.c: Likewise.
8343 * tree-vect-loop-manip.c: Likewise.
8344 * tree-vect-loop.c: Likewise.
8345 * tree-vect-patterns.c: Likewise.
8346 * tree-vect-slp.c: Likewise.
8347 * tree-vect-stmts.c: Likewise.
8348 * tree-vectorizer.c: Likewise.
8349 * tree-vrp.c: Likewise.
8352 * ubsan.c: Likewise.
8353 * value-prof.c: Likewise.
8354 * var-tracking.c: Likewise.
8355 * varasm.c: Likewise.
8356 * varpool.c: Likewise.
8357 * vmsdbgout.c: Likewise.
8358 * vtable-verify.c: Likewise.
8360 * wide-int-print.cc: Likewise.
8361 * wide-int.cc: Likewise.
8362 * xcoffout.c: Likewise.
8364 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
8366 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8367 between pass numbering and execution order.
8369 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8371 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8372 check for dependencies.
8374 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8376 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8379 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8381 * real.h (format_helper): New.
8382 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8383 (real_from_target, real_nan, real_2expN, real_value_truncate)
8384 (significand_size, real_from_string2, exact_real_inverse)
8385 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8386 (real_round, real_isinteger, real_from_integer): Replace
8387 machine_mode arguments with format_helper arguments.
8388 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8389 (real_from_integer, real_nan, real_2expN, real_convert)
8390 (real_value_truncate, exact_real_truncate, real_to_target)
8391 (real_from_target, significand_size, real_powi, real_trunc)
8392 (real_floor, real_ceil, real_round, real_isinteger): Replace
8393 machine_mode arguments with format_helper arguments.
8394 (real_to_target_fmt, real_from_target_fmt): Delete.
8395 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8396 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8397 argument with real_format.
8398 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8400 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8402 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8403 (fixed_to_decimal, fixed_convert_from_real)
8404 (real_convert_from_fixed): Fix mode arguments to real_2expN.
8406 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8408 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8409 SCALAR_FLOAT_MODE_P.
8411 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8413 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8414 (completely_scalarize): Comment zero-length arrays.
8415 (get_access_replacement): Correct comment re. precondition.
8417 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8419 * config/i386/i386.c (get_builtin_code_for_version): Set priority
8420 for PROCESSOR_ZNVER1.
8421 (enum processor_model): Add M_AMDFAM17H_znver1.
8422 (struct arch_names_table): Likewise.
8423 * doc/extend.texi: ADD znver1.
8425 2015-10-30 Richard Biener <rguenther@suse.de>
8427 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8428 fold () on single RHSs. Allow CONSTRUCTORS with trailing
8429 zeros to be folded to VECTOR_CSTs.
8430 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8431 * fold-const.c (fold): Use build_vector_from_ctor.
8433 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
8435 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8436 "mov %0.h[0], %1.h[0] to "neon_move".
8437 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8438 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8440 (*cmovsi_insn_uxtw): Likewise.
8442 2015-10-30 Tom de Vries <tom@codesourcery.com>
8444 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8445 unsigned, and initialize, and use initial value instead of hardcoded
8446 constant. Add generic constraints dumping section. Don't dump global
8447 initializers constraints dumping section if empty. Don't update
8448 variable from if unused.
8450 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8452 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8453 flag_checking and/or CHECKING_P to eliminate conditional compilation
8455 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8456 * config/bfin/bfin.c (hwloop_optimize): Likewise.
8457 * config/i386/i386.c (ix86_print_operand_address): Likewise.
8458 (output_387_binary_op): Likewise.
8459 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8460 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8461 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8463 * config/rs6000/rs6000.h: Likewise.
8464 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8466 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
8468 * config/sh/sh.opt (mfdpic): Add missing period.
8470 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8472 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8473 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8474 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8475 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8476 mcore_base_register_rtx_p, mcore_legitimate_index_p,
8477 mcore_legitimate_address_p): New functions.
8478 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8480 2015-10-29 Jeff Law <law@redhat.com>
8482 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8484 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8485 * tree-ssa-threadedge.c
8486 (record_temporary_equivalences_from_stmts_at_dest): Remove
8487 backedge_seen argument and associated code which invalidated
8488 equivalences based on the value of that argument.
8489 (thread_through_normal_block): Corresponding changes.
8491 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8493 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8494 function earlier in the file.
8495 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8496 df_regs_ever_live_p.
8498 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8500 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8503 2015-10-29 Richard Henderson <rth@redhat.com>
8507 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8508 sse check to the exact conditions of PR 67609.
8510 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8512 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8513 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8514 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8515 of the traditional names that TFmode uses for handling IEEE
8516 extended double. If -mfloat128, add KFmode functions for all of
8517 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8518 make TFmode use the same emulation functions as KFmode.
8519 (init_float128_ibm): Likewise.
8520 (init_float128_ieee): Likewise.
8521 (rs6000_generate_compare): For IEEE 128-bit floating point
8522 comparisons, call the unordered comparison function instead of the
8523 ordered comparison function.
8524 (rs6000_expand_float128_convert): Deal with operands that are
8525 memory operands. Restructure the code to use a switch statement on
8526 the mode. Add support for TFmode defaulting to either IBM extended
8527 double or IEEE 128-bit floating point. If the underlying types are
8528 the same, use a move instead of a conversion function.
8529 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8530 use for IEEE 128-bit floating point constants with -mfloat128.
8531 (rs6000_c_mode_for_suffix): Likewise.
8532 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8533 128-bit floating point with IBM extended double floating point.
8534 (rs6000_invalid_binary_op): Likewise.
8535 (rs6000_gen_le_vsx_permute): On little endian systems generate a
8536 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8537 types that can go in vector registers.
8538 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8539 point types that can go in vector registers on little endian
8541 (mark_swaps_for_removal): Likewise.
8542 (rs6000_analyze_swaps): Likewise.
8543 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8545 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8546 rework IEEE 128-bit floating point insns to deal with TFmode being
8547 either IBM extended double or IEEE 128-bit floating point.
8549 (IBM128): Update iterator to add condition that the mode is IBM
8551 (IEEE128): New iterator for IEEE 128-bit floating point.
8552 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8553 (FLOAT128): Likewise.
8554 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8556 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8557 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8558 instead of hard coding TFmode or KFmode.
8559 (negtf2_internal): Likewise.
8560 (neg<mode>2_internal): Likewise.
8561 (abs<mode>2): Likewise.
8562 (abstf2_internal): Likewise.
8563 (abs<mode>2_internal): Likewise.
8564 (ieee_128bit_neg<mode>2): Likewise.
8565 (ieee_128bit_neg<mode>2_internal): Likewise.
8566 (ieee_128bit_abs<mode>2): Likewise.
8567 (ieee_128bit_abs<mode>2_internal): Likewise.
8568 (ieee_128bit_nabs<mode>2): Likewise.
8569 (ieee_128bit_nabs<mode>2_internal): Likewise.
8570 (extendiftf2): Add explicit conversions between 128-bit floating
8571 point types. Drop the old conversions that had become unwieldy.
8572 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8573 (extendifkf2): Likewise.
8574 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8575 (extendtfkf2): Likewise.
8576 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8577 (trunciftf2): Likewise.
8578 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8579 (truncifkf2): Likewise.
8580 (float<SDI:mode><IFKF:mode>2): Likewise.
8581 (trunckftf2): Likewise.
8582 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8583 (trunctfif2): Likewise.
8584 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8585 (extenddftf2): Rework 128-bit floating point conversions to
8586 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8587 KFmode expanders into one function.
8588 (extenddf<mode>2): Likewise.
8589 (extenddftf2_fprs): Likewise.
8590 (extenddf<mode>2_fprs): Likewise.
8591 (extenddftf2_vsx): Likewise.
8592 (extenddf<mode>2_vsx): Likewise.
8593 (extendsftf2): Likewise.
8594 (extendsf<mode>2): Likewise.
8595 (trunctfdf2): Likewise.
8596 (trunc<mode>df2): Likewise.
8597 (trunctfdf2_internal1): Likewise.
8598 (trunc<mode>df2_internal1): Likewise.
8599 (trunctfdf2_internal2): Likewise.
8600 (trunc<mode>df2_internal2): Likewise.
8601 (trunctfsf2): Likewise.
8602 (trunc<mode>sf2): Likewise.
8603 (trunctfsf2_fprs): Likewise.
8604 (trunc<mode>sf2_fprs): Likewise.
8605 (floatsit2f): Likewise.
8606 (floatsi<mode>2): Likewise.
8607 (fix_trunc_helper): Likewise.
8608 (fix_trunc_helper<mode>): Likewise.
8609 (fix_trunctfsi2): Likewise.
8610 (fix_trunc<mode>si2): Likewise.
8611 (fix_trunctfsi2_fprs): Likewise.
8612 (fix_trunc<mode>si2_fprs): Likewise.
8613 (fix_trunctfsi2_internal): Likewise.
8614 (fix_trunc<mode>si2_internal): Likewise.
8615 (fix_trunctfdi2): Likewise.
8616 (fix_trunc<mode>di2): Likewise.
8617 (fixuns_trunctf<mode>2): Likewise.
8618 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8619 (floatditf2): Likewise.
8620 (floatdi<mode>2): Likewise.
8621 (floatuns<mode>tf2): Likewise.
8622 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
8623 (cmptf_internal1): Use a mode iterator to add support for both
8624 types (IFmode, TFmode) that support IBM extended double.
8625 (cmp<mode>_internal1): Likewise.
8626 (cmptf_internal2): Likewise.
8627 (cmp<mode>_internal2): Likewise.
8629 * doc/extend.texi (Floating Types): Document __ibm128 and
8630 __float128 on PowerPC.
8632 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8633 -mfloat128 and -mno-float128.
8635 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8637 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
8638 floating point modes that can go in vector registers.
8639 (MODES_TIEABLE_P): Move tests for vector modes before tests for
8640 scalar floating point, so that IEEE 128-bit floating point that
8641 can go in vector registers bind with vectors and not FP.
8642 (struct rs6000_args): Add libcall field.
8644 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
8645 and -mfloat128-software switches. Replace them with a binary
8647 (-mfloat128): Likewise.
8649 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8650 128-bit floating point types in GPRs, even if the appropriate
8651 option enabling the type was not used.
8652 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
8654 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
8655 pre-decrement on IEEE 128-bit floating point values.
8656 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
8657 is IEEE 128-bit floating point.
8658 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
8659 128-bit floating point types that can go in vector registers.
8660 (rs6000_option_override_internal): Change -mfloat128-none and
8661 -mfloat128-software to -mfloat128, and move code to be near other
8662 VSX option handling.
8663 (rs6000_option_override_internal): Disable -mfloat128 if we don't
8664 have the Altivec ABI.
8665 (rs6000_init_builtins): Don't make TFmode use either IFmode or
8666 KFmode floating point nodes. Instead, have three separate nodes.
8667 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
8668 eventually moving the long double default to IEEE 128-bit floating
8670 (rs6000_opt_masks): Add -mfloat128.
8671 (struct rs6000_opt_var): Fix typo in comment.
8672 (init_cumulative_args): Initialize libcall field in
8674 (rs6000_function_arg): Treat library functions as if they had
8675 prototypes to prevent IEEE 128-bit support functions from passing
8676 arguments in both GPRs and vector registers.
8677 (rs6000_arg_partial_bytes): Likewise.
8679 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
8680 an option that can be turned on via -mcpu=<xxx>.
8682 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
8685 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8686 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
8687 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
8688 double is IBM extended double.
8690 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
8693 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8695 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
8696 * genconditions.c: Define CHECKING_P in the generated code.
8697 * genextract.c: Use flag_checking in insn_extract.
8698 * gengtype.c (main): Remove conditional compilation.
8699 * gengtype.h: Likewise.
8701 2015-10-29 Jeff Law <law@redhat.com>
8703 PR tree-optimization/67892
8704 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
8706 (thread_through_normal_block): If we have seen a backedge, then
8707 do nothing. No longer call find_jump_threads_backwards here.
8708 (thread_across_edge): Use find_jump_threads_backwards to find
8709 jump threads if the old style threader was not successful.
8710 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
8711 gsi_last_nondebug_bb. Return NULL if the block does not end
8712 with a control statement.
8713 (find_jump_threads_backwards): Setup code moved here from
8714 tree-ssa-threadedge.c::thread_through_normal_block. Accept
8715 single edge argument instead of name & block.
8716 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
8719 2015-10-29 Tom de Vries <tom@codesourcery.com>
8721 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
8724 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
8726 * omp-low.c (lower_omp_target): Remove unreachable code & merge
8729 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
8731 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
8733 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
8735 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8736 guard_bb0 and use guard_bb throughout.
8738 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
8740 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8743 2015-10-29 Richard Biener <rguenther@suse.de>
8746 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
8749 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
8751 * alias.c: Reorder #include statements and remove duplicates.
8753 * attribs.c: Likewise.
8754 * auto-inc-dec.c: Likewise.
8755 * auto-profile.c: Likewise.
8756 * bb-reorder.c: Likewise.
8757 * bt-load.c: Likewise.
8758 * builtins.c: Likewise.
8759 * caller-save.c: Likewise.
8760 * calls.c: Likewise.
8763 * cfganal.c: Likewise.
8764 * cfgbuild.c: Likewise.
8765 * cfgcleanup.c: Likewise.
8766 * cfgexpand.c: Likewise.
8767 * cfghooks.c: Likewise.
8768 * cfgloop.c: Likewise.
8769 * cfgloopanal.c: Likewise.
8770 * cfgloopmanip.c: Likewise.
8771 * cfgrtl.c: Likewise.
8772 * cgraph.c: Likewise.
8773 * cgraphbuild.c: Likewise.
8774 * cgraphclones.c: Likewise.
8775 * cgraphunit.c: Likewise.
8776 * cilk-common.c: Likewise.
8777 * combine-stack-adj.c: Likewise.
8778 * combine.c: Likewise.
8779 * compare-elim.c: Likewise.
8780 * convert.c: Likewise.
8781 * coverage.c: Likewise.
8782 * cppbuiltin.c: Likewise.
8783 * cprop.c: Likewise.
8785 * cselib.c: Likewise.
8786 * data-streamer-in.c: Likewise.
8787 * data-streamer-out.c: Likewise.
8788 * data-streamer.c: Likewise.
8789 * dbxout.c: Likewise.
8792 * debug.c: Likewise.
8793 * df-core.c: Likewise.
8794 * df-problems.c: Likewise.
8795 * df-scan.c: Likewise.
8797 * dojump.c: Likewise.
8798 * dominance.c: Likewise.
8799 * double-int.c: Likewise.
8801 * dumpfile.c: Likewise.
8802 * dwarf2asm.c: Likewise.
8803 * dwarf2cfi.c: Likewise.
8804 * dwarf2out.c: Likewise.
8805 * emit-rtl.c: Likewise.
8806 * except.c: Likewise.
8807 * explow.c: Likewise.
8808 * expmed.c: Likewise.
8810 * final.c: Likewise.
8811 * fixed-value.c: Likewise.
8812 * fold-const.c: Likewise.
8813 * function.c: Likewise.
8814 * fwprop.c: Likewise.
8816 * generic-match-head.c: Likewise.
8817 * ggc-common.c: Likewise.
8818 * gimple-builder.c: Likewise.
8819 * gimple-expr.c: Likewise.
8820 * gimple-fold.c: Likewise.
8821 * gimple-iterator.c: Likewise.
8822 * gimple-low.c: Likewise.
8823 * gimple-match-head.c: Likewise.
8824 * gimple-pretty-print.c: Likewise.
8825 * gimple-ssa-isolate-paths.c: Likewise.
8826 * gimple-ssa-strength-reduction.c: Likewise.
8827 * gimple-streamer-in.c: Likewise.
8828 * gimple-streamer-out.c: Likewise.
8829 * gimple-walk.c: Likewise.
8830 * gimple.c: Likewise.
8831 * gimplify-me.c: Likewise.
8832 * gimplify.c: Likewise.
8833 * godump.c: Likewise.
8834 * graph.c: Likewise.
8835 * graphite-poly.c: Likewise.
8836 * haifa-sched.c: Likewise.
8837 * hw-doloop.c: Likewise.
8838 * ifcvt.c: Likewise.
8839 * incpath.c: Likewise.
8840 * init-regs.c: Likewise.
8841 * internal-fn.c: Likewise.
8842 * ipa-chkp.c: Likewise.
8843 * ipa-comdats.c: Likewise.
8844 * ipa-cp.c: Likewise.
8845 * ipa-devirt.c: Likewise.
8846 * ipa-icf-gimple.c: Likewise.
8847 * ipa-icf.c: Likewise.
8848 * ipa-inline-analysis.c: Likewise.
8849 * ipa-inline-transform.c: Likewise.
8850 * ipa-inline.c: Likewise.
8851 * ipa-polymorphic-call.c: Likewise.
8852 * ipa-profile.c: Likewise.
8853 * ipa-prop.c: Likewise.
8854 * ipa-pure-const.c: Likewise.
8855 * ipa-ref.c: Likewise.
8856 * ipa-reference.c: Likewise.
8857 * ipa-split.c: Likewise.
8858 * ipa-utils.c: Likewise.
8859 * ipa-visibility.c: Likewise.
8861 * ira-build.c: Likewise.
8862 * ira-color.c: Likewise.
8863 * ira-conflicts.c: Likewise.
8864 * ira-costs.c: Likewise.
8865 * ira-emit.c: Likewise.
8866 * ira-lives.c: Likewise.
8869 * langhooks.c: Likewise.
8871 * lists.c: Likewise.
8872 * loop-doloop.c: Likewise.
8873 * loop-init.c: Likewise.
8874 * loop-invariant.c: Likewise.
8875 * loop-iv.c: Likewise.
8876 * loop-unroll.c: Likewise.
8877 * lower-subreg.c: Likewise.
8878 * lra-assigns.c: Likewise.
8879 * lra-coalesce.c: Likewise.
8880 * lra-constraints.c: Likewise.
8881 * lra-eliminations.c: Likewise.
8882 * lra-lives.c: Likewise.
8883 * lra-remat.c: Likewise.
8884 * lra-spills.c: Likewise.
8886 * lto-cgraph.c: Likewise.
8887 * lto-compress.c: Likewise.
8888 * lto-opts.c: Likewise.
8889 * lto-section-in.c: Likewise.
8890 * lto-section-out.c: Likewise.
8891 * lto-streamer-in.c: Likewise.
8892 * lto-streamer-out.c: Likewise.
8893 * lto-streamer.c: Likewise.
8894 * mode-switching.c: Likewise.
8895 * modulo-sched.c: Likewise.
8896 * omp-low.c: Likewise.
8897 * optabs.c: Likewise.
8898 * opts-global.c: Likewise.
8899 * passes.c: Likewise.
8900 * plugin.c: Likewise.
8901 * postreload-gcse.c: Likewise.
8902 * postreload.c: Likewise.
8903 * predict.c: Likewise.
8904 * print-tree.c: Likewise.
8905 * profile.c: Likewise.
8907 * realmpfr.c: Likewise.
8908 * recog.c: Likewise.
8910 * reg-stack.c: Likewise.
8911 * regcprop.c: Likewise.
8912 * reginfo.c: Likewise.
8913 * regrename.c: Likewise.
8914 * regstat.c: Likewise.
8915 * reload.c: Likewise.
8916 * reload1.c: Likewise.
8917 * reorg.c: Likewise.
8918 * resource.c: Likewise.
8919 * rtl-chkp.c: Likewise.
8920 * rtl-error.c: Likewise.
8921 * rtlanal.c: Likewise.
8922 * rtlhooks.c: Likewise.
8923 * sanopt.c: Likewise.
8924 * sched-deps.c: Likewise.
8925 * sched-ebb.c: Likewise.
8926 * sched-rgn.c: Likewise.
8928 * shrink-wrap.c: Likewise.
8929 * simplify-rtx.c: Likewise.
8930 * stack-ptr-mod.c: Likewise.
8931 * statistics.c: Likewise.
8933 * stor-layout.c: Likewise.
8934 * store-motion.c: Likewise.
8935 * stringpool.c: Likewise.
8936 * symtab.c: Likewise.
8937 * target-globals.c: Likewise.
8938 * targhooks.c: Likewise.
8939 * toplev.c: Likewise.
8940 * tracer.c: Likewise.
8941 * trans-mem.c: Likewise.
8942 * tree-affine.c: Likewise.
8943 * tree-call-cdce.c: Likewise.
8944 * tree-cfg.c: Likewise.
8945 * tree-cfgcleanup.c: Likewise.
8946 * tree-chkp-opt.c: Likewise.
8947 * tree-chkp.c: Likewise.
8948 * tree-chrec.c: Likewise.
8949 * tree-complex.c: Likewise.
8950 * tree-data-ref.c: Likewise.
8951 * tree-dfa.c: Likewise.
8952 * tree-diagnostic.c: Likewise.
8953 * tree-dump.c: Likewise.
8954 * tree-eh.c: Likewise.
8955 * tree-emutls.c: Likewise.
8956 * tree-if-conv.c: Likewise.
8957 * tree-inline.c: Likewise.
8958 * tree-into-ssa.c: Likewise.
8959 * tree-iterator.c: Likewise.
8960 * tree-loop-distribution.c: Likewise.
8961 * tree-nested.c: Likewise.
8962 * tree-nrv.c: Likewise.
8963 * tree-object-size.c: Likewise.
8964 * tree-outof-ssa.c: Likewise.
8965 * tree-parloops.c: Likewise.
8966 * tree-phinodes.c: Likewise.
8967 * tree-predcom.c: Likewise.
8968 * tree-pretty-print.c: Likewise.
8969 * tree-profile.c: Likewise.
8970 * tree-scalar-evolution.c: Likewise.
8971 * tree-sra.c: Likewise.
8972 * tree-ssa-address.c: Likewise.
8973 * tree-ssa-alias.c: Likewise.
8974 * tree-ssa-ccp.c: Likewise.
8975 * tree-ssa-coalesce.c: Likewise.
8976 * tree-ssa-copy.c: Likewise.
8977 * tree-ssa-dce.c: Likewise.
8978 * tree-ssa-dom.c: Likewise.
8979 * tree-ssa-dse.c: Likewise.
8980 * tree-ssa-forwprop.c: Likewise.
8981 * tree-ssa-ifcombine.c: Likewise.
8982 * tree-ssa-live.c: Likewise.
8983 * tree-ssa-loop-ch.c: Likewise.
8984 * tree-ssa-loop-im.c: Likewise.
8985 * tree-ssa-loop-ivcanon.c: Likewise.
8986 * tree-ssa-loop-ivopts.c: Likewise.
8987 * tree-ssa-loop-manip.c: Likewise.
8988 * tree-ssa-loop-niter.c: Likewise.
8989 * tree-ssa-loop-prefetch.c: Likewise.
8990 * tree-ssa-loop-unswitch.c: Likewise.
8991 * tree-ssa-loop.c: Likewise.
8992 * tree-ssa-math-opts.c: Likewise.
8993 * tree-ssa-operands.c: Likewise.
8994 * tree-ssa-phiopt.c: Likewise.
8995 * tree-ssa-phiprop.c: Likewise.
8996 * tree-ssa-pre.c: Likewise.
8997 * tree-ssa-propagate.c: Likewise.
8998 * tree-ssa-reassoc.c: Likewise.
8999 * tree-ssa-sccvn.c: Likewise.
9000 * tree-ssa-scopedtables.c: Likewise.
9001 * tree-ssa-sink.c: Likewise.
9002 * tree-ssa-strlen.c: Likewise.
9003 * tree-ssa-structalias.c: Likewise.
9004 * tree-ssa-tail-merge.c: Likewise.
9005 * tree-ssa-ter.c: Likewise.
9006 * tree-ssa-threadedge.c: Likewise.
9007 * tree-ssa-threadupdate.c: Likewise.
9008 * tree-ssa-uncprop.c: Likewise.
9009 * tree-ssa-uninit.c: Likewise.
9010 * tree-ssa.c: Likewise.
9011 * tree-ssanames.c: Likewise.
9012 * tree-stdarg.c: Likewise.
9013 * tree-streamer-in.c: Likewise.
9014 * tree-streamer-out.c: Likewise.
9015 * tree-streamer.c: Likewise.
9016 * tree-switch-conversion.c: Likewise.
9017 * tree-tailcall.c: Likewise.
9018 * tree-vect-data-refs.c: Likewise.
9019 * tree-vect-generic.c: Likewise.
9020 * tree-vect-loop-manip.c: Likewise.
9021 * tree-vect-loop.c: Likewise.
9022 * tree-vect-patterns.c: Likewise.
9023 * tree-vect-slp.c: Likewise.
9024 * tree-vect-stmts.c: Likewise.
9025 * tree-vectorizer.c: Likewise.
9026 * tree-vrp.c: Likewise.
9029 * ubsan.c: Likewise.
9030 * value-prof.c: Likewise.
9031 * var-tracking.c: Likewise.
9032 * varasm.c: Likewise.
9033 * varpool.c: Likewise.
9034 * vtable-verify.c: Likewise.
9036 * wide-int-print.cc: Likewise.
9037 * wide-int.cc: Likewise.
9038 * xcoffout.c: Likewise.
9040 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
9042 * Makefile.in (NO_PIE_CFLAGS): New.
9043 (NO_PIE_FLAG): Likewise.
9044 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9045 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9046 (BUILD_NO_PIE_CFLAGS): Likewise.
9047 (BUILD_NO_PIE_FLAG): Likewise.
9048 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9049 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9050 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9051 $(BUILD_NO_PIE_CFLAGS).
9052 (BUILD_CXXFLAGS): Likewise.
9053 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9054 $(BUILD_NO_PIE_FLAG).
9055 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
9056 (BUILD_NO_PIE_FLAG): Likewise.
9057 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9058 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9059 * configure: Regenerated.
9061 2015-10-29 Richard Biener <rguenther@suse.de>
9064 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9065 unsigned conditonal negation to ABS_EXPR.
9067 2015-10-29 Richard Biener <rguenther@suse.de>
9069 * gimple-match-head.c (gimple_simplify): Remove premature checking
9070 of builtin_decl_implicit of function calls we simplify.
9072 2015-10-29 Bin Cheng <bin.cheng@arm.com>
9074 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9075 (get_computation_cost_at): Ditto.
9076 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9079 2015-10-28 Tom de Vries <tom@codesourcery.com>
9081 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9084 2015-10-28 Jason Merrill <jason@redhat.com>
9086 * Makefile.in (TAGS): Include libcpp and libiberty.
9088 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9090 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9091 (extract_omp_for_data): Remove OpenACC special handling of
9094 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9095 (struct parallel): Update comment.
9096 (nvptx_reorg): Likewise.
9097 (nvptx_neuter): Cleanup whitespace.
9099 2015-10-28 Richard Henderson <rth@redhat.com>
9101 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
9103 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9106 * config/avr/predicates.md (low_io_address_operand): Don't
9107 consider MODE when computing upper bound.
9108 (io_address_operand): Likewise.
9110 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
9112 * fold-const.c (operand_equal_p): Do not verify that types are
9113 compatible for MEM_REFs.
9115 2015-10-28 Richard Biener <rguenther@suse.de>
9117 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
9118 in simplifying VEC_COND_EXPR conditions.
9120 2015-10-28 Tom de Vries <tom@codesourcery.com>
9122 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
9123 into vi_next of a full_var.
9125 2015-10-28 Tom de Vries <tom@codesourcery.com>
9127 * tree-ssa-structalias.c (new_var_info, make_heapvar)
9128 (make_constraint_from_restrict, make_constraint_from_global_restrict)
9129 (create_function_info_for, create_variable_info_for_1)
9130 (create_variable_info_for): Add and handle add_id parameter.
9131 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
9132 (init_base_vars): Add extra argument to calls to new_var_info.
9133 (get_vi_for_tree): Add extra argument to call to
9134 create_variable_info_for.
9135 (process_constraint, do_deref, process_all_all_constraints): Add extra
9136 argument to calls to new_scalar_tmp_constraint_exp.
9137 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
9138 argument to calls to make_heapvar.
9139 (make_restrict_var_constraints): Add extra argument to call to
9140 make_constraint_from_global_restrict.
9141 (intra_create_variable_infos): Add extra argument to call to
9142 create_variable_info_for_1.
9143 (ipa_pta_execute): Add extra argument to call to
9144 create_function_info_for.
9146 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9148 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
9149 (sibcall_value): Likewise.
9151 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9153 * config/nvptx/nvptx.h (struct machine_function): Add
9155 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
9156 nvptx_expand_oacc_join): Declare.
9157 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
9158 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
9159 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
9160 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
9161 UNSPECV_JOINING, UNSPECV_JOIN): New.
9162 (BITS, BITD): New mode iterators.
9163 (br_true_uni, br_false_uni): New.
9164 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
9165 (oacc_dim_size, oacc_dim_pos): New.
9166 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
9167 (oacc_fork, oacc_join): New.
9168 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
9169 (worker_load<mode>, worker_store<mode>): New.
9170 (nvptx_barsync): New.
9171 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
9172 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
9173 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
9174 worker_bcast_sym): New.
9175 (nvptx_option_override): Initialize worker broadcast buffer.
9176 (nvptx_emit_forking, nvptx_emit_joining): New.
9177 (nvptx_init_axis_predicate): New.
9178 (nvptx_declare_function_name): Init axis predicates.
9179 (nvptx_expand_call): Add fork/join markers around routine call.
9180 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
9181 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
9182 (nvptx_gen_vcast): New.
9183 (struct wcast_data_t): New.
9184 (enum propagate_mask): New.
9185 (nvptx_gen_wcast): New.
9186 (nvptx_print_operand): Add 'S' case.
9187 (struct parallel): New.
9188 (parallel::parallel, parallel::~parallel): New.
9189 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
9190 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
9191 nvptx_find_par, nvptx_discover_pars): New.
9192 (nvptx_propagate): New.
9193 (vprop_gen, nvptx_vpropagate): New.
9194 (wprop_gen, nvptx_wpropagate): New.
9196 (nvptx_single, nvptx_skip_par): New.
9197 (nvptx_process_pars, nvptx_neuter_pars): New.
9198 (ntptx_reorg): Split blocks, generate parallel structure, apply
9200 (nvptx_cannot_copy_insn_p): New.
9201 (nvptx_file_end): Emit worker broadcast decl.
9202 (nvptx_goacc_fork_join): New.
9203 (TARGET_CANNOT_COPY_INSN_P): Override.
9204 (TARGET_GOACC_FORK_JOIN): Override.
9206 2015-10-28 Richard Biener <rguenther@suse.de>
9208 * fold-const.c (negate_expr_p): Adjust the division case to
9209 properly avoid introducing undefined overflow.
9210 (fold_negate_expr): Likewise.
9212 2015-10-28 Richard Biener <rguenther@suse.de>
9214 PR tree-optimization/65962
9215 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9216 Avoid creating loop carried dependences also for outer loops
9217 of the loop a use to replace is in.
9219 2015-10-28 Richard Biener <rguenther@suse.de>
9221 * common.opt (fchecking): New flag controlling flag_checking.
9222 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
9223 * timevar.c (timer::print): Adjust output.
9224 * doc/invoke.texi (fchecking): Document.
9226 2015-10-28 Richard Biener <rguenther@suse.de>
9229 * fold-const.c (negate_expr_p): We cannot negate plus or minus
9230 if overflow is not wrapping. Likewise multiplication unless
9231 one operand is constant and not power of two.
9232 (fold_negate_expr): Adjust accordingly.
9234 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9236 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
9238 (is_oacc_parallel, is_oacc_kernels): New.
9239 (enclosing_target_ctx): May return NULL.
9240 (ctx_in_oacc_kernels_region): New.
9241 (check_oacc_kernel_gwv): New.
9242 (oacc_loop_or_target_p): Delete.
9243 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
9244 operands. Strip reductions fro kernels.
9245 (scan_omp_target): Don't calculate gwv mask.
9246 (lower_oacc_head_mark, lower_oacc_loop_marker,
9247 lower_oacc_head_tail): New.
9248 (struct oacc_collapse): New.
9249 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
9250 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9251 Remove OpenACC handling.
9252 (expand_oacc_for): New.
9253 (expand_omp_for): Call expand_oacc_for.
9254 (lower_omp_for): Call lower_oacc_head_tail.
9256 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
9258 * attribs.c (check_attribute_tables): New function, broken out from...
9259 (init_attributes): Use it.
9260 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
9261 gcc_checking_assert and checking_* functions to eliminate
9262 ENABLE_CHECKING conditionals.
9263 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
9264 (pass_expand::execute): Likewise.
9265 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
9266 * cgraphunit.c (mark_functions_to_output): Likewise.
9267 (cgraph_node::expand_thunk): Likewise.
9268 (symbol_table::compile): Likewise.
9269 * ddg.c (add_cross_iteration_register_deps): Likewise.
9270 (create_ddg_all_sccs): Likewise.
9271 * df-core.c (df_finish_pass, df_analyze): Likewise.
9272 * diagnostic-core.h: Likewise.
9273 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
9274 * dominance.c (calculate_dominance_info): Likewise.
9275 * dwarf2out.c (add_AT_die_ref): Likewise.
9276 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
9277 (loc_list_from_tree, gen_lexical_block_die): Likewise.
9278 gen_type_die_with_usage, gen_type_die): Likewise.
9279 (dwarf2out_decl): Likewise.
9280 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
9281 * except.c (duplicate_eh_regions): Likewise.
9282 * fwprop.c (register_active_defs, update_df_init): Likewise.
9283 (fwprop_init, fwprop_done): Likewise.
9284 (update_uses): Likewise.
9285 * ggc-page.c (ggc_grow): Likewise.
9286 * gimplify.c (gimplify_body): Likewise.
9287 (gimplify_hasher::equal): Likewise.
9288 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
9289 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
9291 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
9292 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
9293 * hash-table.h (::find_empty_slot_for_expand): Likewise.
9294 * ifcvt.c (if_convert): Likewise.
9295 * ipa-cp.c (ipcp_propagate_stage): Likewise.
9296 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
9297 (odr_type_p, odr_types_equivalent_p): Likewise.
9298 (add_type_duplicate, get_odr_type): Likewise.
9299 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9300 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9301 (sem_item_optimizer::verify_classes): Likewise.
9302 (sem_item_optimizer::traverse_congruence_split): Likewise.
9303 (sem_item_optimizer::checking_verify_classes): New.
9304 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
9306 * cfgrtl.c (commit_edge_insertions): Likewise.
9307 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
9308 (rtl_flow_call_edges_add): Likewise.
9309 * cgraph.c (symbol_table::create_edge): Likewise.
9310 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9311 * cgraph.h (symtab_node): Likewise.
9312 (symtab_node::checking_verify_symtab_nodes): Define.
9313 (cgraph_node::checking_verify_cgraph_nodes): Define.
9314 * cfghooks.h (checking_verify_flow_info): Define.
9315 * cfgloop.h (checking_verify_loop_structure): Define.
9316 * dominance.h (checking_verify_dominators): Define.
9317 * et-forest.c: Fix comment.
9318 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9319 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9320 ENABLE_CHECKING conditionals.
9321 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9322 * ipa-inline.c (inline_small_functions): Likewise.
9323 (early_inliner): Likewise.
9324 * ipa-inline.h (estimate_edge_growth): Likewise.
9325 * ipa-visibility.c (function_and_variable_visibility): Likewise.
9326 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9327 (ipa_single_use): Likewise.
9328 * ira-int.h: Likewise.
9329 * ira.c (ira): Likewise.
9330 * loop-doloop.c (doloop_optimize_loops): Likewise.
9331 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9332 * loop-invariant.c (move_loop_invariants): Likewise.
9333 * lra-assigns.c (lra_assign): Likewise.
9334 * lra-constraints.c (lra_constraints): Likewise.
9335 * lra-eliminations.c (lra_eliminate): Likewise.
9336 * lra-int.h (struct lra_reg): Likewise.
9337 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9338 (lra_create_live_ranges_1): Likewise.
9339 * lra-remat.c (create_remat_bb_data): Likewise.
9340 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9342 (check_rtl): Always define. Remove incorrect guard around
9343 extract_constrain_insn call.
9344 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9345 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9346 ENABLE_CHECKING conditionals.
9347 * lto-streamer-out.c (DFS::DFS): Likewise.
9348 (lto_output): Likewise.
9349 * lto-streamer.c (lto_streamer_init): Likewise.
9350 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9351 expand_omp_target, execute_expand_omp): Likewise.
9352 (lower_omp_target): Likewise.
9353 * passes.c (execute_function_todo): Likewise.
9354 (execute_todo, execute_one_pass): Likewise.
9355 (verify_curr_properties): Always define.
9356 * predict.c (tree_estimate_probability: Use flag_checking,
9357 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9358 ENABLE_CHECKING conditionals.
9359 (propagate_freq): Likewise.
9360 * pretty-print.c (pp_format): Likewise.
9361 * real.c (real_to_decimal_for_mode): Likewise.
9362 * recog.c (split_all_insns): Likewise.
9363 * regcprop.c (kill_value_one_regno): Likewise.
9364 (copy_value): Likewise.
9365 (validate_value_data): Define unconditionally.
9366 * reload.c: Fix comment.
9367 * timevar.c: Include options.h
9368 * tree-ssa.h (checking_verify_ssa): Define.
9369 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9370 * sched-deps.c (CHECK): Remove unused macro.
9371 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9372 gcc_checking_assert and checking_* functions to eliminate
9373 ENABLE_CHECKING conditionals.
9374 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9375 * sel-sched.c (struct moveop_static_params): Likewise.
9376 (find_best_reg_for_expr, move_cond_jump): Likewise.
9377 (move_op_orig_expr_not_found): Likewise.
9378 (code_motion_process_successors, move_op): Likewise.
9379 * ssa-iterators.h (first_readonly_imm_use): Likewise.
9380 (next_readonly_imm_use): Likewise.
9381 * store-motion.c (compute_store_table): Likewise.
9382 * symbol-summary.h (function_summary::function_summary): Likewise.
9383 * target.h (cumulative_args_t): Likewise.
9384 (get_cumulative_args, pack_cumulative_args): Likewise.
9385 * timevar.c: (timer::print): Likewise.
9386 * trans-mem.c (ipa_tm_execute): Likewise.
9387 * tree-cfg.c (move_stmt_op): Likewise.
9388 (move_sese_region_to_fn): Likewise.
9389 (gimple_flow_call_edges_add): Likewise.
9390 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9392 * tree-eh.c (remove_unreachable_handlers): Likewise.
9393 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9394 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9395 * tree-into-ssa.c (update_ssa): Likewise.
9396 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9397 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9398 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9399 * tree-predcom.c (suitable_component_p): Likewise.
9400 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9401 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9402 * tree-ssa-live.c (verify_live_on_entry): Likewise.
9403 * tree-ssa-live.h (register_ssa_partition): Likewise.
9404 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9405 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9406 (tree_transform_and_unroll_loop): Likewise.
9407 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9408 * tree-ssa-operands.c (get_expr_operands): Likewise.
9409 * tree-ssa-propagate.c (replace_exp_1): Likewise.
9410 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9411 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9412 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9413 * tree-ssanames.c (release_ssa_name_fn): Likewise.
9414 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9415 * tree-vect-loop-manip.c
9416 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9417 (slpeel_checking_verify_cfg_after_peeling): Likewise.
9418 (vect_do_peeling_for_loop_bound): Likewise.
9419 (vect_do_peeling_for_alignment): Likewise.
9420 * tree-vrp.c (supports_overflow_infinity): Likewise.
9421 (set_value_range): Likewise.
9422 * tree.c (free_lang_data_in_cgraph): Likewise.
9423 * value-prof.c (gimple_remove_histogram_value): Likewise.
9424 (free_hist): Likewise.
9425 * var-tracking.c (canonicalize_values_star): Likewise.
9426 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9428 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9430 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9431 IFN_GOACC_LOOP): New.
9432 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9433 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9434 IFN_UNIQUE_OACC_TAIL_MARK.
9435 (enum ifn_goacc_loop_kind): New.
9436 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9437 IFN_UNIQUE_OACC_JOIN cases.
9438 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9439 (expand_GOACC_LOOP): New.
9440 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9441 * omp-low.c: Include gimple-pretty-print.h.
9442 (struct oacc_loop): New.
9443 (enum oacc_loop_flags): New.
9444 (oacc_thread_numbers): New.
9445 (oacc_xform_loop): New.
9446 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9447 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9448 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9449 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9450 oacc_loop_discovery): New.
9451 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9452 oacc_loop_process): New.
9453 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9454 (execute_oacc_device_lower): Discover & process loops. Process
9456 * target.def (goacc.fork_join): Change sense of hook, clarify
9458 * doc/tm.texi: Regenerated.
9460 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9462 * target-insns.def (oacc_fork, oacc_join): Define.
9463 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9464 (goacc.fork_join): New GOACC hook.
9465 * targhooks.h (default_goacc_fork_join): Declare.
9466 * omp-low.c (default_goacc_forkjoin): New.
9467 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9468 * doc/tm.texi: Regenerate.
9470 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9472 * omp-low.c (oacc_init_rediction_array): New.
9473 (oacc_initialize_reduction_data): Initialize array.
9475 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9477 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9479 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9481 * internal-fn.c (expand_UNIQUE): New.
9482 * internal-fn.h (enum ifn_unique_kind): New.
9483 * internal-fn.def (IFN_UNIQUE): New.
9484 * target-insns.def (unique): Define.
9485 * gimple.h (gimple_call_internal_unique_p): New.
9486 * gimple.c (gimple_call_same_target_p): Check internal fn
9488 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9489 * tree-ssa-threadedge.c
9490 (record_temporary_equivalences_from_stmts): Likewise.
9491 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9493 2015-10-27 Richard Henderson <rth@redhat.com>
9496 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9497 narrowing subregs on SSE and MMX registers.
9498 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9499 appear to be sub-words of multi-register pseudos must be rejected.
9500 * doc/tm.texi: Regenerate.
9502 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9505 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9506 operands[0] is a reg before taking its REGNO in split condition.
9507 (*movdi_aarch64): Likewise.
9509 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9511 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9512 Handle floating point inner modes properly.
9514 2015-10-27 Alan Hayward <alan.hayward@arm.com>
9517 (vectorizable_live_operation): Change iterator.
9519 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
9520 Aditya Kumar <aditya.k7@samsung.com>
9522 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9523 function to schedule based on isl_schedule_node.
9524 (get_schedule_map_st): New schedule optimizer based on
9526 (scop_get_domains): New. Return the isl_union_set containing the
9527 domains of all the pbbs.
9528 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9530 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
9533 * calls.c (prepare_call_address): Don't handle -fno-plt here.
9534 * config/i386/i386.c (ix86_expand_call): Generate indirect call
9535 via GOT for -fno-plt. Support indirect call via GOT for x32.
9536 * config/i386/predicates.md (sibcall_memory_operand): Allow
9539 2015-10-27 Richard Biener <rguenther@suse.de>
9541 PR tree-optimization/68104
9542 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9543 strided access check ...
9544 (vect_compute_data_refs_alignment): ... here.
9546 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
9547 Joseph Myers <joseph@codesourcery.com>
9548 Mark Shinwell <shinwell@codesourcery.com>
9549 Andrew Stubbs <ams@codesourcery.com>
9550 Rich Felker <dalias@libc.org>
9552 * config.gcc: Handle --enable-fdpic.
9553 * config/sh/constraints.md (Ccl): New constraint.
9554 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9555 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9557 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9559 * config/sh/sh-protos.h (function_symbol_result): New struct.
9560 (function_symbol): Return function_symbol_result.
9561 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9563 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9565 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9566 (sh_option_override): Force -fPIC if FDPIC is in effect.
9567 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9568 UNSPEC_GOTOFFFUNCDESC cases.
9569 (prepare_move_operands): Use FDPIC initial GOT register for
9570 TLS-related GOT access; inhibit cross-section address offset constants
9572 (sh_assemble_integer): New function.
9573 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9574 PC-relative call sites.
9575 (expand_ashiftrt): Adapt invocation of function_symbol.
9576 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9577 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9578 UNSPEC_GOTOFFFUNCDESC.
9579 (legitimize_pic_address): Resolve function symbols to function
9580 descriptors for FDPIC. Do not use GOT-relative addressing for local
9581 data that may be read-only on FDPIC.
9582 (sh_emit_storesi, sh_emit_storehi): New functions.
9583 (sh_trampoline_init): Generate FDPIC trampolines.
9584 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9585 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9586 (sh_output_mi_thunk): Generate FDPIC call.
9587 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
9588 FDPIC, generate call site labels to use PC-relative addressing rather
9589 than GOT-relative addressing.
9590 (sh_conditional_register_usage): Make PIC register fixed and call used
9591 when FDPIC is in effect.
9592 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9593 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9594 sh_get_fdpic_reg_initial_val): New functions.
9595 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9597 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9598 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9599 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9600 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9602 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9603 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9604 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9605 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9607 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9608 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9609 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9610 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9611 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9612 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
9613 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
9614 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
9615 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9616 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
9617 block_move_real, block_lump_real, block_move_real_i4,
9618 block_lump_real_i4): Add support for FDPIC calls.
9619 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
9620 call_value_pop): Adjust for new function_symbol signature.
9621 * config/sh/sh.opt (-mfdpic): New option.
9622 * doc/install.texi (Options specification): Document --enable-fdpic.
9623 * doc/invoke.texi (SH Options): Document -mfdpic.
9626 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
9628 PR tree-optimization/65963
9629 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
9630 LSHIFT_EXPRs as equivalent MULT_EXPRs.
9632 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9635 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
9636 * config/arm/constraints.md (Dp): Update callsite.
9637 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
9639 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9641 * builtins.c (fold_builtin_load_exponent): Rename to...
9642 (fold_const_builtin_load_exponent): ...this and only handle
9644 (fold_builtin_2): Update accordingly.
9645 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
9647 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9649 * builtins.c (fold_builtin_logb): Rename to...
9650 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
9651 (fold_builtin_significand): Rename to...
9652 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
9653 (fold_builtin_1): Update accordingly.
9655 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9657 * builtins.c (fold_builtin_fmin_fmax): Delete.
9658 (fold_builtin_2): Handle constant fmin and fmax arguments here.
9659 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
9661 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
9663 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
9664 for register extension into sign and zero register extension.
9665 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
9666 for sign and zero register extension.
9667 (cortexa57_addrcost_table): Likewise.
9668 (xgene1_addrcost_table): Likewise.
9670 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9672 * fold-const.c (fold_minmax): Delete.
9673 (fold_binary_loc): Don't call it.
9674 * match.pd: Add rules previously handled by fold_minmax.
9676 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9678 * builtins.c (fold_builtin_fma): Remove constant handling.
9679 (fold_builtin_3): Handle constant fma arguments here.
9681 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9683 * builtins.c (fold_builtin_fabs): Remove constant handling.
9684 (fold_builtin_abs): Likewise.
9686 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9688 * builtins.c (fold_builtin_copysign): Delete.
9689 (fold_builtin_2): Handle constant copysign arguments here.
9690 * match.pd: Add rules previously handled by fold_builtin_copysign.
9692 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9694 * builtins.c (fold_builtin_signbit): Delete.
9695 (fold_builtin_2): Handle constant signbit arguments here.
9696 * match.pd: Add rules previously handled by fold_builtin_signbit.
9698 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9700 * match.pd: Handle sqrt(x) cmp 0 specially.
9702 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
9704 * tree-vect-generic.c (expand_vector_operations_1): Check
9705 optab type before using it.
9707 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9709 * config/aarch64/aarch64-protos.h
9710 (struct tune_params): Add autoprefetcher_model field.
9711 * config/aarch64/aarch64.c: Include params.h
9712 (generic_tunings): Specify autoprefetcher_model value.
9713 (cortexa53_tunings): Likewise.
9714 (cortexa57_tunings): Likewise.
9715 (cortexa72_tunings): Likewise.
9716 (thunderx_tunings): Likewise.
9717 (xgene1_tunings): Likewise.
9718 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
9719 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
9720 (aarch64_override_options_internal): Set
9721 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
9723 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9725 * builtins.c (fold_builtin_exponent): Delete.
9726 (fold_builtin_2): Handle constant expN arguments here.
9727 * match.pd: Fold expN(logN(x)) -> x.
9729 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9731 * builtins.c (fold_builtin_powi): Delete.
9732 (fold_builtin_2): Handle constant powi arguments here.
9733 * match.pd: Add rules previously handled by fold_builtin_powi.
9735 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9737 * builtins.c (fold_builtin_pow): Delete in favor of...
9738 (fold_const_builtin_pow): ...this new function. Only handle constant
9740 (fold_builtin_2): Update accordingly.
9741 * match.pd: Add rules previously handled by fold_builtin_pow.
9743 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9745 * builtins.c (fold_builtin_hypot): Delete.
9746 (fold_builtin_2): Handle constant hypot arguments here.
9747 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
9748 hypot(x, x) to fabs(x)*sqrt(2).
9750 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9752 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
9753 instead of make_ssa_name if not yet in SSA form.
9755 2015-10-27 Richard Biener <rguenther@suse.de>
9757 * cfg.c (free_edge): Add function argument and use it instead of cfun.
9758 (clear_edges): Likewise.
9759 * cfg.h (clear_edges): Adjust prototype.
9760 * cfgexpand.c (pass_expand::execute): Adjust.
9761 * cfgloop.c (release_recorded_exits): Add function argument and use
9763 * cfgloop.h (release_recorded_exits): Adjust prototype.
9764 (loops_state_satisfies_p): Add overload with function argument.
9765 (loops_state_set): Likewise.
9766 (loops_state_clear): Likewise.
9767 (struct loop_iterator): Add function argument to constructor
9768 and iterator and use it instead of cfun.
9769 (FOR_EACH_LOOP_FN): New macro.
9770 (loop_optimizer_finalize): Add overload with function argument.
9771 * loop-init.c (loop_optimizer_init): Adjust.
9772 (fix_loop_structure): Likewise.
9773 (loop_optimizer_finaliz): Add function argument and use it
9775 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
9776 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
9777 * cgraph.c (release_function_body): Do not push/pop cfun.
9778 * final.c (rest_of_clean_state): Adjust.
9779 * graphite.c (graphite_finalize): Likewise.
9780 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9781 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9782 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9783 (tree_unroll_loops_completely): Likewise.
9784 (pass_complete_unrolli::execute): Likewise.
9785 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
9786 Add function argument and use it instead of cfun.
9787 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
9789 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
9790 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
9792 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
9793 * tree-ssanames.c (fini_ssanames): Add function argument and use it
9795 * tree-ssanames.c (fini_ssanames): Adjust prototype.
9796 * tree-vrp.c (execute_vrp): Adjust.
9797 * value-prof.c (free_histograms): Add function argument and use it
9799 * value-prof.h (free_histograms): Adjust prototype.
9801 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9803 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
9804 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
9805 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
9807 2015-10-27 Tom de Vries <tom@codesourcery.com>
9809 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
9812 2015-10-27 Bin Cheng <bin.cheng@arm.com>
9814 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
9815 (inv_can_prop_to_addr_use): New function.
9816 (record_use): Call can_prop_to_addr_uses, set the new field.
9817 (get_inv_cost): Count cost if inv can't be propagated into its
9820 2015-10-26 Doug Evans <dje@google.com>
9822 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
9824 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
9826 * match.pd (fold_widened_comparison): Apply simplifications to all
9829 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
9831 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
9832 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
9833 * doc/tm.texi: Regenerated.
9834 * reorg.c (dbr_schedule): Use new hook.
9835 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
9837 2015-10-26 Jeff Law <law@redhat.com>
9839 PR tree-optimization/68013
9840 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9841 Make sure the first block in the path is in VISITED_BBs.
9843 2015-10-26 Richard Biener <rguenther@suse.de>
9844 Dominik Vogt <vogt@linux.vnet.ibm.com>
9847 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
9848 Properly prune ref->ref for accesses outside of ref.
9850 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9852 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
9853 new statements to be inserted if inplace. Allow calls to have
9856 2015-10-26 Richard Biener <rguenther@suse.de>
9858 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
9859 (do_valueize): New function.
9860 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
9862 * tree-ssa-threadedge.c: Remove builtins.h include, include
9864 (fold_assignment_stmt): Remove.
9865 (threadedge_valueize): New function.
9866 (record_temporary_equivalences_from_stmts): Use
9867 gimple_fold_stmt_to_constant_1, note additional cleanup
9870 2015-10-26 Richard Biener <rguenther@suse.de>
9872 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
9873 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
9875 2015-10-26 Alan Hayward <alan.hayward@arm.com>
9877 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
9878 VEC_COND_EXPR types.
9880 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9882 * auto-inc-dec.c (insert_move_insn_before): Delete.
9883 (attempt_change): Remember to cost the simple move in the
9884 FORM_PRE_ADD and FORM_POST_ADD cases.
9886 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
9889 * config/sh/sh.c (sh_vector_mode_supported_p): Use
9890 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
9892 2015-10-26 Tom de Vries <tom@codesourcery.com>
9894 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
9896 (intra_create_variable_infos): ... here.
9898 2015-10-26 Tom de Vries <tom@codesourcery.com>
9900 * tree-ssa-structalias.c (intra_create_variable_infos): Add
9901 restrict_pointer_p and recursive_restrict_p variables.
9903 2015-10-26 Tom de Vries <tom@codesourcery.com>
9905 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
9906 get_vi_for_tree call.
9908 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9911 * optabs.c (expand_atomic_compare_and_swap): Handle case when
9912 ptarget_oval or ptarget_bool are const0_rtx.
9914 2015-10-26 Christian Bruel <christian.bruel@st.com>
9916 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9917 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9918 * cp/method.c (implicitly_declare_fn): Likewise.
9919 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9920 * java/class.c (add_method_1): Likewise.
9922 2015-10-26 Richard Biener <rguenther@suse.de>
9924 * alloc-pool.h (base_pool_allocator): Use placement new.
9925 (base_pool_allocator::remove): Likewise. Compute size outside of
9928 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9930 * builtins.c (do_real_to_int_conversion): New function.
9931 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9932 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9934 * match.pd: Add rules previously handled by fold_fixed_mathfn
9935 and fold_builtin_int_roundingfn.
9937 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9939 * match.pd: Use macros to define built-in operator lists.
9941 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
9942 Richard Biener <rguenther@suse.de>
9944 * genmatch.c (dt_simplify::gen): Skip captures that are
9946 (parser::parse_expr): Allow captures in results too.
9947 * builtins.c (fold_builtin_cexp): Delete.
9948 (fold_builtin_1): Handle constant cexp arguments here.
9949 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9951 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
9953 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9954 conditional compilation.
9955 (base_pool_allocator::remove): Use flag_checking.
9957 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
9959 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9962 * dojump.c (do_compare_and_jump): Canonicalize both function and
9965 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
9968 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9971 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9974 * ipa-polymorphic-call.c
9975 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9976 instance offset with offset of outer type.
9978 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9980 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9982 2015-10-23 Caroline Tice <cmtice@google.com>
9984 (from Richard Biener
9985 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
9986 call to iterative_hash_host_wide_int.
9988 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
9990 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9993 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9995 * tree-vect-generic.c (expand_vector_operations_1): Check
9996 optab exists before use it.
9998 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10000 * tree-vect-generic.c (expand_vector_condition): Avoid
10001 uninitialized variable warning.
10003 2015-10-23 Jeff Law <law@redhat.com>
10005 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10007 (execute_todo): Call it here.
10008 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10010 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10012 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10013 Szabolcs Nagy <szabolcs.nagy@arm.com>
10015 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10017 2015-10-23 Jeff Law <law@redhat.com>
10019 PR tree-optimization/67830
10020 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10021 Explicitly verify the mask has no bits outside the type of
10022 the innermost operands.
10024 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10025 Szabolcs Nagy <szabolcs.nagy@arm.com>
10027 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10028 (MUSL_DYNAMIC_LINKER64): Define.
10029 (GNU_USER_DYNAMIC_LINKER32): Update.
10030 (GNU_USER_DYNAMIC_LINKER64): Update.
10031 (CHOOSE_DYNAMIC_LINKER): Update.
10033 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10034 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10035 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10036 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10037 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10038 (CHOOSE_DYNAMIC_LINKER): Update.
10039 (INCLUDE_DEFAULTS): Redefine.
10041 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10043 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10045 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10046 comparing addresses.
10048 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10050 * fold-const.c (operand_equal_p): Handle matching of vector
10053 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10055 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10057 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
10058 Andrew Pinski <apinski@cavium.com>
10060 PR rtl-optimization/67736
10061 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10064 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10066 PR middle-end/68066
10067 * tree.c (build_truth_vector_type): Support BLK mode
10068 returned for boolean vector.
10070 2015-10-23 Alan Hayward <alan.hayward@arm.com>
10072 PR tree-optimization/65947
10074 (vect_is_simple_reduction_1): Find condition reductions.
10075 (vect_model_reduction_cost): Add condition reduction costs.
10076 (get_initial_def_for_reduction): Add condition reduction initial var.
10077 (vect_create_epilog_for_reduction): Add condition reduction epilog.
10078 (vectorizable_reduction): Condition reduction support.
10079 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10080 * doc/sourcebuild.texi (Vector-specific attributes): Document
10083 2015-10-23 Richard Biener <rguenther@suse.de>
10085 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10088 2015-10-23 Richard Biener <rguenther@suse.de>
10089 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10091 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10092 into (A ^ B) - B to match.pd
10093 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10095 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
10097 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
10099 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
10101 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
10103 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
10104 INTEGER_CST@1)): New simplifier.
10106 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
10108 * builtins.c (integer_valued_real_p): Move to fold-const.c.
10109 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
10110 (fold_builtin_ceil, fold_builtin_round): Delete.
10111 (fold_builtin_1): Handle constant trunc, floor, ceil and round
10113 * convert.c (convert_to_real): Remove narrowing of rounding
10115 * fold-const.h (integer_valued_real_unary_p)
10116 (integer_valued_real_binary_p, integer_valued_real_call_p)
10117 (integer_valued_real_single_p, integer_valued_real_p): Declare.
10118 * fold-const.c (tree_single_nonnegative_warnv_p): Move
10119 name_registered_for_update_p check to SSA_NAME case statement.
10120 Don't call tree_simple_nonnegative_warnv_p for SSA names.
10121 (integer_valued_real_unary_p, integer_valued_real_binary_p)
10122 (integer_valued_real_call_p, integer_valued_real_single_p)
10123 (integer_valued_real_invalid_p): New functions.
10124 (integer_valued_real_p): Move from fold-const.c and rework
10125 to call the functions above. Handle SSA names.
10126 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
10127 * gimple-fold.c (gimple_assign_integer_valued_real_p)
10128 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
10129 (gimple_stmt_integer_valued_real_p): New functions.
10130 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
10131 Fold f(x)->x for the same f if x is known to be integer-valued.
10132 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
10133 the result. Canonicalize floor(x) as trunc(x) if x is
10136 2015-10-23 Tom de Vries <tom@codesourcery.com>
10138 * tree-ssa-structalias.c (intra_create_variable_infos): Use
10139 make_constraint_from.
10141 2015-10-23 Tom de Vries <tom@codesourcery.com>
10143 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
10144 setting of is_full_var in case of a single field.
10146 2015-10-22 Martin Sebor <msebor@redhat.com>
10149 * config/i386/i386.opt: Add missing periods to the ends of sentences.
10150 * config/msp430/msp430.opt: Same.
10152 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10154 * doc/extend.exp (Global Register Variables): Rewrite.
10156 2015-10-22 Jeff Law <law@redhat.com>
10158 * genattrtab.c (main): If we do not have any annul-true or annul-false
10159 slots, then write out a dummy eligible_for_annul_true or
10160 eligible_for_annul_false as needed.
10162 2015-10-22 Nick Clifton <nickc@redhat.com>
10164 * config/msp430/msp430.opt: Add -msilicon-errata and
10165 -msilicon-errata-warn.
10166 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
10168 * doc/invoke.texi: Document new options.
10170 2015-10-22 Richard Biener <rguenther@suse.de>
10172 PR tree-optimization/58497
10173 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
10174 (expand_vector_operations_1): Use it. Lower operations on
10175 all uniform vectors to scalar operations if the HW supports it.
10177 2015-10-22 Richard Biener <rguenther@suse.de>
10179 PR tree-optimization/19049
10180 PR tree-optimization/65962
10181 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
10182 to strided accesses if single-element interleaving doesn't work.
10184 2015-10-22 Richard Biener <rguenther@suse.de>
10186 PR middle-end/68046
10187 PR middle-end/61893
10188 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
10189 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
10190 (expand_unop): Likewise.
10192 2015-10-22 Richard Biener <rguenther@suse.de>
10194 * fold-const.c (fold_addr_of_array_ref_difference): Properly
10195 convert operands before folding a MINUS_EXPR.
10196 (fold_binary_loc): Move simplification of MINUS_EXPR on
10197 converted POINTER_PLUS_EXPRs ...
10198 * match.pd: ... here.
10200 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10202 * builtins.c (fold_builtin_tan): Delete.
10203 (fold_builtin_1): Handle constant tan arguments here.
10204 * match.pd: Simplify (tan (atan x)) to x.
10206 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10208 * builtins.c (fold_builtin_cproj): Delete.
10209 (fold_builtin_1): Handle constant arguments here.
10210 (build_complex_cproj): Move and rename to...
10211 * tree.c: (build_complex_inf): ...this.
10212 * tree.h (build_complex_inf): Declare.
10213 * match.pd: Fold cproj(x)->x if x has no infinity.
10214 Use build_complex_inf for existing cproj rules.
10216 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10219 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
10220 already have a comparison result.
10222 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10225 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
10226 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
10227 (aarch64_classify_address): Likewise.
10228 (aarch64_secondary_reload): Likewise.
10229 (aarch64_override_options_after_change_1): Adjust.
10230 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10231 Use aarch64_nopcrelative_literal_loads.
10232 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10233 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10236 2015-10-21 Martin Sebor <msebor@redhat.com>
10239 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
10240 (print_filtered_help): Reference aliased option's name and encourage
10241 readers to use it in preference to the alias if the former is not
10242 documented. Mention when using an option is diagnosed.
10243 * gcc.c (display_help): End each sentence with a period.
10245 * common.opt: End each sentence that describes an option with
10247 * config/aarch64/aarch64.opt: Same.
10248 * config/alpha/alpha.opt: Same.
10249 * config/arc/arc.opt: Same.
10250 * config/arm/arm.opt: Same.
10251 * config/avr/avr.opt: Same.
10252 * config/bfin/bfin.opt: Same.
10253 * config/c6x/c6x.opt: Same.
10254 * config/cr16/cr16.opt: Same.
10255 * config/cris/cris.opt: Same.
10256 * config/cris/linux.opt: Same.
10257 * config/darwin.opt: Same.
10258 * config/epiphany/epiphany.opt: Same.
10259 * config/fr30/fr30.opt: Same.
10260 * config/frv/frv.opt: Same.
10261 * config/ft32/ft32.opt: Same.
10262 * config/g.opt: Same.
10263 * config/h8300/h8300.opt: Same.
10264 * config/i386/cygming.opt: Same.
10265 * config/i386/djgpp.opt: Same.
10266 * config/i386/i386.opt: Same.
10267 * config/i386/interix.opt: Same.
10268 * config/i386/mingw-w64.opt: Same.
10269 * config/i386/mingw.opt: Same.
10270 * config/ia64/ia64.opt: Same.
10271 * config/ia64/ilp32.opt: Same.
10272 * config/iq2000/iq2000.opt: Same.
10273 * config/linux.opt: Same.
10274 * config/lm32/lm32.opt: Same.
10275 * config/lynx.opt: Same.
10276 * config/m32c/m32c.opt: Same.
10277 * config/m32r/m32r.opt: Same.
10278 * config/m68k/ieee.opt: Same.
10279 * config/m68k/m68k.opt: Same.
10280 * config/mcore/mcore.opt: Same.
10281 * config/mep/mep.opt: Same.
10282 * config/microblaze/microblaze.opt: Same.
10283 * config/mips/mips.opt: Same.
10284 * config/mmix/mmix.opt: Same.
10285 * config/mn10300/mn10300.opt: Same.
10286 * config/moxie/moxie.opt: Same.
10287 * config/msp430/msp430.opt: Same.
10288 * config/nios2/elf.opt: Same.
10289 * config/nios2/nios2.opt: Same.
10290 * config/nvptx/nvptx.opt: Same.
10291 * config/pa/pa-hpux.opt: Same.
10292 * config/pa/pa-hpux1010.opt: Same.
10293 * config/pa/pa-hpux1111.opt: Same.
10294 * config/pa/pa-hpux1131.opt: Same.
10295 * config/pa/pa.opt: Same.
10296 * config/pa/pa64-hpux.opt: Same.
10297 * config/pdp11/pdp11.opt: Same.
10298 * config/rl78/rl78.opt: Same.
10299 * config/rs6000/476.opt: Same.
10300 * config/rs6000/aix64.opt: Same.
10301 * config/rs6000/darwin.opt: Same.
10302 * config/rs6000/linux64.opt: Same.
10303 * config/rs6000/rs6000.opt: Same.
10304 * config/rs6000/sysv4.opt: Same.
10305 * config/s390/s390.opt: Same.
10306 * config/s390/tpf.opt: Same.
10307 * config/sh/sh.opt: Same.
10308 * config/sol2.opt: Same.
10309 * config/sparc/long-double-switch.opt: Same.
10310 * config/sparc/sparc.opt: Same.
10311 * config/spu/spu.opt: Same.
10312 * config/stormy16/stormy16.opt: Same.
10313 * config/tilegx/tilegx.opt: Same.
10314 * config/tilepro/tilepro.opt: Same.
10315 * config/v850/v850.opt: Same.
10316 * config/vax/vax.opt: Same.
10317 * config/visium/visium.opt: Same.
10318 * config/vms/vms.opt: Same.
10319 * config/vxworks.opt: Same.
10320 * config/xtensa/xtensa.opt: Same.
10322 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10323 Sebastian Pop <s.pop@samsung.com>
10325 * graphite-scop-detection.c (parameter_index_in_region): Update call to
10326 invariant_in_sese_p_rec.
10327 * graphite-sese-to-poly.c (extract_affine): Same.
10328 * sese.c (invariant_in_sese_p_rec): Pass in an extra
10329 parameter has_vdefs.
10330 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10331 variable depends on virtual definitions in the current region.
10332 * sese.h (invariant_in_sese_p_rec): Update declaration.
10334 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10335 Sebastian Pop <s.pop@samsung.com>
10337 * graphite-scop-detection.c (build_scops): Do not handle scops
10338 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10339 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10341 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
10343 * config.in: Regenerate.
10344 * configure: Regenerate.
10345 * configure.ac (CHECKING_P): Define.
10346 * system.h: Use CHECKING_P.
10348 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10351 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10352 is negative we don't know the type.
10353 (check_stmt_for_type_change): Skip constructors of non-polymorphic
10354 types as those won't help devirutalization.
10356 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10358 * fold-const.c (operand_equal_p): Add code matching empty constructors.
10360 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
10362 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10364 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10365 Add comments on sign of the result.
10366 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10367 Recurse on operand #1 instead of operand #0.
10368 <CEIL_MOD_EXPR>: Do not recurse.
10369 <ROUND_MOD_EXPR>: Likewise.
10371 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10373 * cfgrtl.c (pass_free_cfg::execute): Adjust.
10374 * final.c (dbr_sequence_length): Always define.
10375 (shorten_branches): Adjust.
10376 * genattr-common.c (main): Always define DELAY_SLOTS.
10377 * genattr.c (main): Unconditionally declare functions and define
10378 macros related to delay slots.
10379 * genattrtab.c (write_eligible_delay): Adjust.
10380 (main): Always write out delay slot functions.
10381 * opts.c (default_options_table): Adjust.
10382 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10383 (redirect_with_delay_list_safe_p): Likewise.
10384 (fill_simple_delay_slots): Likewise.
10385 (fill_slots_from_thread): Likewise.
10386 (make_return_insns): Likewise.
10387 (dbr_schedule): Likewise.
10388 (rest_of_handle_delay_slots): Likewise.
10389 (pass_delay_slots::gate): Likewise.
10390 * toplev.c (process_options): Likewise.
10392 2015-10-21 Richard Henderson <rth@redhat.com>
10394 * targhooks.c (default_addr_space_pointer_mode): Remove check
10395 for generic address space.
10396 (default_addr_space_address_mode): Likewise.
10397 (default_addr_space_valid_pointer_mode): Likewise.
10398 (default_addr_space_legitimate_address_p): Likewise.
10399 (default_addr_space_legitimize_address): Likewise.
10400 * target.def (addr_space.pointer_mode): Update documentation
10401 of default behavior.
10402 (addr_space.address_mode): Likewise.
10405 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10408 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10410 * builtins.c (fold_builtin_cabs): Delete.
10411 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10412 * match.pd: Add rules previously handled by fold_builtin_cabs.
10414 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10416 * fold-const.h (fold_strip_sign_ops): Delete.
10417 * fold-const.c (fold_strip_sign_ops): Likewise.
10418 (fold_unary_loc, fold_binary_loc): Remove calls to it.
10419 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10420 (fold_builtin_ccos): Delete.
10421 (fold_builtin_pow): Don't call fold_strip_sign_ops.
10422 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10423 Remove fndecl argument.
10424 (fold_builtin_1): Update calls accordingly. Handle constant
10425 cos, cosh, ccos and ccosh here.
10427 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10429 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10430 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10431 * common.opt (fssa-backprop): New option.
10432 * fold-const.h (negate_mathfn_p): Declare.
10433 * fold-const.c (negate_mathfn_p): Make public.
10434 * timevar.def (TV_TREE_BACKPROP): New.
10435 * tree-pass.h (make_pass_backprop): Declare.
10436 * passes.def (pass_backprop): Add.
10437 * gimple-ssa-backprop.c: New file.
10439 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10440 Sebastian Pop <s.pop@samsung.com>
10442 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10443 Do not call create_empty_if_region_on_edge when cond_expr is true.
10444 (translate_isl_ast_node_for): Check whether a guard has been generated.
10446 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10448 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10449 (operator=): Removed.
10450 (dr_info): Make alias_set number the last argument with default
10451 value of invalid_alias_set.
10452 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10454 (rewrite_reductions_out_of_ssa): Iterate only through the
10455 basic blocks which are inside region.
10456 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10457 * sese.h (struct sese_l): Removed assignment operator.
10458 (split_region_for_bb): Removed dead code.
10460 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10462 * graphite-poly.h (struct dr_info): Removed conversion constructor.
10463 (struct scop): Renamed scop::region to scop::scop_info
10464 (scop_set_region): Same.
10465 (SCOP_REGION): Removed
10466 (SCOP_CONTEXT): Removed.
10467 (POLY_SCOP_P): Removed.
10468 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10469 Rename scop->region to scop->scop_info.
10470 (add_parameters_to_ivs_params): Same.
10471 (graphite_regenerate_ast_isl): Same.
10472 * graphite-poly.c (new_scop): Same.
10474 (print_scop_params): Same.
10475 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10476 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10477 (dot_all_scops_1): Rename scop->region to scop->scop_info.
10478 (scop_detection::nb_pbbs_in_loops): Same.
10479 (find_scop_parameters): Same.
10480 (try_generate_gimple_bb): Same.
10481 (gather_bbs::before_dom_children): Same.
10482 (gather_bbs::after_dom_children): Same.
10483 (build_scops): Same.
10484 * graphite-sese-to-poly.c (build_scop_scattering): Same.
10485 (extract_affine_chrec): Same.
10486 (extract_affine): Same.
10487 (set_scop_parameter_dim): Same.
10488 (build_loop_iteration_domains): Same.
10489 (create_pw_aff_from_tree): Same.
10490 (add_param_constraints): Same.
10491 (build_scop_iteration_domain): Same.
10492 (build_scop_drs): Same.
10493 (analyze_drs_in_stmts): Same.
10494 (insert_out_of_ssa_copy_on_edge): Same.
10495 (rewrite_close_phi_out_of_ssa):Same.
10496 (rewrite_reductions_out_of_ssa):Same.
10497 (handle_scalar_deps_crossing_scop_limits):Same.
10498 (rewrite_cross_bb_scalar_deps):Same.
10499 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10500 (build_poly_scop):Same.
10501 (build_alias_set): Use pointer to dr_info.
10502 * graphite.c (print_graphite_scop_statistics):
10503 (graphite_transform_loops):
10504 * sese.h (struct sese_l): Remove conversion constructor.
10506 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10508 PR middle-end/67966
10509 * tree.c (verify_type): Verify that TYPE_MODE match
10510 between TYPE_CANONICAL and type.
10511 * expr.c (store_expr_with_bounds): Revert my previous change.
10512 * expmed.c (store_bit_field_1): Revert prevoius change.
10513 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10514 to match for all types.
10516 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
10518 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10521 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10523 * doc/tm.texi: Regenerated.
10524 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10525 * stor-layout.c (layout_type): Use mode to get vector mask size.
10526 * target.def (get_mask_mode): New.
10527 * targhooks.c (default_get_mask_mode): New.
10528 * targhooks.h (default_get_mask_mode): New.
10529 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10530 for boolean vector.
10531 * tree.c (MAX_BOOL_CACHED_PREC): New.
10532 (nonstandard_boolean_type_cache): New.
10533 (build_nonstandard_boolean_type): New.
10534 (make_vector_type): Vector mask has no canonical type.
10535 (build_truth_vector_type): New.
10536 (build_same_sized_truth_vector_type): New.
10537 (truth_type_for): Support vector masks.
10538 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10539 (build_truth_vector_type): New.
10540 (build_same_sized_truth_vector_type): New.
10541 (build_nonstandard_boolean_type): New.
10542 * tree-cfg.c (verify_gimple_comparison) Require boolean
10543 vector type for vector comparison.
10544 (verify_gimple_assign_ternary): Likewise.
10545 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10547 * tree-vect-stmts.c (vectorizable_condition): Use boolean
10548 vector type for vector comparison.
10549 * tree-vect-generic.c (elem_op_func): Add new operand to hold
10551 (do_unop): Adjust to modified function type.
10552 (do_binop): Likewise.
10553 (do_plus_minus): Likewise.
10554 (do_negate); Likewise.
10555 (expand_vector_piecewise): Likewise.
10556 (do_cond): Likewise.
10557 (do_compare): Use comparison instead of condition.
10558 (expand_vector_divmod): Use boolean vector type for comparison.
10559 (expand_vector_operations_1): Skip scalar mask operations.
10561 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10563 * omp-low.c (simd_clone_create): Set in_other_partition
10564 for created clones.
10566 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10568 * doc/extend.exp (Local Register Variables): Rewrite.
10570 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10572 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10573 and x*x in cases where the operands are sign ops. Extend these
10574 rules to handle copysign as a sign op (including for cos, cosh
10575 and pow, which already treated negate and abs as sign ops).
10577 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
10580 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10581 for 64-bit MS_ABI targets also when default incoming stack boundary
10584 2015-10-21 Richard Biener <rguenther@suse.de>
10586 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10587 cond stmts, enhanced and split out from ...
10588 (vn_phi_eq): ... here.
10590 2015-10-21 Richard Biener <rguenther@suse.de>
10592 PR middle-end/68031
10593 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10594 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10595 (tree_single_nonnegative_warnv_p): ... here. For SSA names
10596 make sure they are not registered for update.
10598 2015-10-21 Richard Biener <rguenther@suse.de>
10600 PR tree-optimization/68026
10601 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10602 unsigned VARYING values.
10604 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
10606 * asan.c (asan_emit_stack_protection): Don't pass local stack to
10607 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10608 NULL and use local stack than.
10609 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10610 in addition to __asan_init.
10611 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10612 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
10613 * asan.h (asan_intercepted_p): Handle new string builtins.
10614 * ubsan.c (ubsan_use_new_style_p): New function.
10615 (ubsan_instrument_float_cast): If location is unknown, assign
10616 input_location to loc. Propagate loc to ubsan_create_data if
10617 ubsan_use_new_style_p returned true.
10619 2015-10-21 Jeff Law <law@redhat.com>
10621 * Makefile.in (OBJS): Remove sched-vis.c
10622 * sched-vis.c: Removed. Code moved into...
10623 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
10624 * rtl.h: Remove prototypes for functions now living in print-rtl.c
10625 * print-rtl.h Add prototypes for new functions in print-rtl.c.
10626 * auto-inc-dec.c: Include print-rtl.h
10627 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
10628 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
10630 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
10633 2015-10-21 Richard Biener <rguenther@suse.de>
10634 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10636 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
10638 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
10639 about signed left shift stronger and clarify the cases when they're
10641 Move (a * (1 << b)) is (a << b) to match.pd.
10642 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
10643 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
10644 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
10646 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
10648 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
10649 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
10650 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
10652 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
10654 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
10656 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
10657 Szabolcs Nagy <szabolcs.nagy@arm.com>
10658 Alan Modra <amodra@gmail.com>
10660 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
10661 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
10662 (LINK_SPEC): Add %(link_secure_plt).
10663 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
10664 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
10666 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
10667 Szabolcs Nagy <szabolcs.nagy@arm.com>
10669 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
10670 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
10672 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10674 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
10676 (fusion_load_store): Use it.
10677 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
10678 ldp and stp in VD modes.
10679 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
10680 (store_pair<mode>, VD): Likewise.
10682 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
10684 PR rtl-optimization/67609
10685 * lra-splill.c (lra_final_code_change): Don't remove all
10688 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10690 * simplify-rtx.c (simplify_binary_operation): If either operand was
10691 a constant pool reference use them if all other simplifications failed.
10693 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10695 * config/aarch64/aarch64.md
10696 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
10697 * config/aarch64/aarch64-simd.md
10698 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
10699 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
10700 (aarch64_fpconst_pow_of_2): New function.
10701 (aarch64_vec_fpconst_pow_of_2): Likewise.
10702 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
10704 (aarch64_vec_fpconst_pow_of_2): Likewise.
10705 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
10706 (aarch64_fp_vec_pow2): Likewise.
10708 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
10710 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
10711 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
10712 * config/alpha/alpha.c (alpha_function_arg_advance): Update
10713 ALPHA_ARG_SIZE usage.
10714 (alpha_arg_partial_bytes): Ditto.
10716 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
10719 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
10720 error_mark_node decls.
10722 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
10726 * common/config/i386/i386-common.c (ix86_handle_option): Remove
10727 OPT_miamcu handling.
10728 * config/i386/i386.c (PTA_NO_80387): New macro.
10729 (processor_alias_table): Add PTA_NO_80387 to lakemont.
10730 (ix86_option_override_internal): Update MASK_80387 from
10731 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
10732 SSE math only if 80387 is supported. Don't change
10733 MASK_FLOAT_RETURNS.
10734 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
10735 80387 is supported.
10736 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
10737 if TARGET_80387 is true and TARGET_IAMCU is false.
10738 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
10739 is true and TARGET_IAMCU_P is false.
10741 2015-10-20 Richard Biener <rguenther@suse.de>
10743 PR tree-optimization/68017
10744 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
10746 2015-10-20 Martin Liska <mliska@suse.cz>
10748 * cgraphclones.c (cgraph_node::create_virtual_clone):
10749 Verify cgraph_node.local.versionable instead of calling
10750 tree_versionable_function_p.
10751 * ipa-cp.c (determine_versionability): Save the information
10752 to ipa_node_params summary.
10753 (ipcp_versionable_function_p): Use it.
10754 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
10755 (ipcp_generate_summary): Do not compute cgraph_node
10757 * ipa-inline-analysis.c (inline_generate_summary): Compute
10758 versionability for all cgraph nodes.
10759 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
10760 ipa_node_params::versionability.
10761 * ipa-prop.h (struct ipa_node_params): Declare it.
10763 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10766 * varasm.c (assemble_variable): Move special vtv handling to..
10767 (handle_vtv_comdat_sections): .. here. New function.
10768 (output_object_block): Handle vtv sections.
10770 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
10773 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
10775 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
10777 * doc/extend.texi: Update documentation WRT inline functions.
10779 2015-10-20 Alan Modra <amodra@gmail.com>
10782 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
10783 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10784 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10786 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
10788 PR rtl-optimization/66790
10789 * df.h (DF_MIR): New macro.
10790 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
10791 (DF_MIR_INFO_BB): New macro.
10792 (DF_MIR_IN, DF_MIR_OUT): New macros.
10793 (struct df_mir_bb_info): New.
10794 (df_mir): New macro.
10795 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
10797 (df_mir_get_bb_info): New.
10798 * df-problems.c (struct df_mir_problem_data): New.
10799 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
10800 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
10801 df_mir_confluence_0, df_mir_confluence_n,
10802 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
10803 df_mir_bottom_dump, df_mir_verify_solution_start,
10804 df_mir_verify_solution_end): New.
10805 (problem_MIR): New.
10806 (df_mir_add_problem, df_mir_simulate_one_insn): New.
10807 * timevar.def (TV_DF_MIR): New.
10808 * ree.c: Include bitmap.h
10809 (add_removable_extension): Add an INIT_REGS parameter. Use it
10810 to skip zero-extensions that may get an uninitialized register.
10811 (find_removable_extensions): Compute must-initialized registers
10812 using the MIR dataflow problem. Update the call to
10813 add_removable_extension.
10814 (find_and_remove_re): Call df_mir_add_problem.
10816 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
10818 * common/config/mn10300/mn10300-common.c
10819 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
10820 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
10822 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
10824 * doc/extend.texi (Explicit Register Variables): Simplify and
10825 avoid unnecessary and confusion abbreviations. Update cross
10827 doc/implement-c.tex: Update cross reference.
10829 2015-10-19 Jeff Law <law@redhat.com>
10831 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
10832 that create irreducible loops unless the path elimiantes a multiway
10835 2015-10-19 Richard Biener <rguenther@suse.de>
10837 PR tree-optimization/67975
10838 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
10839 * tree-cfg.c (extract_true_false_controlled_edges): Split out
10840 core worker from ...
10841 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
10842 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
10843 instead of block number for PHIs with two or one args.
10844 (vn_phi_eq): Compare edge predicates of PHIs that are in different
10847 2015-10-19 Richard Biener <rguenther@suse.de>
10849 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
10850 (gimple_stmt_nonnegative_warnv_p): Use it.
10851 * match.pd (CPROJ): New operator list.
10852 (cproj (complex ...)): Move simplifications from ...
10853 * builtins.c (fold_builtin_cproj): ... here.
10855 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10857 * config/i386/i386.c (ix86_expand_vector_move): Use
10858 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
10861 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10863 * doc/invoke.texi: Replace @optindex with @opindex.
10865 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10868 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
10869 arch= is set, clear all bits in x_ix86_isa_flags, except for
10870 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
10872 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
10874 PR middle-end/68002
10875 * common.opt (fkeep-static-functions): New option.
10876 * doc/invoke.texi: Document it.
10877 * cgraphunit.c (cgraph_node::finalize_function): Use it.
10879 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10881 * sched-int.h (struct autopref_multipass_data_): Remove offset
10882 field. Add min_offset, max_offset, multi_mem_insn_p fields.
10883 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
10884 (autopref_multipass_init): Use it. Handle PARALLEL sets.
10885 (autopref_rank_data): New function.
10886 (autopref_rank_for_schedule): Use it.
10887 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
10889 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
10892 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
10894 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10896 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
10897 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
10898 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
10899 (STANDARD_STARTFILE_PREFIX_1): New.
10900 (STANDARD_STARTFILE_PREFIX_2): New.
10902 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10904 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
10905 (darwin_driver_init): Note a version-min when provided on the c/l.
10906 * config/darwin.h (%darwin_minversion): Remove.
10907 * config/i386/darwin.h: Likewise.
10908 * config/rs6000/darwin.h: Likewise.
10909 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
10910 rather than an arbitrary constant.
10912 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10914 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10915 PPC, detect conflicts between -arch and multilib settings. Detect
10916 and warn about conflicts between multiple -arch definitions.
10918 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10920 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10922 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10924 * lra-constraints.c (add_next_usage_insn): Change argument type
10925 from rtx to rtx_insn *.
10927 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
10929 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10932 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
10934 * config/tilepro/gen-mul-tables.cc: Adjust include files.
10935 * config/tilegx/mul-tables.c: Regenerate.
10936 * config/tilepro/mul-tables.c: Regenerate.
10938 * config/tilegx/tilegx-c.c: Adjust include files.
10939 * config/tilegx/tilegx.c: Likewise.
10940 * config/tilepro/tilepro-c.c: Likewise.
10941 * config/tilepro/tilepro.c: Likewise.
10942 * config/aarch64/aarch64-builtins.c: Likewise.
10943 * config/aarch64/aarch64.c: Likewise.
10944 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10945 * config/alpha/alpha.c: Likewise.
10946 * config/arc/arc.c: Likewise.
10947 * config/arm/aarch-common.c: Likewise.
10948 * config/arm/arm-builtins.c: Likewise.
10949 * config/arm/arm-c.c: Likewise.
10950 * config/arm/arm.c: Likewise.
10951 * config/avr/avr-c.c: Likewise.
10952 * config/avr/avr-devices.c: Likewise.
10953 * config/avr/avr-log.c: Likewise.
10954 * config/avr/avr.c: Likewise.
10955 * config/bfin/bfin.c: Likewise.
10956 * config/c6x/c6x.c: Likewise.
10957 * config/cr16/cr16.c: Likewise.
10958 * config/cris/cris.c: Likewise.
10959 * config/darwin-c.c: Likewise.
10960 * config/darwin-driver.c: Likewise.
10961 * config/darwin.c: Likewise.
10962 * config/default-c.c: Likewise.
10963 * config/epiphany/epiphany.c: Likewise.
10964 * config/epiphany/mode-switch-use.c: Likewise.
10965 * config/epiphany/resolve-sw-modes.c: Likewise.
10966 * config/fr30/fr30.c: Likewise.
10967 * config/frv/frv.c: Likewise.
10968 * config/ft32/ft32.c: Likewise.
10969 * config/glibc-c.c: Likewise.
10970 * config/h8300/h8300.c: Likewise.
10971 * config/i386/host-cygwin.c: Likewise.
10972 * config/i386/host-mingw32.c: Likewise.
10973 * config/i386/i386-c.c: Likewise.
10974 * config/i386/i386.c: Likewise.
10975 * config/i386/msformat-c.c: Likewise.
10976 * config/i386/winnt-cxx.c: Likewise.
10977 * config/i386/winnt-stubs.c: Likewise.
10978 * config/i386/winnt.c: Likewise.
10979 * config/ia64/ia64-c.c: Likewise.
10980 * config/ia64/ia64.c: Likewise.
10981 * config/iq2000/iq2000.c: Likewise.
10982 * config/lm32/lm32.c: Likewise.
10983 * config/m32c/m32c-pragma.c: Likewise.
10984 * config/m32c/m32c.c: Likewise.
10985 * config/m32r/m32r.c: Likewise.
10986 * config/mcore/mcore.c: Likewise.
10987 * config/mep/mep-pragma.c: Likewise.
10988 * config/mep/mep.c: Likewise.
10989 * config/microblaze/microblaze-c.c: Likewise.
10990 * config/microblaze/microblaze.c: Likewise.
10991 * config/mips/mips-tables.opt
10992 * config/mips/mips.c: Likewise.
10993 * config/mmix/mmix.c: Likewise.
10994 * config/mn10300/mn10300.c: Likewise.
10995 * config/moxie/moxie.c: Likewise.
10996 * config/msp430/msp430-c.c: Likewise.
10997 * config/msp430/msp430.c: Likewise.
10998 * config/nds32/nds32-cost.c: Likewise.
10999 * config/nds32/nds32-fp-as-gp.c: Likewise.
11000 * config/nds32/nds32-intrinsic.c: Likewise.
11001 * config/nds32/nds32-isr.c: Likewise.
11002 * config/nds32/nds32-md-auxiliary.c: Likewise.
11003 * config/nds32/nds32-memory-manipulation.c: Likewise.
11004 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11005 * config/nds32/nds32-predicates.c: Likewise.
11006 * config/nds32/nds32.c: Likewise.
11007 * config/nios2/nios2.c: Likewise.
11008 * config/nvptx/mkoffload.c: Likewise.
11009 * config/nvptx/nvptx.c: Likewise.
11010 * config/pa/pa.c: Likewise.
11011 * config/pdp11/pdp11.c: Likewise.
11012 * config/rl78/rl78-c.c: Likewise.
11013 * config/rl78/rl78.c: Likewise.
11014 * config/rs6000/host-darwin.c: Likewise.
11015 * config/rs6000/rs6000-c.c: Likewise.
11016 * config/rs6000/rs6000-linux.c: Likewise.
11017 * config/rs6000/rs6000.c: Likewise.
11018 * config/rx/rx.c: Likewise.
11019 * config/s390/s390-c.c: Likewise.
11020 * config/s390/s390.c: Likewise.
11021 * config/sh/sh-c.c: Likewise.
11022 * config/sh/sh-mem.cc: Likewise.
11023 * config/sh/sh.c: Likewise.
11024 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11025 * config/sh/sh_treg_combine.cc: Likewise.
11026 * config/sol2-c.c: Likewise.
11027 * config/sol2-cxx.c: Likewise.
11028 * config/sol2-stubs.c: Likewise.
11029 * config/sol2.c: Likewise.
11030 * config/sparc/sparc-c.c: Likewise.
11031 * config/sparc/sparc.c: Likewise.
11032 * config/spu/spu-c.c: Likewise.
11033 * config/spu/spu.c: Likewise.
11034 * config/stormy16/stormy16.c: Likewise.
11035 * config/v850/v850-c.c: Likewise.
11036 * config/v850/v850.c: Likewise.
11037 * config/vax/vax.c: Likewise.
11038 * config/visium/visium.c: Likewise.
11039 * config/vms/vms-c.c: Likewise.
11040 * config/vms/vms.c: Likewise.
11041 * config/vxworks.c: Likewise.
11042 * config/winnt-c.c: Likewise.
11043 * config/xtensa/xtensa.c: Likewise.
11045 2015-10-16 Christian Bruel <christian.bruel@st.com>
11048 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11049 (FUNCTION_BOUNDARY_P): New macro:
11050 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11052 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11053 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11054 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11055 * function.c (allocate_struct_function): Call
11056 relayout_function hook.
11057 * passes.c (rest_of_decl_compilation): Likewise.
11059 2015-10-16 Christian Bruel <christian.bruel@st.com>
11062 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11063 * config/arm/arm.c (arm_option_override_internal): Call
11064 arm_override_options_after_change_1.
11065 (arm_override_options_after_change): New function.
11066 (arm_override_options_after_change_1): Likewise.
11067 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11069 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11072 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11073 empty constructors.
11075 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
11077 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11078 argument is an ADDR_EXPR.
11080 2015-10-16 Richard Biener <rguenther@suse.de>
11082 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11083 and get rid of force_gimple_operand_gsi.
11084 (gimple_fold_builtin_memory_chk): Likewise.
11085 (gimple_fold_builtin_stxcpy_chk): Likewise.
11086 (rewrite_to_defined_overflow): Likewise.
11087 (gimple_convert_to_ptrofftype): New function.
11088 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11090 2015-10-16 Richard Biener <rguenther@suse.de>
11092 * tree-nested.h (build_addr): Adjust prototype.
11093 * tree-nested.c (build_addr): Remove context argument and use
11095 (get_static_chain): Adjust calls to build_addr.
11096 (convert_nl_goto_reference): Likewise.
11097 (convert_tramp_reference_op): Likewise.
11098 (finalize_nesting_tree_1): Likewise.
11099 * value-prof.c (gimple_ic): Likewise.
11100 * gimple-low.c (lower_builtin_setjmp): Likewise.
11101 * tree-parloops.c (take_address_of): Likewise.
11102 (create_call_for_reduction_1): Likewise.
11103 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
11104 (gimple_gen_ic_func_profiler): Likewise.
11106 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11108 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11109 empty constructors.
11111 2015-10-16 Michael Collison <michael.collison@linaro.org>
11112 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11114 * match.pd ((x < y) && (x < z) -> x < min (y,z),
11115 (x > y) and (x > z) -> x > max (y,z))
11117 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11118 Szabolcs Nagy <szabolcs.nagy@arm.com>
11120 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
11121 (DYNAMIC_LINKER): Renamed to ...
11122 (GLIBC_DYNAMIC_LINKER): This.
11123 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
11125 2015-10-15 Marek Polacek <polacek@redhat.com>
11127 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
11128 gimple_call_builtin instead of is_gimple_call.
11130 2015-10-15 Richard Biener <rguenther@suse.de>
11132 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
11134 2015-10-15 Richard Biener <rguenther@suse.de>
11136 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
11137 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
11138 * tree-vect-loop.c (get_initial_def_for_induction): Drop
11139 use of force_gimple_operand in favor of gimple_build.
11140 Use vect_get_new_ssa_name.
11141 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
11142 (vectorizable_mask_load_store): Likewise.
11143 (vectorizable_call): Likewise.
11144 (vectorizable_store): Likewise.
11145 (vectorizable_load): Likewise.
11146 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
11148 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
11150 PR tree-optimization/67945
11151 * tree-pass.h (PROP_gimple_opt_math): New property flag.
11152 * generic-match-head.c (canonicalize_math_p): New function.
11153 * gimple-match-head.c: Include tree-pass.h.
11154 (canonicalize_math_p): New function.
11155 * match.pd: Group math built-in rules into simplifications
11156 and canonicalizations. Guard the latter with canonicalize_math_p.
11157 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
11158 PROP_gimple_opt_math property.
11160 2015-10-15 Marek Polacek <polacek@redhat.com>
11162 PR tree-optimization/67953
11163 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
11165 2015-10-15 Jiong Wang <jiong.wang@arm.com>
11167 * config.gcc: Recognize "." in architecture base name for AArch64.
11169 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11171 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
11173 * config/mips/mips.c (mips_setup_incoming_varargs): Use
11174 ROUND_DOWN to calculate off.
11175 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
11176 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
11179 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
11181 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
11183 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
11184 Torvald Riegel <triegel@redhat.com>
11187 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
11188 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11189 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
11190 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
11191 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
11192 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11193 trechkpt, treclaim, tsr, ttest): New define_expands.
11194 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11195 __TM_FENCE__ for htm.
11196 * doc/extend.texi: Update documentation for htm builtins.
11198 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11201 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
11202 REG_CFA_EXPRESSION to aligned SSE stores.
11204 2015-10-14 Jeff Law <law@redhat.com>
11206 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
11207 num_threaded_edges for successful FSM threads too.
11209 2015-10-14 Richard Biener <rguenther@suse.de>
11211 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
11212 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
11213 (vect_get_vec_def_for_operand): Remove unused parameter.
11214 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
11215 (vect_create_epilog_for_reduction): Likewise.
11216 (vectorizable_reduction): Likewise.
11217 (vectorizable_live_operation): Likewise.
11218 * tree-vect-patterns.c (type_conversion_p): Likewise.
11219 (vect_recog_vector_vector_shift_pattern): Likewise.
11220 (check_bool_pattern): Likewise.
11221 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11222 (vect_analyze_slp_cost_1): Likewise.
11223 * tree-vect-stmts.c (process_use): Likewise.
11224 (vect_get_vec_def_for_operand): Do not handle reductions.
11225 (vect_get_vec_defs): Adjust.
11226 (vectorizable_mask_load_store): Likewise.
11227 (vectorizable_call): Likewise.
11228 (vectorizable_simd_clone_call): Likewise.
11229 (vect_get_loop_based_defs): Likewise.
11230 (vectorizable_conversion): Likewise.
11231 (vectorizable_assignment): Likewise.
11232 (vectorizable_shift): Likewise.
11233 (vectorizable_operation): Likewise.
11234 (vectorizable_store): Likewise.
11235 (vectorizable_load): Likewise.
11236 (vect_is_simple_cond): Likewise.
11237 (vectorizable_condition): Likewise.
11238 (vect_is_simple_use): Remove unused parameters.
11239 (vect_is_simple_use_1): Adjust and rename.
11241 2015-10-14 Richard Biener <rguenther@suse.de>
11243 PR tree-optimization/67915
11244 * match.pd: Handle comparisons of addresses of STRING_CSTs.
11245 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
11246 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
11247 stmt folding in favor of GIMPLE one.
11249 2015-10-14 Marek Polacek <polacek@redhat.com>
11251 PR tree-optimization/67815
11252 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
11253 (reassociate_bb): Call it.
11255 2015-10-14 Richard Biener <rguenther@suse.de>
11257 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11258 Reset info at start.
11259 (vect_analyze_group_access_1): Add debug print.
11260 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
11261 (vect_compute_single_scalar_iteration_cost): ... to this.
11262 (vect_analyze_loop_2): Adjust.
11263 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
11264 * tree-vectorizer.h: ... here.
11265 (add_stmt_info_to_vec): Remove.
11266 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
11268 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
11270 * targhooks.c (default_target_option_pragma_parse): Do not warn if
11271 called on behalf of "#pragma GCC pop_options".
11273 2015-10-14 Tom de Vries <tom@codesourcery.com>
11275 * cfganal.c (verify_no_unreachable_blocks): New function.
11276 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
11277 verify_no_unreachable_blocks.
11278 cfganal.h (verify_no_unreachable_blocks): Declare.
11280 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
11282 * common.opt: Add flag_checking.
11283 * system.h (CHECKING_P): Define.
11285 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11286 Aldy Hernandez <aldyh@redhat.com>
11287 Ilya Verbin <ilya.verbin@intel.com>
11289 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
11290 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
11291 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
11292 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
11293 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
11294 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
11295 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
11296 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
11297 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
11298 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
11299 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11300 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11301 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
11302 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
11303 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
11304 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
11305 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
11306 (struct cgraph_simd_clone_arg): Adjust comment.
11307 * coretypes.h (struct gomp_ordered): New forward decl.
11308 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
11309 set critical clauses to it.
11310 (gimple_build_omp_ordered): Return gomp_ordered * instead of
11311 gimple *. Add CLAUSES argument, set ordered clauses to it.
11312 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
11313 GIMPLE_OMP_ORDERED.
11314 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
11315 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
11316 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
11317 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11318 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
11319 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11320 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
11321 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11323 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11324 (gomp_critical): Add clauses field.
11325 (gomp_ordered): New struct.
11326 (is_a_helper <gomp_ordered *>::test): New inline.
11327 (gimple_build_omp_critical): Add CLAUSES argument.
11328 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
11329 instead of gimple *.
11330 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11331 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11332 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11333 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11335 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11336 (dump_gimple_omp_target): Handle enter data and exit data.
11337 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11338 (dump_gimple_omp_critical): Print clauses.
11339 (dump_gimple_omp_ordered): New function.
11340 (dump_gimple_omp_task): Handle taskloop.
11341 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11342 GIMPLE_OMP_ORDERED.
11343 * gimple-walk.c (walk_gimple_op): Walk clauses on
11344 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11345 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11346 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11347 (struct gimplify_omp_ctx): Add loop_iter_var,
11348 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11349 and target_firstprivatize_array_bases fields.
11350 (delete_omp_context): Release loop_iter_var.
11351 (gimplify_bind_expr): Handle ORT_NONE.
11352 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11353 ORT_COMBINED_TARGET.
11354 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11355 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11356 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
11357 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
11358 ctx->target_map_scalars_firstprivate.
11359 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
11360 data sharing clauses. For data sharing clause with VLA decl
11361 on omp target/target data don't add firstprivate for the pointer.
11362 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11363 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11364 the addition of ORT_COMBINED_TARGET.
11365 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
11366 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
11367 pointers as zero length array sections and
11368 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11370 (omp_check_private): Handle omp_member_access_dummy_var vars.
11371 (find_decl_expr): New function.
11372 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
11373 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11374 Handle OMP_CLAUSE_GANG separately. Handle
11375 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11376 clauses. Diagnose linear clause on combined
11377 distribute {, parallel for} simd construct, unless it is the loop
11378 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11379 Handle map clauses with COMPONENT_REF. Initialize
11380 ctx->target_map_scalars_firstprivate,
11381 ctx->target_firstprivatize_array_bases and
11382 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
11383 linear clause even to target region if combined. Remove
11384 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11385 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
11386 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11387 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
11388 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11389 For linear clause on worksharing loop combined with parallel add
11390 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
11391 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
11392 omp_member_access_dummy_var vars. Add lastprivate clause to outer
11393 taskloop if needed.
11394 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11395 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11396 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11398 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
11399 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11400 in target body. Handle removal of struct mapping if struct is not
11401 seen in target body. Remove GOMP_MAP_STRUCT map clause on
11402 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
11403 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
11404 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11405 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11406 clause appear together. Handle
11407 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
11408 clause if it has map-type-modifier always. Handle
11409 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11411 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11412 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11414 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
11415 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
11416 iterators in doacross loops.
11417 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11418 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
11419 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
11420 for the addition of ORT_COMBINED_TARGET.
11421 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11422 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
11423 and OMP_TARGET_EXIT_DATA.
11424 (gimplify_omp_ordered): New function.
11425 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11426 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
11427 Gimplify clauses on OMP_CRITICAL.
11428 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11429 expand_GOMP_SIMD_ORDERED_END): New functions.
11430 * internal-fn.def (GOMP_SIMD_ORDERED_START,
11431 GOMP_SIMD_ORDERED_END): New internal functions.
11432 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11433 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11434 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11435 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11436 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11437 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11438 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11439 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11440 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11441 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11442 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11443 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11444 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11445 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11447 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11448 GOMP_target_data_41, adjust type.
11449 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11450 GOMP_target_update_41, adjust type.
11451 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11453 (struct omp_for_data): Add ordered and simd_schedule fields.
11454 (omp_member_access_dummy_var, unshare_and_remap_1,
11455 unshare_and_remap, is_taskloop_ctx): New functions.
11456 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11457 (extract_omp_for_data): Handle taskloops and doacross loops
11458 and simd schedule modifier.
11459 (omp_adjust_chunk_size): New function.
11460 (get_ws_args_for): Use it.
11461 (lookup_sfield): Change first argument to splay_tree_key,
11462 add overload with first argument tree.
11463 (maybe_lookup_field): Likewise.
11464 (use_pointer_for_field): Handle omp_member_access_dummy_var.
11465 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11466 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11467 (build_outer_var_ref): Add LASTPRIVATE argument, handle
11468 taskloops and omp_member_access_dummy_var vars.
11469 (build_sender_ref): Change first argument to splay_tree_key,
11470 add overload with first argument tree.
11471 (install_var_field): For mask & 8 use &DECL_UID as key instead
11472 of the tree itself.
11473 (fixup_child_record_type): Const qualify *.omp_data_i.
11474 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11475 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11476 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11477 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11478 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11479 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11480 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11482 (add_taskreg_looptemp_clauses): New function.
11483 (scan_omp_parallel): Use it.
11484 (scan_omp_task): Likewise.
11485 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11486 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11487 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11488 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
11489 sandwiched taskloop constructs. Type check
11490 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
11491 region. Diagnose depend(source) or depend(sink:...) on
11492 target constructs or task/taskloop.
11493 (handle_simd_reference): Use get_name.
11494 (lower_rec_input_clauses): Likewise. Ignore all
11495 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11496 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
11497 before passing it to omp_clause_{default,copy}_ctor. Handle
11498 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
11499 lastprivate_firstprivate flag for linear that needs copyin and
11500 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11501 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11502 on taskloop lookup decl in outer context. Pass true to
11503 build_outer_var_ref lastprivate argument. Handle
11504 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11505 outside of outer taskloop for.
11506 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11508 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11509 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
11510 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
11511 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
11512 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11513 abstract origin. Handle omp_member_access_dummy_var vars.
11514 (expand_parallel_call): Use expand_omp_build_assign.
11515 (expand_task_call): Handle taskloop construct expansion. Add
11516 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
11517 integers. Add priority argument to GOMP_task* calls. Or in
11518 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11520 (expand_omp_build_assign): Add prototype. Add AFTER
11521 argument, if true emit statements after *GSI_P and continue linking.
11522 (expand_omp_taskreg): Adjust expand_task_call caller.
11523 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11524 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11525 zero_iter2_bb and first_zero_iter2 arguments, handle computation
11526 of counts even for ordered loops.
11527 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11528 (expand_omp_ordered_source, expand_omp_ordered_sink,
11529 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11531 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
11532 clauses on worksharing loop. Handle DOACROSS loop expansion.
11533 (expand_omp_for_static_nochunk): Handle linear clauses on
11534 worksharing loop. Adjust expand_omp_for_init_counts
11536 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
11537 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
11538 expand_omp_for_init_counts callers.
11539 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11541 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11542 Handle doacross loops.
11543 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11544 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
11545 GOMP_target_{41,update_41,enter_exit_data} libcalls.
11546 (expand_omp): Don't expand ordered depend constructs here, record
11547 ord_stmt instead for later expand_omp_for_generic.
11548 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11549 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
11550 clause as stand-alone directive.
11551 (lower_omp_ordered_clauses): New function.
11552 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11553 don't lower anything.
11554 (lower_omp_for_lastprivate): Use last _looptemp_ clause
11555 on taskloop for comparison.
11556 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
11557 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11558 expansion for linear adjustments.
11559 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11560 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11561 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
11562 to tree * pointing to the stmt's clauses.
11563 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11564 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11565 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11566 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11567 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11568 clauses. Always use short kind and 8-bit align shift.
11569 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11570 (struct lower_omp_regimplify_operands_data): New type.
11571 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11573 (lower_omp_1): Use lower_omp_regimplify_operands instead of
11574 gimple_regimplify_operands.
11575 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11576 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
11577 clause as stand-alone directive.
11578 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11579 (simd_clone_mangle): Mangle the various linear kinds
11581 (simd_clone_adjust_argument_types): Handle
11582 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11583 (simd_clone_init_simd_arrays): Don't do anything for uval.
11584 (simd_clone_adjust): Handle
11585 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11586 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11587 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11588 * omp-low.h (omp_member_access_dummy_var): New prototype.
11589 * passes.def (pass_simduid_cleanup): Schedule another copy of the
11590 pass after all optimizations.
11591 * tree.c (omp_clause_code_name): Add entries for
11592 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11593 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11594 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
11595 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11596 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11597 OMP_CLAUSE_REDUCTION 5 arguments. Handle
11598 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11599 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11601 * tree-core.h (enum omp_clause_linear_kind): New.
11602 (struct tree_omp_clause): Change type of map_kind
11603 from unsigned char to unsigned int. Add subcode.if_modifier
11604 and subcode.linear_kind fields.
11605 (enum omp_clause_code): Add
11606 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11607 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11608 (OMP_CLAUSE_REDUCTION): Document
11609 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11610 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11611 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11612 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
11614 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
11616 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
11618 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
11619 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
11621 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
11622 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
11623 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
11624 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
11625 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
11626 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
11627 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
11628 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
11629 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
11630 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
11631 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
11632 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
11633 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
11634 * tree-inline.c (remap_gimple_stmt): Handle clauses on
11635 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
11636 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
11637 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
11638 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11639 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11640 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11641 (convert_local_omp_clauses): Likewise.
11642 * tree-pretty-print.c (dump_omp_clause): Handle
11643 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11644 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11645 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
11646 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
11647 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
11648 GOMP_MAP_FORCE_DEALLOC. Handle
11649 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
11650 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
11651 and clauses on OMP_ORDERED and OMP_CRITICAL.
11652 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
11653 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
11654 (vectorize_loops): Adjust comments.
11655 (pass_simduid_cleanup::execute): Likewise.
11656 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11657 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
11658 * wide-int.h (wi::gcd): New.
11660 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
11662 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
11663 (ix86_function_arg_advance): Ditto.
11664 (ix86_function_arg): Ditto.
11665 (ix86_gimplify_va_arg): Ditto.
11666 (ix86_class_max_nregs): Ditto.
11667 (inline_memory_move_cost): Ditto.
11668 (ix86_set_reg_reg_cost): Ditto.
11669 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
11671 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
11673 PR middle-end/67912
11674 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
11676 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
11678 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
11679 ROUND_UP macro and UNITS_PER_WORD * 2.
11680 * config/sparc/sparc.c (sparc_compute_frame_size):
11681 Use ROUND_UP and ROUND_DOWN macros where applicable.
11682 (function_arg_record_value, function_arg_record_value_1)
11683 (function_arg_record_value_1): Ditto.
11684 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
11685 alignment to double-word.
11686 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
11687 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
11690 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
11692 * rtl.h (print_insn): Fix prototype.
11694 2015-10-13 Tom de Vries <tom@codesourcery.com>
11696 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
11697 -1. Add assert that returned entry matches phi argument.
11698 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
11699 free_stmt_vec_info_vec ...
11700 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
11703 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
11705 PR tree-optimization/67909, 67947
11706 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
11707 really skip the inner loop.
11709 2015-10-13 Jeff Law <law@redhat.com>
11711 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11712 Allow single block jump threading paths.
11714 2015-10-13 Tom de Vries <tom@codesourcery.com>
11716 PR tree-optimization/67476
11717 * doc/invoke.texi (@item parloops-schedule): New item.
11718 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
11719 * tree-parloops.c: Include params-enum.h.
11720 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
11722 2015-10-13 Tom de Vries <tom@codesourcery.com>
11724 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
11725 * params-enum.h: New file.
11726 * opts.c (handle_param): Handle case that param arg is a string.
11727 * params-list.h: Handle DEFPARAMENUM5 in params.def.
11728 * params.c (find_param): New function, factored out of ...
11729 (set_param_value): ... here.
11730 (param_string_value_p): New function.
11731 * params.h (struct param_info): Add value_names field.
11732 (find_param, param_string_value_p): Declare.
11734 2015-10-13 Tom de Vries <tom@codesourcery.com>
11736 PR tree-optimization/67476
11737 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
11739 2015-10-13 Richard Biener <rguenther@suse.de>
11741 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
11742 the data dependence vector.
11743 (vect_peeling_hash_insert): Get the peeling hash table as argument.
11744 (vect_peeling_hash_get_lowest_cost): Likewise.
11745 (vect_enhance_data_refs_alignment): Adjust.
11746 (struct _vect_peel_info, struct _vect_peel_extended_info,
11747 struct peel_info_hasher): Move from ...
11748 * tree-vectorizer.h: ... here.
11749 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
11750 (LOOP_VINFO_PEELING_HTAB): Likewise.
11751 (struct _loop_vec_info): Remove min_profitable_iters and
11752 peeling_htab members.
11753 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
11755 (destroy_loop_vec_info): Adjust.
11756 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
11757 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
11758 to estimate alias versioning cost.
11759 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
11761 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
11763 * real.h (real_isinteger): Declare.
11764 * real.c (real_isinteger): New function.
11765 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
11766 if y is an even integer.
11768 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11771 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11772 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11773 counts when these are more informative.
11775 2015-10-12 Jeff Law <law@redhat.com>
11777 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
11778 (fsm_find_control_stmt_paths): Change name of first argument to
11779 more accurately relfect what it really is. Handle simplification
11780 of GIMPLE_COND after finding a thread path for NAME.
11781 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
11782 nontrivial conditions to be handled by FSM threader.
11783 (thread_through_normal_block): Extract the name to looup via
11784 FSM threader from COND_EXPR.
11786 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
11787 restriction that traced SSA_NAME is a user variable.
11789 2015-10-12 Tom de Vries <tom@codesourcery.com>
11791 PR tree-optimization/67476
11792 * omp-low.c (expand_omp_for_generic): Add missing phis.
11794 2015-10-12 Tom de Vries <tom@codesourcery.com>
11796 PR tree-optimization/67476
11797 * omp-low.c (expand_omp_for_generic): Handle simple latch.
11799 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
11801 * config/aarch64/aarch64-simd-builtins.def: Update builtins
11802 tables: add tbl3 and tbx4.
11803 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
11804 (aarch64_tbx4v8qi): New.
11805 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
11806 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
11807 Rewrite using builtin functions.
11808 * config/aarch64/iterators.md (UNSPEC_TBX): New.
11810 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
11812 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
11814 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11815 Use ROUND_UP and ROUND_DOWN macros where applicable.
11816 (rs6000_darwin64_record_arg_flush): Ditto.
11817 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
11818 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
11821 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
11823 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
11824 (AARCH64_ROUND_DOWN): Ditto.
11825 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
11827 2015-10-12 Richard Biener <rguenther@suse.de>
11830 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
11831 code that analyzes IVs on each stmt but in a cheaper way avoiding
11832 quadratic behavior.
11834 2015-10-12 Nick Clifton <nickc@redhat.com>
11836 * config/msp430/msp430.c (msp430_mcu_names): Rename to
11837 msp430_mcu_data, add fields for ISA and hardware multiply
11838 support. Import latest data from the devices.csv file.
11839 (msp430_override_option): Use the data from the new array.
11840 (msp430_use_f5_series_hwmult): Likewise.
11841 (use_32bit_hwmult): Likewise.
11842 (msp430_no_hwmult): Likewise.
11843 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
11845 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
11846 not recognised then no hardware multiply support is assumed and
11847 that only the MSP430 ISA is allowed.
11849 2015-10-12 Richard Biener <rguenther@suse.de>
11851 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
11853 (vect_analyze_loop_2): ... here.
11855 2015-10-11 Jason Merrill <jason@redhat.com>
11858 * expr.c (store_field): Call store_constructor directly when
11859 storing a CONSTRUCTOR into a target smaller than its type.
11860 Guard against unsafe bitwise copy.
11862 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11864 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11865 counts when these are more informative.
11867 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11869 * tree-profile.c (tree_profiling): Do not clear
11870 pure/const when not instrumenting.
11871 (pass tree_profile): Add dump of symtab.
11873 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11875 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
11877 (fold_addr_of_array_ref_difference): Likewise.
11879 2015-10-11 Jeff Law <law@redhat.com>
11881 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
11882 tree-ssa-threadbackward.c.
11883 (fsm_find_control_statement_thread_paths): Likewise.
11884 (thread_through_normal_block): Break out FSM bits and move them
11885 into a new function in tree-ssa-threadbackward.c. Call new function
11887 Minimize header file usage.
11888 * tree-ssa-threadbackward.h: New file.
11889 * tree-ssa-threadbackward.c: Likewise.
11890 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
11892 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
11894 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
11896 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
11898 PR rtl-optimization/67864
11899 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
11900 fallthrough edges for conditional jumps. Don't sort candidate
11901 edges if not optimizing for speed.
11903 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11905 * defaults.h (REVERSE_CONDITION): New default definition.
11906 * jump.c (reversed_comparison_code_parts): Adjust.
11908 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11910 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
11911 check HARD_FRAME_POINTER_IS_ARG_POINTER.
11913 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11915 * defaults.h (FRAME_ADDR_RTX): New default definition.
11916 * builtins.c (expand_builtin_return_addr): Adjust.
11918 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11920 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11921 * builtins.c (expand_builtin_return_addr): Adjust.
11923 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11925 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11926 * builtins.c (expand_builtin_return_addr): Adjust.
11927 * doc/tm.texi: Likewise.
11928 * doc/tm.texi.in: Likewise.
11929 * except.c (expand_builtin_unwind_init): Likewise.
11931 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11933 * builtins.c (expand_builtin_return_addr): Adjust.
11934 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11936 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
11938 * tree.c (type_with_interoperable_signedness): New.
11939 (gimple_canonical_types_compatible_p): Use it.
11940 * tree.h (type_with_interoperable_signedness): Declare
11942 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
11944 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11945 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11946 when OEP_ADDRESS_OF is se.
11948 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
11949 Sebastian Pop <s.pop@samsung.com>
11951 * graphite-dependences.c (scop_get_dependences): Add dump of the
11952 data dependence graph.
11953 * graphite-poly.c (print_isl_union_map): New.
11954 (debug_isl_union_map): New.
11955 * graphite-poly.h (print_isl_union_map): Declare.
11956 (debug_isl_union_map): Declare.
11958 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
11959 Sebastian Pop <s.pop@samsung.com>
11961 * graphite-poly.c (print_iteration_domain): Remove verbosity.
11962 Remove OpenScop formatting.
11963 (print_iteration_domains): Same.
11964 (debug_iteration_domain): Same.
11965 (debug_iteration_domains): Same.
11968 (dump_gbb_cases): Same.
11969 (dump_gbb_conditions): Same.
11970 (print_pdrs): Same.
11971 (debug_pdrs): Same.
11972 (print_pbb_body): Same.
11974 (print_scop_params): Same.
11975 (print_scop_context): Same.
11976 (print_scop): Same.
11977 (debug_pbb_domain): Same.
11979 (debug_scop_context): Same.
11980 (debug_scop): Same.
11981 (debug_scop_params): Same.
11982 * graphite-poly.h: Same.
11983 * graphite.c (graphite_transform_loops): Same.
11985 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11987 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11988 call that isn't needed.
11990 2015-10-09 Jeff Law <law@redhat.com>
11992 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11993 rather than moving each name to the freelist individually.
11995 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
11997 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11998 * frame-header-opt.c: New file.
11999 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12001 * config/mips/mips.c (mips_compute_frame_info): Check
12002 optimize_call_stack flag.
12003 (mips_option_override): Register new frame_header_opt pass.
12004 (mips_frame_info, mips_int_mask, mips_shadow_set,
12005 machine_function): Move these types to...
12006 * config/mips/mips.h: here.
12007 (machine_function): Add does_not_use_frame_header and
12008 optimize_call_stack fields.
12009 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12010 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12011 Document new flags.
12012 * config/mips/mips.opt (mframe-header-opt): Add new option.
12014 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12016 * config/i386/i386.c
12017 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12018 ROUND_DOWN where applicable.
12020 2015-10-09 Jeff Law <law@redhat.com>
12022 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12025 2015-10-09 Renlin Li <renlin.li@arm.com>
12027 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12028 operands[0] and operands[2].
12029 (neon_vtrn<mode>_insn): Likewise.
12030 (neon_vzip<mode>_insn): Likewise.
12032 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
12034 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12035 ((X & C2) << C1): Expand to...
12036 (X {&,^,|} C2 << C1): ...This.
12037 ((X & C2) >> C1): Expand to...
12038 (X {&,^,|} C2 >> C1): ...This.
12040 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
12043 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12044 Adjust embedded rounding/SAE specifier position.
12045 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12046 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12047 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12048 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12049 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12051 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12053 2015-10-09 Martin Jambor <mjambor@suse.cz>
12055 tree-optimization/67794
12056 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12057 between types of state,ents but accept original definitions as a
12059 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12060 iterate over definitions.
12062 2015-10-09 James Norris <jnorris@codesourcery.com>
12064 * config/rs6000/rs6000.c (rs6000_offload_options): New.
12065 (TARGET_OFFLOAD_OPTIONS): New.
12067 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
12069 PR middle-end/67891
12070 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12072 PR middle-end/67766
12073 * function.c (expand_function_end): Move return value
12074 promotion past the handling of PARALLELs and CONCATs.
12076 PR rtl-optimization/67828
12077 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12078 (tree_may_unswitch_on): Don't unswitch on expressions
12079 involving undefined values.
12081 2015-10-09 Richard Biener <rguenther@suse.de>
12083 * genmatch.c (print_operand): Fix formatting.
12084 (dt_node::append_simplify): Warn for multiple simplifiers
12085 that match the same pattern.
12086 * match.pd (log (exp @0)): Remove duplicates.
12088 2015-10-09 Richard Biener <rguenth@suse.de>
12091 * gimple-fold.c (optabs-query.h): Include
12092 (gimple_fold_builtin_memory_op): Allow unaligned stores
12093 when movmisalign_optabs are available.
12095 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12098 * config/arm/arm.md (movmisalign<mode>): New.
12099 * config/arm/iterators.md (HSI): New.
12101 2015-10-09 Richard Biener <rguenther@suse.de>
12103 PR tree-optimization/67891
12104 * gimple-match.h (gimple_simplified_result_is_gimple_val):
12106 (gimple_resimplify1): Declare.
12107 (gimple_resimplify2): Likewise.
12108 (gimple_resimplify3): Likewise.
12109 * gimple-match-head.c (gimple_resimplify1): Export.
12110 (gimple_resimplify2): Likewise.
12111 (gimple_resimplify3): Likewise.
12112 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
12113 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12114 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
12115 to avoid creating stmts without VN info.
12117 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
12119 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
12122 2015-10-08 Jeff Law <law@redhat.com>
12124 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
12125 and release_ssa_name in two places.
12126 (gimple_stringop_fixed_value): Similarly.
12128 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
12131 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
12132 unlink_stmt_vdef and release_ssa_name_fn.
12134 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
12137 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
12139 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
12140 SSE register save area to 16 bytes only if the incoming stack
12141 boundary is no less than 16 bytes.
12143 2015-10-08 Jeff Law <law@redhat.com>
12145 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
12146 release_ssa_name. Fix typo in comment.
12148 2015-10-08 Nathan Sidwell <nathan@acm.org>
12150 * config/nvptx/nvptx.h (struct machine_function): Add comment.
12151 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
12152 may return pointer as well as in memory.
12153 (nvptx_output_return): Likewise.
12155 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12157 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
12158 (fold_builtin_1): Update accordingly. Handle constant arguments here.
12159 * match.pd: Add rules previously handled by fold_builtin_sqrt
12160 and fold_builtin_cbrt.
12162 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12164 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
12165 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
12166 * fold-const.h (tree_unary_nonnegative_warnv_p)
12167 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12168 (tree_expr_nonnegative_warnv_p): Add depth parameters.
12169 * fold-const.c: Include gimple-fold.h and params.h.
12170 (tree_ssa_name_nonnegative_warnv_p): New function.
12171 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
12172 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12173 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
12174 Add a depth parameter and increment it for recursive calls to
12175 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
12176 to handle SSA names.
12177 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
12178 (gimple_stmt_nonnegative_warnv_p): Declare.
12179 * tree-vrp.c (remove_range_assertions): Remove assert that condition
12180 cannot be proven false.
12181 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
12182 (gimple_stmt_nonnegative_warnv_p): Move to...
12183 * gimple-fold.c: ...here. Add depth parameters and pass them
12184 down to the tree routines. Accept statements that aren't
12185 assignments or calls but just return false for them.
12186 (gimple_val_nonnegative_real_p): Delete.
12187 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12188 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
12189 Check HONOR_NANs first.
12191 2015-10-08 Martin Jambor <mjambor@suse.cz>
12193 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
12196 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12198 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
12199 in the tail of outer-loop.
12201 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
12203 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
12206 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12208 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
12209 "cfghooks.h", add prototypes for introduced new functions.
12210 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
12211 checks on ability of loop unswitching to tree_unswitch_single_loop;
12212 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
12213 on innermost loop check.
12214 (tree_unswitch_single_loop): Add all required checks on ability of
12215 loop unswitching under zero recursive level guard.
12216 (tree_unswitch_outer_loop): New function.
12217 (find_loop_guard): Likewise.
12218 (empty_bb_without_guard_p): Likewise.
12219 (used_outside_loop_p): Likewise.
12220 (get_vop_from_header): Likewise.
12221 (hoist_guard): Likewise.
12222 (check_exit_phi): Likewise.
12224 2015-10-08 Marek Polacek <polacek@redhat.com>
12226 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
12229 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12232 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
12233 create_tmp_var_raw instead of create_tmp_var.
12235 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
12237 * expr.c (store_expr_with_bounds): Handle aggregate moves from
12239 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
12240 to define gimple type system; compare aggregates only by size.
12242 2015-10-07 Jeff Law <law@redhat.com>
12244 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
12245 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
12246 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
12249 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12250 Sebastian Pop <s.pop@samsung.com>
12252 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
12253 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
12254 (generate_isl_schedule): Same.
12255 * graphite-optimize-isl.c (scop_get_domains): Same.
12256 (apply_schedule_map_to_scop): Same.
12257 * graphite-poly.c (print_iteration_domains): Same.
12258 (remove_gbbs_in_scop): Same.
12261 (print_scop): Same.
12262 * graphite-poly.h (struct scop): Rename bbs to pbbs.
12263 (SCOP_BBS): Remove.
12264 * graphite-scop-detection.c (compare_bb_depths): Remove.
12265 (graphite_sort_dominated_info): Remove.
12266 (try_generate_gimple_bb): Move out of scop_detection.
12267 (all_non_dominated_preds_marked_p): Remove.
12268 (build_scop_bbs_1): Remove.
12269 (build_scop_bbs): Remove.
12270 (nb_pbbs_in_loops): Do not use SCOP_BBS.
12271 (find_scop_parameters): Same.
12272 (sese_dom_walker): Rename gather_bbs.
12273 (before_dom_children): Call try_generate_gimple_bb and collect gbb
12275 (build_scops): Call gather_bbs.
12276 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
12277 (add_conditions_to_constraints): Same.
12278 (build_scop_iteration_domain): Same.
12279 (build_scop_drs): Same.
12280 (new_pbb_from_pbb): Same.
12281 * sese.c (new_sese_info): Create bbs.
12282 * sese.h (struct sese_info_t): Add bbs.
12284 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
12286 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
12287 encoding in 64-bit mode.
12289 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
12292 * config/i386/i386.c (ix86_option_override_internal): Always use
12293 8-byte minimum stack boundary in 64-bit mode.
12294 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12295 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
12296 Add a REG_CFA_EXPRESSION note if needed.
12297 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
12298 (ix86_handle_force_align_arg_pointer_attribute): New.
12299 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
12300 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
12301 with ix86_handle_force_align_arg_pointer_attribute.
12302 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
12304 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12305 Sebastian Pop <s.pop@samsung.com>
12307 * graphite-scop-detection.c (parameter_index_in_region): Remove
12308 use of SESE_ADD_PARAMS.
12309 (find_scop_parameters): Same.
12310 * sese.c (new_sese_info): Same.
12311 * sese.h (struct sese_info_t): Remove add_params.
12312 (SESE_ADD_PARAMS): Remove.
12314 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12315 Sebastian Pop <s.pop@samsung.com>
12317 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12320 (copy_internal_parameters): Same.
12321 (translate_isl_ast_to_gimple): Use an sese_l.
12322 (build_iv_mapping): Same.
12323 * graphite-poly.c (new_sese): Rename new_sese_info.
12324 (free_sese): Rename free_sese_info.
12325 * graphite-poly.h (struct scop): Use an sese_info_p.
12326 (scop_set_region): Same.
12327 * graphite-scop-detection.c (struct sese_l): Moved...
12328 (get_entry_bb): Moved...
12329 (get_exit_bb): Moved...
12330 (parameter_index_in_region_1): Use an sese_info_p.
12331 (parameter_index_in_region): Same.
12332 (scan_tree_for_params): Same.
12333 (find_params_in_bb): Same.
12334 (sese_dom_walker): Use an sese_l.
12335 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12336 (reduction_phi_p): Same.
12337 (parameter_index_in_region_1): Use an sese_info_p.
12338 (propagate_expr_outside_region): Use an sese_l.
12339 * graphite.c: Replace uses of SCOP_REGION.
12340 * sese.c (sese_record_loop): Use an sese_info_p.
12341 (build_sese_loop_nests): Same.
12342 (sese_build_liveouts_use): Same.
12343 (sese_build_liveouts_bb): Same.
12344 (sese_build_liveouts_bb): Same.
12345 (sese_bad_liveouts_use): Same.
12346 (sese_reset_debug_liveouts_bb): Same.
12347 (sese_build_liveouts): Same.
12348 (new_sese): Renamed new_sese_info.
12349 (free_sese): Renamed free_sese_info.
12350 (set_rename): Use an sese_info_p.
12351 (graphite_copy_stmts_from_block): Same.
12352 (copy_bb_and_scalar_dependences): Same.
12353 (outermost_loop_in_sese_1): Use an sese_l.
12354 (outermost_loop_in_sese): Same.
12355 (if_region_set_false_region): Use an sese_info_p.
12356 (move_sese_in_condition): Same.
12357 (scalar_evolution_in_region): Use an sese_l.
12358 * sese.h (struct sese_l): ... here.
12359 (SESE_ENTRY): Remove.
12360 (SESE_ENTRY_BB): Remove.
12361 (SESE_EXIT): Remove.
12362 (SESE_EXIT_BB): Remove.
12363 (sese_contains_loop): Use an sese_info_p.
12364 (sese_nb_params): Same.
12365 (bb_in_sese_p): Use an sese_l.
12366 (stmt_in_sese_p): Same.
12367 (defined_in_sese_p): Same.
12368 (loop_in_sese_p): Same.
12369 (sese_loop_depth): Same.
12370 (struct ifsese_s): Use an sese_info_p.
12371 (gbb_loop_at_index): Use an sese_l.
12372 (nb_common_loops): Same.
12373 (scev_analyzable_p): Same.
12375 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12377 * config/i386/i386.c (ix86_conditional_register_usage): Use
12378 CALL_USED_REGISTERS_MASK.
12379 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12381 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12384 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12385 * configure: Regenerated.
12387 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12390 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12391 (ix86_set_current_function): This.
12392 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12394 2015-10-07 Richard Biener <rguenther@suse.de>
12396 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12397 (vinfo_for_stmt): Adjust.
12398 (set_vinfo_for_stmt): Likewise.
12399 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12400 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12401 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12403 (vect_analyze_loop_1): Remove.
12404 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12405 inner loop when vectorizing an outer loop by splitting out from ...
12406 (vect_analyze_loop_form): ... here.
12408 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12411 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12412 Use create_tmp_var_raw instead of create_tmp_var.
12414 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
12416 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12417 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12418 * real.c (CACHED_FRACTION): New helper macro.
12419 (dconst_third_ptr): Use it.
12420 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12421 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12423 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12425 2015-10-06 Jeff Law <law@redhat.com>
12427 PR tree-optimization/67816
12428 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12429 from remove_jump_threads_starting_at. Accept an edge rather than
12431 * tree-ssa-threadupdate.c (removed_edges): New hash table.
12432 (remove_jump_threads_including): Note edges that get removed from
12433 the CFG for later pruning of jump threading paths including them.
12434 (thread_through_all_blocks): Remove paths which include edges that
12436 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12437 on each outgoing edges when optimizing away a control statement.
12439 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12441 * reorg.c (emit_delay_sequence): Store list of delay slot insns
12442 in a vector instead of rtx_insn_list.
12443 (add_to_delay_list): Likewise.
12444 (delete_from_delay_slot): Likewise.
12445 (optimize_skip): Likewise.
12446 (redirect_with_delay_list_safe_p): Likewise.
12447 (check_annul_list_true_false): Likewise.
12448 (steal_delay_list_from_target): Likewise.
12449 (steal_delay_list_from_fallthrough): Likewise.
12450 (redundant_insn): Likewise.
12451 (fill_simple_delay_slots): Likewise.
12452 (fill_slots_from_thread): Likewise.
12453 (fill_eager_delay_slots): Likewise.
12454 (relax_delay_slots): Likewise.
12456 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
12458 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12459 For -mgpopt=local, also exclude unintialized common symbols.
12460 * doc/invoke.texi (Nios II Options): Document the change.
12462 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12464 * config/aarch64/iterators.md (vwcore): Add missing cases for
12467 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12468 Sebastian Pop <s.pop@samsung.com>
12470 * graphite-poly.c (new_scop): Initialize drs.
12471 * graphite-poly.h (struct dr_info): New.
12472 (struct scop): Add drs.
12473 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12474 (pdr_add_memory_accesses): Same.
12475 (build_poly_dr): Same.
12476 (build_alias_set): Same.
12477 (build_scop_drs): Same.
12478 (build_pbb_drs): Remove.
12479 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12480 * tree-data-ref.h (data_reference): Remove alias_set.
12482 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12483 Sebastian Pop <s.pop@samsung.com>
12485 * graphite-poly.c (free_data_refs_aux): Remove.
12486 (free_gimple_poly_bb): Do not call free_data_refs_aux.
12487 * graphite-poly.h (struct base_alias_pair): Remove.
12488 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12489 base_alias_pair and dr->aux.
12490 (build_alias_set): Same.
12491 * tree-data-ref.c (create_data_ref): Initialize alias_set.
12492 * tree-data-ref.h (data_reference): Add alias_set.
12494 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12495 Sebastian Pop <s.pop@samsung.com>
12497 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12498 Do not set PDR_BASE_OBJECT_SET.
12499 * graphite-poly.h (poly_dr): Same.
12500 (PDR_BASE_OBJECT_SET): Remove.
12501 (new_poly_dr): Update decl.
12502 * graphite-sese-to-poly.c (build_poly_dr): Update call to
12504 (write_alias_graph_to_ascii_dimacs): Remove.
12505 (write_alias_graph_to_ascii_dot): Remove.
12506 (write_alias_graph_to_ascii_ecc): Remove.
12507 (dr_same_base_object_p): Remove.
12508 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
12510 (build_base_obj_set_for_drs): Remove.
12511 (dump_alias_graphs): Remove.
12512 (build_scop_drs): Remove dead code.
12514 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12515 Peter Bergner <bergner@vnet.ibm.com>
12518 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12519 allow registers, but provide insns for the combiner to create for
12520 loads from memory. Separate VSX code from non-VSX code. For
12521 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12522 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12523 so that registers come before memory operations. Drop support from
12524 converting DFmode to TFmode, if the DFmode value is in a GPR
12526 (extenddftf2_fprs): Likewise.
12527 (extenddftf2_internal): Likewise.
12528 (extenddftf2_vsx): Likewise.
12529 (extendsftf2): In the expander, only allow registers, but provide
12530 insns for the combiner to create for stores and loads.
12532 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12534 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12535 from the decl parameter.
12537 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
12540 * gimple-fold.c (gimple_fold_builtin): Add break after
12541 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12543 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
12545 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12546 to scop->isl_context.
12548 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
12550 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12551 (output_probe_stack_range): Rotate the loop and simplify.
12552 (thumb1_expand_prologue): Tweak sorry message.
12553 * config/arm/arm.md (probe_stack): Use bare string.
12555 2015-10-06 Nick Clifton <nickc@redhat.com>
12557 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12559 2015-10-06 Nick Clifton <nickc@redhat.com>
12561 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12562 (ATTR_PERSIST): New constant.
12563 (msp430_data_attr): New function - verifies an attribute that only
12564 applies to variables.
12565 (msp430_attributes): Add noinit and persistent attributes.
12566 (noinit_section): New variable.
12567 (presis_section): New variable.
12568 (TARGET_ASM_INIT_SECTIONS): Define.
12569 (msp430_init_sections): New function - initialises the noinit and
12570 persist section variables.
12571 (msp430_select_section): Add support for noinit and persist
12573 (msp430_section_type_flags): Likewise.
12574 * doc/extend.texi: Document the reent, critical, wakeup, noinit
12575 and persistent attributes.
12577 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12578 Sebastian Pop <s.pop@samsung.com>
12580 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12581 (no_violations): Remove.
12582 (subtract_commutative_associative_deps): Remove.
12583 (compute_deps): Do not call subtract_commutative_associative_deps.
12584 (transform_is_safe): Remove.
12585 (graphite_legal_transform): Remove.
12586 * graphite-poly.h (graphite_legal_transform): Remove.
12588 2015-10-05 Aditya Kumar <hiraditya@msn.com>
12590 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12591 which are in this region are passed so gcc_assert and remove redundant
12593 * sese.c (sese_build_liveouts): Pass only those bbs which are not
12595 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12596 gcc_assert on that and remove unnecessary computation.
12597 (sese_build_liveouts_use): Same.
12599 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12601 * graphite-dependences.c (scop_get_reads): Renamed scop->context
12602 to scop->param_context.
12603 (scop_get_must_writes): Same.
12604 (scop_get_may_writes): Same.
12605 (scop_get_original_schedule): Same.
12606 (scop_get_transformed_schedule): Same.
12607 (subtract_commutative_associative_deps): Same.
12608 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12609 (generate_isl_context): Same.
12610 (generate_isl_schedule): Same.
12611 (scop_to_isl_ast): Same.
12612 (graphite_regenerate_ast_isl): Same.
12613 * graphite-optimize-isl.c (scop_get_domains): Same.
12614 (optimize_isl): Renamed scop->context to scop->param_context.
12615 * graphite-poly.c (new_poly_bb): Change the type of argument to
12617 (new_scop): Renamed scop->context to scop->param_context.
12619 (print_scop_context): Same.
12620 * graphite-poly.h (new_poly_dr): Change the type of argument from
12621 void* to data_reference_p.
12622 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
12623 (new_poly_bb): Change the type of argument from void* to
12625 (pbb_set_black_box): Same.
12626 (struct scop): Rename context to param_context, ctx to isl_context.
12627 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
12628 Move declarations closer to assignment.
12629 (find_params_in_bb): Same.
12630 (find_scop_parameters): Same.
12631 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
12632 Global to be used for statement IDs.
12633 (isl_id_for_pbb): Use ssa_name_version_typesize.
12634 (simple_copy_phi_p): Move declarations closer to assignment.
12635 (build_pbb_scattering_polyhedrons): Same.
12636 (build_scop_scattering): Same.
12637 (isl_id_for_ssa_name): Same.
12638 (extract_affine_name): Same.
12639 (extract_affine_int): Same.
12640 (extract_affine): Same.
12641 (set_scop_parameter_dim): Use renamed member.
12642 (build_loop_iteration_domains): Same.
12643 (add_param_constraints): Same.
12644 (build_scop_iteration_domain): Same.
12645 (pdr_add_data_dimensions): Same.
12646 (build_poly_dr): Same.
12647 (build_scop_drs): Move declarations closer to assignment.
12648 (analyze_drs_in_stmts): Same.
12649 (insert_out_of_ssa_copy): Same.
12650 (insert_out_of_ssa_copy_on_edge): Same.
12651 (propagate_expr_outside_region): Same.
12652 (rewrite_phi_out_of_ssa): Same.
12653 (rewrite_degenerate_phi): Same.
12654 (rewrite_reductions_out_of_ssa): Same.
12655 (rewrite_cross_bb_scalar_dependence): Same.
12656 (handle_scalar_deps_crossing_scop_limits): Same.
12657 (rewrite_cross_bb_scalar_deps): Same.
12658 * graphite.c (graphite_transform_loops): Use renamed member.
12660 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
12663 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12664 create_tmp_var_raw instead of create_tmp_var.
12666 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12669 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
12670 Use create_tmp_var_raw instead of create_tmp_var.
12672 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
12675 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
12676 split for upper-bank registers when target does not support
12678 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
12679 split when target does not support AVX512VL.
12681 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
12684 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
12685 Adjust to use create_tmp_var_raw instead of create_tmp_var.
12687 2015-10-06 Nick Clifton <nickc@redhat.com>
12689 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
12692 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12694 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
12695 (case ${target}): Add znver1.
12696 * config/i386/cpuid.h(bit_CLZERO): Define.
12697 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
12698 -march=native recognize znver1 processors.
12699 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12700 znver1, clzero def_and_undef.
12701 * config/i386/i386.c (struct processor_costs znver1_cost): New.
12702 (m_znver1): New definition.
12703 (m_AMD_MULTIPLE): Includes m_znver1.
12704 (processor_target_table): Add znver1 entry.
12705 (ix86_target_string) : Add clzero entry.
12706 (static const char *const cpu_names): Add znver1 entry.
12707 (ix86_option_override_internal): Add znver1 instruction sets.
12708 (PTA_CLZERO) : New definition.
12709 (ix86_option_override_internal): Handle new clzerooption.
12710 (ix86_issue_rate): Add znver1.
12711 (ix86_adjust_cost): Add znver1.
12712 (ia32_multipass_dfa_lookahead): Add znver1.
12713 (has_dispatch): Add znver1.
12714 * config/i386/i386.h (TARGET_znver1): New definition.
12715 (TARGET_CLZERO): Define.
12716 (TARGET_CLZERO_P): Define.
12717 (struct ix86_size_cost): Add TARGET_ZNVER1.
12718 (enum processor_type): Add PROCESSOR_znver1.
12719 * config/i386/i386.md (define_attr "cpu"): Add znver1.
12720 (set_attr znver1_decode): New definitions for znver1.
12721 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
12723 * config/i386/mmx.md (set_attr znver1_decode): New definitions
12725 * config/i386/sse.md (set_attr znver1_decode): Likewise.
12726 * config/i386/x86-tune.def: Add znver1 tunings.
12727 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
12728 * doc/invoke.texi: Add details about znver1
12730 2015-10-06 Richard Biener <rguenther@suse.de>
12732 PR tree-optimization/67859
12733 * tree-ssa-pre.c (create_expression_by_pieces): Properly
12734 discard not inserted stmts.
12736 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
12738 * doc/extend.texi (Template Instantiation): Reorder options and
12739 de-emphasize -frepo.
12740 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
12741 example instead of -frepo.
12743 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
12746 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
12747 use create_tmp_var_raw rather than create_tmp_var.
12749 2015-10-06 Richard Biener <rguenther@suse.de>
12751 * tree-vectorizer.h (vec_info): New base class for...
12752 (_loop_vec_info): ... this and ...
12753 (_bb_vec_info): ... this.
12754 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
12755 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12756 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12757 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
12758 vect_destroy_datarefs): Adjust interface to take a vec_info *
12759 rather than both a loop_vec_info and a bb_vec_info argument.
12760 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
12761 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
12762 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
12763 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
12765 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
12766 (destroy_loop_vec_info, vect_analyze_loop_2,
12767 vect_is_simple_reduction_1, get_initial_def_for_induction,
12768 vect_create_epilog_for_reduction, vectorizable_reduction,
12769 vectorizable_live_operation, vect_transform_loop): Adjust.
12770 * tree-vect-patterns.c (type_conversion_p,
12771 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
12772 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
12773 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
12774 check_bool_pattern, vect_recog_bool_pattern,
12775 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
12776 * tree-vect-slp.c (vect_get_and_check_slp_defs,
12777 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
12778 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
12779 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
12780 (new_bb_vec_info): Initialize base classs.
12781 * tree-vect-stmts.c (record_stmt_cost, process_use,
12782 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
12783 vectorizable_mask_load_store, vectorizable_call,
12784 vectorizable_simd_clone_call, vectorizable_conversion,
12785 vectorizable_assignment, vectorizable_shift,
12786 vectorizable_operation, vectorizable_store,
12787 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
12788 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
12789 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
12791 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
12794 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
12795 create_tmp_var_raw rather than create_tmp_var.
12797 2015-10-05 Marek Polacek <polacek@redhat.com>
12799 * tree-ssa-loop-im.c
12800 (move_computations_dom_walker::before_dom_children): Don't set
12801 SSA_NAME_ANTI_RANGE_P.
12802 * tree-ssa-phiopt.c (value_replacement): Likewise.
12804 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12805 Sebastian Pop <s.pop@samsung.com>
12807 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
12809 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12810 Sebastian Pop <s.pop@samsung.com>
12812 * graphite-poly.c (new_gimple_poly_bb): ... here.
12813 (free_data_refs_aux): ... here.
12814 (free_gimple_poly_bb): ... here.
12815 (remove_gbbs_in_scop): ... here.
12816 (new_scop): Call new_sese.
12817 (free_scop): Call remove_gbbs_in_scop and free_sese.
12818 * graphite-poly.h (base_alias_pair): ... here.
12819 (new_gimple_poly_bb): Declare.
12820 (free_gimple_poly_bb): Declare.
12821 * graphite-scop-detection.c (parameter_index_in_region_1):
12822 (parameter_index_in_region): ... here.
12823 (scan_tree_for_params): ... here.
12824 (find_params_in_bb): ... here.
12825 (find_scop_parameters): ... here.
12826 (build_scops): Call find_scop_parameters.
12827 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
12828 (free_scops): Move...
12829 (single_pred_cond_non_loop_exit): Move...
12830 (sese_dom_walker::before_dom_children): Move...
12831 (sese_dom_walker::after_dom_children): Move...
12832 (build_poly_scop): Move...
12833 * graphite-sese-to-poly.h (base_alias_pair): Move...
12834 * graphite.c (free_scops): ... here.
12836 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12837 Sebastian Pop <s.pop@samsung.com>
12839 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
12840 (trivially_empty_bb_p): Move...
12841 (same_close_phi_node): Move...
12842 (new_gimple_poly_bb): Move...
12843 (compare_bb_depths): Move...
12844 (graphite_sort_dominated_info): Move...
12845 (remove_duplicate_close_phi): Move...
12846 (make_close_phi_nodes_unique): Move...
12847 (canonicalize_loop_closed_ssa): Move...
12848 (canonicalize_loop_closed_ssa_form): Move...
12849 (loop_ivs_can_be_represented): Move...
12850 (single_pred_cond_non_loop_exit): Move...
12851 (graphite_can_represent_init): Move...
12852 (graphite_can_represent_scev): Move...
12853 (stmt_has_simple_data_refs_p): Move...
12854 (stmt_has_side_effects): Move...
12855 (graphite_can_represent_stmt): Move...
12856 (scop_detection): ... here.
12857 (sese_dom_walker): ... and here.
12858 (build_scops): Call all moved functions.
12859 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
12860 (all_non_dominated_preds_marked_p): Move...
12861 (build_scop_bbs_1): Move...
12862 (build_scop_bbs): Move...
12863 (set_scop_parameter_dim): Move...
12864 (nb_pbbs_in_loops): Move...
12865 (build_poly_scop): Do not call all the moved functions.
12867 2015-10-05 Martin Jambor <mjambor@suse.cz>
12868 Jan Hubicka <hubicka@ucw.cz>
12870 * ipa-cp.c (ipcp_alignment_lattice): New type.
12871 (ipcp_param_lattices): Use the above to represent alignment.
12872 (ipcp_alignment_lattice::print): New function.
12873 (print_all_lattices): Use it to print alignment information.
12874 (ipcp_alignment_lattice::top_p): New function.
12875 (ipcp_alignment_lattice::bottom_p): Likewise.
12876 (ipcp_alignment_lattice::set_to_bottom): Likewise.
12877 (ipcp_alignment_lattice::meet_with_1): Likewise.
12878 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
12879 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
12880 (initialize_node_lattices): Likewise.
12881 (propagate_alignment_accross_jump_function): Work with the new class
12882 for alignment lattices.
12883 (propagate_constants_accross_call): Pass only the alignment lattice to
12884 propagate_alignment_accross_jump_function.
12885 (ipcp_store_alignment_results): Work with the new class for alignment
12888 2015-10-05 Marek Polacek <polacek@redhat.com>
12890 PR tree-optimization/67821
12891 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
12893 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
12896 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
12898 (mkoffload_cleanup): ... this. Adjust all users.
12899 (maybe_unlink): Look at save_temps and verbose flags instead of
12901 (main): Parse "-save-temps" flag.
12902 (generate_target_descr_file, generate_target_offloadend_file)
12903 (generate_host_descr_file, prepare_target_image): Pass it on.
12904 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
12905 (mkoffload_cleanup): New function.
12906 (maybe_unlink): Look at save_temps and verbose flags instead of
12908 (main): Instead of calling utils_cleanup, register atexit handler
12909 for mkoffload_cleanup.
12910 (main): Parse "-save-temps" flag.
12911 (compile_native, main): Pass it on.
12912 * lto-wrapper.c (compile_offload_image): Likewise.
12914 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12916 * gimple.h (gimple_op_ptr): Require a non const gimple *.
12917 (gimple_assign_lhs_ptr): Likewise.
12918 (gimple_assign_rhs1_ptr): Likewise.
12919 (gimple_assign_rhs2_ptr): Likewise.
12920 (gimple_assign_rhs3_ptr): Likewise.
12921 (gimple_call_lhs_ptr): Likewise.
12922 (gimple_call_fn_ptr): Likewise.
12923 (gimple_call_chain_ptr): Likewise.
12924 (gimple_call_arg_ptr): Likewise.
12925 (gimple_cond_lhs_ptr): Likewise.
12926 (gimple_cond_rhs_ptr): Likewise.
12927 (gimple_switch_index_ptr): Likewise.
12928 (gimple_return_retval_ptr): Likewise.
12930 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12932 * gimple.h (gimple_asm_input_op_ptr): Remove.
12933 (gimple_asm_output_op_ptr): Likewise.
12935 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12937 * gimple.h (gimple_location_ptr): Remove.
12938 * tree-vrp.c (check_all_array_refs): Adjust.
12940 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12942 * tree-ssa-operands.c (build_uses): store tree * instead of
12944 (finalize_ssa_uses): Adjust.
12945 (append_use): Likewise.
12946 (verify_ssa_operands): Likewise.
12948 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12950 * real.h (build_real_truncate): Declare.
12951 * tree.c (build_real_truncate): New function.
12952 (strip_float_extensions): Use it.
12953 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12954 (fold_builtin_hypot, fold_builtin_pow): Likewise.
12955 * match.pd: Likewise.
12957 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12958 Jiong Wang <jiong.wang@arm.com>
12960 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12962 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12964 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12965 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12966 (aarch64_print_operand, aarch64_float_const_representable_p)
12967 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12968 instead of REAL_VALUE_FROM_CONST_DOUBLE.
12969 * config/arc/arc.c (arc_print_operand): Likewise.
12970 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12971 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12972 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12974 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12975 (consttable_16): Likewise.
12976 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12977 * config/avr/avr.c (avr_print_operand): Likewise.
12978 * config/bfin/bfin.md: Likewise (in a define_split).
12979 * config/c6x/c6x.md: Likewise (in a define_split).
12980 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12981 (cr16_print_operand): Likewise.
12982 * config/cris/cris.c (cris_print_operand): Likewise.
12983 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12984 * config/fr30/fr30.c (fr30_print_operand): Likewise.
12985 (fr30_const_double_is_zero): Likewise.
12986 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12987 * config/frv/frv.md: Likewise (in a define_split).
12988 * config/frv/predicates.md (int_2word_operand): Likewise.
12989 * config/h8300/h8300.c (h8300_print_operand): Likewise.
12990 * config/i386/i386.c (standard_80387_constant_p): Likewise.
12991 (ix86_print_operand, ix86_split_to_parts): Likewise.
12992 * config/i386/i386.md: Likewise (in a define_split).
12993 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12994 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12995 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12996 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12997 (print_operand): Likewise.
12998 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12999 * config/mep/mep.md: Likewise (in define_split).
13000 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13001 (print_operand): Likewise.
13002 * config/mips/mips.md (consttable_float): Likewise.
13003 * config/mmix/mmix.c (mmix_intval): Likewise.
13004 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13005 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13006 * config/pa/pa.c (pa_singlemove_string): Likewise.
13007 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13008 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13009 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13010 (output_toc): Likewise.
13011 * config/rs6000/rs6000.md: Likewise (in define_splits).
13012 * config/rx/rx.c (rx_print_operand): Likewise.
13013 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13014 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13015 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13016 (and also in define_splits).
13017 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13018 (fp_high_losum_p): Likewise.
13019 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13020 (*movsf_high): Likewise.
13021 * config/spu/spu.c (const_double_to_hwint): Likewise.
13022 * config/v850/v850.c (const_double_split): Likewise.
13023 * config/vax/vax.c (vax_float_literal): Likewise.
13024 * config/visium/visium.c (visium_expand_copysign): Likewise.
13025 * config/visium/visium.md: Likewise (in define_split).
13026 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13027 * config/xtensa/xtensa.c (print_operand): Likewise.
13028 (xtensa_output_literal): Likewise.
13029 * cprop.c (implicit_set_cond_p): Likewise.
13030 * dwarf2out.c (insert_float): Likewise.
13031 * expmed.c (expand_mult, make_tree): Likewise.
13032 * expr.c (compress_float_constant): Likewise.
13033 * rtlanal.c (split_double): Likewise.
13034 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13035 (simplify_const_unary_operation, simplify_binary_operation_1)
13036 (simplify_const_binary_operation): Likewise.
13037 (simplify_const_relational_operation): Likewise.
13038 * varasm.c (output_constant_pool_2): Likewise.
13040 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13042 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13043 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13044 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13045 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13046 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13047 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13048 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13049 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13050 (ix86_emit_swsqrtsf): Likewise.
13051 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13052 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13053 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13054 * config/pa/pa.c (pa_expand_builtin): Likewise.
13055 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13056 (rs6000_scale_v2df): Likewise.
13057 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13058 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13059 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13060 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13061 (vec_ctul): Likewise.
13062 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13063 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13064 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13065 * cse.c (fold_rtx): Likewise.
13066 * emit-rtl.c (immed_double_const): Likewise (in comments).
13067 (init_emit_once): Likewise.
13068 * expr.c (compress_float_constant, expand_expr_real_1)
13069 (const_vector_from_tree): Likewise.
13070 * optabs.c (expand_float, expand_fix): Likewise.
13071 * reg-stack.c (reg_to_stack): Likewise.
13072 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13073 (simplify_const_unary_operation, simplify_binary_operation_1)
13074 (simplify_const_binary_operation, simplify_relational_operation)
13075 (simplify_immed_subreg): Likewise.
13077 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13079 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13080 * doc/tm.texi: Regenerate.
13081 * real.h (REAL_ARITHMETIC): Delete.
13082 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13083 (ix86_expand_round_sse4): Use real_arithmetic instead of
13085 * config/i386/sse.md (round<mode>2): Likewise.
13086 * rtl.h (rtx_to_tree_code): Likewise (in comment).
13087 * explow.c (rtx_to_tree_code): Likewise (in comment).
13088 * match.pd: Likewise.
13089 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13090 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13091 (expand_pow_as_sqrts): Likewise.
13092 * tree-pretty-print.c (dump_generic_node): Remove code that
13093 was conditional on REAL_ARITHMETIC being undefined.
13095 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13097 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
13098 * doc/tm.texi: Regenerate.
13099 * real.h (real_less): Declare.
13100 (REAL_VALUES_LESS): Delete.
13101 * real.c (real_less): New function.
13102 (real_compare): Use it.
13103 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
13104 of REAL_VALUES_LESS.
13105 * config/microblaze/microblaze.c (microblaze_const_double_ok):
13107 * fold-const.c (fold_convert_const_int_from_real): Likewise.
13108 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13109 (simplify_const_relational_operation): Likewise.
13110 * tree-call-cdce.c (check_pow): Likewise.
13111 (gen_conditions_for_pow_cst_base): Likewise.
13113 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13115 * real.h (REAL_VALUES_IDENTICAL): Delete.
13116 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
13117 instead of REAL_VALUES_IDENTICAL.
13118 * fold-const.c (operand_equal_p): Likewise.
13119 * ipa-icf.c (sem_variable::equals): Likewise.
13120 * tree-complex.c (some_nonzerop): Likewise.
13121 (expand_complex_multiplication): Likewise.
13122 * tree.c (simple_cst_equal): Likewise.
13123 * varasm.c (compare_constant): Likewise.
13125 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13127 * real.h (real_equal): Declare.
13128 (REAL_VALUES_EQUAL): Delete.
13129 * real.c (real_equal): New function.
13130 (real_compare): Use it.
13131 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
13132 * doc/tm.texi: Regenerate.
13133 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
13134 real_equal instead of REAL_VALUES_EQUAL.
13135 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
13136 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
13137 (fp_const_from_val): Likewise.
13138 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
13139 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
13140 (floating_exact_log2): Likewise.
13141 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13142 * config/vax/vax.c (vax_float_literal): Likewise.
13143 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13144 * cprop.c (implicit_set_cond_p): Likewise.
13145 * expmed.c (expand_mult): Likewise.
13146 * fold-const.c (const_binop): Likewise.
13147 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13148 (simplify_const_binary_operation): Likewise.
13149 (simplify_const_relational_operation): Likewise.
13150 * tree-call-cdce.c (check_pow): Likewise.
13151 (gen_conditions_for_pow_cst_base): Likewise.
13152 * tree-inline.c (estimate_num_insns): Likewise.
13153 * tree-ssa-dom.c (record_equality): Likewise.
13154 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13155 (gimple_expand_builtin_pow): Likewise.
13156 (pass_optimize_widening_mul::execute): Likewise.
13157 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
13158 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
13159 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
13161 2015-10-05 Richard Biener <rguenther@suse.de>
13164 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
13165 consider loop header PHI defs as IVs.
13167 2015-10-05 Richard Biener <rguenther@suse.de>
13169 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
13171 (create_expression_by_pieces): ... here and build GIMPLE
13172 calls directly. Use gimple_build API and avoid force_gimple_operand.
13173 (insert_into_preds_of_block): Simplify.
13174 (do_regular_insertion): Add comment.
13176 2015-10-04 Jason Merrill <jason@redhat.com>
13178 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
13180 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
13182 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
13183 check for general register.
13184 (ix86_emit_save_regs): Ditto.
13185 (ix86_emit_save_regs_using_mov): Ditto.
13186 (ix86_emit_restore_regs_using_pop): Ditto.
13187 (ix86_emit_restore_regs_using_mov): Ditto.
13189 2015-10-03 Marek Polacek <polacek@redhat.com>
13191 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
13192 (insn-dfatab.o): Likewise.
13194 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
13196 * config.gcc (xtensa*-*-uclinux*): New configuration.
13197 * config/xtensa/uclinux.h: New file.
13198 * config/xtensa/uclinux.opt: New file.
13200 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
13202 * doc/cpp.texi (Standard Predefined Macros): Document value of
13203 __cplusplus for C++14.
13205 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
13207 * gcc.c (process_command): Use spec_machine rather than
13208 spec_host_machine to build tooldir_prefix2.
13210 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13211 Bernd Schmidt <bernds@codesourcery.com>
13213 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
13214 (Token, Stmt): Remove structs.
13215 (decls, vars, fns): Remove variables.
13216 (alloc_comment, append_stmt, is_keyword): Remove macros.
13217 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
13218 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
13219 (parse_init, parse_file): Remove functions.
13220 (read_file): Accept a pointer to a length and store into it.
13221 (process): Don't try to parse the input file, just write it out as
13222 a string, but looking for maps. Also write out the length.
13223 (main): Don't use "-S" to compile PTX code.
13225 2015-10-02 Jeff Law <law@redhat.com>
13227 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
13230 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13233 * config/nvptx/mkoffload.c (main): Scan the argument vector for
13234 -fopenmp, and skip generating an offloading image if specified.
13236 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
13238 * system.h (ROUND_UP): New macro definition.
13239 (ROUND_DOWN): Ditto.
13240 * ggc-page.c (ROUND_UP): Remove local macro definition.
13241 (PAGE_ALIGN): Implement using ROUND_UP macro.
13243 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
13244 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
13246 (ix86_compute_frame_layout): Ditto.
13247 (ix86_expand_prologue): Ditto.
13248 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
13249 to round down values.
13250 (expand_set_or_movmem_via_rep): Ditto.
13252 2015-10-02 Marek Polacek <polacek@redhat.com>
13254 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
13256 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
13258 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
13259 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
13260 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
13261 (free_gimple_bb): Renamed free_gimple_poly_bb.
13262 (try_generate_gimple_bb): Hoist loop invariant code.
13263 (analyze_drs_in_stmts): Same.
13264 (build_scop_drs): Call renamed functions.
13265 (new_pbb_from_pbb): Same.
13266 (scop_ivs_can_be_represented): Delete as functionality now moved to
13267 graphite-scop-detection.c
13268 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
13270 2015-10-02 Aditya Kumar <hiraditya@msn.com>
13272 * graphite-scop-detection.c (stmt_has_side_effects): New function
13273 outlined from stmt_simple_for_scop_p.
13274 (graphite_can_represent_stmt): Same.
13275 (stmt_simple_for_scop_p): Moved code out of this function for better
13278 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13280 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
13282 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
13284 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13286 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
13288 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
13290 PR rtl-optimization/67756
13291 * lra-constraints.c (match_reload): Add a new parameter. Use it
13292 for creating a pseudo with the same value.
13293 (curr_insn_transform): Pass a new argument to match_reload.
13295 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13297 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
13298 (expand_vec_perm_even_odd_1): Handle V64QImode.
13299 (ix86_expand_vec_perm_const_1): Try expansion with
13300 expand_vec_perm_even_odd_trunc as well.
13301 * config/i386/sse.md (VI124_AVX512F): Rename to ...
13302 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
13304 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
13305 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
13306 to V32HI and V16SI.
13307 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
13308 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
13309 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
13310 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
13311 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
13312 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
13314 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13316 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13317 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13319 2015-10-02 Jason Merrill <jason@redhat.com>
13322 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13323 (diagnose_tm_1_op): Also diagnose volatile accesses in
13324 transaction_safe function.
13326 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
13328 * system.h (malloc.h): Don't include obsolete header.
13330 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13332 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13333 (TLS_SECTION_ASM_FLAG): Delete.
13335 2015-10-02 Marek Polacek <polacek@redhat.com>
13338 * doc/invoke.texi: Document -Wduplicated-cond.
13339 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13340 (insn-dfatab.o): Likewise.
13341 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13344 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
13346 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13349 2015-10-02 Renlin Li <renlin.li@arm.com>
13351 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13353 2015-10-02 Renlin Li <renlin.li@arm.com>
13356 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13358 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13360 PR rtl-optimization/67786
13361 PR rtl-optimization/67787
13362 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13363 it modifies a reg used in the condition calculation.
13365 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
13367 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13368 alternatives for reads from memory and moves from general-purpose
13370 (*aarch64_combinez_be<mode>): Likewise.
13372 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
13375 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13376 selectany within this function without need to keep attribute.
13377 (i386_pe_encode_section_info): Remove selectany-code.
13379 2015-10-02 Richard Biener <rguenther@suse.de>
13381 * tree-ssa-sccvn.c (has_VN_INFO): New function.
13382 (free_scc_vn): Use it.
13383 (visit_use): Remove dead code and refactor to use gassign
13384 and use less indentation.
13386 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13390 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13391 (rs6000_cannot_copy_insn_p): New function.
13392 * config/rs6000/rs6000.md (cannot_copy): New attribute.
13393 (load_toc_v4_PIC_1_normal): Set cannot_copy.
13394 (load_toc_v4_PIC_1_476): Ditto.
13396 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13398 * graphite-scop-detection.c (struct sese_l): New conversion constructor
13399 so that this type can be pushed into a vec.
13400 (class scop_builder): use sese_l to collect scops.
13401 (get_scops): New getter function.
13402 (remove_intersecting_scops): Use sese_l instead of scops_p.
13403 (intersects): Same.
13406 (remove_subscops): Same.
13407 (build_scops): Add scops to vec<scops_p> once all the scops have been
13410 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13412 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13413 Renamed type from gimple_bb_p to gimple_poly_bb_p.
13414 (translate_isl_ast_node_user): Same.
13415 * graphite-poly.c (new_poly_bb): Same.
13416 * graphite-poly.h (gbb_from_bb): Same.
13418 * graphite-sese-to-poly.c (new_gimple_bb):
13419 gimple_bb_p -> gimple_poly_bb_p
13420 (build_scop_scattering): Same.
13421 (find_params_in_bb): Same.
13422 (add_conditions_to_domain): Same.
13423 (sese_dom_walker::before_dom_children): Same.
13424 (analyze_drs_in_stmts): Same.
13425 (new_pbb_from_pbb): Same.
13426 (free_data_refs_aux): New pointer to type base_alias_pair.
13427 * graphite-sese-to-poly.h: Same.
13428 * sese.c (if_region_set_false_region): Fixed Indentation.
13429 (move_sese_in_condition): Same.
13431 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13432 Aditya Kumar <aditya.k7@samsung.com>
13434 PR tree-optimization/66980
13435 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13436 when data reference analysis has failed.
13438 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13439 Aditya Kumar <aditya.k7@samsung.com>
13441 PR tree-optimization/67754
13442 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13443 scev analysis on the same loop nest as analyze_drs_in_stmts.
13444 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13446 (try_generate_gimple_bb): Call outermost_loop_in_sese.
13447 (analyze_drs_in_stmts): Same.
13448 * sese.c (outermost_loop_in_sese): ...here.
13450 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13451 Aditya Kumar <aditya.k7@samsung.com>
13453 PR tree-optimization/67754
13454 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13455 recursion on the inner loops.
13457 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13459 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13460 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13461 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13462 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13463 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13465 2015-10-01 Marek Polacek <polacek@redhat.com>
13468 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13469 create_tmp_var_raw rather than create_tmp_var.
13471 2015-10-01 Marek Polacek <polacek@redhat.com>
13473 PR tree-optimization/67769
13474 * tree-ssa-phiopt.c (conditional_replacement): Call
13475 reset_flow_sensitive_info_in_bb.
13476 (minmax_replacement): Likewise.
13477 (abs_replacement): Likewise.
13479 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
13481 * builtins.c: Don't include gomp-constants.h.
13482 (fold_builtin_1): Don't fold acc_on_device here.
13483 * gimple-fold.c: Include gomp-constants.h.
13484 (gimple_fold_builtin_acc_on_device): New.
13485 (gimple_fold_builtin): Call it.
13487 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
13489 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13490 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13492 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
13494 * config/arm/aarch-common-protos.h
13495 (aarch_accumulator_forwarding): New.
13496 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13497 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13498 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13499 * config/arm/cortex-a53.md: Rewrite.
13501 2015-10-01 Richard Biener <rguenther@suse.de>
13503 * gimple-match.h (mprts_hook): Declare.
13504 * gimple-match.head.c (mprts_hook): Define.
13505 (maybe_push_res_to_seq): Use new hook.
13506 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13507 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13508 (vn_ssa_aux::has_constants): Remove.
13509 * tree-ssa-sccvn.c: Include gimple-match.h.
13510 (VN_INFO_GET): Assert we don't re-use SSA names.
13511 (vn_get_expr_for): Remove.
13512 (expr_has_constants): Likewise.
13513 (stmt_has_constants): Likewise.
13514 (simplify_binary_expression): Likewise.
13515 (simplify_unary_expression): Likewise.
13516 (vn_lookup_simplify_result): New hook.
13517 (visit_copy): Adjust.
13518 (visit_reference_op_call): Likewise.
13519 (visit_phi): Likewise.
13520 (visit_use): Likewise.
13521 (process_scc): Likewise.
13522 (init_scc_vn): Likewise.
13523 (visit_reference_op_load): Likewise. Use match-and-simplify and
13524 a gimple seq for inserted expressions.
13525 (try_to_simplify): Remove GENERIC stmt combining code.
13526 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13527 * tree-ssa-pre.c (eliminate_insert): Adjust.
13528 (eliminate_dom_walker::before_dom_children): Likewise.
13530 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13532 * doc/invoke.texi (Optimization Options): Add
13533 -freorder-blocks-algorithm=.
13534 (Optimize Options) <-O>: Add -freorder-blocks.
13535 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
13536 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13537 <-freorder-blocks>: Also enabled at levels -O and -Os.
13538 <-freorder-blocks-algorithm=>: Document new option.
13540 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13542 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13543 with flag_reorder_blocks_algorithm.
13544 * common.opt (freorder-blocks-algorithm=): New flag.
13545 (reorder_blocks_algorithm): New enum.
13546 * flag-types.h (reorder_blocks_algorithm): New enum.
13547 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13548 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13550 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13552 * bb-reorder.c: Add intro comment.
13553 (reorder_basic_blocks_software_trace_cache): Print a header to
13555 (edge_order): New function.
13556 (reorder_basic_blocks_simple): New function.
13557 (reorder_basic_blocks): Choose between the STC and the simple
13558 algorithms (always choose the former).
13560 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13562 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13563 function, factored out from ...
13564 (reorder_basic_blocks): ... here.
13566 2015-10-01 Tom de Vries <tom@codesourcery.com>
13568 * tree-cfg.c (dump_function_to_file): Dump function attributes using
13569 __attribute__(()) string. Move dumping of function attributes to before
13572 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
13575 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13576 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13577 based on gold linker version.
13578 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13579 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13580 * configure, config.in: Regenerate.
13582 2015-10-01 Alan Modra <amodra@gmail.com>
13584 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13585 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13586 (rs6000_output_mi_thunk): Likewise.
13588 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13590 * config/nvptx/mkoffload.c (process): Change offload data format.
13592 2015-09-30 Jeff Law <law@redhat.com>
13594 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13595 with constant conditions.
13596 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13597 (remove_ctrl_stmt_and_useless_edges): No longer static.
13598 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13599 (remove_ctrl_stmt_and_useless_edges): Likewise.
13601 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13602 Cesar Philippidis <cesar@codesourcery.com>
13604 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13605 (TARGET_GOACC_VALIDATE_DIMS): Override.
13606 * target.def (TARGET_GOACC): New target hook prefix.
13607 (validate_dims): New hook.
13608 * targhooks.h (default_goacc_validate_dims): New.
13609 * omp-low.c (oacc_validate_dims): New.
13610 (execute_oacc_device_lower): New.
13611 (default_goacc_validate_dims): New.
13612 (pass_data_oacc_device_lower): New.
13613 (pass_oacc_device_lower): New pass.
13614 (make_pass_oacc_device_lower): New.
13615 * tree-pass.h (make_pass_oacc_device_lower): Declare.
13616 * passes.def (pass_oacc_device_lower): Add it.
13617 * doc/tm.texi: Rebuilt.
13618 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
13619 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
13621 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13623 PR rtl-optimization/67037
13624 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
13626 2015-09-30 Bernd Schmidt <bernds@redhat.com>
13628 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
13629 * passes.c: Include tree-ssanames.h.
13630 (execute_function_todo): Flush the pending free SSA_NAMEs after
13631 eliminating unreachable basic blocks.
13632 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
13633 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
13634 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
13635 (flush_ssanames_freelist): New function.
13636 (release_ssaname_fn): Put released names on the queue.
13637 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
13638 * tree-ssanames.h (flush_ssanames_freelist): Declare.
13640 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13642 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
13643 (generate_target_descr_file, generate_target_offloadend_file)
13644 (generate_host_descr_file, prepare_target_image): Pass it on.
13645 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
13646 (compile_native, main): Pass it on.
13647 * lto-wrapper.c (compile_offload_image): Likewise.
13649 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13650 Ilya Verbin <ilya.verbin@intel.com>
13651 Andrey Turetskiy <andrey.turetskiy@intel.com>
13653 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
13654 (prepare_target_image, main): Refactor argv building to use
13657 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13659 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
13660 * config/spu/spu.c (spu_expand_atomic_op): New function.
13661 * config/spu/spu.md (AINT): New mode iterator.
13662 (ATOMIC): New code iterator.
13663 (atomic_name, atomic_pred): New code predicates.
13664 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
13665 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
13666 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
13667 "atomic_<atomic_name>_fetch<mode>"): Likewise.
13669 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
13671 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
13673 (scalar_chain::convert_reg): Likewise.
13675 2015-09-30 Richard Biener <rguenther@suse.de>
13677 * builtins.c: Add comment that no new simplifications should
13680 2015-09-30 Marek Polacek <polacek@redhat.com>
13682 PR tree-optimization/67690
13683 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
13684 reset_flow_sensitive_info_in_bb.
13685 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13686 * tree-ssanames.c: Include "gimple-iterator.h".
13687 (reset_flow_sensitive_info_in_bb): New function.
13688 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
13690 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13692 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
13693 variable, replacing it with...
13694 (offload_abi): ... this new variable. Adjust all users.
13695 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
13697 2015-09-30 Matthias Klose <doko@ubuntu.com>
13699 * configure.ac: Remove extraneous ;;.
13700 * configure: Regenerate.
13702 2015-09-29 James Bowman <james.bowman@ftdichip.com>
13704 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
13705 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
13706 predicate, disallow register for operand 2.
13708 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
13710 * graphite-dependences.c (scop_get_dependences): Moved in down
13711 in order to be visible to its caller.
13712 * graphite-poly.h: Removed compute_deps, and extend_schedule.
13714 2015-09-29 Sebastian Pop <s.pop@samsung.com>
13715 Aditya Kumar <aditya.k7@samsung.com>
13717 PR tree-optimization/67754
13718 * graphite-optimize-isl.c (optimize_isl): Call
13719 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
13721 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13723 * builtins.c (expand_builtin_acc_on_device): Delete.
13724 (expand_builtin): Don't call it.
13725 (fold_builtin_1): Fold acc_on_device.
13727 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
13729 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
13730 (ix86_nsaved_sseregs): Likewise.
13732 2015-09-29 Jeff Law <law@redhat.com>
13734 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
13735 computation of unused value.
13737 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
13738 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
13739 inline macro expansion.
13741 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
13743 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
13744 (gen_shl_sext): Likewise.
13745 * config/sh/sh.md (divsi3): Likewise.
13746 (imm->ext_dest_operand splitter): Likewise.
13748 2015-09-29 Sebastian Pop <s.pop@samsung.com>
13749 Aditya Kumar <aditya.k7@samsung.com>
13751 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
13752 (nb_data_writes_in_bb): Remove.
13753 (split_pbb): Remove.
13754 (split_reduction_stmt): Remove.
13755 (is_reduction_operation_p): Remove.
13756 (phi_contains_arg): Remove.
13757 (follow_ssa_with_commutative_ops): Remove.
13758 (detect_commutative_reduction_arg): Remove.
13759 (detect_commutative_reduction_assign): Remove.
13760 (follow_inital_value_to_phi): Remove.
13761 (edge_initial_value_for_loop_phi): Remove.
13762 (initial_value_for_loop_phi): Remove.
13763 (used_outside_reduction): Remove.
13764 (detect_commutative_reduction): Remove.
13765 (translate_scalar_reduction_to_array_for_stmt): Remove.
13766 (remove_phi): Remove.
13767 (dr_indices_valid_in_loop): Remove.
13768 (close_phi_written_to_memory): Remove.
13769 (translate_scalar_reduction_to_array): Remove.
13770 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
13771 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
13772 (rewrite_commutative_reductions_out_of_ssa): Remove.
13773 (build_poly_scop): Remove call to
13774 rewrite_commutative_reductions_out_of_ssa.
13776 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
13778 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
13779 Add new insn types for vector load and store pairs.
13780 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
13781 types "neon_ldp{,_q}".
13782 * config/arm/cortex-a57.md (neon_load_c): Add insn types
13784 (neon_store_complex): Add insn types "neon_stp{,_q}".
13785 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13786 "neon_{ldp,stp}_q".
13788 2015-09-29 Jeff Law <law@redhat.com>
13790 * config/rx/constraints.md (Int08): Fix undefined left shift
13792 (Sint08, Sint16, Sint24): Likewise.
13793 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13795 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
13798 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
13799 left shift behaviour.
13800 * config/msp430/constraints.md ('L' constraint): Similarly.
13801 ('Ys' constraint): Similarly.
13803 2015-09-29 Richard Biener <rguenther@suse.de>
13805 PR tree-optimization/67170
13806 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
13807 the translate function pointer parameter to get the
13808 bool whether to disambiguate only by reference.
13809 (walk_non_aliased_vuses): Likewise.
13810 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13811 (get_continuation_for_phi_1): Likewise.
13812 (get_continuation_for_phi): Likewise.
13813 (walk_non_aliased_vuses): Likewise.
13814 * tree-ssa-sccvn.c (const_parms): New bitmap.
13815 (vn_reference_lookup_3): Adjust for interface change.
13816 Disambiguate parameters pointing to readonly memory.
13817 (free_scc_vn): Free const_parms.
13818 (run_scc_vn): Initialize const_parms from a fn spec attribute.
13820 2015-09-29 Richard Biener <rguenther@suse.de>
13822 PR tree-optimization/67741
13823 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
13824 builtin calls with correct signature.
13826 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
13829 * config/i386/i386.c: Include dbgcnt.h.
13830 (has_non_address_hard_reg): New.
13831 (convertible_comparison_p): New.
13832 (scalar_to_vector_candidate_p): New.
13833 (remove_non_convertible_regs): New.
13834 (scalar_chain): New.
13835 (scalar_chain::scalar_chain): New.
13836 (scalar_chain::~scalar_chain): New.
13837 (scalar_chain::add_to_queue): New.
13838 (scalar_chain::mark_dual_mode_def): New.
13839 (scalar_chain::analyze_register_chain): New.
13840 (scalar_chain::add_insn): New.
13841 (scalar_chain::build): New.
13842 (scalar_chain::compute_convert_gain): New.
13843 (scalar_chain::replace_with_subreg): New.
13844 (scalar_chain::replace_with_subreg_in_insn): New.
13845 (scalar_chain::emit_conversion_insns): New.
13846 (scalar_chain::make_vector_copies): New.
13847 (scalar_chain::convert_reg): New.
13848 (scalar_chain::convert_op): New.
13849 (scalar_chain::convert_insn): New.
13850 (scalar_chain::convert): New.
13851 (convert_scalars_to_vector): New.
13852 (pass_data_stv): New.
13854 (make_pass_stv): New.
13855 (ix86_option_override): Created and register stv pass.
13856 (flag_opts): Add -mstv.
13857 (ix86_option_override_internal): Likewise.
13858 * config/i386/i386.md (SWIM1248x): New.
13859 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
13860 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
13861 (*anddi3_doubleword): New.
13862 (*zext<mode>_doubleword): New.
13863 (*zextsi_doubleword): New.
13864 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
13865 (*<code>di3_doubleword): New.
13866 * config/i386/i386.opt (mstv): New.
13867 * dbgcnt.def (stv_conversion): New.
13869 2015-09-29 Tom de Vries <tom@codesourcery.com>
13871 * tree-cfg.c (dump_function_to_file): Dump function attributes.
13873 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
13876 * config/sh/sh.c (sh_override_options_after_change): New.
13877 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13878 (sh_option_override): Move align_loops, align_jumps and
13879 align_functions handling into sh_override_options_after_change.
13881 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13883 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
13884 (nvptx_record_offload_symbol): Record function execution geometry.
13885 * config/nvptx/mkoffload.c (process): Include launch geometry in
13887 * omp-low.c (oacc_launch_pack): New.
13888 (replace_oacc_fn_attrib): New.
13889 (set_oacc_fn_attrib): New.
13890 (get_oacc_fn_attrib): New.
13891 (expand_omp_target): Create keyed varargs for GOACC_parallel call
13893 * omp-low.h (get_oacc_fn_attrib): Declare.
13894 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
13895 (DEF_FUNCTION_TYPE_VAR_11): Delete.
13896 * tree.h (OMP_CLAUSE_EXPR): New.
13897 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
13899 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13900 Sebastian Pop <s.pop@samsung.com>
13902 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
13904 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13905 Sebastian Pop <s.pop@samsung.com>
13907 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
13908 * graphite-scop-detection.c (struct sese_l): New type.
13909 (get_entry_bb): API for getting entry bb of SESE.
13910 (get_exit_bb): API for getting exit bb of SESE.
13911 (class debug_printer): New type. Simple printer in debug mode.
13912 (trivially_empty_bb_p): New. Return true when BB is empty or
13913 contains only debug instructions.
13914 (graphite_can_represent_expr): Call scalar_evoution_in_region
13915 instead of analyze_scalar_evolution. Pass in scop instead of only
13917 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13919 (stmt_simple_for_scop_p): Same.
13920 (harmful_stmt_in_bb): Same.
13921 (graphite_can_represent_loop): Deleted.
13922 (struct scopdet_info): Deleted.
13923 (scopdet_basic_block_info): Deleted.
13924 (build_scops_1): Deleted.
13925 (bb_in_sd_region): Deleted.
13926 (find_single_entry_edge): Deleted.
13927 (find_single_exit_edge): Deleted.
13928 (create_single_entry_edge): Deleted.
13929 (sd_region_without_exit): Deleted.
13930 (create_single_exit_edge): Deleted.
13931 (unmark_exit_edges): Deleted.
13932 (mark_exit_edges): Deleted.
13933 (create_sese_edges): Deleted.
13934 (build_graphite_scops): Deleted.
13935 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13936 (build_scops): Use the new scop_builder to build scops.
13937 (dot_all_scops_1): Use the new pretty printer. Print loop father
13939 (loop_body_is_valid_scop): New. Return true if loop body is a
13941 (class scop_builder): New. Builds SCoPs for polyhedral
13943 (scop_builder): New constructor.
13944 (static sese_l invalid_sese): sese_l with invalid edges.
13945 (get_sese): Get an sese (from a loop) if possible, invalid_sese
13947 (get_nearest_dom_with_single_entry): Get nearest dominator of a
13948 basic_block with single entry. Return NULL if we get to the
13949 beginning of a function.
13950 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13951 a basic_block with single exit. Return NULL if we get to the
13952 beginning of a function.
13953 (print_sese): Pretty-print SESE.
13954 (merge_sese): Merge two SESEs if possible and return the new SESE.
13955 (build_scop_depth): Start building the SCoP within a loop nest.
13956 (build_scop_breadth): Start building the SCoP at a single loop
13957 depth. Merge adjacent SESEs if valid.
13958 (can_represent_loop_1): Returns true if Graphite can represent
13959 loop inside SCoP. Helper for can_represent_loop.
13960 (can_represent_loop): Returns true if Graphite can represent LOOP
13961 and all its nested loops in SCoP.
13962 (loop_is_valid_scop): Returns true if LOOP and all its nests
13963 constitute a valid SCoP.
13964 (region_has_one_loop): Returns true of a region has only one loop.
13965 (add_scop): Add SCoP to the list of valid scops. Removes an
13966 already existing scop if it intersects with or subsumed by this one.
13967 (harmful_stmt_in_region): Returns true if SCoP has any statment
13968 which cannot be represented by Graphite.
13969 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13970 (remove_subscops): Remove any SCoP from the list of already found
13971 SCoPs, if subsumed by S1.
13972 (intersects): Return true if region bounded by SCoPs S1 and S2
13974 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13975 * graphite.c (print_graphite_scop_statistics):
13976 (print_graphite_statistics): Print SCoP info while debugging.
13977 (graphite_initialize): Early exit in case number of loops in a
13978 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13979 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13980 (graphite_finalize):
13981 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13982 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13983 (recompute_all_dominators): Recalculate POST_DOMINATORS.
13984 * tree-cfg.c (print_loops): Print the function name while printing
13987 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13988 Sebastian Pop <s.pop@samsung.com>
13990 PR tree-optimization/67700
13991 * graphite-sese-to-poly.c (parameter_index_in_region): Call
13992 invariant_in_sese_p_rec.
13993 (extract_affine): Same.
13994 (rewrite_cross_bb_scalar_deps): Call update_ssa.
13995 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
13996 * sese.h (invariant_in_sese_p_rec): Declare.
13998 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14000 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14002 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14005 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14006 Jiong Wang <jiong.wang@arm.com>
14008 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14009 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14010 (REG_CLASS_NAMES): Likewise.
14011 (REG_CLASS_CONTENTS): Likewise.
14012 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14013 (aarch64_register_move_cost): Likewise.
14014 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14016 * config/aarch64/constraints.md (Uc0): New constraint.
14018 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14020 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14022 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14024 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14025 SECTION_EXCLUDE in XO mapping class.
14027 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
14030 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14031 and handle ne and eq codes.
14032 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14033 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
14034 CONST_INT_P. Use reverse_condition.
14035 (sh_split_treg_set_expr): Likewise.
14037 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
14039 * config/arm/types.md (type): Add rotate_imm.
14040 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14041 ROR immediate case.
14042 (*rorsi3_insn_uxtw): Likewise.
14043 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14044 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14045 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14047 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14049 PR rtl-optimization/67481
14050 * ifcvt.c (contains_ccmode_rtx_p): New function.
14051 (insn_valid_noce_process_p): Use it.
14053 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14055 PR rtl-optimization/67456
14056 PR rtl-optimization/67464
14057 PR rtl-optimization/67465
14058 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14059 move in the mode of x. Handle combination of complex and simple
14060 block pairs as well as the case when one is empty.
14062 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14064 * doc/gimple.texi: Update references to gimple_statement_base.
14065 * gdbhooks.py: Likewise.
14066 * gimple.h: Likewise.
14068 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14070 * config/sparc/driver-sparc.c: map LEON to leon3
14072 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14074 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14075 and make it inverse to change default
14076 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14078 * doc/invoke.texi: Document change of default
14080 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14082 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14083 true on %f0 for a target without FPU.
14084 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14086 (untyped_return): Do not load %f0 for a target without FPU.
14088 2015-09-28 Andrew Pinski <apinski@cavium.com>
14090 * config/aarch64/aarch64.md (prefetch):
14091 Change the predicate of operand 0 to register_operand.
14093 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
14095 * config/i386/predicates.md (register_sse4nonimm_operand): New
14097 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
14098 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
14099 Use register_sse4nonimm_operand as operand 0 predicate.
14100 (*vec_extractv8hi_sse2): Remove insn pattern.
14101 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
14102 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
14104 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
14105 Kaz Kojima <kkojima@gcc.gnu.org>
14108 * config/sh/sh-protos.h (sh_lra_p): Declare.
14109 * config/sh/sh.c (sh_lra_p): Make non-static.
14110 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
14111 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
14112 Expand into addsi3_scr if operands[2] if needed.
14113 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
14114 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
14115 (addsi3_scr, *addsi3): New insn_and_split patterns.
14117 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
14119 PR rtl-optimization/64164
14120 PR tree-optimization/67312
14121 PR middle-end/67340
14122 PR middle-end/67490
14124 * cfgexpand.c (parm_in_stack_slot_p): Remove.
14125 (ssa_default_def_partition): Remove.
14126 (get_rtl_for_parm_ssa_default_def): Remove.
14127 (set_rtl): Check that RTL assignments match expectations.
14128 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
14129 default def location for params and results. Record SSA names
14130 or types in REG and MEM attrs, respectively.
14131 (set_parm_rtl): New.
14132 (expand_one_ssa_partition): Drop logic that assigned MEMs with
14133 unassigned addresses.
14134 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
14135 deferred stack alloc vars.
14136 (expand_used_vars): Skip partitions holding parm default defs.
14137 Move adjust_one_expanded_partition_var loop...
14138 (pass_expand::execute): ... here. Drop redundant assert.
14139 Adjust comments before the final loop over all ssa names.
14140 Require assigned rtl of parms and results to match exactly.
14141 Reset its attributes to match them, not any other variables in
14142 the same partition.
14143 (expand_debug_expr): Use entry value for PARM's default defs
14144 only iff they have zero nondebug uses.
14145 * cfgexpand.h (parm_in_stack_slot_p): Remove.
14146 (get_rtl_for_parm_ssa_default_def): Remove.
14147 (set_parm_rtl): Declare.
14148 * doc/invoke.texi: Improve wording.
14149 * explow.c (promote_decl_mode): Fix promote_function_mode for
14150 result decls not by reference.
14151 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
14152 bypass TYPE_MODE to get the actual vector mode.
14153 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
14154 2015-08-19's changes as follows. Drop include of
14155 basic-block.h and df.h.
14156 (rtl_for_parm): Remove.
14157 (maybe_reset_rtl_for_parm): Remove.
14158 (parm_in_unassigned_mem_p): Remove.
14159 (use_register_for_decl): Add logic for RESULT_DECLs matching
14160 assign_parms' behavior.
14161 (split_complex_args): Revert.
14162 (assign_parms_augmented_arg_list): Revert. Add comment
14163 referencing the logic above.
14164 (assign_parm_adjust_stack_rtl): Revert.
14165 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
14166 of SET_DECL_RTL. Set up a REG if the parm demands so.
14167 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
14168 calls into a single set_parm_rtl. Set up a temporary RTL
14169 temporarily for expand_assignment.
14170 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
14171 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
14172 (assign_bounds): Revert.
14173 (assign_parms): Revert. Use set_parm_rtl.
14174 (allocate_struct_function): Relayout result and parms of
14175 non-abstruct functions.
14176 (expand_function_start): Revert. Use set_parm_rtl. If the
14177 result is not a hard reg, create a pseudo from the promoted
14178 mode of the default def. Promote static chain mode.
14179 * tree-outof-ssa.c (remove_ssa_form): Drop unused
14180 partition_has_default_def. Set up
14181 partitions_for_parm_default_defs.
14182 (finish_out_of_ssa): Remove partition_has_default_def.
14183 Release partitions_for_parm_default_defs.
14184 * tree-outof-ssa.h (struct ssaexpand): Remove
14185 partition_has_default_def. Add
14186 partitions_for_parm_default_defs.
14187 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
14189 (build_ssa_conflict_graph): Fix conflict-detection of default
14190 defs of even unused default defs of params and results.
14191 (for_all_parms): New.
14192 (create_default_def): New.
14193 (register_default_def): New.
14194 (coalesce_with_default): New.
14195 (create_outofssa_var_map): Create default defs for all parms
14196 and results, and register their partitions. Add GIMPLE_RETURN
14197 operands as coalesce candidates with results. Add default
14198 defs of each parm or result as coalesce candidates with its
14199 other defs. Mark each result def, and each default def of
14200 parms, as used_in_copy.
14201 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
14202 with the ssa names, even anonymous ones. Drop
14203 parm_in_stack_slot_p calls. Require same signedness and
14205 (coalesce_ssa_name): Add coalesce candidates for all defs of
14206 each parm and result, even unused ones.
14207 (parm_default_def_partition_arg): New type.
14208 (set_parm_default_def_partition): New.
14209 (get_parm_default_def_partitions): New.
14210 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
14211 * tree-ssa-live.c (partition_view_init): Regard unused defs of
14212 parms and results as used.
14213 (verify_live_on_entry): Don't error out just because they're
14216 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
14218 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14219 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
14220 (output_fde): Don't output length for debug_frame on AIX.
14221 (output_call_frame_info): Don't output length for debug_frame on AIX.
14222 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
14223 HAVE_XCOFF_DWARF_EXTRAS.
14224 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
14225 HAVE_XCOFF_DWARF_EXTRAS.
14226 (output_compilation_unit_header): Don't output length on AIX.
14227 (output_pubnames): Don't output length on AIX.
14228 (output_aranges): Delete argument. Compute length locally. Don't
14229 output length on AIX.
14230 (output_line_info): Don't output length on AIX.
14231 (dwarf2out_finish): Don't compute aranges_length.
14232 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14233 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
14234 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
14235 symbol decoration for AIX.
14236 (rs6000_xcoff_debug_unwind_info): New.
14237 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
14239 (rs6000_xcoff_declare_function_name): Emit different
14240 .function pseudo-op when DWARF2_DEBUG. Don't call
14241 xcoffout_declare_function for DWARF2_DEBUG.
14242 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
14244 * config/rs6000/aix71.h: New.
14245 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
14247 * configure: Regenerate.
14248 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
14251 2015-09-26 Jeff Law <law@redhat.com>
14253 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
14255 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
14258 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
14261 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
14262 undefined behaviour.
14264 * config/cris/cris.md (asrandb): Fix left shift undefined
14266 (asrandw): Likewise.
14268 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
14271 * lra-constarints.c (match_reload): Check presence of the input pseudo
14272 in the output operand.
14274 2015-09-25 Tobias Burnus <burnus@net-b.de>
14276 * doc/invoke.texi (-fsanitize): Minor wording tweak.
14278 2015-09-25 Tobias Burnus <burnus@net-b.de>
14280 * doc/invoke.texi (-fsanitize): Update URLs.
14282 2015-09-25 Teresa Johnson <tejohnson@google.com>
14284 * opts.c (finish_options): Unset -freorder-blocks-and-partition
14285 if not using profile.
14287 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
14289 PR pretty-print/67567
14290 * pretty-print.c (pp_string): Add gcc_checking_assert.
14291 * pretty-print.h (output_buffer_append_r): Likewise.
14293 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
14296 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
14297 addr2 individually. Don't emit logical or insn if one is known to
14298 be aligned approriately.
14299 (sh_expand_cmpnstr): Likewise.
14301 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
14303 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
14304 __builtin_aarch64_fp[sc]r arguments into a register.
14306 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
14308 * config.gcc (x86_archs): Replace lakemount with lakemont.
14309 (with_cpu): Likewise.
14310 (with_arch): Likewise.
14311 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14312 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
14313 __tune_lakemount__ with __tune_lakemont__.
14314 * config/i386/i386.c (lakemount_cost): Renamed to ...
14315 (lakemont_cost): This.
14316 (m_LAKEMOUNT): Renamed to ...
14317 (m_LAKEMONT): This.
14318 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14319 (processor_target_table): Replace "lakemount" with "lakemont".
14320 (processor_alias_table): Likewise.
14321 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14322 PROCESSOR_LAKEMONT.
14323 (ix86_adjust_cost): Likewise.
14324 (ia32_multipass_dfa_lookahead): Likewise.
14325 * config/i386/i386.h (processor_type): Likewise.
14326 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14327 * doc/invoke.texi: Replace lakemount with lakemont. Replace
14328 Lakemount with Lakemont.
14330 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
14332 * config.gcc (x86_archs): Replace iamcu with lakemount.
14333 (with_cpu): Likewise.
14334 (with_arch): Likewise.
14335 * doc/invoke.texi: Likewise.
14336 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14337 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
14338 __tune_iamcu__ with __tune_lakemount__.
14339 * config/i386/i386.c (iamcu_cost): Renamed to ...
14340 (lakemount_cost): This.
14341 (m_IAMCU): Renamed to ...
14342 (m_LAKEMOUNT): This.
14343 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14344 (processor_target_table): Replace "iamcu" with "lakemount".
14345 (processor_alias_table): Likewise.
14346 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14347 PROCESSOR_LAKEMOUNT.
14348 (ix86_adjust_cost): Likewise.
14349 (ia32_multipass_dfa_lookahead): Likewise.
14350 * config/i386/i386.h (processor_type): Likewise.
14351 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14353 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
14355 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14356 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14358 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14359 (pa_expand_compare_and_swap_loop): New.
14360 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14361 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14362 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14363 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14364 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14367 2015-09-24 Michael Collison <michael.collison@linaro.org>
14370 * read-md.c (read_name): Allow mode iterators inside angle
14371 brackets in rtl expressions.
14373 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
14376 * ira-color.c (update_allocno_cost): Add parameter.
14377 (update_costs_from_allocno): Decrease conflict cost. Pass the new
14380 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14383 * opts-common.c (prune_options): Discard all -fdiagnostics-color
14384 but the last one, which is moved to the front to be processed
14386 * opts.c (enable_warning_as_error): Reject options that do not
14389 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14391 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14393 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14395 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14396 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14397 (aarch64_cannot_force_const_mem): Likewise.
14398 (aarch64_classify_address): Likewise.
14399 (aarch64_classify_symbolic_expression): Likewise.
14400 (aarch64_print_operand): Likewise.
14401 (aarch64_classify_symbol): Likewise.
14402 (aarch64_mov_operand_p): Likewise.
14403 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14404 (aarch64_mov_operand): Likewise.
14406 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
14408 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14409 for info->spe_gp_size.
14411 2015-09-24 Richard Biener <rguenther@suse.de>
14414 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14417 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
14419 * tree-object-size.c (plus_stmt_object_size)
14420 (cond_expr_object_size): Change the formal parameters from gimple
14422 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14423 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14424 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14426 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14428 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14429 Check for ld -type pie on Solaris 11.x and 12.
14430 * configure: Regenerate.
14431 * config.in: Regenerate.
14433 * gcc.c (LD_PIE_SPEC): Allow redefinition.
14435 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14436 (STARTFILE_SPEC): Use it.
14437 (ENDFILE_CRTEND_SPEC): Define.
14438 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14439 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14440 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14441 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14442 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14443 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14444 (ENDFILE_ARCH_SPEC): Define.
14445 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14447 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14449 * configure.ac (gcc_cv_solaris_crts): New test.
14450 * configure. Regenerate.
14451 * config.in: Regenerate.
14452 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14453 HAVE_SOLARIS_CRTS variant.
14455 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14457 * tree-inline.h (count_insns_seq): Delete prototype.
14458 (estimate_num_insns_seq): Define prototype.
14459 * tree-inline.c (count_insns_seq): Delete.
14460 (estimate_num_insns_seq): Remove static qualifier.
14461 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14462 with estimate_num_insns_seq.
14464 2015-09-24 Richard Biener <rguenther@suse.de>
14466 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14468 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14469 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
14471 (ao_ref_init_from_vn_reference): Record clique and base in the
14473 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14475 2015-09-24 Richard Biener <rguenther@suse.de>
14477 PR tree-optimization/48885
14478 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14479 as not including any restrict tags from other pointers.
14481 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14483 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14484 character when appending to offload_targets.
14486 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14487 offload targets by commas, not colons.
14488 * config.in: Regenerate.
14489 * configure: Likewise.
14490 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14491 instead of setting up the default offload targets here...
14492 (process_command): ..., do it here.
14494 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14495 targets are separated by commas.
14496 * config.h.in: Regenerate.
14498 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14499 Nathan Sidwell <nathan@codesourcery.com>
14501 * omp-low.h (omp_reduction_init_op): Declare.
14502 * omp-low.c (omp_reduction_init_op): New, broken out of ...
14503 (omp_reduction_init): ... here. Call it.
14504 * tree-parloops.c (initialize_reductions): Use
14505 omp_reduction_init_op.
14507 2015-09-23 Richard Biener <rguenther@suse.de>
14509 PR middle-end/67662
14510 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14511 undefined overflow unless they will cancel out.
14513 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14515 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14518 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14521 * opts.h (write_langs): Declare.
14522 * opts-global.c (write_langs): Make it extern.
14524 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
14527 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14528 overlapping regs when matching the pattern.
14530 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14532 * config/aarch64/aarch64-simd.md
14533 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14534 (aarch64_float_truncate_hi_v4sf_le): New.
14535 (aarch64_float_truncate_hi_v4sf_be): Likewise.
14537 2015-09-23 Richard Biener <rguenther@suse.de>
14539 * tree-ssa-structalias.c (intra_create_variable_infos): Build
14540 representatives for all restrict qualified pointer destinations.
14542 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14544 * config/i386/i386.md (define_code_attr mshift): New.
14545 (define_mode_iterator SWI1248_AVX512BW): Rename ...
14546 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14548 (define_insn "*k<logic><mode>"): Use new iterator name.
14549 (define_insn "*<mshift><mode>3"): New.
14551 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
14553 PR middle-end/67649
14554 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14555 mark the block as accessible.
14557 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
14559 * function.c (thread_prologue_and_epilogue_insns): Delete
14560 orig_entry_edge argument to try_shrink_wrapping.
14561 * shrink-wrap.c (can_get_prologue): New function.
14562 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14563 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
14564 can_get_prologue where needed. Remove code that finds a single
14565 edge for the prologue. Remove code that tests if any reg clobbered
14566 by the prologue is live on the prologue edge. Remove code that finds
14567 the new prologue edge after duplicating blocks. Make a new prologue
14569 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14571 2015-09-22 Jeff Law <law@redhat.com>
14573 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14576 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
14578 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
14579 -Wtemplates, -Wnamespaces): Document.
14581 2015-09-22 Tom de Vries <tom@codesourcery.com>
14583 PR tree-optimization/67671
14584 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14585 pointer references as restrict.
14587 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14589 * config/nios2/nios2.c (nios2_legitimize_address): When handling
14590 'reg + reloc' cases, allow first operand to be non-REG, and use
14591 force_reg() to enforce address pattern.
14593 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
14596 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14597 (define_mode_iterator VI12_AVX_AVX512F): New.
14598 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14599 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14600 (define_insn "*<code><mode>3"): ... Into new pattern using
14601 VI12_AVX_AVX512F iterators without masking.
14603 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14605 * config.gcc: Support "skylake-avx512".
14606 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14607 PROCESSOR_SKYLAKE_AVX512.
14608 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14609 (processor_target_table): Add "skylake-avx512".
14610 (PTA_SKYLAKE_AVX512): Define.
14611 (ix86_option_override_internal): Add "skylake_avx512".
14612 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
14613 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
14614 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
14615 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
14616 * doc/invoke.texi (skylake-avx512): New.
14618 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14620 * config/i386/i386.md (define_insn "kunpckhi"): Fix
14621 operand in pattern.
14622 (define_insn "kunpcksi"): Ditto.
14623 (define_insn "kunpckdi"): Ditto.
14625 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14627 * config/i386/i386.md (define_split not/xor SWI1248x): Use
14628 iterator instead of fixed modes.
14630 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14632 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14633 Adjust declaration.
14634 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
14635 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
14636 out_result. Update to support update-fetch operations.
14637 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
14638 Adjust for change to aarch64_gen_atomic_ldop.
14639 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
14640 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
14641 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
14642 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
14643 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
14645 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14647 * config/aarch64/aarch64-protos.h
14648 (aarch64_atomic_ldop_supported_p): Declare.
14649 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
14650 (enum aarch64_atomic_load_op_code): New.
14651 (aarch64_emit_atomic_load_op): New.
14652 (aarch64_gen_atomic_ldop): Update to support load-operate
14654 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
14656 (aarch64_atomic_<atomic_optab><mode>): New.
14657 (aarch64_atomic_<atomic_optab><mode>_lse): New.
14658 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
14659 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
14660 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
14662 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14664 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
14665 (UNSPECV_ATOMIC_LDOP_OR): New.
14666 (UNSPECV_ATOMIC_LDOP_BIC): New.
14667 (UNSPECV_ATOMIC_LDOP_XOR): New.
14668 (UNSPECV_ATOMIC_LDOP_PLUS): New.
14669 (ATOMIC_LDOP): New.
14670 (atomic_ldop): New.
14671 (aarch64_atomic_load<atomic_ldop><mode>): New.
14673 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14675 * config/aarch64/aarch64.md
14676 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
14679 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14681 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14683 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
14684 (aarch64_gen_atomic_ldop): New.
14685 (aarch64_split_atomic_op): Fix whitespace and add a comment.
14686 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
14687 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
14688 (atomic_exchange<mode>): Replace with an expander.
14689 (aarch64_atomic_exchange<mode>): New.
14690 (aarch64_atomic_exchange<mode>_lse): New.
14691 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
14692 (aarch64_atomic_swp<mode>): New.
14694 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
14696 * tree-inline.c (expand_call_inline): Use inform for extra note.
14697 Do not give a note with UNKNOWN_LOCATION.
14698 Replace input_location with gimple_location (stmt).
14699 Use true/false instead of TRUE/FALSE.
14701 2015-09-22 Tom de Vries <tom@codesourcery.com>
14703 PR tree-optimization/67666
14704 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
14705 with single field non-conservative.
14707 2015-09-21 David S. Miller <davem@davemloft.net>
14711 2015-09-11 David S. Miller <davem@davemloft.net>
14713 * config/sparc/constraints.md: Make "U" constraint a real register
14715 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14716 (D_MODES, DF_MODES): Add missing cast.
14717 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14718 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14719 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14721 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14722 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14723 provide these insn when flag_pic.
14725 2015-09-17 David S. Miller <davem@davemloft.net>
14727 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
14729 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
14731 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14732 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14733 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14734 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14735 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14736 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14737 provide when flag_pic.
14739 2015-09-21 Jeff Law <law@redhat.com>
14741 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
14744 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14746 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
14748 2015-09-21 Richard Biener <rguenther@suse.de>
14750 * passes.c (rest_of_decl_compilation): Do not call
14751 dwarf2out_early_global_decl for aliases.
14753 2015-09-21 Richard Biener <rguenther@suse.de>
14756 * dwarf2out.c (add_location_or_const_value_attribute): Remove
14757 attribute parameter. Early exit if either DW_AT_const_value
14758 or DW_AT_location are present already.
14759 (gen_variable_die): Adjust caller.
14760 (dwarf2out_late_global_decl): Likewise.
14762 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14765 * config/sh/sh.c (sh_remove_overlapping_post_inc,
14766 sh_peephole_emit_move_insn): Add new functions.
14767 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
14768 sh_peephole_emit_move_insn): Declere them.
14769 * config/sh/sh.md: Use them in various peephole2 patterns.
14771 2015-09-21 Richard Biener <rguenther@suse.de>
14773 PR middle-end/67651
14774 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
14775 address with -fno-delete-null-pointer-checks.
14777 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
14779 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
14780 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
14781 (reduc_uplus_v16qi): Remove.
14783 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
14784 (reduc_<VEC_reduc_name>_v2df): Remove.
14785 (reduc_<VEC_reduc_name>_v4sf): Remove.
14786 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
14788 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
14789 gen_ function by removing * prefix.
14790 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
14792 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14794 PR middle-end/60832
14795 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14796 Print i_bound without converting it to a tree.
14798 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
14800 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
14801 operands[4] operands[5] swap with std::swap, removed tmp variable.
14802 (arm_evpc_neon_vzip): Replaced in0/in1 and
14803 out0/out1 swaps with std::swap, removed x variable.
14804 (arm_evpc_neon_vtrn): Replaced in0/int1 and
14805 out0/out1 swaos with std::swap, removed x variable.
14806 (arm_expand_vec_perm_const_1): Replaced
14807 d->op0/d->op1 swap with std::swap, removed x variable.
14808 (arm_evpc_neon_vuzp): Replaced in0/in1 and
14809 out0/out1 swaps with std::swap, removed x variable.
14811 2015-09-21 Jonathan Yong <10walls@gmail.com>
14813 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14814 sysroot/usr/lib/32api for additional win32 libraries,
14815 fixes failing Cygwin bootstrapping.
14817 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14819 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
14821 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14824 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
14825 (*mov_t_msb_neg): Rewrite negc pattern.
14827 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14829 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
14830 immediate generation code.
14832 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14834 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
14835 redundant immediate generation code.
14837 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14839 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
14840 (AARCH64_NUM_BITMASKS): Remove.
14841 (aarch64_bitmasks_cmp): Remove.
14842 (aarch64_build_bitmask_table): Remove.
14844 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14846 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
14847 slow immediate matching loops with a faster algorithm.
14849 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14851 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
14854 2015-09-20 Jeff Law <law@redhat.com>
14856 PR tree-optimization/47679
14857 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
14858 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
14859 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
14860 (thread_through_normal_block): Use record_temporary_equivalences.
14862 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
14864 * coretypes.h (gimple): Change typedef to be a forward declaration.
14865 * gimple.h (gimple_statement_base): rename to gimple.
14866 * (all functions and types using gimple): Adjust.
14867 * *.[ch]: Likewise.
14869 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
14870 David Edelsohn <dje.gcc@gmail.com>
14872 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
14873 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14874 (EH_FRAME_THROUGH_COLLECT2): Define.
14875 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14876 (ASM_OUTPUT_DWARF_PCREL): Define.
14877 (ASM_OUTPUT_DWARF_DATAREL): Define.
14879 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
14881 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
14884 2015-09-18 Jeff Law <law@redhat.com>
14886 PR tree-optimization/47679
14887 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
14889 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
14890 object. Update constructor.
14891 (pass_dominator::execute): Corresponding chagnes to declaration
14892 and initialization of avail_exprs_stack. Update constructor call
14893 for dom_opt_dom_walker object.
14894 (lookup_avail_expr, record_cond): Accept additional argument. Pass
14895 it down to children as needed.
14896 (record_equivalences_from_incoming_edge): Likewise.
14897 (eliminate_redundant_computations): Likewise.
14898 (record_equivalences_from_stmt): Likewise.
14899 (simplify_stmt_for_jump_threading): Likewise.
14900 (record_temporary_equivalences): Likewise.
14901 (optimize_stmt): Likewise.
14902 (dom_opt_dom_walker::thread_across_edge): Update access to
14903 avail_exprs_stack object and pass it to children as needed.
14904 (dom_opt_dom_walker::before_dom_children): Similarly.
14905 (dom_opt_dom_walker::after_dom_children): Similarly.
14906 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
14907 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
14908 Add avail_expr_stack argument. Pass it to children as needed.
14909 (dummy_simplify): Likewise.
14910 (simplify_control_stmt_condition): Likewise.
14911 (thread_around_empty_blocks): Likewise.
14912 (thread_through_normal_block): Likewise.
14913 (thread_across_edge): Likewise.
14914 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14915 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14917 PR tree-optimization/47679
14918 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
14920 (dom_opt_dom_walker): New private member holding the const_and_copies
14921 object. Update constructor.
14922 (pass_dominator::execute): Corresponding changes to declaration
14923 and initialization of const_and_copies. Update constructor call
14924 for the dom_opt_dom_walker object.
14925 (record_temporary_equivalences): Accept const_and_copies argument
14926 pass it down to children as needed.
14927 (record_equality): Likewise.
14928 (record_equivalences_from_incoming_edge): Likewise.
14929 (cprop_into_successor_phis, optimize_stmt): Likewise.
14930 (eliminate_redundant_computations): Likewise.
14931 (dom_opt_dom_walker::thread_across_edge): Update access to
14932 const_and_copies object and pass it to children as needed.
14933 (dom_opt_dom_walker::before_dom_children): Similarly.
14934 (dom_opt_dom_walker::after_dom_children): Similarly.
14936 PR tree-optimization/47679
14937 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
14938 it into the avail_exprs_stack class.
14939 (pass_dominator::execute): Corresponding changes to declaration
14940 and initialization of avail_exprs. Pass avail_exprs to
14941 dump_dominator_optimization_stats.
14942 (record_cond): Extract avail_exprs from avail_exprs_stack.
14943 (lookup_avail_expr): Similarly.
14944 (htab_staticstics): Remove unnecessary prototype. Move to earlier
14946 (dump_dominator_optimization_stats): Make static and prototype.
14947 Add argument for the hash table to dump.
14948 (debug_dominator_optimization_stats): Remove.
14949 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14951 (debug_dominator_optimization_stats): Similarly.
14952 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14953 "void" in prototype for pop_to_marker method. Add accessor method
14954 for the underlying avail_exprs table.
14956 * tree-ssa-threadedge.c: Remove trailing whitespace.
14958 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
14960 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14962 (pa_ldil_cint_p): Likewise.
14963 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14964 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14966 * config/pa/pa.md: Likewise.
14968 2015-09-18 David Malcolm <dmalcolm@redhat.com>
14970 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14971 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14972 (diagnostic_show_locus): Likewise.
14973 (diagnostic_print_caret_line): Likewise.
14974 * diagnostic-show-locus.c: New file.
14976 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
14978 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14979 "back" parameter. Declare label in #if block.
14981 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
14983 PR middle-end/67619
14984 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14985 the address to a register.
14987 2015-09-18 Jeff Law <law@redhat.com>
14989 PR tree-optimization/47679
14990 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14991 * tree-ssa-dom.c: Remove unnecessary header includes.
14992 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14993 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14994 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14995 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14996 (pass_phi_only_cprop::execute): Likewise.
14997 (make_pass_phi_only_cprop): Likewise.
14998 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
14999 uses of file scoped statics by passing the required objects
15000 as parameters wherever needed.
15002 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15003 David Edelsohn <dje.gcc@gmail.com>
15005 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15006 EH_FRAME_THROUGH_COLLECT2.
15007 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15009 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15010 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15011 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15012 * except.c (switch_to_exception_section): Use a read-only section
15013 even if EH_FRAME_SECTION_NAME is undefined.
15014 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15015 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15016 (scan_prog_file): Don't export __dso_handle nor
15017 __gcc_unwind_dbase.
15018 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15019 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15020 (ASM_OUTPUT_DWARF_PCREL): Define.
15021 (ASM_OUTPUT_DWARF_DATAREL): Define.
15022 (EH_FRAME_THROUGH_COLLECT2): Define.
15023 (EH_FRAME_IN_DATA_SECTION): Delete.
15024 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15025 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15027 (rs6000_asm_output_dwarf_datarel): Declare.
15028 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15029 (rs6000_aix_asm_output_dwarf_datarel): New.
15030 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15031 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15032 (EH_FRAME_THROUGH_COLLECT2): Define.
15033 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15034 (EH_FRAME_THROUGH_COLLECT2): Define.
15035 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15036 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15037 (EH_FRAME_THROUGH_COLLECT2): New.
15038 (ASM_OUTPUT_DWARF_DATAREL): New.
15039 * doc/tm.texi: Regenerate.
15041 2015-09-18 Richard Biener <rguenther@suse.de>
15043 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15044 we're in early phase.
15045 (schedule_generic_params_dies_gen): Likewise.
15046 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15047 work as possible, retaining unhandled cases.
15048 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15049 clear out generic_type_instances at the end.
15050 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15051 (dwarf2out_early_finish): ... here. Do most of
15052 gen_remaining_tmpl_value_param_die_attribute here.
15054 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
15056 PR tree-optimization/67283
15057 * tree-sra.c (type_consists_of_records_p): Rename to...
15058 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15059 (completely_scalarize_record): Rename to...
15060 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15061 (scalarize_elem): New.
15062 (analyze_all_variable_accesses): Follow renamings.
15064 2015-09-18 Richard Biener <rguenther@suse.de>
15066 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15069 2015-09-18 Richard Biener <rguenther@suse.de>
15071 PR tree-optimization/66142
15072 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15073 treat MEM[&x] and x the same.
15074 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15075 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15076 when we simplified sth.
15077 (vn_reference_maybe_forwprop_address): Likewise.
15078 (valueize_refs_1): When we simplified through
15079 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15080 set valueized_anything to true.
15081 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15082 one ref kills the other instead of just a offset-based test.
15083 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15084 for the operand_equal_p test to compare bases and also compare
15087 2015-09-17 Christian Bruel <christian.bruel@st.com>
15089 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15091 2015-09-17 Richard Henderson <rth@redhat.com>
15094 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15095 pointers that encode the alignment of the object.
15097 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15099 PR rtl-optimization/66790
15100 * df-problems.c (LIVE): Amend documentation.
15102 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
15104 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
15106 (GTFILES): Replace optabs.c with optabs-libfunc.c.
15107 * genopinit.c (main): Add an include guard to insn-opinit.h.
15108 Protect the rtx_code parts with NUM_RTX_CODE.
15109 * optabs.h: Split parts out to...
15110 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
15111 * optabs.c: Split parts out to...
15112 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
15113 * cilk-common.c: Include optabs-query.h rather than optabs.h.
15114 * fold-const.c: Likewise.
15115 * target-globals.c: Likewise.
15116 * tree-if-conv.c: Likewise.
15117 * tree-ssa-forwprop.c: Likewise.
15118 * tree-ssa-loop-prefetch.c: Likewise.
15119 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
15120 Remove unncessary include files.
15121 * tree-ssa-phiopt.c: Likewise.
15122 * tree-ssa-reassoc.c: Likewise.
15123 * tree-switch-conversion.c: Likewise.
15124 * tree-vect-data-refs.c: Likewise.
15125 * tree-vect-generic.c: Likewise.
15126 * tree-vect-loop.c: Likewise.
15127 * tree-vect-patterns.c: Likewise.
15128 * tree-vect-slp.c: Likewise.
15129 * tree-vect-stmts.c: Likewise.
15130 * tree-vrp.c: Likewise.
15131 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
15132 rather than optabs.h.
15133 * expr.c: Include optabs-tree.h.
15134 * function.c: Likewise.
15136 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15138 PR middle-end/65958
15139 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
15140 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
15141 * config/arm/arm.c: Include common/common-target.h.
15142 (use_return_insn): Return 0 if the static chain register was saved
15143 above a non-APCS frame.
15144 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
15145 (struct scratch_reg): New.
15146 (get_scratch_register_on_entry): New function.
15147 (release_scratch_register_on_entry): Likewise.
15148 (arm_emit_probe_stack_range): Likewise.
15149 (output_probe_stack_range): Likewise.
15150 (arm_expand_prologue): Factor out code dealing with the IP register
15151 for nested function and adjust it for stack checking.
15152 Invoke arm_emit_probe_stack_range if static builtin stack checking
15154 (thumb1_expand_prologue): Sorry out if static builtin stack checking
15156 (arm_expand_epilogue): Add the saved static chain register, if any, to
15157 the amount of pre-pushed registers to pop.
15158 (arm_frame_pointer_required): Return true if static stack checking is
15159 enabled and we want to catch the exception with the EABI unwinder.
15160 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
15161 (UNSPEC_PROBE_STACK_RANGE): Likewise.
15162 * config/arm/arm.md (probe_stack): New insn.
15163 (probe_stack_range): Likewise.
15165 2015-09-17 Richard Biener <rguenther@suse.de>
15167 * genmatch.c (parser::parse_expr): Improve error message
15168 for mis-placed flags.
15170 2015-09-17 Richard Biener <rguenther@suse.de>
15172 * passes.c (rest_of_decl_compilation): Always call early_global_decl
15173 debug hook when we created a varpool node.
15174 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
15175 dwarf2out_early_global_decl, when not just add location or
15176 value attributes to existing DIEs.
15178 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
15180 * config/aarch64/aarch64.md (copysigndf3): New.
15181 (copysignsf3): Likewise.
15183 2015-09-17 David S. Miller <davem@davemloft.net>
15185 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
15186 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
15187 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15188 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15189 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15190 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15191 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15192 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15193 provide when flag_pic.
15195 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
15197 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
15198 object_allocator change.
15200 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15202 PR tree-optimization/66388
15203 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
15204 (dump_iv): Dump no_overflow information.
15205 (alloc_iv): Initialize new field for struct iv.
15206 (mark_bivs): Count number of no_overflow bivs.
15207 (find_deriving_biv_for_expr, record_biv_for_address_use): New
15209 (idx_find_step): Call new functions above.
15210 (add_candidate_1, add_candidate): New paramter.
15211 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
15212 (get_computation_aff): Simplify convertion of cand for BIV.
15213 (get_computation_cost_at): Step cand's base if necessary.
15215 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15217 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
15219 (tree_simplify_using_condition): Ditto.
15220 (simplify_using_initial_conditions): Ditto.
15221 (loop_exits_before_overflow): Pass new argument to function
15222 simplify_using_initial_conditions. Remove case for type conversions
15224 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
15226 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
15227 in iv base using loop initial conditions.
15229 2015-09-16 Jeff Law <law@redhat.com>
15231 PR tree-optimization/47679
15232 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
15233 (free_all_edge_infos): Use it.
15234 (allocate_edge_info): Free preexisting edge info data.
15235 (pass_dominator::execute): Set up initial edge info structures.
15236 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
15237 thread_across_edge.
15238 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
15239 If non-null, then push/pop markers appropriately.
15240 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15241 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
15242 thread-across_edge.
15244 2015-09-16 James Bowman <james.bowman@ftdichip.com>
15246 * config/ft32/ft32.c: Fix the memory address space predicate.
15248 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
15251 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
15252 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15254 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15256 * toplev.h (check_global_declaration): Remove declaration.
15257 * toplev.c (check_global_declaration): Move to ...
15258 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
15259 (analyze_functions): Update call.
15261 2015-09-16 David S. Miller <davem@davemloft.net>
15263 * lra-constraints.c (simplify_operand_subreg): Do not assume that
15264 lowpart of a SUBREG has offset zero.
15266 2015-09-16 Jeff Law <law@redhat.com>
15268 PR tree-optimization/47679
15269 * tree-ssa-dom.c (enum expr_kind): Moved from here to
15270 tree-ssa-scopedtables.h.
15271 (struct hashable_expr, class expr_hash_elt): Likewise.
15272 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
15273 Move associated methods into tree-ssa-scopedtables.c.
15274 (avail_expr_hash, initialize_expr_from_cond): Similarly.
15275 (hashable_expr_equal_p, add_expr_commutative): Likewise.
15276 (add_hashable_expr): Likewise.
15277 (record_cond): Delete element directly.
15278 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
15279 private copy ctor and assignment operator methods.
15280 (expr_elt_hasher): Inline trivial methods.
15281 (initialize_expr_from_cond): Prototype.
15282 * tree-ssa-scopedtables.c: Add necessary includes, functions and
15283 methods that were previously in tree-ssa-dom.c. Improve various
15286 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
15288 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
15290 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
15293 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15296 2015-09-16 Richard Biener <rguenther@suse.de>
15298 PR middle-end/67253
15299 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
15300 location of possibly shared trees.
15302 2015-09-16 Richard Biener <rguenther@suse.de>
15304 PR middle-end/67271
15305 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
15307 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
15309 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
15310 offset and size computations instead of HOST_WIDE_INT.
15312 2015-09-16 Richard Biener <rguenther@suse.de>
15314 PR middle-end/67442
15315 * fold-const.c (extract_muldiv_1): Properly extend multiplication
15316 result before builting a tree via wide_int_to_tree.
15318 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
15320 * Makefile.in: Add memory-block.cc
15321 (pool_allocator::initialize): Use fixed block size.
15322 (pool_allocator::release): Use memory_block_pool.
15323 (pool_allocator::allocate): Likewise.
15324 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15326 * cfg.c (initialize_original_copy_tables): Likewise.
15327 * cselib.c (elt_list_pool, elt_loc_list_pool,
15328 cselib_val_pool): Likewise.
15329 * df-problems.c (df_chain_alloc): Likewise.
15330 * df-scan.c (df_scan_alloc): Likewise.
15331 * dse.c (cse_store_info_pool, rtx_store_info_pool,
15332 read_info_type_pool, insn_info_type_pool, bb_info_pool,
15333 group_info_pool, deferred_change_pool): Likewise.
15334 * et-forest.c (et_nodes, et_occurrences): Likewise.
15335 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15336 ipcp_agg_lattice_pool): Likewise.
15337 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15338 * ipa-profile.c (histogram_pool): Likewise.
15339 * ipa-prop.c (ipa_refdesc_pool): Likewise.
15340 * ira-build.c (live_range_pool, allocno_pool, object_pool,
15341 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15342 * ira-color.c (update_cost_record_pool): Likewise.
15343 * lra-lives.c (lra_live_range_pool): Likewise.
15344 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15345 * memory-block.cc: New file.
15346 * memory-block.h: New file.
15347 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15348 * sched-deps.c (sched_deps_init): Likewise.
15349 * sel-sched-ir.c (sched_lists_pool): Likewise.
15350 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15351 * tree-sra.c (access_pool): Likewise.
15352 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15353 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15354 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15355 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15356 * tree-ssa-strlen.c (strinfo_pool): Likewise.
15357 * tree-ssa-structalias.c (variable_info_pool): Likewise.
15358 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15359 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15361 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15363 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15365 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15368 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15370 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15371 to pass TLS call argument, according to current ABI.
15372 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15373 callx0 for TLS call, according to current ABI.
15375 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15377 * tree-eh.c (lower_try_finally_dup_block): Clear location information
15378 on stack restore statements.
15379 (decide_copy_try_finally): Do not consider a stack restore statement as
15380 coming from sources.
15382 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
15384 * config/alpha/alpha.c (alpha_expand_block_clear): Use
15385 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15387 2015-09-15 Jeff Law <law@redhat.com>
15389 PR tree-optimization/47679
15390 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15391 methods and private members.
15392 (avail_exprs_stack): Similarly. Change type of global
15393 from a pair of expr_hash_elt_t to the new class.
15394 (expr_elt_hasher::hash): Corresponding changes.
15395 (expr_elt_hasher::equal): Similarly.
15396 (avail_expr_hash): Similarly.
15397 (pass_dominator::execute): Similarly.
15398 (dom_opt_dom_walker::thread_across_edge): Similarly.
15399 (record_cond): Similarly.
15400 (dom_opt_dom_walker::before_dom_children): Similarly.
15401 (dom_opt_dom_walker::after_dom_children): Similarly.
15402 (lookup_avail_expr): Likewise.
15403 (initialize_hash_element): Now a expr_hash_elt constructor.
15404 (initialize_hash_element_from_expr): Similarly.
15405 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15406 (free_expr_hash_elt): Call dtor for the element.
15407 (remove_local_expressions_from_table): Now the "pop_to_marker"
15408 method in the available_exprs_stack class.
15409 (avail_expr_stack::record_expr): Method factored out.
15410 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15412 (hashable_expr_equal_p): Fix formatting.
15414 2015-09-15 David Malcolm <dmalcolm@redhat.com>
15416 * input.h (location_get_source_line): Drop "expanded_location"
15417 param in favor of a file and line number.
15418 * input.c (location_get_source_line): Likewise.
15419 (dump_location_info): Update for change in signature of
15420 location_get_source_line.
15421 * diagnostic.c (diagnostic_print_caret_line): Likewise.
15423 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15425 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15426 Bump to 4KB for SJLJ exceptions.
15427 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
15428 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15429 * doc/tm.texi: Regenerate.
15431 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15433 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15434 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
15437 2015-09-15 Richard Biener <rguenther@suse.de>
15439 PR tree-optimization/67470
15440 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15441 structure for PHI hoisting by inserting a forwarder block
15444 2015-09-15 Christian Bruel <christian.bruel@st.com>
15446 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15447 (arm_option_print): New function.
15449 2015-09-15 Christian Bruel <christian.bruel@st.com>
15452 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15453 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15454 Remove flags parameter.
15455 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15456 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15457 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15458 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15459 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15460 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15461 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15462 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15464 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15466 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15468 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15469 AARCH64_VALID_SIMD_DREG_MODE.
15471 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15473 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15474 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15475 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15476 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15477 aarch64_ld4_lane<mode>): Combine together, making...
15478 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15479 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15480 aarch64_st4_lane<mode>): Combine together, making...
15481 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15482 * config/aarch64/iterators.md (nregs): Add comment.
15484 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15486 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15487 Change operand mode from <V_TWO_ELEM> to BLK.
15488 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15489 (aarch64_vec_store_lanesoi_lane<mode): Likewise
15490 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15491 (aarch64_ld2_lane<mode>): Likewise.
15492 (aarch64_st2_lane<VQ:mode>): Likewise.
15493 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15495 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15497 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15498 Change operand mode from <V_FOUR_ELEM> to BLK.
15499 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15500 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15501 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15502 (aarch64_ld4_lane<mode>): Likewise.
15503 (aarch64_st4_lane<mode>): Likewise.
15504 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15506 2015-09-15 Richard Biener <rguenther@suse.de>
15508 PR middle-end/67563
15509 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15510 transfer EH info from old to new stmt.
15511 (replace_call_with_value): Likewise.
15512 (replace_call_with_call_and_fold): Likewise.
15513 (gimple_fold_builtin_memory_op): Likewise.
15514 (gimple_fold_builtin_memset): Likewise.
15515 (gimple_fold_builtin_stpcpy): Likewise.
15516 (gimple_fold_call): Likewise.
15518 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15520 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15522 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15523 (aarch64_simd_intEI_type_node): Likewise.
15524 (aarch64_simd_builtin_std_type): Remove EImode case.
15525 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15526 * config/aarch64/aarch64-modes.def: Remove EImode.
15528 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15530 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15531 Change operand mode from <V_THREE_ELEM> to BLK.
15532 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15533 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15534 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15535 (aarch64_ld3_lane<mode>): Likewise.
15536 (aarch64_st3_lane<mode>): Likewise.
15537 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15539 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15541 * config/aarch64/aarch64-simd.md
15542 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15543 Change all TImode operands to BLKmode.
15544 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15545 Change all EImode operands to BLKmode.
15546 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15547 Change all OImode operands to BLKmode.
15549 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15550 and call set_mem_size.
15551 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15553 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15555 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15557 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15559 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15561 (vec_store_lanesci_lane<mode>): Rename to...
15562 (aarch64_vec_store_lanesci_lane<mode>): ...this.
15564 (vec_store_lanesxi_lane<mode>): Rename to...
15565 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15567 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15568 aarch64_st4_lane<mode>): Follow renaming.
15570 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15572 * config/s390/s390.c (s390_const_operand_ok): Add missing
15575 2015-09-15 Richard Biener <rguenther@suse.de>
15578 * lto-streamer.h (lto_location_cache::current_sysp): Properly
15580 * lto-streamer-out.c (clear_line_info): Likewise.
15582 2015-09-15 Richard Biener <rguenther@suse.de>
15584 * doc/match-and-simplify.texi: Fix wording.
15586 2015-09-15 Bin Cheng <bin.cheng@arm.com>
15588 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15589 unnecessary type conversion in op1.
15591 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
15593 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15594 (dup_block_and_redirect): Delete function.
15595 (can_dup_for_shrink_wrapping): New function.
15596 (fix_fake_fallthrough_edge): New function.
15597 (try_shrink_wrapping): Rewrite function.
15598 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15600 2015-09-14 Rich Felker <dalias@libc.org>
15602 * configure.ac: Change target pattern for sh TLS support
15603 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15604 * configure: Regenerate.
15606 2015-09-14 Jeff Law <law@redhat.com>
15608 PR tree-optimization/47679
15609 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15610 type rather than void *.
15612 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
15615 * diagnostic.c (diagnostic_initialize): Do not set
15616 some_warnings_are_errors.
15617 (diagnostic_finish): Use DK_WERROR count instead.
15618 (diagnostic_report_diagnostic): Do not set
15619 some_warnings_are_errors.
15620 * diagnostic.h (struct diagnostic_context): Remove
15621 some_warnings_are_errors.
15623 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
15625 * config/sparc/predicates.md (const_all_ones_operand): Use
15626 CONSTM1_RTX to simplify definition.
15628 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
15631 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
15634 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
15636 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
15637 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
15638 OPT_fshow_column to handled saved option cases.
15639 (append_compiler_options): Do not skip the above added options.
15641 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15644 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
15645 nopcrelative_literal_loads.
15646 (aarch64_classify_address): Likewise.
15647 (aarch64_constant_pool_reload_icode): Define.
15648 (aarch64_secondary_reload): Handle secondary reloads for
15650 (aarch64_override_options): Handle nopcrelative_literal_loads.
15651 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
15652 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
15654 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15655 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
15656 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
15658 * doc/invoke.texi (mpc-relative-literal-loads): Document.
15660 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
15662 PR middle-end/67401
15663 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
15664 sync_compare_and_swap_optab libcall to target_oval.
15666 2015-09-14 Marek Polacek <polacek@redhat.com>
15668 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
15670 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
15672 2015-09-11 Mark Wielaard <mjw@redhat.com>
15675 * toplev.c (check_global_declaration): Check and use
15676 warn_unused_const_variable.
15677 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
15678 (-Wunused-variable): Remove non-constant. For C implies
15679 -Wunused-const-variable.
15680 (-Wunused-const-variable): New.
15682 2015-09-14 Richard Biener <rguenther@suse.de>
15684 * doc/match-and-simplify.texi: Update for changed syntax
15685 of inner ifs and the new switch expression.
15687 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15689 * config/i386/haswell.md: New file describing Haswell pipeline.
15690 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
15691 haswell-like processors.
15692 (ix86_reassociation_width): Increase reassociation width for 64-bit
15693 Haswell processor family.
15694 * config/i386/i386.md: Introduce haswell cpu and include new md file.
15696 2015-09-14 Richard Biener <rguenther@suse.de>
15698 * doc/match-and-simplify.texi: Fixup some formatting issues
15699 and document the 's' flag.
15701 2015-09-13 Olivier Hainque <hainque@adacore.com>
15702 Eric Botcazou <ebotcazou@adacore.com>
15704 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
15705 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
15706 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
15707 (TARGET_CPU_gr5): Likewise.
15708 (TARGET_CPU_gr6): Likewise.
15709 (MULTILIB_DEFAULTS): Likewise.
15710 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
15711 for mcpu=gr5 and mcpu=gr6.
15712 (MULTILIB_DIRNAMES): Adjust accordingly.
15714 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15716 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
15717 (mem_ref_p): Likewise.
15718 (outermost_indep_loop): Adjust.
15719 (mem_ref_in_stmt): Likewise.
15720 (determine_max_movement): Likewise.
15721 (mem_ref_alloc): Likewise.
15722 (record_mem_ref_loc): Likewise.
15723 (set_ref_stored_in_loop): Likewise.
15724 (mark_ref_stored): Likewise.
15725 (gather_mem_refs_stmt): Likewise.
15726 (mem_refs_may_alias_p): Likewise.
15727 (for_all_locs_in_loop): Likewise.
15728 (struct rewrite_mem_ref_loc): Likewise.
15729 (rewrite_mem_refs): Likewise.
15730 (struct first_mem_ref_loc_1): Likewise.
15731 (first_mem_ref_loc): Likewise.
15732 (struct sm_set_flag_if_changed): Likewise.
15733 (execute_sm_if_changed_flag_set): Likewise.
15734 (execute_sm): Likewise.
15735 (hoist_memory_references):
15736 (struct ref_always_accessed): Likewise.
15737 (ref_always_accessed_p): Likewise.
15738 (refs_independent_p): Likewise.
15739 (record_dep_loop): Likewise.
15740 (ref_indep_loop_p_1): Likewise.
15741 (ref_indep_loop_p_2): Likewise.
15742 (ref_indep_loop_p): Likewise.
15743 (can_sm_ref_p): Likewise.
15744 (find_refs_for_sm): Likewise.
15745 (tree_ssa_lim_finalize): Likewise.
15747 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15749 * dwarf2out.c (dw_attr_ref): Remove typedef.
15750 (dw_line_info_ref): Likewise.
15751 (pubname_ref): Likewise.
15752 (dw_ranges_ref): Likewise.
15753 (dw_ranges_by_label_ref): Likewise.
15754 (comdat_type_node_ref): Likewise.
15756 (get_AT_low_pc): Likewise.
15757 (get_AT_hi_pc): Likewise.
15758 (get_AT_string): Likewise.
15759 (get_AT_flag): Likewise.
15760 (get_AT_unsigned): Likewise.
15761 (get_AT_ref): Likewise.
15762 (get_AT_file): Likewise.
15763 (remove_AT): Likewise.
15764 (print_die): Likewise.
15765 (check_die): Likewise.
15766 (die_checksum): Likewise.
15767 (attr_checksum_ordered): Likewise.
15768 (struct checksum_attributes): Likewise.
15769 (collect_checksum_attributes): Likewise.
15770 (die_checksum_ordered): Likewise.
15771 (same_die_p): Likewise.
15772 (is_declaration_die): Likewise.
15773 (clone_die): Likewise.
15774 (clone_as_declaration): Likewise.
15775 (copy_declaration_context): Likewise.
15776 (break_out_comdat_types): Likewise.
15777 (copy_decls_walk): Likewise.
15778 (output_location_lists): Likewise.
15779 (external_ref_hasher::hash): Likewise.
15780 (optimize_external_refs_1): Likewise.
15781 (build_abbrev_table): Likewise.
15782 (size_of_die): Likewise.
15783 (unmark_all_dies): Likewise.
15784 (size_of_pubnames): Likewise.
15785 (output_die_abbrevs): Likewise.
15786 (output_die): Likewise.
15787 (output_pubnames): Likewise.
15788 (add_ranges_num): Likewise.
15789 (add_ranges_by_labels): Likewise.
15790 (add_high_low_attributes): Likewise.
15791 (gen_producer_string): Likewise.
15792 (dwarf2out_set_name): Likewise.
15793 (new_line_info_table): Likewise.
15794 (prune_unused_types_walk_attribs): Likewise.
15795 (prune_unused_types_update_strings): Likewise.
15796 (prune_unused_types): Likewise.
15797 (resolve_addr): Likewise.
15798 (optimize_location_lists_1): Likewise.
15799 (index_location_lists): Likewise.
15800 (dwarf2out_finish): Likewise.
15802 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15804 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
15806 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15808 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
15809 (dump_asserts_for): Adjust.
15810 (register_new_assert_for): Likewise.
15811 (process_assert_insertions): Likewise.
15812 (insert_range_assertions): Likewise.
15814 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15816 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
15817 and remove typedef.
15818 (new_temp_expr_table): Adjust.
15819 (free_temp_expr_table): Likewise.
15820 (version_to_be_replaced_p): Likewise.
15821 (make_dependent_on_partition): Likewise.
15822 (add_to_partition_kill_list): Likewise.
15823 (remove_from_partition_kill_list): Likewise.
15824 (add_dependence): Likewise.
15825 (finished_with_expr): Likewise.
15826 (process_replaceable): Likewise.
15827 (kill_expr): Likewise.
15828 (kill_virtual_exprs): Likewise.
15829 (mark_replaceable): Likewise.
15830 (find_replaceable_in_bb): Likewise.
15831 (find_replaceable_exprs): Likewise.
15832 (debug_ter): Likewise.
15834 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15836 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
15837 (struct btr_user): Rename from btr_user_s.
15838 (struct btr_def): Rename from btr_def_s.
15839 (find_btr_def_group): Adjust.
15840 (add_btr_def): Likewise.
15841 (new_btr_user): Likewise.
15842 (note_other_use_this_block): Likewise.
15843 (compute_defs_uses_and_gen): Likewise.
15844 (link_btr_uses): Likewise.
15845 (build_btr_def_use_webs): Likewise.
15846 (block_at_edge_of_live_range_p): Likewise.
15847 (btr_def_live_range): Likewise.
15848 (combine_btr_defs): Likewise.
15849 (move_btr_def): Likewise.
15850 (migrate_btr_def): Likewise.
15851 (migrate_btr_defs): Likewise.
15853 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15855 * var-tracking.c (shared_hash_def): Rename to shared_hash.
15856 (shared_hash): Remove typedef.
15857 (struct dataflow_set): Adjust.
15858 (shared_hash_unshare): Likewise.
15859 (dataflow_set_merge): Likewise.
15860 (vt_initialize): Likewise.
15861 (vt_finalize): Likewise.
15863 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15865 * var-tracking.c (struct location_chain): Rename from
15866 location_chain_def.
15867 (struct variable_part): Adjust.
15868 (variable_htab_free): Likewise.
15869 (unshare_variable): Likewise.
15870 (get_init_value): Likewise.
15871 (get_addr_from_local_cache): Likewise.
15872 (drop_overlapping_mem_locs): Likewise.
15873 (val_reset): Likewise.
15874 (struct variable_union_info): Likewise.
15875 (variable_union): Likewise.
15876 (find_loc_in_1pdv): Likewise.
15877 (insert_into_intersection): Likewise.
15878 (intersect_loc_chains): Likewise.
15879 (canonicalize_loc_order_check): Likewise.
15880 (canonicalize_values_mark): Likewise.
15881 (canonicalize_values_star): Likewise.
15882 (canonicalize_vars_star): Likewise.
15883 (variable_merge_over_cur): Likewise.
15884 (remove_duplicate_values): Likewise.
15885 (variable_post_merge_new_vals): Likewise.
15886 (variable_post_merge_perm_vals): Likewise.
15887 (find_mem_expr_in_1pdv): Likewise.
15888 (dataflow_set_preserve_mem_locs): Likewise.
15889 (dataflow_set_remove_mem_locs): Likewise.
15890 (variable_part_different_p): Likewise.
15891 (onepart_variable_different_p): Likewise.
15892 (find_src_set_src): Likewise.
15893 (dump_var): Likewise.
15894 (set_slot_part): Likewise.
15895 (clobber_slot_part): Likewise.
15896 (delete_slot_part): Likewise.
15897 (vt_expand_var_loc_chain): Likewise.
15898 (emit_note_insn_var_location): Likewise.
15899 (vt_finalize): Likewise.
15901 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15903 * dse.c (store_info_t): Remove typedef.
15904 (group_info_t): Likewise.
15905 (const_group_info_t): Likewise.
15906 (deferred_change_t): Likewise.
15907 (get_group_info): Adjust.
15908 (free_store_info): Likewise.
15909 (canon_address): Likewise.
15910 (clear_rhs_from_active_local_stores): Likewise.
15911 (record_store): Likewise.
15912 (replace_read): Likewise.
15913 (check_mem_read_rtx): Likewise.
15914 (scan_insn): Likewise.
15915 (remove_useless_values): Likewise.
15916 (dse_step1): Likewise.
15917 (dse_step2_init): Likewise.
15918 (dse_step2_nospill): Likewise.
15919 (scan_stores_nospill): Likewise.
15920 (scan_reads_nospill): Likewise.
15921 (dse_step3_exit_block_scan): Likewise.
15922 (dse_step3): Likewise.
15923 (dse_step5_nospill): Likewise.
15924 (dse_step6): Likewise.
15926 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15928 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15929 (alias_set_entry): Remove typedef.
15930 (alias_set_subset_of): Adjust.
15931 (alias_sets_conflict_p): Likewise.
15932 (init_alias_set_entry): Likewise.
15933 (get_alias_set): Likewise.
15934 (new_alias_set): Likewise.
15935 (record_alias_subset): Likewise.
15937 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
15939 * doc/install.texi (Downloading the source): Mark up
15940 contrib/download_prerequisites properly and drop leading "./".
15942 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15944 * config/arc/arc.h: Remove define of STRUCT_VALUE.
15945 * config/lm32/lm32.h: Likewise.
15946 * config/mep/mep.h: Likewise.
15947 * config/visium/visium.h: Likewise.
15948 * system.h: Poison STRUCT_VALUE macro.
15950 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
15952 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15953 CONSTANT_P operands.
15955 2015-09-11 David S. Miller <davem@davemloft.net>
15957 * config/sparc/constraints.md: Make "U" constraint a real register
15959 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15960 (D_MODES, DF_MODES): Add missing cast.
15961 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15962 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15963 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15965 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15966 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15967 provide these insn when flag_pic.
15969 2015-09-11 Jeff Law <law@redhat.com>
15971 PR tree-optimization/47679
15972 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15973 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15974 member with m_. Update inline member functions as necessary. Add
15976 * tree-ssa-scopedtables.c: Update const_and_copies's member
15977 functions to use m_ prefix to access the stack.
15979 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
15981 * graphite-optimize-isl.c (disable_tiling): Remove.
15982 (get_schedule_for_band): Do not use disable_tiling.
15983 (get_prevector_map): Delete function.
15984 (enable_polly_vector): Remove.
15985 (get_schedule_for_band_list): Remove dead code.
15987 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
15989 * graphite-optimize-isl.c (get_tile_map): Refactor.
15990 (get_schedule_for_band): Same.
15991 (getScheduleForBand): Same.
15992 (get_prevector_map): Same.
15993 (get_schedule_for_band_list): Same.
15994 (get_schedule_map): Same.
15995 (get_single_map): Same.
15996 (apply_schedule_map_to_scop): Same.
15997 (optimize_isl): Same.
15999 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16002 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16004 * config/aarch64/iterators.md (GPF_TF_F16): New.
16007 2015-09-10 Nathan Sidwell <nathan@acm.org>
16009 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16010 (nvptx_reorg): Adjust comments.
16012 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16015 * configure.ac: Check if setenv and unsetenv are declared.
16016 * configure: Rebuild.
16017 * config.in: Rebuild.
16018 * system.h: Declare setenv and unsetenv if not declared.
16020 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16022 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16023 commentary to simplify permute mask adjustment equation.
16024 (special_handling_values): Add SH_VPERM.
16025 (const_load_sequence_p): New function.
16026 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16027 the mask loaded from the constant pool.
16028 (adjust_vperm): New function.
16029 (handle_special_swappables): Call adjust_vperm.
16030 (dump_swap_insn_table): Handle SH_VPERM.
16032 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
16034 * shrink-wrap.c (requires_stack_frame_p): Remove static.
16035 * shrink-wrap.h (requires_stack_frame_p): Put back.
16037 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
16039 * reload1.c (elimination_costs_in_insn): Locally turn
16040 -Wmaybe-uninitialized into a warning.
16042 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
16044 * shrink-wrap.c (requires_stack_frame_p): Make static.
16045 (prepare_shrink_wrap): Likewise.
16046 (dup_block_and_redirect): Likewise.
16047 * shrink-wrap.h: Remove declarations of those functions.
16049 2015-09-10 Mark Wielaard <mjw@redhat.com>
16051 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16053 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
16056 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16057 missing simplify_gen_subreg.
16059 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16061 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16062 the vector element is bigger than 64 bit.
16064 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16066 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16067 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16069 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16071 * config/s390/s390.c: Add V1TImode to constant pool modes.
16073 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16076 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16077 predicate. Set predicable_short_it attr to "no".
16079 2015-09-10 Jiong Wang <jiong.wang@arm.com>
16081 PR rtl-optimization/67421
16082 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16083 left wide shift tranformation.
16085 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16087 * common/config/arc/arc-common.c: Remove references to A5.
16088 * config/arc/arc-opts.h: Likewise.
16089 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16090 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16091 * config/arc/t-arc-newlib: Likewise.
16093 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16095 * config/arc/arc.md (length): Fix attribute length for conditional
16096 executed instructions with long immediate.
16098 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16100 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
16101 type for second alternative.
16103 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
16105 * doc/invoke.texi (Downloading GCC): Mention
16106 contrib/download_prerequisites script.
16108 2015-09-10 Jakub Jelinek <jakub@redhat.com>
16111 * gimplify.c (gimplify_omp_for): If inner stmt is not found
16112 for combined loop, assert seen_error () and return GS_ERROR.
16114 PR middle-end/67521
16115 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
16116 if decl is already in outer->variables.
16118 PR middle-end/67517
16119 * gimplify.c (gimplify_scan_omp_clauses): Instead of
16120 asserting that decl is not specified in octx->variables,
16121 break out of the loop if it is.
16124 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
16125 iterator is not explicitly determined, but is defined inside
16126 of the combined workshare region, handle it like if it has
16127 DECL_EXPR in OMP_FOR_PRE_BODY.
16129 2015-09-09 Nathan Sidwell <nathan@acm.org>
16131 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
16132 (*cmp<mode>): Add assembler spacing.
16133 (setcc_int<mode>, set_cc_float<mode>): Likewise.
16134 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
16136 (write_func_decl_from_insn): Refactor argument loops & comma emission.
16137 (nvptx_expand_call): Likewise.
16138 (nvptx_output_call_insn): Likewise.
16139 (nvptx_reorg_subreg): Add spacing.
16141 2015-09-09 Marek Polacek <polacek@redhat.com>
16143 PR middle-end/67512
16144 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
16147 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16150 * doc/invoke.texi ([Wsubobject-linkage]): Document.
16152 2015-09-09 Tom de Vries <tom@codesourcery.com>
16154 * params-list.h: Add missing copyright notice.
16156 2015-09-09 Nathan Sidwell <nathan@acm.org>
16158 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
16159 sel_truesi, not andsi.
16161 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16163 * config/arm/arm.md (*subsi3_compare0): Rename to...
16164 (subsi3_compare0): ... This.
16165 (modsi3): New define_expand.
16166 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
16167 when operand is power of 2.
16169 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16171 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
16172 (*neg<mode>2_compare0): Rename to...
16173 (neg<mode>2_compare0): ... This.
16174 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
16175 Move check for speed inside the if-then-elses. Reflect
16176 CSNEG sequence in MOD by power of 2 case.
16178 2015-09-09 Alan Modra <amodra@gmail.com>
16181 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
16182 reload replacement for PRE_MODIFY address reg.
16184 2015-09-09 Sebastian Pop <s.pop@samsung.com>
16186 PR tree-optimization/53852
16187 * config.in: Regenerate.
16188 * configure: Regenerate.
16189 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
16190 * graphite-optimize-isl.c (optimize_isl): Stop computation when
16191 PARAM_MAX_ISL_OPERATIONS is reached.
16192 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
16193 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
16194 result equal to isl_stat_ok as the status now can be isl_error_quota.
16195 (subtract_commutative_associative_deps): Same.
16196 (compute_deps): Same.
16198 2015-09-08 Aditya Kumar <hiraditya@msn.com>
16199 Sebastian Pop <s.pop@samsung.com>
16201 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16202 Return the parameter if it was saved in corresponding
16203 parameter_rename_map of the region.
16204 (copy_def): Copy def from sese region to the newly created region.
16205 (copy_internal_parameters): Copy all the internal parameters defined
16206 within a region to the newly created region.
16207 (graphite_regenerate_ast_isl): Copy parameters to the new region before
16208 translating isl to gimple.
16209 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
16210 the loop-nest does not have any data-references.
16211 (build_graphite_scops): Create a scop only when there is at least one
16213 (contains_only_close_phi_nodes): Deleted.
16214 (print_graphite_scop_statistics): Deleted
16215 (print_graphite_statistics): Deleted
16216 (limit_scops): Deleted.
16217 (build_scops): Removed call to limit_scops.
16218 * sese.c (new_sese): Construct.
16219 (free_sese): Destruct.
16220 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
16222 (set_rename): Pass sese region so that parameters inside the region can
16223 be added to its parameter_rename_map.
16224 (rename_uses): Pass sese region.
16225 (graphite_copy_stmts_from_block): Do not copy parameters that have been
16226 generated in the header of the scop. For each SSA_NAME in the
16227 parameter_rename_map rename its usage.
16228 (invariant_in_sese_p_rec): Return false if tree t is defined outside
16230 (scalar_evolution_in_region): If the tree t is invariant just return t.
16231 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
16232 struct sese to keep track of all the parameters which need renaming.
16233 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
16235 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
16237 2015-09-08 Tom de Vries <tom@codesourcery.com>
16239 * Makefile.in (generated_files): Add params.list.
16240 (params.list, s-params.list): Add rule.
16241 * params.h (enum compiler_param): Include params-list.h. Move define
16242 DEFPARAM, include params.def and undef DEFPARAM ...
16243 * params-list.h: ... here. New file.
16245 2015-09-08 David Malcolm <dmalcolm@redhat.com>
16247 * pretty-print.h (printer_fn): Fix typo in comment.
16249 2015-09-07 Jeff Law <law@redhat.com>
16251 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
16253 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16255 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
16256 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
16257 (arm_neon_fp16_hw): New.
16259 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16261 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
16262 UNITS_PER_WORD >= 4.
16264 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16266 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
16267 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
16268 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
16269 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
16270 (aarch64_float_extend_lo_v2df): Rename to...
16271 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
16273 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
16274 (float_extend_lo): Add v4sf.
16276 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
16277 * config/aarch64/iterators.md (VQ_HSF): New iterator.
16278 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
16279 (Vwide): New mode_attr.
16281 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16283 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
16284 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
16285 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
16286 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
16287 V4HF and V8HF variants to iterator.
16289 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
16291 * config/aarch64/iterators.md (VDQF_F16): New.
16292 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
16294 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16296 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
16297 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16298 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
16299 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
16300 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
16301 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16302 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
16303 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
16304 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
16305 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
16306 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
16307 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16308 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
16309 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
16310 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
16311 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
16312 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
16313 vld1q_dup_f16): New.
16315 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16317 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16318 Reparameterize to...
16319 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16320 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16321 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16323 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16325 (float_truncate_lo_): Use BUILTIN_VDF iterator.
16327 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16329 * config/aarch64/iterators.md (VDF, Vdtype): New.
16330 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16332 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16334 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16335 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16336 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16337 Add __builtin_aarch64_simd_hf.
16338 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16339 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16340 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16341 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16342 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16343 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16344 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16345 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16346 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16348 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16349 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16350 (VDC, Vdbl): Add V4HF.
16352 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16354 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16355 V4HFmode and V8HFmode.
16356 (aarch64_split_simd_move): Add case for V8HFmode.
16357 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16358 (aarch64_simd_builtin_std_type): Handle HFmode.
16359 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16361 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16362 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16363 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16365 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16368 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16369 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16371 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16372 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16373 vst1q_lane_f16): New.
16374 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16375 (VALLDI_F16, VALL_F16): New.
16376 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16377 Add cases for V4HF and V8HF.
16378 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16380 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16382 * config/arm/arm-builtins.c (VAR11, VAR12): New.
16383 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16384 vld4_dup): Add v4hf variant.
16385 (vget_high, vget_low): Add v8hf variant.
16386 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16387 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16388 v4hf and v8hf variants.
16390 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16392 (V_DOUBLE): Add case for V4HF.
16394 (V_HALF): Add case for V8HF.
16395 (VDQX): Add V4HF, V8HF.
16396 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16397 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16399 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16400 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16401 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16402 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16403 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16404 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16405 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16406 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16407 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16409 (neon_vcreate, neon_vreinterpretv8qi<mode>,
16410 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16411 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16412 Change VDX to VD_RE.
16414 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16415 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16416 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16418 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16419 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16420 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16421 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16422 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16423 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16424 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16425 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16426 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16428 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16430 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16431 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16432 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16433 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16434 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16435 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16436 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16437 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16438 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16439 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16442 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16444 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16446 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16448 * config/arm/arm-builtins.c (v8hf_UP): New.
16449 (arm_init_simd_builtin_types): Initialise Float16x8_t.
16451 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16453 * config/arm/arm_neon.h (float16x8_t): New typedef.
16455 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16457 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16458 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16459 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16460 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16461 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16462 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16463 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16464 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16465 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16466 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16468 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
16470 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16471 non-alphanumeric characters in the symbol name.
16473 2015-09-07 Marek Polacek <polacek@redhat.com>
16475 PR inline-asm/67448
16476 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16479 2015-09-07 Marek Polacek <polacek@redhat.com>
16481 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16483 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
16485 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16488 2015-09-04 Jakub Jelinek <jakub@redhat.com>
16490 PR middle-end/67452
16491 * tree-ssa-live.c: Include cfgloop.h.
16492 (remove_unused_locals): Clear loop->simduid if simduid is about
16493 to be removed from cfun->local_decls.
16495 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16498 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16501 2015-09-04 Tom de Vries <tom@codesourcery.com>
16503 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16505 2015-09-04 Jeff Law <law@redhat.com>
16507 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16508 unnecessary constructor. It's now trivial and implemented inside...
16509 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16510 constructor. Add comments to various methods. Remove unused
16512 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16513 * tree-vrp.c (identify_jump_threads): Likewise.
16514 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16515 indentation issues.
16516 (thread_across_edge): Similarly.
16517 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16518 arguments in constructor call.
16520 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
16522 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16523 temp path contains a '-'.
16525 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16526 Petr Murzin <petr.murzin@intel.com>
16527 Kirill Yukhin <kirill.yukhin@intel.com>
16529 * config/i386/i386-builtin-types.def
16530 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16531 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16532 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16533 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16534 * config/i386/i386.c
16535 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16536 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16537 IX86_BUILTIN_SCATTERALTDIV16SI.
16538 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16539 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16540 __builtin_ia32_scatteraltdiv8si.
16541 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16542 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16543 IX86_BUILTIN_SCATTERALTDIV16SI.
16544 (ix86_vectorize_builtin_scatter): New.
16545 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16546 ix86_vectorize_builtin_scatter.
16548 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16549 Petr Murzin <petr.murzin@intel.com>
16550 Kirill Yukhin <kirill.yukhin@intel.com>
16552 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16553 * doc/tm.texi: Regenerate.
16554 * target.def: Add scatter builtin.
16555 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16556 for loads/stores in case of gather/scatter accordingly.
16557 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16558 STMT_VINFO_GATHER_P(S).
16559 (vect_check_gather): Rename to ...
16560 (vect_check_gather_scatter): this.
16561 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16562 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16563 (vect_check_gather_scatter): Use it instead of vect_check_gather.
16564 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16565 variable and new checkings for it accordingly.
16566 * tree-vect-stmts.c
16567 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16568 STMT_VINFO_GATHER_P(S).
16569 (vect_check_gather_scatter): Use it instead of vect_check_gather.
16570 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16572 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16574 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16576 (mulv16qi3): New define_expand.
16578 2015-09-03 Martin Sebor <msebor@redhat.com>
16581 * doc/extend.texi (Other Builtins): Document when the address
16582 of a built-in function can be taken.
16584 2015-09-03 Richard Biener <rguenther@suse.de>
16586 * dwarf2out.c (flush_limbo_die_list): Split out from ...
16587 (dwarf2out_early_finish): ... here.
16588 (dwarf2out_finish): Do not call dwarf2out_early_finish but
16589 flush_limbo_die_list. Assert we have no deferred asm names.
16591 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16593 * optabs.c (expand_binop): Don't create a broadcast vector with a
16594 source element wider than the inner mode.
16596 2015-09-03 Richard Biener <rguenther@suse.de>
16598 * varasm.c (output_constant): Use fold_convert instead of
16601 2015-09-03 Tom de Vries <tom@codesourcery.com>
16603 PR tree-optimization/65637
16604 * omp-low.c (expand_omp_for_static_chunk): Handle case that
16605 fin_bb has 2 predecessors.
16607 2015-09-03 Tom de Vries <tom@codesourcery.com>
16609 PR tree-optimization/65637
16610 * omp-low.c (find_phi_with_arg_on_edge): New function.
16611 (expand_omp_for_static_chunk): Fix inner loop phi.
16613 2015-09-03 Tom de Vries <tom@codesourcery.com>
16615 PR tree-optimization/65637
16616 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
16619 2015-09-03 Tom de Vries <tom@codesourcery.com>
16621 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
16623 2015-09-03 Tom de Vries <tom@codesourcery.com>
16625 * doc/invoke.texi (parloops-chunk-size): Add item.
16626 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
16627 * tree-parloops.c: Include params.h.
16628 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
16629 param parloops-chunk-size is used.
16631 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16633 PR middle-end/67351
16634 * fold-const.c (fold_binary_loc) : Move
16635 Transform (x >> c) << c into x & (-1<<c) or
16636 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
16637 types using simplify and match.
16638 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
16639 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
16641 2015-09-03 Richard Biener <rguenther@suse.de>
16644 * tree-ssa-structalias.c (ctor_for_analysis): New function.
16645 (create_variable_info_for_1): Use ctor_for_analysis instead
16646 of get_constructor.
16647 (create_variable_info_for): Likewise.
16649 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
16652 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
16653 in new callgraph edge.
16655 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
16660 * config/aarch64/aarch64-simd.md
16661 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
16662 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
16663 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
16664 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
16666 2015-09-02 Alan Modra <amodra@gmail.com>
16668 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
16669 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
16670 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
16672 2015-09-02 Alan Modra <amodra@gmail.com>
16675 * config/rs6000/predicates.md (current_file_function_operand): Don't
16676 return true for weak symbols.
16677 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
16679 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
16680 Andrew Bennett <andrew.bennett@imgtec.com>
16682 * config/mips/mips-opts.h (mips_cb_setting): New enum.
16683 * config/mips/mips-protos.h: Add definitions for
16684 mips_output_jump and mips_output_equal_conditional_branch
16685 * config/mips/mips.c (MIPS_JR): Change to support the
16687 (mips_emit_compare): Add support for the MIPS R6 conditional
16689 (mips_process_sync_loop): Likewise.
16690 (mips_output_order_conditional_branch): Likewise.
16691 (mips16_build_call_stub): Change MIPS_CALL to
16693 (mips_print_operand_punctuation): Update 's' case to only
16694 apply to micromips r2.
16695 (mips_adjust_insn_length): Add support for forbidden slot
16697 (mips_avoid_hazard): Likewise.
16698 (mips_reorg_process_insns): Likewise.
16699 (mips_output_jump): New function.
16700 (mips_output_equal_conditional_branch): Likewise.
16701 (mips_output_conditional_branch): Use jrc/bc if compact
16702 branch support is enabled. Ensure the forbidden slots
16703 between the two branch instructions is filled with a nop.
16704 (mips_option_override): Add support to process the compact
16705 branch option and set the correct defaults. Prevent
16706 non-explict relocs being using for MIPS R6.
16707 (mips_trampoline_init): Add compact branch support.
16708 (mips_mult_zero_zero_cost): Allow zero initialisation of
16709 accumulators with TARGET_DSP.
16710 * config/mips/mips.h (TARGET_CB_NEVER): New define.
16711 (TARGET_CB_MAYBE): New define.
16712 (TARGET_CB_ALWAYS): New define.
16713 (ISA_HAS_DELAY_SLOTS): New define.
16714 (ISA_HAS_COMPACT_BRANCHES): New define.
16715 (ISA_HAS_JRC): New define.
16716 (MIPS_BRANCH_C): New define.
16717 (MIPS_CALL): Removed.
16718 (MICROMIPS_J): Removed.
16719 * config/mips/mips.md (compact_form): New attr.
16720 (hazard): Add support for forbidden slots.
16721 (define_delay): Add support for compact branches.
16722 (*branch_order<mode>): Likewise.
16723 (*branch_order<mode>_inverted): Likewise.
16724 (*branch_equality<mode>): Likewise.
16725 (*branch_equality<mode>_inverted): Likewise.
16726 (*jump_absolute): Likewise.
16727 (*jump_pic): Likewise.
16728 (indirect_jump): Use mips_output_jump to produce assembly output.
16729 (tablejump_<mode>"): Likewise.
16730 (*<optab>"): Likewise.
16731 (<optab>_internal): Likewise.
16732 (sibcall_internal): Likewise.
16733 (sibcall_value_internal): Likewise.
16734 (sibcall_value_multiple_internal): Likewise.
16735 (call_internal): Likewise.
16736 (call_split): Likewise.
16737 (call_internal_direct): Likewise.
16738 (call_direct_split): Likewise.
16739 (call_value_internal): Likewise.
16740 (call_value_split): Likewise.
16741 (call_value_internal_direct): Likewise.
16742 (call_value_direct_split): Likewise.
16743 (call_value_multiple_internal): Likewise.
16744 (call_value_multiple_split): Likewise.
16745 (mips_get_fcsr_mips16_<mode>): Likewise.
16746 (mips_set_fcsr_mips16_<mode>): Likewise.
16747 (tls_get_tp_mips16_<mode>): Likewise.
16748 * config/mips/mips.opt: Add -mcompact-branches option.
16749 * config/mips/predicates.md (order_operator): Ensure the
16750 conditional compact branches are only used if the ISA them.
16751 * doc/invoke.texi: Document -mcompact-branches option.
16753 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
16756 * lra-lives.c (process_bb_lives): Process move pseudos with the
16757 same value for copies and preferences
16758 * lra-constraints.c (match_reload): Create match reload pseudo
16759 with the same value from single dying input pseudo.
16761 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
16764 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
16766 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
16768 * trans-mem.c: Add contributed-by.
16769 * trans-mem.h: Same.
16771 2015-09-01 Richard Biener <rguenther@suse.de>
16773 * expr.c (expand_expr_real_1): For expanding TERed defs
16774 set the current location to that of the def if not UNKNOWN.
16776 2015-09-01 David Sherwood <david.sherwood@arm.com>
16778 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
16780 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16782 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
16783 then_cost, else_cost fields. Change branch_cost field to unsigned int.
16784 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
16785 Include rtl-iter.h.
16786 (noce_simple_bbs): New function.
16787 (noce_try_move): Bail if basic blocks are not simple.
16788 (noce_try_store_flag): Likewise.
16789 (noce_try_store_flag_constants): Likewise.
16790 (noce_try_addcc): Likewise.
16791 (noce_try_store_flag_mask): Likewise.
16792 (noce_try_cmove): Likewise.
16793 (noce_try_minmax): Likewise.
16794 (noce_try_abs): Likewise.
16795 (noce_try_sign_mask): Likewise.
16796 (noce_try_bitop): Likewise.
16797 (bbs_ok_for_cmove_arith): New function.
16798 (noce_emit_all_but_last): Likewise.
16799 (noce_emit_insn): Likewise.
16800 (noce_emit_bb): Likewise.
16801 (noce_try_cmove_arith): Handle non-simple basic blocks.
16802 (insn_valid_noce_process_p): New function.
16803 (contains_mem_rtx_p): Likewise.
16804 (bb_valid_for_noce_process_p): Likewise.
16805 (noce_process_if_block): Allow non-simple basic blocks
16808 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
16810 * tree-ssa-dom.c (record_equivalences_from_phis,
16811 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
16812 (lookup_avail_expr): Likewise, and remove comment and unused temp.
16814 2015-09-01 Nick Clifton <nickc@redhat.com>
16816 * config/msp430/msp430.opt (mcpu): Fix typo.
16818 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16820 * config/aarch64/aarch64.c (aarch64_set_current_function):
16821 Re-layout any vector parameters have non-simd layout.
16822 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
16824 (aarch64_simd_expand_args): Delete call to the above.
16826 2015-08-31 Mike Frysinger <vapier@gentoo.org>
16828 * doc/invoke.texi (asan-stack): Add space before option.
16830 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
16832 * tree.h (zerop): New function.
16833 * tree.c (zerop): Likewise.
16834 (element_precision): Handle expressions.
16835 * match.pd (define_predicates): Add zerop.
16836 (x <= +Inf): Fix comment.
16837 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
16838 * fold-const.c (fold_binary_loc): ... here. Remove.
16840 2015-08-31 Richard Biener <rguenther@suse.de>
16842 PR middle-end/67381
16843 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
16845 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
16847 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
16848 (CEXPI): New operator list.
16849 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
16850 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
16852 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
16854 2015-08-31 Tom de Vries <tom@codesourcery.com>
16856 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
16857 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
16859 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
16860 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
16861 (rewrite_into_loop_closed_ssa): ... here.
16862 (replace_uses_in_dominated_bbs): Remove function.
16863 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
16864 rewrite_into_loop_closed_ssa_1.
16866 2015-08-31 Michael Matz <matz@suse.de>
16868 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
16869 enter entry and exit blocks for reverse post order.
16871 2015-08-31 Richard Biener <rguenther@suse.de>
16873 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
16874 (lto_location_cache::current_sysp): Likewise.
16875 (output_block::current_sysp): Likewise.
16876 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
16877 (lto_location_cache::apply_location_cache): Properly record
16878 system header locations.
16879 (lto_location_cache::input_location): Input whether a file
16880 is a system header.
16881 * lto-streamer-out.c (lto_output_location): Stream whether a file
16882 is a system header.
16884 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16887 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
16889 2015-08-31 Tom de Vries <tom@codesourcery.com>
16891 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
16892 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
16893 Improve function header comments.
16895 2015-08-30 Michael Collison <michael.collison@linaro.org>
16898 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
16901 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16903 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16904 special_handling bitfield.
16905 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
16906 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
16907 that represents a general xxpermdi.
16908 (insn_is_swappable_p): Add handling for vec_concat of two
16909 doublewords, which maps to a specific xxpermdi.
16910 (adjust_xxpermdi): New function.
16911 (adjust_concat): Likewise.
16912 (handle_special_swappables): Call adjust_xxpermdi and
16914 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16916 2015-08-30 Rich Felker <dalias@libc.org>
16918 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16919 case instead of sh[123456ble]-*-*.
16921 2015-08-29 Anatoly Sokolov <aesok@post.ru>
16923 * ira.c (print_unform_and_important_classes,
16924 print_translated_classes): Remove reg_class_names static array.
16925 (print_unform_and_important_classes): Rename to ...
16926 (print_uniform_and_important_classes): ... this.
16927 (ira_debug_allocno_classes): Update accordingly.
16929 2015-08-29 Tom de Vries <tom@codesourcery.com>
16931 PR tree-optimization/46193
16932 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16935 2015-08-28 Jeff Law <law@redhat.com>
16938 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16939 unable to find X NE 0 in the tables, return X as the simplified
16941 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16942 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16944 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16945 after removing the control flow statement and unnecessary edges.
16947 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
16950 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16952 PR tree-optimization/67283
16953 * tree-sra.c (type_consists_of_records_p): Rename to...
16954 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16956 (completely_scalarize_record): Rename to...
16957 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16959 (scalarize_elem): New.
16961 2015-08-28 Jiong Wang <jiong.wang@arm.com>
16963 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16964 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16965 (aarch64_symbol_type): Likewise.
16966 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16968 (aarch64_expand_mov_immediate): Likewise.
16969 (aarch64_print_operand): Likewise.
16970 (aarch64_classify_tls_symbol): Likewise.
16972 2015-08-28 Richard Biener <rguenther@suse.de>
16974 * cgraphunit.c (symbol_table::compile): Move early debug generation
16976 (symbol_table::finalize_compilation_unit): ... back here and
16977 add a !seen_error () guard.
16979 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16981 * toplev.c (process_options): Do not use flag_loop_block,
16982 flag_loop_interchange, and flag_loop_strip_mine. Add check for
16983 flag_loop_optimize_isl.
16985 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16987 * Makefile.in (OBJS): Remove graphite-blocking.o and
16988 graphite-interchange.o.
16989 * common.opt (floop-strip-mine, floop-interchange, floop-block):
16990 Alias of floop-nest-optimize.
16991 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16992 Document as alias of -floop-nest-optimize.
16993 * graphite-blocking.c: Remove.
16994 * graphite-interchange.c: Remove.
16995 * graphite-optimize-isl.c: Include dumpfile.h.
16996 (getScheduleForBand): Add dump for tiled loops. Use
16997 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16998 * graphite-poly.c (scop_max_loop_depth): Remove.
16999 (print_scattering_function_1): Remove.
17000 (print_scattering_function): Remove.
17001 (print_scattering_functions): Remove.
17002 (debug_scattering_function): Remove.
17003 (debug_scattering_functions): Remove.
17004 (apply_poly_transforms): Remove use of flag_loop_block,
17005 flag_loop_strip_mine, and flag_loop_interchange.
17006 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17008 (print_pdr_access_layout): Remove.
17009 (print_pdr): Print ISL representation.
17010 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17011 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17013 (openscop_print_pbb_domain): Remove.
17014 (print_pbb): Remove call to print_scattering_function.
17015 (openscop_print_scop_context): Remove.
17016 (print_scop_context): Do not print matrices anymore.
17017 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17018 SCOP_TRANSFORMED_SCHEDULE.
17019 (print_isl_set): Add printing of a new line.
17020 (print_isl_map): Same.
17021 (print_isl_aff): Same.
17022 (print_isl_constraint): Same.
17023 (loop_to_lst): Remove.
17024 (scop_to_lst): Remove.
17025 (lst_indent_to): Remove.
17026 (print_lst): Remove.
17027 (debug_lst): Remove.
17028 (dot_lst_1): Remove.
17030 (reverse_loop_at_level): Remove.
17031 (reverse_loop_for_pbbs): Remove.
17032 * graphite-poly.h (pdr_dim_iter_domain): Remove.
17033 (pdr_nb_params): Remove.
17034 (pdr_alias_set_dim): Remove.
17035 (pdr_subscript_dim): Remove.
17036 (pdr_iterator_dim): Remove.
17037 (pdr_parameter_dim): Remove.
17038 (same_pdr_p): Remove.
17039 (struct poly_scattering): Remove.
17040 (struct poly_bb): Remove _original, _transformed, _saved.
17041 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17042 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17043 (PBB_NB_LOCAL_VARIABLES): Remove.
17044 (PBB_NB_SCATTERING_TRANSFORM): Remove.
17045 (schedule_to_scattering): Remove.
17046 (number_of_write_pdrs): Remove.
17047 (pbb_dim_iter_domain): Remove.
17048 (pbb_nb_params): Remove.
17049 (pbb_nb_scattering_orig): Remove.
17050 (pbb_nb_scattering_transform): Remove.
17051 (pbb_nb_dynamic_scattering_transform): Remove.
17052 (pbb_nb_local_vars): Remove.
17053 (pbb_iterator_dim): Remove.
17054 (pbb_parameter_dim): Remove.
17055 (psco_scattering_dim): Remove.
17056 (psct_scattering_dim): Remove.
17057 (psct_local_var_dim): Remove.
17058 (psco_iterator_dim): Remove.
17059 (psct_iterator_dim): Remove.
17060 (psco_parameter_dim): Remove.
17061 (psct_parameter_dim): Remove.
17062 (psct_dynamic_dim): Remove.
17063 (psct_static_dim): Remove.
17064 (psct_add_local_variable): Remove.
17065 (new_lst_loop): Remove.
17066 (new_lst_stmt): Remove.
17067 (free_lst): Remove.
17068 (copy_lst): Remove.
17069 (lst_add_loop_under_loop): Remove.
17070 (lst_depth): Remove.
17071 (lst_dewey_number): Remove.
17072 (lst_dewey_number_at_depth): Remove.
17073 (lst_pred): Remove.
17074 (lst_succ): Remove.
17075 (lst_find_pbb): Remove.
17076 (find_lst_loop): Remove.
17077 (lst_find_first_pbb): Remove.
17078 (lst_empty_p): Remove.
17079 (lst_find_last_pbb): Remove.
17080 (lst_contains_p): Remove.
17081 (lst_contains_pbb): Remove.
17082 (lst_create_nest): Remove.
17083 (lst_remove_from_sequence): Remove.
17084 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17085 (lst_niter_for_loop): Remove.
17086 (pbb_update_scattering): Remove.
17087 (lst_update_scattering_under): Remove.
17088 (lst_update_scattering): Remove.
17089 (lst_insert_in_sequence): Remove.
17090 (lst_replace): Remove.
17091 (lst_substitute_3): Remove.
17092 (lst_distribute_lst): Remove.
17093 (lst_remove_all_before_including_pbb): Remove.
17094 (lst_remove_all_before_excluding_pbb): Remove.
17095 (struct scop): Remove original_schedule, transformed_schedule, and
17097 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
17098 (SCOP_SAVED_SCHEDULE): Remove.
17099 (poly_scattering_new): Remove.
17100 (poly_scattering_free): Remove.
17101 (poly_scattering_copy): Remove.
17102 (store_scattering_pbb): Remove.
17103 (store_lst_schedule): Remove.
17104 (restore_lst_schedule): Remove.
17105 (store_scattering): Remove.
17106 (restore_scattering_pbb): Remove.
17107 (restore_scattering): Remove.
17108 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
17109 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
17110 compute the scattering polyhedron dimension from the dimension of
17112 (build_scop_scattering): Update call to
17113 build_pbb_scattering_polyhedrons.
17114 (build_poly_scop): Remove call to scop_to_lst.
17115 * graphite.c (graphite_transform_loops): Add call to print_scop.
17116 (gate_graphite_transforms): Remove use of flag_loop_block,
17117 flag_loop_interchange, and flag_loop_strip_mine.
17119 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17121 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
17122 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
17123 -floop-nest-optimize.
17124 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
17125 (generate_luj_sepclass): Remove.
17126 (generate_luj_options): Remove.
17127 (set_options): Remove opt_luj.
17128 (scop_to_isl_ast): Remove opt_luj.
17129 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
17130 flag_loop_unroll_jam.
17131 (getPrevectorMap_full): Remove.
17132 (getScheduleForBandList): Remove map_sepcl.
17133 (getScheduleMap): Same.
17134 (apply_schedule_map_to_scop): Remove sepcl.
17135 (optimize_isl): Same.
17136 * graphite-poly.c (apply_poly_transforms): Remove check for
17137 flag_loop_unroll_jam.
17138 (new_poly_bb): Remove map_sepclass.
17139 * graphite-poly.h (struct poly_bb): Same.
17140 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
17141 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
17142 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
17143 * toplev.c (process_options): Remove flag_loop_unroll_jam.
17145 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
17148 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
17149 (addqi3_cc): Ditto.
17150 (UNSPEC_ADD_CARRY): Remove.
17151 (addqi3_cconly_overflow): New expander.
17152 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
17153 Adjust for changed add<mode>3_carry.
17154 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
17155 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
17156 (<plusminus_insn><mode>3_carry): Remove expander.
17157 (*<plusminus_insn><mode>3_carry): Split insn pattern to
17158 add<mode>3_carry and sub<mode>3_carry.
17159 (plusminus_carry_mnemonic): Remove code attribute.
17160 (add<mode>3_carry): Canonicalize insn pattern.
17161 (*addsi3_carry_zext): Ditto.
17162 (sub<mode>3_carry): Ditto.
17163 (*subsi3_carry_zext): Ditto.
17164 (adcx<mode>3): Remove insn pattern.
17165 (addcarry<mode>): New insn pattern.
17166 (subborrow<mode>): Ditto.
17167 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
17168 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
17169 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
17170 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
17171 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
17172 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
17173 Rewrite expander to not clobber carry flag chains.
17175 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
17177 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
17178 instead of a rotate.
17180 2015-08-27 Marek Polacek <polacek@redhat.com>
17182 PR middle-end/67005
17183 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
17184 an entry into an irreducible region.
17186 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17188 * configure: Regenerate.
17190 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17192 PR tree-optimization/67283
17193 * tree-sra.c (type_consists_of_records_p): Rename to...
17194 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17196 (completely_scalarize_record): Rename to...
17197 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
17198 (scalarize_elem): New.
17200 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17202 * tree-sra.c (completely_scalarize_var): Rename to...
17203 (create_total_scalarization_access): ... Here. Drop call to
17204 completely_scalarize_record.
17206 (analyze_all_variable_accesses): Replace completely_scalarize_var
17207 with create_total_scalarization_access and completely_scalarize_record.
17209 2015-08-27 Alan Modra <amodra@gmail.com>
17212 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
17215 2015-08-27 Richard Biener <rguenther@suse.de>
17217 * passes.c (rest_of_decl_compilation): Guard early_global_decl
17218 call with !seen_error ().
17219 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
17220 early debug generation and finish...
17221 (symbol_table::compile): ... here to put it after a !seen_error ()
17224 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17226 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
17229 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17230 Andre Vieira <andre.simoesdiasvieira@arm.com>
17232 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
17233 (*cb<optab><mode>1): Likewise.
17234 (*tb<optab><mode>1): Likewise.
17235 (*cb<optab><mode>1): Likewise.
17236 * config/aarch64/iterators.md (inv_cb): New code attribute.
17237 (inv_tb): Likewise.
17238 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
17239 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
17241 2015-08-27 Richard Biener <rguenther@suse.de>
17243 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
17245 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17247 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
17250 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17252 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
17255 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
17257 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
17258 floating point in VSX registers.
17259 (rs6000_output_move_128bit): Always print out the set insn if we
17260 can't generate an appropriate 128-bit move.
17261 (rs6000_generate_compare): Add support for IEEE 128-bit floating
17262 point in VSX registers comparisons.
17263 (rs6000_expand_float128_convert): Likewise.
17265 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
17266 predicate for only GPR hard registers.
17268 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
17269 modes to iterators. Add new iterators for moving 128-bit values in
17270 scalar FPR registers and VSX registers.
17271 (FMOVE128): Likewise.
17272 (FMOVE128_FPR): Likewise.
17273 (FMOVE128_GPR): Likewise.
17274 (FMOVE128_VSX): Likewise.
17275 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
17278 (IBM128): Likewise.
17279 (TFIFKF): Likewise.
17280 (RELOAD): Add IEEE 128-bit floating point modes.
17281 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
17282 floating point in VSX registers modes.
17283 (signbit<mode>2, IBM128 iterator): Likewise.
17284 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
17285 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17286 (negtf2): Likewise.
17287 (neg<mode>2, TFIFKF iterator): Likewise.
17288 (negtf2_internal): Likewise.
17289 (abstf2): Likewise.
17290 (abs<mode>2, TFIFKF iterator): Likewise.
17291 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
17292 VSX insn support for negate, absolute value, and negative absolute
17294 (ieee_128bit_vsx_neg<mode>2): Likewise.
17295 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
17296 (ieee_128bit_vsx_abs<mode>2): Likewise.
17297 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17298 (ieee_128bit_vsx_nabs<mode>2): Likewise.
17299 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17300 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
17301 floating point in VSX registers.
17302 (unpack<mode>_dm): Likewise.
17303 (unpack<mode>_nodm): Likewise.
17304 (pack<mode>): Likewise.
17305 (unpackv1ti): Likewise.
17306 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
17307 (packv1ti): Likewise.
17308 (pack<mode>, FMOVE128_VSX iterator): Likewise.
17309 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
17311 (extenddftf2_internal): Likewise.
17312 (trunctfdf2): Likewise.
17313 (trunctfdf2_internal2): Likewise.
17314 (fix_trunc_helper): Likewise.
17315 (fix_trunctfdi2"): Likewise.
17316 (floatditf2): Likewise.
17317 (floatuns<mode>tf2): Likewise.
17318 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17319 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17320 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17321 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17322 (float<SDI:mode><IFKF:mode>2): Likewise.
17323 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17325 2015-08-26 Renlin Li <renlin.li@arm.com>
17327 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17329 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17330 Jiong Wang <jiong.wang@arm.com>
17332 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17333 (tlsie_tiny_<mode>): New define_insn.
17334 (tlsie_tiny_sidi): Likewise.
17335 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17337 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17338 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17340 (aarch64_expand_mov_immediate): Likewise.
17341 (aarch64_print_operand): Likewise.
17342 (arch64_classify_tls_symbol): Likewise.
17344 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17346 * config/arm/arm-arches.def: Replace single value flags with
17347 an initializer built from ARM_FSET_MAKE_CPU1.
17348 * config/arm/arm-cores.def: Likewise.
17349 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17350 derivation from the ARM_CORE macro definition, use the given value
17352 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17353 ARM_ARCH macro definition, use the given value instead.
17355 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17357 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17359 (struct builtin_description): Replace field mask with field
17361 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17362 (IWMMXT2_BUILTIN): Likewise.
17363 (IWMMXT2_BUILTIN2): Likewise.
17364 (FP_BUILTIN): Likewise.
17365 (CRC32_BUILTIN): Likewise.
17366 (CRYPTO_BUILTIN): Likewise.
17367 (iwmmx_mbuiltin): Likewise.
17368 (iwmmx2_mbuiltin): Likewise.
17369 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17370 struct builtin_description.
17372 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17374 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17375 (struct builtin_description): Change type of mask to unsigned
17377 * config/arm/arm-protos.h (insn_flags): Declare as type
17379 (tune_flags): Likewise.
17380 * config/arm/arm.c (feature_count): New.
17381 (insn_flags): Define as type arm_feature_set.
17382 (tune_flags): Likewise.
17383 (struct processors): Define field flags as type arm_feature_set.
17384 (all_cores): Update for change to struct processors.
17385 (all_architectures): Likewise.
17386 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17388 (arm_option_override_internal): Likewise.
17389 (arm_option_override): Likewise.
17391 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17392 Jiong Wang <jiong.wang@arm.com>
17394 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17395 tls size for tiny, small, large memory model.
17396 (aarch64_load_symref_appropriately): Support new symbol types.
17397 (aarch64_expand_mov_immediate): Likewise.
17398 (aarch64_print_operand): Likewise.
17399 (aarch64_classify_tls_symbol): Likewise.
17400 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17401 (aarch64_symbol_type): Likewise.
17402 * config/aarch64/aarch64.md (tlsle): Deleted.
17403 (tlsle12_<mode>): New define_insn.
17404 (tlsle24_<mode>): Likewise.
17405 (tlsle32_<mode>): Likewise.
17406 (tlsle48_<mode>): Likewise.
17407 * doc/sourcebuild.texi (AArch64-specific attributes): Document
17410 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17412 * config/arm/arm-protos.h (FL_NONE): New.
17414 (arm_feature_set): New.
17415 (ARM_FSET_MAKE): New.
17416 (ARM_FSET_MAKE_CPU1): New.
17417 (ARM_FSET_MAKE_CPU2): New.
17418 (ARM_FSET_CPU1): New.
17419 (ARM_FSET_CPU2): New.
17420 (ARM_FSET_EMPTY): New.
17421 (ARM_FSET_ANY): New.
17422 (ARM_FSET_HAS_CPU1): New.
17423 (ARM_FSET_HAS_CPU2): New.
17424 (ARM_FSET_HAS_CPU): New.
17425 (ARM_FSET_ADD_CPU1): New.
17426 (ARM_FSET_ADD_CPU2): New.
17427 (ARM_FSET_DEL_CPU1): New.
17428 (ARM_FSET_DEL_CPU2): New.
17429 (ARM_FSET_UNION): New.
17430 (ARM_FSET_INTER): New.
17431 (ARM_FSET_XOR): New.
17432 (ARM_FSET_EXCLUDE): New.
17433 (AFM_FSET_IS_EMPTY): New.
17434 (ARM_FSET_CPU_SUBSET): New.
17436 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17438 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17439 SYMBOL_TLSLE to SYMBOL_TLSLE24.
17440 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17442 (aarch64_expand_mov_immediate): Likewise.
17443 (aarch64_print_operand): Likewise.
17444 (aarch64_classify_symbol): Likewise.
17446 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17448 * config/aarch64/aarch64.opt (mtls-size): New entry.
17449 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17450 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17451 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17453 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17455 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17456 ARM_CORE entry. Fix some white-space.
17457 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17458 ARM_CORE definition.
17460 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17462 * fold-const.c (fold_binary_loc) : Move Optimize
17463 root(x)*root(y) as root(x*y) to match.pd.
17464 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17465 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17466 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17467 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17468 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17469 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17470 (mult (exps:s @0) (exps:s @1)) : New simplifier.
17471 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17472 (rdiv @0 (exps:s @1)) : New simplifier.
17474 2015-08-25 Joseph Myers <joseph@codesourcery.com>
17476 * gcc.c (driver::finalize): Only assign to extra_specs if
17479 2015-08-25 Marek Polacek <polacek@redhat.com>
17481 PR middle-end/67330
17482 * varasm.c (declare_weak): Return after giving an error.
17484 2015-08-25 David Malcolm <dmalcolm@redhat.com>
17486 * gcc-main.c (main): Add params to driver ctor.
17487 * gcc.c (class env_manager): New.
17489 (env_manager::init): New.
17490 (env_manager::get): New.
17491 (env_manager::xput): New.
17492 (env_manager::restore): New.
17493 Poison getenv and putenv.
17494 (DEFAULT_TARGET_SYSTEM_ROOT): New.
17495 (target_system_root): Update initialization to use
17496 DEFAULT_TARGET_SYSTEM_ROOT.
17497 (struct spec_list): Add field "default_ptr".
17498 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17499 (init_spec): Likewise.
17500 (set_spec): Clear field "default_ptr".
17501 (read_specs): Free "spec" and "buffer".
17502 (xputenv): Reimplement in terms of env_manager.
17503 (process_command): Replace ::getenv calls with calls to the
17504 env_manager singleton.
17505 (process_brace_body): Free string in three places.
17506 (driver::driver): New.
17507 (driver::~driver): New.
17508 (used_arg): Convert from a function to...
17509 (class used_arg_t): ...this class, and...
17510 (used_arg): ...this new global instance.
17511 (used_arg_t::finalize): New function.
17512 (getenv_spec_function): Add "const" to local "value". Replace
17513 ::getenv call with call to the env_manager singleton.
17514 (path_prefix_reset): New function.
17515 (driver::finalize): New function.
17516 * gcc.h (driver::driver): New.
17517 (driver::~driver): New.
17518 (driver::finalize): New.
17520 2015-08-25 Nathan Sidwell <nathan@acm.org>
17522 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17523 target doesn't have one.
17525 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17528 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17530 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17533 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17534 a define_insn, remove second alternative.
17536 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
17537 Joseph Myers <joseph@codesourcery.com>
17539 * gcc.c (struct switchstr): Expand comment.
17541 2015-08-25 Nathan Sidwell <nathan@acm.org>
17543 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17544 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17546 2015-08-25 Richard Biener <rguenther@suse.de>
17548 PR middle-end/67306
17549 * genmatch.c (expr::gen_transform): Verify the result of
17550 builtin_decl_implicit.
17551 (dt_simplify::gen_1): Likewise.
17553 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
17555 * config/arm/constraints.md: Also list Cs and US ARM-specific
17556 constraints as used.
17558 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
17561 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17563 (nonpic_symbol_mentioned_p): Likewise.
17564 (sh_delegitimize_address): Likewise.
17565 (sh_function_ok_for_sibcall): Take into account weak symbols.
17566 (sh_expand_sym_label2reg): New.
17567 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17568 * config/sh/sh.md (UNSPEC_PCREL): New enum.
17569 (call_pcrel): Use sh_expand_sym_label2reg.
17570 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17571 (symPCREL_label2reg) New expand.
17573 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
17575 * graphite-poly.c: Change type of region from void* to sese.
17576 * graphite-poly.h (struct scop): Changing the type of scop::region
17577 from void* to sese. Change accessor macro accordingly.
17578 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17580 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
17582 * graphite-scop-detection.c (stmt_simple_for_scop_p):
17583 Constrain only on INTEGER_TYPE.
17585 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17588 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17589 -mefficient-unaligned-vsx on ISA 2.7.
17591 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17592 option to a masked option.
17594 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17595 logic for -mefficient-unaligned-vsx so that it is set via an arch
17596 ISA option, instead of being set if -mtune=power8 is set. Move
17597 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17598 near other default option handling.
17600 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17602 * genflags.c (gen_macro): Delete.
17603 (gen_proto): Don't create GEN.*CALL.* macros.
17604 * gensupport.h (get_file_location): Declare.
17605 * gensupport.c (rtx_locs): New variable.
17606 (read_md_rtx): Record rtx locations.
17607 (get_file_location): New function.
17608 * target-insns.def (call, call_pop, call_value, call_value_pop)
17609 (sibcall, sibcall_value): New patterns.
17610 * gentarget-def.c (parse_argument): New function.
17611 (def_target_insn): Use it. Handle optional operands. Raise an
17612 error if an .md pattern has the wrong number of operands for the
17613 pattern name. Remove the names of unused operands from the prototype.
17614 * builtins.c (expand_builtin_apply): Use targetm functions
17615 instead of HAVE_call_value and GEN_CALL_VALUE.
17616 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
17617 and sibcall_value_pop.
17618 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
17620 * config/alpha/alpha.md (untyped_call): Likewise.
17621 * config/iq2000/iq2000.md (untyped_call): Likewise.
17622 * config/m68k/m68k.md (untyped_call): Likewise.
17623 * config/mips/mips.md (untyped_call): Likewise.
17624 * config/pa/pa.md (untyped_call): Likewise.
17625 * config/rs6000/rs6000.md (untyped_call): Likewise.
17626 * config/sparc/sparc.md (untyped_call): Likewise.
17627 * config/tilegx/tilegx.md (untyped_call): Likewise.
17628 * config/tilepro/tilepro.md (untyped_call): Likewise.
17629 * config/visium/visium.md (untyped_call): Likewise.
17630 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
17631 gen_call_value instead of GEN_CALL_VALUE.
17632 * config/arm/arm.md (untyped_call): Likewise.
17633 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
17636 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17638 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
17639 (have_cbranchcc4): New variable.
17640 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
17641 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
17642 (if_convert): Initialize have_cbranchcc4.
17644 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17646 * builtins.c (expand_cmpstrn): Rename to...
17647 (expand_cmpstrn_or_cmpmem): ...this.
17648 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
17649 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
17650 Remove mode argument.
17651 (expand_builtin): Update accordingly.
17653 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17655 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
17656 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
17657 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
17658 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
17659 Add predicates for operands 0 and 3.
17660 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
17662 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
17663 immediate_operand to nonmemory_operand.
17665 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17667 * df-scan.c (df_insn_info_init_fields): New function, split out
17669 (df_insn_create_insn_record): ...here.
17670 (df_insn_info_free_fields): New function, split out from...
17671 (df_insn_info_delete): ...here.
17672 (df_insn_rescan): Use the new functions instead of freeing and
17673 reallocating the df_insn_info.
17675 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17677 * doc/install.texi (Binaries): Remove links no longer valid.
17679 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
17681 * config/nvptx/mkoffload.c (process): Replace
17682 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
17684 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
17687 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
17689 2015-08-24 Renlin Li <renlin.li@arm.com>
17691 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
17692 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
17693 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
17694 * config/arm/constraints.md ("j"): Add check for high code.
17696 2015-08-24 Tom de Vries <tom@codesourcery.com>
17698 PR tree-optimization/65468
17699 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
17702 2015-08-24 Nathan Sidwell <nathan@acm.org>
17704 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
17705 change to nvptx_type_from_mode call. Use arg_promotion for both
17706 split and non-split args.
17708 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17710 * target-insns.def (movstr): New pattern.
17711 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
17712 (expand_movstr): Use targetm rather than HAVE_movstr/
17715 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17717 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
17720 2015-08-24 Andrew Pinski <apinski@cavium.com>
17722 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
17723 AARCH64_EXTRA_TUNING_OPTION.
17724 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
17726 (aarch64_extra_tuning_flags): Base the shifted value on the index
17727 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
17728 * config/aarch64/aarch64.c: Remove the last argument to
17729 AARCH64_EXTRA_TUNING_OPTION.
17731 2015-08-23 Nathan Sidwell <nathan@acm.org>
17733 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
17735 (nvptx_declare_function_name): Insert formatting tabs for
17738 2015-08-23 Tom de Vries <tom@codesourcery.com>
17740 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
17741 parm_decl, rather than generating a dummy default def in cfun.
17742 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
17743 ssa_name from cfun and child_fn do not share a stmt as def stmt.
17744 (move_stmt_op): Handle PARM_DECl.
17745 (gather_ssa_name_hash_map_from): New function.
17746 (move_sese_region_to_fn): Add default defs for function params, and add
17747 them to vars_map. Release copied ssa names.
17748 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
17750 2015-08-23 Tom de Vries <tom@codesourcery.com>
17752 * doc/sourcebuild.texi: Rename vect_no_int_max with
17753 vect_no_int_min_max. Update description.
17755 2015-08-22 Andrew Pinski <apinski@cavium.com>
17757 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
17758 * config/aarch64/aarch64-protos.h
17759 (aarch64_fusion_pairs_index): New enum.
17760 (aarch64_fusion_pairs): Base the shifted value on the index instead
17761 Rewrite AARCH64_FUSE_ALL to be based on the end index.
17762 of the argument to AARCH64_FUSION_PAIR.
17763 * config/aarch64/aarch64.c: Remove the last argument to
17764 AARCH64_FUSION_PAIR.
17766 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
17768 * dominance.c (new_zero_array): Define.
17769 (dom_info): Redefine as class with proper encapsulation.
17770 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
17772 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
17773 allocations/deallocations. Pass function as parameter (instead of
17775 (dom_info::get_idom): Define accessor method.
17776 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
17777 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
17778 (calculate_dominance_info): Adjust to use dom_info class.
17779 (verify_dominators): Likewise.
17781 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
17783 * print-rtl.c (print_rtx): Check the correct range for
17784 flag_dump_unnumbered_links to behave as documented.
17786 PR rtl-optimization/67227
17787 PR rtl-optimization/64164
17788 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
17789 (nonoverlapping_memrefs_p): Test offsets and sizes when given
17790 identical gimple_reg exprs.
17792 2015-08-21 Nathan Sidwell <nathan@acm.org>
17794 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
17796 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
17797 crtl->stack_alignment_needed to determine alignment.
17798 (nvptx_get_drap_rtx): New.
17799 (TARGET_GET_DRAP_RTX): Override.
17800 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
17802 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17804 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
17806 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17808 * configure.ac: Remove uwin* cases.
17809 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
17810 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
17811 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
17812 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
17813 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
17814 i[34567]86-*-uwin*, powerpc-*-beos*.
17816 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
17818 * gencodes.c (gencodes): Print the comma for the preceding
17819 enum value rather than the current one. Use aliased enum values
17820 rather than #defines for compiled-out patterns.
17821 (main): Update accordingly. Replace LAST_INSN_CODE with
17823 * lra.c (insn_code_data): Update accordingly.
17824 (finish_insn_code_data_once, get_static_insn_data): Likewise.
17825 * recog.h (target_recog): Likewise.
17826 (preprocess_insn_constraints): Change parameter to unsigned int.
17827 * recog.c (preprocess_insn_constraints): Likewise.
17828 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
17829 * tree-vect-stmts.c (vectorizable_operation): Simplify.
17831 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
17833 PR rtl-optimization/61657
17834 * loop-iv.c (iv_number_of_iterations): Declare up and down as
17835 unsigned. Remove superflous uint64_t cast.
17837 2014-08-21 Felix Yang <felix.yang@huawei.com>
17838 Jiji Jiang <jiangjiji@huawei.com>
17840 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
17841 argument and get builtin function code directly from CALL.
17842 (gimple_stringop_fixed_value): Modified accordingly.
17843 (gimple_stringops_transform, gimple_stringops_values_to_profile):
17844 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
17846 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
17848 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
17850 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17852 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
17854 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
17855 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
17856 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
17857 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
17858 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
17859 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
17860 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
17861 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
17862 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
17863 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
17865 * match.pd (SIN ) : New Operator.
17866 (TAN) : New Operator.
17867 (mult (SQRT@1 @0) @1) : New simplifier.
17868 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
17869 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17870 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17871 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
17872 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
17873 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
17874 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
17875 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
17876 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
17877 (rdiv @0 (POW:s @1 @2)) : New simplifier.
17879 2015-08-21 Bin Cheng <bin.cheng@arm.com>
17881 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
17882 loop if EXPR is simplified to const value.
17884 2015-08-21 Yury Gribov <y.gribov@samsung.com>
17886 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17887 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
17889 2015-08-21 Richard Biener <rguenther@suse.de>
17891 PR middle-end/67285
17892 * gimple-fold.c (replace_stmt_with_simplification): Assert
17893 seq is empty when replacing a call with itself but different
17895 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
17896 a call require that it is const.
17898 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17900 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
17901 * builtins.c (get_object_alignment_2): Adjust.
17902 * varasm.c (align_variable): Likewise.
17903 (get_variable_align): Likewise.
17904 (build_constant_desc): Likewise.
17905 (force_const_mem): Likewise.
17906 * doc/tm.texi.in: Likewise.
17907 * doc/tm.texi: Regenerate.
17909 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17911 * genconfig.c (main): Always define HAVE_cc0.
17912 * recog.c (rest_of_handle_peephole2): Adjust.
17914 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17916 * reorg.c (relax_delay_slots): Don't use #if to check value of
17919 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17921 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17922 * targhooks.c (default_have_conditional_execution): Adjust.
17924 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
17926 * rtl.h (rtvec_all_equal_p): Declare.
17927 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17928 * rtl.c (rtvec_all_equal_p): New function.
17929 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17930 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17931 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17932 * config/arm/arm.c (neon_vdup_constant): Likewise.
17933 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17934 * config/tilegx/constraints.md (W, Y): Likewise.
17935 * config/tilepro/constraints.md (W, Y): Likewise.
17936 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17937 (classify_immediate): Use unwrap_const_vec_duplicate.
17938 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17939 (reg_or_v2s8bit_operand): Likewise.
17940 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17941 (reg_or_v4s8bit_operand): Likewise.
17943 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17945 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17946 (vec_shasigma_be): New #define.
17947 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17948 (VPMSUMH): Likewise.
17949 (VPMSUMW): Likewise.
17950 (VPMSUMD): Likewise.
17951 (VPMSUM): New BU_P8V_OVERLOAD_2.
17952 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17953 entries for VEC_MADD and VEC_VPMSUM.
17955 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
17957 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17958 Multiply argument avr_n_flash by 64 to match unit of "KiB".
17959 (avr_pgm_check_var_decl): Same.
17961 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
17963 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17964 initialization of HFmode scalar type (float16_t) to...
17965 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17968 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17970 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17971 having an -mfp16-format.
17973 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
17975 * config/i386/predicates.md (vector_all_ones_operand): Use
17976 CONSTM1_RTX to simplify definition.
17978 2015-08-20 Richard Biener <rguenther@suse.de>
17980 * toplev.c (compile_file): Remove loop calling late_global_decl
17982 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17983 on decls we assembled.
17985 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
17987 * common/config/aarch64/aarch64-common.c
17988 (AARCH64_CPU_NAME_LENGTH): Delete.
17989 (aarch64_option_extension): New.
17990 (all_extensions): Likewise.
17991 (processor_name_to_arch): Likewise.
17992 (arch_to_arch_name): Likewise.
17994 (all_architectures): Likewise.
17995 (aarch64_get_extension_string_for_isa_flags): Likewise.
17996 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17997 architecture names.
17998 * config/aarch64/aarch64-protos.h
17999 (aarch64_get_extension_string_for_isa_flags): New.
18000 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18001 (aarch64_option_print): Get the string to print from
18002 aarch64_get_extension_string_for_isa_flags.
18003 (aarch64_declare_function_name): Likewise.
18004 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18005 (MCPU_TO_MARCH_SPEC): This.
18006 (ASM_CPU_SPEC): Use it.
18007 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18008 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18009 (EXTRA_SPEC_FUNCTIONS): Use it.
18011 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18013 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18014 expansion when !ISA_HAS_LWL_LWR.
18015 (mips_block_move_straight): Update the size of elements copied to
18016 account for alignment when !ISA_HAS_LWL_LWR.
18017 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18019 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18021 * expr.c (expand_expr_real_2): Check gimple statement during
18022 LSHIFT_EXPR expand.
18024 2015-08-19 Magnus Granberg <zorry@gentoo.org>
18026 * common.opt (fstack-protector): Initialize to -1.
18027 (fstack-protector-all): Likewise.
18028 (fstack-protector-strong): Likewise.
18029 (fstack-protector-explicit): Likewise.
18030 * configure.ac: Add --enable-default-ssp.
18031 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
18032 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18034 * doc/install.texi: Document --enable-default-ssp.
18035 * config.in: Regenerated.
18036 * configure: Likewise.
18038 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
18040 PR rtl-optimization/64164
18041 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18042 (parm_in_stack_slot_p): ... this. Disregard mode, what
18043 matters is whether the parm will live in a pseudo or a stack
18045 (expand_one_ssa_partition): Deal with params without a default
18046 def. Disregard mode.
18047 * cfgexpand.h: Renamed function declaration.
18048 * tree-ssa-coalesce.c: Adjust.
18049 * function.c (split_complex_args): Allocate stack slot for
18050 unassigned parms before splitting.
18051 (parm_in_unassigned_mem_p): New. Use it instead of
18052 parm_maybe_byref_p throughout this file.
18053 (assign_parm_setup_block): Use it. Accept pseudos in the
18054 expand-assigned rtl.
18055 (assign_parm_setup_reg): Drop BLKmode requirement.
18056 (assign_parm_setup_stack): Allocate and fill in the address of
18057 unassigned MEM parms.
18059 2015-08-19 David Sherwood <david.sherwood@arm.com>
18061 * genmodes.c (emit_mode_unit_size_inline): New function.
18062 (emit_mode_unit_precision_inline): New function.
18063 (emit_insn_modes_h): Emit new #define. Emit new functions.
18064 (emit_mode_unit_size): New function.
18065 (emit_mode_unit_precision): New function.
18066 (emit_mode_adjustments): Add mode_unit_size adjustments.
18067 (emit_insn_modes_c): Emit new arrays.
18068 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18069 use new inline methods.
18071 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18073 * config/aarch64/aarch64.c (bit_count): Delete prototype
18075 (aarch64_print_operand): Use popcount_hwi instead of the above.
18077 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18079 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18082 2015-08-19 Marek Polacek <polacek@redhat.com>
18084 PR middle-end/67133
18085 * gimple-ssa-isolate-paths.c
18086 (insert_trap_and_remove_trailing_statements): Rename to ...
18087 (insert_trap): ... this. Don't remove trailing statements; split
18089 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18091 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
18094 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18095 conditionalize the whole on __GNUC__. Add fallback code
18096 depending neither on undefined nor implementation-defined behaviour.
18098 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18100 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
18101 whitespaces with tab.
18103 2015-08-19 Florian Weimer <fweimer@redhat.com>
18105 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
18106 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
18107 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
18108 Move Name_Ids instantiation to the Prj.Proc package, to avoid
18111 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18113 * config/arm/arm.c (bounds_check): Use %wd print format
18114 for HOST_WIDE_INT arguments.
18116 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
18118 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
18119 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
18120 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
18121 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
18122 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
18123 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
18124 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
18125 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
18126 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
18129 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
18131 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
18132 function.c, graphite-scop-detection.c, haifa-sched.c,
18133 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
18134 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
18135 varasm.c: Remove typedefs of structs.
18137 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18139 * config/rs6000/altivec.h (vec_adde): New define.
18140 (vec_addec): Likewise.
18141 (vec_double): Likewise.
18142 (vec_bperm): Likewise.
18143 (vec_gb): Likewise.
18144 * config/rs6000/rs6000-builtin.def (ADDE): New
18145 BU_ALTIVEC_OVERLOAD_3.
18147 (DOUBLE): New BU_VSX_OVERLOAD_1.
18148 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
18149 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
18150 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
18151 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
18152 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
18153 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
18154 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
18155 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
18156 and P8V_BUILTIN_VEC_VBPERMQ.
18158 2015-08-18 Jason Merrill <jason@redhat.com>
18160 * print-tree.c (print_node): Handle TREE_BINFO.
18162 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18164 PR middle-end/36757
18165 * builtins.c (expand_builtin_signbit): Add asserts to make sure
18166 we can expand BUILT_IN_SIGNBIT inline.
18167 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
18168 * doc/extend.texi: Document the type-generic __builtin_signbit.
18170 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
18172 PR rtl-optimization/67218
18173 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
18174 (simplify_unary_operation_1): Use it.
18176 2015-08-18 Marek Polacek <polacek@redhat.com>
18178 PR middle-end/67222
18179 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
18180 if the call isn't valid.
18181 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
18182 gimple_call_builtin_p.
18183 (call_may_clobber_ref_p_1): Likewise.
18184 (stmt_kills_ref_p): Likewise.
18186 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
18188 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
18189 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
18190 (mips_hard_regno_scratch_ok): Likewise.
18191 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
18192 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
18194 2015-08-18 Bin Cheng <bin.cheng@arm.com>
18196 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
18197 (determine_value_range): Call refine_value_range_using_guard for
18198 each loop initial condition to improve value range.
18200 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
18202 * config/i386/i386.c: Remove include of fibheap.h.
18204 2015-08-17 Richard Biener <rguenther@suse.de>
18206 PR tree-optimization/67221
18207 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
18208 (sccvn_dom_walker::before_dom_children): Mark backedges of
18209 non-executable blocks as not executable.
18211 2015-08-17 David Sherwood <david.sherwood@arm.com>
18213 * config/arm/arm.c (neon_element_bits): Replace call to
18214 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
18215 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
18216 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
18217 (neon_vdup_lane<mode>): Likewise.
18218 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
18219 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
18220 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
18221 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
18222 * config/spu/spu.c (arith_immediate_p): Likewise.
18223 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18224 * expr.c (expand_expr_real_2): Likewise.
18225 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
18226 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18227 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18228 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
18230 * fold-const.c (fold_binary_loc): Replace call to
18231 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
18232 GET_MODE_UNIT_PRECISION (m).
18234 2015-08-17 Mike Stump <mikestump@comcast.net>
18236 * config/arm/arm.c (arm_block_move_unaligned_straight):
18237 Emit normal move instead of unaligned load when source or destination
18238 are appropriately aligned.
18240 2015-08-17 Richard Biener <rguenther@suse.de>
18241 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18243 PR middle-end/16107
18244 * match.pd (div (coss (op @0) : New simplifier.
18246 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
18248 PR rtl-optimization/64164
18250 PR middle-end/66983
18251 PR rtl-optimization/67000
18252 PR middle-end/67034
18253 PR middle-end/67035
18254 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18255 * tree-ssa-copyrename.c: Removed.
18256 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18257 -ftree-coalesce-vars.
18258 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18259 * common.opt (ftree-copyrename): Ignore.
18260 (ftree-coalesce-inlined-vars): Likewise.
18261 * doc/invoke.texi: Remove the ignored options above.
18262 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18263 * tree-ssa-coalesce.h: ... here.
18264 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18265 headers required by it.
18266 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18267 across variables when flag_tree_coalesce_vars. Check register
18268 use and promoted modes to allow coalescing. Do not coalesce
18269 maybe-byref parms with SSA_NAMEs of other variables, or
18270 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
18271 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18272 with its member functions to tree-ssa-coalesce.c.
18273 (var_map_base_init): Likewise. Renamed to
18274 compute_samebase_partition_bases.
18275 (partition_view_normal): Drop want_bases parameter.
18276 (partition_view_bitmap): Likewise.
18277 * tree-ssa-live.h: Adjust declarations.
18278 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
18279 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18280 default defs at the entry point.
18281 (dump_part_var_map): New.
18282 (compute_optimized_partition_bases): New, called by...
18283 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18284 of compute_samebase_partition_bases. Adjust.
18285 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18286 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
18287 (ssa_default_def_partition): New.
18288 (get_rtl_for_parm_ssa_default_def): New.
18289 (align_local_variable, add_stack_var): Support anonymous SSA
18291 (defer_stack_allocation): Likewise. Declare earlier.
18292 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18293 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18294 Do no record deferred-allocation marker in
18295 SA.partition_to_pseudo.
18296 (expand_stack_vars): Adjust check for the marker in it.
18297 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18298 redundant MEM attr setting.
18299 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18301 (expand_one_stack_var): ... this. New wrapper to check and
18302 skip already expanded SSA partitions.
18303 (record_alignment_for_reg_var): New, factored out of...
18304 (expand_one_var): ... this.
18305 (expand_one_ssa_partition): New.
18306 (adjust_one_expanded_partition_var): New.
18307 (expand_one_register_var): Check and skip already expanded SSA
18309 (expand_used_vars): Don't create DECLs for anonymous SSA
18310 names. Expand all SSA partitions, then adjust all SSA names.
18311 (pass::execute): Replace the loops that set
18312 SA.partition_to_pseudo from partition leaders and cleared
18313 DECL_RTL for multi-location variables, and that which used to
18314 rename vars and set attrs, with one that clears DECL_RTL and
18315 checks that PARMs and RESULTs default_defs match DECL_RTL.
18316 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18317 * emit-rtl.c: Include stor-layout.h.
18318 (set_reg_attrs_for_parm): Handle NULL decl.
18319 (set_reg_attrs_for_decl_rtl): Take mode from expression if
18321 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18322 rather than its possibly-NULL DECL.
18323 * explow.c (promote_ssa_mode): New.
18324 * explow.h (promote_ssa_mode): Declare.
18325 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18326 (read_complex_part): Export.
18327 * expr.h (read_complex_part): Declare.
18328 * cfgexpand.h (parm_maybe_byref_p): Declare.
18329 * function.c: Include cfgexpand.h.
18330 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18331 (use_register_for_parm_decl): Wrapper for the above to
18332 special-case the result_ptr.
18333 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18334 (split_complex_args): Take assign_parm_data_all argument.
18335 Pass it to rtl_for_parm. Set up rtl and context for split
18336 args. Reset complex parm before fetching its default decl
18338 (assign_parms_unsplit_complex): Use the default-def complex
18339 parm rtl if it matches the components.
18340 (assign_parms_augmented_arg_list): Adjust.
18341 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18342 multiple locations. Recognize split complex args.
18343 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18344 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18345 (assign_parm_setup_block): Prefer SSA-assigned location, and
18346 fill in its address if the memory location of a maybe-byref
18347 parm was not assigned by cfgexpand.
18348 (assign_parm_setup_reg): Likewise. Adjust its mode as
18349 needed. Use entry_parm for equiv if stack_parm is NULL. Make
18350 sure passed_pointer parms don't need conversion. Copy address
18351 or value as needed.
18352 (assign_parm_setup_stack): Prefer SSA-assigned location.
18353 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18354 rtl before testing for pointer bounds. Special-case result_ptr.
18355 (expand_function_start): Maybe reset DECL_RTL of result.
18356 Prefer SSA-assigned location for result and static chain.
18357 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
18358 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
18359 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18360 anonymous SSA names. Use promote_ssa_mode.
18361 (get_temp_reg): Likewise.
18362 (remove_ssa_form): Adjust.
18363 * stor-layout.c (layout_decl): Don't set mem attributes of
18365 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18366 and get its reg_usage for reg invalidation.
18367 (compute_bb_dataflow): Pass it insn.
18368 (emit_notes_in_bb): Likewise.
18370 2015-08-14 Marek Polacek <polacek@redhat.com>
18372 * tree-core.h (tree_base): Fix typo.
18374 2015-08-14 Marek Polacek <polacek@redhat.com>
18376 PR middle-end/67133
18377 * gimple.c (infer_nonnull_range_by_attribute): Check that the
18378 nonnull argument position is not outside function arguments.
18380 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
18383 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18384 'lconst_atomic' with 'const_atomic'.
18385 (atomic_fetch_<optab><mode>): Likewise.
18386 (atomic_<optab>_fetch<mode>): Likewise.
18387 * config/aarch64/iterators.md (lconst-atomic): Move below
18389 (const_atomic): New.
18391 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
18392 Bernd Schmidt <bernds@codesourcery.com>
18394 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18396 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18397 (DWARF2_DEBUGGING_INFO): Don't define.
18398 * debug.h (dwarf2_lineno_debug_hooks): Declare.
18399 * toplev.c (process_options): Add a case for it.
18400 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18401 (dwarf2out_init): Skip most initializations if
18402 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18404 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18405 DWARF2_LINENO_DEBUGGING_INFO.
18406 * opts.c (set_debug_level): Likewise.
18408 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
18410 * config/arm/types.md (is_neon_type): Add missing types.
18412 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
18414 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18416 * config/i386/i386.c (PTA_SKYLAKE): New macros.
18417 (processor_alias_table): Add skylake description.
18418 (enum processor_model): Add skylake processor.
18419 (arch_names_table): Add skylake record.
18420 * doc/invoke.texi: Add skylake item.
18422 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
18424 * ira-int.h: Include recog.h.
18425 * ira-build.c: Don't include recog.h.
18426 * ira-color.c: Likewise.
18427 * ira-conflicts.c: Likewise.
18428 * ira-costs.c: Likewise.
18429 * ira-emit.c: Likewise.
18430 * ira-lives.c: Likewise.
18432 * sched-deps.c: Likewise.
18433 * sel-sched.c: Likewise.
18434 * target-globals.c: Likewise.
18436 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
18439 * reload1.c (elimination_costs_in_insn): Make it obvious to the
18440 compiler that the n_dups and n_operands loop bounds are invariant.
18442 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18444 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18445 expressions in A and B.
18447 2015-08-13 Richard Biener <rguenther@suse.de>
18449 * tree.c (nonnull_arg_p): Move from ...
18450 * tree-vrp.c (nonnull_arg_p): ... here.
18451 * tree.h (nonnull_arg_p): Declare.
18452 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18453 here, register ptr != 0 for nonnull_arg_p pointer arguments.
18454 Properly initialize static chain and by-reference result pointer.
18455 (run_scc_vn): Adjust.
18457 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18459 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18462 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18464 * config/aarch64/aarch64-protos.h
18465 (aarch64_gen_atomic_cas): Declare.
18466 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18467 Choose appropriate instruction pattern for the target.
18468 (aarch64_gen_atomic_cas): New.
18469 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18470 (atomic_compare_and_swap<mode>_1): Rename to
18471 aarch64_compare_and_swap<mode>. Fix some indentation.
18472 (aarch64_compare_and_swap<mode>_lse): New.
18473 (aarch64_atomic_cas<mode>): New.
18475 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18477 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18480 2015-08-13 Richard Biener <rguenther@suse.de>
18482 PR tree-optimization/67191
18483 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18484 assert we value-numbered last stmts operand because it can validly
18485 trigger for unreachable code.
18487 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18489 PR rtl-optimization/67103
18490 * ifcvt.c (noce_try_store_flag_constants): Move
18491 x = (-(test != 0) & (b - a)) + a transformation to...
18492 (noce_try_cmove): ... Here. Try it if normal conditional
18495 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18497 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18499 * config/mips/mips.md (processor): Remove w32 and w64.
18501 2015-08-13 Richard Biener <rguenther@suse.de>
18503 PR tree-optimization/66502
18504 PR tree-optimization/67167
18505 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18506 backedge arguments.
18507 (vn_phi_lookup): Adjust.
18508 (vn_phi_insert): Likewise.
18509 (visit_phi): Prefer to value-number to another PHI node
18510 over value-numbering to a PHI argument.
18511 (init_scc_vn): Mark DFS back edges.
18513 2015-08-13 Richard Biener <rguenther@suse.de>
18515 * gimple.h (gcall::code_): New constant static member.
18516 (gcond::code_): Likewise.
18517 * gimple.c (gcall::code_): Define.
18518 (gcond::code_): Likewise.
18519 (is_a_helper <const gcond *>): Add.
18520 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18521 and forward to a new gcall overload with less checking and a
18522 cheaper way to access the operand.
18523 (gimple_call_lhs_ptr): Likewise.
18524 (gimple_call_set_lhs): Likewise.
18525 (gimple_call_internal_p): Likewise.
18526 (gimple_call_with_bounds_p): Likewise.
18527 (gimple_call_set_with_bounds): Likewise.
18528 (gimple_call_internal_fn): Likewise.
18529 (gimple_call_set_ctrl_altering): Likewise.
18530 (gimple_call_ctrl_altering_p): Likewise.
18531 (gimple_call_fntype): Likewise.
18532 (gimple_call_fn): Likewise.
18533 (gimple_call_fn_ptr): Likewise.
18534 (gimple_call_set_fndecl): Likewise.
18535 (gimple_call_fndecl): Likewise.
18536 (gimple_call_chain): Likewise.
18537 (gimple_call_num_args): Likewise.
18538 (gimple_call_arg): Likewise.
18539 (gimple_call_arg_ptr): Likewise.
18540 (gimple_call_set_arg): Likewise.
18541 (gimple_call_noreturn_p): Likewise.
18542 (gimple_cond_code): Likewise.
18543 (gimple_cond_lhs): Likewise.
18544 (gimple_cond_rhs): Likewise.
18545 (gimple_has_lhs): Reduce checking.
18547 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18549 PR middle-end/25529
18550 * match.pd (div (mult @0 @1) @1) : New simplifier.
18552 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18555 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18556 predicate to allow construction of vector constants using the
18557 VSLDOI vector shift instruction.
18559 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18562 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18563 the number of bytes to be shifted left and filled in with either
18564 all zero or all one bits.
18565 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18567 (output_vec_const_move): On power8, generate XXLORC to generate
18568 a vector constant with all 1's. Do a split if we need to use a
18569 VSLDOI instruction.
18571 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18572 properly test for the MSB.
18574 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18575 vector constants that can be created with VSLDOI.
18577 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
18580 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18581 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18582 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18583 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18584 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18585 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18586 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18587 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18588 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18590 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
18592 * config/xtensa/constraints.md (define_constraint "Y"): New
18594 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18595 * config/xtensa/linux.h (ASM_SPEC): Likewise.
18596 * config/xtensa/predicates.md (move_operand): Match constants
18597 and symbols in the presence of TARGET_AUTO_LITPOOLS.
18598 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18599 immediate references to TLS data.
18600 (xtensa_emit_move_sequence): Don't force constants to memory in
18601 the presence of TARGET_AUTO_LITPOOLS.
18602 (print_operand): Add 'y' format, same as default, but capable of
18603 printing SF mode constants as well.
18604 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18605 (movsf_internal): Add movi pattern that loads literal.
18606 (movsf, movdf): Don't force constants to memory in the presence
18607 of TARGET_AUTO_LITPOOLS.
18608 (movdf_internal): Add 'Y' constraint.
18609 * config/xtensa/xtensa.opt (mauto-litpools): New option.
18610 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18612 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
18614 * config/arm/arm-fpus.def: Replace booleans with feature flags.
18616 * config/arm/arm.c (ARM_FPU): Update macro.
18617 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
18618 (TARGET_FP16): Likewise.
18619 (TARGET_CRYPTO): Likewise.
18620 (TARGET_NEON): Likewise.
18621 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
18624 2015-08-12 Tom de Vries <tom@codesourcery.com>
18628 * doc/install.texi: Remove --with_host_libstdcxx item. Update
18629 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
18630 accordingly. Mention default for --with-stage1-ldflags.
18632 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
18634 * config/arm/arm.h (arm_fpu_feature_set): New.
18635 (ARM_FPU_FSET_HAS): New.
18636 (FPU_FL_NONE): New.
18637 (FPU_FL_NEON): New.
18638 (FPU_FL_FP16): New.
18639 (FPU_FL_CRYPTO): New.
18641 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18643 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
18644 after -mcmodel=large -fPIC sorry.
18646 2015-08-12 Richard Biener <rguenther@suse.de>
18648 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
18649 comparison operand order and commutative ternary op operand order.
18650 (sccvn_dom_walker::cond_stack): New state to track temporary
18652 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
18654 (sccvn_dom_walker::record_cond): Add a single temporary conditional
18656 (sccvn_dom_walker::record_conds): Add a temporary conditional
18657 expressions and all related expressions also true/false.
18658 (sccvn_dom_walker::before_dom_children): Record temporary
18659 expressions based on the controlling condition of a single
18660 predecessor. When trying to simplify a conditional statement
18661 lookup expressions we might have inserted earlier.
18663 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
18666 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
18667 to ARM core registers.
18669 2015-08-12 Nathan Sidwell <nathan@acm.org>
18671 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
18672 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
18674 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
18676 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
18677 line with comments.
18678 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
18680 2015-08-12 Richard Biener <rguenther@suse.de>
18682 * gimple.h (remove_pointer): New trait.
18683 (GIMPLE_CHECK2): New inline template function.
18684 (gassign::code_): New constant static member.
18685 (is_a_helper<const gassign *>): Add.
18686 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
18687 and forward to a new gassign overload with less checking and a
18688 cheaper way to access the operand.
18689 (gimple_assign_lhs_ptr): Likewise.
18690 (gimple_assign_set_lhs): Likewise.
18691 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
18693 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
18695 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
18697 (gimple_assign_rhs_code): Likewise.
18698 * gimple.c (gassign::code_): Define.
18700 2015-08-12 Richard Biener <rguenther@suse.de>
18702 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18703 Eliminate edges marked as not executable by SCCVN.
18704 * tree-ssa-sccvn.c: Include gimple-iterator.h.
18705 (cond_dom_walker): Rename to sccvn_dom_walker.
18706 (sccvn_dom_walker::before_dom_children): Value-number defs
18708 (run_scc_vn): Remove loop value-numbering all SSA names.
18709 Drop not visited SSA names to varying.
18711 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
18713 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18714 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18715 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18716 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18717 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18718 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18719 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18720 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18721 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18723 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
18726 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
18727 to enum feature_priority and feature_list.
18728 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
18729 and isa_names_table.
18731 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18733 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
18734 vect_induction_def.
18736 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18740 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
18741 account when deciding what was the command-line status.
18743 2015-08-11 Nathan Sidwell <nathan@acm.org>
18745 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
18747 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
18748 we're not the only contributor to target phi.
18750 2015-08-11 Jiong Wang <jiong.wang@arm.com>
18752 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
18755 2015-08-11 Tom de Vries <tom@codesourcery.com>
18757 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
18759 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
18761 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
18763 * config/i386/i386.md (cpu): Remove knl.
18765 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
18768 PR middle-end/66332
18769 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
18770 open-coded sequence.
18771 * omp-low.c (oacc_process_reduction_data): Remove handline of
18772 GOMP_DEVICE_HOST_NONSHM.
18774 * lto-streamer-in.c (lto_input_mode_table): Adjust to
18775 GET_MODE_INNER changes.
18777 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
18778 Ilya Verbin <ilya.verbin@intel.com>
18780 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
18782 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18784 * doc/options.texi (EnabledBy): Document that the argument must be
18786 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
18787 Not enabled by -Wall.
18788 * optc-gen.awk: Give nicer error messages. Detect if the argument
18789 of EnabledBy is not a Common option.
18790 * common.opt (Wnull-dereference): Not enabled by -Wall.
18791 * opt-functions.awk (lang_enabled_by): Nicer error messages.
18793 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
18795 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
18796 model == 0x4f as Broadwell.
18798 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18800 PR rtl-optimization/67028
18801 * combine.c (simplify_comparison): Fix comment. Rearrange code.
18802 Add test to see if a const_int fits in the new mode.
18804 2015-08-07 DJ Delorie <dj@redhat.com>
18806 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
18808 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
18810 PR rtl-optimization/67029
18811 * ira-color.c: Include "recog.h" before including "ira-int.h".
18812 * target-globals.c: Likewise.
18813 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
18814 adds an alternative_mask argument and use it instead of
18815 preferred_alternatives.
18816 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
18817 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
18818 * sched-deps.c: Include "ira-int.h" after including "ira.h".
18819 (sched_analyze_insn): Update call to
18820 ira_implicitly_set_insn_hard_regs.
18821 * sel-sched.c: Include "ira-int.h" after including "ira.h".
18822 (implicit_clobber_conflict_p): Update call to
18823 ira_implicitly_set_insn_hard_regs.
18825 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
18827 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
18829 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
18832 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
18833 currently_expanding_to_rtl is set.
18835 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
18837 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
18838 * configure: Regenerate.
18840 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18841 Jiong Wang <jiong.wang@arm.com>
18843 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
18844 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
18845 (REG_CLASS_NAMES): Likewise.
18846 (REG_CLASS_CONTENTS): Likewise.
18847 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
18848 (aarch64_register_move_cost): Likewise.
18849 (aarch64_load_symref_appropriately): Invoke the new added pattern if
18851 * config/aarch64/constraints.md (Uc0): New constraint.
18853 2015-08-06 Jiong Wang <jiong.wang@arm.com>
18855 * config/aarch64/constraints.md (Usf): Add the test of
18856 aarch64_is_noplt_call_p.
18858 2015-08-06 Jiong Wang <jiong.wang@arm.com>
18860 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
18862 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
18863 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
18864 (call_symbol): Likewise.
18866 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
18868 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
18869 for vectorizing multiplication patterns.
18870 * tree-vectorizer.h: Adjust the number of patterns.
18872 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
18874 * config/i386/sse.md (*vec_concatv2df): Declare added
18875 alternatives as sselog type.
18877 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18879 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
18882 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18884 * config/s390/s390.c (s390_expand_tbegin): Expand either
18885 tbegin_1_z13 or tbegin_1 depending on VX flag.
18886 * config/s390/s390.md ("tbegin_1_z13"): New expander.
18888 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18890 * config/s390/s390.opt: Clarify description for -mzvector
18891 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
18894 2015-08-06 Richard Biener <rguenther@suse.de>
18896 * gimple.h (gimple_call_set_fn): Access op member directly.
18897 (gimple_call_chain_ptr): Likewise.
18898 (gimple_call_set_chain): Likewise.
18899 (gimple_cond_lhs_ptr): Likewise.
18900 (gimple_cond_set_lhs): Likewise.
18901 (gimple_cond_rhs_ptr): Likewise.
18902 (gimple_cond_set_rhs): Likewise.
18903 (gimple_cond_true_label): Likewise.
18904 (gimple_cond_set_true_label): Likewise.
18905 (gimple_cond_set_false_label): Likewise.
18906 (gimple_cond_false_label): Likewise.
18907 (gimple_label_label): Likewise.
18908 (gimple_label_set_label): Likewise.
18909 (gimple_goto_set_dest): Likewise.
18910 (gimple_asm_input_op): Likewise.
18911 (gimple_asm_input_op_ptr): Likewise.
18912 (gimple_asm_set_input_op): Likewise.
18913 (gimple_asm_output_op): Likewise.
18914 (gimple_asm_output_op_ptr): Likewise.
18915 (gimple_asm_set_output_op): Likewise.
18916 (gimple_asm_clobber_op): Likewise.
18917 (gimple_asm_set_clobber_op): Likewise.
18918 (gimple_asm_label_op): Likewise.
18919 (gimple_asm_set_label_op): Likewise.
18920 (gimple_switch_index): Likewise.
18921 (gimple_switch_index_ptr): Likewise.
18922 (gimple_return_retval_ptr): Likewise.
18923 (gimple_return_retval): Likewise.
18924 (gimple_return_set_retval): Likewise.
18925 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
18926 (gimple_switch_label): Likewise.
18927 (gimple_switch_set_label): Likewise.
18929 2015-08-06 Richard Biener <rguenther@suse.de>
18931 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18932 bool comparison canonicalization and restrict to integers.
18934 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
18936 * coretypes.h (enum symbol_visibility): Relocate here.
18937 * flag-types.h (enum symbol_visibility): Remove.
18938 * tree-core.h (enum symbol_visibility): Remove.
18940 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
18943 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18944 for no_split_stack function attribute along with
18946 (rs6000_expand_split_stack_prologue): Likewise.
18948 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
18949 Jeff Law <law@redhat.com>
18952 * doc/invoke.texi (Wnull-dereference): New.
18953 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18954 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18955 Warn for potential NULL dereferences.
18956 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18957 * ubsan.c (instrument_nonnull_arg): Call
18958 infer_nonnull_range_by_attribute.
18959 (instrument_nonnull_return): Likewise.
18960 * common.opt (Wnull-dereference); New.
18961 * gimple.c (infer_nonnull_range): Remove bool arguments.
18962 (infer_nonnull_range_by_dereference): New.
18963 (infer_nonnull_range_by_attribute): New.
18964 * gimple.h: Update declarations.
18966 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18968 * gensupport.c (sequence_num): Replace with...
18969 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18970 ...these new variables.
18971 (init_rtx_reader_args_cb): Update accordingly.
18972 (get_num_code_insns): Likewise.
18973 (read_md_rtx): Rework to use a while loop and get_c_test.
18974 Use the new counters. Remove redundant DEFINE_SUBST case.
18975 * genoutput.c (gen_split): Delete.
18976 (main): Don't call it.
18978 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18980 * gensupport.h (get_c_test): Declare.
18981 * gensupport.c (get_c_test): New function.
18982 * genconditions.c (main): Use it.
18983 * genrecog.c (validate_pattern): Likewise.
18984 (match_pattern_1): Likewise. Remove c_test argument.
18985 (match_pattern): Update accordingly and remove c_test argument.
18986 (main): Update accordingly.
18988 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18990 * gensupport.h (get_num_insn_codes): Declare.
18991 * gensupport.c (get_num_insn_codes): New function.
18992 * genattrtab.c (optimize_attrs): Rename max_insn_code to
18994 (main): Likewise. Use get_num_insn_codes.
18995 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18997 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18999 PR middle-end/66311
19000 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19001 is zero- rather than sign-extended.
19003 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19005 * target-insns.def (can_extend): Delete.
19007 2015-08-05 Richard Biener <rguenther@suse.de>
19009 PR tree-optimization/67121
19010 * tree-if-conv.c (combine_blocks): Clear range-info produced
19011 by stmts no longer executed conditionally.
19013 2015-08-05 Nick Clifton <nickc@redhat.com>
19015 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19016 to allow identical far pointers to remain.
19018 2015-08-05 Richard Biener <rguenther@suse.de>
19020 PR middle-end/67120
19021 * match.pd: Compare address bases with == if they are decls
19022 or SSA names, not operand_equal_p. Otherwise fail.
19024 2015-08-05 Richard Biener <rguenther@suse.de>
19026 PR tree-optimization/67055
19027 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19030 * g++.dg/torture/pr67055.C: New testcase.
19032 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19034 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19036 (define_attr "enabled"): Handle avx521vl and noavx512vl.
19037 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19038 AVX-512 alternative out of SSE.
19039 (define_insn "*vec_concatv2df"): Ditto.
19041 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19043 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19044 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19045 CODE_FOR_avx_ptestv4di.
19046 * config/i386/sse.md (define_mode_iterator V_AVX): New.
19047 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19048 (define_insn "avx_ptest256"): Merge this ...
19049 (define_insn "sse4_1_ptest"): And this ...
19050 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19052 2015-08-05 Richard Biener <rguenther@suse.de>
19054 PR tree-optimization/67109
19055 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19056 against too big groups. Print whether this is a load or store
19057 group. Rename from ...
19058 (vect_analyze_group_access): ... this which is now a wrapper
19059 dissolving an invalid group.
19060 (vect_analyze_data_ref_accesses): Print whether this is a load
19063 2015-08-05 Richard Biener <rguenther@suse.de>
19065 PR middle-end/67107
19066 * match.pd: Guard const_binop result checking against NULL_TREE
19069 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
19071 * cse.c (cse_insn): Restoring old behaviour for src_eqv
19072 when dest and value in the REG_EQUAL are same and dest
19073 is STRICT_LOW_PART.
19075 2015-08-04 Anatoly Sokolov <aesok@post.ru>
19077 * config/moxie/moxie.h (PRINT_OPERAND,
19078 PRINT_OPERAND_ADDRESS): Remove macros.
19079 * config/moxie/moxie-protos.h (moxie_print_operand,
19080 moxie_print_operand_address): Remove declaration.
19081 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19082 TARGET_PRINT_OPERAND_ADDRESS): Define.
19083 (moxie_print_operand, moxie_print_operand_address): Make static.
19085 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
19088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19089 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19091 2015-08-04 Richard Biener <rguenther@suse.de>
19093 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19095 (dt_operand::gen_gimple_expr): Adjust.
19097 2015-08-04 Richard Biener <rguenther@suse.de>
19099 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
19100 bool compares on RHS.
19101 * match.pd: Add X ==/!= !X is false/true pattern.
19103 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
19105 * config/aarch64/aarch64.c: Change inner loop statement cost
19106 to be consistent with other targets.
19108 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
19110 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
19113 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
19115 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
19116 (machine_function): Remove pseudos field.
19118 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19120 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19121 Exit early and use target_option_current_node if processing current
19124 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19126 * doc/extend.texi (AArch64 Function Attributes): New node.
19127 (AArch64 Pragmas): Likewise.
19129 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19131 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19132 Initialize simd builtins if TARGET_SIMD.
19133 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19134 Make sure that the builtins are initialized only once no matter how
19135 many times the function is called.
19136 (aarch64_init_builtins): Unconditionally initialize crc builtins.
19137 (aarch64_relayout_simd_param): New function.
19138 (aarch64_simd_expand_args): Use above during argument expansion.
19139 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
19140 simd builtins if TARGET_SIMD.
19141 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
19143 (aarch64_relayout_simd_types): Likewise.
19145 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19147 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
19148 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
19149 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
19150 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19152 (aarch64_reset_previous_fndecl): New function.
19153 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
19155 * config/aarch64/aarch64-c.c: New file.
19156 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
19157 Push and pop options at beginning and end. Remove ifdef
19158 __ARM_FEATURE_CRC32.
19159 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
19160 Add pragma +nothing+simd and +nothing+crypto where appropriate.
19161 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
19162 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
19164 (aarch64_register_pragmas): Likewise.
19165 (aarch64_reset_previous_fndecl): Likewise.
19166 (aarch64_process_target_attr): Likewise.
19167 (aarch64_override_options_internal): Likewise.
19169 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19171 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
19173 (aarch64_can_inline_p): Likewise.
19174 (TARGET_CAN_INLINE_P): Define.
19176 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19178 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19179 Remove static. Handle OPT_mgeneral_regs_only,
19180 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
19181 OPT_momit_leaf_frame_pointer.
19182 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
19183 (aarch64_attr_opt_type): New enum.
19184 (aarch64_attribute_info): New struct.
19185 (aarch64_handle_attr_arch): New function.
19186 (aarch64_handle_attr_cpu): Likewise.
19187 (aarch64_handle_attr_tune): Likewise.
19188 (aarch64_handle_attr_isa_flags): Likewise.
19189 (aarch64_attributes): New table.
19190 (aarch64_process_one_target_attr): New function.
19191 (num_occurences_in_str): Likewise.
19192 (aarch64_process_target_attr): Likewise.
19193 (aarch64_option_valid_attribute_p): Likewise.
19194 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19195 * config/aarch64/aarch64-protos.h: Include input.h
19196 (aarch64_handle_option): Declare prototype.
19198 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19200 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
19201 * config/aarch64/aarch64.c: Include target-globals.h
19202 (aarch64_previous_fndecl): New variable.
19203 (aarch64_set_current_function): New function.
19204 (TARGET_SET_CURRENT_FUNCTION): Define.
19206 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19208 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
19209 (explicit_arch): Likewise.
19210 (x_aarch64_isa_flags): Likewise.
19211 (mgeneral-regs-only): Mark as Save.
19212 (mfix-cortex-a53-835769): Likewise.
19213 (mcmodel=): Likewise.
19214 (mstrict-align): Likewise.
19215 (momit-leaf-frame-pointer): Likewise.
19216 (mtls-dialect): Likewise.
19217 (master=): Likewise.
19218 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
19219 (aarch64_isa_flags): Remove extern declaration.
19220 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
19221 to indicate success or failure.
19222 (aarch64_validate_march): Likewise.
19223 (aarch64_validate_mtune): Likewise.
19224 (aarch64_isa_flags): Delete.
19225 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
19226 instead of aarch64_isa_flags.
19227 (aarch64_get_tune_cpu): New function.
19228 (aarch64_get_arch): Likewise.
19229 (aarch64_override_options): Use above and set up explicit_tune_core
19231 (aarch64_print_extension): Move earlier in file. Add isa_flags
19232 argument and use that instead of the global aarch64_isa_flags.
19233 (aarch64_option_save): New function.
19234 (aarch64_option_restore): Likewise.
19235 (aarch64_option_print): Likewise.
19236 (aarch64_declare_function_name): Likewise.
19237 (aarch64_start_file): Delete.
19238 (TARGET_ASM_FILE_START): Do not define.
19239 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
19240 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
19243 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19245 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
19246 flag_omit_leaf_frame_pointer to 2.
19248 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19250 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
19252 (TARGET_FIX_ERR_A53_835769): New macro.
19253 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19254 handling of opts->x_aarch64_fix_a53_err835769.
19255 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
19256 than aarch64_fix_a53_err835769.
19257 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
19258 * config/aarch64/aarch64-linux.h: Likewise.
19260 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
19262 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
19263 ix86_expand_int_movcc as boolean.
19265 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19267 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
19268 (aarch64_cpu_string): Likewise.
19269 (aarch64_tune_string): Likewise.
19270 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
19271 (aarch64_parse_extension): Return aarch64_parse_opt_result.
19272 Add extra argument to put result into.
19273 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
19274 (aarch64_parse_cpu): Add arguments to put results into. Return
19275 aarch64_parse_opt_result.
19276 (aarch64_parse_tune): Likewise.
19277 (aarch64_override_options_after_change_1): New function.
19278 (aarch64_override_options_internal): New function.
19279 (aarch64_validate_mcpu): Likewise.
19280 (aarch64_validate_march): Likewise.
19281 (aarch64_validate_mtune): Likewise.
19282 (aarch64_override_options): Update to reflect above changes.
19283 Move some logic into aarch64_override_options_internal.
19284 Initialize target_option_default_node and target_option_current_node.
19285 (aarch64_override_options_after_change): Move logic into
19286 aarch64_override_options_after_change_1 and call it with global_options.
19287 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
19288 flag values from that.
19290 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19292 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19293 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
19294 * config/aarch64/aarch64.c (struct processor): Add arch field.
19295 (all_architectures): Handle above, move above all_cores.
19296 (all_cores): Handle above.
19297 (aarch64_parse_arch): Handle above changes.
19298 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
19299 above. Update comments.
19300 (armv8.1-a): Likewise.
19301 * config/aarch64/aarch64-cores.def: Update according to above.
19302 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
19303 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
19304 aarch64_arch_driver_info.
19306 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19308 * config/aarch64/aarch64.c (struct processor): Add ident field.
19309 Rename core sched_core.
19310 (all_cores): Handle above changes.
19311 (all_architectures): Likewise.
19312 (aarch64_parse_arch): Likewise.
19313 (aarch64_override_options): Likewise.
19315 2015-08-04 Richard Biener <rguenther@suse.de>
19317 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19318 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19319 comparisons embedded in [VEC_]COND_EXPRs.
19321 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
19323 * tree-if-conv.c: Fix various typos in comments.
19324 * tree-vect-stmts.c: Likewise.
19326 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19328 PR tree-optimization/67043
19329 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19330 preheader after hoisting invariant in it.
19331 (find_defs): Force recomputation of all luids.
19333 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
19335 * config/rs6000/htm.md (tabort.): Restrict the source operand to
19336 using a base register.
19338 2015-08-03 David Malcolm <dmalcolm@redhat.com>
19340 * main.c (main): Pass in NULL for toplev's external_timer.
19341 * timevar.c: Include coretypes.h.
19342 (class timer::named_items): New.
19343 (timer::named_items::named_items): New.
19344 (timer::named_items::~named_items): New.
19345 (timer::named_items::push): New.
19346 (timer::named_items::pop): New.
19347 (timer::named_items::print): New.
19348 (timer::timer): Initialize field "m_jit_client_items".
19349 (timer::~timer): New.
19350 (timer::push): Move bulk of implementation to...
19351 (timer::push_internal): ...here. New function.
19352 (timer::pop): Move bulk of implementation to...
19353 (timer::pop_internal): ...here. New function.
19354 (timer::push_client_item): New.
19355 (timer::pop_client_item): New.
19356 (timer::print_row): New function, taken from timer::print.
19357 (timer::print): Print "GCC items" header if we also have client
19358 items. Move row-printing to timer::print_row. Print any client
19360 (timer::get_topmost_item_name): New method.
19361 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19362 (TV_JIT_CLIENT_CODE): New.
19363 * timevar.h (timer::push_client_item): New declaration.
19364 (timer::pop_client_item): New declaration.
19365 (timer::get_topmost_item_name): New method.
19366 (timer::push_internal): New declaration.
19367 (timer::pop_internal): New declaration.
19368 (timer::print_row): New declaration.
19369 (timer::named_items): New declaration.
19370 (timer::m_jit_client_items): New field.
19371 (timer): Add friend class named_items.
19372 (auto_timevar::auto_timevar): Add timer param.
19373 (auto_timevar::~auto_timevar): Use field "m_timer".
19374 (auto_timevar::m_timer): New field.
19375 * toplev.c (initialize_rtl): Add g_timer as param when
19376 constructing auto_timevar instance.
19377 (toplev::toplev): Add "external_timer" param, and use it to
19378 initialize the "g_timer" global if non-NULL.
19379 (toplev::~toplev): If this created "g_timer", delete it.
19380 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19381 with "external_timer" timer *.
19383 2015-08-03 Alexander Basov <coohpt@gmail.com>
19385 PR middle-end/64744
19386 PR middle-end/48470
19387 PR middle-end/43404
19388 * cfgexpand.c (expand_one_var): Add check if stack is going to
19389 be used in naked function.
19390 * expr.c (expand_expr_addr_expr_1): Remove excess checking
19391 whether expression should not reside in MEM.
19392 * function.c (use_register_for_decl): Do not use registers for
19393 non-register things (volatile, float, BLKMode) in naked functions.
19395 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
19398 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19399 Adjust splits to match new pattern.
19401 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19403 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19406 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19407 point in VSX registers.
19409 * config/rs6000/constraints.md (wb constraint): Document unused
19411 (we constraint): Likewise.
19412 (wo constraint): Likewise.
19413 (wp constraint): New constraint for IEEE 128-bit floating point in
19415 (wq constraint): Likewise.
19417 * config/rs6000/predicates.md (easy_fp_constant): Add support for
19418 IEEE 128-bit floating point in VSX registers.
19419 (easy_scalar_constant): Likewise.
19421 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19422 constraints (wp, wq) for IEEE 128-bit floating point in VSX
19424 (rs6000_init_hard_regno_mode_ok): Likewise.
19426 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19427 floating point in VSX registers.
19430 (VSX_M2): Likewise.
19436 (vsx_le_permute_<mode>): Add support to properly swap bytes for
19437 IEEE 128-bit floating point in VSX registers on little endian.
19438 (vsx_le_undo_permute_<mode>): Likewise.
19439 (vsx_le_perm_load_<mode>): Likewise.
19440 (vsx_le_perm_store_<mode>): Likewise.
19441 (splitters for IEEE 128-bit fp moves): Likewise.
19443 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19446 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19447 floating point in VSX registers.
19450 * doc/md.text (Machine Constraints): Document wp and wq
19451 constraints on PowerPC.
19453 2015-08-03 Jeff Law <law@redhat.com>
19455 PR middle-end/66314
19456 PR gcov-profile/66899
19457 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19458 iterate over the jump threading paths when an element in the
19459 jump threading paths array is eliminated.
19461 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
19463 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19465 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
19467 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19468 is_use_properly_guarded the variable def_preds. Free its
19469 contents before returning.
19470 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19471 (is_use_properly_guarded): Replace local variable def_preds with
19472 a parameter. Adjust accordingly. Only update *def_preds if it's
19475 2015-08-03 Richard Biener <rguenther@suse.de>
19477 * genmatch.c (simplify::for_subst_vec): New member.
19478 (binary_ok): New helper for for lowering.
19479 (lower_for): Delay substituting operators into result expressions
19480 if we can merge the results eventually again.
19481 (capture_info::walk_result): Adjust for user_id appearing as
19482 result expression operator.
19483 (expr::gen_transform): Likewise.
19484 (dt_simplify::gen_1): Likewise.
19485 (dt_simplify::gen): Pass not substituted operators to tail
19486 functions or initialize local variable with it.
19487 (decision_tree::gen): Adjust function signature.
19488 * match.pd: Fix tests against global code and add default
19489 cases to switch stmts.
19491 2015-08-03 Richard Biener <rguenther@suse.de>
19493 * genmatch.c (dt_simplify::gen): Create captures array
19494 with an initializer.
19496 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19498 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19499 the host compiler is affected by placement new aliasing bug.
19500 * configure: Regenerate.
19501 * Makefile.in (ALIASING_FLAGS): New variable.
19502 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19504 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19507 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19508 (negmulsf3_vfp): Likewise.
19509 (muldf3negdf_vfp): Disable for -frounding-math.
19510 (mulsf3negsf_vfp): Likewise.
19511 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19512 fix MULT cost with -frounding-math.
19514 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19516 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19517 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19518 explicit. Prefer to add the flag whenever possible.
19519 (noce_process_if_block): Try noce_try_store_flag_constants before
19522 2015-08-03 Richard Biener <rguenther@suse.de>
19524 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19525 New hash-map to record equivalent transforms.
19526 (dt_node::analyze): Populate the equivalent transforms hash-map.
19527 (dt_simplify::info): Add reference to hash-map entry.
19528 (dt_simplify::gen): If we have split out a function for the
19529 transform, generate a call to it.
19530 (sinfo_hashmap_traits::hash): New function.
19531 (compare_op): New helper function for ...
19532 (sinfo_hashmap_traits::equal_keys): ... this new function.
19533 (decision_tree::gen): Split out common equivalent transforms
19536 2015-08-03 Richard Biener <rguenther@suse.de>
19538 * gimple-fold.c (fold_gimple_assign): Remove folding of
19539 the comparison in COND_EXPRs.
19541 2015-08-03 Richard Biener <rguenther@suse.de>
19543 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19544 on the rhs of assignments first simplify the embedded
19547 2015-08-03 Richard Biener <rguenther@suse.de>
19549 PR tree-optimization/66917
19550 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19552 (DR_VECT_AUX): New macro.
19553 (set_dr_misalignment): Adjust.
19554 (dr_misalignment): Likewise.
19555 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19556 Compute whether the base is at least element aligned.
19557 * tree-vect-stmts.c (ensure_base_align): Adjust.
19558 (vectorizable_store): If the base is not element aligned
19559 preserve alignment of the original access if misalignment is unknown.
19560 (vectorizable_load): Likewise.
19562 2015-08-02 Martin Sebor <msebor@redhat.com>
19564 * doc/invoke.texi (Wframe-address): Document it.
19565 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19566 Clarify possible effects of calling the functions with non-zero
19567 arguments and mention -Wframe-address.
19568 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19570 2015-08-01 Michael Collison <michael.collison@linaro.org
19571 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19573 * config/arm/arm.md (*arm_smin_cmp): New pattern.
19574 (*arm_umin_cmp): Likewise.
19576 2015-08-01 Caroline Tice <cmtice@google.com>
19579 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19581 (vtbl_find_mangled_name): New function.
19582 (vtbl_register_mangled_name): New function.
19583 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
19584 mangled name in mangled name vectors.
19585 (find_or_create_vtbl_map_node): Ditto.
19586 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
19587 update recursion_depth on function entry; pass it to every recursive
19588 call; automatically exit if depth > 25 (give up looking at that point).
19589 (verify_bb_vtables): Initialize recursion_depth and pass it to
19590 var_is_used_for_virtual_call_p.
19591 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19592 global variable decls.
19593 (vtbl_register_mangled_name): New extern function decl.
19595 2015-08-01 Tom de Vries <tom@codesourcery.com>
19597 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19599 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19601 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19602 operation_no_trapping_overflow. Allow non-overflow operations.
19603 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19606 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
19609 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19611 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19613 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
19614 Enable for TARGET_32BIT.
19615 (*if_move_neg): Likewise.
19617 2015-07-31 Nick Clifton <nickc@redhat.com>
19619 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
19620 Returns true for __model__.
19621 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19623 2015-07-31 Alan Modra <amodra@gmail.com>
19626 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
19627 (rs6000_emit_prologue): Set it.
19628 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
19630 2015-07-31 Richard Biener <rguenther@suse.de>
19632 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
19633 -> X == (C1 ^ C2) which is already implemented in match.pd.
19634 Remove redundant dispatching to fold_relational_const.
19635 Move unordered self and NaN compares ...
19636 * match.pd: ... as patterns here. Remove some stray captures
19639 2015-07-31 Petr Murzin <petr.murzin@intel.com>
19641 * config/i386/i386.c
19642 (bdesc_special_args): Convert mask type from signed to unsigned for
19644 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
19645 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
19646 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
19647 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
19648 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
19649 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
19650 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
19651 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
19652 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
19653 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
19654 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
19655 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
19656 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
19657 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
19658 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
19659 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
19660 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
19661 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
19662 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
19663 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
19664 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
19665 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
19666 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
19667 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
19668 * config/i386/i386-builtin-types.def
19669 (V16QI_FTYPE_V16SI): Remove.
19670 (V8DF_FTYPE_V8SI): Ditto.
19671 (V8HI_FTYPE_V8DI): Ditto.
19672 (V8SI_FTYPE_V8DI): Ditto.
19673 (V8SF_FTYPE_V8DF): Ditto.
19674 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
19675 (V16HI_FTYPE_V16SI): Ditto.
19676 (V16SF_FTYPE_V16HI): Ditto.
19677 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
19678 (V16SF_FTYPE_V16SI): Ditto.
19679 (V4DI_FTYPE_V4DI): Ditto.
19680 (V16SI_FTYPE_V16SF): Ditto.
19681 (V16SF_FTYPE_FLOAT): Ditto.
19682 (V8DF_FTYPE_DOUBLE): Ditto.
19683 (V8DI_FTYPE_INT64): Ditto.
19684 (V8DI_FTYPE_V4DI): Ditto.
19685 (V16QI_FTYPE_V8DI): Ditto.
19686 (UINT_FTYPE_V4SF): Ditto.
19687 (UINT64_FTYPE_V4SF): Ditto.
19688 (UINT_FTYPE_V2DF): Ditto.
19689 (UINT64_FTYPE_V2DF): Ditto.
19690 (V16SI_FTYPE_V16SI): Ditto.
19691 (V8DI_FTYPE_V8DI): Ditto.
19692 (V16SI_FTYPE_PV4SI): Ditto.
19693 (V16SF_FTYPE_PV4SF): Ditto.
19694 (V8DI_FTYPE_PV2DI): Ditto.
19695 (V8DF_FTYPE_PV2DF): Ditto.
19696 (V4DI_FTYPE_PV2DI): Ditto.
19697 (V4DF_FTYPE_PV2DF): Ditto.
19698 (V16SI_FTYPE_PV2SI): Ditto.
19699 (V16SF_FTYPE_PV2SF): Ditto.
19700 (V8DI_FTYPE_PV4DI): Ditto.
19701 (V8DF_FTYPE_PV4DF): Ditto.
19702 (V8SF_FTYPE_FLOAT): Ditto.
19703 (V4SF_FTYPE_FLOAT): Ditto.
19704 (V4DF_FTYPE_DOUBLE): Ditto.
19705 (V8SF_FTYPE_PV4SF): Ditto.
19706 (V8SI_FTYPE_PV4SI): Ditto.
19707 (V4SI_FTYPE_PV2SI): Ditto.
19708 (V8SF_FTYPE_PV2SF): Ditto.
19709 (V8SI_FTYPE_PV2SI): Ditto.
19710 (V16SF_FTYPE_PV8SF): Ditto.
19711 (V16SI_FTYPE_PV8SI): Ditto.
19712 (V8DI_FTYPE_V8SF): Ditto.
19713 (V4DI_FTYPE_V4SF): Ditto.
19714 (V2DI_FTYPE_V4SF): Ditto.
19715 (V64QI_FTYPE_QI): Ditto.
19716 (V32HI_FTYPE_HI): Ditto.
19717 (V8UHI_FTYPE_V8UHI): Ditto.
19718 (V16UHI_FTYPE_V16UHI): Ditto.
19719 (V32UHI_FTYPE_V32UHI): Ditto.
19720 (V2UDI_FTYPE_V2UDI): Ditto.
19721 (V4UDI_FTYPE_V4UDI): Ditto.
19722 (V8UDI_FTYPE_V8UDI): Ditto.
19723 (V4USI_FTYPE_V4USI): Ditto.
19724 (V8USI_FTYPE_V8USI): Ditto.
19725 (V16USI_FTYPE_V16USI): Ditto.
19726 (V2DF_FTYPE_V2DF_UINT64): Ditto.
19727 (V2DI_FTYPE_V2DF_V2DF): Ditto.
19728 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
19729 (V8DF_FTYPE_V8DF_V8DI): Ditto.
19730 (V4SF_FTYPE_V4SF_UINT64): Ditto.
19731 (V4SI_FTYPE_V4SF_V4SF): Ditto.
19732 (V16SF_FTYPE_V16SF_V16SI): Ditto.
19733 (V64QI_FTYPE_V32HI_V32HI): Ditto.
19734 (V32HI_FTYPE_V16SI_V16SI): Ditto.
19735 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
19736 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
19737 (V32HI_FTYPE_V64QI_V64QI): Ditto.
19738 (V32HI_FTYPE_V32HI_V32HI): Ditto.
19739 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
19740 (V16SI_FTYPE_V16SI_V4SI): Ditto.
19741 (V16SI_FTYPE_V16SI_V16SI): Ditto.
19742 (V16SI_FTYPE_V32HI_V32HI): Ditto.
19743 (V16SI_FTYPE_V16SI_SI): Ditto.
19744 (V8DI_FTYPE_V8DI_V8DI): Ditto.
19745 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
19746 (V8DI_FTYPE_V16SI_V16SI): Ditto.
19747 (V8DI_FTYPE_V8DI_V2DI): Ditto.
19748 (QI_FTYPE_QI): Ditto.
19749 (SI_FTYPE_SI): Ditto.
19750 (DI_FTYPE_DI): Ditto.
19751 (QI_FTYPE_QI_QI): Ditto.
19752 (QI_FTYPE_QI_INT): Ditto.
19753 (HI_FTYPE_HI_INT): Ditto.
19754 (SI_FTYPE_SI_INT): Ditto.
19755 (DI_FTYPE_DI_INT): Ditto.
19756 (HI_FTYPE_V16QI_V16QI): Ditto.
19757 (SI_FTYPE_V32QI_V32QI): Ditto.
19758 (DI_FTYPE_V64QI_V64QI): Ditto.
19759 (QI_FTYPE_V8HI_V8HI): Ditto.
19760 (HI_FTYPE_V16HI_V16HI): Ditto.
19761 (SI_FTYPE_V32HI_V32HI): Ditto.
19762 (QI_FTYPE_V4SI_V4SI): Ditto.
19763 (QI_FTYPE_V8SI_V8SI): Ditto.
19764 (QI_FTYPE_V2DI_V2DI): Ditto.
19765 (QI_FTYPE_V4DI_V4DI): Ditto.
19766 (QI_FTYPE_V8DI_V8DI): Ditto.
19767 (HI_FTYPE_V16SI_V16SI): Ditto.
19768 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
19769 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
19770 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
19771 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
19772 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
19773 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
19774 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
19775 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
19776 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
19777 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
19778 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
19779 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
19780 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
19781 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
19782 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
19783 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
19784 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
19785 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
19786 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
19787 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
19788 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
19789 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
19790 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
19791 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
19792 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
19793 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
19794 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
19795 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
19796 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
19797 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
19798 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
19799 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
19800 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
19801 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
19802 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
19803 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
19804 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
19805 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
19806 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
19807 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
19808 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
19809 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
19810 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
19811 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
19812 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
19813 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
19814 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
19815 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
19816 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
19817 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
19818 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
19819 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
19820 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
19821 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
19822 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
19823 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
19824 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
19825 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
19826 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
19827 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
19828 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
19829 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
19830 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
19831 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
19832 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
19833 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
19834 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
19835 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
19836 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
19837 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
19838 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
19839 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
19840 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
19841 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
19842 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
19843 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
19844 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
19845 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
19846 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
19847 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
19848 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
19849 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
19850 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
19851 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
19852 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
19853 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
19854 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
19855 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
19856 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
19857 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
19858 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
19859 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
19860 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
19861 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
19862 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
19863 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
19864 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
19865 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
19866 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
19867 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
19868 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
19869 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
19870 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
19871 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
19872 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
19873 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
19874 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
19875 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
19876 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
19877 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
19878 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
19879 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
19880 (HI_FTYPE_HI): Ditto.
19881 (HI_FTYPE_V16QI): Ditto.
19882 (SI_FTYPE_V32QI): Ditto.
19883 (DI_FTYPE_V64QI): Ditto.
19884 (QI_FTYPE_V8HI): Ditto.
19885 (HI_FTYPE_V16HI): Ditto.
19886 (SI_FTYPE_V32HI): Ditto.
19887 (QI_FTYPE_V4SI): Ditto.
19888 (QI_FTYPE_V8SI): Ditto.
19889 (HI_FTYPE_V16SI): Ditto.
19890 (QI_FTYPE_V2DI): Ditto.
19891 (QI_FTYPE_V4DI): Ditto.
19892 (QI_FTYPE_V8DI): Ditto.
19893 (V16QI_FTYPE_HI): Ditto.
19894 (V32QI_FTYPE_SI): Ditto.
19895 (V64QI_FTYPE_DI): Ditto.
19896 (V8HI_FTYPE_QI): Ditto.
19897 (V16HI_FTYPE_HI): Ditto.
19898 (V32HI_FTYPE_SI): Ditto.
19899 (V4SI_FTYPE_QI): Ditto.
19900 (V4SI_FTYPE_HI): Ditto.
19901 (V8SI_FTYPE_QI): Ditto.
19902 (V8SI_FTYPE_HI): Ditto.
19903 (V2DI_FTYPE_QI): Ditto.
19904 (V4DI_FTYPE_QI): Ditto.
19905 (HI_FTYPE_HI_HI): Ditto.
19906 (SI_FTYPE_SI_SI): Ditto.
19907 (DI_FTYPE_DI_DI): Ditto.
19908 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
19909 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
19910 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
19911 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19912 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19913 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19914 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19915 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19916 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19917 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19918 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19919 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19920 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19921 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19922 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19923 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19924 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19925 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19926 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19927 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19928 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19929 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19930 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19931 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19932 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19933 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19934 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19935 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19936 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19937 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19938 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19939 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19940 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19941 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19942 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19943 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19944 (V16SI_FTYPE_HI): Ditto.
19945 (V8DI_FTYPE_QI): Ditto.
19946 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19947 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19948 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19949 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19950 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19951 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19952 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19953 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19954 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19955 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19956 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19957 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19958 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19959 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19960 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19961 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19962 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19963 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19964 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19965 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19966 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19967 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19968 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19969 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19970 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19971 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19972 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19973 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19974 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19975 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19976 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19977 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19978 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19979 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19980 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19981 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19982 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19983 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19984 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19985 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19986 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19987 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19988 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19989 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19990 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19991 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19992 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19993 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19994 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19995 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19996 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19997 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19998 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19999 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20000 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20001 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20002 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20003 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20004 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20005 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20006 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20007 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20008 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20009 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20010 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20011 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20012 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20013 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20014 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20015 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20016 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20017 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20018 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20019 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20020 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20021 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20022 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20023 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20024 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20025 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20026 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20027 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20028 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20029 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20030 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20031 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20032 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20033 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20034 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20035 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20036 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20037 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20038 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20039 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20040 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20041 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20042 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20043 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20044 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20045 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20046 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20047 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20048 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20049 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20050 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20051 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20052 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20053 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20054 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20055 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20056 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20057 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20058 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20059 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20060 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20061 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20062 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20063 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20064 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20065 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20066 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20067 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20068 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20069 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20070 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20071 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20072 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20073 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20074 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20075 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20076 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20077 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20078 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20079 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20080 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20081 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20082 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20083 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20084 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20085 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20086 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20087 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20088 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20089 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20090 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20091 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20092 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20093 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20094 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20095 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
20096 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
20097 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
20098 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
20099 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
20100 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
20101 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
20102 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
20103 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
20104 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
20105 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
20106 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
20107 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
20108 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
20109 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
20110 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
20111 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
20112 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
20113 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
20114 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
20115 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
20116 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
20117 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
20118 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
20119 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
20120 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
20121 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
20122 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
20123 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
20124 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
20125 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
20126 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
20127 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
20128 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
20129 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
20130 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
20131 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
20132 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
20133 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
20134 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
20135 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
20136 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
20137 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
20138 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
20139 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
20140 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
20141 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
20142 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
20143 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
20144 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
20145 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
20146 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
20147 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
20148 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
20149 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
20150 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
20151 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
20152 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
20153 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
20154 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
20155 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
20156 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
20157 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
20158 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
20159 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
20160 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
20161 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
20162 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
20163 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
20164 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
20165 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
20166 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
20167 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
20168 (QI_FTYPE_V8DF_INT_QI): Ditto.
20169 (QI_FTYPE_V4DF_INT_QI): Ditto.
20170 (QI_FTYPE_V2DF_INT_QI): Ditto.
20171 (HI_FTYPE_V16SF_INT_HI): Ditto.
20172 (QI_FTYPE_V8SF_INT_QI): Ditto.
20173 (QI_FTYPE_V4SF_INT_QI): Ditto.
20174 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
20176 2015-07-31 Richard Biener <rguenther@suse.de>
20178 * gimple-fold.c (fold_gimple_assign): Remove folding of
20181 2015-07-31 Tom de Vries <tom@codesourcery.com>
20183 PR tree-optimization/66846
20184 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
20185 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
20186 (expand_omp_target) [ENABLE_CHECKING]: Same.
20187 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
20188 cfun if !LOOPS_NEED_FIXUP.
20189 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
20190 that omp_for already has its own loop struct.
20191 * tree-parloops.c (create_phi_for_local_result)
20192 (create_call_for_reduction): Handle simple latch bb.
20193 (create_parallel_loop): Add simple latch bb to preserve
20194 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
20195 (gen_parallel_loop): Remove call to cancel_loop_tree.
20196 (parallelize_loops): Skip loops that are inner loops of parallelized
20198 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
20199 verify_loop_structure.
20201 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20203 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
20204 * config/v850/v850.md (RV_REGNUM): New constants.
20205 * config/v850/v850.c (v850_libcall_value): New functions.
20206 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
20207 (TARGET_LIBCALL_VALUE): Define.
20209 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20211 * rtl.h (lowpart_subreg): Move in file.
20212 * loop-iv.c (lowpart_subreg): Move to...
20213 * simplify-rtx.c (lowpart_subreg): ...here.
20214 (simplify_binary_operation_1): Use lowpart_subreg instead of
20215 simplify_gen_subreg.
20216 * expr.c (expand_expr_real_2): Ditto.
20217 * emit-rtl.c (gen_lowpart_common): Ditto.
20218 * combine.c (gen_lowpart_for_combine): Ditto.
20219 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
20220 expand_debug_source_expr): Ditto.
20222 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
20224 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
20225 (expand_builtin_atomic_clear): Remove support for atomic_clear
20228 2015-07-30 Richard Biener <rguenther@suse.de>
20230 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
20231 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
20232 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
20233 redundant operand canonicalization.
20235 2015-07-30 David Sherwood <david.sherwood@arm.com>
20237 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
20238 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
20239 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
20240 * config/arm/arm.c (neon_valid_immediate): Likewise.
20241 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
20242 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
20243 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
20244 (expand_vec_perm_vpshufb2_vpermq): Likewise.
20245 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
20246 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
20247 * config/i386/sse.md
20248 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
20249 (*ssse3_palignr<mode>_perm): Likewise.
20250 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
20251 * config/spu/spu.c (arith_immediate_p): Likewise.
20252 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20253 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
20255 2015-07-30 Richard Biener <rguenther@suse.de>
20257 * genmatch.c (decision_tree::gen_gimple): Merge with ...
20258 (decision_tree::gen_generic): ... this into ...
20259 (decision_tree::gen): ... this.
20260 (main): Adjust callers.
20262 2015-07-30 Richard Biener <rguenther@suse.de>
20264 * genmatch.c (verbose): New global.
20265 (warning_at): Add overload with source_location.
20266 (capture_info::capture_info): Add bool whether generating gimple
20267 or generic. Add gimple member.
20268 (capture_info::cinfo): Add capture member.
20269 (capture_info::walk_match): Record capture. Warn on
20270 non-captured leafs.
20271 (capture_info::walk_c_expr): Add more fragments captures cannot
20272 escape through. Warn on escaped captures.
20273 (dt_simplify::gen_1): Warn on operands we force to have no
20275 (main): Initialize verbose.
20276 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
20278 2015-07-30 Richard Biener <rguenther@suse.de>
20280 PR middle-end/67053
20281 * match.pd: Allow both operands to independently have conversion
20282 when simplifying compares of addresses.
20284 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
20288 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
20289 around those cases that need one.
20291 2015-07-29 Aditya Kumar <hiraditya@msn.com>
20293 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
20295 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
20297 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
20298 New. Copied from config/i386/gnu-user.h.
20299 (ASM_COMMENT_START): Likewise.
20300 (DBX_REGISTER_NUMBER): Likewise.
20302 2015-07-29 Richard Biener <rguenther@suse.de>
20304 * gimple-fold.c (fold_gimple_cond): Remove.
20305 (fold_stmt_1): Do not call it.
20307 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
20309 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
20310 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
20312 * config/aarch64/aarch64-modes.def: Add HFmode.
20314 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20315 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20317 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20318 aarch64_promoted_type): New.
20320 (aarch64_float_const_representable_p): Disable HFmode.
20321 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20322 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20323 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20325 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20326 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20328 * config/aarch64/iterators.md (GPF_F16): New.
20330 2015-07-29 Richard Biener <rguenther@suse.de>
20332 * match.pd: Merge address comparison patterns and make them
20333 handle some more cases.
20335 2015-07-29 Richard Biener <rguenther@suse.de>
20337 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20338 (parser::parse_capture): Add bool argument on whether to reject
20340 (parser::parse_expr): Adjust.
20341 (parser::parse_op): Likewise.
20342 (parser::parse_pattern): Likewise.
20344 2015-07-29 Richard Biener <rguenther@suse.de>
20346 * gimple-fold.c (has_use_on_stmt): New function.
20347 (replace_stmt_with_simplification): Use it to allow
20348 abnormals originally referenced in the stmt.
20349 (fold_stmt_1): Canonicalize operand order.
20351 2015-07-28 David Sherwood <david.sherwood@arm.com>
20353 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20354 GET_MODE_INNER unconditionally.
20355 * config/spu/spu.c (arith_immediate_p): Likewise.
20356 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20357 * expmed.c (synth_mult): Remove check for VOIDmode result from
20359 (expand_mult_const): Likewise.
20360 * fold-const.c (fold_binary_loc): Replace call to element_precision
20361 with call to GET_MODE_PRECISION.
20362 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20364 (emit_mode_inner): Likewise.
20365 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20367 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20368 (GET_MODE_UNIT_PRECISION): Likewise.
20369 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20370 * simplify-rtx.c (simplify_immed_subreg): Likewise.
20371 * stor-layout.c (bitwise_type_for_mode): Update assert.
20372 (element_precision): Remove.
20374 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20376 * target-insns.def (reload_load_address): New targetm instruction
20378 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20380 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20382 * target-insns.def (atomic_test_and_set): New targetm instruction
20384 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20385 HAVE_*/gen_* interface.
20387 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20389 * target-insns.def (can_extend, ptr_extend): New targetm instruction
20391 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20392 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20393 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20394 * rtlanal.c (nonzero_bits1): Likewise.
20395 (num_sign_bit_copies1): Likewise.
20397 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20399 * target-insns.def (eh_return): New targetm instruction pattern.
20400 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20402 * function.c (thread_prologue_and_epilogue_insns): Remove
20403 preprocessor condition.
20405 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20407 * target-insns.def (indirect_jump): New targetm instruction pattern.
20408 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20411 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20413 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20414 instead of nonimmediate_operand. Remove C condiition.
20416 2015-07-28 Richard Biener <rguenther@suse.de>
20418 * match.pd: Add more simplification of address comparisons.
20420 2015-07-28 Richard Biener <rguenther@suse.de>
20422 * match.pd: Re-order two cases in comparison with max/min
20423 value simplification to make it apply for bools.
20425 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20427 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20428 Handle simple SIGN_EXTEND or ZERO_EXTEND.
20429 (aarch64_rtx_costs): Properly strip extend or extract before
20430 passing down to rtx costs again.
20432 2015-07-28 Nick Clifton <nickc@redhat.com>
20434 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20435 Optimizes the case where -mes0 is active and a constant symbolic
20437 * config/rl78/rl78-protos.h: Prototype the new function.
20438 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20440 2015-07-28 Tom de Vries <tom@codesourcery.com>
20442 * tree-parloops.c (reduc_stmt_res): New function.
20443 (initialize_reductions, add_field_for_reduction)
20444 (create_phi_for_local_result, create_loads_for_reductions)
20445 (create_stores_for_reduction, build_new_reduction): Handle case that
20446 reduc_stmt is a phi.
20447 (gather_scalar_reductions): Allow double_reduc reductions.
20449 2015-07-28 Richard Biener <rguenther@suse.de>
20451 * fold-const.c (fold_comparison): Remove equality folding
20452 of decl addresses ...
20453 * match.pd: ... here and merge with existing pattern.
20455 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20457 PR tree-optimization/66828
20458 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20459 from int64_t to uint64_t.
20461 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
20463 * opts-common.c (read_cmdline_option): List DriverOnly enum values
20464 as valid only in the error message of the driver, not in the
20465 messages of the language compilers.
20467 2015-07-27 Tom de Vries <tom@codesourcery.com>
20469 * tree-parloops.c (gather_scalar_reductions): Simplify function
20472 2015-07-27 Marek Polacek <polacek@redhat.com>
20474 * ipa-devirt.c (types_same_for_odr): Fix typo.
20476 2015-07-27 Jason Merrill <jason@redhat.com>
20479 * dwarf2out.c (gen_inlined_subroutine_die): Check
20480 cgraph_function_possibly_inlined_p.
20482 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20484 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20485 Place integer variant first.
20486 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20488 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20491 * config/arm/arm-builtins.c (enum arm_builtins):
20492 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20493 (ARM_BUILTIN_NEON_BASE): Rename macro to....
20494 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20495 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20496 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20498 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20501 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20502 Add qualifier_lane_index.
20503 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20504 (arm_getlane_qualifiers): Use qualifier_lane_index.
20505 (arm_lanemac_qualifiers): Rename to...
20506 (arm_mac_n_qualifiers): ...this.
20507 (LANEMAC_QUALIFIERS): Rename to...
20508 (MAC_N_QUALIFIERS): ...this.
20509 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20510 (arm_setlane_qualifiers): Use qualifier_lane_index.
20511 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20512 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20513 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20514 (arm_expand_neon_builtin): Handle qualifier_lane_index.
20516 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20517 * config/arm/arm.c (bounds_check): Likewise, improve error message.
20518 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20519 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20520 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20521 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20522 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20523 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20524 qualifiers to TERNOP_IMM.
20525 (vdup_lane): Change qualifiers to GETLANE.
20526 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20527 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20528 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20529 vqdmlsl_n): Change qualifiers to MAC_N.
20531 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20532 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20533 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20534 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20535 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20536 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20537 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20538 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20539 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20540 Remove call to neon_lane_bounds.
20542 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20544 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20545 Place integer variant first.
20547 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
20549 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20550 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20551 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20552 for armv6kz targets.
20553 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20554 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20555 (FL_FOR_ARCH6ZK): Remove.
20556 (FL_FOR_ARCH6KZ): New.
20557 (arm_arch6zk): New declaration.
20558 * config/arm/arm-tables.opt: Regenerate.
20559 * config/arm/arm.c (arm_arch6kz): New.
20560 (arm_option_override): Set arm_arch6kz.
20561 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20562 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20563 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20565 2015-07-27 Marek Polacek <polacek@redhat.com>
20569 * doc/invoke.texi: Document -Wtautological-compare.
20571 2015-07-27 Richard Biener <rguenther@suse.de>
20573 * genmatch.c (decision_tree::gen_gimple): Split out large
20574 subtrees into separate functions.
20575 (decision_tree::gen_generic): Likewise.
20577 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
20579 * config/alpha/alpha.c: Use SUBREG_P predicate.
20580 * config/alpha/predicates.md: Ditto.
20582 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20584 * config.host (s390*-*-*): Include driver-native.c only when
20585 building with s390* as host *and* target.
20587 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
20590 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20591 T bit register modified_between_p check.
20593 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20595 * config/i386/i386.c: Use SUBREG_P predicate.
20596 * config/i386/i386.md: Ditto.
20597 * config/i386/sse.md: Ditto.
20598 * config/i386/predicates.md: Ditto.
20600 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20603 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20604 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20606 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20608 * Makefile.in: Remove use of TREEBROWSER.
20609 * config.in: Regenerated.
20610 * configure: Regenerated.
20611 * configure.ac: Remove definition of TREEBROWSER.
20612 * tree-browser.c: Removed.
20613 * tree-browser.def: Removed.
20615 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20617 * graphite-scop-detection.c: Include gimple-pretty-print.h.
20618 (stmt_simple_for_scop_p): Print when a stmt is not handled in
20620 (scopdet_basic_block_info): Print when a loop or bb cannot be
20621 represented in Graphite.
20623 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20626 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
20627 execution guard when min_size is less than size_needed.
20629 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20631 * doc/install.texi: Document supported versions of ISL.
20633 2015-07-25 Jeff Law <law@redhat.com>
20637 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20638 unable to find X NE 0 in the tables, return X as the simplified
20640 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20641 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20642 to VISISTED_BBS. */
20643 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20644 after removing the control flow statement and unnecessary edges.
20646 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
20649 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
20651 PR rtl-optimization/64164
20652 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20653 * tree-ssa-copyrename.c: Removed.
20654 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20655 -ftree-coalesce-vars.
20656 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20657 * common.opt (ftree-copyrename): Ignore.
20658 (ftree-coalesce-inlined-vars): Likewise.
20659 * doc/invoke.texi: Remove the ignored options above.
20660 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20661 * tree-ssa-coalesce.h: ... here.
20662 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20663 headers required by it.
20664 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20665 across variables when flag_tree_coalesce_vars. Check register
20666 use and promoted modes to allow coalescing. Moved to
20667 tree-ssa-coalesce.c.
20668 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20669 with its member functions to tree-ssa-coalesce.c.
20670 (var_map_base_init): Likewise. Renamed to
20671 compute_samebase_partition_bases.
20672 (partition_view_normal): Drop want_bases parameter.
20673 (partition_view_bitmap): Likewise.
20674 * tree-ssa-live.h: Adjust declarations.
20675 * tree-ssa-coalesce.c: Include explow.h.
20676 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20677 default defs at the entry point.
20678 (dump_part_var_map): New.
20679 (compute_optimized_partition_bases): New, called by...
20680 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20681 of compute_samebase_partition_bases. Adjust.
20682 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20683 * cfgexpand.c (leader_merge): New.
20684 (get_rtl_for_parm_ssa_default_def): New.
20685 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20686 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20687 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20688 redundant MEM attr setting.
20689 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20691 (expand_one_stack_var): ... this. New wrapper to check and
20692 skip already expanded SSA partitions.
20693 (record_alignment_for_reg_var): New, factored out of...
20694 (expand_one_var): ... this.
20695 (expand_one_ssa_partition): New.
20696 (adjust_one_expanded_partition_var): New.
20697 (expand_one_register_var): Check and skip already expanded SSA
20699 (expand_used_vars): Don't create DECLs for anonymous SSA
20700 names. Expand all SSA partitions, then adjust all SSA names.
20701 (pass::execute): Replace the loops that set
20702 SA.partition_to_pseudo from partition leaders and cleared
20703 DECL_RTL for multi-location variables, and that which used to
20704 rename vars and set attrs, with one that clears DECL_RTL and
20705 checks that PARMs and RESULTs default_defs match DECL_RTL.
20706 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20707 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20708 * explow.c (promote_ssa_mode): New.
20709 * explow.h (promote_ssa_mode): Declare.
20710 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20711 * function.c: Include cfgexpand.h.
20712 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20713 (use_register_for_parm_decl): Wrapper for the above to
20714 special-case the result_ptr.
20715 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20716 (split_complex_args): Take assign_parm_data_all argument.
20717 Pass it to rtl_for_parm. Set up rtl and context for split
20719 (assign_parms_augmented_arg_list): Adjust.
20720 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20721 multiple locations. Recognize split complex args.
20722 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20723 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20724 (assign_parm_setup_block): Prefer SSA-assigned location.
20725 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20726 if stack_parm is NULL.
20727 (assign_parm_setup_stack): Prefer SSA-assigned location.
20728 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20729 rtl before testing for pointer bounds. Special-case result_ptr.
20730 (expand_function_start): Maybe reset DECL_RTL of result.
20731 Prefer SSA-assigned location for result and static chain.
20732 Factor out DECL_RESULT and SET_DECL_RTL.
20733 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20734 anonymous SSA names. Use promote_ssa_mode.
20735 (get_temp_reg): Likewise.
20736 (remove_ssa_form): Adjust.
20737 * stor-layout.c (layout_decl): Don't set mem attributes of
20739 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20740 and get its reg_usage for reg invalidation.
20741 (compute_bb_dataflow): Pass it insn.
20742 (emit_notes_in_bb): Likewise.
20744 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20746 * config/i386/i386.c (ix86_va_start): Remove
20747 unneeded !TARGET_64BIT check.
20748 (ix86_gimplify_va_arg): Ditto.
20750 2015-07-24 Tom de Vries <tom@codesourcery.com>
20752 * graphite-sese-to-poly.c (build_poly_scop): Always call
20753 rewrite_commutative_reductions_out_of_ssa.
20755 2015-07-24 Tom de Vries <tom@codesourcery.com>
20757 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
20758 flag_associative_math to FLOAT_TYPE_P. Honour
20759 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
20761 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
20764 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
20765 and "%qD" in warning_at instead of "%q+D" in warning.
20767 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
20769 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
20770 (ix86_function_abi): Cleanup.
20772 2015-07-24 Michael Darling <darlingm@gmail.com>
20775 * acinclude.m4: Reflects renaming of configure.in to configure.ac
20776 * configure: Likewise
20777 * configure.ac: Likewise
20778 * doc/install.texi: Likewise
20779 * doc/tm.texi: Likewise
20780 * doc/tm.texi.in: Likewise
20782 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20784 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
20785 manually swapping values.
20786 * cse.c (fold_rtx): Likewise.
20787 * lra-eliminations.c (form_sum): Likewise.
20789 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
20792 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
20793 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
20794 (*jcc_1, *jcc_2, jump, simple_return_internal)
20795 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
20796 Set length_nobnd attribute instead of length attribute.
20797 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
20798 (length_nobnd): Remove attribute.
20799 (length): Remove length_nobnd processing.
20801 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
20803 * gimplify.c (omp_default_clause): New function. Reorganize flow
20804 for clarity. Broken out of ...
20805 (omp_notice_variable): ... here.
20807 2015-07-24 Gary Funck <gary@intrepid.com>
20809 PR middle-end/66984
20810 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
20811 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
20813 2015-07-24 Tom de Vries <tom@codesourcery.com>
20815 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
20816 exit-first loop transform.
20818 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
20821 * tree-cfg.c (struct replace_decls_d): New struct.
20822 (replace_block_vars_by_duplicates_1): New function.
20823 (replace_block_vars_by_duplicates): Use it to replace the decls
20824 in the value exprs by duplicates.
20826 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20828 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
20829 -shared, -symbolic, -rdynamic.
20831 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20834 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
20835 -dynamic-linker within %{!static %{!shared, and -rdynamic within
20838 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20841 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
20842 edge summary is available.
20844 2015-07-24 Richard Biener <rguenther@suse.de>
20846 * genmatch.c (struct dt_node): Add statistic fields.
20847 (dt_node::analyze): New method.
20848 (decision_tree::gen_gimple): Call analyze on the root node
20849 and print statistics to stderr.
20850 (decision_tree::gen_generic): Likewise.
20852 2015-07-24 Richard Biener <rguenther@suse.de>
20854 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
20855 against the highest or lowest possible integer ...
20856 * match.pd: ... as patterns here.
20858 2015-07-24 Richard Biener <rguenther@suse.de>
20860 * genmatch.c (struct capture_info): Add same_as field.
20861 (capture_info::capture_info): Initialize same_as.
20862 (capture_info::walk_match): Compute same_as.
20863 (capture_info::walk_result): Compute stuff for the leader.
20864 (capture_info::walk_c_expr): Likewise.
20865 (dt_simplify::gen_1): Only look at leaders when deciding
20866 to force no side-effects or emit side-effects of omitted operands.
20868 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20870 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
20871 reg note to the GPR -> FPR save instructions.
20873 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20875 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
20877 (s390_expand_insv): Don't generate risbg pattern for constant zero
20879 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
20880 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
20883 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20885 * config/s390/s390.c (s390_reorg): Clean up handling of processors
20888 (s390_issue_rate): Likewise.
20889 (s390_sched_reorder): Likewise.
20890 (s390_sched_variable_issue): Likewise.
20891 (s390_loop_unroll_adjust): Likewise.
20892 (s390_option_override): Likewise.
20894 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20896 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
20897 processor capabilities with -march=native.
20898 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
20899 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
20900 (S390_TARGET_BITS_STRING): Macro to simplify specs.
20902 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20904 * config/s390/s390.c (s390_issue_rate): Handle
20905 PROCESSOR_2094_Z9_EC.
20906 (s390_option_override): Likewise.
20907 (s390_adjust_priority): Likewise.
20909 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20911 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20912 when cross compiling.
20914 2015-07-24 Richard Biener <rguenther@suse.de>
20916 * fold-const.c (maybe_canonicalize_comparison_1): Move
20917 A code CST canonicalization ...
20918 * match.pd: ... to a pattern here.
20920 2015-07-24 Jiong Wang <jiong.wang@arm.com>
20923 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20925 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20926 (HONOR_REG_ALLOC_ORDER): Define.
20928 2015-07-24 Richard Biener <rguenther@suse.de>
20930 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20931 * fold-const.c (fold_comparison): Move parameter does not
20932 alias &local simplification ...
20933 * match.pd: ... as a pattern here.
20935 2015-07-24 Richard Biener <rguenther@suse.de>
20937 * gimple-fold.c (replace_stmt_with_simplification): Special-case
20938 valueizing call operands.
20939 * gimple-match-head.c (maybe_push_res_to_seq): Take
20940 number of call arguments from ops array.
20941 (do_valueize): New function.
20942 (gimple_simplify): Return true if valueization changed
20943 any operand even if the result didn't simplify further.
20945 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20947 PR middle-end/25530
20948 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20950 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20952 PR middle-end/25529
20953 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20955 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20957 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20960 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20962 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20965 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
20967 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20968 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
20970 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20971 ms_va_list_type_node initialization.
20973 2015-07-23 Jeff Law <law@redhat.com>
20976 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20977 unable to find X NE 0 in the tables, return X as the simplified
20979 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20980 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20981 to VISISTED_BBS. */
20982 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20983 after removing the control flow statement and unnecessary edges.
20985 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
20987 * tree-pass.h (get_current_pass_name): Removed.
20989 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
20991 PR rtl-optimization/64164
20992 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20993 * tree-ssa-copyrename.c: Removed.
20994 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20995 -ftree-coalesce-vars.
20996 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20997 * common.opt (ftree-copyrename): Ignore.
20998 (ftree-coalesce-inlined-vars): Likewise.
20999 * doc/invoke.texi: Remove the ignored options above.
21000 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21001 * tree-ssa-coalesce.h: ... here.
21002 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21003 headers required by it.
21004 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21005 across variables when flag_tree_coalesce_vars. Check register
21006 use and promoted modes to allow coalescing. Moved to
21007 tree-ssa-coalesce.c.
21008 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21009 with its member functions to tree-ssa-coalesce.c.
21010 (var_map_base_init): Likewise. Renamed to
21011 compute_samebase_partition_bases.
21012 (partition_view_normal): Drop want_bases parameter.
21013 (partition_view_bitmap): Likewise.
21014 * tree-ssa-live.h: Adjust declarations.
21015 * tree-ssa-coalesce.c: Include explow.h.
21016 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21017 default defs at the entry point.
21018 (dump_part_var_map): New.
21019 (compute_optimized_partition_bases): New, called by...
21020 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21021 of compute_samebase_partition_bases. Adjust.
21022 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21023 * cfgexpand.c (leader_merge): New.
21024 (get_rtl_for_parm_ssa_default_def): New.
21025 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21026 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21027 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21028 redundant MEM attr setting.
21029 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21031 (expand_one_stack_var): ... this. New wrapper to check and
21032 skip already expanded SSA partitions.
21033 (record_alignment_for_reg_var): New, factored out of...
21034 (expand_one_var): ... this.
21035 (expand_one_ssa_partition): New.
21036 (adjust_one_expanded_partition_var): New.
21037 (expand_one_register_var): Check and skip already expanded SSA
21039 (expand_used_vars): Don't create DECLs for anonymous SSA
21040 names. Expand all SSA partitions, then adjust all SSA names.
21041 (pass::execute): Replace the loops that set
21042 SA.partition_to_pseudo from partition leaders and cleared
21043 DECL_RTL for multi-location variables, and that which used to
21044 rename vars and set attrs, with one that clears DECL_RTL and
21045 checks that PARMs and RESULTs default_defs match DECL_RTL.
21046 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21047 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21048 * explow.c (promote_ssa_mode): New.
21049 * explow.h (promote_ssa_mode): Declare.
21050 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21051 * function.c: Include cfgexpand.h.
21052 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21053 (use_register_for_parm_decl): Wrapper for the above to
21054 special-case the result_ptr.
21055 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21056 (split_complex_args): Take assign_parm_data_all argument.
21057 Pass it to rtl_for_parm. Set up rtl and context for split
21059 (assign_parms_augmented_arg_list): Adjust.
21060 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21061 multiple locations. Recognize split complex args.
21062 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21063 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21064 (assign_parm_setup_block): Prefer SSA-assigned location.
21065 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21066 if stack_parm is NULL.
21067 (assign_parm_setup_stack): Prefer SSA-assigned location.
21068 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21069 rtl before testing for pointer bounds. Special-case result_ptr.
21070 (expand_function_start): Maybe reset DECL_RTL of result.
21071 Prefer SSA-assigned location for result and static chain.
21072 Factor out DECL_RESULT and SET_DECL_RTL.
21073 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21074 anonymous SSA names. Use promote_ssa_mode.
21075 (get_temp_reg): Likewise.
21076 (remove_ssa_form): Adjust.
21077 * stor-layout.c (layout_decl): Don't set mem attributes of
21079 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21080 and get its reg_usage for reg invalidation.
21081 (compute_bb_dataflow): Pass it insn.
21082 (emit_notes_in_bb): Likewise.
21084 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21087 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21089 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21090 (rs6000_emit_2insn_and): Handle dot forms.
21091 * config/rs6000/rs6000.md (and<mode>3): Adjust.
21092 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
21093 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21095 2015-07-23 Richard Biener <rguenther@suse.de>
21097 * generic-match-head.c: Include cgraph.h.
21098 * gimple-match-head.c: Likewise.
21099 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
21101 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
21102 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
21105 2015-07-23 Richard Biener <rguenther@suse.de>
21107 * gimple-fold.c (fold_gimple_cond): Do not require folding
21108 results to pass valid_gimple_rhs_p.
21109 * tree-cfg.h (fold_cond_expr_cond): Remove.
21110 * tree-cfg.c (fold_cond_expr_cond): Likewise.
21111 (make_edges): Do not call it.
21112 * tree-inline.c (tree_function_versioning): Likewise.
21114 2015-07-23 Tom de Vries <tom@codesourcery.com>
21116 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
21117 vect_force_simple_reduction.
21118 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
21119 (vect_is_simple_reduction_1): Add and handle
21120 need_wrapping_integral_overflow parameter.
21121 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
21122 need_wrapping_integral_overflow parameter.
21123 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
21124 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
21127 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
21129 PR tree-optimization/66926,66951
21130 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
21131 INNER_LOOP and fix up condition for renaming virtual operands.
21133 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21135 * combine.c (try_combine): Use std::swap instead of manually
21138 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
21140 * config/mips/i6400.md: New file.
21141 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
21142 (mips64r6): Likewise.
21144 * config/mips/mips-tables.opt: Regenerate.
21145 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
21146 (mips_issue_rate): Add support for i6400.
21147 (mips_multipass_dfa_lookahead): Likewise.
21148 * config/mips/mips.h (TUNE_I6400): Define.
21149 * config/mips/mips.md: Include i6400.md.
21150 (processor): Add i6400.
21151 * doc/invoke.texi (-march=@var{arch}): Add i6400.
21153 2015-07-23 Richard Biener <rguenther@suse.de>
21155 PR middle-end/66916
21156 * match.pd: Guard widen and sign-change comparison simplification
21159 2015-07-23 Richard Biener <rguenther@suse.de>
21161 PR tree-optimization/66945
21162 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
21163 ::before_dom_children): Force the propagators idea of
21164 non-executable edges to materialize, not what the folder
21167 2015-07-23 Richard Biener <rguenther@suse.de>
21169 * gimple.h (gimple_cond_make_false): Use 0 != 0.
21170 (gimple_cond_make_true): Use 1 != 0.
21172 2015-07-22 DJ Delorie <dj@redhat.com>
21174 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
21177 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
21178 (ashrhi3): Likewise.
21179 (lshrhi3): Likewise.
21180 (movhi): Take advantage of zero-extend to load small constants.
21181 (movpsi): Likewise.
21182 (and<mode>3): Likewise.
21183 (zero_extendqihi2): Likewise.
21184 (zero_extendqisi2): New.
21185 * config/msp430/constraints.md (N,O): New.
21186 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
21188 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
21191 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
21192 to enum feature_priority and feature_list.
21193 (fold_builtin_cpu): Add F_AES to enum processor_features
21194 and isa_names_table.
21196 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
21199 * config/i386/linux-common.h (MPX_SPEC): Use linker option
21200 for 64bit target only.
21202 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
21204 * config/nvptx/nvptx.c: Expand some comments.
21206 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
21208 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
21209 (cortex_a53_advsimd): ...This.
21211 2015-07-22 Richard Biener <rguenther@suse.de>
21213 * genmatch.c (expr::gen_transform): Clarify error message
21214 and display location.
21216 2015-07-22 Richard Biener <rguenther@suse.de>
21218 * genmatch.c (struct operand): Add location member.
21219 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
21221 (struct simplify): Remove match_location and result_location
21223 (elsehwere): Adjust.
21225 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
21227 * config/mips/m5100.md: New file.
21228 * config/mips/mips-cpus.def (m5100, m5101): Define.
21229 * config/mips/mips-tables.opt: Regenerate.
21230 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
21231 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
21232 -march=m5101 to -mips32r5.
21233 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
21234 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
21236 * config/mips/mips.md: Include m5100.md.
21237 (processor): Add m5100.
21238 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
21240 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
21242 * config/mips/mips-cpus.def (interaptiv): Define.
21243 * config/mips/mips-tables.opt: Regenerate.
21244 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
21246 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
21247 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
21249 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21252 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21253 (HONOR_REG_ALLOC_ORDER): Define.
21255 2015-07-22 Richard Biener <rguenther@suse.de>
21257 PR tree-optimization/66952
21258 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
21259 blocks we end up executing unconditionally reset all SSA
21260 info such as range and alignment.
21261 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
21262 * tree-ssanames.c (reset_flow_sensitive_info): New function.
21264 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21266 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
21269 2015-07-22 Richard Biener <rguenther@suse.de>
21271 * genmatch.c (parser::parse_result): Properly handle
21272 match with result operands and conditions.
21274 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21277 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21278 Add qualifier_struct_load_store_lane_index.
21279 (aarch64_types_loadstruct_lane_qualifiers): Use
21280 qualifier_struct_load_store_lane_index for lane index argument for
21282 (aarch64_types_storestruct_lane_qualifiers): Ditto.
21283 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21284 (aarch64_simd_expand_args): Add new argument describing mode of
21285 builtin. Check lane bounds for arguments with
21286 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21287 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
21288 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21289 (aarch64_simd_expand_builtin): Handle arguments with
21290 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
21291 aarch64_simd_expand_args.
21292 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
21293 vst[234]_lane with BUILTIN_VALLDIF.
21294 * config/aarch64/aarch64-simd.md:
21295 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
21296 endianness reversal on lane index.
21297 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
21298 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
21299 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
21300 (vec_store_lanesci_lane<mode>): Ditto.
21301 (vec_store_lanesxi_lane<mode>): Ditto.
21302 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
21303 reversal of lane index.
21304 (aarch64_ld3_lane<mode>): Ditto.
21305 (aarch64_ld4_lane<mode>): Ditto.
21306 (aarch64_st2_lane<mode>): Ditto.
21307 (aarch64_st3_lane<mode>): Ditto.
21308 (aarch64_st4_lane<mode>): Ditto.
21309 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
21310 to qmode. Add new mode parameter. Update uses.
21311 (__LD3_LANE_FUNC): Ditto.
21312 (__LD4_LANE_FUNC): Ditto.
21313 (__ST2_LANE_FUNC): Ditto.
21314 (__ST3_LANE_FUNC): Ditto.
21315 (__ST4_LANE_FUNC): Ditto.
21317 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
21319 * doc/invoke.texi (Language Independent Options): Rename node to
21320 Diagnostic Message Formatting Options.
21322 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
21325 * lra-remat.c (operand_to_remat): Prevent using insns with input
21326 subregs processed separately by IRA.
21328 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
21330 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21332 (single_imm_use): Check for iterator node.
21333 (num_imm_uses): Likewise.
21334 * tree-ssa-operands.c (has_zero_uses_1): Delete.
21335 (single_imm_use_1): Check for iterator node.
21337 2015-07-21 Mike Frysinger <vapier@gentoo.org>
21338 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21340 * configure.ac: Add check for new options in isl-0.15.
21341 * config.in, configure: Rebuilt.
21342 * graphite-blocking.c: Include <isl/constraint.h>
21343 * graphite-interchange.c, graphite-poly.c: Likewise.
21344 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21345 * graphite.c: Likewise.
21346 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21348 * graphite-dependences.c: Include <isl/constraint.h>.
21349 (max_number_of_out_dimensions): Returns isl_stat.
21350 (extend_schedule_1): Likewise
21351 (extend_schedule): Corresponding changes.
21352 * graphite-optimize-isl.c: Include <isl/constraint.h> and
21354 (getSingleMap): Change return type of isl_stat.
21355 (optimize_isl): Conditionally use
21356 isl_options_set_schedule_serialize_sccs.
21357 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21358 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21360 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
21363 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21364 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21366 2015-07-21 Richard Biener <rguenther@suse.de>
21368 PR tree-optimization/66948
21369 * genmatch.c (capture_info::walk_match): Also recurse to
21370 captures. Properly compute expr state from captures of
21372 * match.pd: Add single-use guards to
21373 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21375 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
21377 * config/nvptx/mkoffload.c (process): Add static destructor call.
21379 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21381 PR middle-end/66915
21382 * match.pd (A - B -> A + (-B)): Don't allow folding
21383 when type if a fixed-point type.
21385 2015-07-20 DJ Delorie <dj@redhat.com>
21387 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21388 (iorqi3_real): Likewise for set1.
21390 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
21392 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21395 2015-07-20 Aditya Kumar <hiraditya@msn.com>
21397 * graphite-isl-ast-to-gimple.c:
21398 Refactor so that each function can access 'region'. This will help
21399 maintain a parameter rename_map within a region.
21401 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21403 * config/rs6000/rs6000.md (*lt0_disi): New.
21405 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21408 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
21409 "available letters" comment.
21410 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21411 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21412 and_2rld_operand): Delete.
21413 (and_operand): Adjust.
21414 (rotate_mask_operator): New.
21415 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21416 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21417 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21418 extract_ME): Delete.
21419 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21420 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21421 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21422 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21423 rs6000_emit_2insn_and): New.
21424 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21425 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21426 includes_rldic_lshift_p, includes_rldicr_lshift_p,
21427 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21428 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21429 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21430 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21431 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21432 rs6000_emit_2insn_and): New.
21433 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21434 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21436 <NOT>: Don't fall through to next case.
21437 <AND>: Handle the various rotate-and-mask cases directly.
21438 <IOR>: Always cost as one insn.
21439 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21440 (and<mode>3): Adjust expander for the new patterns.
21441 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21442 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21443 (*and<mode>3_imm_dot_shifted): New.
21444 (*and<mode>3_mask): Delete, rewrite as ...
21445 (and<mode>3_mask): ... New.
21446 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21447 (andsi3_internal0_nomc): Delete.
21448 (*andsi3_internal6): Delete.
21449 (*and<mode>3_2insn): New.
21450 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21451 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21452 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21453 *insvdi_internal3): Delete.
21454 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21455 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21456 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21457 *ior<mode>_mask): New.
21458 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21459 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21460 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21461 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21463 (ashr<mode>3): Delete expander.
21464 (*ashr<mode>3): Rename to ...
21465 (ashr<mode>3): ... This.
21466 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21467 (*rotldi3_internal4, *rotldi3_internal5 and split,
21468 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21469 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21470 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21471 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21472 (splitter for loading a mask): Adjust.
21473 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21475 2015-07-20 Marek Polacek <polacek@redhat.com>
21477 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21478 output_add_clobbers, output_added_clobbers_hard_reg_p,
21479 gen_rtx_scratch): Remove declarations.
21481 2015-07-20 Marek Polacek <polacek@redhat.com>
21484 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21486 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21488 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21489 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21491 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21493 * combine.c (combine_simplify_rtx): Move simplification step
21494 before various transformations/substitutions.
21496 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
21498 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21499 (struct int_traits): Likewise.
21501 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21503 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21504 function to vmsdbgout_function_decl.
21506 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21509 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21510 from misaligned positions.
21511 (ix86_expand_pinsr): Reject insertions to misaligned positions.
21513 2015-07-18 Sebastian Pop <s.pop@samsung.com>
21515 PR middle-end/46851
21516 PR middle-end/60340
21517 * Makefile.in: Removed omega.o.
21518 * common.opt: Document flag fcheck-data-deps as deprecated.
21519 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21520 its associated params: omega-max-vars, omega-max-geqs,
21521 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21522 omega-max-keys, omega-eliminate-redundant-constraints.
21523 * doc/loop.texi: Remove all the section on Omega.
21524 * graphite-blocking.c: Include missing params.h: it used to be
21525 included through tree-data-ref.h and omega.h.
21526 * graphite-isl-ast-to-gimple.c: Same.
21527 * graphite-optimize-isl.c: Same.
21528 * graphite-sese-to-poly.c: Same.
21529 * graphite.c: Same.
21532 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21533 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21534 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21535 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21536 * passes.def: Remove pass_check_data_deps.
21537 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21538 (dump_conflict_function): Same.
21539 (dump_subscript): Same.
21540 (print_direction_vector): Same.
21541 (print_dir_vectors): Same.
21542 (print_lambda_vector): Same.
21543 (print_dist_vectors): Same.
21544 (dump_data_dependence_relation): Same.
21545 (dump_data_dependence_relations): Same.
21546 (dump_dist_dir_vectors): Same.
21548 (init_omega_eq_with_af): Removed.
21549 (omega_extract_distance_vectors): Removed.
21550 (omega_setup_subscript): Removed.
21551 (init_omega_for_ddr_1): Removed.
21552 (init_omega_for_ddr): Removed.
21553 (ddr_consistent_p): Removed.
21554 (compute_affine_dependence): Do not use omega to check data
21556 (compute_data_dependences_for_bb): Removed.
21557 (analyze_all_data_dependences): Removed.
21558 (tree_check_data_deps): Removed.
21559 * tree-data-ref.h: Do not include omega.h.
21560 (compute_data_dependences_for_bb): Removed.
21561 (tree_check_data_deps): Removed.
21562 * tree-ssa-loop.c (pass_check_data_deps): Removed.
21563 (make_pass_check_data_deps): Removed.
21564 * tree-ssa-phiopt.c: Include params.h.
21565 * tree-vect-data-refs.c: Same.
21566 * tree-vect-slp.c: Same.
21568 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21570 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21571 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
21572 (mem->fpreg splitters): Ditto.
21573 (general_operand->nonimmediate_operand splitter): Use explicit modes.
21574 Disable DFmode for TARGET_64BIT.
21576 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
21579 * config/i386/i386.c (ix86_expand_prologue): Replicate static
21580 chain on the stack.
21582 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
21584 * config/nvptx/mkoffload.c (process): Constify host data.
21585 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21586 Constify host data.
21587 (generate_host_descr_file): Likewise.
21589 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
21590 Sebastian Pop <s.pop@samsung.com>
21592 PR middle-end/61929
21593 * graphite-dependences.c (add_pdr_constraints): Renamed
21594 pdr->extent to pdr->subscript_sizes.
21595 * graphite-interchange.c (build_linearized_memory_access): Add
21596 back all gcc_assert's that the "isl_int to isl_val conversion"
21597 patch has removed. Refactored.
21598 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21599 * graphite-poly.c (new_poly_dr): Same.
21600 (free_poly_dr): Same.
21601 * graphite-poly.h (struct poly_dr): Same.
21602 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21603 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21604 * graphite-scop-detection.h: Fix space.
21605 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21606 back all gcc_assert's removed by a previous patch.
21607 (wrap): Remove the_isl_ctx global variable that the same patch has
21609 (build_loop_iteration_domains): Same.
21610 (add_param_constraints): Same.
21611 (pdr_add_data_dimensions): Same. Refactored.
21612 (build_poly_dr): Renamed extent to subscript_sizes.
21614 2015-07-17 Marek Polacek <polacek@redhat.com>
21616 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
21617 * match.pd: ... here.
21619 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
21621 * config/nvptx/mkoffload.c (process): Constify target data.
21622 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21623 Constify target data.
21624 (generate_target_offloadend_file): Likewise.
21626 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
21628 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
21629 to allow renaming of PHI arguments on edges incoming from outer
21630 loop header, add corresponding check before start PHI iterator.
21631 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
21632 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
21633 with true force_vectorize. Set-up dominator for outer loop too.
21634 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
21635 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
21636 was marked with force_vectorize and has restricted cfg.
21637 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
21639 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21640 do peeling for outer loops.
21642 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
21643 Matthias Klose <doko@ubuntu.com>
21645 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
21646 build-sysroot, sysroot from the `Miscenalleous configure options' to
21647 the `Directories' section and strip trailing `/' from with_sysroot.
21648 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
21649 * configure: Regenerated.
21651 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
21654 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
21655 (TARGET_HARD_DF_REGS): Ditto.
21656 (TARGET_HARD_XF_REGS): Ditto.
21657 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
21658 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
21659 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
21660 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
21661 (*movsf_internal): Add alternatives 16 and 17. Enable
21662 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
21664 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
21666 PR rtl-optimization/66891
21667 * calls.c (expand_call): Wrap precompute_register_parameters with
21668 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
21670 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
21672 * config/nvptx/mkoffload.c (process): Constify mapping variables.
21673 Define target data struct and initialize it.
21675 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
21677 PR rtl-optimization/66626
21678 * ira.h (emit-rtl.h): Include.
21679 (non_spilled_static_chain_regno_p): New.
21680 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
21681 unless it is non spilled static chain pseudo.
21682 (assign_hard_rego): Spill memory profitable allocno unless it is
21683 non spilled static chain pseudo.
21684 (allocno_spill_priority_compare): Put non spilled static chain
21685 pseudo at the end of sorted array.
21686 (improve_allocation): Do nothing if we have static chain and
21688 (allocno__priority_compare_func): Put non spilled static chain
21689 pseudo at the beginning of sorted array.
21690 (move_spill_restore): Ignore non spilled static chain pseudo.
21691 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
21692 to non spilled static chain pseudo.
21693 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
21694 pseudo at the beginning of sorted array.
21695 (spill_for): Spill non spilled static chain pseudo last.
21696 * lra-constraints.c (lra_constraints): Remove static chain pseudo
21697 check for equivalence.
21699 2015-07-16 Martin Liska <mliska@suse.cz>
21702 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
21703 dst_ctx if it does not exist.
21705 2015-07-16 Martin Liska <mliska@suse.cz>
21707 * hash-set.h (remove): New function.
21708 (iterator): New iteration class for hash_set.
21710 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21712 * genattrtab.c (make_canonical): Add a file_location parameter.
21713 Use fatal_at rather than fatal.
21714 (get_attr_value): Likewise. Update call to make_canonical.
21715 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
21716 (make_internal_attr): Update calls accordingly.
21718 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21720 * read-md.h (message_with_line, error_with_line): Delete.
21721 * read-md.c (message_with_line, error_with_line): Delete.
21722 * gensupport.h: Include read-md.h.
21723 (md_rtx_info): New structure.
21724 (read_md_rtx): Use it. Return a bool success value.
21725 * gensupport.c (read_md_rtx): Likewise.
21726 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
21727 (main): Update after interface changes.
21728 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
21729 (main): Update after interface changes.
21730 * genattrtab.c (insn_code_number): Delete.
21731 (optimize_attrs): Add a max_insn_code parameter and use it instead
21732 of insn_code_number.
21733 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
21734 Use *_at rather than *_with_line functions.
21735 (gen_insn): Likewise.
21736 (gen_delay): Likewise.
21737 (gen_insn_reserv): Likewise.
21738 (gen_bypass): Take an md_rtx_info rather than an rtx.
21739 (main): Update after interface changes. Use a local max_insn_code
21740 variable instead of insn_code_number.
21741 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
21742 an rtx. Use fatal_at rather than fatal.
21743 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
21744 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
21745 (gen_absence_set, gen_final_absence_set, gen_automaton)
21746 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
21747 (main): Update after interface changes.
21748 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
21750 (main): Update after interface changes.
21751 * genconditions.c (main): Use new read_md_rtx interface.
21752 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
21753 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
21754 (main): Update after interface changes.
21755 * genemit.c (insn_code_number, insn_index_number): Delete.
21756 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21757 Use fatal_at rather than fatal.
21758 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
21760 (gen_split): Likewise.
21761 (main): Update after interface changes.
21762 * genextract.c (line_no): Delete.
21763 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21764 Update call to walk_rtx.
21765 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
21766 rather than message_with_line.
21767 (walk_rtx): Add an md_rtx_info argument. Update call to
21768 VEC_safe_set_locstr.
21769 (main): Update after interface changes.
21770 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
21771 and lineno. Use error_at rather than separate message_with_line
21772 calls and have_error assignments.
21773 (main): Update after interface changes.
21774 * genmddump.c (main): Use new read_md_rtx interface.
21775 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
21776 (main): Update after interface changes.
21777 * genoutput.c (next_code_number): Delete.
21778 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21779 (gen_peephole, gen_expand, gen_split): Likewise.
21780 (note_constraint): Likewise. Use *_at rather than *_with_line
21782 (main): Update after interface changes.
21783 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
21785 (main): Update after interface changes.
21786 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
21787 than an rtx and lineno.
21788 (process_define_constraint): Likewise.
21789 (process_define_register_constraint): Likewise.
21790 (main): Update after interface changes.
21791 * genrecog.c (next_insn_code, pattern_lineno): Delete.
21792 (validate_pattern): Replace top-level rtx with an md_rtx_info.
21793 Use *_at rather than *_with_line functions.
21794 (match_pattern_2): Likewise.
21795 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
21796 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
21797 Use *_at rather than *_with_line functions.
21798 * gentarget-def.c (add_insn): New function.
21799 (main): Use it. Use new read_md_rtx interface.
21801 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21803 * gensupport.h (compute_test_codes): Take a file_location rather
21804 than a line number.
21805 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
21806 rather than *_with_line functions.
21807 (process_define_predicate): Update call to compute_test_codes.
21808 * genpreds.c (validate_exp): Take a file_location rather than a
21809 line number. Use *_at functions rather than *_with_line functions.
21810 (process_define_predicate): Update call to validate_exp.
21811 (constraint_data): Replace lineno field with a file_location.
21812 (add_constraint): Take a file_location rather than a line number.
21813 Use *_at functions rather than *_with_line functions. Fix error
21814 message for address constraints. Update after changes to
21815 validate_exp, constraint_data and compute_test_codes.
21816 (process_define_constraint): Update accordingly.
21817 (process_define_register_constraint): Likewise.
21819 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21821 * genoutput.c (data): Use a file_location to record the source
21824 (idata, idata_end): Remove initialization.
21825 (constraint_data): Replace lineno with a file_location.
21826 (output_insn_data): Update after changes to data.
21827 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
21828 (scan_operands): Likewise, using *_at rather than *_with_line
21830 (process_template): Likewise.
21831 (validate_insn_alternatives): Likewise.
21832 (validate_insn_operands): Likewise.
21833 (validate_optab_operands): Likewise.
21834 (init_insn_for_nothing): Initialize idata and idata_end.
21835 (note_constraint): Update after changes to constraint_data,
21836 using at rather than with_line functions.
21837 (mdep_constraint_len): Take a file_location rather than a
21838 line number. Use at rather than with_line functions.
21840 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21842 * read-md.h (fatal_at): Declare.
21843 * read-md.c (fatal_at): New function.
21844 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
21845 to record the source position.
21846 (check_attr_test): Take a file_location instead of a line number.
21847 Use fatal_at instead of fatal.
21848 (check_attr_value): Update after above changes, using "at"
21849 rather than "with_line" reporting functions.
21850 (convert_set_attr_alternative): Likewise.
21851 (gen_attr): Likewise.
21852 (check_defs): Likewise. Don't assign to read_md_filename.
21853 (gen_insn): Update initialization after above changes.
21854 (gen_delay): Likewise.
21855 (write_insn_cases): Print the filename for a define_peephole.
21856 (gen_insn_reserv): Take a line number as argument and update
21857 the call to check_attr_test.
21858 (main): Pass a line number to gen_insn_reserv.
21860 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21862 * read-md.h (file_location): New structure.
21863 (directive_handler_t): Take a file_location rather than a line number.
21864 (message_at, error_at): Declare.
21865 (read_skip_construct): Delete.
21866 * read-md.c (message_with_line_1): Replace with...
21867 (message_at_1): ...this new function.
21868 (message_at, error_at): New functions.
21869 (message_with_line, error_with_line): Update to use message_at_1.
21870 (handle_enum): Take a file_location rather than a line number
21871 and use error_at for error reporting.
21872 (handle_include): Likewise.
21873 (read_skip_construct): Likewise. Make static.
21874 (handle_file): Update after above changes. Pass a file_location
21875 rather than a line number to handle_directive.
21876 * gensupport.c (queue_elem): Replace separate filename and lineno
21877 with a file_location.
21878 (queue_pattern): Replace filename and lineno arguments with a
21879 file_location. Update after change to queue_elem.
21880 (process_define_predicate): Replace lineno argument with a
21881 file_location and use error_at for error reporting. Update
21882 after above changes.
21883 (process_rtx): Likewise.
21884 (subst_pattern_match): Likewise.
21885 (get_alternatives_number): Likewise.
21886 (alter_predicate_for_insn): Likewise.
21887 (rtx_handle_directive): Likewise.
21888 (is_predicable): Update after above changes, using error_at rather
21889 than error_with_line.
21890 (has_subst_attribute): Likewise.
21891 (identify_predicable_attribute): Likewise.
21892 (alter_attrs_for_subst_insn): Likewise.
21893 (process_one_cond_exec): Likewise.
21894 (process_substs_on_one_elem): Likewise.
21895 (process_define_subst): Likewise.
21896 (check_define_attr_duplicates): Likewise.
21897 (read_md_rtx): Update after change to queue_elem.
21899 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21901 * genoutput.c (next_index_number): Delete.
21902 (data): Remove index_number.
21903 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
21904 (main): Remove manipulation of next_index_number.
21906 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21908 * genattrtab.c (check_attr_value): Remove handling of null attrs.
21909 (make_canonical): Likewise.
21911 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
21913 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21914 instead of adjust_address_nv.
21915 (restore_stack_nonlocal): Likewise.
21916 (nonlocal_goto): Likewise.
21918 2015-07-16 Tom de Vries <tom@codesourcery.com>
21920 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21921 not have a corresponding loop header phi.
21923 2015-07-16 Tom de Vries <tom@codesourcery.com>
21925 * tree-parloops.c (create_loads_for_reductions): Handle case that
21926 reduction is unused.
21928 2015-07-16 Richard Biener <rguenther@suse.de>
21930 PR tree-optimization/66894
21931 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21932 about deriving NE_EXPR from truncated values.
21934 2015-07-16 Martin Liska <mliska@suse.cz>
21937 (object_allocator): Add new class.
21938 (pool_allocator::initialize): Use the underlying class.
21939 (pool_allocator::allocate): Likewise.
21940 (pool_allocator::remove): Likewise.
21941 (operator new): A new generic allocator.
21942 * asan.c (struct asan_mem_ref): Remove unused members.
21943 (asan_mem_ref_new): Replace new operator with
21944 object_allocator::allocate.
21945 (free_mem_ref_resources): Change deallocation.
21946 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21947 with object_allocator.
21948 * config/sh/sh.c (add_constant): Replace new operator with
21949 object_allocator::allocate.
21950 (sh_reorg): Change call to a release method.
21951 * cselib.c (struct elt_list): Remove unused members.
21952 (new_elt_list): Replace new operator with
21953 object_allocator::allocate.
21954 (new_elt_loc_list): Likewise.
21955 (new_cselib_val): Likewise.
21956 (unchain_one_elt_list): Change delete operator with remove method.
21957 (unchain_one_elt_loc_list): Likewise.
21958 (unchain_one_value): Likewise.
21959 (cselib_finish): Release newly added static allocators.
21960 * cselib.h (struct cselib_val): Remove unused members.
21961 (struct elt_loc_list): Likewise.
21962 * df-problems.c (df_chain_alloc): Replace pool_allocator with
21964 * df-scan.c (struct df_scan_problem_data): Likewise.
21965 (df_scan_alloc): Likewise.
21966 * df.h (struct dataflow): Likewise.
21967 * dse.c (struct read_info_type): Likewise.
21968 (struct insn_info_type): Likewise.
21969 (struct dse_bb_info_type): Likewise.
21970 (struct group_info): Likewise.
21971 (struct deferred_change): Likewise.
21972 (get_group_info): Likewise.
21973 (delete_dead_store_insn): Likewise.
21974 (free_read_records): Likewise.
21975 (replace_read): Likewise.
21976 (check_mem_read_rtx): Likewise.
21977 (scan_insn): Likewise.
21978 (dse_step1): Likewise.
21979 (dse_step7): Likewise.
21980 * et-forest.c (struct et_occ): Remove unused members.
21981 (et_new_occ): Use allocate instead of new operator.
21982 (et_new_tree): Likewise.
21983 (et_free_tree): Call release method explicitly.
21984 (et_free_tree_force): Likewise.
21985 (et_free_pools): Likewise.
21986 (et_split): Use remove instead of delete operator.
21987 * et-forest.h (struct et_node): Remove unused members.
21988 * ipa-cp.c: Change pool_allocator to object_allocator.
21989 * ipa-inline-analysis.c: Likewise.
21990 * ipa-profile.c: Likewise.
21991 * ipa-prop.c: Likewise.
21992 * ipa-prop.h: Likewise.
21993 * ira-build.c (initiate_cost_vectors): Cast return value.
21994 (ira_allocate_cost_vector): Likewise.
21995 * ira-color.c (struct update_cost_record): Remove unused members.
21996 * lra-int.h (struct lra_live_range): Likewise.
21997 (struct lra_copy): Likewise.
21998 (struct lra_insn_reg): Likewise.
21999 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22000 * lra.c (new_insn_reg): Replace new operator with allocate method.
22001 (free_insn_regs): Same for operator delete.
22002 (finish_insn_regs): Release new static allocator.
22003 (finish_insn_recog_data): Likewise.
22004 (lra_free_copies): Replace delete operator with remove method.
22005 (lra_create_copy): Replace operator new with allocate method.
22006 (invalidate_insn_data_regno_info): Same for remove method.
22007 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22008 (free_debug_insn_changes): Replace delete operator with remove method.
22009 (replace_oldest_value_reg): Replace operator new with allocate method.
22010 (pass_cprop_hardreg::execute): Release new static variable.
22011 * sched-deps.c (sched_deps_init): Change pool_allocator to
22013 * sel-sched-ir.c: Likewise.
22014 * sel-sched-ir.h: Likewise.
22015 * stmt.c (expand_case): Likewise.
22016 (expand_sjlj_dispatch_table): Likewise.
22017 * tree-sra.c (struct access): Remove unused members.
22018 (struct assign_link): Likewise.
22019 (sra_deinitialize): Release newly added static pools.
22020 (create_access_1):Replace operator new with allocate method.
22021 (build_accesses_from_assign): Likewise.
22022 (create_artificial_child_access): Likewise.
22023 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22024 pool_allocator to object_allocator.
22025 * tree-ssa-pre.c: Likewise.
22026 * tree-ssa-reassoc.c: Likewise.
22027 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22028 * tree-ssa-strlen.c: Likewise.
22029 * tree-ssa-structalias.c: Likewise.
22030 * var-tracking.c (onepart_pool_allocate): New function.
22031 (unshare_variable): Use the newly added function.
22032 (variable_merge_over_cur): Likewise.
22033 (variable_from_dropped): Likewise.
22034 (variable_was_changed): Likewise.
22035 (set_slot_part): Likewise.
22036 (emit_notes_for_differences_1): Likewise.
22037 (vt_finalize): Release newly added static pools.
22039 2015-07-16 Martin Jambor <mjambor@suse.cz>
22041 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
22042 all uses. Fix two typos in its general comment.
22043 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
22045 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
22047 * config/i386/linux-common.h (LINK_MPX): New.
22048 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22049 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22050 indicating '-z bndplt' support by linker.
22051 * configure: Regenerate.
22052 * config.in: Regenerate.
22054 2015-07-16 Richard Biener <rguenther@suse.de>
22056 * fold-const.c (fold_widened_comparison): Remove.
22057 (fold_sign_changed_comparison): Likewise.
22058 (fold_comparison): Move widened and sign-changed comparison
22060 * match.pd: ... to patterns here.
22061 * generic-match-head.c: Include target.h.
22062 * gimple-match-head.c: Likewise.
22064 2015-07-16 Richard Biener <rguenther@suse.de>
22066 * tree-ssa-dom.c (dom_valueize): New function.
22067 (record_temporary_equivalences): Also record equivalences
22068 for dominating stmts that have uses of equivalences we are
22071 2015-07-16 Bin Cheng <bin.cheng@arm.com>
22073 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22074 add_autoinc_candidates.
22075 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22076 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22077 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22078 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22080 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22081 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22082 Remove parameter struct iv*. Call add_autoinc_candidates here.
22083 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22084 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22086 (find_iv_candidates): Call new functions.
22088 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
22090 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22091 uninitialized-variable warning.
22093 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
22096 * config/sh/sh.md (movdi): Split simple reg move to two movsi
22097 when the destination is R0.
22099 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
22102 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
22103 * config/i386/i386.c (ix86_expand_pextr): New function.
22104 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
22105 for non-lowpart subregs.
22106 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
22107 (insv<mode>): Use SWI248 mode iterator.
22108 (insv<mode>_1): Ditto.
22110 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22111 Sebastian Pop <s.pop@samsung.com>
22113 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
22114 iterator to use_stmt.
22116 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22117 Sebastian Pop <s.pop@samsung.com>
22119 * graphite-scop-detection.c (build_scops_1): Discard scops for
22122 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22123 Sebastian Pop <s.pop@samsung.com>
22125 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
22126 case of a return statement in scop.
22128 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22129 Sebastian Pop <s.pop@samsung.com>
22131 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
22132 INTEGER_TYPE parameters.
22133 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
22134 VECTOR_CST in scan_tree_for_params.
22135 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
22137 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22139 * gimple-pretty-print.h: Don't include pretty-print.h.
22140 * tree-streamer.h: Don't include lto-streamer.h.
22141 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
22142 * gimple-streamer-in.c: Remove redundant includes.
22143 * gimple-streamer-out.c: Likewise.
22144 * ipa-devirt.c: Likewise.
22145 * ipa-icf.c: Likewise.
22146 * ipa-inline-analysis.c: Likewise.
22147 * ipa-polymorphic-call.c: Likewise.
22148 * ipa-profile.c: Likewise.
22149 * ipa-prop.c: Likewise.
22150 * ipa-pure-const.c: Likewise.
22151 * lto-cgraph.c: Likewise.
22152 * lto-streamer-in.c: Likewise.
22153 * lto-streamer-out.c: Likewise.
22154 * lto-streamer.c: Likewise.
22155 * tree-streamer-in.c: Likewise.
22156 * tree-streamer-out.c: Likewise.
22157 * tree-streamer.c: Likewise.
22159 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22161 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
22163 * opts.c: Remove multiline #include comment.
22165 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
22167 * config/nvptx/mkoffload.c (process): Add C++ protection to
22170 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22173 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
22174 null before IEEE 128-bit floating point support patch.
22176 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22178 * simplify-rtx.c (simplify_ternary_operation): Add simplification
22179 for (!c) != {0,...,0} ? a : b for vector modes.
22181 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
22182 Martin Jambor <mjambor@suse.cz>
22184 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
22185 struct func_body_info* instead of struct ipa_node_params*, expecting
22186 fbi->info to be filled in. Replace throughout. Adjust call to
22187 ipa_load_from_parm_agg.
22188 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
22189 instead of struct ipa_node_params*. Adjust calls to other functions
22190 so that they pass either fbi or fbi->info.
22191 (set_switch_stmt_execution_predicate): Likewise.
22192 (will_be_nonconstant_predicate): Likewise.
22193 (compute_bb_predicates): Likewise.
22194 (estimate_function_body_sizes): Move asserts earlier. Fill in
22195 struct func_body_info, replace parms_info with fbi.info. Adjust
22196 calls to functions that now accept struct func_body_info.
22197 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
22198 (struct func_body_info): Likewise.
22199 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
22200 remove static. Adjust callers.
22201 (ipa_load_from_parm_agg): Remove.
22202 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
22203 (func_body_info): Likewise.
22204 (ipa_load_from_parm_agg): Adjust prototype.
22206 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22208 * gensupport.c (rtx_handle_directive): Adjust.
22209 * read-rtl.c (apply_iterators): Take vector to add rtxs to
22210 instead of expr list rtx.
22211 (add_define_attr_for_define_subst): Likewise.
22212 (add_define_subst_attr): Likewise.
22213 (read_subst_mapping): Likewise.
22214 (read_rtx): Likewise.
22215 * rtl.h (read_rtx): Adjust.
22217 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22219 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
22221 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22224 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
22225 (*tls_local_dynamic_base_64_<mode>): Ditto.
22226 (*tls_local_dynamic_base_64_largepic): Ditto.
22227 (tls_global_dynamic_64_<mode>): Update expander pattern.
22228 (tls_local_dynamic_base_64_<mode>): Ditto.
22230 2015-07-15 Richard Biener <rguenther@suse.de>
22232 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
22233 and bool_var == 1 -> bool_var simplifications ...
22234 * match.pd: ... to patterns here. Factor out negate_expr_p
22235 cases from the A - B -> A + (-B) patterns as negate_expr_p
22236 predicate and add a -(A + B) -> (-B) - A pattern.
22238 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22240 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
22242 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
22243 Robert Suchanek <robert.suchanek@imgtec.com>
22245 * config/mips/mips.c (mips_int_mask): New enum.
22246 (mips_shadow_set): Likewise.
22247 (int_mask): New variable.
22248 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
22249 (machine_function): Add int_mask and use_shadow_register_set.
22250 (mips_attribute_table): Add attribute handlers for interrupt and
22251 use_shadow_register_set.
22252 (mips_interrupt_mask): New static function.
22253 (mips_handle_interrupt_attr): Likewise.
22254 (mips_handle_use_shadow_register_set_attr): Likewise.
22255 (mips_use_shadow_register_set): Change return type to enum
22256 mips_shadow_set. Add argument handling for use_shadow_register_set
22258 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
22259 compare with mips_shadow_set enum.
22260 (mips_compute_frame_info): Add interrupt mask and
22261 use_shadow_register_set to per-function information structure.
22262 Add a stack slot for EPC unconditionally.
22263 (mips_expand_prologue): Compare use_shadow_register_set value
22264 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
22265 masked interrupt register but in EIC mode use K0 and save Cause in K0.
22266 EPC saved and restored unconditionally. Use PMODE_INSN macro when
22267 copying the stack pointer from the shadow register set.
22268 * config/mips/mips.h (SR_IM0): New define.
22269 * config/mips/mips.md (mips_rdpgpr): Rename to...
22270 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
22271 * doc/extend.texi (Declaring Attributes of Functions): Document
22272 optional arguments for interrupt and use_shadow_register_set
22275 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22277 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
22278 interrupt attribute.
22279 (mips_expand_prologue): Disable the floating point unit in an ISR.
22280 * config/mips/mips.h (SR_COP1): New define.
22282 2015-07-15 Richard Biener <rguenther@suse.de>
22284 * genmatch.c (parser::peek, parser::peek_ident): Add argument
22285 to tell how many tokens to peek ahead (default 1).
22286 (parser::eat_token, parser::eat_ident): Return token consumed.
22287 (parser::parse_result): Parse new switch statement.
22288 * match.pd: Use case statements where appropriate.
22290 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22292 PR rtl-optimization/58066
22293 * calls.c (expand_call): Precompute register parameters before stack
22294 alignment is performed.
22296 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22298 PR rtl-optimization/66838
22299 * postreload.c (reload_cse_move2add): Also process
22300 CALL_INSN_FUNCTION_USAGE when resetting information of
22301 call-clobbered registers.
22303 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22304 Cesar Philippidis <cesar@codesourcery.com>
22305 Chung-Lin Tang <cltang@codesourcery.com>
22307 * config/nios2/constraints.md (U, v): New constraints.
22308 * config/nios2/predicates.md (rdprs_dcache_operand): New.
22309 (ldstex_memory_operand): New.
22310 * config/nios2/sync.md: New file.
22311 * config/nios2/nios2.md (unspecv): Add new builtin function
22313 (rdprs, flushd, flushda, wrpie, eni): New patterns.
22314 (top-level): Include sync.md.
22315 * config/nios2/nios2.c (N2_FTYPES): Add function types for
22317 (N2_BUILTINS): Add arch field setting, add new builtins.
22318 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22320 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22321 Also handle ldex/stex/ldsex/stsex builtins.
22322 (nios2_expand_rdprs_builtin): New function.
22323 (nios2_expand_cache_builtin): New function.
22324 (nios2_expand_wrpie_builtin): New function.
22325 (nios2_expand_eni_builtin): New function.
22326 (nios2_expand_builtin): Add arch field handling and new builtin
22328 * doc/extend.texi (Altera Nios II Built-in Functions): Document
22330 * doc/md.texi (Machine Constraints): Document U and v constraints.
22332 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22333 Cesar Philippidis <cesar@codesourcery.com>
22334 Chung-Lin Tang <cltang@codesourcery.com>
22336 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22337 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22338 callee_save_reg_size and uses_anonymous_args fields.
22339 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22340 (nios2_create_cfa_notes): New function.
22341 (nios2_adjust_stack): New function for adjusting stack.
22342 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22343 Use nios2_adjust_stack.
22344 (nios2_expand_epilogue): Likewise.
22345 (nios2_expand_return): New function.
22346 (nios2_can_use_return_insn): Update for CDX pop.n usage.
22347 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22348 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22349 * config/nios2/nios2.md (return): Use nios2_expand_return.
22351 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22352 Cesar Philippidis <cesar@codesourcery.com>
22353 Chung-Lin Tang <cltang@codesourcery.com>
22355 * config/nios2/predicates.md (pop_operation): New.
22356 (ldwm_operation, stwm_operation): New.
22357 (nios2_hard_register_operand): New.
22358 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22359 (ldstwm_operation_p): Declare.
22360 (gen_ldstwm_peep): Declare.
22361 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22362 (base_reg_adjustment_p): New.
22363 (pop_operation_p): New.
22364 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22365 (nios2_ldstwm_regset_p): New.
22366 (ldstwm_operation_p): New.
22368 (nios2_ldst_parallel): New.
22369 (struct ldswm_operand): Declare.
22370 (compare_ldstwm_operands): New.
22371 (can_use_cdx_ldstw): New.
22372 (gen_ldstwm_peep): New.
22373 * config/nios2/nios2-ldstwm.sml: New.
22374 * config/nios2/nios2.md: Include ldstwm.md.
22375 * config/nios2/ldstwm.md: Generated.
22377 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22378 Cesar Philippidis <cesar@codesourcery.com>
22379 Chung-Lin Tang <cltang@codesourcery.com>
22381 * config/nios2/nios2.h (LABEL_ALIGN): Define.
22382 (REG_ALLOC_ORDER): Define.
22383 (ADJUST_REG_ALLOC_ORDER): Define.
22384 (HONOR_REG_ALLOC_ORDER): Define.
22385 (CDX_REG_P): Define.
22386 (ANDCLEAR_INT): Define.
22387 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22388 (nios2_label_align): Declare.
22389 (nios2_cdx_narrow_form_p): Declare.
22390 (nios2_adjust_reg_alloc_order): Declare.
22391 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22393 (nios2_large_unspec_reloc_p): New function, split from...
22394 (nios2_legitimate_pic_operand_p): ...here.
22395 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22396 (nios2_print_operand_punct_valid_p): New.
22397 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
22398 (split_mem_address): New.
22399 (split_alu_insn): New.
22401 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22402 (enum nios2_add_insn_kind): New.
22403 (nios2_add_insn_names, nios2_add_insn_narrow): New.
22404 (nios2_add_insn_classify): New.
22405 (nios2_add_insn_asm): New.
22406 (nios2_cdx_narrow_form_p): New.
22407 (label_align, min_labelno, max_labelno): New.
22408 (nios2_reorg): New.
22409 (nios2_label_align): New.
22410 (nios2_adjust_reg_alloc_order): New.
22411 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22412 (TARGET_MACHINE_DEPENDENT_REORG): Define.
22413 * config/nios2/constraints.md (P): New constraint.
22414 * config/nios2/predicates.md (const_and_operand): New.
22415 (and_operand): New.
22416 (stack_memory_operand): New.
22417 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22418 (length): Update to use nios2_cdx_narrow_form_p().
22419 (type): Add new insn type values.
22420 (control, alu, st, ld, shift): Update insn reservations with
22421 new insn type values.
22422 (*high, *lo_sum): Define new insn patterns for constant generation.
22423 (movqi_internal, movhi_internal, movsi_internal): Reduce
22424 alternatives, update asm template to handle CDX variants, update
22426 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22427 template, update type attributes.
22428 (extendhisi2, extendqi<mode>2): Likewise.
22429 (addsi3): Change to use function for asm string.
22430 (subsi3): Add CDX notation to asm template, update type attributes.
22431 (negsi3, one_cmplsi3): Likewise.
22432 (andsi3): New pattern, specialized from logical patterns.
22433 (<code>si3): Remove and case, combine alternatives, update asm
22435 (<shift_op>si3): Add CDX notation, update type attributes.
22436 (rotrsi3): Update type attribute.
22437 (*merge, extzv, insv): New insn patterns.
22438 (return): Change to define_expand.
22439 (simple_return): Add CDX notation, update type attributes.
22440 (indirect_jump): Add CDX notation.
22441 (jump): Update asm cases, update length attribute expression.
22442 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22443 (nios2_cbranch): Update asm cases and length attribute expression
22444 to handle CDX variants.
22445 (nios2_cmp<code>): Update asm template.
22446 (nop): Add CDX notation, update type attributes.
22447 (trap): Add CDX notation.
22448 (ctrapsi4): Update asm cases and length attribute expression to
22449 handle CDX variant.
22450 * doc/md.texi (Machine Constraints): Document P constraint.
22452 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22453 Cesar Philippidis <cesar@codesourcery.com>
22454 Chung-Lin Tang <cltang@codesourcery.com>
22456 * config/nios2/nios2.h (SMALL_INT12): New macro.
22457 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22458 (nios2_valid_addr_expr_p): Use it.
22459 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22460 with implicit "io" instructions on R2.
22461 * config/nios2/constraints.md (w): New constraint.
22462 * config/nios2/predicates.md (ldstio_memory_operand): New.
22463 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22464 operand predicate and constraint.
22465 (ld<bh>io_signed, st<bhw>io>): Likewise.
22466 * doc/md.texi (Machine Constraints): Document w constraint.
22468 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22469 Cesar Philippidis <cesar@codesourcery.com>
22470 Chung-Lin Tang <cltang@codesourcery.com>
22472 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22473 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22474 Nios II architecture level.
22475 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22476 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22477 (OPTION_DEFAULT_SPECS): Define.
22478 (ASM_SPEC): Add -march= spec strings.
22479 * config/nios2/nios2.c (nios2_option_override): Check for
22480 conflicts involving new options.
22481 * config.gcc (nios2*-*-*): Support --with-arch=.
22482 * doc/invoke.texi (Option Summary, Nios II Options): Document
22483 -march=, -mbmx, and -mcdx.
22485 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
22487 PR rtl-optimization/66626
22488 * lra-constraints.c (lra_constraints): Prevent equivalence
22489 substitution for static chain pseudo in functions with nonlocal
22492 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22494 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22495 (nios2_emit_stack_limit_check): Add size parameter. Handle
22496 -fstack-limit-symbol as well as -fstack-limit-register.
22497 (nios2_expand_prologue): Emit only a single stack limit check,
22498 even if multiple stack adjustments are required.
22499 (nios2_option_override): Diagnose unsupported combination of -fpic
22500 and -stack-limit-symbol.
22502 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
22504 * Makefile.in (top_srcdir): New.
22505 * configure.ac: Use AM_ZLIB.
22506 * configure: Regeneated.
22508 2015-07-14 Matthias Klose <doko@ubuntu.com>
22511 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22513 2015-07-14 Richard Biener <rguenther@suse.de>
22515 PR tree-optimization/66863
22516 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22517 what we record for conversion use stmt lhs inequalities.
22519 2015-07-14 Richard Biener <rguenther@suse.de>
22521 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22522 (decision_tree::gen_gimple): Likewise.
22524 2015-07-14 Tom de Vries <tom@codesourcery.com>
22526 * gcc.c (greater_than_spec_func): Declare forward.
22527 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22528 -ftree-parallelize-loops={0,1}.
22529 (static_spec_functions): Add greater_than_spec_func function with name
22531 (greater_than_spec_func): New function.
22533 2015-07-14 Richard Biener <rguenther@suse.de>
22535 * tree-ssa-dom.c (record_temporary_equivalences): Merge
22536 wideing type conversion case from record_equivalences_from_incoming_edge
22537 and use record_equality to record equivalences.
22538 (record_equivalences_from_incoming_edge): Call
22539 record_temporary_equivalences.
22541 2015-07-14 Richard Biener <rguenther@suse.de>
22543 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22544 (struct if_expr): New.
22545 (struct with_expr): Likewise.
22546 (is_a_helper): Add helpers for if_expr and with_expr.
22547 (struct simplify): Add simplify_kind enum and member. Remove
22549 (simplify::simplify): Adjust.
22550 (lower_commutative): Adjust.
22551 (lower_opt_convert): Likewise.
22552 (lower_cond): Likewise.
22553 (replace_id): Handle with_expr and if_expr.
22554 (lower_for): Adjust.
22555 (dt_simplify::gen_1): New recursive worker, split out from ...
22556 (dt_simplify::gen): ... here. Deal with if and with expansion
22558 (capture_info::capture_info): Take context argument
22559 (capture_info::walk_result): Only analyze specific result.
22560 (parser::parse_result): New function.
22561 (parser::parse_simplify): Adjust to parse ifs with then end
22563 (parser::parse_if): Simplify.
22564 (parser::parse_pattern): Pass down simplify kind.
22565 * match.pd: Convert if structure to new syntax.
22567 2015-07-13 Marek Polacek <polacek@redhat.com>
22569 * rtl.c (rtx_equal_p_cb): Fix typo.
22571 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
22573 * omega.h: Don't include config.h, don't include params.h again if
22574 omega.h has already been included.
22575 * graphite-poly.h: Include sese.h.
22576 * graphite.c: Don't include sese.h, remove needless includes and
22577 minimize includes outside #ifdef HAVE_isl block.
22578 * graphite-blocking.c: Don't include sese.h, remove needless includes,
22579 and wrap entire file in #ifdef HAVE_isl
22580 * graphite-dependences.c: Likewise.
22581 * graphite-interchange.c: Likewise.
22582 * graphite-isl-ast-to-gimple.c: Likewise.
22583 * graphite-optimize-isl.c: Likewise.
22584 * graphite-poly.c: Likewise.
22585 * graphite-scop-detection.c: Likewise.
22586 * graphite-sese-to-poly.c: Likewise.
22588 2015-07-13 Tom de Vries <tom@codesourcery.com>
22590 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22592 2015-07-13 Renlin Li <renlin.li@arm.com>
22595 * simplify-rtx.c (simplify_const_relational_operation): Add
22596 side_effects_p checks.
22598 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
22600 * bitmap.h: Fix double word typos.
22601 * builtins.c: Same.
22603 * cfgloopmanip.c: Same.
22606 * cgraphclones.c: Same.
22608 * config/aarch64/aarch64-protos.h: Same.
22609 * config/aarch64/aarch64.c: Same.
22610 * config/aarch64/aarch64.md: Same.
22611 * config/arm/arm.md: Same.
22612 * config/arm/arm1020e.md: Same.
22613 * config/arm/arm1026ejs.md: Same.
22614 * config/arm/arm926ejs.md: Same.
22615 * config/arm/fa526.md: Same.
22616 * config/arm/fa606te.md: Same.
22617 * config/arm/fa626te.md: Same.
22618 * config/arm/fa726te.md: Same.
22619 * config/arm/fmp626.md: Same.
22620 * config/darwin.c: Same.
22621 * config/epiphany/epiphany.c: Same.
22622 * config/frv/frv.c: Same.
22623 * config/ft32/ft32.c: Same.
22624 * config/gnu-user.h: Same.
22625 * config/h8300/constraints.md: Same.
22626 * config/i386/i386.c: Same.
22627 * config/i386/i386.md: Same.
22628 * config/iq2000/iq2000.md: Same.
22629 * config/mips/mips.c: Same.
22630 * config/mmix/mmix.md: Same.
22631 * config/moxie/moxie.c: Same.
22632 * config/nds32/nds32.md: Same.
22633 * config/pa/pa.h: Same.
22634 * config/rs6000/aix.h: Same.
22635 * config/rs6000/rs6000.h: Same.
22636 * config/sh/sh.c: Same.
22637 * config/tilegx/tilegx.md: Same.
22638 * config/tilepro/gen-mul-tables.cc: Same.
22641 * doc/invoke.texi: Same.
22643 * dwarf2out.c: Same.
22646 * genmatch.c: Same.
22647 * gimplify.c: Same.
22648 * hash-table.h: Same.
22649 * internal-fn.c: Same.
22651 * ipa-devirt.c: Same.
22654 * ipa-profile.c: Same.
22655 * ipa-prop.c: Same.
22656 * ipa-prop.h: Same.
22659 * reg-stack.c: Same.
22660 * regcprop.c: Same.
22665 * tree-inline.c: Same.
22666 * tree-sra.c: Same.
22667 * tree-ssa-dom.c: Same.
22668 * tree-ssa-loop-ivopts.c: Same.
22669 * tree-ssa-structalias.c: Same.
22670 * tree-ssa-tail-merge.c: Same.
22671 * tree-ssa-ter.c: Same.
22672 * tree-ssa-threadupdate.c: Same.
22673 * tree-ssa-uninit.c: Same.
22674 * tree-ssanames.c: Same.
22675 * tree-vect-loop-manip.c: Same.
22676 * tree-vrp.c: Same.
22678 * valtrack.c: Same.
22681 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22683 PR middle-end/66726
22684 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
22685 tree_ssa_phiopt_worker): Call it.
22687 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22689 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
22690 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
22693 2015-07-11 Marek Polacek <polacek@redhat.com>
22695 PR middle-end/66353
22696 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
22697 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
22698 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
22699 rather than bb_has_abnormal_call_pred.
22700 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
22701 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
22702 rather than bb_has_abnormal_call_pred.
22704 2015-07-10 Anatoly Sokolov <aesok@post.ru>
22706 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22707 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
22708 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22709 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
22710 v850_legitimate_address_p): New functions.
22711 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22713 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
22716 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
22717 indirect sibcall with register arguments if register available
22718 for argument passing.
22719 (init_cumulative_args): Set cfun->machine->arg_reg_available
22720 to (cum->nregs > 0) or to true if function has a variable
22722 (function_arg_advance_32): Set cfun->machine->arg_reg_available
22723 to false if cum->nregs <= 0.
22724 * config/i386/i386.h (machine_function): Add arg_reg_available.
22726 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22728 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
22729 and gen_higpart instead of gen_rtx_SUBREG.
22730 * config/i386/i386.md
22731 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
22732 (read-modify peephole2): Use gen_lowpart instead of
22733 gen_rtx_SUBREG for operand 5.
22735 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
22737 * config/tilepro/gen-mul-tables.cc (main): Change include list for
22739 * config/tilepro/mul-tables.c: Regenerate.
22740 * config/tilegx/mul-tables.c: Regenerate.
22742 2015-07-10 Richard Biener <rguenther@suse.de>
22744 * fold-const.c (distribute_bit_expr): Remove.
22745 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
22746 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
22747 to A & (B | C) and simplifying A << C1 << C2 to ...
22748 * match.pd: ... patterns here.
22750 2015-07-10 Jiong Wang <jiong.wang@arm.com>
22752 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22753 Mark mem as READONLY and NOTRAP for PIC symbol.
22755 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
22757 * gimple-predict.h: New file.
22758 (gimple_predict_predictor, gimple_predict_set_predictor,
22759 gimple_predict_outcome, gimple_predict_set_outcome,
22760 gimple_build_predict): Relocate here.
22761 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
22762 gimple_predict_outcome, gimple_predict_set_outcome): Move to
22764 * gimple.c (gimple_build_predict): Move to gimple-predict.h
22765 * basic-block.h: Don't include cfghooks.h.
22766 * backend.h: Don't include predict.h.
22767 * cfghooks.h: Include predict.h.
22768 * gimple-pretty-print.c: Include gimple-predict.h.
22769 * gimplify.c: Likwise.
22770 * predict.c: Adjust includes.
22771 * tree-inline.c: Likewise.
22772 * asan.c: Likewise.
22773 * auto-inc-dec.c: Likewise.
22774 * auto-profile.c: Likewise.
22775 * bb-reorder.c: Likewise.
22776 * builtins.c: Likewise.
22777 * caller-save.c: Likewise.
22778 * calls.c: Likewise.
22779 * cfganal.c: Likewise.
22780 * cfgbuild.c: Likewise.
22782 * cfgcleanup.c: Likewise.
22783 * cfgexpand.c: Likewise.
22784 * cfghooks.c: Likewise.
22785 * cfgloopanal.c: Likewise.
22786 * cfgloop.c: Likewise.
22787 * cfgloopmanip.c: Likewise.
22788 * cfgrtl.c: Likewise.
22789 * cgraph.c: Likewise.
22790 * cgraphunit.c: Likewise.
22791 * combine.c: Likewise.
22792 * cprop.c: Likewise.
22795 * dojump.c: Likewise.
22797 * except.c: Likewise.
22798 * expmed.c: Likewise.
22799 * expr.c: Likewise.
22800 * final.c: Likewise.
22801 * fold-const.c: Likewise.
22802 * function.c: Likewise.
22803 * fwprop.c: Likewise.
22804 * gcc-plugin.h: Likewise.
22805 * gcse.c: Likewise.
22806 * genattrtab.c: Likewise.
22807 * genemit.c: Likewise.
22808 * gengtype.c: Likewise.
22809 * genopinit.c: Likewise.
22810 * genoutput.c: Likewise.
22811 * genpreds.c: Likewise.
22812 * genrecog.c: Likewise.
22813 * gimple-fold.c: Likewise.
22814 * gimple-iterator.c: Likewise.
22815 * gimple-ssa-isolate-paths.c: Likewise.
22816 * gimple-ssa-strength-reduction.c: Likewise.
22817 * graph.c: Likewise.
22818 * graphite-blocking.c: Likewise.
22819 * graphite.c: Likewise.
22820 * graphite-dependences.c: Likewise.
22821 * graphite-interchange.c: Likewise.
22822 * graphite-isl-ast-to-gimple.c: Likewise.
22823 * graphite-optimize-isl.c: Likewise.
22824 * graphite-poly.c: Likewise.
22825 * graphite-scop-detection.c: Likewise.
22826 * graphite-sese-to-poly.c: Likewise.
22827 * haifa-sched.c: Likewise.
22828 * ifcvt.c: Likewise.
22829 * internal-fn.c: Likewise.
22830 * ipa-cp.c: Likewise.
22831 * ipa-profile.c: Likewise.
22832 * ipa-split.c: Likewise.
22833 * ipa-utils.c: Likewise.
22834 * ira-build.c: Likewise.
22835 * ira-color.c: Likewise.
22836 * ira-conflicts.c: Likewise.
22837 * ira-costs.c: Likewise.
22838 * ira-emit.c: Likewise.
22839 * ira-lives.c: Likewise.
22840 * jump.c: Likewise.
22841 * loop-doloop.c: Likewise.
22842 * loop-init.c: Likewise.
22843 * loop-invariant.c: Likewise.
22844 * loop-unroll.c: Likewise.
22845 * lower-subreg.c: Likewise.
22846 * lra-assigns.c: Likewise.
22848 * lra-coalesce.c: Likewise.
22849 * lra-constraints.c: Likewise.
22850 * lra-lives.c: Likewise.
22851 * lto-cgraph.c: Likewise.
22852 * lto-streamer-in.c: Likewise.
22853 * mode-switching.c: Likewise.
22854 * modulo-sched.c: Likewise.
22855 * omp-low.c: Likewise.
22856 * optabs.c: Likewise.
22857 * passes.c: Likewise.
22858 * postreload.c: Likewise.
22859 * postreload-gcse.c: Likewise.
22860 * profile.c: Likewise.
22861 * recog.c: Likewise.
22862 * regstat.c: Likewise.
22863 * reload1.c: Likewise.
22864 * reorg.c: Likewise.
22865 * rtlanal.c: Likewise.
22866 * sched-ebb.c: Likewise.
22867 * sel-sched-ir.c: Likewise.
22868 * sese.c: Likewise.
22869 * shrink-wrap.c: Likewise.
22870 * simplify-rtx.c: Likewise.
22871 * stmt.c: Likewise.
22872 * store-motion.c: Likewise.
22873 * tracer.c: Likewise.
22874 * trans-mem.c: Likewise.
22875 * tree-call-cdce.c: Likewise.
22876 * tree-cfg.c: Likewise.
22877 * tree-cfgcleanup.c: Likewise.
22878 * tree-chkp.c: Likewise.
22879 * tree-complex.c: Likewise.
22880 * tree-eh.c: Likewise.
22881 * tree-if-conv.c: Likewise.
22882 * tree-loop-distribution.c: Likewise.
22883 * tree-outof-ssa.c: Likewise.
22884 * tree-parloops.c: Likewise.
22885 * tree-predcom.c: Likewise.
22886 * tree-pretty-print.c: Likewise.
22887 * tree-profile.c: Likewise.
22888 * tree-sra.c: Likewise.
22889 * tree-ssa.c: Likewise.
22890 * tree-ssa-coalesce.c: Likewise.
22891 * tree-ssa-dce.c: Likewise.
22892 * tree-ssa-dom.c: Likewise.
22893 * tree-ssa-forwprop.c: Likewise.
22894 * tree-ssa-ifcombine.c: Likewise.
22895 * tree-ssa-loop-ch.c: Likewise.
22896 * tree-ssa-loop-im.c: Likewise.
22897 * tree-ssa-loop-ivcanon.c: Likewise.
22898 * tree-ssa-loop-ivopts.c: Likewise.
22899 * tree-ssa-loop-manip.c: Likewise.
22900 * tree-ssa-loop-prefetch.c: Likewise.
22901 * tree-ssa-loop-unswitch.c: Likewise.
22902 * tree-ssa-math-opts.c: Likewise.
22903 * tree-ssa-phiopt.c: Likewise.
22904 * tree-ssa-pre.c: Likewise.
22905 * tree-ssa-reassoc.c: Likewise.
22906 * tree-ssa-sink.c: Likewise.
22907 * tree-ssa-tail-merge.c: Likewise.
22908 * tree-ssa-threadedge.c: Likewise.
22909 * tree-ssa-threadupdate.c: Likewise.
22910 * tree-switch-conversion.c: Likewise.
22911 * tree-tailcall.c: Likewise.
22912 * tree-vect-data-refs.c: Likewise.
22913 * tree-vect-loop.c: Likewise.
22914 * tree-vect-loop-manip.c: Likewise.
22915 * tree-vectorizer.c: Likewise.
22916 * tree-vrp.c: Likewise.
22917 * ubsan.c: Likewise.
22918 * value-prof.c: Likewise.
22919 * varasm.c: Likewise.
22920 * var-tracking.c: Likewise.
22921 * config/aarch64/aarch64-builtins.c: Likewise.
22922 * config/aarch64/aarch64.c: Likewise.
22923 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22924 * config/alpha/alpha.c: Likewise.
22925 * config/arc/arc.c: Likewise.
22926 * config/arm/arm.c: Likewise.
22927 * config/avr/avr.c: Likewise.
22928 * config/bfin/bfin.c: Likewise.
22929 * config/c6x/c6x.c: Likewise.
22930 * config/cr16/cr16.c: Likewise.
22931 * config/cris/cris.c: Likewise.
22932 * config/darwin.c: Likewise.
22933 * config/darwin-c.c: Likewise.
22934 * config/epiphany/epiphany.c: Likewise.
22935 * config/epiphany/mode-switch-use.c: Likewise.
22936 * config/epiphany/resolve-sw-modes.c: Likewise.
22937 * config/fr30/fr30.c: Likewise.
22938 * config/frv/frv.c: Likewise.
22939 * config/ft32/ft32.c: Likewise.
22940 * config/h8300/h8300.c: Likewise.
22941 * config/i386/i386.c: Likewise.
22942 * config/i386/winnt.c: Likewise.
22943 * config/ia64/ia64.c: Likewise.
22944 * config/iq2000/iq2000.c: Likewise.
22945 * config/lm32/lm32.c: Likewise.
22946 * config/m32c/m32c.c: Likewise.
22947 * config/m32r/m32r.c: Likewise.
22948 * config/m68k/m68k.c: Likewise.
22949 * config/mcore/mcore.c: Likewise.
22950 * config/mep/mep.c: Likewise.
22951 * config/microblaze/microblaze.c: Likewise.
22952 * config/mips/mips.c: Likewise.
22953 * config/mmix/mmix.c: Likewise.
22954 * config/mn10300/mn10300.c: Likewise.
22955 * config/moxie/moxie.c: Likewise.
22956 * config/msp430/msp430.c: Likewise.
22957 * config/nds32/nds32.c: Likewise.
22958 * config/nds32/nds32-cost.c: Likewise.
22959 * config/nds32/nds32-fp-as-gp.c: Likewise.
22960 * config/nds32/nds32-intrinsic.c: Likewise.
22961 * config/nds32/nds32-isr.c: Likewise.
22962 * config/nds32/nds32-md-auxiliary.c: Likewise.
22963 * config/nds32/nds32-memory-manipulation.c: Likewise.
22964 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22965 * config/nds32/nds32-predicates.c: Likewise.
22966 * config/nios2/nios2.c: Likewise.
22967 * config/nvptx/nvptx.c: Likewise.
22968 * config/pa/pa.c: Likewise.
22969 * config/pdp11/pdp11.c: Likewise.
22970 * config/rl78/rl78.c: Likewise.
22971 * config/rs6000/rs6000.c: Likewise.
22972 * config/rx/rx.c: Likewise.
22973 * config/s390/s390.c: Likewise.
22974 * config/sh/sh.c: Likewise.
22975 * config/sh/sh-mem.cc: Likewise.
22976 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22977 * config/sh/sh_treg_combine.cc: Likewise.
22978 * config/sparc/sparc.c: Likewise.
22979 * config/spu/spu.c: Likewise.
22980 * config/stormy16/stormy16.c: Likewise.
22981 * config/tilegx/tilegx.c: Likewise.
22982 * config/tilepro/tilepro.c: Likewise.
22983 * config/v850/v850.c: Likewise.
22984 * config/vax/vax.c: Likewise.
22985 * config/visium/visium.c: Likewise.
22986 * config/xtensa/xtensa.c: Likewise.
22988 2015-07-10 Richard Biener <rguenther@suse.de>
22990 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22991 (decision_tree::gen_gimple): Likewise.
22992 (decision_tree::gen_generic): Likewise.
22994 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22997 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22998 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23000 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23002 PR middle-end/66820
23003 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23004 or ORT_TASK contexts.
23005 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23008 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23010 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23013 2015-07-10 Tom de Vries <tom@codesourcery.com>
23015 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23016 insert nit + 1 bound.
23018 2015-07-10 Richard Biener <rguenther@suse.de>
23020 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23021 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23022 (if_convertible_loop_p_1): For this always compute bb predicates.
23023 (if_convertible_loop_p): And free them.
23025 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23027 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23030 2015-07-10 Richard Biener <rguenther@suse.de>
23032 PR tree-optimization/66823
23033 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23034 inverted predicate.
23036 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
23038 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23039 to handle mips[32|64]r3 and mips[32|64]r5.
23041 2015-07-09 Jakub Jelinek <jakub@redhat.com>
23043 PR middle-end/66633
23044 * tree-nested.c (get_static_chain): Or in a flag into
23045 info->static_chain_added.
23046 (get_frame_field, get_nonlocal_debug_decl): Likewise.
23047 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23048 2015-07-01 changes.
23049 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23050 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23053 PR tree-optimization/66718
23054 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23056 (vect_simd_lane_linear): New function.
23057 (vectorizable_simd_clone_call): Support using linear arguments for
23058 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23060 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23063 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23065 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23067 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23068 Use machine mode, not enum machine_mode in the prototype.
23070 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23071 classify 128-bit floating point support.
23072 (FLOAT128_IBM_P): Likewise.
23073 (FLOAT128_VECTOR_P): Likewise.
23074 (FLOAT128_2REG_P): Likewise.
23075 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23076 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23077 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23078 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23080 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23081 tests against TFmode/TDmode, since those modes do not use VSX
23083 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23085 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23086 tests against TFmode, etc.
23087 (invalid_e500_subreg): Add tests against IFmode/KFmode.
23088 (reg_offset_addressing_ok_p): Likewise.
23089 (rs6000_legitimate_offset_address_p): Likewise.
23090 (rs6000_legitimize_address): Likewise.
23091 (rs6000_legitimize_reload_address): Likewise.
23092 (rs6000_legitimate_address_p): Clean up tests against TFmode and
23093 TDmode to use the new helper macros, which will include IFmode and
23095 (rs6000_emit_move): Likewise.
23096 (rs6000_darwin64_record_arg_recurse): Likewise.
23097 (print_operand): Likewise.
23098 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
23099 that uses a single vector register as a vector and not as a
23100 floating point register in terms of the calling sequence.
23101 (rs6000_discover_homogeneous_aggregate): Likewise.
23102 (rs6000_return_in_memory): Likewise.
23103 (init_cumulative_args): Likewise.
23104 (rs6000_function_arg_boundary): Likewise.
23105 (rs6000_function_arg_advance_1): Likewise.
23106 (rs6000_function_arg): Likewise.
23107 (rs6000_pass_by_reference): Likewise.
23108 (rs6000_gimplify_va_arg): Likewise.
23109 (rs6000_secondary_reload_memory): Use machine_mode not enum
23111 (rs6000_split_multireg_move): Use new helper macros.
23112 (spe_func_has_64bit_regs_p): Likewise.
23113 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
23114 (output_toc): Use new helper macros.
23115 (rs6000_register_move_cost): Likewise.
23116 (rs6000_function_value): Add IEEE 128-bit floating point calling
23118 (rs6000_libcall_value): Likewise.
23119 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
23120 floating point support.
23121 (rs6000_vector_mode_supported_p): Likewise.
23123 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
23125 PR rtl-optimization/66782
23126 * lra-int.h (struct lra_insn_recog_data): Add comment about
23127 clobbered hard regs for arg_hard_regs.
23128 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
23129 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
23130 Add condition for processing used hard regs.
23131 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
23132 Process clobbered hard regs.
23134 2015-07-09 Michael Matz <matz@suse.de>
23136 * genmatch.c (fprintf_indent): New function.
23137 (operand::gen_transform): Add indent parameter.
23138 (expr::gen_transform, c_expr::gen_transform,
23139 capture::gen_transform): Ditto and use fprintf_indent.
23140 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
23141 (dt_operand::gen, dt_operand::gen_predicate,
23142 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
23143 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
23144 (decision_tree::gen_gimple): Adjust calls and indent generated
23146 (decision_tree::gen_generic): Ditto.
23147 (write_predicate): Ditto.
23149 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23152 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
23153 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
23154 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
23155 {GENERAL,SSE,MMX}_REG_P where appropriate.
23157 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23159 * lto-streamer.h: Don't include target.h and alloc-pool.h.
23160 * builtins.c: Adjust includes.
23161 * gimple.c: Likewise.
23162 * ipa-icf.c: Likewise.
23163 * lto-opts.c: Likewise.
23164 * ipa-reference.c: Likewise.
23165 * lto-section-out.c: Likewise.
23166 * lto-streamer-in.c: Likewise.
23167 * lto-streamer-out.c: Likewise.
23168 * opts-global.c: Likewise.
23169 * symtab.c: Likewise.
23170 * tree-chkp.c: Likewise.
23171 * tree-ssa-live.c: Likewise.
23172 * tree-streamer-in.c: Likewise.
23173 * tree-streamer-out.c: Likewise.
23174 * config/darwin.c: Likewise.
23175 * config/i386/winnt.c: Likewise.
23177 2015-07-09 Richard Biener <rguenther@suse.de>
23179 * genmatch.c (struct expr): Add force_single_use flag.
23180 (expr::expr): Add copy constructor.
23181 (capture_info::walk_match): Gather force_single_use captures.
23182 (expr::gen_transform): Use possibly NULLified sequence.
23183 (dt_simplify::gen): Apply single-use restrictions by NULLifying
23184 seq if any constrained expr is not single-use.
23185 (parser::parse_expr): Refactor to allow multiple flags. Handle
23186 's' flag to force an expression have a single-use if the pattern
23187 simplifies to more than one statement.
23188 * match.pd: Convert most single_use conditionals to :s flags.
23190 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23192 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
23193 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23194 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
23196 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23198 * flags.h: Don't include flag-types.h or options.h.
23199 * opts-common.c: Adjust includes.
23200 * opts-global.c: Likewise.
23201 * common/config/epiphany/epiphany-common.c: Likewise.
23203 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23206 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
23209 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23212 * config/i386/i386.c (ix86_return_in_memory): Return true
23213 if int_size_in_bytes returns negative for IA MCU.
23215 2015-07-09 Marek Polacek <polacek@redhat.com>
23217 PR tree-optimization/66718
23218 * Makefile.in (OBJS): Add gimple-laddress.o.
23219 * passes.def: Schedule pass_laddress.
23220 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
23221 * tree-pass.h (make_pass_laddress): Declare.
23222 * gimple-laddress.c: New file.
23224 2015-07-09 Richard Biener <rguenther@suse.de>
23226 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
23228 2015-07-09 Richard Biener <rguenther@suse.de>
23230 PR tree-optimization/66807
23231 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
23233 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
23235 * function.c (stack_protect_epilogue): Use if rather than switch for
23236 check targetm.have_stack_protect_test.
23238 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23240 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
23241 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
23242 * config/arc/arc.h: Likewise.
23243 * config/arm/arm.h: Likewise.
23244 * config/bfin/bfin.h: Likewise.
23245 * config/epiphany/epiphany.h: Likewise.
23246 * config/frv/frv.h: Likewise.
23247 * config/ia64/ia64.h: Likewise.
23248 * config/iq2000/iq2000.h: Likewise.
23249 * config/lm32/lm32.h: Likewise.
23250 * config/m32r/m32r.h: Likewise.
23251 * config/mcore/mcore.h: Likewise.
23252 * config/mep/mep.h: Likewise.
23253 * config/microblaze/microblaze.h: Likewise.
23254 * config/mips/mips.h: Likewise.
23255 * config/mmix/mmix.h: Likewise.
23256 * config/mn10300/mn10300.h: Likewise.
23257 * config/nds32/nds32.h: Likewise.
23258 * config/nios2/nios2.h: Likewise.
23259 * config/pa/pa.h: Likewise.
23260 * config/rl78/rl78.h: Likewise.
23261 * config/sh/sh.h: Likewise.
23262 * config/sparc/sparc.h: Likewise.
23263 * config/stormy16/stormy16.h: Likewise.
23264 * config/tilegx/tilegx.h: Likewise.
23265 * config/tilepro/tilepro.h: Likewise.
23266 * config/v850/v850.h: Likewise.
23267 * config/xtensa/xtensa.h: Likewise.
23268 * doc/tm.texi: Regenerate.
23269 * doc/tm.texi.in: Adjust.
23270 * combine.c (simplify_set): Likewise.
23271 (simplify_comparison): Likewise.
23272 * expr.c (store_constructor): Likewise.
23273 * internal-fn.c (expand_arith_overflow): Likewise.
23274 * reload.c (push_reload): Likewise.
23275 (find_reloads): Likewise.
23276 (find_reloads_subreg_address): Likewise.
23277 * reload1.c (eliminate_regs_1): Likewise.
23278 * rtlanal.c (nonzero_bits1): Likewise.
23279 (num_sign_bit_copies1): Likewise.
23280 * simplify-rtx.c (simplify_truncation): Likewise.
23282 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23284 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
23285 of AUTO_INC_DEC with the preprocessor.
23286 * combine.c (combine_instructions): Likewise.
23287 (can_combine_p): Likewise.
23288 (try_combine): Likewise.
23289 * emit-rtl.c (try_split): Likewise.
23290 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23291 * lower-subreg.c (resolve_simple_move): Likewise.
23292 * lra.c (update_inc_notes): Likewise.
23293 * recog.c (asm_operand_ok): Likewise.
23294 (constrain_operands): Likewise.
23295 * regrename.c (scan_rtx_address): Likewise.
23296 * reload.c (update_auto_inc_notes): Likewise.
23297 (reg_inc_found_and_valid_p): Likewise.
23298 * reload1.c (reload): Likewise.
23299 (emit_input_reload_insns): Likewise.
23300 (delete_output_reload): Likewise.
23301 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23302 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23304 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23306 * rtl.h: Always define AUTO_INC_DEC.
23307 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
23308 * combine.c (combine_instructions): Likewise.
23309 (can_combine_p): Likewise.
23310 (try_combine): Likewise.
23311 * emit-rtl.c (try_split): Likewise.
23312 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23313 * lower-subreg.c (resolve_simple_move): Likewise.
23314 * lra.c (update_inc_notes): Likewise.
23315 * recog.c (asm_operand_ok): Likewise.
23316 (constrain_operands): Likewise.
23317 * regrename.c (scan_rtx_address): Likewise.
23318 * reload.c (update_auto_inc_notes): Likewise.
23319 (find_equiv_reg): Likewise.
23320 * reload1.c (reload): Likewise.
23321 (reload_as_needed): Likewise.
23322 (choose_reload_regs): Likewise.
23323 (emit_input_reload_insns): Likewise.
23324 (delete_output_reload): Likewise.
23325 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23326 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23328 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23330 * combine.c (can_combine_def_p): Don't check the value of
23331 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23332 (combinable_i3pat): Likewise.
23333 (mark_used_regs_combine): Likewise.
23334 * regrename.c (rename_chains): Likewise.
23335 * reload.c (find_reloads_address): Likewise.
23336 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23338 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23340 * combine.c (update_rsp_from_reg_equal): Don't check if
23341 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23342 (reg_nonzero_bits_for_combine): Likewise.
23343 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23345 * config/frv/frv.h: Likewise.
23346 * config/lm32/lm32.h: Likewise.
23347 * config/mep/mep.h: Likewise.
23348 * config/mips/mips.h: Likewise.
23349 * config/rs6000/rs6000.h: Likewise.
23350 * config/sh/sh.h: Likewise.
23351 * config/tilegx/tilegx.h (enum reg_class): Likewise.
23352 * config/tilepro/tilepro.h: Likewise.
23353 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23354 * doc/tm.texi: Regenerate.
23355 * doc/tm.texi.in: Adjust.
23356 * rtlanal.c (nonzero_bits1): Likewise.
23358 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23360 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23361 with the preprocessor.
23362 (combine_instructions): Likewise.
23363 (try_combine): Likewise.
23365 (distribute_notes): Likewise.
23367 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23369 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23371 (simplify_set): Likewise.
23372 * cse.c (cse_insn): Likewise.
23373 * fold-const.c (fold_single_bit_test): Likewise.
23374 (fold_unary_loc): Likewise.
23375 * postreload.c (reload_cse_simplify_set): Likewise.
23376 (reload_cse_simplify_operands): Likewise.
23378 2015-07-08 Jiong Wang <jiong.wang@arm.com>
23380 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23381 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23383 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23386 * config/i386/x86intrin.h: Include <adxintrin.h> even if
23387 __iamcu__ is defined.
23389 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23391 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23393 2015-07-08 Iain Sandoe <iain@codesourcery.com>
23396 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23397 names from preservation.
23399 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23402 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23404 (function_arg_advance_32): Don't pass vectors in registers for
23406 (function_arg_32): Likewise.
23407 (ix86_return_in_memory): Don't return vectors in registers for
23410 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
23412 PR middle-end/66334
23413 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23414 hard regno live at the start of BB with incoming abnormal edges.
23415 * lra-lives.c (process_bb_lives): Ditto.
23417 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
23420 * config/nvptx/mkoffload.c (main): Create an offload image only in
23421 64-bit configurations.
23423 2015-07-08 Martin Liska <mliska@suse.cz>
23426 * tree-sra.c (create_access_1): Call ctor without brackets.
23427 (create_artificial_child_access): Likewise.
23429 2015-07-08 Richard Biener <rguenther@suse.de>
23431 PR tree-optimization/66793
23432 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23433 Properly split the block after stmts ending it.
23435 2015-07-08 Richard Biener <rguenther@suse.de>
23437 PR tree-optimization/66794
23438 * passes.c (execute_function_todo): Assert that post-dominators
23440 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23441 Free post-dominators.
23443 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23445 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23448 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23450 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23451 more than or equal 8 and less than 32 when optimizing for size.
23453 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23455 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23456 COSTS_N_INSNS (1) and increment it appropriately throughout the
23459 2015-07-08 Richard Biener <rguenther@suse.de>
23461 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23463 2015-07-08 Alan Modra <amodra@gmail.com>
23465 * target.def (rtx_costs): Remove "code" param, add "mode".
23466 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23467 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
23468 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23469 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
23470 call. Track mode when given in rtx.
23471 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
23472 (default_address_cost): Pass Pmode to rtx_cost.
23473 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23474 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23476 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
23477 (notreg_cost): Add mode param. Use it.
23478 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
23479 mode param and pass to set_src_cost. Update all calls.
23480 (hash_scan_set): Formatting.
23481 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23482 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23484 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23485 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23486 emit_store_flag): Update set_src_cost and rtx_cost calls.
23487 * auto-inc-dec.c (attempt_change): Likewise.
23488 * calls.c (precompute_register_parameters): Likewise.
23489 * combine.c (expand_compound_operation, make_extraction,
23490 force_to_mode, distribute_and_simplify_rtx): Likewise.
23491 * dojump.c (prefer_and_bit_test): Likewise.
23492 * dse.c (find_shift_sequence): Likewise.
23493 * expr.c (compress_float_constant): Likewise.
23494 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23495 * ifcvt.c (noce_try_sign_mask): Likewise.
23496 * loop-doloop.c (doloop_optimize): Likewise.
23497 * loop-invariant.c (create_new_invariant): Likewise.
23498 * lower-subreg.c (shift_cost, compute_costs): Likewise.
23499 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23500 lshift_cheap_p): Likewise.
23501 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23502 try_replace_in_use, reload_cse_move2add): Likewise.
23503 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23505 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23506 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23507 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23508 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23509 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23510 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
23512 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23513 * config/arc/arc.c (arc_rtx_costs): Likewise.
23514 * config/arm/arm.c (arm_rtx_costs): Likewise.
23515 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23516 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23517 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23518 * config/cris/cris.c (cris_rtx_costs): Likewise.
23519 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23520 * config/frv/frv.c (frv_rtx_costs): Likewise.
23521 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23522 * config/i386/i386.c (ix86_rtx_costs): Likewise.
23523 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23524 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23525 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23526 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23527 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23528 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23529 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23530 * config/mep/mep.c (mep_rtx_cost): Likewise.
23531 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23532 * config/mips/mips.c (mips_rtx_costs): Likewise.
23533 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23534 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23535 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23536 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23537 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23538 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23539 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23540 * config/pa/pa.c (hppa_rtx_costs): Likewise.
23541 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23542 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23543 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23544 * config/s390/s390.c (s390_rtx_costs): Likewise.
23545 * config/sh/sh.c (sh_rtx_costs): Likewise.
23546 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23547 * config/spu/spu.c (spu_rtx_costs): Likewise.
23548 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23549 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23550 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23551 * config/v850/v850.c (v850_rtx_costs): Likewise.
23552 * config/vax/vax.c (vax_rtx_costs): Likewise.
23553 * config/visium/visium.c (visium_rtx_costs): Likewise.
23554 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23555 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23556 "code" param, and pass as outer_code to first rtx_cost call. Pass
23557 mode to rtx_cost calls.
23558 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23560 (aarch64_rtx_costs_wrapper): Update.
23561 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23562 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23564 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23565 and rtx_cost calls.
23566 (avr_operand_rtx_cost): Similarly.
23567 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23568 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23569 * config/mips/mips.c (mips_stack_address_p): Comment typo.
23570 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23571 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23572 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23574 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23575 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23576 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23577 * doc/tm.texi: Regenerate.
23579 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
23581 * tree-core.h: Include symtab.h.
23582 * rtl.h: Include hard-reg-set.h but not flags.h.
23583 (HARD_CONST): Remove condition compilation involving HARD_CONST since
23584 hard-reg-set.h is always included.
23585 * regs.h: Don't include hard-reg-set.h or rtl.h.
23586 * cfg.h: Include dominance.h.
23587 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23588 * backend.h: New. Aggregate commonly used backend header files.
23589 * gimple-ssa.h: Don't include tree-hasher.h.
23590 * ssa.h: New. Aggregate commonly used SSA header files.
23591 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23592 * sel-sched-ir.h: Flatten includes.
23593 * lra-int.h: Flatten completely.
23594 * sel-sched-dump.h: Flatten includes.
23595 * ira-int.h: Flatten includes.
23596 * gimple-streamer.h: Remove all includes.
23597 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23598 * resource.h: Flatten hard-reg-set.h and df.h.
23599 * sched-int.h: Flatten insn-arrt.h and df.h.
23600 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23601 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23602 * genattrtab.c (write_header): Adjust generated includes.
23603 * genautomata.c (main): Likewise.
23604 * genconditions.c (write-header): Likewise.
23605 * genemit.c (main): Likewise.
23606 * gengtype.c (open_base_files): Likewise.
23607 * genopinit.c (main): Likewise.
23608 * genoutput.c (output_prologue): Likewise.
23609 * genpeep.c (main): Likewise.
23610 * genpreds.c (write_insn_preds_c): Likewise.
23611 * genrecog.c (write_header): Likewise.
23612 * alias.c: Adjust includes.
23613 * asan.c: Likewise.
23614 * attribs.c: Likewise.
23615 * auto-inc-dec.c: Likewise.
23616 * auto-profile.c: Likewise.
23617 * bb-reorder.c: Likewise.
23618 * bt-load.c: Likewise.
23619 * builtins.c: Likewise.
23620 * caller-save.c: Likewise.
23621 * calls.c: Likewise.
23622 * ccmp.c: Likewise.
23624 * cfganal.c: Likewise.
23625 * cfgbuild.c: Likewise.
23626 * cfgcleanup.c: Likewise.
23627 * cfgexpand.c: Likewise.
23628 * cfghooks.c: Likewise.
23629 * cfgloop.c: Likewise.
23630 * cfgloopanal.c: Likewise.
23631 * cfgloopmanip.c: Likewise.
23632 * cfgrtl.c: Likewise.
23633 * cgraph.c: Likewise.
23634 * cgraphbuild.c: Likewise.
23635 * cgraphclones.c: Likewise.
23636 * cgraphunit.c: Likewise.
23637 * cilk-common.c: Likewise.
23638 * combine-stack-adj.c: Likewise.
23639 * combine.c: Likewise.
23640 * compare-elim.c: Likewise.
23641 * convert.c: Likewise.
23642 * coverage.c: Likewise.
23643 * cppbuiltin.c: Likewise.
23644 * cprop.c: Likewise.
23646 * cselib.c: Likewise.
23647 * data-streamer-in.c: Likewise.
23648 * data-streamer-out.c: Likewise.
23649 * data-streamer.c: Likewise.
23650 * dbxout.c: Likewise.
23653 * debug.c: Likewise.
23654 * df-core.c: Likewise.
23655 * df-problems.c: Likewise.
23656 * df-scan.c: Likewise.
23658 * dojump.c: Likewise.
23659 * dominance.c: Likewise.
23660 * domwalk.c: Likewise.
23661 * double-int.c: Likewise.
23663 * dumpfile.c: Likewise.
23664 * dwarf2asm.c: Likewise.
23665 * dwarf2cfi.c: Likewise.
23666 * dwarf2out.c: Likewise.
23667 * emit-rtl.c: Likewise.
23668 * et-forest.c: Likewise.
23669 * except.c: Likewise.
23670 * explow.c: Likewise.
23671 * expmed.c: Likewise.
23672 * expr.c: Likewise.
23673 * final.c: Likewise.
23674 * fixed-value.c: Likewise.
23675 * fold-const.c: Likewise.
23676 * function.c: Likewise.
23677 * fwprop.c: Likewise.
23678 * gcc-plugin.h: Likewise.
23679 * gcse-common.c: Likewise.
23680 * gcse.c: Likewise.
23681 * generic-match-head.c: Likewise.
23682 * ggc-page.c: Likewise.
23683 * gimple-builder.c: Likewise.
23684 * gimple-expr.c: Likewise.
23685 * gimple-fold.c: Likewise.
23686 * gimple-iterator.c: Likewise.
23687 * gimple-low.c: Likewise.
23688 * gimple-match-head.c: Likewise.
23689 * gimple-pretty-print.c: Likewise.
23690 * gimple-ssa-isolate-paths.c: Likewise.
23691 * gimple-ssa-strength-reduction.c: Likewise.
23692 * gimple-streamer-in.c: Likewise.
23693 * gimple-streamer-out.c: Likewise.
23694 * gimple-walk.c: Likewise.
23695 * gimple.c: Likewise.
23696 * gimplify-me.c: Likewise.
23697 * gimplify.c: Likewise.
23698 * godump.c: Likewise.
23699 * graph.c: Likewise.
23700 * graphite-blocking.c: Likewise.
23701 * graphite-dependences.c: Likewise.
23702 * graphite-interchange.c: Likewise.
23703 * graphite-isl-ast-to-gimple.c: Likewise.
23704 * graphite-optimize-isl.c: Likewise.
23705 * graphite-poly.c: Likewise.
23706 * graphite-scop-detection.c: Likewise.
23707 * graphite-sese-to-poly.c: Likewise.
23708 * graphite.c: Likewise.
23709 * haifa-sched.c: Likewise.
23710 * hw-doloop.c: Likewise.
23711 * ifcvt.c: Likewise.
23712 * init-regs.c: Likewise.
23713 * internal-fn.c: Likewise.
23714 * ipa-chkp.c: Likewise.
23715 * ipa-comdats.c: Likewise.
23716 * ipa-cp.c: Likewise.
23717 * ipa-devirt.c: Likewise.
23718 * ipa-icf-gimple.c: Likewise.
23719 * ipa-icf.c: Likewise.
23720 * ipa-inline-analysis.c: Likewise.
23721 * ipa-inline-transform.c: Likewise.
23722 * ipa-inline.c: Likewise.
23723 * ipa-polymorphic-call.c: Likewise.
23724 * ipa-profile.c: Likewise.
23725 * ipa-prop.c: Likewise.
23726 * ipa-pure-const.c: Likewise.
23727 * ipa-ref.c: Likewise.
23728 * ipa-reference.c: Likewise.
23729 * ipa-split.c: Likewise.
23730 * ipa-utils.c: Likewise.
23731 * ipa-visibility.c: Likewise.
23733 * ira-build.c: Likewise.
23734 * ira-color.c: Likewise.
23735 * ira-conflicts.c: Likewise.
23736 * ira-costs.c: Likewise.
23737 * ira-emit.c: Likewise.
23738 * ira-lives.c: Likewise.
23740 * jump.c: Likewise.
23741 * langhooks.c: Likewise.
23743 * loop-doloop.c: Likewise.
23744 * loop-init.c: Likewise.
23745 * loop-invariant.c: Likewise.
23746 * loop-iv.c: Likewise.
23747 * loop-unroll.c: Likewise.
23748 * lower-subreg.c: Likewise.
23749 * lra-assigns.c: Likewise.
23750 * lra-coalesce.c: Likewise.
23751 * lra-constraints.c: Likewise.
23752 * lra-eliminations.c: Likewise.
23753 * lra-lives.c: Likewise.
23754 * lra-remat.c: Likewise.
23755 * lra-spills.c: Likewise.
23757 * lto-cgraph.c: Likewise.
23758 * lto-compress.c: Likewise.
23759 * lto-opts.c: Likewise.
23760 * lto-section-in.c: Likewise.
23761 * lto-section-out.c: Likewise.
23762 * lto-streamer-in.c: Likewise.
23763 * lto-streamer-out.c: Likewise.
23764 * lto-streamer.c: Likewise.
23766 * mode-switching.c: Likewise.
23767 * modulo-sched.c: Likewise.
23768 * omega.c: Likewise.
23769 * omp-low.c: Likewise.
23770 * optabs.c: Likewise.
23771 * opts-global.c: Likewise.
23772 * passes.c: Likewise.
23773 * plugin.c: Likewise.
23774 * postreload-gcse.c: Likewise.
23775 * postreload.c: Likewise.
23776 * predict.c: Likewise.
23777 * print-rtl.c: Likewise.
23778 * print-tree.c: Likewise.
23779 * profile.c: Likewise.
23780 * real.c: Likewise.
23781 * realmpfr.c: Likewise.
23782 * recog.c: Likewise.
23784 * reg-stack.c: Likewise.
23785 * regcprop.c: Likewise.
23786 * reginfo.c: Likewise.
23787 * regrename.c: Likewise.
23788 * regstat.c: Likewise.
23789 * reload.c: Likewise.
23790 * reload1.c: Likewise.
23791 * reorg.c: Likewise.
23792 * resource.c: Likewise.
23793 * rtl-chkp.c: Likewise.
23794 * rtlanal.c: Likewise.
23795 * rtlhooks.c: Likewise.
23796 * sanopt.c: Likewise.
23797 * sched-deps.c: Likewise.
23798 * sched-ebb.c: Likewise.
23799 * sched-rgn.c: Likewise.
23800 * sched-vis.c: Likewise.
23801 * sdbout.c: Likewise.
23802 * sel-sched-dump.c: Likewise.
23803 * sel-sched-ir.c: Likewise.
23804 * sel-sched.c: Likewise.
23805 * sese.c: Likewise.
23806 * shrink-wrap.c: Likewise.
23807 * simplify-rtx.c: Likewise.
23808 * stack-ptr-mod.c: Likewise.
23809 * stmt.c: Likewise.
23810 * stor-layout.c: Likewise.
23811 * store-motion.c: Likewise.
23812 * stringpool.c: Likewise.
23813 * symtab.c: Likewise.
23814 * target-globals.c: Likewise.
23815 * targhooks.c: Likewise.
23816 * toplev.c: Likewise.
23817 * tracer.c: Likewise.
23818 * trans-mem.c: Likewise.
23819 * tree-affine.c: Likewise.
23820 * tree-browser.c: Likewise.
23821 * tree-call-cdce.c: Likewise.
23822 * tree-cfg.c: Likewise.
23823 * tree-cfgcleanup.c: Likewise.
23824 * tree-chkp-opt.c: Likewise.
23825 * tree-chkp.c: Likewise.
23826 * tree-chrec.c: Likewise.
23827 * tree-complex.c: Likewise.
23828 * tree-data-ref.c: Likewise.
23829 * tree-dfa.c: Likewise.
23830 * tree-diagnostic.c: Likewise.
23831 * tree-dump.c: Likewise.
23832 * tree-eh.c: Likewise.
23833 * tree-emutls.c: Likewise.
23834 * tree-if-conv.c: Likewise.
23835 * tree-inline.c: Likewise.
23836 * tree-into-ssa.c: Likewise.
23837 * tree-iterator.c: Likewise.
23838 * tree-loop-distribution.c: Likewise.
23839 * tree-nested.c: Likewise.
23840 * tree-nrv.c: Likewise.
23841 * tree-object-size.c: Likewise.
23842 * tree-outof-ssa.c: Likewise.
23843 * tree-parloops.c: Likewise.
23844 * tree-phinodes.c: Likewise.
23845 * tree-predcom.c: Likewise.
23846 * tree-pretty-print.c: Likewise.
23847 * tree-profile.c: Likewise.
23848 * tree-scalar-evolution.c: Likewise.
23849 * tree-sra.c: Likewise.
23850 * tree-ssa-address.c: Likewise.
23851 * tree-ssa-alias.c: Likewise.
23852 * tree-ssa-ccp.c: Likewise.
23853 * tree-ssa-coalesce.c: Likewise.
23854 * tree-ssa-copy.c: Likewise.
23855 * tree-ssa-copyrename.c: Likewise.
23856 * tree-ssa-dce.c: Likewise.
23857 * tree-ssa-dom.c: Likewise.
23858 * tree-ssa-dse.c: Likewise.
23859 * tree-ssa-forwprop.c: Likewise.
23860 * tree-ssa-ifcombine.c: Likewise.
23861 * tree-ssa-live.c: Likewise.
23862 * tree-ssa-loop-ch.c: Likewise.
23863 * tree-ssa-loop-im.c: Likewise.
23864 * tree-ssa-loop-ivcanon.c: Likewise.
23865 * tree-ssa-loop-ivopts.c: Likewise.
23866 * tree-ssa-loop-manip.c: Likewise.
23867 * tree-ssa-loop-niter.c: Likewise.
23868 * tree-ssa-loop-prefetch.c: Likewise.
23869 * tree-ssa-loop-unswitch.c: Likewise.
23870 * tree-ssa-loop.c: Likewise.
23871 * tree-ssa-math-opts.c: Likewise.
23872 * tree-ssa-operands.c: Likewise.
23873 * tree-ssa-phiopt.c: Likewise.
23874 * tree-ssa-phiprop.c: Likewise.
23875 * tree-ssa-pre.c: Likewise.
23876 * tree-ssa-propagate.c: Likewise.
23877 * tree-ssa-reassoc.c: Likewise.
23878 * tree-ssa-sccvn.c: Likewise.
23879 * tree-ssa-scopedtables.c: Likewise.
23880 * tree-ssa-sink.c: Likewise.
23881 * tree-ssa-strlen.c: Likewise.
23882 * tree-ssa-structalias.c: Likewise.
23883 * tree-ssa-tail-merge.c: Likewise.
23884 * tree-ssa-ter.c: Likewise.
23885 * tree-ssa-threadedge.c: Likewise.
23886 * tree-ssa-threadupdate.c: Likewise.
23887 * tree-ssa-uncprop.c: Likewise.
23888 * tree-ssa-uninit.c: Likewise.
23889 * tree-ssa.c: Likewise.
23890 * tree-ssanames.c: Likewise.
23891 * tree-stdarg.c: Likewise.
23892 * tree-streamer-in.c: Likewise.
23893 * tree-streamer-out.c: Likewise.
23894 * tree-streamer.c: Likewise.
23895 * tree-switch-conversion.c: Likewise.
23896 * tree-tailcall.c: Likewise.
23897 * tree-vect-data-refs.c: Likewise.
23898 * tree-vect-generic.c: Likewise.
23899 * tree-vect-loop-manip.c: Likewise.
23900 * tree-vect-loop.c: Likewise.
23901 * tree-vect-patterns.c: Likewise.
23902 * tree-vect-slp.c: Likewise.
23903 * tree-vect-stmts.c: Likewise.
23904 * tree-vectorizer.c: Likewise.
23905 * tree-vrp.c: Likewise.
23906 * tree.c: Likewise.
23907 * tsan.c: Likewise.
23908 * ubsan.c: Likewise.
23909 * valtrack.c: Likewise.
23910 * value-prof.c: Likewise.
23911 * var-tracking.c: Likewise.
23912 * varasm.c: Likewise.
23913 * varpool.c: Likewise.
23914 * vmsdbgout.c: Likewise.
23915 * vtable-verify.c: Likewise.
23917 * wide-int.cc: Likewise.
23918 * xcoffout.c: Likewise.
23919 * config/aarch64/aarch64-builtins.c: Likewise.
23920 * config/aarch64/aarch64.c: Likewise.
23921 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23922 * config/alpha/alpha.c: Likewise.
23923 * config/arc/arc.c: Likewise.
23924 * config/arm/aarch-common.c: Likewise.
23925 * config/arm/arm-builtins.c: Likewise.
23926 * config/arm/arm-c.c: Likewise.
23927 * config/arm/arm.c: Likewise.
23928 * config/avr/avr-c.c: Likewise.
23929 * config/avr/avr-log.c: Likewise.
23930 * config/avr/avr.c: Likewise.
23931 * config/bfin/bfin.c: Likewise.
23932 * config/c6x/c6x.c: Likewise.
23933 * config/cr16/cr16.c: Likewise.
23934 * config/cris/cris.c: Likewise.
23935 * config/darwin-c.c: Likewise.
23936 * config/darwin.c: Likewise.
23937 * config/epiphany/epiphany.c: Likewise.
23938 * config/epiphany/mode-switch-use.c: Likewise.
23939 * config/epiphany/resolve-sw-modes.c: Likewise.
23940 * config/fr30/fr30.c: Likewise.
23941 * config/frv/frv.c: Likewise.
23942 * config/ft32/ft32.c: Likewise.
23943 * config/h8300/h8300.c: Likewise.
23944 * config/i386/i386-c.c: Likewise.
23945 * config/i386/i386.c: Likewise.
23946 * config/i386/msformat-c.c: Likewise.
23947 * config/i386/winnt-cxx.c: Likewise.
23948 * config/i386/winnt-stubs.c: Likewise.
23949 * config/i386/winnt.c: Likewise.
23950 * config/ia64/ia64-c.c: Likewise.
23951 * config/ia64/ia64.c: Likewise.
23952 * config/iq2000/iq2000.c: Likewise.
23953 * config/lm32/lm32.c: Likewise.
23954 * config/m32c/m32c-pragma.c: Likewise.
23955 * config/m32c/m32c.c: Likewise.
23956 * config/m32r/m32r.c: Likewise.
23957 * config/m68k/m68k.c: Likewise.
23958 * config/mcore/mcore.c: Likewise.
23959 * config/mep/mep-pragma.c: Likewise.
23960 * config/mep/mep.c: Likewise.
23961 * config/microblaze/microblaze-c.c: Likewise.
23962 * config/microblaze/microblaze.c: Likewise.
23963 * config/mips/mips.c: Likewise.
23964 * config/mmix/mmix.c: Likewise.
23965 * config/mn10300/mn10300.c: Likewise.
23966 * config/moxie/moxie.c: Likewise.
23967 * config/msp430/msp430-c.c: Likewise.
23968 * config/msp430/msp430.c: Likewise.
23969 * config/nds32/nds32-cost.c: Likewise.
23970 * config/nds32/nds32-fp-as-gp.c: Likewise.
23971 * config/nds32/nds32-intrinsic.c: Likewise.
23972 * config/nds32/nds32-isr.c: Likewise.
23973 * config/nds32/nds32-md-auxiliary.c: Likewise.
23974 * config/nds32/nds32-memory-manipulation.c: Likewise.
23975 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23976 * config/nds32/nds32-predicates.c: Likewise.
23977 * config/nds32/nds32.c: Likewise.
23978 * config/nios2/nios2.c: Likewise.
23979 * config/nvptx/nvptx.c: Likewise.
23980 * config/pa/pa.c: Likewise.
23981 * config/pdp11/pdp11.c: Likewise.
23982 * config/rl78/rl78-c.c: Likewise.
23983 * config/rl78/rl78.c: Likewise.
23984 * config/rs6000/rs6000-c.c: Likewise.
23985 * config/rs6000/rs6000.c: Likewise.
23986 * config/rx/rx.c: Likewise.
23987 * config/s390/s390-c.c: Likewise.
23988 * config/s390/s390.c: Likewise.
23989 * config/sh/sh-c.c: Likewise.
23990 * config/sh/sh-mem.cc: Likewise.
23991 * config/sh/sh.c: Likewise.
23992 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23993 * config/sh/sh_treg_combine.cc: Likewise.
23994 * config/sol2-c.c: Likewise.
23995 * config/sol2-cxx.c: Likewise.
23996 * config/sol2-stubs.c: Likewise.
23997 * config/sol2.c: Likewise.
23998 * config/sparc/sparc-c.c: Likewise.
23999 * config/sparc/sparc.c: Likewise.
24000 * config/spu/spu-c.c: Likewise.
24001 * config/spu/spu.c: Likewise.
24002 * config/stormy16/stormy16.c: Likewise.
24003 * config/tilegx/mul-tables.c: Likewise.
24004 * config/tilegx/tilegx-c.c: Likewise.
24005 * config/tilegx/tilegx.c: Likewise.
24006 * config/tilepro/mul-tables.c: Likewise.
24007 * config/tilepro/tilepro-c.c: Likewise.
24008 * config/tilepro/tilepro.c: Likewise.
24009 * config/v850/v850-c.c: Likewise.
24010 * config/v850/v850.c: Likewise.
24011 * config/vax/vax.c: Likewise.
24012 * config/visium/visium.c: Likewise.
24013 * config/vms/vms-c.c: Likewise.
24014 * config/vms/vms.c: Likewise.
24015 * config/vxworks.c: Likewise.
24016 * config/xtensa/xtensa.c: Likewise.
24018 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24020 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24021 Remove operand constraints. Change operand 2 predicate to
24022 nonmemory operand. Limit const_int values to mode bitsize. Only
24023 allow const_int values less than 32 when optimizing for size.
24024 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24025 Remove operand constraints.
24026 (*bt<mode>): Use SImode for const_int values less than 32.
24027 (regmode): Remove mode attribute.
24029 2015-07-07 Anatoly Sokolov <aesok@post.ru>
24031 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24032 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24033 moxie_legitimate_address_p): New functions.
24034 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24036 2015-07-07 Tom de Vries <tom@codesourcery.com>
24038 PR tree-optimization/66642
24039 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24040 header comment. Rename split_edge variable to edge_at_split. Split
24041 exit edge to create new loop exit bb. Insert loop exit phis in new
24044 2015-07-07 Tom de Vries <tom@codesourcery.com>
24046 * tree-cfg.c (get_virtual_phi): New function.
24047 * tree-cfg.h (get_virtual_phi): Declare.
24048 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24049 (rewrite_virtuals_into_loop_closed_ssa): New function.
24050 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24052 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24053 (transform_to_exit_first_loop_alt): Use
24054 rewrite_virtuals_into_loop_closed_ssa.
24056 2015-07-07 Richard Biener <rguenther@suse.de>
24058 * fold-const.c (fold_binary_loc): Move
24059 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24060 * match.pd: ... here.
24061 Add (X * C1) % C2 -> 0 simplification pattern derived from
24064 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
24067 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24068 change for target/65249.
24070 2015-07-07 Paulo Matos <pmatos@broadcom.com>
24072 * symtab.c (address_matters_1): Fix typo in comment above.
24073 (can_increase_alignment_p): Likewise.
24075 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24077 * function.c (free_after_compilation): Clear PROP_cfg in
24078 f->curr_properties.
24080 2015-07-07 Richard Biener <rguenther@suse.de>
24082 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24084 (add_control_edge): Remove excessive vertical space in dumping.
24085 (process_ssa_edge_worklist): Simulate at most one statement and
24086 return whether we did. Do not simulate PHIs if they are in a
24087 BB not yet simulated.
24088 (ssa_propagate): Adjust to always drain the BB worklist whenever
24089 a BB is available there, likewise the VARYING edges list before
24090 the interesting edge list.
24092 2015-07-07 Christian Bruel <christian.bruel@st.com>
24095 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
24097 2015-07-07 Richard Biener <rguenther@suse.de>
24099 PR middle-end/66739
24100 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
24103 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24105 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
24106 modes for operands 0 and 3. Use SImode for operands 2 and 3.
24107 Copy operand 0 to a temporary if !ext_register_operand. Remove
24108 ancient extract_bit_field workaround.
24109 (insv<mode>_1): Rename from mov<mode>_insv_1.
24110 (*insvqi): Rename from *movqi_insv_2.
24111 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
24112 for renamed insvsi_1.
24113 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
24115 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
24117 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
24118 call to nvptx_reorg_subreg.
24120 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
24122 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
24123 * graphite-dependencies.c, graphite-interchange.c,
24124 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
24125 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
24128 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
24130 * match.pd: Remove element_mode inside HONOR_*.
24131 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
24132 (~X | X -> -1, ~X ^ X -> -1): Merge.
24133 * tree.c (build_each_one_cst): New function.
24134 * tree.h (build_each_one_cst): Likewise.
24136 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24138 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24141 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
24143 * config.gcc <mips*-*-*>: Add fused-madd.opt.
24144 * config/mips/mips.opt (mfused-madd): Remove.
24145 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
24146 * config/mips/mips.h (TARGET_MIPS8000): New.
24147 (ISA_HAS_FP_MADD4_MSUB4): Remove.
24148 (ISA_HAS_FP_MADDF_MSUBF): Remove.
24149 (ISA_HAS_FP_MADD3_MSUB3): Remove.
24150 (ISA_HAS_NMADD4_NMSUB4): Remove.
24151 (ISA_HAS_NMADD3_NMSUB3): Remove.
24152 (ISA_HAS_FUSED_MADD4): New.
24153 (ISA_HAS_UNFUSED_MADD4): New.
24154 (ISA_HAS_FUSED_MADDF): New.
24155 (ISA_HAS_FUSED_MADD3): New.
24156 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
24157 (*fma<mode>4_madd3) New.
24158 (*fma<mode>4_madd4) New.
24159 (*fma<mode>4_maddf) New.
24161 (*fms<mode>4_msub3) New.
24162 (*fms<mode>4_msub4) New.
24164 (*fnma<mode>4_nmadd3) New.
24165 (*fnma<mode>4_nmadd4) New.
24167 (*fnms<mode>4_nmsub3) New.
24168 (*fnms<mode>4_nmsub4) New.
24169 (*madd4<mode>) Modify to be unfused only.
24170 (*msub4<mode>) Modify to be unfused only.
24171 (*nmadd4<mode>) Modify to be unfused only.
24172 (*nmsub4<mode>) Modify to be unfused only.
24173 (*madd3<mode>) Remove.
24174 (*msub3<mode>) Remove.
24175 (*nmadd3<mode>) Remove.
24176 (*nmsub3<mode>) Remove.
24177 (*nmadd3<mode>_fastmath) Remove.
24178 (*nmsub3<mode>_fastmath) Remove.
24179 (*nmadd4<mode>_fastmath) Update condition.
24180 (*nmsub4<mode>_fastmath) Update condition.
24182 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24185 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
24186 alignment attribute, exploring one level down for records and arrays.
24188 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24190 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
24191 modes for operands 0 and 1. Use SImode for operands 2 and 3.
24192 Copy operand 1 to a temporary if !ext_register_operand. Remove
24193 ancient extract_bit_field workaround.
24194 (*extv<mode>): Rename from *mov<mode>_extv_1.
24195 (*extvqi): Rename from *movqi_extv_1.
24196 (extzv<mode>): Rename from extzv. Use SWI248 modes for
24197 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
24198 to a temporary if !ext_register_operand. Remove ancient
24199 extract_bit_field workaround.
24200 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
24201 (*extzvqi): Rename from *movqi_extzv_2.
24202 (*testqi_ext_3): Remove modes from const_int_operand predicated
24203 operands. Add "n" constraint.
24204 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
24205 operand. Add "J" constraint.
24206 (*btsq, *btrq, *btcq peephole2s): Remove mode from
24207 const_0_to_63 predicated operand.
24208 (regmode): New insn attribute.
24209 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
24210 to nonmemory_operand. Use regmode insn attribute.
24211 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
24212 (*jcc_bt<mode>_mask): Remove mode from operand 3.
24213 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
24214 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
24215 operands. Use "N" constraint instead of "n".
24217 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24219 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
24221 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24224 * config/i386/i386.c (iamcu_cost): New.
24225 (m_IAMCU): Likewise.
24226 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
24227 (processor_target_table): Add an entry for "iamcu".
24228 (processor_alias_table): Likewise.
24229 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
24230 (ix86_adjust_cost): Likewise.
24231 (ia32_multipass_dfa_lookahead): Likewise.
24232 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
24233 * config/i386/x86-tune.def: Updated for m_IAMCU.
24235 2015-07-06 Richard Biener <rguenther@suse.de>
24237 PR tree-optimization/66772
24238 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
24239 values are available in the PHI node BB when there are
24240 still unexecutable edges.
24242 2015-07-06 Richard Biener <rguenther@suse.de>
24244 PR tree-optimization/66767
24245 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
24246 Make sure to build the alignment test on a SSA name without
24247 final alignment info valid only if the alignment test
24250 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
24253 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
24254 loop start when inserting LSETUP.
24256 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24259 * config/i386/i386.c (ix86_option_override_internal): Allow
24260 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
24262 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24264 * read-md.c (decimal_string): Rename to ...
24265 (md_decimal_string): ... this.
24266 (handle_enum): Reflect this.
24268 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24271 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
24273 2015-07-06 Richard Biener <rguenther@suse.de>
24275 PR middle-end/66759
24276 * match.pd: Add missing constraint of y to REAL_CST in
24277 REAL_CST - x CMP y to y - CST CMP x simplification.
24279 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
24281 PR tree-optimization/66757
24282 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
24284 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
24285 Sandra Loosemore <sandra@codesourcery.com>
24287 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
24288 Delete extern declaration.
24289 (gprel_constant_p): Add extern declaration.
24290 * config/nios2/constraints.md ("S"): Use gprel_constant_p
24291 instead of nios2_symbol_ref_in_small_data_p.
24292 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
24293 (nios2_symbol_ref_in_small_data_p): Make static.
24294 (gprel_constant_p): Make non-static.
24296 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
24298 * doc/fragments.texi (Target Fragment): Convert debian.org
24300 * doc/install.texi (Configuration): Ditto.
24302 2015-07-05 Jakub Jelinek <jakub@redhat.com>
24304 PR tree-optimization/66718
24305 * tree-vect-stmts.c (vectorizable_call): Replace uses of
24306 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
24308 PR tree-optimization/66718
24309 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
24310 vectorizable_load, vectorizable_condition): Move vectype,
24311 nunits, ncopies computation after checking what kind of statement
24314 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24316 * target-insns.def (extv, extzv, insv): New targetm instruction
24318 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24320 * recog.c (simplify_while_replacing): Likewise.
24322 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24324 * target-insns.def (doloop_begin, doloop_end): New targetm
24325 instruction patterns.
24326 * loop-init.c: Include target.h.
24327 (pass_loop2::gate): Use the new targetm patterns instead of
24328 HAVE_*/gen_* interface.
24329 (pass_rtl_doloop::gate): Likewise.
24330 (pass_rtl_doloop::execute): Remove preprocessor condition.
24331 * hw-doloop.c: Build unconditionally.
24332 * loop-doloop.c: Likewise.
24333 (doloop_optimize): Use the new targetm patterns instead of
24334 HAVE_*/gen_* interface.
24335 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24336 * modulo-sched.c (doloop_register_get): Likewise.
24338 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24340 * target-insns.def (clear_cache): New targetm instruction pattern.
24341 * builtins.c (expand_builtin___clear_cache): Use it instead of
24342 HAVE_*/gen_* interface.
24344 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24346 * target-insns.def (allocate_stack, check_stack, probe_stack)
24347 (probe_stack_address, split_stack_prologue, split_stack_space_check):
24348 New targetm instruction patterns.
24349 * explow.c (allocate_dynamic_stack_space): Use them instead of
24350 HAVE_*/gen_* interface.
24351 (emit_stack_probe): Likewise.
24352 (probe_stack_range): Likewise.
24353 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24355 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24357 * target-insns.def (stack_protect_set, stack_protect_test): New
24358 targetm instruction patterns.
24359 * cfgexpand.c (stack_protect_prologue): Use them instead of
24360 HAVE_*/gen_* interface.
24361 * function.c (stack_protect_epilogue): Likewise.
24363 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24365 * expr.h (gen_move_insn_uncast): Delete.
24366 * expr.c (gen_move_insn_uncast): Delete.
24368 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24370 * target-insns.def (restore_stack_block, restore_stack_function)
24371 (restore_stack_nonlocal, save_stack_block, save_stack_function)
24372 (save_stack_nonlocal): New targetm instruction patterns.
24373 * builtins.c (expand_builtin_apply): Use them instead of
24374 HAVE_*/gen_* interface.
24375 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24377 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24379 * target-insns.def (trap): New targetm instruction pattern.
24380 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24382 * explow.c (allocate_dynamic_stack_space): Likewise.
24383 * ifcvt.c (find_if_header): Likewise.
24385 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24387 * target-insns.def (prefetch): New targetm instruction pattern.
24388 * tree-ssa-loop-prefetch.c: Include targeth.
24389 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24390 of HAVE_*/gen_* interface.
24391 * builtins.c (expand_builtin_prefetch): Likewise.
24392 * toplev.c (process_options): Likewise.
24394 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24396 * target-insns.def (untyped_call, untyped_return): New targetm
24397 instruction patterns.
24398 * builtins.c (expand_builtin_apply): Use them instead of
24399 HAVE_*/gen_* interface.
24400 (result_vector): Define unconditionally.
24402 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24404 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24405 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24406 (nonlocal_goto_receiver): New targetm instruction patterns.
24407 * builtins.c (expand_builtin_setjmp_setup): Use them instead
24408 of HAVE_*/gen_* interface.
24409 (expand_builtin_setjmp_receiver): Likewise.
24410 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24411 * except.c (expand_dw2_landing_pad_for_region): Likewise.
24413 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24415 * target.def: Add code_for_* hooks.
24416 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24417 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24418 * target-insns.def (casesi, tablejump): New targetm instruction
24420 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24421 (do_tablejump): Likewise.
24422 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24423 (expand_sjlj_dispatch_table): Likewise.
24424 * targhooks.c (default_case_values_threshold): Likewise.
24426 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
24428 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24429 Use rtx_insn * instead of rtx.
24430 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24431 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24432 (nios2_call_tls_get_addr): Likewise.
24433 (nios2_emit_expensive_div): Likewise.
24434 (nios2_emit_move_sequence): Change return type to bool.
24435 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24436 Change return type to bool.
24438 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24441 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24443 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
24446 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24447 of register_operand. Remove constraint.
24449 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
24451 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24452 the first argument.
24454 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
24456 * attribs.c (decl_attributes): Guard inform with the return value
24457 of the preceding warning.
24459 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24461 * doc/invoke.texi (moverride): Move to correct section.
24463 2015-07-03 Richard Biener <rguenther@suse.de>
24465 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24467 (dt_operand::gen_gimple_expr): After valueizing operands
24468 re-canonicalize operand order for commutative tree codes.
24470 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
24473 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24475 (__crc32w): Likewise.
24476 (__crc32d): Likewise.
24477 (__rdpmc): Likewise.
24478 (__rdtscp): Likewise.
24479 (_rdpmc): Likewise.
24480 (_rdtscp): Likewise.
24481 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24484 2015-07-03 Richard Biener <rguenther@suse.de>
24486 * fold-const.c (fold_mathfn_compare): Remove.
24487 (fold_inf_compare): Likewise.
24488 (fold_comparison): Move floating point comparison simplifications...
24489 * match.pd: ... to patterns here. Introduce simple_comparisons
24490 operator list and use it for patterns formerly in fold_comparison.
24492 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24494 PR tree-optimization/66119
24495 * toplev.c (process_options): Don't set up default values for
24496 the sra_max_scalarization_size_{speed,size} parameters.
24497 * tree-sra (analyze_all_variable_accesses): If no values
24498 have been set for the sra_max_scalarization_size_{speed,size}
24499 parameters, call get_move_ratio to get target defaults.
24501 2015-07-03 Richard Biener <rguenther@suse.de>
24503 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24504 * match.pd: ... here.
24506 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
24509 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24510 is not actually the default on FreeBSD.
24512 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24514 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24516 (CMPGE_8HI): Likewise.
24517 (CMPGE_4SI): Likewise.
24518 (CMPGE_2DI): Likewise.
24519 (CMPGE_U16QI): Likewise.
24520 (CMPGE_U8HI): Likewise.
24521 (CMPGE_U4SI): Likewise.
24522 (CMPGE_U2DI): Likewise.
24523 (CMPLE_16QI): Likewise.
24524 (CMPLE_8HI): Likewise.
24525 (CMPLE_4SI): Likewise.
24526 (CMPLE_2DI): Likewise.
24527 (CMPLE_U16QI): Likewise.
24528 (CMPLE_U8HI): Likewise.
24529 (CMPLE_U4SI): Likewise.
24530 (CMPLE_U2DI): Likewise.
24531 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24532 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24533 ALTIVEC_BUILTIN_VEC_CMPLE.
24534 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24535 floating-point vector modes.
24536 (vector_nlt<mode>): New define_expand.
24537 (vector_nltu<mode>): Likewise.
24538 (vector_ngt<mode>): Likewise.
24539 (vector_ngtu<mode>): Likewise.
24541 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
24543 PR rtl-optimization/66706
24544 * combine.c (make_compound_operation): If an AND of SUBREG of
24545 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24547 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
24549 * tree-pass.h (make_pass_ch_vect): New.
24550 * passes.def: Add pass_ch_vect just before pass_if_conversion.
24552 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24553 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24554 make_pass_ch_vect): New.
24555 (pass_ch): Extend ch_base.
24557 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24558 (ch_base::copy_headers): ...here.
24560 2015-07-02 Richard Biener <rguenther@suse.de>
24562 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24563 * fold-const.c (get_pointer_modulus_and_residue): Remove.
24564 (fold_binary_loc): Implement (T)ptr & CST in terms of
24565 get_pointer_alignment_1.
24566 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24567 Make sure to build the alignment test on a SSA name without
24568 final alignment info valid only after the prologue.
24570 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
24572 * config/cris/cris.md ("epilogue"): Remove condition.
24573 ("prologue"): Ditto.
24575 2015-07-02 Richard Biener <rguenther@suse.de>
24577 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24578 parameter to record a condition that is false.
24579 (record_conditions): When recording an extra NE_EXPR that is
24580 true also record a EQ_EXPR that is false.
24582 2015-07-02 Bin Cheng <bin.cheng@arm.com>
24584 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24585 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24586 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
24587 (set_iv, find_interesting_uses_address, add_candidate_1): New
24588 argument to alloc_iv.
24589 (find_interesting_uses_op, find_interesting_uses_cond): Don't
24590 duplicate struct iv.
24591 (free_loop_data): Don't free struct iv explicitly.
24592 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24594 2015-07-01 DJ Delorie <dj@redhat.com>
24596 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24598 (SUPPORTS_DISCRIMINATOR): Define.
24600 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
24603 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24604 there are no CALLs in the same pattern.
24606 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24608 PR rtl-optimization/61047
24609 * rtlanal.c (get_initial_register_offset): New function.
24610 (rtx_addr_can_trap_p_1): Check offsets of stack references.
24612 2015-07-01 Richard Biener <rguenther@suse.de>
24614 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
24615 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
24616 ~X CMP C -> X CMP' ~C to ...
24617 * match.pd: ... patterns here.
24619 2015-07-01 Nick Clifton <nickc@redhat.com>
24621 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
24622 a 16-bit value into a 20-bit memory slot.
24624 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24626 * doc/sourcebuild.texi (AArch64-specific attributes): Document
24627 "aarch64_tiny", "aarch64_small", "aarch64_large",
24628 "aarch64_little_endian", "aarch64_big_endian".
24630 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24632 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
24633 Document "aarch64_small_fpic".
24635 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24637 * configure.ac: Add check for aarch64 assembler -fpic relocation
24639 * configure: Regenerate.
24640 * config.in: Regenerate.
24641 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
24642 to -fPIC if not support of -fpic relocation modifier in assembler.
24644 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
24647 * rtl.c (classify_insn): Handle returns in PARALLELs.
24649 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
24651 PR middle-end/66633
24652 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
24653 to true if the function is nested and if not optimizing.
24654 (convert_local_omp_clauses): Initialize need_frame to true if the
24655 function contains nested functions and if not optimizing.
24657 2015-07-01 Richard Biener <rguenther@suse.de>
24659 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
24660 (X & Y) ^ Y -> ~X & Y transforms to ...
24661 * match.pd: ... here.
24663 2015-07-01 Richard Biener <rguenther@suse.de>
24665 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
24666 of converts to avoid uninteresting noise from the conversion
24667 simplifying patterns.
24669 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
24671 * config/c6x/c6x.c (try_rename_operands): Do not depend on
24672 gcc_assert evaluating its argument for side-effect.
24674 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
24677 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
24680 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
24682 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
24683 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
24684 (hash_scc): Add this_ref_p and ref_p parameters and pass them
24685 to the inner DFS walk.
24687 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24689 * target-insns.def (jump): New targetm instruction pattern.
24690 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
24691 instead of gen_jump.
24692 (fix_up_crossing_landing_pad): Likewise.
24693 (add_labels_and_missing_jumps): Likewise.
24694 (fix_crossing_conditional_branches): Likewise.
24695 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24696 (force_nonfallthru_and_redirect): Likewise.
24697 * cse.c (cse_insn): Likewise.
24698 * expmed.c (expand_divmod): Likewise.
24699 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
24700 * haifa-sched.c (init_before_recovery): Likewise.
24701 (sched_create_recovery_edges): Likewise.
24702 * ifcvt.c (find_cond_trap): Likewise.
24703 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
24704 (expand_float, expand_fix): Likewise.
24705 * stmt.c (emit_jump): Likewise.
24707 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24709 * defaults.h (HAVE_load_multiple, gen_load_multiple)
24710 (HAVE_store_multiple, gen_store_multiple): Delete.
24711 * target-insns.def (load_multiple, store_multiple): New targetm
24712 instruction patterns.
24713 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
24714 of HAVE_*/gen_* interface.
24716 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24718 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
24719 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
24720 (gen_mem_signal_fence): Delete.
24721 * target-insns.def (mem_signal_fence, mem_thread_fence)
24722 (memory_barrier): New targetm instruction patterns.
24723 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
24725 (expand_mem_signal_fence): Likewise.
24727 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24729 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
24730 * target-insns.def (epilogue, prologue, sibcall_prologue): New
24731 targetm instruction patterns.
24732 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
24734 * calls.c (expand_call): Likewise.
24735 * cfgrtl.c (cfg_layout_finalize): Likewise.
24736 * df-scan.c (df_get_entry_block_def_set): Likewise.
24737 (df_get_exit_block_use_set): Likewise.
24738 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24739 * final.c (final_start_function): Likewise.
24740 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24741 (reposition_prologue_and_epilogue_notes): Likewise.
24742 * reorg.c (find_end_label): Likewise.
24743 * toplev.c (process_options): Likewise.
24745 2015-06-30 David Malcolm <dmalcolm@redhat.com>
24747 * typed-splay-tree.h: New file.
24749 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
24752 * lra-int.h (lra_substitute_pseudo): Add a parameter.
24753 (lra_substitute_pseudo_within_insn): Ditto.
24754 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
24756 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
24757 to lra_substitute_pseudo.
24758 * lra-lives.c (process_bb_lives): Add an argument to
24759 lra_substitute_pseudo_within_insn call.
24760 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
24761 argument to lra_substitute_pseudo and
24762 lra_substitute_pseudo_within_insn calls.
24763 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
24765 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
24767 * configure: Regenerated.
24769 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
24771 * config.gcc: Support i[34567]86-*-elfiamcu target.
24772 * config/i386/iamcu.h: New.
24773 * config/i386/i386.opt: Add -miamcu.
24774 * doc/invoke.texi: Document -miamcu.
24775 * common/config/i386/i386-common.c (ix86_handle_option): Turn
24776 off x87/MMX/SSE/AVX codegen for -miamcu.
24777 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24778 __iamcu/__iamcu__ for -miamcu.
24779 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
24780 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
24781 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
24782 * config/i386/i386.c (ix86_option_override_internal): Ignore and
24783 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
24784 MCU by default. Default long double to 64-bit for Intel MCU.
24785 Turn on -freg-struct-return for Intel MCU. Issue an error when
24786 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
24788 (function_arg_advance_32): Pass value whose size is no larger
24789 than 8 bytes in registers for Intel MCU.
24790 (function_arg_32): Likewise.
24791 (ix86_return_in_memory): Return value whose size is no larger
24792 than 8 bytes in registers for Intel MCU.
24793 (iamcu_alignment): New function.
24794 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
24796 (ix86_local_alignment): Don't increase alignment for Intel MCU.
24797 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
24800 2015-06-30 Marek Polacek <polacek@redhat.com>
24802 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
24803 both operands of the resulting expression.
24805 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
24806 the final expression with the operand's type and then convert
24807 it to the type of the expression.
24809 2015-06-30 Richard Biener <rguenther@suse.de>
24811 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
24812 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
24813 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
24814 * match.pd: ... to patterns here.
24816 2015-06-30 Richard Biener <rguenther@suse.de>
24818 PR tree-optimization/66704
24819 * tree-vect-data-refs.c (vect_setup_realignment): Use
24820 make_ssa_name for non-SSA name source.
24822 2015-06-30 Jakub Jelinek <jakub@redhat.com>
24824 PR middle-end/66702
24825 * omp-low.c (simd_clone_adjust): Handle addressable linear
24826 or uniform parameters or non-gimple type uniform parameters.
24828 2015-06-30 Richard Biener <rguenther@suse.de>
24830 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
24831 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
24832 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
24833 * match.pd: ... here.
24834 Add a few cases of A - B -> A + (-B) when B "easily" negates.
24835 Move (x & y) | x -> x and friends before
24836 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
24838 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
24840 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
24841 -mfix-ut699 is not specified.
24842 (leon3_load): Rename into...
24843 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
24846 2015-06-30 Marek Polacek <polacek@redhat.com>
24848 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
24849 * match.pd: ... here.
24851 2015-06-30 Richard Biener <rguenther@suse.de>
24853 * target-insns.def (canonicalize_funcptr_for_compare): Add.
24854 * fold-const.c (build_range_check): Replace uses of
24855 HAVE_canonicalize_funcptr_for_compare.
24856 (fold_widened_comparison): Likewise.
24857 (fold_sign_changed_comparison): Likewise.
24858 * dojump.c: Include "target.h".
24859 (do_compare_and_jump): Replace uses of
24860 HAVE_canonicalize_funcptr_for_compare and
24861 gen_canonicalize_funcptr_for_compare.
24862 * expr.c (do_store_flag): Likewise.
24864 2015-06-30 Tom de Vries <tom@codesourcery.com>
24866 PR tree-optimization/66652
24867 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
24868 max_loop_iterations to determine if nit + 1 overflows.
24870 2015-06-30 Richard Biener <rguenther@suse.de>
24872 * tree-vrp.c (register_edge_assert_for_2): Also register
24873 asserts for dominating conversion results.
24875 2015-06-30 Bin Cheng <bin.cheng@arm.com>
24877 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
24878 field in struct iv.
24880 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
24883 * configure.ac: Fix filds and fildq test for 64-bit.
24884 * configure: Regenerated.
24886 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
24888 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
24889 (nvptx_reorg): Here. Keep the non-subreg pieces.
24891 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
24893 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
24894 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24896 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
24898 * config/i386/i386.md (*jcc_1): Use %! in asm template.
24899 Set attribute "length_nobnd" instead of "length".
24902 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
24904 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
24906 * config/nios2/nios2.c (nios2_delegitimize_address): Make
24907 assert less restrictive.
24909 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
24912 * cgraphunit.c (cgraph_node::finalize_function): Do not call
24913 do_warn_unused_parameter.
24914 * function.c (do_warn_unused_parameter): Move from here.
24915 * function.h (do_warn_unused_parameter): Do not declare.
24917 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24920 * gcc.target/arm/armv-sync-comp-swap.c: New.
24921 * gcc.target/arm/armv-sync-op-acquire.c: New.
24922 * gcc.target/arm/armv-sync-op-full.c: New.
24923 * gcc.target/arm/armv-sync-op-release.c: New.
24925 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24928 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24929 initial acquire barrier with final barrier.
24931 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24934 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24935 initial acquire barrier with final barrier.
24937 2015-06-29 Richard Henderson <rth@redhat.com>
24939 * config/i386/constraints.md (Bf): New constraint.
24940 * config/i386/i386-c.c (ix86_target_macros): Define
24941 __GCC_ASM_FLAG_OUTPUTS__.
24942 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24944 * doc/extend.texi (FlagOutputOperands): Document them.
24946 2015-06-29 Jiong Wang <jiong.wang@arm.com>
24948 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24949 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24951 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24952 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24953 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24954 (aarch64_symbol_context): Ditto.
24955 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24956 and use new pattern name.
24957 (aarch64_expand_mov_immediate): Ditto.
24958 (aarch64_print_operand): Ditto.
24959 (aarch64_classify_tls_symbol): Ditto.
24961 2015-06-29 Marek Polacek <polacek@redhat.com>
24962 Marc Glisse <marc.glisse@inria.fr>
24964 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24965 * match.pd: ... pattern here.
24967 2015-06-29 Tom de Vries <tom@codesourcery.com>
24969 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24970 function structure.
24972 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24974 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24975 feature description, split out the native option, add a link to
24976 the feature documentation, rearrange and slightly rewrite text.
24977 (Aarch64 options, -mcpu): Likewise.
24978 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
24979 +rdma implies Adv. SIMD.
24981 2015-06-29 Marek Polacek <polacek@redhat.com>
24984 * function.c (stack_protect_epilogue): Remove a cast to int.
24985 * doc/invoke.texi: Update -Wswitch-bool description.
24987 2015-06-29 Richard Biener <rguenther@suse.de>
24989 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24990 * fold-const.c (fold_binary_loc): Move &A - &B simplification
24991 via ptr_difference_const ...
24992 * match.pd: ... here.
24993 When matching (X ^ Y) == Y also match with swapped operands.
24995 2015-06-29 Richard Biener <rguenther@suse.de>
24997 * lto-streamer.h (LTO_major_version): Bump to 5.
24999 2015-06-29 Richard Biener <rguenther@suse.de>
25001 PR tree-optimization/66677
25002 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25003 STMT_VINFO_VEC_STMT clobbering less strict.
25005 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25007 PR middle-end/64130
25008 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25009 division, compute max and min when value ranges for dividend and
25010 divisor are available.
25012 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25013 Sandra Loosemore <sandra@codesourcery.com>
25015 * regrename.h (regrename_do_replace): Change to return bool.
25016 * regrename.c (rename_chains): Check return value of
25017 regname_do_replace.
25018 (regrename_do_replace): Re-validate the modified insns and
25019 return bool status.
25020 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25021 Update to match rename_chains changes.
25022 * config/c6x/c6x.c (try_rename_operands): Assert that
25023 regrename_do_replace returns true.
25025 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
25027 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25028 operand 2 here. Use copy_addr_to_reg to copy non-index
25029 register operand 2 to a temporary.
25030 (<mode>_stx): Ditto for operand 1.
25031 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25032 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25033 (ix86_store_bounds): Ditto.
25035 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
25037 * print-tree.c (print_node) [TREE_VEC]: Print its length.
25039 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
25041 * gimple.c (gimple_call_set_fndecl): Remove.
25042 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25043 build1_loc directly instead of build_fold_addr_expr_loc.
25045 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25047 * hash-map.h (hash_map::traverse): Use the definition of the
25048 Key typedef rather than the typedef itself.
25050 2015-06-26 Martin Jambor <mjambor@suse.cz>
25053 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25054 NULL instead of calling dump_enabled_p.
25056 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25058 * config/aarch64/aarch64.opt: (override): New.
25059 * doc/invoke.texi (override): Document.
25060 * config/aarch64/aarch64.c (aarch64_flag_desc): New
25061 (aarch64_fusible_pairs): Likewise.
25062 (aarch64_tuning_flags): Likewise.
25063 (aarch64_tuning_override_function): Likewise.
25064 (aarch64_tuning_override_functions): Likewise.
25065 (aarch64_parse_one_option_token): Likewise.
25066 (aarch64_parse_boolean_options): Likewise.
25067 (aarch64_parse_fuse_string): Likewise.
25068 (aarch64_parse_tune_string): Likewise.
25069 (aarch64_parse_one_override_token): Likewise.
25070 (aarch64_parse_override_string): Likewise.
25071 (aarch64_override_options): Parse the -override string if it
25074 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25076 * config/aarch64/aarch64-protos.h (tune_params): Remove
25077 const from members.
25078 (aarch64_tune_params): Remove const, change to no longer be
25080 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25081 change to no longer be a pointer, initialize to generic_tunings.
25082 (aarch64_min_divisions_for_recip_mul): Change dereference of
25083 aarch64_tune_params to member access.
25084 (aarch64_reassociation_width): Likewise.
25085 (aarch64_rtx_mult_cost): Likewise.
25086 (aarch64_address_cost): Likewise.
25087 (aarch64_branch_cost): Likewise.
25088 (aarch64_rtx_costs): Likewise.
25089 (aarch64_register_move_cost): Likewise.
25090 (aarch64_memory_move_cost): Likewise.
25091 (aarch64_sched_issue_rate): Likewise.
25092 (aarch64_builtin_vectorization_cost): Likewise.
25093 (aarch64_override_options): Take a copy of the selected tuning
25094 struct in to aarch64_tune_params, rather than just setting
25095 a pointer, change dereferences of aarch64_tune_params to member
25097 (aarch64_override_options_after_change): Change dereferences of
25098 aarch64_tune_params to member access.
25099 (aarch64_macro_fusion_p): Likewise.
25100 (aarch_macro_fusion_pair_p): Likewise.
25101 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
25103 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25105 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
25106 (aarch64_tune_flags): Likewise.
25107 (AARCH64_TUNE_FMA_STEERING): Likewise.
25108 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
25109 to AARCH64_FL_USE_FMA_STEERING_PASS.
25110 (cortex-a57.cortex-a53): Likewise.
25111 (cortex-a72): Use cortexa72_tunings.
25112 (cortex-a72.cortex-a53): Likewise.
25113 (exynos-m1): Likewise.
25114 * config/aarch64/aarch64-protos.h (tune_params): Add
25115 a field: extra_tuning_flags.
25116 * config/aarch64/aarch64-tuning-flags.def: New.
25117 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
25118 (aarch64_extra_tuning_flags): Likewise.
25119 (aarch64_tune_params): Declare here.
25120 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
25121 (cortexa53_tunings): Likewise.
25122 (cortexa57_tunings): Likewise.
25123 (thunderx_tunings): Likewise.
25124 (xgene1_tunings): Likewise.
25125 (cortexa72_tunings): New.
25126 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
25127 (gate): Check against aarch64_tune_params.
25128 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
25131 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25133 * config/aarch64/aarch64-fusion-pairs.def: New.
25134 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
25135 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
25136 aarch64_fusion_pairs.
25137 (AARCH64_FUSE_MOV_MOVK): Likewise.
25138 (AARCH64_FUSE_ADRP_ADD): Likewise.
25139 (AARCH64_FUSE_MOVK_MOVK): Likewise.
25140 (AARCH64_FUSE_ADRP_LDR): Likewise.
25141 (AARCH64_FUSE_CMP_BRANCH): Likewise.
25143 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25145 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
25146 SYMBOL_SMALL_GOT_28K.
25147 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
25148 relocation modifiers.
25149 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
25150 (ldr_got_small_28k_<mode>): New.
25151 (ldr_got_small_28k_sidi): New.
25152 * config/aarch64/iterators.md (got_modifier): New mode iterator.
25153 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
25154 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
25155 SYMBOL_SMALL_GOT_28K.
25156 (aarch64_rtx_costs): Add costs for new instruction sequences.
25157 (initialize_aarch64_code_model): Initialize new model.
25158 (aarch64_classify_symbol): Recognize new model and new symbol classification.
25159 (aarch64_asm_preferred_eh_data_format): Support new model.
25160 (aarch64_load_symref_appropriately): Generate new instruction
25161 sequences for -fpic.
25162 (TARGET_USE_PSEUDO_PIC_REG): New definition.
25163 (aarch64_use_pseudo_pic_reg): New function.
25165 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25167 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
25168 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
25169 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
25170 (aarch64_expand_mov_immediate): Ditto.
25171 (aarch64_print_operand): Ditto.
25172 (aarch64_classify_symbol): Ditto.
25174 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
25176 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
25178 2015-06-26 Bin Cheng <bin.cheng@arm.com>
25181 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
25182 assertion failed. Remove assertion itself.
25184 2015-06-26 Richard Biener <rguenther@suse.de>
25186 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
25187 and -A CMP CST -> A CMP -CST which is redundant with a pattern
25189 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
25190 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
25191 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
25192 * match.pd: ... patterns here.
25194 2015-06-26 Marek Polacek <polacek@redhat.com>
25196 * match.pd ((x | y) & ~(x & y) -> x ^ y,
25197 (x | y) & (~x ^ y) -> x & y): New patterns.
25199 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25201 * rtl.h (emit): Add an optional boolean parameter to control
25202 whether barriers are emitted.
25203 * emit-rtl.c (emit): Likewise.
25204 * gensupport.c (get_emit_function): Return null rather than "emit".
25205 * genemit.c (gen_emit_seq): Handle the null return value.
25206 Don't emit barriers after the final instruction in the sequence.
25207 * gentarget-def.c (main): Don't emit barriers after the instruction.
25209 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25211 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
25212 TARGET_UNIFIED_ASM.
25214 2015-06-26 Richard Biener <rguenther@suse.de>
25216 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
25218 2015-06-26 Richard Biener <rguenther@suse.de>
25220 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
25221 irrespective on whether the inner operation has a single use
25222 of both off are constant.
25224 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
25225 Segher Boessenkool <segher@kernel.crashing.org>
25228 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
25229 before doing PUT_MODE or PUT_CODE on operands to avoid
25230 in-place RTX modification.
25232 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25234 * gentarget-def.c (def_target_insn): Cast return of strtol to
25237 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25239 * gimple.h (gimple_call_set_fn): Move inline function.
25240 * gimple.c (gimple_call_set_fn): Relocate here.
25242 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
25246 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
25247 the replacement insn will work.
25249 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25251 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
25254 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25256 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
25257 * cgraph.h: Include ipa-ref.h and plugin-api.h.
25258 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
25259 (symtab_node::address_can_be_compared_p): Move function.
25260 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
25262 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
25263 * auto-profile.c: Likewise.
25264 * bb-reorder.c: Likewise.
25265 * builtins.c: Likewise.
25266 * calls.c: Likewise.
25267 * cfgexpand.c: Likewise.
25268 * cgraphbuild.c: Likewise.
25269 * cgraphclones.c: Likewise.
25270 * cgraphunit.c: Likewise.
25271 * combine.c: Likewise.
25272 * coverage.c: Likewise.
25273 * data-streamer-in.c: Likewise.
25274 * data-streamer-out.c: Likewise.
25275 * data-streamer.c: Likewise.
25276 * dbxout.c: Likewise.
25277 * dwarf2out.c: Likewise.
25278 * except.c: Likewise.
25279 * expr.c: Likewise.
25280 * final.c: Likewise.
25281 * fold-const.c: Likewise.
25282 * ggc-page.c: Likewise.
25283 * gimple-fold.c: Likewise.
25284 * gimple-iterator.c: Likewise.
25285 * gimple-pretty-print.c: Likewise.
25286 * gimple-streamer-in.c: Likewise.
25287 * gimple-streamer-out.c: Likewise.
25288 * gimple.c: Likewise.
25289 * gimplify.c: Likewise.
25290 * ipa-chkp.c: Likewise.
25291 * ipa-comdats.c: Likewise.
25292 * ipa-cp.c: Likewise.
25293 * ipa-devirt.c: Likewise.
25294 * ipa-icf-gimple.c: Likewise.
25295 * ipa-icf.c: Likewise.
25296 * ipa-inline-analysis.c: Likewise.
25297 * ipa-inline-transform.c: Likewise.
25298 * ipa-inline.c: Likewise.
25299 * ipa-polymorphic-call.c: Likewise.
25300 * ipa-profile.c: Likewise.
25301 * ipa-prop.c: Likewise.
25302 * ipa-pure-const.c: Likewise.
25303 * ipa-ref.c: Likewise.
25304 * ipa-reference.c: Likewise.
25305 * ipa-split.c: Likewise.
25306 * ipa-utils.c: Likewise.
25307 * ipa-visibility.c: Likewise.
25309 * langhooks.c: Likewise.
25310 * lto-cgraph.c: Likewise.
25311 * lto-compress.c: Likewise.
25312 * lto-opts.c: Likewise.
25313 * lto-section-in.c: Likewise.
25314 * lto-section-out.c: Likewise.
25315 * lto-streamer-in.c: Likewise.
25316 * lto-streamer-out.c: Likewise.
25317 * lto-streamer.c: Likewise.
25318 * omp-low.c: Likewise.
25319 * opts-global.c: Likewise.
25320 * passes.c: Likewise.
25321 * predict.c: Likewise.
25322 * print-tree.c: Likewise.
25323 * profile.c: Likewise.
25325 * sanopt.c: Likewise.
25326 * stor-layout.c: Likewise.
25327 * symtab.c: Likewise.
25328 * toplev.c: Likewise.
25329 * trans-mem.c: Likewise.
25330 * tree-cfg.c: Likewise.
25331 * tree-chkp.c: Likewise.
25332 * tree-eh.c: Likewise.
25333 * tree-emutls.c: Likewise.
25334 * tree-inline.c: Likewise.
25335 * tree-nested.c: Likewise.
25336 * tree-parloops.c: Likewise.
25337 * tree-pretty-print.c: Likewise.
25338 * tree-profile.c: Likewise.
25339 * tree-sra.c: Likewise.
25340 * tree-ssa-alias.c: Likewise.
25341 * tree-ssa-live.c: Likewise.
25342 * tree-ssa-loop-ivcanon.c: Likewise.
25343 * tree-ssa-loop-ivopts.c: Likewise.
25344 * tree-ssa-pre.c: Likewise.
25345 * tree-ssa-sccvn.c: Likewise.
25346 * tree-ssa-strlen.c: Likewise.
25347 * tree-ssa-structalias.c: Likewise.
25348 * tree-streamer-in.c: Likewise.
25349 * tree-streamer-out.c: Likewise.
25350 * tree-streamer.c: Likewise.
25351 * tree-switch-conversion.c: Likewise.
25352 * tree-tailcall.c: Likewise.
25353 * tree-vect-data-refs.c: Likewise.
25354 * tree-vect-stmts.c: Likewise.
25355 * tree-vectorizer.c: Likewise.
25356 * tree.c: Likewise.
25357 * tsan.c: Likewise.
25358 * ubsan.c: Likewise.
25359 * value-prof.c: Likewise.
25360 * varasm.c: Likewise.
25361 * varpool.c: Likewise.
25362 * config/arm/arm.c: Likewise.
25363 * config/bfin/bfin.c: Likewise.
25364 * config/c6x/c6x.c: Likewise.
25365 * config/cris/cris.c: Likewise.
25366 * config/darwin-c.c: Likewise.
25367 * config/darwin.c: Likewise.
25368 * config/i386/i386.c: Likewise.
25369 * config/i386/winnt.c: Likewise.
25370 * config/microblaze/microblaze.c: Likewise.
25371 * config/mips/mips.c: Likewise.
25372 * config/rs6000/rs6000.c: Likewise.
25373 * config/rx/rx.c: Likewise.
25374 * config/s390/s390.c: Likewise.
25375 * config/tilegx/mul-tables.c: Likewise.
25377 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25379 * config/aarch64/aarch64.c, config/alpha/alpha.c,
25380 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25381 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25382 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25383 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25384 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25385 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25386 config/microblaze/microblaze.c, config/mips/mips.c,
25387 config/mmix/mmix.c, config/mn10300/mn10300.c,
25388 config/moxie/moxie.c, config/msp430/msp430.c,
25389 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25390 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25391 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25392 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25393 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25394 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25395 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25396 target-def.h include.
25397 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
25399 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25401 * Makefile.in (TARGET_DEF): Add target-insns.def.
25402 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25403 (build/gentarget-def.o): New rule.
25404 (genprogrtl): Add target-def.
25405 * target-insns.def, gentarget-def.c: New files.
25406 * target.def: Add targetm.have_* and targetm.gen_* hooks,
25407 based on the contents of target-insns.def.
25408 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25409 (HAVE_return, gen_return): Delete.
25410 * target-def.h: Include insn-target-def.h.
25411 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25412 instead of direct calls. Rely on them to do the appropriate assertions.
25413 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
25414 (convert_jumps_to_returns): Use targetm interface instead of
25416 (thread_prologue_and_epilogue_insns): Likewise.
25417 * reorg.c (find_end_label, dbr_schedule): Likewise.
25418 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25419 * shrink-wrap.c (convert_to_simple_return): Likewise.
25420 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25424 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25425 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25426 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25427 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25428 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25429 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25430 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25431 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25432 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25433 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25434 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25435 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25436 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25437 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25438 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25439 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25442 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25444 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25445 (unbounded_int_hashmap_traits::key_type): Likewise.
25446 * hash-map.h (hash_map): Get the key type from the traits.
25447 * hash-traits.h (default_hash_traits): By default, inherit from the
25448 template parameter.
25449 * alias.c (alias_set_traits): Delete.
25450 (alias_set_entry_d::children): Use alias_set_hash as the first
25451 template parameter.
25452 (record_alias_subset): Update accordingly.
25453 * except.c (tree_hash_traits): Delete.
25454 (type_to_runtime_map): Use tree_hash as the first template parameter.
25455 (init_eh): Update accordingly.
25456 * genmatch.c (capture_id_map_hasher): Delete.
25457 (cid_map_t): Use nofree_string_hash as first template parameter.
25458 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25459 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25460 Use symbol_compare_hash as the first template parameter in
25461 subdivide_hash_map.
25462 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25463 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25464 template parameter.
25465 * passes.c (pass_registry_hasher): Delete.
25466 (name_to_pass_map): Use nofree_string_hash as the first template
25468 (register_pass_name): Update accordingly.
25469 * sanopt.c (sanopt_tree_map_traits): Delete.
25470 (sanopt_tree_triplet_map_traits): Delete.
25471 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25472 template parameter.
25473 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25474 the first template parameter.
25475 * sese.c (rename_map_hasher): Delete.
25476 (rename_map_type): Use tree_ssa_name_hash as the first template
25478 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25479 (function_summary::m_map): Use map_hash as the first template
25481 (function_summary::release): Update accordingly.
25482 * tree-if-conv.c (phi_args_hash_traits): Delete.
25483 (predicate_scalar_phi): Use tree_operand_hash as the first template
25484 parameter to phi_arg_map.
25485 * tree-inline.h (dependence_hasher): Delete.
25486 (copy_body_data::dependence_map): Use dependence_hash as the first
25487 template parameter.
25488 * tree-inline.c (remap_dependence_clique): Update accordingly.
25489 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25490 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25492 (addr_stridxptr): Update accordingly.
25493 * value-prof.c (profile_id_traits): Delete.
25494 (cgraph_node_map): Use profile_id_hash as the first template
25496 (init_node_map): Update accordingly.
25497 * config/alpha/alpha.c (string_traits): Delete.
25498 (machine_function::links): Use nofree_string_hash as the first
25499 template parameter.
25500 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25501 * config/m32c/m32c.c (pragma_traits): Delete.
25502 (pragma_htab): Use nofree_string_hash as the first template parameter.
25503 (m32c_note_pragma_address): Update accordingly.
25504 * config/mep/mep.c (pragma_traits): Delete.
25505 (pragma_htab): Use nofree_string_hash as the first template parameter.
25506 (mep_note_pragma_flag): Update accordingly.
25507 * config/mips/mips.c (mips16_flip_traits): Delete.
25508 (mflip_mips16_htab): Use nofree_string_hash as the first template
25510 (mflip_mips16_use_mips16_p): Update accordingly.
25511 (local_alias_traits): Delete.
25512 (mips16_local_aliases): Use nofree_string_hash as the first template
25514 (mips16_local_alias): Update accordingly.
25516 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25518 * hash-map-traits.h (default_hashmap_traits): Delete.
25520 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25522 * hash-map-traits.h (unbounded_hashmap_traits): New class.
25523 (unbounded_int_hashmap_traits): Likewise.
25524 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25526 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25528 * ipa-icf.h (symbol_compare_hash): New class.
25529 (symbol_compare_hashmap_traits): Use it.
25530 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25531 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25532 (mem_alloc_description::reverse_mem_map_t): Remove redundant
25533 default_hashmap_traits.
25534 * sanopt.c (sanopt_tree_triplet_hash): New class.
25535 (sanopt_tree_triplet_map_traits): Use it.
25537 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25539 * gengtype-parse.c (require_template_declaration): Allow '+' in
25540 template parameters. Consolidate cases.
25541 * hash-traits.h (int_hash): New class.
25542 * alias.c (alias_set_hash): New structure.
25543 (alias_set_traits): Use it.
25544 * symbol-summary.h (function_summary::map_hash): New class.
25545 (function_summary::summary_hashmap_traits): Use it.
25546 * tree-inline.h (dependence_hash): New class.
25547 (dependence_hasher): Use it.
25548 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25549 * value-prof.c (profile_id_hash): New class.
25550 (profile_id_traits): Use it.
25552 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25554 * config/mips/mips.c (mips16_flip_traits): Use it.
25555 (local_alias_traits, mips16_local_aliases): Convert from a map of
25556 rtxes to a map of symbol names.
25557 (mips16_local_alias): Update accordingly.
25559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25561 * hash-traits.h (string_hash, nofree_string_hash): New classes.
25562 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25563 * passes.c (pass_registry_hasher): Likewise.
25564 * config/alpha/alpha.c (string_traits): Likewise.
25565 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25566 * config/m32c/m32c.c (pragma_traits): Likewise.
25567 * config/mep/mep.c (pragma_traits): Likewise.
25569 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25571 * tree-hash-traits.h (tree_hash): New class.
25572 * except.c: Include tree-hash-traits.h.
25573 (tree_hash_traits): Use tree_hash.
25575 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25577 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25578 * sese.c: Include tree-hash-traits.h.
25579 (rename_map_hasher): Use tree_ssa_name_hasher.
25581 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25583 * tree-hash-traits.h (tree_decl_hash): New class.
25584 * tree-ssa-strlen.c: Include tree-hash-traits.h.
25585 (stridxlist_hash_traits): Use tree_decl_hash.
25587 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25589 * tree-hash-traits.h: New file.
25590 (tree_operand_hash): New class.
25591 * sanopt.c: Include tree-hash-traits.h.
25592 (sanopt_tree_map_traits): Use tree_operand_hash.
25593 * tree-if-conv.c: Include tree-hash-traits.h.
25594 (phi_args_hash_traits): Use tree_operand_hash.
25595 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25596 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25598 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25600 * hash-map-traits.h: Include hash-traits.h.
25601 (simple_hashmap_traits): New class.
25602 * mem-stats.h (hash_map): Change the default traits to
25603 simple_hashmap_traits<default_hash_traits<Key> >.
25605 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25607 * hash-table.h: Update comments.
25609 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25611 * hash-traits.h (default_hash_traits): New structure.
25612 * hash-set.h (default_hashset_traits): Delete.
25613 (hash_set): Use default_hash_traits<Key> instead of
25614 default_hashset_traits. Delete hash_entry type and use Key directly.
25615 * ipa-devirt.c (pair_traits): Delete.
25616 (default_hash_traits <type_pair>): Override.
25617 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
25618 (odr_types_equivalent_p, add_type_duplicate): Likewise.
25620 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25622 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
25624 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25626 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
25627 (has_is_empty, is_empty_helper): Delete.
25628 (has_mark_deleted, mark_deleted_helper): Delete.
25629 (has_mark_empty, mark_empty_helper): Delete.
25630 (hash_table::is_deleted): Call the Descriptor unconditionally.
25631 (hash_table::is_empty): Likewise.
25632 (hash_table::mark_deleted): Likewise.
25633 (hash_table::mark_empty): Likewise.
25635 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25637 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
25638 redundant typedefs and members.
25639 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
25640 redundant typedefs.
25641 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
25642 * ipa-devirt.c (odr_name_hasher): Likewise.
25643 (polymorphic_call_target_hasher): Likewise.
25644 * ira-costs.c (cost_classes_hasher): Likewise.
25645 * statistics.c (stats_counter_hasher): Likewise.
25646 * trans-mem.c (log_entry_hasher): Likewise.
25647 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25648 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
25649 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
25650 * var-tracking.c (variable_hasher): Likewise.
25651 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
25652 Remove redundant typedefs and members.
25654 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25656 * hash-traits.h (ggc_cache_hasher): Rename to...
25657 (ggc_cache_remove): ...this and remove typedefs.
25658 (ggc_cache_ptr_hash): New class.
25659 * hash-table.h: Update commentary.
25660 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
25661 rather than ggc_cache_hasher.
25662 (const_wide_int_hasher, reg_attr_hasher): Likewise.
25663 (const_double_hasher, const_fixed_hasher): Likewise.
25664 * function.c (insn_cache_hasher): Likewise.
25665 * trans-mem.c (tm_wrapper_hasher): Likewise.
25666 * tree.h (tree_decl_map_cache_hasher): Likewise.
25667 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
25668 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
25669 * ubsan.c (tree_type_map_cache_hasher): Likewise.
25670 * varasm.c (tm_clone_hasher): Likewise.
25671 * config/i386/i386.c (dllimport_hasher): Likewise.
25672 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
25673 (tree_hasher): Likewise.
25675 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25677 * hash-traits.h (ggc_hasher): Rename to...
25678 (ggc_remover): ...this and remove typedefs.
25679 (ggc_cache_hasher): Update accordingly. Add typedefs.
25680 (ggc_ptr_hash): New class.
25681 * hash-table.h: Update comment.
25682 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
25684 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
25685 (tree_descriptor_hasher): Likewise.
25686 * cgraph.c (function_version_hasher): Likewise.
25687 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
25688 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
25689 (dw_loc_list_hasher, addr_hasher): Likewise.
25690 * function.h (used_type_hasher): Likewise.
25691 * function.c (temp_address_hasher): Likewise.
25692 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
25693 * libfuncs.h (libfunc_hasher): Likewise.
25694 * lto-streamer.h (decl_state_hasher): Likewise.
25695 * optabs.c (libfunc_decl_hasher): Likewise.
25696 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
25697 * varasm.c (section_hasher, object_block_hasher): Likewise.
25698 (const_rtx_desc_hasher): Likewise.
25699 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
25700 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
25702 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25704 * hash-traits.h (free_ptr_hash): New class.
25705 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
25706 rather than typed_free_remove. Remove redudant typedefs.
25707 (external_ref_hasher): Likewise.
25708 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
25709 (ehspec_hasher): Likewise.
25710 * ggc-common.c (saving_hasher): Likewise.
25711 * gimplify.c (gimplify_hasher): Likewise.
25712 * haifa-sched.c (delay_i2_hasher): Likewise.
25713 * loop-invariant.c (invariant_expr_hasher): Likewise.
25714 * loop-iv.c (biv_entry_hasher): Likewise.
25715 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
25716 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
25717 * tree-cfg.c (locus_discrim_hasher): Likewise.
25718 * tree-eh.c (finally_tree_hasher): Likewise.
25719 * tree-into-ssa.c (var_info_hasher): Likewise.
25720 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
25721 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
25722 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
25723 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
25724 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
25725 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
25726 (shared_bitmap_hasher): Likewise.
25727 * tree-ssa-threadupdate.c (redirection_data): Likewise.
25728 * tree-vectorizer.h (peel_info_hasher): Likewise.
25729 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
25730 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
25732 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25734 * hash-table.h: Update comments.
25735 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
25736 (nofree_ptr_hash): New class.
25737 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
25738 than typed_noop_remove. Remove redudant typedefs.
25739 * attribs.c (attribute_hasher): Likewise.
25740 * cfg.c (bb_copy_hasher): Likewise.
25741 * cselib.c (cselib_hasher): Likewise.
25742 * dse.c (invariant_group_base_hasher): Likewise.
25743 * dwarf2cfi.c (trace_info_hasher): Likewise.
25744 * dwarf2out.c (macinfo_entry_hasher): Likewise.
25745 (comdat_type_hasher, loc_list_hasher): Likewise.
25746 * gcse.c (pre_ldst_expr_hasher): Likewise.
25747 * genmatch.c (id_base): Likewise.
25748 * genrecog.c (test_pattern_hasher): Likewise.
25749 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
25750 * haifa-sched.c (delay_i1_hasher): Likewise.
25751 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
25752 * ipa-icf.h (congruence_class_group_hash): Likewise.
25753 * ipa-profile.c (histogram_hash): Likewise.
25754 * ira-color.c (allocno_hard_regs_hasher): Likewise.
25755 * lto-streamer.h (string_slot_hasher): Likewise.
25756 * lto-streamer.c (tree_entry_hasher): Likewise.
25757 * plugin.c (event_hasher): Likewise.
25758 * postreload-gcse.c (expr_hasher): Likewise.
25759 * store-motion.c (st_expr_hasher): Likewise.
25760 * tree-sra.c (uid_decl_hasher): Likewise.
25761 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
25762 (ssa_name_var_hash): Likewise.
25763 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
25764 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
25765 * tree-ssa-pre.c (pre_expr_d): Likewise.
25766 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
25767 * vtable-verify.h (registration_hasher): Likewise.
25768 * vtable-verify.c (vtbl_map_hasher): Likewise.
25769 * config/arm/arm.c (libcall_hasher): Likewise.
25770 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
25771 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
25772 * config/sol2.c (comdat_entry_hasher): Likewise.
25773 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
25774 (print_fold_checksum, fold_checksum_tree): Likewise.
25775 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
25776 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
25777 (fold_build_call_array_loc): Likewise.
25778 * tree-ssa-ccp.c (gimple_htab): Likewise.
25779 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
25780 rather than pointer_type.
25782 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25784 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
25785 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
25787 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25789 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
25790 (ggc_hasher::ggc_mx): Likewise.
25791 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
25792 that duplicate ggc_hasher ones.
25794 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25796 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
25797 (gt_cleare_cache): Check here for deleted and empty entries.
25798 Replace handle_cache_entry with a call to keep_cache_entry.
25799 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
25800 (ggc_cache_hasher::keep_cache_entry): New function.
25801 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
25802 (tm_wrapper_hasher::keep_cache_entry): New function.
25803 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
25804 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25805 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
25806 (type_cache_hasher::keep_cache_entry): New function.
25807 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
25808 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25809 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
25810 (tree_type_map_cache_hasher::keep_cache_entry): New function.
25811 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
25812 (tm_clone_hasher::keep_cache_entry): New function.
25813 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
25814 (dllimport_hasher::keep_cache_entry): New function.
25816 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25818 * hash-table.h: Include hash-traits.h.
25819 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
25820 (ggc_cache_hasher): Move to...
25821 * hash-traits.h: ...this new file.
25823 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25825 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
25826 struct cl_optimization.
25827 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
25828 * tree.c (make_node_stat): Allocate cl_optimization struct.
25829 (copy_node_stat): Allocate and copy cl_optimization struct.
25831 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25833 * function.h (struct incoming_args): Move struct.
25834 (pass_by_reference, reference_callee_copied): Remove prototypes.
25835 * emit-rtl.h (struct incoming_args): Relocate struct here.
25836 * calls.h (pass_by_reference, reference_callee_copied): Relocate
25838 * function.c (pass_by_reference, reference_callee_copied): Move.
25839 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
25840 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
25841 * ipa-chkp.c: Include calls.h.
25843 2015-06-25 Andrew Macleod <amacleod@redhat.com>
25845 * alias.h (alias_set_type): Move typedef.
25846 * coretypes.h (alias_set_type): Relocate typedef here.
25847 * rtl.h: Don't include alias.h.
25849 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25851 * cgraph.h (cgraph_rtl_info): Move to rtl.h
25852 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
25854 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
25855 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
25857 * calls.c: Include hard-reg-set.h before rtl.h.
25860 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25861 Vladimir Makarov <vmakarov@redhat.com>
25863 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
25866 2015-06-25 Richard Biener <rguenther@suse.de>
25868 * fold-const.c (fold_binary_loc): Move simplification of
25869 (X <<>> C1) & C2 ...
25870 * match.pd: ... here.
25872 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
25874 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
25876 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25878 * match.pd: Add patterns for vec_conds between 1 and 0.
25880 2015-06-25 Richard Biener <rguenther@suse.de>
25882 * tree-vect-stmts.c (vectorizable_conversion): Do not set
25883 STMT_VINFO_VEC_STMT for SLP.
25884 (vectorizable_store): Likewise.
25885 (vectorizable_load): Likewise.
25886 (vect_transform_stmt): Catch SLP vectorization clobbering
25887 STMT_VINFO_VEC_STMT.
25889 2015-06-25 Richard Biener <rguenther@suse.de>
25891 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
25893 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
25894 cleanup resulting dead code and parameters.
25895 (vect_transform_slp_perm_load): Adjust.
25897 2015-06-25 Nick Clifton <nickc@redhat.com>
25899 * config/bfin/bfin.c (bfin_expand_prologue): Set
25900 current_function_static_stack_size if flag_stack_usage_info is set.
25901 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
25902 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
25903 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
25904 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
25906 2015-06-25 Tom de Vries <tom@codesourcery.com>
25908 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
25909 comment that the generated IV is unsigned.
25911 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25914 * config/arm/arm.c (arm_dbx_register_number): Return
25915 DWARF_FRAME_REGISTERS by default.
25917 2015-06-25 Tom de Vries <tom@codesourcery.com>
25919 * dominance.c (calculate_dominance_info): Fix verify_dominators call
25920 argument. Call verify_dominator when reusing dominator info.
25922 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
25925 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25926 an additional element of the unspec vector. Modify indices
25928 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25929 * config/sh/sh.c (prepare_move_operands): Pass incremented
25930 const_int to gen_GOTaddr2picreg.
25931 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25933 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25935 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25936 Condition on TARGET_FLOAT.
25938 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25940 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25943 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25945 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25947 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25948 aarch64_err_no_fpadvsimd.
25950 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25951 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25952 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25953 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25954 Turn error into assert, test TARGET_FLOAT.
25955 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25958 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
25961 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25963 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
25965 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25967 2015-06-24 Renlin Li <renlin.li@arm.com>
25969 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25970 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25972 2015-06-24 Richard Biener <rguenther@suse.de>
25974 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25976 (lower_opt_convert): Support lowering of conditional view_convert.
25977 (parser::parse_operation): Likewise.
25978 (parser::parse_for): Likewise.
25980 2015-06-24 Renlin Li <renlin.li@arm.com>
25982 * varasm.c (emit_local): Use unsigned int for align variable.
25984 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25987 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25988 for negative numbers.
25990 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25992 PR rtl-optimization/66306
25993 * reload.c (find_reloads): Swap the match_dup info for
25994 commutative operands.
25996 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25998 * config/s390/vx-builtins.md
25999 ("vec_scatter_element<mode>_<non_vec_int>")
26000 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26001 attribute with bhfgq.
26003 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26005 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26007 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26009 * config/s390/s390-builtin-types.def: Add flag to indicate the
26010 options under which the function type is needed.
26011 * config/s390/s390-builtins.def: Add flag to indicate the options
26012 under which the builtin is enabled.
26013 * config/s390/s390-builtins.h: Add flags parameter to macro
26015 (bflags_for_builtin): New function.
26016 (flags_for_builtin): Renamed to ...
26017 (opflags_for_builtin): ... this.
26018 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26019 flags_for_builtin to bflags_for_builtin and
26020 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26021 * config/s390/s390.c: Add initialization of bflags_builtin and
26022 opflags_builtin arrays.
26023 Remove code for flags_builtin.
26024 (s390_init_builtins): Only create builtin function types if one of
26025 their flags is active.
26026 Only create builtins if all of their flags are active.
26027 (s390_expand_builtin): Rename flags_for_builtin to
26028 opflags_for_builtin.
26030 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26032 * config/s390/vecintrin.h: Remove internal builtins.
26034 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26036 * config/s390/s390.c (s390_secondary_reload): Fix check for
26037 GENERAL_REGS register class.
26039 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26041 * config/s390/s390.c (s390_support_vector_misalignment): Call
26042 default implementation for !TARGET_VX.
26044 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26046 * config/s390/s390.c (s390_legitimate_constant_p): Add
26049 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26051 * config/s390/s390.c (s390_vector_abi): New variable definition.
26052 (s390_check_type_for_vector_abi): New function.
26053 (TARGET_ASM_FILE_END): New macro definition.
26054 (s390_asm_file_end): New function.
26055 (s390_function_arg): Call s390_check_type_for_vector_abi.
26056 (s390_gimplify_va_arg): Likewise.
26057 * configure: Regenerate.
26058 * configure.ac: Check for .gnu_attribute Binutils feature.
26060 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
26063 * config/bfin/bfin.c (hwloop_optimize): Initialize
26064 JUMP_LABEL for newly created jump.
26066 2015-06-23 Tristan Gingold <gingold@adacore.com>
26068 * collect-utils.c (collect_wait): Unlink the response file here
26070 (do_wait): ...here.
26071 (utils_cleanup): ...and here.
26073 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
26075 * df-scan.c: Don't include target-def.h.
26076 * targhooks.c: Likewise.
26077 * config/arm/arm-c.c: Likewise.
26078 * config/i386/i386-c.c: Likewise.
26079 * config/nds32/nds32-cost.c: Likewise.
26080 * config/nds32/nds32-fp-as-gp.c: Likewise.
26081 * config/nds32/nds32-intrinsic.c: Likewise.
26082 * config/nds32/nds32-isr.c: Likewise.
26083 * config/nds32/nds32-md-auxiliary.c: Likewise.
26084 * config/nds32/nds32-memory-manipulation.c: Likewise.
26085 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26086 * config/nds32/nds32-predicates.c: Likewise.
26088 2015-06-23 Richard Biener <rguenther@suse.de>
26090 PR tree-optimization/66636
26091 * tree-vect-stmts.c (vectorizable_store): Properly compute the
26092 def type for further defs for strided stores.
26094 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
26096 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
26097 conditional selects.
26098 (setcc_int<mode>, setcc_float<mode>): Reformat.
26100 2015-06-23 Marek Polacek <polacek@redhat.com>
26102 * match.pd ((x + y) - (x | y) -> x & y,
26103 (x + y) - (x & y) -> x | y): New patterns.
26105 2015-06-23 Ludovic Courtès <ludo@gnu.org>
26108 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
26109 '-dynamic-linker' within %{!shared: ...}.
26111 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
26114 * config/i386/predicates.md (addsub_vm_operator): New predicate.
26115 (addsub_vs_operator): Ditto.
26116 (addsub_vs_parallel): Ditto.
26117 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
26118 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
26119 Put minus RTX before plus and adjust vec_merge selector.
26120 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
26121 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
26122 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
26123 (addsub vec_merge splitters): New combiner splitters.
26124 (addsub vec_select/vec_concat splitters): Ditto.
26126 2015-06-23 Bin Cheng <bin.cheng@arm.com>
26128 PR tree-optimization/66449
26129 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
26130 POINTER_PLUS_EXPR for pointers.
26132 2015-06-23 Alan Modra <amodra@gmail.com>
26134 * rtlanal.c (commutative_operand_precedence): Correct comments.
26135 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
26136 declaration. Return an int. Distinguish REG,REG return from
26138 (struct simplify_plus_minus_op_data): Make local to function.
26139 (simplify_plus_minus): Don't set canonicalized if merely sorting
26140 registers. Avoid packing ops if nothing changes. White space fixes.
26142 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
26144 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
26145 -fdump-ada-spec is passed but not if -fsyntax-only is.
26147 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
26150 * lra-lives.c (process_bb_lives): Check insn copying the same
26151 reload pseudo and don't create a copy for it.
26153 2015-06-22 Tom de Vries <tom@codesourcery.com>
26155 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
26158 2015-06-22 Tom de Vries <tom@codesourcery.com>
26160 * builtins.def (DEF_GOMP_BUILTIN): Test
26161 'flag_tree_parallelize_loops > 1' instead of
26162 'flag_tree_parallelize_loops'. Test flag_cilkplus.
26164 2015-06-22 Tom de Vries <tom@codesourcery.com>
26166 * dominance.c (calculate_dominance_info): Verify dominators if
26169 2015-06-22 Marek Polacek <polacek@redhat.com>
26171 * match.pd ((x ^ y) ^ (x | y) -> x & y,
26172 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
26173 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
26174 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
26176 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
26179 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
26180 cost of embedded comparison.
26182 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26185 * config/rs6000/predicates.md (altivec_register_operand): Permit
26186 virtual stack registers.
26187 (vsx_register_operand): Likewise.
26188 (vfloat_operand): Likewise.
26189 (vint_operand): Likewise.
26190 (vlogical_operand): Likewise.
26192 2015-06-22 Richard Biener <rguenther@suse.de>
26194 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
26195 and single_scalar_iteration_cost members.
26196 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
26197 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
26198 (vect_get_single_scalar_iteration_cost): Remove.
26199 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26200 Use LOOP_VINFO_SCALAR_ITERATION_COST.
26201 * tree-vect-loop.c (destroy_loop_vec_info): Free
26203 (vect_get_single_scalar_iteration_cost): Compute result into
26204 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
26205 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
26206 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
26207 (vect_estimate_min_profitable_iters): Use them.
26209 2015-06-22 Christian Bruel <christian.bruel@st.com>
26212 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
26213 (TARGET_INSERT_ATTRIBUTES): Define.
26214 (thumb_flipper): New var.
26215 * config/arm/arm.opt (-mflip-thumb): New switch.
26217 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26218 Martin Liska <mliska@suse.cz>
26221 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
26222 construction of arg_types.
26223 (sem_function::sem_function): Likewise.
26224 (sem_function::~sem_function): Remove destruction of arg_types.
26225 (sem_function::compatible_parm_types_p): New function.
26226 (sem_function::equals_wpa): Reorg matching of return values
26227 and parameter types.
26228 (sem_function::equals_private): Reorg mathcing of argument types.
26229 (sem_function::parse_tree_args): Remove.
26230 * ipa-icf.h (init_wpa): Do not call it.
26231 (parse_tree_args): Remove.
26232 (compatible_parm_types_p): Declare.
26233 (result_type): Remove.
26234 (arg_types): Remove.
26236 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26239 * ipa-polymorphic-call.c
26240 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
26241 initializing alias oracle; fix formating; set base_alias_set if it
26244 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
26246 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
26247 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
26248 (find_inc): Likewise.
26249 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
26251 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
26252 * df-scan.c (df_swap_refs): Remove.
26253 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
26254 * dominance.c (link_roots): Use std::swap instead of manually swapping.
26255 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
26256 * fold-const.c (fold_relational_const): Likewise.
26257 * genattrtab.c (simplify_test_exp): Likewise.
26258 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
26259 gimple_simplify): Likewise.
26260 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
26261 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
26262 * ipa-devirt.c (add_type_duplicate): Likewise.
26263 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
26264 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
26265 * lra.c (lra_create_copy): Likewise.
26266 * lto-streamer-out.c (DFS::DFS): Likewise.
26267 * modulo-sched.c (get_sched_window): Likewise.
26268 * omega.c (omega_pretty_print_problem): Likewise.
26269 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
26270 * reload1.c (reloads_unique_chain_p): Likewise.
26271 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
26272 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
26274 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
26276 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
26277 predicate_mem_writes): Likewise.
26278 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
26279 * tree-predcom.c (combine_chains): Likewise.
26280 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
26281 refs_may_alias_p_1): Likewise.
26282 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
26283 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26284 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
26285 number_of_iterations_cond): Likewise.
26286 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26287 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
26288 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26289 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
26290 * tree-vrp.c (extract_range_from_binary_expr_1,
26291 extract_range_from_unary_expr_1): Likewise.
26293 2015-06-20 Marek Polacek <polacek@redhat.com>
26295 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
26297 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
26300 * config/sh/sh.c (prepare_move_operands): Replace subreg
26301 index term with R0 for base and index addressing.
26303 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
26305 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
26307 (movsf_aarch64): Change condition from register_operand to
26308 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
26309 load1. Change type for alternative 7 to store1.
26310 (movdf_aarch64): Likewise.
26312 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
26314 * config/vax/vax.md: Adjust sign/zero extend patterns to
26315 handle SUBREGs in operands[1].
26317 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26319 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26320 of manually swapping.
26321 (expand_vec_perm_interleave2): Likewise.
26323 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
26325 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26326 reuse bounds created for abnormal ssa names.
26328 2015-06-19 Jakub Jelinek <jakub@redhat.com>
26330 * config/nvptx/nvptx.md (allocate_stack): Rename to...
26331 (allocate_stack_<mode>): ... this, and add :P on both
26332 match_operand and unspec.
26333 (allocate_stack): New expander.
26335 2015-06-19 Christian Bruel <christian.bruel@st.com>
26339 * config/arm/arm.c (arm_set_current_function): Handle
26340 explicit default options.
26342 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26344 * config/i386/i386.md (*movsicc_noc_zext): New insn.
26345 (zero-extended cmove with mem peephole2): New pattern.
26346 (cmove with mem peephole2): Merge patterns.
26348 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
26350 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26352 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
26354 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26355 * config/mips/mips.md (*madd4<mode>): Ditto.
26356 (*nmadd3<mode>) Ditto.
26357 (*nmadd4<mode>_fastmath): Ditto.
26358 (*nmadd3<mode>_fastmath): Ditto.
26359 (*nmsub4<mode>): Ditto.
26360 (*nmsub3<mode>): Ditto.
26361 (*nmsub4<mode>_fastmath): Ditto.
26362 (*nmsub3<mode>_fastmath): Ditto.
26364 2015-06-18 Michael Matz <matz@suse.de>
26366 PR middle-end/66253
26367 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26368 grouped strided stores.
26369 (vectorizable_load): Don't use the DR from first_stmt in
26370 the non-SLP grouped strided case.
26372 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26375 * function.c (assign_bounds): Add arguments assign_regs,
26376 assign_special, assign_bt.
26377 (assign_parms): For vararg functions handle bounds in BT
26378 and special slots after incoming vararg bounds.
26380 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26382 PR middle-end/66568
26383 * cfgexpand.c (expand_return): Handle missing bounds.
26384 (expand_gimple_stmt_1): Likewise.
26385 * tree-chkp.c (chkp_expand_zero_bounds): New.
26386 * tree-chkp.h (chkp_expand_zero_bounds): New.
26388 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26390 PR middle-end/66567
26391 * ipa-chkp.c (chkp_maybe_create_clone): Require
26392 functions to be instrumentable.
26393 * tree-chkp.c (chkp_replace_function_pointer): Use
26394 chkp_instrumentable_p instead of attribute check.
26396 2015-06-18 Richard Biener <rguenther@suse.de>
26398 PR tree-optimization/66510
26399 * tree-vect-stmts.c (vectorizable_load): Properly compute the
26400 number of vector loads for SLP permuted loads.
26401 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26402 check the stride for loop vectorization.
26403 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26404 vectorization factor.
26405 (vect_analyze_group_access): If the group size is not a power
26406 of two require a epilogue loop.
26407 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26408 compute and optimizing and alias test pruning after final
26409 vectorization factor computation.
26410 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26412 (vect_transform_slp_perm_load): Properly compute the original
26413 number of vector load stmts.
26415 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26417 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26418 "unlikely character , in @var" warning.
26420 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
26422 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26423 (ix86_function_arg_advance): Ditto.
26424 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
26426 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26428 * function.h (struct rtl_data): Remove struct and accessor macros.
26429 * emit-rtl.h (struct rtl_data): Relocate to here.
26430 * Makefile.in (GTFILES): Add emit-rtl.h.
26431 * df-core.c: Include emit-rtl.h.
26432 * genattrtab.c: Likewise.
26433 * genconditions.c: Likewise.
26434 * genpreds.c: Likewise.
26435 * genrecog.c: Likewise.
26436 * regcprop.c: Likewise.
26437 * resource.c: Likewise.
26438 * sched-rgn.c: Likewise.
26439 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26440 * config/i386/winnt.c: Likewise.
26442 2015-06-17 Jakub Jelinek <jakub@redhat.com>
26444 PR middle-end/66429
26445 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26446 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
26447 and has_force_vectorize_loops flags from cfun into
26449 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26450 if simduid is non-NULL.
26451 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26452 * passes.def (pass_simduid_cleanup): Add new pass after loop
26454 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26455 indirection from htab argument's type.
26456 (shrink_simd_arrays): New function.
26457 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
26458 Don't call adjust_simduid_builtins if there are no loops.
26459 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26460 (pass_simduid_cleanup::execute): New method.
26461 (make_pass_simduid_cleanup): New function.
26463 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
26465 * tree-core.h (tree_target_option): Make opts field a pointer to a
26466 cl_target_option instead of an instance of the struct.
26467 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26469 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26470 TARGET_OPTION_NODE.
26471 (copy_node_stat): Allocate and copy struct cl_target_option.
26473 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26475 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26476 Remove conditional exposure of prototypes.
26477 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26478 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
26479 definitions in tree.h with functions.
26480 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26482 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26484 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
26486 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26487 (*cmp<mode>_signed): ... this.
26488 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26489 (*cmp<mode>_unsigned): ... this. Remove %b.
26491 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26493 * coretypes.h: Include input.h and as-a.h.
26494 * rtl.h: Include input.h and as-a.h for generator files.
26495 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26496 * vec.c: Don't include diagnostic-core.h.
26497 * alias.c: Do not include input.h, line-map.h or is-a.h.
26498 * asan.c: Likewise.
26499 * attribs.c: Likewise.
26500 * auto-inc-dec.c: Likewise.
26501 * auto-profile.c: Likewise.
26502 * bb-reorder.c: Likewise.
26503 * bt-load.c: Likewise.
26504 * builtins.c: Likewise.
26505 * caller-save.c: Likewise.
26506 * calls.c: Likewise.
26507 * ccmp.c: Likewise.
26509 * cfganal.c: Likewise.
26510 * cfgbuild.c: Likewise.
26511 * cfgcleanup.c: Likewise.
26512 * cfgexpand.c: Likewise.
26513 * cfghooks.c: Likewise.
26514 * cfgloop.c: Likewise.
26515 * cfgloop.h: Likewise.
26516 * cfgloopanal.c: Likewise.
26517 * cfgloopmanip.c: Likewise.
26518 * cfgrtl.c: Likewise.
26519 * cgraph.c: Likewise.
26520 * cgraphbuild.c: Likewise.
26521 * cgraphclones.c: Likewise.
26522 * cgraphunit.c: Likewise.
26523 * cilk-common.c: Likewise.
26524 * combine-stack-adj.c: Likewise.
26525 * combine.c: Likewise.
26526 * compare-elim.c: Likewise.
26527 * convert.c: Likewise.
26528 * coverage.c: Likewise.
26529 * cppbuiltin.c: Likewise.
26530 * cprop.c: Likewise.
26532 * cselib.c: Likewise.
26533 * data-streamer-in.c: Likewise.
26534 * data-streamer-out.c: Likewise.
26535 * data-streamer.c: Likewise.
26536 * dbxout.c: Likewise.
26539 * debug.c: Likewise.
26540 * df-core.c: Likewise.
26541 * df-problems.c: Likewise.
26542 * df-scan.c: Likewise.
26545 * diagnostic-core.h: Likewise.
26546 * diagnostic.c: Likewise.
26547 * dojump.c: Likewise.
26548 * dominance.c: Likewise.
26549 * domwalk.c: Likewise.
26550 * double-int.c: Likewise.
26552 * dumpfile.c: Likewise.
26553 * dumpfile.h: Likewise.
26554 * dwarf2asm.c: Likewise.
26555 * dwarf2cfi.c: Likewise.
26556 * dwarf2out.c: Likewise.
26557 * emit-rtl.c: Likewise.
26558 * et-forest.c: Likewise.
26559 * except.c: Likewise.
26560 * explow.c: Likewise.
26561 * expmed.c: Likewise.
26562 * expr.c: Likewise.
26563 * final.c: Likewise.
26564 * fixed-value.c: Likewise.
26565 * fold-const.c: Likewise.
26566 * function.c: Likewise.
26567 * fwprop.c: Likewise.
26568 * gcc-plugin.h: Likewise.
26569 * gcse.c: Likewise.
26570 * generic-match-head.c: Likewise.
26571 * ggc-page.c: Likewise.
26572 * gimple-builder.c: Likewise.
26573 * gimple-expr.c: Likewise.
26574 * gimple-fold.c: Likewise.
26575 * gimple-iterator.c: Likewise.
26576 * gimple-low.c: Likewise.
26577 * gimple-match-head.c: Likewise.
26578 * gimple-pretty-print.c: Likewise.
26579 * gimple-ssa-isolate-paths.c: Likewise.
26580 * gimple-ssa-strength-reduction.c: Likewise.
26581 * gimple-streamer-in.c: Likewise.
26582 * gimple-streamer-out.c: Likewise.
26583 * gimple-streamer.h: Likewise.
26584 * gimple-walk.c: Likewise.
26585 * gimple.c: Likewise.
26586 * gimplify-me.c: Likewise.
26587 * gimplify.c: Likewise.
26588 * godump.c: Likewise.
26589 * graph.c: Likewise.
26590 * graphite-blocking.c: Likewise.
26591 * graphite-dependences.c: Likewise.
26592 * graphite-interchange.c: Likewise.
26593 * graphite-isl-ast-to-gimple.c: Likewise.
26594 * graphite-optimize-isl.c: Likewise.
26595 * graphite-poly.c: Likewise.
26596 * graphite-scop-detection.c: Likewise.
26597 * graphite-sese-to-poly.c: Likewise.
26598 * graphite.c: Likewise.
26599 * haifa-sched.c: Likewise.
26600 * hw-doloop.c: Likewise.
26601 * ifcvt.c: Likewise.
26602 * init-regs.c: Likewise.
26603 * input.c: Likewise.
26604 * internal-fn.c: Likewise.
26605 * ipa-chkp.c: Likewise.
26606 * ipa-comdats.c: Likewise.
26607 * ipa-cp.c: Likewise.
26608 * ipa-devirt.c: Likewise.
26609 * ipa-icf-gimple.c: Likewise.
26610 * ipa-icf.c: Likewise.
26611 * ipa-inline-analysis.c: Likewise.
26612 * ipa-inline-transform.c: Likewise.
26613 * ipa-inline.c: Likewise.
26614 * ipa-polymorphic-call.c: Likewise.
26615 * ipa-profile.c: Likewise.
26616 * ipa-prop.c: Likewise.
26617 * ipa-pure-const.c: Likewise.
26618 * ipa-ref.c: Likewise.
26619 * ipa-reference.c: Likewise.
26620 * ipa-split.c: Likewise.
26621 * ipa-utils.c: Likewise.
26622 * ipa-visibility.c: Likewise.
26624 * ira-build.c: Likewise.
26625 * ira-color.c: Likewise.
26626 * ira-conflicts.c: Likewise.
26627 * ira-costs.c: Likewise.
26628 * ira-emit.c: Likewise.
26629 * ira-lives.c: Likewise.
26631 * jump.c: Likewise.
26632 * langhooks.c: Likewise.
26634 * loop-doloop.c: Likewise.
26635 * loop-init.c: Likewise.
26636 * loop-invariant.c: Likewise.
26637 * loop-iv.c: Likewise.
26638 * loop-unroll.c: Likewise.
26639 * lower-subreg.c: Likewise.
26640 * lra-assigns.c: Likewise.
26641 * lra-coalesce.c: Likewise.
26642 * lra-constraints.c: Likewise.
26643 * lra-eliminations.c: Likewise.
26644 * lra-lives.c: Likewise.
26645 * lra-remat.c: Likewise.
26646 * lra-spills.c: Likewise.
26648 * lto-cgraph.c: Likewise.
26649 * lto-compress.c: Likewise.
26650 * lto-opts.c: Likewise.
26651 * lto-section-in.c: Likewise.
26652 * lto-section-out.c: Likewise.
26653 * lto-streamer-in.c: Likewise.
26654 * lto-streamer-out.c: Likewise.
26655 * lto-streamer.c: Likewise.
26657 * mode-switching.c: Likewise.
26658 * modulo-sched.c: Likewise.
26659 * omega.c: Likewise.
26660 * omp-low.c: Likewise.
26661 * optabs.c: Likewise.
26662 * opts-global.c: Likewise.
26663 * opts.h: Likewise.
26664 * passes.c: Likewise.
26665 * plugin.c: Likewise.
26666 * postreload-gcse.c: Likewise.
26667 * postreload.c: Likewise.
26668 * predict.c: Likewise.
26669 * pretty-print.h: Likewise.
26670 * print-rtl.c: Likewise.
26671 * print-tree.c: Likewise.
26672 * profile.c: Likewise.
26673 * real.c: Likewise.
26674 * realmpfr.c: Likewise.
26675 * recog.c: Likewise.
26677 * reg-stack.c: Likewise.
26678 * regcprop.c: Likewise.
26679 * reginfo.c: Likewise.
26680 * regrename.c: Likewise.
26681 * regstat.c: Likewise.
26682 * reload.c: Likewise.
26683 * reload1.c: Likewise.
26684 * reorg.c: Likewise.
26685 * resource.c: Likewise.
26686 * rtl-chkp.c: Likewise.
26687 * rtl-error.c: Likewise.
26688 * rtlanal.c: Likewise.
26689 * rtlhooks.c: Likewise.
26690 * sanopt.c: Likewise.
26691 * sched-deps.c: Likewise.
26692 * sched-ebb.c: Likewise.
26693 * sched-rgn.c: Likewise.
26694 * sched-vis.c: Likewise.
26695 * sdbout.c: Likewise.
26696 * sel-sched-dump.c: Likewise.
26697 * sel-sched-ir.c: Likewise.
26698 * sel-sched.c: Likewise.
26699 * sese.c: Likewise.
26700 * shrink-wrap.c: Likewise.
26701 * simplify-rtx.c: Likewise.
26702 * stack-ptr-mod.c: Likewise.
26703 * statistics.c: Likewise.
26704 * stmt.c: Likewise.
26705 * stor-layout.c: Likewise.
26706 * store-motion.c: Likewise.
26707 * streamer-hooks.c: Likewise.
26708 * stringpool.c: Likewise.
26709 * symtab.c: Likewise.
26710 * target-globals.c: Likewise.
26711 * targhooks.c: Likewise.
26712 * toplev.c: Likewise.
26713 * tracer.c: Likewise.
26714 * trans-mem.c: Likewise.
26715 * tree-affine.c: Likewise.
26716 * tree-browser.c: Likewise.
26717 * tree-call-cdce.c: Likewise.
26718 * tree-cfg.c: Likewise.
26719 * tree-cfgcleanup.c: Likewise.
26720 * tree-chkp-opt.c: Likewise.
26721 * tree-chkp.c: Likewise.
26722 * tree-chrec.c: Likewise.
26723 * tree-complex.c: Likewise.
26724 * tree-data-ref.c: Likewise.
26725 * tree-dfa.c: Likewise.
26726 * tree-diagnostic.c: Likewise.
26727 * tree-dump.c: Likewise.
26728 * tree-eh.c: Likewise.
26729 * tree-emutls.c: Likewise.
26730 * tree-if-conv.c: Likewise.
26731 * tree-inline.c: Likewise.
26732 * tree-into-ssa.c: Likewise.
26733 * tree-iterator.c: Likewise.
26734 * tree-loop-distribution.c: Likewise.
26735 * tree-nested.c: Likewise.
26736 * tree-nrv.c: Likewise.
26737 * tree-object-size.c: Likewise.
26738 * tree-outof-ssa.c: Likewise.
26739 * tree-parloops.c: Likewise.
26740 * tree-phinodes.c: Likewise.
26741 * tree-predcom.c: Likewise.
26742 * tree-pretty-print.c: Likewise.
26743 * tree-profile.c: Likewise.
26744 * tree-scalar-evolution.c: Likewise.
26745 * tree-sra.c: Likewise.
26746 * tree-ssa-address.c: Likewise.
26747 * tree-ssa-alias.c: Likewise.
26748 * tree-ssa-ccp.c: Likewise.
26749 * tree-ssa-coalesce.c: Likewise.
26750 * tree-ssa-copy.c: Likewise.
26751 * tree-ssa-copyrename.c: Likewise.
26752 * tree-ssa-dce.c: Likewise.
26753 * tree-ssa-dom.c: Likewise.
26754 * tree-ssa-dse.c: Likewise.
26755 * tree-ssa-forwprop.c: Likewise.
26756 * tree-ssa-ifcombine.c: Likewise.
26757 * tree-ssa-live.c: Likewise.
26758 * tree-ssa-loop-ch.c: Likewise.
26759 * tree-ssa-loop-im.c: Likewise.
26760 * tree-ssa-loop-ivcanon.c: Likewise.
26761 * tree-ssa-loop-ivopts.c: Likewise.
26762 * tree-ssa-loop-manip.c: Likewise.
26763 * tree-ssa-loop-niter.c: Likewise.
26764 * tree-ssa-loop-prefetch.c: Likewise.
26765 * tree-ssa-loop-unswitch.c: Likewise.
26766 * tree-ssa-loop.c: Likewise.
26767 * tree-ssa-math-opts.c: Likewise.
26768 * tree-ssa-operands.c: Likewise.
26769 * tree-ssa-phiopt.c: Likewise.
26770 * tree-ssa-phiprop.c: Likewise.
26771 * tree-ssa-pre.c: Likewise.
26772 * tree-ssa-propagate.c: Likewise.
26773 * tree-ssa-reassoc.c: Likewise.
26774 * tree-ssa-sccvn.c: Likewise.
26775 * tree-ssa-scopedtables.c: Likewise.
26776 * tree-ssa-sink.c: Likewise.
26777 * tree-ssa-strlen.c: Likewise.
26778 * tree-ssa-structalias.c: Likewise.
26779 * tree-ssa-tail-merge.c: Likewise.
26780 * tree-ssa-ter.c: Likewise.
26781 * tree-ssa-threadedge.c: Likewise.
26782 * tree-ssa-threadupdate.c: Likewise.
26783 * tree-ssa-uncprop.c: Likewise.
26784 * tree-ssa-uninit.c: Likewise.
26785 * tree-ssa.c: Likewise.
26786 * tree-ssanames.c: Likewise.
26787 * tree-stdarg.c: Likewise.
26788 * tree-streamer-in.c: Likewise.
26789 * tree-streamer-out.c: Likewise.
26790 * tree-streamer.c: Likewise.
26791 * tree-switch-conversion.c: Likewise.
26792 * tree-tailcall.c: Likewise.
26793 * tree-vect-data-refs.c: Likewise.
26794 * tree-vect-generic.c: Likewise.
26795 * tree-vect-loop-manip.c: Likewise.
26796 * tree-vect-loop.c: Likewise.
26797 * tree-vect-patterns.c: Likewise.
26798 * tree-vect-slp.c: Likewise.
26799 * tree-vect-stmts.c: Likewise.
26800 * tree-vectorizer.c: Likewise.
26801 * tree-vrp.c: Likewise.
26802 * tree.c: Likewise.
26803 * tsan.c: Likewise.
26804 * ubsan.c: Likewise.
26805 * valtrack.c: Likewise.
26806 * value-prof.c: Likewise.
26807 * var-tracking.c: Likewise.
26808 * varasm.c: Likewise.
26809 * varpool.c: Likewise.
26810 * vmsdbgout.c: Likewise.
26811 * vtable-verify.c: Likewise.
26813 * wide-int.cc: Likewise.
26814 * xcoffout.c: Likewise.
26815 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
26816 * common/common-targhooks.c: Likewise.
26817 * config/aarch64/aarch64-builtins.c: Likewise.
26818 * config/aarch64/aarch64.c: Likewise.
26819 * config/alpha/alpha.c: Likewise.
26820 * config/arc/arc.c: Likewise.
26821 * config/arm/aarch-common.c: Likewise.
26822 * config/arm/arm-builtins.c: Likewise.
26823 * config/arm/arm-c.c: Likewise.
26824 * config/arm/arm.c: Likewise.
26825 * config/avr/avr-c.c: Likewise.
26826 * config/avr/avr-log.c: Likewise.
26827 * config/avr/avr.c: Likewise.
26828 * config/bfin/bfin.c: Likewise.
26829 * config/c6x/c6x.c: Likewise.
26830 * config/cr16/cr16.c: Likewise.
26831 * config/cris/cris.c: Likewise.
26832 * config/darwin-c.c: Likewise.
26833 * config/darwin.c: Likewise.
26834 * config/default-c.c: Likewise.
26835 * config/epiphany/epiphany.c: Likewise.
26836 * config/epiphany/mode-switch-use.c: Likewise.
26837 * config/epiphany/resolve-sw-modes.c: Likewise.
26838 * config/fr30/fr30.c: Likewise.
26839 * config/frv/frv.c: Likewise.
26840 * config/ft32/ft32.c: Likewise.
26841 * config/glibc-c.c: Likewise.
26842 * config/h8300/h8300.c: Likewise.
26843 * config/i386/i386-c.c: Likewise.
26844 * config/i386/i386.c: Likewise.
26845 * config/i386/msformat-c.c: Likewise.
26846 * config/i386/winnt-cxx.c: Likewise.
26847 * config/i386/winnt-stubs.c: Likewise.
26848 * config/i386/winnt.c: Likewise.
26849 * config/ia64/ia64-c.c: Likewise.
26850 * config/ia64/ia64.c: Likewise.
26851 * config/iq2000/iq2000.c: Likewise.
26852 * config/lm32/lm32.c: Likewise.
26853 * config/m32c/m32c-pragma.c: Likewise.
26854 * config/m32c/m32c.c: Likewise.
26855 * config/m32r/m32r.c: Likewise.
26856 * config/m68k/m68k.c: Likewise.
26857 * config/mcore/mcore.c: Likewise.
26858 * config/mep/mep-pragma.c: Likewise.
26859 * config/mep/mep.c: Likewise.
26860 * config/microblaze/microblaze-c.c: Likewise.
26861 * config/microblaze/microblaze.c: Likewise.
26862 * config/mips/mips.c: Likewise.
26863 * config/mmix/mmix.c: Likewise.
26864 * config/mn10300/mn10300.c: Likewise.
26865 * config/moxie/moxie.c: Likewise.
26866 * config/msp430/msp430-c.c: Likewise.
26867 * config/msp430/msp430.c: Likewise.
26868 * config/nds32/nds32-cost.c: Likewise.
26869 * config/nds32/nds32-fp-as-gp.c: Likewise.
26870 * config/nds32/nds32-intrinsic.c: Likewise.
26871 * config/nds32/nds32-isr.c: Likewise.
26872 * config/nds32/nds32-md-auxiliary.c: Likewise.
26873 * config/nds32/nds32-memory-manipulation.c: Likewise.
26874 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26875 * config/nds32/nds32-predicates.c: Likewise.
26876 * config/nds32/nds32.c: Likewise.
26877 * config/nios2/nios2.c: Likewise.
26878 * config/nvptx/nvptx.c: Likewise.
26879 * config/pa/pa.c: Likewise.
26880 * config/pdp11/pdp11.c: Likewise.
26881 * config/rl78/rl78-c.c: Likewise.
26882 * config/rl78/rl78.c: Likewise.
26883 * config/rs6000/rs6000-c.c: Likewise.
26884 * config/rs6000/rs6000.c: Likewise.
26885 * config/rx/rx.c: Likewise.
26886 * config/s390/s390-c.c: Likewise.
26887 * config/s390/s390.c: Likewise.
26888 * config/sh/sh-c.c: Likewise.
26889 * config/sh/sh-mem.cc: Likewise.
26890 * config/sh/sh.c: Likewise.
26891 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26892 * config/sh/sh_treg_combine.cc: Likewise.
26893 * config/sol2-c.c: Likewise.
26894 * config/sol2-cxx.c: Likewise.
26895 * config/sol2-stubs.c: Likewise.
26896 * config/sol2.c: Likewise.
26897 * config/sparc/sparc-c.c: Likewise.
26898 * config/sparc/sparc.c: Likewise.
26899 * config/spu/spu-c.c: Likewise.
26900 * config/spu/spu.c: Likewise.
26901 * config/stormy16/stormy16.c: Likewise.
26902 * config/tilegx/mul-tables.c: Likewise.
26903 * config/tilegx/tilegx-c.c: Likewise.
26904 * config/tilegx/tilegx.c: Likewise.
26905 * config/tilepro/mul-tables.c: Likewise.
26906 * config/tilepro/tilepro-c.c: Likewise.
26907 * config/tilepro/tilepro.c: Likewise.
26908 * config/v850/v850-c.c: Likewise.
26909 * config/v850/v850.c: Likewise.
26910 * config/vax/vax.c: Likewise.
26911 * config/visium/visium.c: Likewise.
26912 * config/vms/vms-c.c: Likewise.
26913 * config/vms/vms.c: Likewise.
26914 * config/vxworks.c: Likewise.
26915 * config/winnt-c.c: Likewise.
26916 * config/xtensa/xtensa.c: Likewise.
26918 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
26920 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26922 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26924 2015-06-17 Richard Biener <rguenther@suse.de>
26926 PR tree-optimization/66251
26927 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26928 stmts for SLP strided stores.
26931 2015-05-22 Richard Biener <rguenther@suse.de>
26933 PR tree-optimization/66251
26934 * tree-vect-stmts.c (vectorizable_conversion): Properly
26935 set STMT_VINFO_VEC_STMT even for the SLP case.
26937 2015-05-26 Michael Matz <matz@suse.de>
26939 PR middle-end/66251
26940 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26941 STMT_VINFO_VEC_STMT, also with SLP.
26943 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
26946 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26947 (*avx_addsubv4df3_1s): Ditto.
26948 (*sse3_addsubv2df3_1): Ditto.
26949 (*sse3_addsubv2df3_1s): Ditto.
26950 (*avx_addsubv8sf3_1): Ditto.
26951 (*avx_addsubv8sf3_1s): Ditto.
26952 (*sse3_addsubv4sf3_1): Ditto.
26953 (*sse3_addsubv4sf3_1s): Ditto.
26955 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
26957 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26958 (SYSROOT_SUFFIX_SPEC): Update.
26959 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26960 (STARTFILE_PREFIX_SPEC): Update.
26961 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26962 (MULTILIB_REQUIRED): New.
26963 (MULTILIB_OSDIRNAMES): New.
26964 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26965 (MULTILIB_REQUIRED): New.
26966 (MULTILIB_OSDIRNAMES): New.
26968 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
26970 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26971 * config/aarch64/aarch64-options-extensions.def: Update "fP",
26972 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
26973 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26974 (AARCH64_FL_PAN): New.
26975 (AARCH64_FL_LOR): New.
26976 (AARCH64_FL_RDMA): New.
26977 (AARCH64_FL_FOR_ARCH8_1): New.
26978 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26979 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26981 2015-06-16 Martin Liska <mliska@suse.cz>
26983 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26984 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26987 2015-06-16 Richard Biener <rguenther@suse.de>
26989 * tree-vect-stmts.c (vectorizable_store): Adjust.
26990 (vectorizable_load): Likewise.
26991 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26993 (vect_create_data_ref_ptr): Likewise.
26994 (bump_vector_ptr): Adjust.
26996 2015-06-16 Richard Biener <rguenther@suse.de>
26998 * tree-vect-stmts.c (vectorizable_load): Properly start loads
26999 with the first element if this is grouped loads.
27001 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27003 * config/arm/arm-protos.h (struct tune_params): Rename
27004 log_op_non_sc to log_op_non_short_circuit, and rename enum
27005 values to expand SC to SHORT_CIRCUIT.
27006 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27007 to LOG_OP_NON_SHORT_CIRCUIT.
27008 (arm_fastmul_tune):Likewise
27009 (arm_strongarm_tune): Likewise.
27010 (arm_xscale_tune): Likewise.
27011 (arm_9e_tune): Likewise.
27012 (arm_marvell_pj4_tune): Likewise.
27013 (arm_v6t2_tune): Likewise.
27014 (arm_cortex_tune): Likewise.
27015 (arm_cortex_a8_tune): Likewise.
27016 (arm_cortex_a7_tune): Likewise.
27017 (arm_cortex_a15_tune): Likewise.
27018 (arm_cortex_a53_tune): Likewise.
27019 (arm_cortex_a57_tune): Likewise.
27020 (arm_xgene1_tune): Likewise.
27021 (arm_cortex_a5_tune): Likewise.
27022 (arm_cortex_a9_tune): Likewise.
27023 (arm_cortex_a12_tune): Likewise.
27024 (arm_v7m_tune): Likewise.
27025 (arm_cortex_m7_tune): Likewise.
27026 (arm_v6m_tune): Likewise.
27027 (arm_fa726te_tune): Likewise.
27029 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
27031 * altivec.md: Delete UNSPEC_VMLADDUHM.
27032 (mulv4si3_p8): New pattern.
27033 (mulv4si3): Use it for POWER8.
27034 (mulv8hi3): Use vmladduhm with zero addend.
27035 (altivec_vmladduhm): Descriptive RTL.
27037 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
27039 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27040 to use neon_move instead of mov_imm.
27041 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27042 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27044 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27045 aarch64_float_const_zero_rtx_p check before TFmode check.
27046 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27048 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
27049 code and attributes to match. Change condition from register_operand
27050 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
27051 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
27054 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
27057 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27058 there is no parent.
27060 2015-06-14 Shiva Chen <shiva0217@gmail.com>
27062 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27063 HOST_WIDE_INT parameter.
27065 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
27068 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27069 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27071 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27073 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
27075 * rtl.h (classify_insn): Declare.
27076 * emit-rtl.c (classify_insn): Move to...
27077 * rtl.c: ...here and add generator support.
27078 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27079 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27080 * genemit.c (gen_emit_seq): New function.
27081 (gen_expand, gen_split): Use it.
27083 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
27085 * tree.c (make_vector_stat): Fix comment to state that the
27086 function returns a VECTOR_CST.
27088 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
27090 * gensupport.h (add_implicit_parallel): Declare.
27091 * genrecog.c (add_implicit_parallel): Move to...
27092 * gensupport.c (add_implicit_parallel): ...here.
27093 (process_one_cond_exec): Use it.
27094 * genemit.c (gen_insn): Likewise.
27096 2015-06-13 Iain Sandoe <iain@codesourcery.com>
27099 * passes.c (rest_of_decl_compilation): Do not register globals for
27100 early debug if they are declared in built-ins.
27102 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
27104 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
27106 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27108 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
27110 (noce_try_cmove_arith): Likewise.
27111 (noce_get_alt_condition): Likewise.
27113 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27115 * common/config/i386/i386-common.c
27116 (OPTION_MASK_ISA_MWAITX_SET): New.
27117 (ix86_handle_option): Handle mwaitx.
27118 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
27119 (x86_64-*-*): Likewise.
27120 * config/i386/mwaitxintrin.h: New header.
27121 * config/i386/cpuid.h (bit_MWAITX): Define.
27122 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27124 * config/i386/i386.opt (mwaitx): New.
27125 * config/i386/i386-builtin-types.def
27126 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
27127 * config/i386/i386-c.c: Define __MWAITX__ if needed.
27128 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
27130 (ix86_option_override_internal): Handle new option.
27131 (processor_alias_table): Added PTA_MWAITX.
27132 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
27133 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
27134 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
27135 IX86_BUILTIN_MONITORX built-ins.
27136 * config/i386/i386.h (TARGET_MWAITX): New.
27137 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
27139 (mwaitx): New pattern.
27140 (monitorx_<mode>): New pattern.
27141 * config/i386/x86intrin.h: Include mwaitxintrin.h.
27142 * doc/extend.texi: Document monitorx and mwaitx builtins.
27143 * doc/invoke.texi: Document -mmwaitx option.
27145 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
27147 * emit-rtl.c (need_atomic_barrier_p): Mask model with
27148 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
27150 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27152 * dbxout.c (xcoff_debug_hooks): Provide a function for
27153 register_main_translation_unit hook.
27155 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27157 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
27158 variants cases from switch.
27159 (rs6000_post_atomic_barrier): Same.
27160 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
27161 (rs6000_expand_atomic_exchange): Same.
27162 (rs6000_expand_atomic_op): Same.
27163 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
27164 SYNC variants cases from switch.
27165 (atomic_load): Same.
27166 (atomic_store): Same.
27168 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
27170 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
27171 CONST_INT for goto.
27173 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
27176 * dwarf2out.c (check_die): Check for common duplicate attributes.
27177 (add_location_or_const_value_attribute): Do not add duplicate
27179 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
27181 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
27182 (gen_type_die_with_usage): Call check_die.
27183 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
27185 2015-06-11 Jason Merrill <jason@redhat.com>
27187 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
27190 2015-06-11 Marek Polacek <polacek@redhat.com>
27192 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
27194 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
27197 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
27198 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
27199 (*addx_extend_sp32): Fix pasto.
27200 (*subx_extend): Rename into...
27201 (*subx_extend_sp32): ...this.
27202 (*adddi3_extend_sp32): Add earlyclobber.
27203 (*subdi3_insn_sp32): Likewise.
27204 (*subdi3_extend_sp32): Likewise.
27205 (*and_not_di_sp32): Likewise.
27206 (*or_not_di_sp32): Likewise.
27207 (*xor_not_di_sp32): Likewise.
27208 (*negdi2_sp32): Likewise.
27209 (*one_cmpldi2_sp32): Likewise.
27211 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
27213 * debug.h (struct gcc_debug_hooks): Add a
27214 register_main_translation_unit hook.
27215 * debug.c (do_nothing_debug_hooks): Provide a function for this
27217 * dbxout.c (dbx_debug_hooks): Likewise.
27218 * sdbout.c (sdb_debug_hooks): Likewise.
27219 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27220 * dwarf2out.c (main_translation_unit): New global variable.
27221 (dwarf2out_register_main_translation_unit): New function
27222 implementing the new hook.
27223 (dwarf2_debug_hooks): Assign
27224 dwarf2out_register_main_translation_unit to this new hook.
27225 (dwarf2out_init): Associate any main translation unit to
27228 2015-06-11 Marek Polacek <polacek@redhat.com>
27230 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
27232 2015-06-11 Marek Polacek <polacek@redhat.com>
27234 * match.pd: Use single_use throughout.
27236 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27238 * config/arm/arm.c (arm_option_params_internal): When optimising
27239 for speed set max_insns_skipped when arm_restrict_it.
27241 2015-06-11 Christian Bruel <christian.bruel@st.com>
27244 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
27246 (arm_cpu_builtins): New function.
27247 (arm_pragma_target_parse): Call arm_cpu_builtins.
27248 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
27249 (arm_register_target_pragmas): Likewise.
27250 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
27251 Call arm_register_target_pragmas.
27252 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
27253 (arm_pragma_target_parse): Likewise.
27255 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
27257 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
27258 of the second operand.
27260 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
27263 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
27264 to prepare mask operand for AVX512 modes.
27266 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27269 * doc/md.texi (Machine Constraints): Document that on the PowerPC
27270 if you use a constraint that targets a VSX register, you must use
27271 %x<n> in the template.
27273 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
27275 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
27276 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
27277 (define_insn "trap"): New definition.
27279 2015-06-10 Richard Biener <rguenther@suse.de>
27281 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
27283 (vect_supported_load_permutation_p): ... here. Handle
27284 supportable permutations in reductions.
27285 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
27286 for vectorizing strided group loads.
27288 2015-06-10 Jakub Jelinek <jakub@redhat.com>
27291 * config/i386/i386.c (ix86_split_long_move): For collisions
27292 involving direct tls segment refs, move the UNSPEC_TP possibly
27293 wrapped in ZERO_EXTEND out of the address for lea, to each of
27296 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27298 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
27299 dmb sy. Adjust tabs.
27301 2015-06-10 Tom de Vries <tom@codesourcery.com>
27303 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
27305 2015-06-10 Martin Liska <mliska@suse.cz>
27308 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
27309 all enum values in mem_alloc_origin.
27310 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
27312 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
27313 * bitmap.c (bitmap_register): Likewise.
27314 (dump_bitmap_statistics): Likewise.
27315 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
27316 (ggc_record_overhead): Likewise.
27317 * hash-map.h: Likewise.
27318 * hash-set.h: Likewise.
27319 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27320 * hash-table.h: Likewise.
27321 * vec.c (vec_prefix::register_overhead): Likewise.
27322 (vec_prefix::release_overhead): Likewise.
27323 (dump_vec_loc_statistics): Likewise.
27325 2015-06-09 Christian Bruel <christian.bruel@st.com>
27328 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27329 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27330 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27331 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27332 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27333 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27334 (arm_valid_target_attribute_p): Likewise.
27335 (arm_set_current_function, arm_can_inline_p): Likewise.
27336 (arm_valid_target_attribute_rec): Likewise.
27337 (arm_previous_fndecl): New variable.
27338 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27339 (TARGET_CAN_INLINE_P): Define.
27340 (arm_asm_trampoline_template): Emit mode.
27341 (arm_file_start): Don't set unified syntax.
27342 (arm_declare_function_name): Set unified syntax and mode.
27343 (arm_option_override): Init target_option_default_node.
27344 and target_option_current_node.
27345 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27346 (*call_symbol): Likewise.
27347 * doc/extend.texi: Document ARM/Thumb target attribute.
27348 * doc/invoke.texi: Likewise.
27350 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27353 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27354 PR rtl-optimization/64164
27355 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27356 * tree-ssa-copyrename.c: Removed.
27357 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27358 -ftree-coalesce-vars.
27359 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27360 * common.opt (ftree-copyrename): Ignore.
27361 (ftree-coalesce-inlined-vars): Likewise.
27362 * doc/invoke.texi: Remove the ignored options above.
27363 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27364 * tree-ssa-coalesce.h: ... here.
27365 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27366 headers required by it.
27367 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27368 across variables when flag_tree_coalesce_vars. Check register
27369 use and promoted modes to allow coalescing. Moved to
27370 tree-ssa-coalesce.c.
27371 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27372 with its member functions to tree-ssa-coalesce.c.
27373 (var_map_base_init): Likewise. Renamed to
27374 compute_samebase_partition_bases.
27375 (partition_view_normal): Drop want_bases parameter.
27376 (partition_view_bitmap): Likewise.
27377 * tree-ssa-live.h: Adjust declarations.
27378 * tree-ssa-coalesce.c: Include explow.h.
27379 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27380 default defs at the entry point.
27381 (dump_part_var_map): New.
27382 (compute_optimized_partition_bases): New, called by...
27383 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27384 of compute_samebase_partition_bases. Adjust.
27385 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27386 * cfgexpand.c (leader_merge): New.
27387 (get_rtl_for_parm_ssa_default_def): New.
27388 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27389 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27390 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27391 redundant MEM attr setting.
27392 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27394 (expand_one_stack_var): ... this. New wrapper to check and
27395 skip already expanded SSA partitions.
27396 (record_alignment_for_reg_var): New, factored out of...
27397 (expand_one_var): ... this.
27398 (expand_one_ssa_partition): New.
27399 (adjust_one_expanded_partition_var): New.
27400 (expand_one_register_var): Check and skip already expanded SSA
27402 (expand_used_vars): Don't create DECLs for anonymous SSA
27403 names. Expand all SSA partitions, then adjust all SSA names.
27404 (pass::execute): Replace the loops that set
27405 SA.partition_to_pseudo from partition leaders and cleared
27406 DECL_RTL for multi-location variables, and that which used to
27407 rename vars and set attrs, with one that clears DECL_RTL and
27408 checks that PARMs and RESULTs default_defs match DECL_RTL.
27409 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27410 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27411 * explow.c (promote_ssa_mode): New.
27412 * explow.h (promote_ssa_mode): Declare.
27413 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27414 * function.c: Include cfgexpand.h.
27415 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27416 (use_register_for_parm_decl): Wrapper for the above to
27417 special-case the result_ptr.
27418 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27419 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27420 multiple locations.
27421 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27422 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27423 (assign_parm_setup_block): Prefer SSA-assigned location.
27424 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27425 if stack_parm is NULL.
27426 (assign_parm_setup_stack): Prefer SSA-assigned location.
27427 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27428 rtl before testing for pointer bounds. Special-case result_ptr.
27429 (expand_function_start): Maybe reset DECL_RTL of result.
27430 Prefer SSA-assigned location for result and static chain.
27431 Factor out DECL_RESULT and SET_DECL_RTL.
27432 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27433 anonymous SSA names. Use promote_ssa_mode.
27434 (get_temp_reg): Likewise.
27435 (remove_ssa_form): Adjust.
27436 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27437 and get its reg_usage for reg invalidation.
27438 (compute_bb_dataflow): Pass it insn.
27439 (emit_notes_in_bb): Likewise.
27440 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27441 fail assert on conversion between unsigned types.
27443 2015-06-09 Tom de Vries <tom@codesourcery.com>
27445 PR tree-optimization/65460
27446 * omp-low.c (expand_omp_target): Set parallelized_function on
27447 cgraph_node for child_fn.
27449 2015-06-09 Tom de Vries <tom@codesourcery.com>
27451 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27452 parallelized_function before add_new_function.
27454 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
27456 * gcc-plugin.h: Move decls to plugin.h and include it.
27457 * plugin.h: Relocate decls from gcc-plugin.h
27458 * ggc-page.c: Include required header files.
27459 * passes.c: Likewise.
27460 * cgraphunit.c: Likewise.
27462 2015-06-09 Tom de Vries <tom@codesourcery.com>
27464 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27466 2015-06-09 Jason Merrill <jason@redhat.com>
27469 * toplev.c (check_global_declaration): Don't warn about a clone.
27471 2015-06-09 Marek Polacek <polacek@redhat.com>
27473 PR tree-optimization/66299
27474 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27475 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27478 2015-06-09 Richard Biener <rguenther@suse.de>
27480 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27481 (vect_analyze_slp_instance): Instead do not falsely drop
27484 2015-06-09 Richard Biener <rguenther@suse.de>
27486 PR middle-end/66423
27487 * match.pd: Handle A % (unsigned)(1 << B).
27489 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
27491 * varasm.c (output_object_block_htab): Remove.
27492 (output_object_block_compare): New.
27493 (output_object_blocks): Sort named object_blocks before outputting
27496 2015-06-09 Richard Biener <rguenther@suse.de>
27498 PR tree-optimization/66419
27499 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27500 consider GROUP_GAP when detecting a perfect subchain.
27502 2015-06-09 Nick Clifton <nickc@redhat.com>
27504 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27505 place read only data in the .frodata section.
27507 2015-06-09 Shiva Chen <shiva0217@gmail.com>
27509 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27510 (atomic_store<mode>): Likewise.
27512 2015-06-09 Richard Biener <rguenther@suse.de>
27514 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27516 2015-06-09 Richard Biener <rguenther@suse.de>
27518 PR middle-end/66413
27519 * tree-inline.c (insert_init_debug_bind): Unshare value.
27521 2015-06-09 Richard Biener <rguenther@suse.de>
27523 PR tree-optimization/66396
27524 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27525 Rename virtual operands.
27527 2015-06-09 Tom de Vries <tom@codesourcery.com>
27529 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27530 always return false.
27532 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27534 PR rtl-optimization/64164
27535 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27536 * tree-ssa-copyrename.c: Removed.
27537 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27538 -ftree-coalesce-vars.
27539 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27540 * common.opt (ftree-copyrename): Ignore.
27541 (ftree-coalesce-inlined-vars): Likewise.
27542 * doc/invoke.texi: Remove the ignored options above.
27543 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27544 * tree-ssa-coalesce.h: ... here.
27545 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27546 headers required by it.
27547 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27548 across variables when flag_tree_coalesce_vars. Check register
27549 use and promoted modes to allow coalescing. Moved to
27550 tree-ssa-coalesce.c.
27551 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27552 with its member functions to tree-ssa-coalesce.c.
27553 (var_map_base_init): Likewise. Renamed to
27554 compute_samebase_partition_bases.
27555 (partition_view_normal): Drop want_bases parameter.
27556 (partition_view_bitmap): Likewise.
27557 * tree-ssa-live.h: Adjust declarations.
27558 * tree-ssa-coalesce.c: Include explow.h.
27559 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27560 default defs at the entry point.
27561 (dump_part_var_map): New.
27562 (compute_optimized_partition_bases): New, called by...
27563 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27564 of compute_samebase_partition_bases. Adjust.
27565 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27566 * cfgexpand.c (leader_merge): New.
27567 (get_rtl_for_parm_ssa_default_def): New.
27568 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27569 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27570 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27571 redundant MEM attr setting.
27572 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27574 (expand_one_stack_var): ... this. New wrapper to check and
27575 skip already expanded SSA partitions.
27576 (record_alignment_for_reg_var): New, factored out of...
27577 (expand_one_var): ... this.
27578 (expand_one_ssa_partition): New.
27579 (adjust_one_expanded_partition_var): New.
27580 (expand_one_register_var): Check and skip already expanded SSA
27582 (expand_used_vars): Don't create DECLs for anonymous SSA
27583 names. Expand all SSA partitions, then adjust all SSA names.
27584 (pass::execute): Replace the loops that set
27585 SA.partition_to_pseudo from partition leaders and cleared
27586 DECL_RTL for multi-location variables, and that which used to
27587 rename vars and set attrs, with one that clears DECL_RTL and
27588 checks that PARMs and RESULTs default_defs match DECL_RTL.
27589 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27590 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27591 * explow.c (promote_ssa_mode): New.
27592 * explow.h (promote_ssa_mode): Declare.
27593 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27594 * function.c: Include cfgexpand.h.
27595 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27596 (use_register_for_parm_decl): Wrapper for the above to
27597 special-case the result_ptr.
27598 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27599 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27600 multiple locations.
27601 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27602 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27603 (assign_parm_setup_block): Prefer SSA-assigned location.
27604 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27605 if stack_parm is NULL.
27606 (assign_parm_setup_stack): Prefer SSA-assigned location.
27607 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27608 rtl before testing for pointer bounds. Special-case result_ptr.
27609 (expand_function_start): Maybe reset DECL_RTL of result.
27610 Prefer SSA-assigned location for result and static chain.
27611 Factor out DECL_RESULT and SET_DECL_RTL.
27612 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27613 anonymous SSA names. Use promote_ssa_mode.
27614 (get_temp_reg): Likewise.
27615 (remove_ssa_form): Adjust.
27616 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27617 and get its reg_usage for reg invalidation.
27618 (compute_bb_dataflow): Pass it insn.
27619 (emit_notes_in_bb): Likewise.
27620 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27621 fail assert on conversion between unsigned types.
27623 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27626 * tree-inline.c (reset_debug_binding): New.
27627 (reset_debug_bindings): Likewise.
27628 (expand_call_inline): Call it.
27630 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27632 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
27635 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27637 * lto-streamer-out.c (lto_output_location): Stream
27638 reserved locations correctly.
27639 * lto-streamer-in.c (lto_output_location): Likewise.
27641 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
27643 * coretypes.h: Include hash-table.h and hash-set.h for host files.
27644 * ggc.h: Don't include statistics.h>
27645 * hash-map.h: Remove all includes.
27646 * hash-set.h: Likewise.
27647 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
27648 the include list. Remove <new>.
27649 * inchash.h: Remove all includes.
27650 * mem-stats.h: Likewise.
27651 * vec.h: No special processing for generators or ggc.
27652 * alias.c : Adjust include files.
27653 * alloc-pool.c : Likewise.
27654 * alloc-pool.h : Likewise.
27655 * asan.c : Likewise.
27656 * attribs.c : Likewise.
27657 * auto-inc-dec.c : Likewise.
27658 * auto-profile.c : Likewise.
27659 * bb-reorder.c : Likewise.
27660 * bitmap.c : Likewise.
27661 * bitmap.h : Likewise.
27662 * bt-load.c : Likewise.
27663 * builtins.c : Likewise.
27664 * caller-save.c : Likewise.
27665 * calls.c : Likewise.
27666 * ccmp.c : Likewise.
27667 * cfg.c : Likewise.
27668 * cfganal.c : Likewise.
27669 * cfgbuild.c : Likewise.
27670 * cfgcleanup.c : Likewise.
27671 * cfgexpand.c : Likewise.
27672 * cfghooks.c : Likewise.
27673 * cfgloop.c : Likewise.
27674 * cfgloop.h : Likewise.
27675 * cfgloopanal.c : Likewise.
27676 * cfgloopmanip.c : Likewise.
27677 * cfgrtl.c : Likewise.
27678 * cgraph.c : Likewise.
27679 * cgraphbuild.c : Likewise.
27680 * cgraphclones.c : Likewise.
27681 * cgraphunit.c : Likewise.
27682 * cilk-common.c : Likewise.
27683 * combine-stack-adj.c : Likewise.
27684 * combine.c : Likewise.
27685 * compare-elim.c : Likewise.
27686 * context.c : Likewise.
27687 * convert.c : Likewise.
27688 * coverage.c : Likewise.
27689 * cppbuiltin.c : Likewise.
27690 * cprop.c : Likewise.
27691 * cse.c : Likewise.
27692 * cselib.c : Likewise.
27693 * data-streamer-in.c : Likewise.
27694 * data-streamer-out.c : Likewise.
27695 * data-streamer.c : Likewise.
27696 * data-streamer.h : Likewise.
27697 * dbxout.c : Likewise.
27698 * dce.c : Likewise.
27699 * ddg.c : Likewise.
27700 * debug.c : Likewise.
27701 * df-core.c : Likewise.
27702 * df-problems.c : Likewise.
27703 * df-scan.c : Likewise.
27705 * dfp.c : Likewise.
27706 * dojump.c : Likewise.
27707 * dominance.c : Likewise.
27708 * domwalk.c : Likewise.
27709 * double-int.c : Likewise.
27710 * dse.c : Likewise.
27711 * dumpfile.c : Likewise.
27712 * dwarf2asm.c : Likewise.
27713 * dwarf2cfi.c : Likewise.
27714 * dwarf2out.c : Likewise.
27715 * emit-rtl.c : Likewise.
27716 * et-forest.c : Likewise.
27717 * except.c : Likewise.
27718 * except.h : Likewise.
27719 * explow.c : Likewise.
27720 * expmed.c : Likewise.
27721 * expr.c : Likewise.
27722 * final.c : Likewise.
27723 * fixed-value.c : Likewise.
27724 * fold-const.c : Likewise.
27725 * function.c : Likewise.
27726 * fwprop.c : Likewise.
27727 * gcc-plugin.h : Likewise.
27728 * gcc.c : Likewise.
27729 * gcse-common.c : Likewise.
27730 * gcse.c : Likewise.
27731 * genattrtab.c : Likewise.
27732 * genautomata.c : Likewise.
27733 * genconditions.c : Likewise.
27734 * genemit.c : Likewise.
27735 * generic-match-head.c : Likewise.
27736 * genextract.c : Likewise.
27737 * gengtype-state.c : Likewise.
27738 * gengtype.c : Likewise.
27739 * genhooks.c : Likewise.
27740 * genmatch.c : Likewise.
27741 * genmodes.c : Likewise.
27742 * genrecog.c : Likewise.
27743 * gensupport.c : Likewise.
27744 * ggc-common.c : Likewise.
27745 * ggc-internal.h : Likewise.
27746 * ggc-none.c : Likewise.
27747 * ggc-page.c : Likewise.
27748 * gimple-builder.c : Likewise.
27749 * gimple-expr.c : Likewise.
27750 * gimple-fold.c : Likewise.
27751 * gimple-iterator.c : Likewise.
27752 * gimple-low.c : Likewise.
27753 * gimple-match-head.c : Likewise.
27754 * gimple-pretty-print.c : Likewise.
27755 * gimple-ssa-isolate-paths.c : Likewise.
27756 * gimple-ssa-strength-reduction.c : Likewise.
27757 * gimple-ssa.h : Likewise.
27758 * gimple-streamer-in.c : Likewise.
27759 * gimple-streamer-out.c : Likewise.
27760 * gimple-streamer.h : Likewise.
27761 * gimple-walk.c : Likewise.
27762 * gimple.c : Likewise.
27763 * gimplify-me.c : Likewise.
27764 * gimplify.c : Likewise.
27765 * godump.c : Likewise.
27766 * graph.c : Likewise.
27767 * graphds.c : Likewise.
27768 * graphite-blocking.c : Likewise.
27769 * graphite-dependences.c : Likewise.
27770 * graphite-interchange.c : Likewise.
27771 * graphite-isl-ast-to-gimple.c : Likewise.
27772 * graphite-optimize-isl.c : Likewise.
27773 * graphite-poly.c : Likewise.
27774 * graphite-scop-detection.c : Likewise.
27775 * graphite-sese-to-poly.c : Likewise.
27776 * graphite.c : Likewise.
27777 * haifa-sched.c : Likewise.
27778 * hard-reg-set.h : Likewise.
27779 * hw-doloop.c : Likewise.
27780 * ifcvt.c : Likewise.
27781 * inchash.c : Likewise.
27782 * incpath.c : Likewise.
27783 * init-regs.c : Likewise.
27784 * input.c : Likewise.
27785 * internal-fn.c : Likewise.
27786 * ipa-chkp.c : Likewise.
27787 * ipa-comdats.c : Likewise.
27788 * ipa-cp.c : Likewise.
27789 * ipa-devirt.c : Likewise.
27790 * ipa-icf-gimple.c : Likewise.
27791 * ipa-icf.c : Likewise.
27792 * ipa-inline-analysis.c : Likewise.
27793 * ipa-inline-transform.c : Likewise.
27794 * ipa-inline.c : Likewise.
27795 * ipa-polymorphic-call.c : Likewise.
27796 * ipa-profile.c : Likewise.
27797 * ipa-prop.c : Likewise.
27798 * ipa-pure-const.c : Likewise.
27799 * ipa-ref.c : Likewise.
27800 * ipa-reference.c : Likewise.
27801 * ipa-split.c : Likewise.
27802 * ipa-utils.c : Likewise.
27803 * ipa-visibility.c : Likewise.
27804 * ipa.c : Likewise.
27805 * ira-build.c : Likewise.
27806 * ira-color.c : Likewise.
27807 * ira-conflicts.c : Likewise.
27808 * ira-costs.c : Likewise.
27809 * ira-emit.c : Likewise.
27810 * ira-lives.c : Likewise.
27811 * ira.c : Likewise.
27812 * jump.c : Likewise.
27813 * langhooks.c : Likewise.
27814 * lcm.c : Likewise.
27815 * libfuncs.h : Likewise.
27816 * lists.c : Likewise.
27817 * loop-doloop.c : Likewise.
27818 * loop-init.c : Likewise.
27819 * loop-invariant.c : Likewise.
27820 * loop-iv.c : Likewise.
27821 * loop-unroll.c : Likewise.
27822 * lower-subreg.c : Likewise.
27823 * lra-assigns.c : Likewise.
27824 * lra-coalesce.c : Likewise.
27825 * lra-constraints.c : Likewise.
27826 * lra-eliminations.c : Likewise.
27827 * lra-lives.c : Likewise.
27828 * lra-remat.c : Likewise.
27829 * lra-spills.c : Likewise.
27830 * lra.c : Likewise.
27831 * lto-cgraph.c : Likewise.
27832 * lto-compress.c : Likewise.
27833 * lto-opts.c : Likewise.
27834 * lto-section-in.c : Likewise.
27835 * lto-section-out.c : Likewise.
27836 * lto-streamer-in.c : Likewise.
27837 * lto-streamer-out.c : Likewise.
27838 * lto-streamer.c : Likewise.
27839 * lto-streamer.h : Likewise.
27840 * mcf.c : Likewise.
27841 * mode-switching.c : Likewise.
27842 * modulo-sched.c : Likewise.
27843 * omega.c : Likewise.
27844 * omp-low.c : Likewise.
27845 * optabs.c : Likewise.
27846 * opts-global.c : Likewise.
27847 * opts.h : Likewise.
27848 * passes.c : Likewise.
27849 * plugin.c : Likewise.
27850 * postreload-gcse.c : Likewise.
27851 * postreload.c : Likewise.
27852 * predict.c : Likewise.
27853 * print-rtl.c : Likewise.
27854 * print-tree.c : Likewise.
27855 * profile.c : Likewise.
27856 * read-md.c : Likewise.
27857 * read-md.h : Likewise.
27858 * read-rtl.c : Likewise.
27859 * real.c : Likewise.
27860 * realmpfr.c : Likewise.
27861 * recog.c : Likewise.
27862 * ree.c : Likewise.
27863 * reg-stack.c : Likewise.
27864 * regcprop.c : Likewise.
27865 * reginfo.c : Likewise.
27866 * regrename.c : Likewise.
27867 * regstat.c : Likewise.
27868 * reload.c : Likewise.
27869 * reload1.c : Likewise.
27870 * reorg.c : Likewise.
27871 * resource.c : Likewise.
27872 * rtl-chkp.c : Likewise.
27873 * rtl.c : Likewise.
27874 * rtl.h : Likewise.
27875 * rtlanal.c : Likewise.
27876 * rtlhash.c : Likewise.
27877 * rtlhash.h : Likewise.
27878 * rtlhooks.c : Likewise.
27879 * sanopt.c : Likewise.
27880 * sched-deps.c : Likewise.
27881 * sched-ebb.c : Likewise.
27882 * sched-rgn.c : Likewise.
27883 * sched-vis.c : Likewise.
27884 * sdbout.c : Likewise.
27885 * sel-sched-dump.c : Likewise.
27886 * sel-sched-ir.c : Likewise.
27887 * sel-sched-ir.h : Likewise.
27888 * sel-sched.c : Likewise.
27889 * sese.c : Likewise.
27890 * shrink-wrap.c : Likewise.
27891 * shrink-wrap.h : Likewise.
27892 * simplify-rtx.c : Likewise.
27893 * stack-ptr-mod.c : Likewise.
27894 * statistics.c : Likewise.
27895 * stmt.c : Likewise.
27896 * stor-layout.c : Likewise.
27897 * store-motion.c : Likewise.
27898 * stringpool.c : Likewise.
27899 * symtab.c : Likewise.
27900 * target-globals.c : Likewise.
27901 * targhooks.c : Likewise.
27902 * tlink.c : Likewise.
27903 * toplev.c : Likewise.
27904 * tracer.c : Likewise.
27905 * trans-mem.c : Likewise.
27906 * tree-affine.c : Likewise.
27907 * tree-affine.h : Likewise.
27908 * tree-browser.c : Likewise.
27909 * tree-call-cdce.c : Likewise.
27910 * tree-cfg.c : Likewise.
27911 * tree-cfgcleanup.c : Likewise.
27912 * tree-chkp-opt.c : Likewise.
27913 * tree-chkp.c : Likewise.
27914 * tree-chrec.c : Likewise.
27915 * tree-complex.c : Likewise.
27916 * tree-data-ref.c : Likewise.
27917 * tree-dfa.c : Likewise.
27918 * tree-diagnostic.c : Likewise.
27919 * tree-dump.c : Likewise.
27920 * tree-eh.c : Likewise.
27921 * tree-eh.h : Likewise.
27922 * tree-emutls.c : Likewise.
27923 * tree-hasher.h : Likewise.
27924 * tree-if-conv.c : Likewise.
27925 * tree-inline.c : Likewise.
27926 * tree-inline.h : Likewise.
27927 * tree-into-ssa.c : Likewise.
27928 * tree-iterator.c : Likewise.
27929 * tree-loop-distribution.c : Likewise.
27930 * tree-nested.c : Likewise.
27931 * tree-nrv.c : Likewise.
27932 * tree-object-size.c : Likewise.
27933 * tree-outof-ssa.c : Likewise.
27934 * tree-parloops.c : Likewise.
27935 * tree-phinodes.c : Likewise.
27936 * tree-predcom.c : Likewise.
27937 * tree-pretty-print.c : Likewise.
27938 * tree-profile.c : Likewise.
27939 * tree-scalar-evolution.c : Likewise.
27940 * tree-sra.c : Likewise.
27941 * tree-ssa-address.c : Likewise.
27942 * tree-ssa-alias.c : Likewise.
27943 * tree-ssa-ccp.c : Likewise.
27944 * tree-ssa-coalesce.c : Likewise.
27945 * tree-ssa-copy.c : Likewise.
27946 * tree-ssa-copyrename.c : Likewise.
27947 * tree-ssa-dce.c : Likewise.
27948 * tree-ssa-dom.c : Likewise.
27949 * tree-ssa-dse.c : Likewise.
27950 * tree-ssa-forwprop.c : Likewise.
27951 * tree-ssa-ifcombine.c : Likewise.
27952 * tree-ssa-live.c : Likewise.
27953 * tree-ssa-loop-ch.c : Likewise.
27954 * tree-ssa-loop-im.c : Likewise.
27955 * tree-ssa-loop-ivcanon.c : Likewise.
27956 * tree-ssa-loop-ivopts.c : Likewise.
27957 * tree-ssa-loop-manip.c : Likewise.
27958 * tree-ssa-loop-niter.c : Likewise.
27959 * tree-ssa-loop-prefetch.c : Likewise.
27960 * tree-ssa-loop-unswitch.c : Likewise.
27961 * tree-ssa-loop.c : Likewise.
27962 * tree-ssa-math-opts.c : Likewise.
27963 * tree-ssa-operands.c : Likewise.
27964 * tree-ssa-phiopt.c : Likewise.
27965 * tree-ssa-phiprop.c : Likewise.
27966 * tree-ssa-pre.c : Likewise.
27967 * tree-ssa-propagate.c : Likewise.
27968 * tree-ssa-reassoc.c : Likewise.
27969 * tree-ssa-sccvn.c : Likewise.
27970 * tree-ssa-scopedtables.c : Likewise.
27971 * tree-ssa-sink.c : Likewise.
27972 * tree-ssa-strlen.c : Likewise.
27973 * tree-ssa-structalias.c : Likewise.
27974 * tree-ssa-tail-merge.c : Likewise.
27975 * tree-ssa-ter.c : Likewise.
27976 * tree-ssa-threadedge.c : Likewise.
27977 * tree-ssa-threadupdate.c : Likewise.
27978 * tree-ssa-uncprop.c : Likewise.
27979 * tree-ssa-uninit.c : Likewise.
27980 * tree-ssa.c : Likewise.
27981 * tree-ssanames.c : Likewise.
27982 * tree-stdarg.c : Likewise.
27983 * tree-streamer-in.c : Likewise.
27984 * tree-streamer-out.c : Likewise.
27985 * tree-streamer.c : Likewise.
27986 * tree-streamer.h : Likewise.
27987 * tree-switch-conversion.c : Likewise.
27988 * tree-tailcall.c : Likewise.
27989 * tree-vect-data-refs.c : Likewise.
27990 * tree-vect-generic.c : Likewise.
27991 * tree-vect-loop-manip.c : Likewise.
27992 * tree-vect-loop.c : Likewise.
27993 * tree-vect-patterns.c : Likewise.
27994 * tree-vect-slp.c : Likewise.
27995 * tree-vect-stmts.c : Likewise.
27996 * tree-vectorizer.c : Likewise.
27997 * tree-vectorizer.h : Likewise.
27998 * tree-vrp.c : Likewise.
27999 * tree.c : Likewise.
28000 * tsan.c : Likewise.
28001 * ubsan.c : Likewise.
28002 * valtrack.c : Likewise.
28003 * valtrack.h : Likewise.
28004 * value-prof.c : Likewise.
28005 * var-tracking.c : Likewise.
28006 * varasm.c : Likewise.
28007 * varpool.c : Likewise.
28009 * vmsdbgout.c : Likewise.
28010 * vtable-verify.c : Likewise.
28011 * vtable-verify.h : Likewise.
28012 * web.c : Likewise.
28013 * wide-int.cc : Likewise.
28014 * xcoffout.c : Likewise.
28015 * config/aarch64/aarch64-builtins.c : Likewise.
28016 * config/aarch64/aarch64.c : Likewise.
28017 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28018 * config/alpha/alpha.c : Likewise.
28019 * config/arc/arc.c : Likewise.
28020 * config/arm/aarch-common.c : Likewise.
28021 * config/arm/arm-builtins.c : Likewise.
28022 * config/arm/arm-c.c : Likewise.
28023 * config/arm/arm.c : Likewise.
28024 * config/avr/avr-c.c : Likewise.
28025 * config/avr/avr-log.c : Likewise.
28026 * config/avr/avr.c : Likewise.
28027 * config/bfin/bfin.c : Likewise.
28028 * config/c6x/c6x.c : Likewise.
28029 * config/cr16/cr16.c : Likewise.
28030 * config/cris/cris.c : Likewise.
28031 * config/darwin-c.c : Likewise.
28032 * config/darwin.c : Likewise.
28033 * config/default-c.c : Likewise.
28034 * config/epiphany/epiphany.c : Likewise.
28035 * config/epiphany/mode-switch-use.c : Likewise.
28036 * config/epiphany/resolve-sw-modes.c : Likewise.
28037 * config/fr30/fr30.c : Likewise.
28038 * config/frv/frv.c : Likewise.
28039 * config/ft32/ft32.c : Likewise.
28040 * config/glibc-c.c : Likewise.
28041 * config/h8300/h8300.c : Likewise.
28042 * config/i386/i386-c.c : Likewise.
28043 * config/i386/i386.c : Likewise.
28044 * config/i386/msformat-c.c : Likewise.
28045 * config/i386/winnt-cxx.c : Likewise.
28046 * config/i386/winnt-stubs.c : Likewise.
28047 * config/i386/winnt.c : Likewise.
28048 * config/ia64/ia64-c.c : Likewise.
28049 * config/ia64/ia64.c : Likewise.
28050 * config/iq2000/iq2000.c : Likewise.
28051 * config/lm32/lm32.c : Likewise.
28052 * config/m32c/m32c-pragma.c : Likewise.
28053 * config/m32c/m32c.c : Likewise.
28054 * config/m32r/m32r.c : Likewise.
28055 * config/m68k/m68k.c : Likewise.
28056 * config/mcore/mcore.c : Likewise.
28057 * config/mep/mep-pragma.c : Likewise.
28058 * config/mep/mep.c : Likewise.
28059 * config/microblaze/microblaze-c.c : Likewise.
28060 * config/microblaze/microblaze.c : Likewise.
28061 * config/mips/mips.c : Likewise.
28062 * config/mmix/mmix.c : Likewise.
28063 * config/mn10300/mn10300.c : Likewise.
28064 * config/moxie/moxie.c : Likewise.
28065 * config/msp430/msp430-c.c : Likewise.
28066 * config/msp430/msp430.c : Likewise.
28067 * config/nds32/nds32-cost.c : Likewise.
28068 * config/nds32/nds32-fp-as-gp.c : Likewise.
28069 * config/nds32/nds32-intrinsic.c : Likewise.
28070 * config/nds32/nds32-isr.c : Likewise.
28071 * config/nds32/nds32-md-auxiliary.c : Likewise.
28072 * config/nds32/nds32-memory-manipulation.c : Likewise.
28073 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28074 * config/nds32/nds32-predicates.c : Likewise.
28075 * config/nds32/nds32.c : Likewise.
28076 * config/nios2/nios2.c : Likewise.
28077 * config/nvptx/nvptx.c : Likewise.
28078 * config/pa/pa.c : Likewise.
28079 * config/pdp11/pdp11.c : Likewise.
28080 * config/rl78/rl78-c.c : Likewise.
28081 * config/rl78/rl78.c : Likewise.
28082 * config/rs6000/rs6000-c.c : Likewise.
28083 * config/rs6000/rs6000.c : Likewise.
28084 * config/rx/rx.c : Likewise.
28085 * config/s390/s390-c.c : Likewise.
28086 * config/s390/s390.c : Likewise.
28087 * config/sh/sh-c.c : Likewise.
28088 * config/sh/sh-mem.cc : Likewise.
28089 * config/sh/sh.c : Likewise.
28090 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28091 * config/sh/sh_treg_combine.cc : Likewise.
28092 * config/sol2-c.c : Likewise.
28093 * config/sol2-cxx.c : Likewise.
28094 * config/sol2-stubs.c : Likewise.
28095 * config/sol2.c : Likewise.
28096 * config/sparc/sparc-c.c : Likewise.
28097 * config/sparc/sparc.c : Likewise.
28098 * config/spu/spu-c.c : Likewise.
28099 * config/spu/spu.c : Likewise.
28100 * config/stormy16/stormy16.c : Likewise.
28101 * config/tilegx/mul-tables.c : Likewise.
28102 * config/tilegx/tilegx-c.c : Likewise.
28103 * config/tilegx/tilegx.c : Likewise.
28104 * config/tilepro/mul-tables.c : Likewise.
28105 * config/tilepro/tilepro-c.c : Likewise.
28106 * config/tilepro/tilepro.c : Likewise.
28107 * config/v850/v850-c.c : Likewise.
28108 * config/v850/v850.c : Likewise.
28109 * config/vax/vax.c : Likewise.
28110 * config/visium/visium.c : Likewise.
28111 * config/vms/vms-c.c : Likewise.
28112 * config/vms/vms.c : Likewise.
28113 * config/vxworks.c : Likewise.
28114 * config/winnt-c.c : Likewise.
28115 * config/xtensa/xtensa.c : Likewise.
28117 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28120 * ipa-utils.h (warn_types_mismatch): Update prototype.
28121 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
28123 (type_mismatch_p): New function.
28124 (warn_types_mismatch): Reorg to work better on non-C++ types.
28125 (odr_types_equivalent_p): Add loc1/loc2 parameters.
28126 (add_type_duplicate): Update.
28128 2015-06-08 Tom de Vries <tom@codesourcery.com>
28130 PR rtl-optimization/66444
28131 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
28134 2015-06-08 Richard Biener <rguenther@suse.de>
28136 PR tree-optimization/66422
28137 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
28138 block after inserted gcc_unreachable.
28140 2015-06-08 Nick Clifton <nickc@redhat.com>
28142 * config/rx/rx.c (rx_function_value): Do not promote vector types.
28143 (rx_promote_function_mode): Likewise.
28144 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
28146 2015-06-08 Jakub Jelinek <jakub@redhat.com>
28148 * genattrtab.c (insn_alternatives): Change type from int *
28150 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
28151 (get_attr_value): Change type of num_alt to uint64_t.
28152 (compute_alternative_mask): Change return type from
28153 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
28154 (make_alternative_compare, mk_attr_alt): Change argument type
28155 from int to uint64_t.
28156 (simplify_test_exp): Change type of i from int to uint64_t.
28157 Shift ((uint64_t) 1) instead of 1 up.
28158 (main): Adjust oballocvec first argument from int to uint64_t.
28159 Shift ((uint64_t) 1) instead of 1 up.
28161 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
28164 * gdbhooks.py: Import sys.
28165 (intptr): New function. Replace int(...) by intptr(...).
28167 2015-06-08 Richard Biener <rguenther@suse.de>
28169 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
28170 adjustment for gaps at the end of a SLP load group properly.
28171 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
28172 all permutations we can generate.
28173 (vect_transform_slp_perm_load): Use the correct group-size.
28175 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
28177 * genmatch.c (expr::gen_transform): For conditions, guess the type
28178 from the second operand.
28180 2015-06-08 Tom de Vries <tom@codesourcery.com>
28182 PR tree-optimization/66442
28183 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
28184 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
28185 if the loop latch is not a singleton. Use
28186 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
28188 2015-06-08 Marek Polacek <polacek@redhat.com>
28191 * toplev.c (check_global_declaration): Don't warn about artificial
28194 2015-06-08 Tom de Vries <tom@codesourcery.com>
28196 PR tree-optimization/66436
28197 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
28199 * gimplify.c: Add tree-dump.h include.
28200 (gimplify_function_tree): Dump function to gimple dump file.
28201 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
28204 2015-06-08 Tom de Vries <tom@codesourcery.com>
28206 PR tree-optimization/66435
28207 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
28210 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
28212 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
28213 of ptr_type_node to not be ptr_to_node.
28214 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
28215 TREE_TYPE of pointers.
28216 * gimple-expr.c (useless_type_conversion): Reorder the check for
28217 function pointers and TYPE_CANONICAL.
28219 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
28222 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
28223 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
28224 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
28226 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
28227 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
28228 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
28229 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
28230 and non iso if unix2003.
28232 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
28234 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
28236 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
28238 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
28239 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
28240 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
28241 except.c, final.c, function.c, gcse-common.c, genemit.c,
28242 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
28243 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
28244 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
28245 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
28248 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
28250 * combine.c (combine_split_insns): Remove cast.
28251 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
28252 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
28253 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
28254 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
28255 * genemit.c (gen_split): Change return type of generated functions to
28257 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
28258 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
28259 gen_peephole2_* functions.
28260 (print_subroutine, main): Likewise.
28261 * recog.c (peephole2_optimize): Remove cast.
28262 (peep2_next_insn): Promote return type to rtx_insn.
28263 * recog.h (peep2_next_insn): Fix prototype.
28264 * rtl.h (try_split, split_insns): Likewise.
28266 2015-06-06 DJ Delorie <dj@redhat.com>
28268 * config/msp430/msp430.c (msp430_asm_integer): Support addition
28269 and subtraction too.
28271 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
28274 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
28275 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
28276 instead of Snd. Disparage Sid/z alternative with '^'.
28278 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
28280 * dwarf2out.c: Remove deferred_locations*.
28281 (dwarf2_debug_hooks): Add early_finish hook.
28282 Remove global_decl hook.
28283 Add early_global_decl and late_global_decl hook.
28284 New global early_dwarf.
28285 New structure set_early_dwarf.
28286 (output_die): Indicate whether a DIE was generated early
28287 when generating assembly with -dA.
28288 (struct limbo_die_struct): Document created_for field.
28289 Remove file_table_last_lookup.
28290 (remove_AT): Return TRUE if successful.
28291 (remove_child_TAG): Clear die_parent.
28292 (reparent_child): New function abstracted from...
28293 (splice_child_die): ...here.
28294 (new_die): ICE if a DIE ends up in limbo too late.
28296 (defer_location): Remove.
28297 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
28298 (fill_variable_array_bounds): New.
28299 (decl_start_label): Call fill_variable_array_bounds.
28300 (gen_formal_parameter_die): Rewrite to reuse previously generated
28302 (gen_subprogram_die): Same.
28303 (gen_variable_die): Same.
28304 (gen_const_die): Same.
28305 (gen_label_die): Same.
28306 (gen_lexical_block_die): Same.
28307 (decl_will_get_specification_p): New.
28308 (local_function_static): New.
28309 (gen_struct_or_union_type_die): Fill in variable-length fields.
28310 (gen_typedef_die): Fill in variable-length typedefs.
28311 (gen_tagged_type_die): Gracefully return on error_mark_node.
28312 Handle re-entrancy.
28313 (gen_type_die_with_usage): Handle variable-length types.
28314 Remove duplicate code for ARRAY_TYPE case.
28315 (process_scope_var): Only process imported modules during early
28317 (dwarf2out_early_global_decl): New.
28318 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28319 (dwarf2out_type_decl): Set early_dwarf while calling
28321 (dwarf2out_decl): Verify that we did not recreate a previously
28323 Do not return on DECL_EXTERNALs in VAR_DECLs.
28324 Abstract some code to local_function_static.
28325 (lookup_filename): Remove use of file_table_last_lookup.
28326 Gracefully exit on missing file_name.
28327 (dwarf2out_finish): Verify limbo list.
28328 Remove deferred_locations_list use.
28329 Move deferred_asm_name and limbo flushing to...
28330 (dwarf2out_early_finish): ...here. New.
28331 (dwarf2out_c_finalize): Remove set of deferred_location_list,
28332 deferred_asm_name, and file_table_last_lookup.
28333 * cgraph.h (referred_to_p): Add default argument.
28334 * cgraphunit.c (referred_to_p): Add and handle include_self
28336 (analyze_functions): Add first_time argument.
28337 Call check_global_declaration for all symbols.
28338 Call late_global_decl for nodes for moribund nodes.
28339 (finalize_compilation_unit): Add new argument to
28341 Call early_global_decl for functions.
28342 Call early_finish debug hook.
28343 * dbxout.c (dbxout_early_global_decl): New.
28344 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
28345 (dbx_debug_hooks): Add new hooks.
28346 (xcoff_debug_hooks): Same.
28347 * debug.c (do_nothing_debug_hooks): Add early_finish field.
28348 Add early and late debug hooks.
28349 Remove global_decl hook.
28350 * debug.h (struct gcc_debug_hooks): Add early_finish,
28351 early_global_decl, and late_global_decl fields.
28352 Remove global_decl field.
28353 Document gcc_debug_hooks.
28354 * gengtype.c (output_typename): Remove.
28355 * godump.c (go_early_global_decl): New.
28356 (go_late_global_decl): New.
28357 (go_global_decl): Remove.
28358 (dump_go_spec_init): Remove global_decl. Add
28359 {early,late}_global_decl.
28360 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28361 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28362 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28363 (write_global_declarations): Remove.
28364 (global_decl_processing): New.
28365 * langhooks.h (struct lang_hooks_for_decls): Remove
28366 final_write_globals field.
28367 Add post_compilation_parsing_cleanups field.
28368 * passes.c (rest_of_decl_compilation): Call early_global_decl.
28369 * sdbout.c: Add early and late_global_decl hooks. Remove
28370 sdbout_global_decl hook.
28371 Add early_finish field for sdb_debug_hooks.
28372 (sdbout_global_decl): Remove.
28373 (sdbout_early_global_decl): New.
28374 (sdbout_late_global_decl): New.
28375 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28376 * toplev.c (check_global_declaration): Rename from
28377 check_global_declaration_1.
28378 Adapt to use symtab infrastructure.
28379 (check_global_declarations): Remove.
28380 (emit_debug_global_declarations): Remove.
28381 (compile_file): Remove call to final_write_globals langhook.
28382 Run the actual compilation process.
28383 Perform any post compilation parser cleanups.
28384 Generate late debug info.
28385 * toplev.h (check_global_declaration): New.
28386 (check_global_declaration_1): Remove.
28387 (check_global_declarations): Remove.
28388 (write_global_declarations): Remove.
28389 (emit_debug_global_declarations): Remove.
28390 (global_decl_processing): New.
28391 * tree-core.h (struct tree_block): Add DIE field.
28392 * tree.h (BLOCK_DIE): New.
28393 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28395 (vmsdbgout_early_global_decl): New.
28396 (vmsdbgout_late_global_decl): New.
28397 Add early_finish debug hook field to vmsdbg_debug_hooks.
28398 Remove vmsdbgout_decl to vmsdbgout_function_decl.
28399 Add early and late_global_decl debug hooks.
28401 2015-06-05 Julian Brown <julian@codesourcery.com>
28402 Sandra Loosemore <sandra@codesourcery.com>
28404 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28405 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28406 to print-sysroot-suffix.sh script.
28408 2015-06-05 Tom de Vries <tom@codesourcery.com>
28410 merge from gomp4 branch:
28411 2015-05-28 Tom de Vries <tom@codesourcery.com>
28413 PR tree-optimization/65443
28414 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28415 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28416 (try_transform_to_exit_first_loop_alt): New function.
28417 (transform_to_exit_first_loop): Use
28418 try_transform_to_exit_first_loop_alt.
28420 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
28422 * builtins.c (expand_builtin_atomic_compare_exchange): Call
28423 emit_cmp_and_jump_insns with the mode of target.
28425 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28427 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28429 2015-06-04 DJ Delorie <dj@redhat.com>
28431 * config/msp430/msp430.md (movsi_s): New. Special case for
28432 storing a 20-bit symbol into a 32-bit register.
28433 * config/msp430/msp430.c (msp430_subreg): Add support for it.
28434 * config/msp430/predicates.md (msp430_symbol_operand): New.
28436 2015-06-04 Sriraman Tallam <tmsriram@google.com>
28438 * calls.c (prepare_call_address): Check for noplt
28440 * config/i386/i386.c (ix86_expand_call): Check
28441 for noplt attribute.
28442 (ix86_nopic_noplt_attribute_p): New function.
28443 (ix86_output_call_insn): Output indirect call for non-pic
28445 * doc/extend.texi (noplt): Document new attribute.
28446 * doc/invoke.texi: Document new attribute.
28448 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
28450 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28451 real.h, and fixed-value.h when included in host source files.
28452 * double-int.h: Remove redundant #includes listed above.
28453 * fixed-value.h: Likewise.
28454 * real.h: Likewise.
28455 * wide-int.h: Likewise.
28456 * inchash.h: Likewise.
28457 * rtl.h: Add some include files When included from a generator file.
28458 * target.h: Remove wide-int.h and insn-modes.h from the include list.
28459 * internal-fn.h: Don't include coretypes.h.
28460 * alias.c: Adjust includes for restructured coretypes.h.
28461 * asan.c: Likewise.
28462 * attribs.c: Likewise.
28463 * auto-inc-dec.c: Likewise.
28464 * auto-profile.c: Likewise.
28465 * bb-reorder.c: Likewise.
28466 * bt-load.c: Likewise.
28467 * builtins.c: Likewise.
28468 * caller-save.c: Likewise.
28469 * calls.c: Likewise.
28470 * ccmp.c: Likewise.
28472 * cfganal.c: Likewise.
28473 * cfgbuild.c: Likewise.
28474 * cfgcleanup.c: Likewise.
28475 * cfgexpand.c: Likewise.
28476 * cfghooks.c: Likewise.
28477 * cfgloop.c: Likewise.
28478 * cfgloop.h: Likewise.
28479 * cfgloopanal.c: Likewise.
28480 * cfgloopmanip.c: Likewise.
28481 * cfgrtl.c: Likewise.
28482 * cgraph.c: Likewise.
28483 * cgraphbuild.c: Likewise.
28484 * cgraphclones.c: Likewise.
28485 * cgraphunit.c: Likewise.
28486 * cilk-common.c: Likewise.
28487 * combine-stack-adj.c: Likewise.
28488 * combine.c: Likewise.
28489 * compare-elim.c: Likewise.
28490 * convert.c: Likewise.
28491 * coverage.c: Likewise.
28492 * cppbuiltin.c: Likewise.
28493 * cprop.c: Likewise.
28495 * cselib.c: Likewise.
28496 * data-streamer-in.c: Likewise.
28497 * data-streamer-out.c: Likewise.
28498 * data-streamer.c: Likewise.
28499 * dbxout.c: Likewise.
28502 * debug.c: Likewise.
28503 * df-core.c: Likewise.
28504 * df-problems.c: Likewise.
28505 * df-scan.c: Likewise.
28508 * dojump.c: Likewise.
28509 * dominance.c: Likewise.
28510 * domwalk.c: Likewise.
28511 * double-int.c: Likewise.
28513 * dumpfile.c: Likewise.
28514 * dwarf2asm.c: Likewise.
28515 * dwarf2cfi.c: Likewise.
28516 * dwarf2out.c: Likewise.
28517 * dwarf2out.h: Likewise.
28518 * emit-rtl.c: Likewise.
28519 * et-forest.c: Likewise.
28520 * except.c: Likewise.
28521 * explow.c: Likewise.
28522 * expmed.c: Likewise.
28523 * expr.c: Likewise.
28524 * final.c: Likewise.
28525 * fixed-value.c: Likewise.
28526 * fold-const.c: Likewise.
28527 * function.c: Likewise.
28528 * fwprop.c: Likewise.
28529 * gcc-plugin.h: Likewise.
28530 * gcse.c: Likewise.
28531 * generic-match-head.c: Likewise.
28532 * ggc-page.c: Likewise.
28533 * gimple-builder.c: Likewise.
28534 * gimple-expr.c: Likewise.
28535 * gimple-fold.c: Likewise.
28536 * gimple-iterator.c: Likewise.
28537 * gimple-low.c: Likewise.
28538 * gimple-match-head.c: Likewise.
28539 * gimple-pretty-print.c: Likewise.
28540 * gimple-ssa-isolate-paths.c: Likewise.
28541 * gimple-ssa-strength-reduction.c: Likewise.
28542 * gimple-streamer-in.c: Likewise.
28543 * gimple-streamer-out.c: Likewise.
28544 * gimple-streamer.h: Likewise.
28545 * gimple-walk.c: Likewise.
28546 * gimple.c: Likewise.
28547 * gimplify-me.c: Likewise.
28548 * gimplify.c: Likewise.
28549 * godump.c: Likewise.
28550 * graph.c: Likewise.
28551 * graphite-blocking.c: Likewise.
28552 * graphite-dependences.c: Likewise.
28553 * graphite-interchange.c: Likewise.
28554 * graphite-isl-ast-to-gimple.c: Likewise.
28555 * graphite-optimize-isl.c: Likewise.
28556 * graphite-poly.c: Likewise.
28557 * graphite-scop-detection.c: Likewise.
28558 * graphite-sese-to-poly.c: Likewise.
28559 * graphite.c: Likewise.
28560 * haifa-sched.c: Likewise.
28561 * hooks.h: Likewise.
28562 * hw-doloop.c: Likewise.
28563 * ifcvt.c: Likewise.
28564 * incpath.c: Likewise.
28565 * init-regs.c: Likewise.
28566 * internal-fn.c: Likewise.
28567 * ipa-chkp.c: Likewise.
28568 * ipa-comdats.c: Likewise.
28569 * ipa-cp.c: Likewise.
28570 * ipa-devirt.c: Likewise.
28571 * ipa-icf-gimple.c: Likewise.
28572 * ipa-icf.c: Likewise.
28573 * ipa-inline-analysis.c: Likewise.
28574 * ipa-inline-transform.c: Likewise.
28575 * ipa-inline.c: Likewise.
28576 * ipa-polymorphic-call.c: Likewise.
28577 * ipa-profile.c: Likewise.
28578 * ipa-prop.c: Likewise.
28579 * ipa-pure-const.c: Likewise.
28580 * ipa-ref.c: Likewise.
28581 * ipa-reference.c: Likewise.
28582 * ipa-split.c: Likewise.
28583 * ipa-utils.c: Likewise.
28584 * ipa-visibility.c: Likewise.
28586 * ira-build.c: Likewise.
28587 * ira-color.c: Likewise.
28588 * ira-conflicts.c: Likewise.
28589 * ira-costs.c: Likewise.
28590 * ira-emit.c: Likewise.
28591 * ira-lives.c: Likewise.
28593 * jump.c: Likewise.
28594 * langhooks.c: Likewise.
28596 * loop-doloop.c: Likewise.
28597 * loop-init.c: Likewise.
28598 * loop-invariant.c: Likewise.
28599 * loop-iv.c: Likewise.
28600 * loop-unroll.c: Likewise.
28601 * lower-subreg.c: Likewise.
28602 * lra-assigns.c: Likewise.
28603 * lra-coalesce.c: Likewise.
28604 * lra-constraints.c: Likewise.
28605 * lra-eliminations.c: Likewise.
28606 * lra-lives.c: Likewise.
28607 * lra-remat.c: Likewise.
28608 * lra-spills.c: Likewise.
28610 * lto-cgraph.c: Likewise.
28611 * lto-compress.c: Likewise.
28612 * lto-opts.c: Likewise.
28613 * lto-section-in.c: Likewise.
28614 * lto-section-out.c: Likewise.
28615 * lto-streamer-in.c: Likewise.
28616 * lto-streamer-out.c: Likewise.
28617 * lto-streamer.c: Likewise.
28619 * mode-switching.c: Likewise.
28620 * modulo-sched.c: Likewise.
28621 * omega.c: Likewise.
28622 * omp-low.c: Likewise.
28623 * optabs.c: Likewise.
28624 * opts-global.c: Likewise.
28625 * passes.c: Likewise.
28626 * plugin.c: Likewise.
28627 * postreload-gcse.c: Likewise.
28628 * postreload.c: Likewise.
28629 * predict.c: Likewise.
28630 * print-rtl.c: Likewise.
28631 * print-tree.c: Likewise.
28632 * profile.c: Likewise.
28633 * real.c: Likewise.
28634 * realmpfr.c: Likewise.
28635 * realmpfr.h: Likewise.
28636 * recog.c: Likewise.
28638 * reg-stack.c: Likewise.
28639 * regcprop.c: Likewise.
28640 * reginfo.c: Likewise.
28641 * regrename.c: Likewise.
28642 * regs.h: Likewise.
28643 * regstat.c: Likewise.
28644 * reload.c: Likewise.
28645 * reload1.c: Likewise.
28646 * reorg.c: Likewise.
28647 * resource.c: Likewise.
28648 * rtl-chkp.c: Likewise.
28649 * rtlanal.c: Likewise.
28650 * rtlhooks.c: Likewise.
28651 * sanopt.c: Likewise.
28652 * sched-deps.c: Likewise.
28653 * sched-ebb.c: Likewise.
28654 * sched-rgn.c: Likewise.
28655 * sched-vis.c: Likewise.
28656 * sdbout.c: Likewise.
28657 * sel-sched-dump.c: Likewise.
28658 * sel-sched-ir.c: Likewise.
28659 * sel-sched.c: Likewise.
28660 * sese.c: Likewise.
28661 * shrink-wrap.c: Likewise.
28662 * shrink-wrap.h: Likewise.
28663 * simplify-rtx.c: Likewise.
28664 * stack-ptr-mod.c: Likewise.
28665 * statistics.c: Likewise.
28666 * stmt.c: Likewise.
28667 * stor-layout.c: Likewise.
28668 * store-motion.c: Likewise.
28669 * stringpool.c: Likewise.
28670 * symtab.c: Likewise.
28671 * target-globals.c: Likewise.
28672 * targhooks.c: Likewise.
28673 * toplev.c: Likewise.
28674 * tracer.c: Likewise.
28675 * trans-mem.c: Likewise.
28676 * tree-affine.c: Likewise.
28677 * tree-affine.h: Likewise.
28678 * tree-browser.c: Likewise.
28679 * tree-call-cdce.c: Likewise.
28680 * tree-cfg.c: Likewise.
28681 * tree-cfgcleanup.c: Likewise.
28682 * tree-chkp-opt.c: Likewise.
28683 * tree-chkp.c: Likewise.
28684 * tree-chrec.c: Likewise.
28685 * tree-complex.c: Likewise.
28686 * tree-data-ref.c: Likewise.
28687 * tree-dfa.c: Likewise.
28688 * tree-diagnostic.c: Likewise.
28689 * tree-dump.c: Likewise.
28690 * tree-eh.c: Likewise.
28691 * tree-emutls.c: Likewise.
28692 * tree-if-conv.c: Likewise.
28693 * tree-inline.c: Likewise.
28694 * tree-into-ssa.c: Likewise.
28695 * tree-iterator.c: Likewise.
28696 * tree-loop-distribution.c: Likewise.
28697 * tree-nested.c: Likewise.
28698 * tree-nrv.c: Likewise.
28699 * tree-object-size.c: Likewise.
28700 * tree-outof-ssa.c: Likewise.
28701 * tree-parloops.c: Likewise.
28702 * tree-phinodes.c: Likewise.
28703 * tree-predcom.c: Likewise.
28704 * tree-pretty-print.c: Likewise.
28705 * tree-pretty-print.h: Likewise.
28706 * tree-profile.c: Likewise.
28707 * tree-scalar-evolution.c: Likewise.
28708 * tree-sra.c: Likewise.
28709 * tree-ssa-address.c: Likewise.
28710 * tree-ssa-alias.c: Likewise.
28711 * tree-ssa-ccp.c: Likewise.
28712 * tree-ssa-coalesce.c: Likewise.
28713 * tree-ssa-copy.c: Likewise.
28714 * tree-ssa-copyrename.c: Likewise.
28715 * tree-ssa-dce.c: Likewise.
28716 * tree-ssa-dom.c: Likewise.
28717 * tree-ssa-dse.c: Likewise.
28718 * tree-ssa-forwprop.c: Likewise.
28719 * tree-ssa-ifcombine.c: Likewise.
28720 * tree-ssa-live.c: Likewise.
28721 * tree-ssa-loop-ch.c: Likewise.
28722 * tree-ssa-loop-im.c: Likewise.
28723 * tree-ssa-loop-ivcanon.c: Likewise.
28724 * tree-ssa-loop-ivopts.c: Likewise.
28725 * tree-ssa-loop-manip.c: Likewise.
28726 * tree-ssa-loop-niter.c: Likewise.
28727 * tree-ssa-loop-prefetch.c: Likewise.
28728 * tree-ssa-loop-unswitch.c: Likewise.
28729 * tree-ssa-loop.c: Likewise.
28730 * tree-ssa-loop.h: Likewise.
28731 * tree-ssa-math-opts.c: Likewise.
28732 * tree-ssa-operands.c: Likewise.
28733 * tree-ssa-phiopt.c: Likewise.
28734 * tree-ssa-phiprop.c: Likewise.
28735 * tree-ssa-pre.c: Likewise.
28736 * tree-ssa-propagate.c: Likewise.
28737 * tree-ssa-reassoc.c: Likewise.
28738 * tree-ssa-sccvn.c: Likewise.
28739 * tree-ssa-scopedtables.c: Likewise.
28740 * tree-ssa-sink.c: Likewise.
28741 * tree-ssa-strlen.c: Likewise.
28742 * tree-ssa-structalias.c: Likewise.
28743 * tree-ssa-tail-merge.c: Likewise.
28744 * tree-ssa-ter.c: Likewise.
28745 * tree-ssa-threadedge.c: Likewise.
28746 * tree-ssa-threadupdate.c: Likewise.
28747 * tree-ssa-uncprop.c: Likewise.
28748 * tree-ssa-uninit.c: Likewise.
28749 * tree-ssa.c: Likewise.
28750 * tree-ssanames.c: Likewise.
28751 * tree-stdarg.c: Likewise.
28752 * tree-streamer-in.c: Likewise.
28753 * tree-streamer-out.c: Likewise.
28754 * tree-streamer.c: Likewise.
28755 * tree-switch-conversion.c: Likewise.
28756 * tree-tailcall.c: Likewise.
28757 * tree-vect-data-refs.c: Likewise.
28758 * tree-vect-generic.c: Likewise.
28759 * tree-vect-loop-manip.c: Likewise.
28760 * tree-vect-loop.c: Likewise.
28761 * tree-vect-patterns.c: Likewise.
28762 * tree-vect-slp.c: Likewise.
28763 * tree-vect-stmts.c: Likewise.
28764 * tree-vectorizer.c: Likewise.
28765 * tree-vrp.c: Likewise.
28766 * tree.c: Likewise.
28767 * tsan.c: Likewise.
28768 * ubsan.c: Likewise.
28769 * valtrack.c: Likewise.
28770 * value-prof.c: Likewise.
28771 * var-tracking.c: Likewise.
28772 * varasm.c: Likewise.
28773 * varpool.c: Likewise.
28774 * vmsdbgout.c: Likewise.
28775 * vtable-verify.c: Likewise.
28777 * wide-int-print.cc: Likewise.
28778 * wide-int-print.h: Likewise.
28779 * wide-int.cc: Likewise.
28780 * xcoffout.c: Likewise.
28781 * config/aarch64/aarch64-builtins.c: Likewise.
28782 * config/aarch64/aarch64.c: Likewise.
28783 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28784 * config/alpha/alpha.c: Likewise.
28785 * config/arc/arc.c: Likewise.
28786 * config/arm/aarch-common.c: Likewise.
28787 * config/arm/arm-builtins.c: Likewise.
28788 * config/arm/arm-c.c: Likewise.
28789 * config/arm/arm.c: Likewise.
28790 * config/avr/avr-c.c: Likewise.
28791 * config/avr/avr-log.c: Likewise.
28792 * config/avr/avr.c: Likewise.
28793 * config/bfin/bfin.c: Likewise.
28794 * config/c6x/c6x.c: Likewise.
28795 * config/cr16/cr16.c: Likewise.
28796 * config/cris/cris.c: Likewise.
28797 * config/darwin-c.c: Likewise.
28798 * config/darwin.c: Likewise.
28799 * config/default-c.c: Likewise.
28800 * config/epiphany/epiphany.c: Likewise.
28801 * config/epiphany/mode-switch-use.c: Likewise.
28802 * config/epiphany/resolve-sw-modes.c: Likewise.
28803 * config/fr30/fr30.c: Likewise.
28804 * config/frv/frv.c: Likewise.
28805 * config/ft32/ft32.c: Likewise.
28806 * config/glibc-c.c: Likewise.
28807 * config/h8300/h8300.c: Likewise.
28808 * config/i386/i386-c.c: Likewise.
28809 * config/i386/i386.c: Likewise.
28810 * config/i386/msformat-c.c: Likewise.
28811 * config/i386/winnt-cxx.c: Likewise.
28812 * config/i386/winnt-stubs.c: Likewise.
28813 * config/i386/winnt.c: Likewise.
28814 * config/ia64/ia64-c.c: Likewise.
28815 * config/ia64/ia64.c: Likewise.
28816 * config/iq2000/iq2000.c: Likewise.
28817 * config/lm32/lm32.c: Likewise.
28818 * config/m32c/m32c-pragma.c: Likewise.
28819 * config/m32c/m32c.c: Likewise.
28820 * config/m32r/m32r.c: Likewise.
28821 * config/m68k/m68k.c: Likewise.
28822 * config/mcore/mcore.c: Likewise.
28823 * config/mep/mep-pragma.c: Likewise.
28824 * config/mep/mep.c: Likewise.
28825 * config/microblaze/microblaze-c.c: Likewise.
28826 * config/microblaze/microblaze.c: Likewise.
28827 * config/mips/mips.c: Likewise.
28828 * config/mmix/mmix.c: Likewise.
28829 * config/mn10300/mn10300.c: Likewise.
28830 * config/moxie/moxie.c: Likewise.
28831 * config/msp430/msp430-c.c: Likewise.
28832 * config/msp430/msp430.c: Likewise.
28833 * config/nds32/nds32-cost.c: Likewise.
28834 * config/nds32/nds32-fp-as-gp.c: Likewise.
28835 * config/nds32/nds32-intrinsic.c: Likewise.
28836 * config/nds32/nds32-isr.c: Likewise.
28837 * config/nds32/nds32-md-auxiliary.c: Likewise.
28838 * config/nds32/nds32-memory-manipulation.c: Likewise.
28839 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28840 * config/nds32/nds32-predicates.c: Likewise.
28841 * config/nds32/nds32.c: Likewise.
28842 * config/nios2/nios2.c: Likewise.
28843 * config/nvptx/nvptx.c: Likewise.
28844 * config/pa/pa.c: Likewise.
28845 * config/pdp11/pdp11.c: Likewise.
28846 * config/rl78/rl78-c.c: Likewise.
28847 * config/rl78/rl78.c: Likewise.
28848 * config/rs6000/rs6000-c.c: Likewise.
28849 * config/rs6000/rs6000.c: Likewise.
28850 * config/rx/rx.c: Likewise.
28851 * config/s390/s390-c.c: Likewise.
28852 * config/s390/s390.c: Likewise.
28853 * config/sh/sh-c.c: Likewise.
28854 * config/sh/sh-mem.cc: Likewise.
28855 * config/sh/sh.c: Likewise.
28856 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
28857 * config/sh/sh_treg_combine.cc: Likewise.
28858 * config/sol2-c.c: Likewise.
28859 * config/sol2-cxx.c: Likewise.
28860 * config/sol2-stubs.c: Likewise.
28861 * config/sol2.c: Likewise.
28862 * config/sparc/sparc-c.c: Likewise.
28863 * config/sparc/sparc.c: Likewise.
28864 * config/spu/spu-c.c: Likewise.
28865 * config/spu/spu.c: Likewise.
28866 * config/stormy16/stormy16.c: Likewise.
28867 * config/tilegx/mul-tables.c: Likewise.
28868 * config/tilegx/tilegx-c.c: Likewise.
28869 * config/tilegx/tilegx.c: Likewise.
28870 * config/tilepro/mul-tables.c: Likewise.
28871 * config/tilepro/tilepro-c.c: Likewise.
28872 * config/tilepro/tilepro.c: Likewise.
28873 * config/v850/v850-c.c: Likewise.
28874 * config/v850/v850.c: Likewise.
28875 * config/vax/vax.c: Likewise.
28876 * config/visium/visium.c: Likewise.
28877 * config/vms/vms-c.c: Likewise.
28878 * config/vms/vms.c: Likewise.
28879 * config/vxworks.c: Likewise.
28880 * config/winnt-c.c: Likewise.
28881 * config/xtensa/xtensa.c: Likewise.
28882 * common/config/bfin/bfin-common.c: Likewise.
28884 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
28886 * tree.h (tree_code_for_canonical_type_merging): New function.
28887 * tree.c (gimple_canonical_types_compatible_p): Use
28888 tree_code_for_canonical_type_merging..
28890 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28894 * doc/tm.texi: Regenerate.
28895 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
28896 * target.def (TARGET_RELAXED_ORDERING): Likewise.
28897 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
28898 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
28899 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
28900 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
28901 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
28902 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
28903 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
28905 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28907 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
28908 register fma steering pass.
28909 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
28910 AARCH64_TUNE_FMA_STEERING.
28912 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
28914 * tree.c (verify_type_variant): Verify that type and variant is
28916 (gimple_canonical_types_compatible_p): Look for main variants.
28918 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28920 * config.gcc (powerpc*-*-*): Add support for a new configure
28921 option --with-advance-toolchain=<xxx> which overrides using the
28922 default header files, libraries and dynamic linker.
28924 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28925 specs to support the configure --with-advance-toolchain=<xxx>
28927 (INCLUDE_EXTRA_SPEC): Likewise.
28928 (LINK_OS_EXTRA_SPEC32): Likewise.
28929 (LINK_OK_EXTRA_SPEC64): Likewise.
28930 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28931 (DYNAMIC_LINKER_PREFIX): Likewise.
28932 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28934 (GLIBC_DYNAMIC_LINKER32): Likewise.
28935 (GLIBC_DYNAMIC_LINKER64): Likewise.
28936 (LINK_OS_LINUX_SPEC32): Likewise.
28937 (LINK_OS_LINUX_SPEC64): Likewise.
28939 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28940 configuration option.
28942 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
28945 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28946 to determine current function ABI.
28947 (ix86_function_value_regno_p): Ditto.
28949 2015-06-03 Martin Liska <mliska@suse.cz>
28951 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28952 * bitmap.h (struct bitmap_usage): Likewise.
28953 * ggc-common.c (struct ggc_usage): Likewise.
28954 * mem-stats.h (struct mem_location): Likewise.
28955 (struct mem_usage): Likewise.
28956 * vec.c (struct vec_usage): Likewise.
28958 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
28960 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28963 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
28965 * doc/plugins.texi (enum plugin_event): New event.
28966 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28967 and PLUGIN_FINISH_FUNCTION.
28968 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28969 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28971 2015-06-03 Richard Biener <rguenther@suse.de>
28973 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28974 compute GROUP_GAP for the first element.
28975 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28978 2015-06-03 Nick Clifton <nickc@redhat.com>
28980 * config/rl78/rl78-real.md: Add peepholes to avoid a register
28981 copy when calling a function.
28982 * config/rl78/rl78.c (need_to_save): Do not push the frame
28983 pointer in an interrupt handler prologue if it is never used.
28985 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28987 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28989 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
28991 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28992 reference when cloning alias node.
28994 2015-06-03 Martin Liska <mliska@suse.cz>
28996 * alloc-pool.h (struct pool_usage): Correct space padding.
28997 * ggc-page.c (ggc_print_statistics): Align columns in a report.
28998 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28999 * tree.c (dump_tree_statistics): Align columns in a report.
29001 2015-06-03 Martin Liska <mliska@suse.cz>
29003 * alloc-pool.c (allocate_pool_descriptor): Remove.
29004 (struct pool_output_info): Likewise.
29005 (print_alloc_pool_statistics): Likewise.
29006 (dump_alloc_pool_statistics): Likewise.
29007 * alloc-pool.h (struct pool_usage): New struct.
29008 (pool_allocator::initialize): Change usage of memory statistics
29009 to a new interface.
29010 (pool_allocator::release): Likewise.
29011 (pool_allocator::allocate): Likewise.
29012 (pool_allocator::remove): Likewise.
29013 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29014 for a pool allocator.
29015 * mem-stats.h (struct mem_location): Add new ctor.
29016 (struct mem_usage): Add counter for number of
29018 (mem_alloc_description::register_descriptor): New overload of
29019 * mem-stats.h (mem_location::to_string): New function.
29020 * bitmap.h (struct bitmap_usage): Use this new function.
29021 * ggc-common.c (struct ggc_usage): Likewise.
29024 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29026 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29027 of GCC_INSN_FLAGS_H block.
29029 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
29031 * explow.c (plus_constant): Update check after force_const_mem call
29032 to see if the value returned is not a NULL_RTX.
29034 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29036 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29037 remove instumentation thunks calling reachable functions.
29038 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29039 * lto/lto-partition.c (privatize_symbol_name_1): New.
29040 (privatize_symbol_name): Privatize both decl and orig_decl
29041 names for instrumented functions.
29042 * cgraph.c (cgraph_node::verify_node): Add transparent
29043 alias chain check for instrumented node.
29045 2015-06-03 Marek Polacek <polacek@redhat.com>
29049 * tree.c (attribute_value_equal): Handle attribute format.
29050 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29052 2015-06-03 Richard Biener <rguenther@suse.de>
29054 PR tree-optimization/63916
29055 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29056 Forward-propagate non-invariant addresses by splicing their
29057 reference ops if the result isn't going to be used by PRE.
29058 (vn_reference_lookup_3): Remove pointless assert.
29060 2015-06-03 Richard Biener <rguenther@suse.de>
29062 PR tree-optimization/66375
29063 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29064 add to the evolution before following SSA edges.
29066 2015-06-03 Bin Cheng <bin.cheng@arm.com>
29068 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29069 (dump_use, dump_cand, find_induction_variables): Pass new argument
29071 (record_use): Preserve the ssa name information in IV.
29073 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29075 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29077 (add_mode_tests): Don't add mode tests if the predicate only
29078 accepts scalar constant integers. Otherwise, allow the mode
29079 of "op" to be VOIDmode if the predicate does accept such integers.
29081 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
29084 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29085 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29086 (aarch64_secondary_reload): Likewise
29087 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29089 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29092 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
29093 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29096 * cprop.c (try_replace_reg): Check cost of constants before propagating.
29098 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29100 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
29101 provide access to the IBM extended double floating point mode if
29102 long double is IEEE 128-bit floating point.
29103 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
29104 point if long double is the IBM extended double type.
29106 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
29107 enable adding IEEE 128-bit floating point support.
29108 (-mfloat128-software): Likewise.
29109 (-mfloat128-sw): Likewise.
29111 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
29112 128-bit floating point types to occupy any register if
29113 -mlong-double-64. Do not allow use of IFmode/KFmode unless
29114 -mfloat128-software is enabled.
29115 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
29117 (rs6000_option_override_internal): Add -mfloat128-* support.
29118 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
29120 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
29121 and float128 type nodes.
29122 (ieee128_float_type_node): Likewise.
29123 (ibm128_float_type_node): Likewise.
29125 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29128 * config/aarch64/geniterators.sh: Rewrite in awk.
29130 2015-06-02 Martin Liska <mliska@suse.cz>
29132 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
29133 values to avoid -Wmaybe-uninitialized errors.
29135 2015-06-02 Richard Biener <rguenther@suse.de>
29138 * dwarf2out.c (lookup_context_die): New function.
29139 (resolve_addr): Avoid forcing a full DIE for the
29140 target of a DW_TAG_GNU_call_site during late compilation.
29141 Instead create a stub DIE without a type if we have a
29142 context DIE present.
29144 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
29146 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
29148 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29150 PR tree-optimization/48052
29151 * cfgloop.h (struct control_iv): New.
29152 (struct loop): New field control_ivs.
29153 * tree-ssa-loop-niter.c : Include "stor-layout.h".
29154 (number_of_iterations_lt): Set no_overflow information.
29155 (number_of_iterations_exit): Init control iv in niter struct.
29156 (record_control_iv): New.
29157 (estimate_numbers_of_iterations_loop): Call record_control_iv.
29158 (loop_exits_before_overflow): New. Interface factored out of
29159 scev_probably_wraps_p.
29160 (scev_probably_wraps_p): Factor loop niter related code into
29161 loop_exits_before_overflow.
29162 (free_numbers_of_iterations_estimates_loop): Free control ivs.
29163 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
29165 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
29167 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
29168 the target doesn't belong to the current function.
29170 2015-06-02 Marek Polacek <polacek@redhat.com>
29172 PR middle-end/66345
29173 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
29174 get_maxval_strlen does not produce an INTEGER_CST.
29176 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
29178 * config/arc/constraints.md: Use lower-case names in match_code.
29179 * config/mmix/constraints.md: Likewise.
29181 2015-06-02 Richard Biener <rguenther@suse.de>
29183 PR tree-optimization/65961
29184 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
29185 check and clarify dump message.
29186 (vect_build_slp_tree): If all children are built up from scalars
29187 build up the parent from scalars instead.
29188 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
29190 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
29193 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
29194 instead of print ... .
29196 2015-06-02 Alan Modra <amodra@gmail.com>
29198 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
29201 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29203 PR tree-optimization/52563
29204 PR tree-optimization/62173
29205 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
29206 (alloc_iv, set_iv): New parameter.
29207 (determine_biv_step): Delete.
29208 (find_bivs): Inline original determine_biv_step. Pass new
29209 argument to set_iv.
29210 (idx_find_step): Use no_overflow information for conversion.
29211 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
29212 resolve_mixers handle folded_casts.
29213 (instantiate_scev_name): Change bool parameter to bool pointer.
29214 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
29215 (instantiate_array_ref, instantiate_scev_not): Ditto.
29216 (instantiate_scev_3, instantiate_scev_2): Ditto.
29217 (instantiate_scev_1, instantiate_scev_r): Ditto.
29218 (instantiate_scev_convert, ): Change parameter. Pass argument
29219 to chrec_convert_aggressive.
29220 (instantiate_scev): Change argument.
29221 (resolve_mixers): New parameter and set it.
29222 (scev_const_prop): New argument.
29223 * tree-scalar-evolution.h (resolve_mixers): New parameter.
29224 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
29226 (chrec_convert): New parameter. Move definition below.
29227 (chrec_convert_aggressive): New parameter and set it. Call
29228 convert_affine_scev.
29229 * tree-chrec.h (chrec_convert): New parameter.
29230 (chrec_convert_aggressive): Ditto.
29232 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29234 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
29235 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
29236 the LHS of a no-return call if its type has variable size.
29237 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
29238 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
29240 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
29242 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
29243 * config.in: Regenerate.
29245 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
29247 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
29248 consecutive accesses within outer-loop with force_vectorize
29249 for references with zero step in inner-loop.
29251 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29253 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
29254 rather than from gcc/build directory.
29256 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29259 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
29260 for __sync memory models, emit initial loads and final barriers as
29263 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29266 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
29267 (aarch64_split_atomic_op): Check for __sync memory models, emit
29268 appropriate initial loads and final barriers.
29270 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29272 * Makefile.in: Fix gcov dependencies that should
29273 not point to a build folder.
29275 2015-06-01 Richard Biener <rguenther@suse.de>
29278 2015-05-29 Richard Biener <rguenther@suse.de>
29280 PR tree-optimization/66314
29281 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29282 parameter that says which loop the new block belongs to.
29283 (ssa_create_duplicates): Blocks duplicated for the threaded
29284 path belong to the loop of the thread destination.
29286 2015-06-01 Martin Liska <mliska@suse.cz>
29288 * sched-deps.c: Include pool-alloc.h before
29289 cselib.h header file is included.
29291 2015-06-01 Richard Biener <rguenther@suse.de>
29293 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
29296 2015-06-01 Martin Liska <mliska@suse.cz>
29298 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
29299 a function local variable.
29301 2015-06-01 Martin Liska <mliska@suse.cz>
29303 * alloc-pool.c (create_alloc_pool): Remove.
29304 (empty_alloc_pool): Likewise.
29305 (free_alloc_pool): Likewise.
29306 (free_alloc_pool_if_empty): Likewise.
29307 (pool_alloc): Likewise.
29308 (pool_free): Likewise.
29309 * alloc-pool.h: Remove old declarations.
29311 2015-06-01 Martin Liska <mliska@suse.cz>
29313 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
29314 (ira_create_object): Likewise.
29315 (ira_create_allocno): Likewise.
29316 (ira_create_live_range): Likewise.
29317 (copy_live_range): Likewise.
29318 (ira_finish_live_range): Likewise.
29319 (ira_free_allocno_costs): Likewise.
29320 (finish_allocno): Likewise.
29321 (finish_allocnos): Likewise.
29322 (initiate_prefs): Likewise.
29323 (ira_create_pref): Likewise.
29324 (finish_pref): Likewise.
29325 (finish_prefs): Likewise.
29326 (initiate_copies): Likewise.
29327 (ira_create_copy): Likewise.
29328 (finish_copy): Likewise.
29329 (finish_copies): Likewise.
29330 (finish_prefs): Likewise.
29332 2015-06-01 Martin Liska <mliska@suse.cz>
29334 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29335 (allocate_and_init_ipcp_value): Likewise.
29336 (ipcp_lattice::add_value): Likewise.
29337 (merge_agg_lats_step): Likewise.
29338 (ipcp_driver): Likewise.
29339 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29340 (ipa_free_all_structures_after_iinln): Likewise.
29341 * ipa-prop.h: Likewise.
29343 2015-06-01 Martin Liska <mliska@suse.cz>
29345 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29347 (set_hint_predicate): Likewise.
29348 (inline_summary_alloc): Likewise.
29349 (reset_inline_edge_summary): Likewise.
29350 (reset_inline_summary): Likewise.
29351 (set_cond_stmt_execution_predicate): Likewise.
29352 (set_switch_stmt_execution_predicate): Likewise.
29353 (compute_bb_predicates): Likewise.
29354 (estimate_function_body_sizes): Likewise.
29355 (inline_free_summary): Likewise.
29357 2015-06-01 Martin Liska <mliska@suse.cz>
29359 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29360 (ipa_edge_duplication_hook): Likewise.
29361 (ipa_free_all_structures_after_ipa_cp): Likewise.
29362 (ipa_free_all_structures_after_iinln): Likewise.
29364 2015-06-01 Martin Liska <mliska@suse.cz>
29366 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29367 (ipa_profile_generate_summary): Likewise.
29368 (ipa_profile_read_summary): Likewise.
29369 (ipa_profile): Likewise.
29371 2015-06-01 Martin Liska <mliska@suse.cz>
29373 * tree-ssa-structalias.c (new_var_info): Use new type-based
29375 (new_constraint): Likewise.
29376 (init_alias_vars): Likewise.
29377 (delete_points_to_sets): Likewise.
29379 2015-06-01 Martin Liska <mliska@suse.cz>
29381 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29382 (free_strinfo): Likewise.
29383 (pass_strlen::execute): Likewise.
29385 2015-06-01 Martin Liska <mliska@suse.cz>
29387 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29389 (vn_reference_insert_pieces): Likewise.
29390 (vn_phi_insert): Likewise.
29391 (visit_reference_op_call): Likewise.
29392 (copy_phi): Likewise.
29393 (copy_reference): Likewise.
29394 (process_scc): Likewise.
29395 (allocate_vn_table): Likewise.
29396 (free_vn_table): Likewise.
29398 2015-06-01 Martin Liska <mliska@suse.cz>
29400 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29402 (add_repeat_to_ops_vec): Likewise.
29403 (get_ops): Likewise.
29404 (maybe_optimize_range_tests): Likewise.
29405 (init_reassoc): Likewise.
29406 (fini_reassoc): Likewise.
29408 2015-06-01 Martin Liska <mliska@suse.cz>
29410 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29412 (bitmap_set_new): Likewise.
29413 (get_or_alloc_expr_for_constant): Likewise.
29414 (get_or_alloc_expr_for): Likewise.
29415 (phi_translate_1): Likewise.
29416 (compute_avail): Likewise.
29417 (init_pre): Likewise.
29418 (fini_pre): Likewise.
29420 2015-06-01 Martin Liska <mliska@suse.cz>
29422 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29423 (delete_dep_node): Likewise.
29424 (create_deps_list): Likewise.
29425 (free_deps_list): Likewise.
29426 (sched_deps_init): Likewise.
29427 (sched_deps_finish): Likewise.
29429 2015-06-01 Martin Liska <mliska@suse.cz>
29431 * regcprop.c (free_debug_insn_changes): Use new type-based
29433 (replace_oldest_value_reg): Likewise.
29434 (pass_cprop_hardreg::execute): Likewise.
29436 2015-06-01 Martin Liska <mliska@suse.cz>
29438 * ira-build.c (initiate_cost_vectors): Use new type-based
29440 (ira_allocate_cost_vector): Likewise.
29441 (ira_free_cost_vector): Likewise.
29442 (finish_cost_vectors): Likewise.
29444 2015-06-01 Martin Liska <mliska@suse.cz>
29446 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29448 (free_sched_pools): Likewise.
29449 * sel-sched-ir.h (_list_alloc): Likewise.
29450 (_list_remove): Likewise.
29452 2015-06-01 Martin Liska <mliska@suse.cz>
29454 * stmt.c (add_case_node): Use new type-based pool allocator.
29455 (expand_case): Likewise.
29456 (expand_sjlj_dispatch_table): Likewise.
29458 2015-06-01 Martin Liska <mliska@suse.cz>
29460 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29461 (free_bb): Likewise.
29462 (pass_cse_reciprocals::execute): Likewise.
29464 2015-06-01 Martin Liska <mliska@suse.cz>
29466 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29467 (sra_deinitialize) Likewise.
29468 (create_access_1) Likewise.
29469 (build_accesses_from_assign) Likewise.
29470 (create_artificial_child_access) Likewise.
29472 2015-06-01 Martin Liska <mliska@suse.cz>
29474 * dse.c (get_group_info):Use new type-based pool allocator.
29475 (dse_step0) Likewise.
29476 (free_store_info) Likewise.
29477 (delete_dead_store_insn) Likewise.
29478 (free_read_records) Likewise.
29479 (record_store) Likewise.
29480 (replace_read) Likewise.
29481 (check_mem_read_rtx) Likewise.
29482 (scan_insn) Likewise.
29483 (dse_step1) Likewise.
29484 (dse_step7) Likewise.
29486 2015-06-01 Martin Liska <mliska@suse.cz>
29488 * df-scan.c (struct df_scan_problem_data):Use new type-based
29490 (df_scan_free_internal) Likewise.
29491 (df_scan_alloc) Likewise.
29492 (df_grow_reg_info) Likewise.
29493 (df_free_ref) Likewise.
29494 (df_insn_create_insn_record) Likewise.
29495 (df_mw_hardreg_chain_delete) Likewise.
29496 (df_insn_info_delete) Likewise.
29497 (df_free_collection_rec) Likewise.
29498 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29499 (df_sort_and_compress_mws) Likewise.
29500 (df_ref_create_structure) Likewise.
29501 (df_ref_record) Likewise.
29503 2015-06-01 Martin Liska <mliska@suse.cz>
29505 * df-problems.c (df_chain_create):Use new type-based pool allocator.
29506 (df_chain_unlink_1) Likewise.
29507 (df_chain_unlink) Likewise.
29508 (df_chain_remove_problem) Likewise.
29509 (df_chain_alloc) Likewise.
29510 (df_chain_free) Likewise.
29511 * df.h (struct dataflow) Likewise.
29513 2015-06-01 Martin Liska <mliska@suse.cz>
29515 * cselib.c (new_elt_list):Use new type-based pool allocator.
29516 (new_elt_loc_list) Likewise.
29517 (unchain_one_elt_list) Likewise.
29518 (unchain_one_elt_loc_list) Likewise.
29519 (unchain_one_value) Likewise.
29520 (new_cselib_val) Likewise.
29521 (cselib_init) Likewise.
29522 (cselib_finish) Likewise.
29524 2015-06-01 Martin Liska <mliska@suse.cz>
29526 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29527 (sh_reorg) Likewise.
29529 2015-06-01 Martin Liska <mliska@suse.cz>
29531 * cfg.c (initialize_original_copy_tables):Use new type-based
29533 (free_original_copy_tables) Likewise.
29534 (copy_original_table_clear) Likewise.
29535 (copy_original_table_set) Likewise.
29537 2015-06-01 Martin Liska <mliska@suse.cz>
29539 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29541 (asan_mem_ref_new) Likewise.
29542 (free_mem_ref_resources) Likewise.
29544 2015-06-01 Martin Liska <mliska@suse.cz>
29546 * var-tracking.c (variable_htab_free):Use new type-based
29548 (attrs_list_clear) Likewise.
29549 (attrs_list_insert) Likewise.
29550 (attrs_list_copy) Likewise.
29551 (shared_hash_unshare) Likewise.
29552 (shared_hash_destroy) Likewise.
29553 (unshare_variable) Likewise.
29554 (var_reg_delete_and_set) Likewise.
29555 (var_reg_delete) Likewise.
29556 (var_regno_delete) Likewise.
29557 (drop_overlapping_mem_locs) Likewise.
29558 (variable_union) Likewise.
29559 (insert_into_intersection) Likewise.
29560 (canonicalize_values_star) Likewise.
29561 (variable_merge_over_cur) Likewise.
29562 (dataflow_set_merge) Likewise.
29563 (remove_duplicate_values) Likewise.
29564 (variable_post_merge_new_vals) Likewise.
29565 (dataflow_set_preserve_mem_locs) Likewise.
29566 (dataflow_set_remove_mem_locs) Likewise.
29567 (variable_from_dropped) Likewise.
29568 (variable_was_changed) Likewise.
29569 (set_slot_part) Likewise.
29570 (clobber_slot_part) Likewise.
29571 (delete_slot_part) Likewise.
29572 (loc_exp_insert_dep) Likewise.
29573 (notify_dependents_of_changed_value) Likewise.
29574 (emit_notes_for_differences_1) Likewise.
29575 (vt_emit_notes) Likewise.
29576 (vt_initialize) Likewise.
29577 (vt_finalize) Likewise.
29579 2015-06-01 Martin Liska <mliska@suse.cz>
29581 * ira-color.c (init_update_cost_records):Use new type-based
29583 (get_update_cost_record) Likewise.
29584 (free_update_cost_record_list) Likewise.
29585 (finish_update_cost_records) Likewise.
29586 (initiate_cost_update) Likewise.
29588 2015-06-01 Martin Liska <mliska@suse.cz>
29590 * lra.c (init_insn_regs): Use new type-based pool allocator.
29591 (new_insn_reg) Likewise.
29592 (free_insn_reg) Likewise.
29593 (free_insn_regs) Likewise.
29594 (finish_insn_regs) Likewise.
29595 (init_insn_recog_data) Likewise.
29596 (init_reg_info) Likewise.
29597 (finish_reg_info) Likewise.
29598 (lra_free_copies) Likewise.
29599 (lra_create_copy) Likewise.
29600 (invalidate_insn_data_regno_info) Likewise.
29602 2015-06-01 Martin Liska <mliska@suse.cz>
29604 * lra-lives.c (free_live_range): Use new type-based pool allocator.
29605 (free_live_range_list) Likewise.
29606 (create_live_range) Likewise.
29607 (copy_live_range) Likewise.
29608 (lra_merge_live_ranges) Likewise.
29609 (remove_some_program_points_and_update_live_ranges) Likewise.
29610 (lra_live_ranges_init) Likewise.
29611 (lra_live_ranges_finish) Likewise.
29613 2015-06-01 Martin Liska <mliska@suse.cz>
29615 * et-forest.c (et_new_occ): Use new type-based pool allocator.
29616 (et_new_tree): Likewise.
29617 (et_free_tree): Likewise.
29618 (et_free_tree_force): Likewise.
29619 (et_free_pools): Likewise.
29620 (et_split): Likewise.
29622 2015-06-01 Martin Liska <mliska@suse.cz>
29624 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
29626 * alloc-pool.h (pool_allocator::pool_allocator): New function.
29627 (pool_allocator::release): Likewise.
29628 (inline pool_allocator::release_if_empty): Likewise.
29629 (inline pool_allocator::~pool_allocator): Likewise.
29630 (pool_allocator::allocate): Likewise.
29631 (pool_allocator::remove): Likewise.
29633 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29635 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
29638 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29640 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
29642 * config/arm/arm.c (arm_print_tune_info): Likewise.
29643 (arm_macro_fusion_p): Likewise.
29644 (arm_macro_fusion_pair_p): Likewise.
29646 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29648 * config/aarch64/aarch64-protos.h (tune_params): Rename
29649 fuseable_ops to fusible_ops.
29650 * config/aarch64/aarch64.c (generic_tunings): Rename
29651 fuseable_ops to fusible_ops.
29652 (cortexa53_tunings): Likewise.
29653 (cortexa57_tunings): Likewise.
29654 (thunderx_tunings): Likewise.
29655 (xgene1_tunings): Likewise.
29656 (aarch64_macro_fusion_p): Likewise.
29657 (aarch64_macro_fusion_pair_p): Likewise.
29659 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
29661 * config/s390/driver-native.c: New file.
29662 * config/s390/x-native: New file.
29663 * config.host: Add new files for s390.
29664 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
29666 * config.gcc: Likewise.
29667 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
29668 * config/s390/s390-opts.h (enum processor_type): Ditto.
29669 * config/s390/s390.c (s390_option_override): Catch unhandled
29672 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
29675 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
29676 redirection for instrumented calls.
29677 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
29678 (append_compiler_options): Append -fcheck-pointer-bounds.
29679 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
29680 (chkp_redirect_edge): New.
29681 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
29682 (chkp_redirect_edge): New.
29684 2015-06-01 Richard Biener <rguenther@suse.de>
29686 PR tree-optimization/66280
29687 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
29690 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29692 * config/aarch64/aarch64.md
29693 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
29696 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29698 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
29699 Remove obsolete kludge.
29701 2015-06-01 Richard Biener <rguenther@suse.de>
29703 * tree-ssa-reassoc.c (get_rank): Simplify.
29705 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
29707 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
29708 * configure: Regenerated.
29710 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
29712 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
29713 issue (add space between string literal and macro).
29714 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
29716 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
29718 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
29719 implict or explicit -fPIE or -fpie.
29721 2015-05-30 Mike Frysinger <vapier@gentoo.org>
29723 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
29725 2015-05-28 DJ Delorie <dj@redhat.com>
29727 * expmed.c (extract_bit_field_1): Avoid clobbering a
29728 yet-to-be-used base/index register.
29730 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
29732 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
29733 (alias_stats): Add num_universal.
29734 (alias_set_subset_of): Special case pointers; be ready for NULL
29736 (alias_sets_conflict_p): Special case pointers; be ready for NULL
29738 (init_alias_set_entry): Break out from ...
29739 (record_alias_subset): ... here; propagate new fields;
29740 allocate children only when really needed.
29741 (get_alias_set): Do less generous pointer globbing.
29742 (dump_alias_stats_in_alias_c): Update statistics.
29744 2015-05-30 Alan Modra <amodra@gmail.com>
29746 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
29747 correct block for use of r12.
29748 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
29750 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29753 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
29756 2015-05-29 Jakub Jelinek <jakub@redhat.com>
29758 PR tree-optimization/66142
29759 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
29760 virtual phis that feed themselves.
29762 2015-05-29 Richard Biener <rguenther@suse.de>
29764 PR tree-optimization/66314
29765 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29766 parameter that says which loop the new block belongs to.
29767 (ssa_create_duplicates): Blocks duplicated for the threaded
29768 path belong to the loop of the thread destination.
29770 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29772 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
29773 to cleanup-saved-temps.
29774 * doc/sourcebuild.texi (Clean up generated test files): Expand
29776 (dg-keep-saved-temps): Document new proc.
29777 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
29778 cleanup-saved-temps): Remove.
29780 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
29782 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
29783 gcc_AC_CHECK_DECLS.
29784 * configure: Regenerate.
29786 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29788 * config/nios2/linux.h (CPP_SPEC): Define.
29790 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29792 * config/microblaze/linux.h (CPP_SPEC): Define.
29794 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29796 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
29797 -pthread is specified.
29799 2015-05-28 Richard Biener <rguenther@suse.de>
29801 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
29802 (vect_fixup_scalar_cycles_with_patterns): Likewise.
29803 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
29804 after pattern recog.
29805 (vect_create_epilog_for_reduction): Properly handle reductions
29807 (vectorizable_reduction): Likewise.
29808 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
29810 (vect_get_constant_vectors): Create the correct number of
29811 initial values for reductions.
29812 (vect_schedule_slp_instance): Handle reduction chains that are
29813 type changing properly.
29814 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
29816 2015-05-28 Richard Biener <rguenther@suse.de>
29818 PR tree-optimization/66142
29819 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
29820 values better in memcpy destination handling. Handle non-aliasing
29823 2015-05-28 Lawrence Velázquez <vq@larryv.me>
29826 * config/darwin-c.c (version_components): New global enum.
29827 (parse_version, version_as_legacy_macro)
29828 (version_as_modern_macro, macosx_version_as_macro): New functions.
29829 (version_as_macro): Remove.
29830 (darwin_cpp_builtins): Use new function.
29832 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
29834 * builtins.c (expand_builtin_acc_on_device): Mark parameters
29835 with ATTRIBUTE_UNUSED.
29837 2015-05-28 Julian Brown <julian@codesourcery.com>
29841 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
29842 sequence for !ACCEL_COMPILER.
29844 2015-05-28 Nick Clifton <nickc@redhat.com>
29846 * config/rx/rx.c (push_regs): New function. Extracts code from...
29847 (rx_expand_prologue): ... here. Use push_regs to push even small
29848 spans of registers.
29849 (pop_regs): New function.
29850 (rx_expand_epilogue): Use pop_regs to pop even small spans of
29853 2015-05-28 Richard Biener <rguenther@suse.de>
29855 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
29857 (SLP_INSTANCE_BODY_COST_VEC): Remove.
29858 (vect_update_slp_costs_according_to_vf): Likewise.
29859 (vect_slp_analyze_operations): Update prototype.
29860 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
29861 vect_update_slp_costs_according_to_vf, adjust.
29862 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
29863 (vect_analyze_slp_cost_1): Likewise.
29864 (vect_analyze_slp_cost): Likewise. Properly deal with
29865 widening reduction ops. Commit body costs.
29866 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
29867 cost for loops from here.
29868 (vect_slp_analyze_operations): But do it from here when
29869 the vectorization factor is known and stmts are analyzed.
29870 (vect_bb_vectorization_profitable_p): Simplify.
29871 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
29872 (vect_update_slp_costs_according_to_vf): Remove.
29874 2015-05-27 Magnus Granberg <zorry@gentoo.org>
29875 H.J. Lu <hongjiu.lu@intel.com>
29877 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
29878 (BUILD_CFLAGS): Likewise.
29879 (BUILD_CXXFLAGS): Likewise.
29880 (LINKER): Add @NO_PIE_FLAG@.
29881 (BUILD_LDFLAGS): Likewise.
29882 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
29883 --enable-default-pie.
29884 * common.opt (fPIE): Initialize to -1.
29886 (no-pie): New option.
29887 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
29888 * configure.ac: Add --enable-default-pie.
29889 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
29890 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
29891 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
29892 * gcc.c (NO_PIE_SPEC): New.
29893 (PIE_SPEC): Likewise.
29894 (NO_FPIE1_SPEC): Likewise.
29895 (FPIE1_SPEC): Likewise.
29896 (NO_FPIE2_SPEC): Likewise.
29897 (FPIE2_SPEC): Likewise.
29898 (NO_FPIE2_SPEC): Likewise.
29899 (FPIE_SPEC): Likewise.
29900 (NO_FPIE_SPEC): Likewise.
29901 (NO_FPIC1_SPEC): Likewise.
29902 (FPIC1_SPEC): Likewise.
29903 (NO_FPIC2_SPEC): Likewise.
29904 (FPIC2_SPEC): Likewise.
29905 (NO_FPIC2_SPEC): Likewise.
29906 (FPIC_SPEC): Likewise.
29907 (NO_FPIC_SPEC): Likewise.
29908 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
29909 (FPIE1_OR_FPIC1_SPEC): Likewise.
29910 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
29911 (FPIE2_OR_FPIC2_SPEC): Likewise.
29912 (NO_FPIE_AND_FPIC_SPEC): Likewise.
29913 (FPIE_OR_FPIC_SPEC): Likewise.
29914 (LD_PIE_SPEC): Likewise.
29915 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
29916 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29917 * config/darwin.h (PIE_SPEC): Renamed to ...
29918 (DARWIN_PIE_SPEC): This.
29919 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29920 * config/darwin9.h (PIE_SPEC): Renamed to ...
29921 (DARWIN_PIE_SPEC): This.
29922 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29923 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29924 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29925 FPIE2_OR_FPIC2_SPEC.
29926 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29927 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29928 * config/sol2.h (ASM_PIC_SPEC): Likewise.
29929 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29930 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29931 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29932 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29933 * config/m32r/m32r.h (ASM_SPEC): Likewise.
29934 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29935 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29936 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29937 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29938 * config/sparc/linux.h (ASM_SPEC): Likewise.
29939 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29940 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29941 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29942 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29943 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29944 * config/sparc/sparc.h (ASM_SPEC): Likewise.
29945 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29946 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29947 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29948 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29949 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29950 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29951 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29952 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29953 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29954 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29955 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29956 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29957 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29958 * config/vax/linux.h (ASM_SPEC): Likewise.
29959 * doc/install.texi: Document --enable-default-pie.
29960 * doc/invoke.texi: Document -no-pie.
29961 * config.in: Regenerated.
29962 * configure: Likewise.
29964 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29966 PR rtl-optimization/66168
29967 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29968 can_move_invariant_reg.
29970 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
29973 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29974 REG_EQUAL note when doing insert.
29976 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29977 instead of "%d" for 'o' operand.
29979 2015-05-27 Nathan Sidwell <nathan@acm.org>
29982 * tree.c (build_pointer_type_for_mode): Canonical type does not
29983 inherit can_alias_all.
29984 (build_reference_type_for_mode): Likewise.
29986 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
29988 * expr.h (array_at_struct_end_p): Move to...
29989 (array_ref_element_size): Likewise.
29990 (component_ref_field_offset): Likewise.
29991 * tree.h (array_ref_element_size): ...here.
29992 (array_at_struct_end_p): Likewise.
29993 (component_ref_field_offset): Likewise.
29994 * expr.c (array_ref_element_size): Move to...
29995 (array_ref_low_bound): Likewise.
29996 (array_at_struct_end_p): Likewise.
29997 (array_ref_up_bound): Likewise.
29998 (component_ref_field_offset): Likewise.
29999 * tree.c (array_ref_element_size): ...here.
30000 (array_ref_low_bound): Likewise.
30001 (array_ref_up_bound): Likewise.
30002 (array_at_struct_end_p): Likewise.
30003 (component_ref_field_offset): Likewise.
30005 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30006 Szabolcs Nagy <szabolcs.nagy@arm.com>
30008 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30010 2015-05-27 Jason Merrill <jason@redhat.com>
30013 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30014 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30015 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30017 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30019 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30022 * statistics.c (statistics_fini_pass): Print pass name.
30024 2015-05-27 Richard Biener <rguenther@suse.de>
30026 PR tree-optimization/66272
30028 2014-08-15 Richard Biener <rguenther@suse.de>
30030 PR tree-optimization/62031
30031 * tree-data-ref.c (dr_analyze_indices): Do not set
30032 DR_UNCONSTRAINED_BASE.
30033 (dr_may_alias_p): All indirect accesses have to go the
30034 formerly DR_UNCONSTRAINED_BASE path.
30035 * tree-data-ref.h (struct indices): Remove
30036 unconstrained_base member.
30037 (DR_UNCONSTRAINED_BASE): Remove.
30039 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
30041 * dwarf2out.c: Remove block_map.
30042 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30043 (gen_lexical_block_die): Same.
30044 (dwarf2out_function_decl): Remove block_map use.
30045 (dwarf2out_c_finalize): Same.
30046 * tree-core.h (struct tree_block): Add die field.
30047 * tree.h (BLOCK_DIE): New.
30049 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30052 * expr.c (memory_load_overlap): New function.
30053 (emit_push_insn): When pushing partial args to the stack would
30054 clobber the register part load the overlapping part into a pseudo
30055 and put it into the hard reg after pushing. Change return type
30056 to bool. Add bool argument.
30057 * expr.h (emit_push_insn): Change return type to bool.
30059 * calls.c (expand_call): Cancel sibcall optimization when encountering
30060 partial argument on targets with ARGS_GROW_DOWNWARD and
30061 !STACK_GROWS_DOWNWARD.
30062 (emit_library_call_value_1): Update callsite of emit_push_insn.
30063 (store_one_arg): Likewise.
30065 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30067 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30069 2015-05-27 Martin Liska <mliska@suse.cz>
30071 * Makefile.in: Add additional dependencies related to memory report
30073 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30074 * bitmap.c (struct bitmap_descriptor_d): Remove.
30075 (struct loc): Likewise.
30076 (struct bitmap_desc_hasher): Likewise.
30077 (bitmap_desc_hasher::hash): Likewise.
30078 (bitmap_desc_hasher::equal): Likewise.
30079 (get_bitmap_descriptor): Likewise.
30080 (bitmap_register): User new memory descriptor API.
30081 (register_overhead): Likewise.
30082 (bitmap_find_bit): Register nsearches and search_iter statistics.
30083 (struct bitmap_output_info): Remove.
30084 (print_statistics): Likewise.
30085 (dump_bitmap_statistics): Use new memory descriptor.
30086 * bitmap.h (struct bitmap_usage): New class.
30087 * genmatch.c: Extend header file inclusion.
30088 * genpreds.c: Likewise.
30089 * ggc-common.c (struct ggc_usage): New class.
30090 (struct ggc_loc_desc_hasher): Remove.
30091 (ggc_loc_desc_hasher::hash): Likewise.
30092 (ggc_loc_desc_hasher::equal): Likewise.
30093 (struct ggc_ptr_hash_entry): Likewise.
30094 (struct ptr_hash_hasher): Likewise.
30095 (ptr_hash_hasher::hash): Likewise.
30096 (ptr_hash_hasher::equal): Likewise.
30097 (make_loc_descriptor): Likewise.
30098 (ggc_prune_ptr): Likewise.
30099 (dump_ggc_loc_statistics): Use new memory descriptor.
30100 (ggc_record_overhead): Likewise.
30101 (ggc_free_overhead): Likewise.
30102 (final_cmp_statistic): Remove.
30103 (cmp_statistic): Likewise.
30104 (ggc_add_statistics): Liekwise.
30105 (ggc_prune_overhead_list): Likewise.
30106 * hash-map-traits.h: New file.
30107 * hash-map.h (struct default_hashmap_traits): Move the traits to a
30108 separate header file.
30109 * hash-set.h: Pass memory statistics info to ctor.
30110 * hash-table.c (void dump_hash_table_loc_statistics): New function.
30111 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
30112 (hash_table::~hash_table): Register memory release operation.
30113 (hash_table::alloc_entries): Handle memory allocation operation.
30114 (hash_table::expand): Likewise.
30115 * inchash.c (iterative_hash_hashval_t): Move implementation to header
30117 (iterative_hash_host_wide_int): Likewise.
30118 * inchash.h (class hash): Likewise.
30119 * mem-stats-traits.h: New file.
30120 * mem-stats.h: New file.
30121 (mem_location): Add new class.
30122 (mem_usage): Likewise.
30123 (mem_alloc_description): Likewise.
30124 * sese.c: Add new header file inclusision.
30125 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
30127 * tree-sra.c: Add new header file inclusision.
30128 * vec.c (struct vec_descriptor): Remove.
30129 (hash_descriptor): Likewise.
30130 (struct vec_usage): Likewise.
30131 (struct ptr_hash_entry): Likewise.
30132 (hash_ptr): Likewise.
30133 (eq_ptr): Likewise.
30134 (vec_prefix::register_overhead): Use new memory descriptor API.
30135 (vec_prefix::release_overhead): Likewise.
30136 (add_statistics): Remove.
30137 (dump_vec_loc_statistics): Use new memory descriptor API.
30138 * vec.h (struct vec_prefix): Likewise.
30139 (va_heap::reserve): Likewise.
30140 (va_heap::release): Likewise.
30141 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
30143 2015-05-27 Richard Biener <rguenther@suse.de>
30145 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
30146 earlier and remove ??? comment.
30147 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
30148 and got called from loop analysis bail out. Always pass the SLP
30149 node to the vectorizable_* functions.
30150 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
30151 the premature SLP check here.
30152 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
30153 detected SLP stmts.
30154 (vect_detect_hybrid_slp_1): Likewise.
30156 2015-05-26 Jeff Law <law@redhat.com>
30158 * combine.c (find_split_point): Verify that the shift count is a
30159 constant when choosing (plus (ashift ...)) as a split point.
30161 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
30162 No functional changes.
30164 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
30166 * ipa-polymorphic-call.c
30167 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
30168 case when call target is already known.
30170 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
30173 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
30174 take into account the case that operands[1] and operands[2]
30175 are the same register.
30177 2015-05-26 Michael Matz <matz@suse.de>
30179 PR middle-end/66251
30181 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
30183 (vect_create_vectorized_demotion_stmts): Always set
30184 STMT_VINFO_VEC_STMT, also with SLP.
30185 (vectorizable_store): Handle strided group stores.
30187 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30190 * config/aarch64/aarch64.md
30191 (*adds_shift_imm_<mode>): New pattern.
30192 (*subs_shift_imm_<mode>): Likewise.
30193 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30194 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30195 (*add_uxt<mode>_shift2): Likewise.
30196 (*add_uxtsi_shift2_uxtw): Likewise.
30197 (*sub_uxt<mode>_shift2): Likewise.
30198 (*sub_uxtsi_shift2_uxtw): Likewise.
30200 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
30202 * config/rs6000/constraints.md (Y, U): Use match_test.
30204 2015-05-26 Christian Bruel <christian.bruel@st.com>
30207 * config/arm/arm.c (arm_option_check_internal)
30208 (arm_option_params_internal): Check opts->target_flags to set macros.
30209 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30210 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
30211 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30212 (builtin_define): Replaced with def_or_undef_macro.
30213 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30214 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
30215 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30216 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
30217 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
30218 (TARGET_ARM_FEATURE_LDREX_P)
30219 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
30220 * config/arm/arm-c.c (def_or_undef_macro): New function.
30221 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
30223 2015-05-26 Christian Bruel <christian.bruel@st.com>
30225 * c-common.h (builtin_define_with_int_value)
30226 (builtin_define_type_sizeof): Declare.
30227 * c-cppbuiltin.c (builtin_define_with_int_value)
30228 (builtin_define_type_sizeof): Externalize.
30229 (builtin_define_std): Cleanup declaration.
30230 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
30231 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
30232 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
30233 (builtin_define, builtin_assert): New macros.
30235 2015-05-26 Richard Biener <rguenther@suse.de>
30237 PR tree-optimization/66142
30238 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
30239 MEM_REFs for the same base address.
30241 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30244 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
30246 2015-05-26 Jason Merrill <jason@redhat.com>
30248 * configure.ac: Set CXXFLAGS for ISL test.
30249 * configure: Regenerate.
30251 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
30252 strstr and basename.
30253 * configure: Regenerate.
30255 2015-05-26 Richard Biener <rguenther@suse.de>
30257 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
30258 X % C -> X & (C - 1) for C being a power-of two to ...
30259 * match.pd: ... patterns.
30261 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
30263 * match.pd (swapped_tcc_comparison): New operator list.
30264 (-A CMP -B): New simplification.
30265 * fold-const.c (fold_comparison): Remove corresponding code.
30267 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30269 * caller-save.c (init_caller_save): Base temporary register numbers
30270 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
30271 * cfgloopanal.c (init_set_costs): Likewise.
30272 * dojump.c (prefer_and_bit_test): Likewise.
30273 * expr.c (init_expr_target): Likewise.
30274 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30275 * lower-subreg.c (init_lower_subreg): Likewise.
30276 * postreload.c (reload_cse_regs_1): Likewise.
30278 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30280 * gensupport.h (compute_test_codes): Declare.
30281 * gensupport.c (compute_predicate_codes): Rename to...
30282 (compute_test_codes): ...this. Generalize error message.
30283 (process_define_predicate): Update accordingly.
30284 * genpreds.c (compute_maybe_allows): Delete.
30285 (add_constraint): Use compute_test_codes to determine whether
30286 something can accept a SUBREG, REG or MEM.
30288 2015-05-26 Torvald Riegel <triegel@redhat.com>
30290 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
30291 'memory model' to align with C++11; fix description of memory orders;
30294 2015-05-26 Richard Biener <rguenther@suse.de>
30296 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
30297 (vect_analyze_loop_operations): ... here. Remove slp parameter,
30298 detect whether we apply SLP. Remove call to
30299 vect_update_slp_costs_according_to_vf.
30300 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
30301 vect_update_slp_costs_according_to_vf from here. Dispatch
30302 to vect_slp_analyze_operations to analyze SLP stmts.
30303 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
30304 unused bb_vec_info parameter, adjust assert.
30305 (vect_slp_analyze_operations): Pass in the slp instance tree
30306 instead of bb_vec_info.
30307 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
30308 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
30310 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30312 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
30313 Q_REGS. Expand comment.
30314 (REG_CLASS_NAMES): Ditto.
30315 (REG_CLASS_CONTENTS): Ditto.
30317 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
30320 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30321 when LEGACY_INT_REGNO_P is processed.
30323 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30325 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30327 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30329 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30330 register if not marked dead/unused, before return.
30332 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30335 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30336 is set; check for assembler name at LTO time.
30337 (type_in_anonymous_namespace): Remove hacks, check that all
30338 anonymous types are called "<anon>"
30339 (odr_type_p): Simplify; add check for "<anon>"
30340 (odr_subtypes_equivalent): Add odr_type_p check.
30341 * tree.c (need_assembler_name_p): Even anonymous namespace needs
30344 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30346 * ipa-utils.h (method_class_type): Remove.
30347 * cgraphunit.c (walk_polymorphic_call_targets): Use
30348 TYPE_METHOD_BASETYPE.
30349 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30350 on main variants only.
30351 (method_class_type): Remove.
30352 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30353 (build_type_inheritance_graph): Likewise.
30354 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30355 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30356 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30358 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30360 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30361 is_typedef_decl, typedef_variant_p): Constify.
30362 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30363 is_typedef_decl, typedef_variant_p): Constify.
30365 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30367 * defaults.h (gen_tablejump): New function.
30368 (HAVE_tablejump): Add default value.
30370 * stmt.c: Likewise.
30372 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30374 * defaults.h (gen_store_multiple): New function.
30375 (HAVE_store_multiple): Add default value.
30376 * expr.c (move_block_from_reg): Adjust.
30378 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30380 * defaults.h (gen_load_multiple): New function.
30381 (HAVE_load_multiple): Add default value.
30382 * expr.c (move_block_to_reg): Adjust.
30384 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30386 * defaults.h (gen_mem_signal_fence): New function.
30387 (HAVE_mem_signal_fence): Add default value.
30388 * optabs.c: Adjust.
30390 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30392 * defaults.h (gen_memory_barrier): New function.
30393 (HAVE_memory_barrier): Add default value.
30394 * optabs.c: Adjust.
30396 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30398 * defaults.h (gen_mem_thread_fence): New function.
30399 (HAVE_mem_thread_fence): Add default definition.
30400 * optabs.c: Adjust.
30402 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30404 * combine.c (find_split_point): Check the value of HAVE_lo_sum
30405 instead of if it is defined.
30406 (combine_simplify_rtx): Likewise.
30407 * lra-constraints.c (process_address_1): Likewise.
30408 * config/darwin.c: Adjust.
30409 * genconfig.c (main): Always define HAVE_lo_sum.
30411 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30413 * genmatch.c (parser::parse_operation): Reject expanding
30414 operator-list inside 'for'.
30416 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30418 * genmatch.c (parser::parse_for): Reject iterator if used as
30421 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30423 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30424 after end of id-list.
30426 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30428 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30429 we do not try to compute canonical type for type that does not need
30431 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30433 * tree.h (type_with_alias_set_p): New.
30435 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30437 * tree.c (gimple_canonical_types_compatible_p): Do not compare
30438 function attributes.
30439 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30441 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
30443 * Makefile.in (check_gcc_parallelize): Delete.
30444 (lang_checks_parallelized): Update comment.
30446 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
30448 PR rtl-optimization/66237
30449 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30450 location of an "as_a" cast.
30452 2015-05-22 Jeff Law <law@redhat.com>
30454 * config/pa/pa.md (non-canonical shift-add insns): Remove.
30455 (peepholes with non-canonical RTL sources): Remove.
30456 (peepholes for indexed stores of FP regs in integer modes): Match and
30457 generate canonical RTL.
30459 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30461 PR tree-optimization/63387
30462 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30463 ((x ord x) & (y ord y) -> (x ord y),
30464 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30465 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30466 vectors like scalars.
30468 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30470 * convert.c (convert_to_integer, convert_to_vector): Include the
30471 types in the error message.
30473 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30475 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30478 2015-05-22 Jeff Law <law@redhat.com>
30480 * config/pa/pa.md (integer_indexed_store splitters): Use
30481 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
30482 insns -- adjusting the constant 2nd operand accordingly.
30484 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30485 (plus (ashift X log2) Y) if it is a split point.
30487 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30488 out of hppa_legitimize_address to handle both forms of a multiply
30490 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30491 Always generate the ASHIFT variant as the result is not directly
30492 used in a MEM. Update comments and refactor slightly to improve
30495 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30498 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30499 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
30500 (aarch64_composite_type_p): Return false if given type and mode are
30501 for a short vector.
30503 2015-05-22 Richard Biener <rguenther@suse.de>
30505 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30507 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30508 patterns when determining whether SLP is pure.
30509 (vect_is_slp_reduction): Remove check for pattern stmts.
30510 (vect_is_simple_reduction_1): Remove dead code.
30511 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30512 (vect_get_and_check_slp_defs): Pass in the stmt number.
30513 Allow the first def in a reduction to be not a pattern stmt when
30514 the rest of the stmts def are patterns.
30515 (vect_build_slp_tree_1): Allow tcc_expression codes like
30516 SAD_EXPR and DOT_PROD_EXPR.
30517 (vect_build_slp_tree): Adjust.
30518 (vect_analyze_slp): Refactor and move BB vect error message ...
30519 (vect_slp_analyze_bb_1): ... here.
30521 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
30523 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30524 for CSWTCH temporary.
30526 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30528 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30529 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
30532 2015-05-22 Richard Biener <rguenther@suse.de>
30534 PR tree-optimization/66251
30535 * tree-vect-stmts.c (vectorizable_conversion): Properly
30536 set STMT_VINFO_VEC_STMT even for the SLP case.
30538 2015-05-22 Marek Polacek <polacek@redhat.com>
30540 * doc/extend.texi: Use @pxref instead of @xref.
30542 2015-05-22 hiraditya <hiraditya@msn.com>
30544 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30547 2015-05-22 Richard Biener <rguenther@suse.de>
30549 PR tree-optimization/65701
30550 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30551 Move peeling cost models into one place. Peel for alignment
30552 for single loads only if an aligned load is cheaper than
30555 2015-05-22 Marek Polacek <polacek@redhat.com>
30558 * doc/extend.texi (Enumerator Attributes): New section.
30559 Document syntax of enumerator attributes.
30561 2015-05-22 Richard Biener <rguenther@suse.de>
30563 * tree-vect-loop.c (get_reduction_op): New function.
30564 (vect_model_reduction_cost): Use it, add reduc_index parameter.
30565 Make ready for BB reductions.
30566 (vect_create_epilog_for_reduction): Use get_reduction_op.
30567 (vectorizable_reduction): Init reduc_index to a valid value.
30568 Adjust vect_model_reduction_cost call.
30569 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30570 operand for reduction defaults. Add SAD_EXPR support.
30571 Assert we have a neutral op for SLP reductions.
30572 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30573 walking pattern stmt ops only recurse to SSA names.
30575 2015-05-22 Richard Biener <rguenther@suse.de>
30577 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30578 assert with guard, remove check on detected reduction.
30579 (vect_recog_sad_pattern): Likewise.
30580 (vect_recog_widen_sum_pattern): Likewise.
30582 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30584 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30585 __always_inline__ attribute.
30586 (vaesdq_u8): Likewise.
30587 (vaesmcq_u8): Likewise.
30588 (vaesimcq_u8): Likewise.
30589 (vsha1cq_u32): Likewise.
30590 (vsha1mq_u32): Likewise.
30591 (vsha1pq_u32): Likewise.
30592 (vsha1h_u32): Likewise.
30593 (vsha1su0q_u32): Likewise.
30594 (vsha1su1q_u32): Likewise.
30595 (vsha256hq_u32): Likewise.
30596 (vsha256h2q_u32): Likewise.
30597 (vsha256su0q_u32): Likewise.
30598 (vsha256su1q_u32): Likewise.
30599 (vmull_p64): Likewise.
30600 (vmull_high_p64): Likewise.
30602 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30604 * final.c (final_scan_insn): Don't check HAVE_peephole with the
30606 * output.h: Likewise.
30607 * genconfig.c (main): Alwways define HAVE_peephole.
30608 * genpeep.c: Don't emit checks of HAVE_peephole.
30610 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30612 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
30613 check HAVE_conditional_move with the preprocessor.
30615 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30617 * genconfig.c (main): Always define HAVE_conditional_move.
30618 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
30619 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
30622 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30624 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
30625 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
30626 and FRAME_POINTER_REGNUM with the preprocessor.
30628 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30630 * defaults.h: Add default for STACK_PUSH_CODE.
30631 * expr.c: Don't redefine STACK_PUSH_CODE.
30632 * recog.c: Likewise.
30634 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30636 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
30637 sched-deps.c: Use if instead of preprocessor checks with
30638 STACK_GROWS_DOWNWARD.
30640 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30642 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
30644 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
30645 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
30646 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
30647 * doc/tm.texi: Regenerate.
30649 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
30652 * config/i386/constraints.md (Bg): New constraint for GOT memory
30654 * config/i386/i386.md (*call_got_x32): New pattern.
30655 (*call_value_got_x32): Likewise.
30656 * config/i386/predicates.md (GOT_memory_operand): New predicate.
30658 2015-05-21 Jakub Jelinek <jakub@redhat.com>
30660 PR tree-optimization/66233
30661 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
30664 2015-05-21 Jeff Law <law@redhat.com>
30666 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
30667 than MULT for shadd sequences.
30669 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
30671 * alias.c (alias_stats): New static var.
30672 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
30673 (dump_alias_stats_in_alias_c): New function.
30674 * alias.h (dump_alias_stats_in_alias_c): Declare.
30675 * tree-ssa-alias.c (dump_alias_stats): Call it.
30677 2015-05-08 Michael Matz <matz@suse.de>
30679 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
30681 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
30682 (STMT_VINFO_STRIDED_P): ... this.
30683 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
30684 (vect_verify_datarefs_alignment): Likewise.
30685 (vect_enhance_data_refs_alignment): Likewise.
30686 (vect_analyze_data_ref_access): Likewise.
30687 (vect_analyze_data_refs): Accept strided stores.
30688 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
30689 (vect_model_load_cost): Adjust for macro rename.
30690 (vectorizable_mask_load_store): Likewise.
30691 (vectorizable_load): Likewise.
30692 (vectorizable_store): Open code strided stores.
30694 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30696 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
30697 Document sqrt_insn.
30699 2015-05-21 Richard Biener <rguenther@suse.de>
30702 * match.pd: Guard pattern optimzing (int)(float)int
30703 conversions to apply only on GIMPLE.
30705 2015-05-21 Jeff Law <law@redhat.com>
30707 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
30708 multiply-accumulate/shift-add insn generation.
30710 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
30713 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
30714 operands[1] are the same.
30716 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
30718 PR middle-end/66221
30719 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
30720 build_distinct_type_copy to copy bounds.
30722 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
30724 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
30725 Change to unsigned int.
30727 2015-05-20 Jeff Law <law@redhat.com>
30729 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
30730 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
30731 (pa_shadd_constant_p): Allow constants for shadd insns rather
30732 than valid scaling constants for memory addresses.
30733 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
30734 * config/pa/predicates.md (mem_shadd_operand): New predicate.
30735 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
30736 (shift-add insns using ASHIFT): New patterns.
30738 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
30740 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
30742 (fix_up_fall_thru_edges): Likewise.
30743 (fix_crossing_conditional_branches): Likewise. Promote jump targets
30744 from to rtx_insn to rtx_code_label where feasible.
30745 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
30746 gen_move_insn (returned type changed to rtx_insn).
30747 * builtins.c (expand_errno_check): Fix arguments of
30748 do_compare_rtx_and_jump (now expects rtx_code_label).
30749 (expand_builtin_acc_on_device): Likewise.
30750 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
30751 invert_jump (now exprects rtx_jump_insn).
30752 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
30753 (construct_init_block): Use rtx_code_label.
30754 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
30755 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
30756 calling redirect_jump.
30757 (patch_jump_insn): Likewise.
30758 (redirect_branch_edge): Likewise.
30759 (force_nonfallthru_and_redirect): Likewise.
30760 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
30762 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
30763 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
30764 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
30765 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
30766 to store the value retured by gen_label_rtx.
30767 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
30769 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
30770 (split_branches): Fix calls of redirect_jump.
30771 * dojump.c (jumpifnot): Promote argument type from rtx to
30773 (jumpifnot_1): Likewise.
30774 (jumpif): Likewise.
30775 (jumpif_1): Likewise.
30776 (do_jump_1): Likewise.
30777 (do_jump): Likewise. Use rtx_code_label when feasible.
30778 (do_jump_by_parts_greater_rtx): Likewise.
30779 (do_jump_by_parts_zero_rtx): Likewise.
30780 (do_jump_by_parts_equality_rtx): Likewise.
30781 (do_compare_rtx_and_jump): Likewise.
30782 * dojump.h: Update function prototypes.
30783 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
30785 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
30787 (emit_label_before): Likewise.
30788 (emit_jump_insn_after_noloc): Likewise.
30789 (emit_jump_insn_after_setloc): Likewise.
30790 (emit_jump_insn_after): Likewise
30791 (emit_jump_insn_before_setloc): Likewise.
30792 (emit_jump_insn_before): Likewise.
30793 (emit_label_before): Promote return type to rtx_code_label.
30794 (emit_label): Likewise.
30795 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
30796 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
30798 (emit_stack_restore): Likewise.
30799 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
30800 (do_cmp_and_jump): Likewise.
30801 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
30802 from rtx to rtx_code_label.
30803 (gen_move_insn_uncast): New function.
30804 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
30805 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
30806 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
30807 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
30808 invert_jump_1 and redirect_jump_1.
30809 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
30810 do_compare_rtx_and_jump.
30811 (expand_addsub_overflow): Likewise.
30812 (expand_neg_overflow): Likewise.
30813 (expand_mul_overflow): Likewise.
30814 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
30815 return value of gen_move_insn.
30816 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
30817 * loop-doloop.c (add_test): Use rtx_code_label.
30818 (doloop_modify): Likewise.
30819 (doloop_optimize): Likewise.
30820 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
30821 * lra-constraints.c (emit_spill_move): Remove cast of value returned
30823 (inherit_reload_reg): Add cast when calling dump_insn_slim.
30824 (split_reg): Likewise.
30825 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
30827 * optabs.c (expand_binop_directly): Remove casts of values returned by
30829 (expand_unop_direct): Likewise.
30830 (expand_abs): Likewise.
30831 (maybe_emit_unop_insn): Likewise.
30832 (maybe_gen_insn): Promote return type to rtx_insn.
30833 * optabs.h: Update prototype of maybe_gen_insn.
30834 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
30836 * recog.c (struct peep2_insn_data): Promote type of insn field to
30838 (peep2_reinit_state): Use NULL instead of NULL_RTX.
30839 (peep2_attempt): Remove casts of insn in peep2_insn_data.
30840 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
30841 * recog.h (struct insn_gen_fn): Promote return types of function
30842 pointers and operator ().from rtx to rtx_insn.
30843 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
30844 (fill_eager_delay_slots): Likewise.
30845 (relax_delay_slots): Likewise.
30846 (make_return_insns): Likewise.
30847 (dbr_schedule): Likewise.
30848 (optimize_skips): Likewise.
30849 (reorg_redirect_jump): Likewise.
30850 (fill_slots_from_thread): Likewise.
30851 * reorg.h: Update prototypes.
30852 * resource.c (find_dead_or_set_registers): Use dyn_cast to
30853 rtx_jump_insn instead of check. Use it's jump_target method.
30854 * rtl.h (rtx_jump_insn::jump_label): Define new method.
30855 (rtx_jump_insn::jump_target): Define new method.
30856 (rtx_jump_insn::set_jump_target): Define new method.
30857 * rtlanal.c (tablejump_p): Promote type of one local variable.
30858 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
30859 (sched_analyze_insn): Likewise.
30860 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
30861 (print_insn): Likewise.
30862 * stmt.c (label_rtx): Promote return type to rtx_insn.
30863 (force_label_rtx): Likewise.
30864 (jump_target_rtx): Define new function.
30865 (expand_label): Use it, get rid of one cast.
30866 (expand_naked_return): Promote rtx to rtx_code_label.
30867 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
30868 (expand_case): Use rtx_code_label instread of rtx where feasible.
30869 (expand_sjlj_dispatch_table): Likewise.
30870 (emit_case_nodes): Likewise.
30871 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
30872 * store-motion.c (insert_store): Make use of new return type of
30873 gen_move_insn and remove a cast.
30874 (replace_store_insn): Likewise.
30876 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
30878 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
30879 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
30881 2015-05-20 Jeff Law <law@redhat.com>
30883 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
30884 dispose of the jump thread path when the jump threading
30885 opportunity is cancelled.
30887 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30889 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
30890 when printing the caret character.
30892 2015-05-20 Marek Polacek <polacek@redhat.com>
30894 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
30896 2015-05-20 Marek Polacek <polacek@redhat.com>
30898 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
30899 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
30900 * gimple-fold.c (canonicalize_bool): Likewise.
30901 (same_bool_result_p): Likewise.
30902 * tree-if-conv.c (parse_predicate): Likewise.
30904 2015-05-20 Marek Polacek <polacek@redhat.com>
30906 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
30907 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
30909 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30911 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30912 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30915 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
30917 * config/mips/mips.h (micromips_globals): Declare.
30919 2015-05-20 David Malcolm <dmalcolm@redhat.com>
30921 * timevar.def (TV_INITIALIZE_RTL): New.
30922 * toplev.c (initialize_rtl): Use an auto_timevar to account this
30923 function's time to TV_INITIALIZE_RTL.
30925 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30927 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30928 gimple_build_nop calls.
30929 (chkp_find_bounds_for_elem): Likewise.
30930 (chkp_get_zero_bounds): Likewise.
30931 (chkp_get_none_bounds): Likewise.
30932 (chkp_get_bounds_by_definition): Likewise.
30933 (chkp_generate_extern_var_bounds): Likewise.
30934 (chkp_get_bounds_for_decl_addr): Likewise.
30935 (chkp_get_bounds_for_string_cst): Likewise.
30937 2015-05-20 Bin Cheng <bin.cheng@arm.com>
30939 PR tree-optimization/65447
30940 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30941 (dump_use, dump_uses): Support to dump sub use.
30942 (record_use): New parameters to support sub use. Remove call to
30944 (record_sub_use, record_group_use): New functions.
30945 (compute_max_addr_offset, split_all_small_groups): New functions.
30946 (group_address_uses, rewrite_use_address): New functions.
30947 (strip_offset): New declaration.
30948 (find_interesting_uses_address): Call record_group_use.
30949 (add_candidate): New assertion.
30950 (infinite_cost_p): Move definition forward.
30951 (add_costs): Check INFTY cost and return immediately.
30952 (get_computation_cost_at): Clear setup cost and dependent bitmap
30954 (determine_use_iv_cost_address): Compute cost for sub uses.
30955 (rewrite_use_address_1): Rename from old rewrite_use_address.
30956 (free_loop_data): Free sub uses.
30957 (tree_ssa_iv_optimize_loop): Call group_address_uses.
30959 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30960 Jim Wilson <jim.wilson@linaro.org>
30962 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30963 new fields loadv and storev.
30964 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30965 Initialize loadv and storev.
30966 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30967 (cortexa53_extra_costs): Likewise.
30968 (cortexa57_extra_costs): Likewise.
30969 (xgene1_extra_costs): Likewise.
30970 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30973 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30975 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30977 (cortexa8_extra_costs): Likewise.
30978 (cortexa5_extra_costs): Likewise.
30979 (cortexa7_extra_costs): Likewise.
30980 (cortexa12_extra_costs): Likewise.
30981 (cortexa15_extra_costs): Likewise.
30982 (v7m_extra_costs): Likewise.
30984 2015-05-20 Jeff Law <law@redhat.com>
30986 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30987 instead of open-coded version. Also delete the jump thread created
30988 within this function.
30990 2015-05-20 Alan Modra <amodra@gmail.com>
30992 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30993 stack adjusting insn. Formatting.
30994 (rs6000_emit_prologue): Track stack adjusting insn, and use of
30995 r12. If possible, emit first -fsplit-stack arg pointer insn
30996 before stack adjust. Don't use r12 to save cr if split-stack.
30998 2015-05-20 Alan Modra <amodra@gmail.com>
31000 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31002 (rs6000_supports_split_stack): New function.
31003 * config/rs6000/rs6000.c (machine_function): Add
31004 split_stack_arg_pointer.
31005 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31006 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31007 rather than virtual_incoming_args_rtx.
31008 (rs6000_va_start): Likewise.
31009 (split_stack_arg_pointer_used_p): New function.
31010 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31011 (morestack_ref): New var.
31012 (gen_add3_const, rs6000_expand_split_stack_prologue,
31013 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31014 rs6000_split_stack_space_check): New functions.
31015 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31016 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31017 (UNSPECV_SPLIT_STACK_RETURN): Define.
31018 (split_stack_prologue, load_split_stack_limit,
31019 load_split_stack_limit_di, load_split_stack_limit_si,
31020 split_stack_return, split_stack_space_check): New expands and insns.
31021 * config/rs6000/rs6000-protos.h
31022 (rs6000_expand_split_stack_prologue): Declare.
31023 (rs6000_split_stack_space_check): Declare.
31025 2015-05-20 Alan Modra <amodra@gmail.com>
31027 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31028 (direct_return): Test vrsave_size rather than vrsave_mask.
31029 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
31030 (rs6000_emit_epilogue): Likewise.
31032 2015-05-20 Alan Modra <amodra@gmail.com>
31034 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31035 when not saving registers.
31036 (debug_stack_info): Adjust to omit printing unused offsets,
31038 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31041 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31044 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31045 value_type to const char *.
31047 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
31049 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31050 to build a biarch toolchain again.
31052 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31054 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31055 or implicit declarations.
31056 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31058 (get_odr_type): Check type has linkage before adding bases.
31059 (register_odr_type): Check that type has linkage before adding it.
31060 (type_known_to_have_no_deriavations_p): Rename to ..
31061 (type_known_to_have_no_derivations_p): This one.
31062 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31063 (type_known_to_have_no_derivations_p): This one.
31064 * ipa-polymorphic-call.c
31065 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31068 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31070 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31071 (layout_type): Use RECORD_OR_UNION_TYPE_P.
31073 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31075 * config/s390/s390.c (s390_vector_bool_type_p): New function.
31076 (s390_invalid_binary_op): New function.
31077 (TARGET_INVALID_BINARY_OP): Define macro.
31079 2015-05-19 David Sherwood <david.sherwood@arm.com>
31081 * loop-invariant.c (create_new_invariant): Don't calculate address cost
31082 if mode is not a scalar integer.
31083 (get_inv_cost): Increase computational cost for unused invariants.
31085 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31087 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
31088 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
31089 * config/s390/s390-builtin-types.def: New file.
31090 * config/s390/s390-builtins.def: New file.
31091 * config/s390/s390-builtins.h: New file.
31092 * config/s390/s390-c.c: New file.
31093 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31094 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31095 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
31096 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
31098 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
31100 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
31101 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
31102 variable definitions.
31103 (s390_const_operand_ok): New function.
31104 (s390_expand_builtin): Rewrite.
31105 (s390_init_builtins): New function.
31106 (s390_handle_vectorbool_attribute): New function.
31107 (s390_attribute_table): Add s390_vector_bool attribute.
31108 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
31109 (s390_branch_condition_mask): Generate masks for new modes.
31110 (s390_expand_vec_compare_cc): New function.
31111 (s390_mangle_type): Add mangling for vector bool types.
31112 (enum s390_builtin): Remove.
31113 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
31115 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
31116 s390_cpu_cpp_builtins.
31117 (REGISTER_TARGET_PRAGMAS): New macro.
31118 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
31119 (insn_cmp mode attribute): Add new CC modes.
31120 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
31121 (lcbb): New pattern definition.
31122 * config/s390/s390intrin.h: Include vecintrin.h.
31123 * config/s390/t-s390: New file.
31124 * config/s390/vecintrin.h: New file.
31125 * config/s390/vector.md: Include vx-builtins.md.
31126 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
31129 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31131 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
31133 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
31134 (s390_select_ccmode): Likewise.
31135 (s390_canonicalize_comparison): Swap operands if necessary.
31136 (s390_expand_vec_compare_scalar): Expand DFmode compare using
31137 single element vector instructions.
31138 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
31139 (s390_branch_condition_mask): Generate CC masks for the new modes.
31140 * config/s390/s390.md (v0, vf, vd): New mode attributes.
31141 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
31142 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
31143 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
31144 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
31145 (*extend<DSF:mode><BFP:mode>2): New insn definition.
31146 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
31147 (extend<DSF:mode><BFP:mode>2): Turn into expander.
31148 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
31149 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
31150 (sqrt<mode>2): Add vector instruction.
31152 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31154 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
31156 * config/s390/predicates.md (const0_operand, constm1_operand)
31157 (constable_operand): Accept vector operands.
31158 * config/s390/s390-modes.def: Add supported vector modes.
31159 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
31160 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
31161 (s390_bytemask_vector_p, s390_expand_vec_strlen)
31162 (s390_expand_vec_compare, s390_expand_vcond)
31163 (s390_expand_vec_init): Add prototypes.
31164 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
31165 (s390_vector_mode_supported_p): New function.
31166 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
31167 (s390_contiguous_bitmask_vector_p): New function.
31168 (s390_bytemask_vector_p): New function.
31169 (s390_split_ok_p): Vector regs don't work either.
31170 (regclass_map): Add VEC_REGS.
31171 (s390_legitimate_constant_p): Handle vector constants.
31172 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
31173 (legitimate_reload_vector_constant_p): New function.
31174 (s390_preferred_reload_class): Handle CONST_VECTOR.
31175 (s390_reload_symref_address): Likewise.
31176 (s390_secondary_reload): Vector memory instructions only support
31177 short displacements. Rename reload*_nonoffmem* to reload*_la*.
31178 (s390_emit_ccraw_jump): New function.
31179 (s390_expand_vec_strlen): New function.
31180 (s390_expand_vec_compare): New function.
31181 (s390_expand_vcond): New function.
31182 (s390_expand_vec_init): New function.
31183 (s390_dwarf_frame_reg_mode): New function.
31184 (print_operand): Handle addresses with 'O' and 'R' constraints.
31185 (NR_C_MODES, constant_modes): Add vector modes.
31186 (s390_output_pool_entry): Handle vector constants.
31187 (s390_hard_regno_mode_ok): Handle vector registers.
31188 (s390_class_max_nregs): Likewise.
31189 (s390_cannot_change_mode_class): New function.
31190 (s390_invalid_arg_for_unprototyped_fn): New function.
31191 (s390_function_arg_vector): New function.
31192 (s390_function_arg_float): Remove size variable.
31193 (s390_pass_by_reference): Handle vector arguments.
31194 (s390_function_arg_advance): Likewise.
31195 (s390_function_arg): Likewise.
31196 (s390_return_in_memory): Vector values are returned in a VR if
31198 (s390_function_and_libcall_value): Handle vector arguments.
31199 (s390_gimplify_va_arg): Likewise.
31200 (s390_call_saved_register_used): Consider the arguments named.
31201 (s390_conditional_register_usage): Disable v16-v31 for non-vec
31203 (s390_preferred_simd_mode): New function.
31204 (s390_support_vector_misalignment): New function.
31205 (s390_vector_alignment): New function.
31206 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
31207 (TARGET_VECTOR_MODE_SUPPORTED_P)
31208 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
31209 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
31210 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
31211 (TARGET_VECTOR_ALIGNMENT): Define target macro.
31212 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
31213 (FIRST_PSEUDO_REGISTER): Increase value.
31214 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
31215 (VECTOR_REG_P): Define macros.
31216 (FIXED_REGISTERS, CALL_USED_REGISTERS)
31217 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
31218 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
31219 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
31220 Add vector registers.
31221 (CANNOT_CHANGE_MODE_CLASS): Call C function.
31222 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
31223 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
31225 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
31226 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
31227 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
31228 (VR*_REGNUM): New constants.
31229 (ALL): New mode iterator.
31230 (INTALL): Remove mode iterator.
31232 (movti): Implement TImode moves for VRs.
31233 Disable TImode splitter for VR targets.
31234 Implement splitting TImode GPR<->VR moves.
31235 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
31236 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
31237 reload<mode>_la_in, reload<mode>_la_out.
31238 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
31239 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
31240 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
31241 (mov<mode> SF SD): Prefer lder, lde for loading.
31242 Add lrl and strl instructions.
31243 Add vector instructions.
31244 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
31245 Call s390_expand_vec_strlen on z13.
31246 (*cc_to_int): Change predicate to nonimmediate_operand.
31247 (addti3): Rename to *addti3. New expander.
31248 (subti3): Rename to *subti3. New expander.
31249 * config/s390/vector.md: New file.
31251 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31253 * common/config/s390/s390-common.c (processor_flags_table): Add
31255 * config.gcc: Add z13.
31256 * config/s390/s390-opts.h (enum processor_type): Add
31257 PROCESSOR_2964_Z13.
31258 * config/s390/s390.c (s390_adjust_priority): Check for
31259 PROCESSOR_2964_Z13.
31260 (s390_reorg): Likewise.
31261 (s390_sched_reorder): Likewise.
31262 (s390_sched_variable_issue): Likewise.
31263 (s390_loop_unroll_adjust): Likewise.
31264 (s390_option_override): Likewise. Default to -mvx when available.
31265 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
31266 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
31267 (TARGET_VX_ABI): Define macros.
31269 (TARGET_DEFAULT): Add MASK_OPT_VX.
31270 * config/s390/s390.md ("cpu" attribute): Add z13.
31271 ("cpu_facility" attribute): Add vec.
31272 * config/s390/s390.opt (processor_type): Add z13.
31273 (mvx): New options.
31274 * doc/invoke.texi: Add z13 option for -march.
31276 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31278 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
31279 mode check to make sure that only scalar integer values are
31282 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31284 * tree.c (verify_type_variant): Fix #undef.
31285 (gimple_canonical_types_compatible_p): Move here from lto.c
31286 (verify_type): Verify TYPE_CANONICAL compatibility.
31287 * tree.h (gimple_canonical_types_compatible_p): Declare.
31289 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31291 PR middle-end/66199
31292 * tree.h (OMP_TEAMS_COMBINED): Define.
31293 * gimplify.c (enum gimplify_omp_var_data): Add
31294 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
31295 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
31296 (omp_notice_variable): Accept both ORT_TEAMS
31297 and ORT_COMBINED_TEAMS. Don't recurse if
31298 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
31299 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
31301 (omp_no_lastprivate): New function.
31302 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
31303 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
31304 notice_outer and set appropriate bits, otherwise make
31305 sure default(none) combined constructs won't complain.
31306 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
31307 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
31308 omp_no_lastprivate either remove the clause or turn it
31309 into OMP_CLAUSE_PRIVATE.
31310 (gimplify_omp_for): Fix up handling of implicit
31311 lastprivate or linear iterators.
31312 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
31313 ORT_COMBINED_TEAMS.
31314 * omp-low.c (lower_omp_for_lastprivate): For combined
31315 for simd use fd.loop.n2 from the for rather than simd.
31317 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31319 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31320 instead of gen_rtx_raw_REG.
31321 (cris_expand_epilogue): Likewise.
31322 * config/microblaze/microblaze.c (microblaze_classify_address):
31324 * config/sparc/sparc.md: Likewise.
31326 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
31328 * config/alpha/alpha.c (alpha_legitimize_reload_address)
31329 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31330 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31331 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31332 Use CASE_CONST_SCALAR_INT.
31333 (print_operand) <case 'M'>: Use mode_width_operand to check the
31334 value of the constant.
31335 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31336 * config/alpha/predicates.md (input_operand): Use general_operand
31337 instead of match_code as operand check.
31338 (symbolic_operand): Use match_code with subexpression digits.
31339 * config/alpha/constraints.md (Q): Ditto.
31341 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31343 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31345 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31347 * config/s390/s390.c (s390_secondary_reload): Fix check for
31348 load/store relative.
31350 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31352 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
31353 alternative_mask to uint64_t.
31355 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31357 PR tree-optimization/66187
31358 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31359 Pass TYPE_SIGN to tree_int_cst_min_precision. If
31360 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31362 2015-05-19 David Malcolm <dmalcolm@redhat.com>
31364 * diagnostic.c (diagnostic_report_current_module): Strengthen
31365 local "new_map" from const line_map * to
31366 const line_map_ordinary *.
31367 * genmatch.c (error_cb): Likewise for local "map".
31368 (output_line_directive): Likewise for local "map".
31369 * input.c (expand_location_1): Likewise for local "map".
31370 Pass NULL rather than &map to
31371 linemap_unwind_to_first_non_reserved_loc, since the value is never
31372 read from there, and the value written back not read from here.
31373 (is_location_from_builtin_token): Strengthen local "map" from
31374 const line_map * to const line_map_ordinary *.
31375 (dump_location_info): Strengthen locals "map" from
31376 line_map *, one to const line_map_ordinary *, the other
31377 to const line_map_macro *.
31378 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31379 const line_map * to const line_map_macro *.
31380 (maybe_unwind_expanded_macro_loc): Add a call to
31381 linemap_check_macro when writing to the "map" field of the
31383 Introduce local const line_map_ordinary * "ord_map", using it in
31384 place of "map" in the part of the function where we know we have
31385 an ordinary map. Strengthen local "m" from const line_map * to
31386 const line_map_ordinary *.
31388 2015-05-19 Nick Clifton <nickc@redhat.com>
31391 * config/msp430/msp430.md (zero_extendhisi2): Add support for
31392 separate source and destination registers.
31394 2015-05-19 Richard Biener <rguenther@suse.de>
31396 PR tree-optimization/66165
31397 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31398 for no load permutation.
31400 PR tree-optimization/66185
31401 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31402 when building the SLP node from scalars.
31404 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31405 Tristan Gingold <gingold@adacore.com>
31407 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31408 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31409 (expand_stack_restore): Call record_new_stack_level.
31410 (expand_stack_save): Do not call do_pending_stack_adjust.
31411 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31412 * calls.c (expand_call): Call record_new_stack_level for alloca.
31413 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31414 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31415 (update_sjlj_context): New global function.
31416 * except.h (update_sjlj_context): Declare.
31417 * explow.c (record_new_stack_level): New global function.
31418 (allocate_dynamic_stack_space): Call record_new_stack_level.
31419 * explow.h (record_new_stack_level): Declare.
31420 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31421 * cfgrtl.c (duplicate_insn_chain): Likewise.
31423 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31425 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31426 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31427 STACK_GROWS_DOWNWARD as normal if.
31428 (expand_call): Likewise.
31430 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
31433 * config/sh/sh.md (*round_int_even): New insn_and_split and
31434 accompanying new unnamed split.
31436 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31438 * bitmap.c (bitmap_set_range): Handle count==1 specially.
31439 (bitmap_clear_range): Likewise.
31440 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31441 bitmap_set_range unconditionally.
31442 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31443 * df-scan.c (df_mark_reg): Likewise.
31444 * haifa-sched.c (setup_ref_regs): Likewise.
31445 * sched-rgn.c (update_live_1): Likewise.
31447 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31449 * regs.h (END_HARD_REGNO): Delete.
31450 (END_REGNO): Move to...
31452 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31453 * caller-save.c (mark_set_regs): Likewise.
31454 * combine.c (move_deaths, distribute_notes): Likewise.
31455 * cse.c (invalidate, invalidate_for_call): Likewise.
31456 * df-scan.c (df_ref_record): Likewise.
31457 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31458 (record_last_reg_set_info): Likewise.
31459 * reg-stack.c (convert_regs_exit): Likewise.
31460 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31461 * resource.c (update_live_status): Likewise.
31462 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31464 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31466 * rtl.h (reg_info): Add an nregs field.
31467 (REG_NREGS): Use it.
31468 (SET_REGNO_RAW): Delete.
31469 (set_regno_raw): New function.
31470 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31471 (END_REGNO): Redefine in terms of REG_NREGS.
31472 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31474 * emit-rtl.c (set_mode_and_regno): Likewise.
31475 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31476 instead of SET_REGNO_RAW.
31478 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31480 * rtl.h (PUT_MODE_RAW): New macro.
31481 (PUT_REG_NOTE_KIND): Use it.
31482 (set_mode_and_regno): Declare.
31483 (gen_raw_REG): Change regno to "unsigned int".
31484 (gen_rtx_REG): Change "unsigned" to "unsigned int".
31485 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31486 use set_mode_and_regno to change the mode of registers.
31487 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31488 * emit-rtl.c (set_mode_and_regno): New function.
31489 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
31490 * caller-save.c (reg_save_code): Use set_mode_and_regno.
31491 * expr.c (init_expr_target): Likewise.
31492 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31493 * postreload.c (reload_cse_simplify_operands): Likewise.
31495 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31497 * caller-save.c (init_caller_save): Use word_mode and
31498 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31499 * expr.c (init_expr_target): Likewise.
31500 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31501 * postreload.c (reload_cse_regs_1): Likewise.
31503 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31505 * rtl.def (REG): Change format to "r".
31506 * rtl.h (rtunion): Remove rt_reg.
31507 (reg_info): New structure.
31508 (rtx_def): Add reg field to main union.
31509 (X0REGATTR): Delete.
31510 (REG_CHECK): New macro.
31511 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31512 * rtl.c (rtx_format): Document "r".
31513 (rtx_code_size): Handle REG specially.
31514 * gengenrtl.c (special_format): Return true for formats
31516 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31517 Deal with REG_ATTRS after the field loop.
31518 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31519 * expmed.c (init_expmed): Call gen_raw_REG instead of
31521 * expr.c (init_expr_target): Likewise.
31522 * regcprop.c (maybe_mode_change): Likewise.
31523 * varasm.c (make_decl_rtl): Likewise.
31524 * final.c (leaf_renumber_regs_insn): Return early after
31526 * genemit.c (gen_exp): Handle 'r' fields.
31527 * genpeep.c (match_rtx): Likewise.
31528 * gensupport.c (subst_pattern_match): Likewise.
31529 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31530 (alter_constraints, subst_dup): Likewise.
31531 * read-rtl.c (read_rtx_code): Likewise.
31532 * print-rtl.c (print_rtx): Likewise.
31533 * genrecog.c (find_operand, find_matching_operand): Likewise.
31534 (validate_pattern, match_pattern_2): Likewise.
31535 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31536 (rtx_test::regno_field): New function.
31537 (operator ==, safe_to_hoist_p, transition_parameter_type)
31538 (parameter_type_string, print_parameter_value)
31539 (print_nonbool_test, print_test): Handle new enum values.
31540 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31541 * lra-constraints.c (operands_match_p): Likewise.
31543 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31545 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31546 Change type of new_regno to unsigned int.
31547 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31548 new_regno to unsigned int.
31549 (df_ref_change_reg_with_loc): Remove old_regno parameter.
31550 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
31551 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31552 (SET_REGNO_RAW): Add space after ",".
31554 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31556 * rtl.h (REG_NREGS): New macro
31557 * alias.c (record_set): Use it.
31558 * cfgcleanup.c (mark_effect): Likewise.
31559 * combine.c (likely_spilled_retval_1): Likewise.
31560 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31561 (move_deaths, distribute_notes): Likewise.
31562 * cselib.c (cselib_record_set): Likewise.
31563 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31564 * df-scan.c (df_mark_reg): Likewise.
31565 * dse.c (look_for_hardregs): Likewise.
31566 * dwarf2out.c (reg_loc_descriptor): Likewise.
31567 (multiple_reg_loc_descriptor): Likewise.
31568 * expr.c (write_complex_part, read_complex_part): Likewise.
31569 (emit_move_complex): Likewise.
31570 * haifa-sched.c (setup_ref_regs): Likewise.
31571 * ira-lives.c (mark_hard_reg_live): Likewise.
31572 * lra.c (lra_set_insn_recog_data): Likewise.
31573 * mode-switching.c (create_pre_exit): Likewise.
31574 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31575 (reload_combine_recognize_pattern): Likewise.
31576 (reload_combine_note_use, move2add_record_mode): Likewise.
31577 (reload_cse_move2add): Likewise.
31578 * reg-stack.c (subst_stack_regs_pat): Likewise.
31579 * regcprop.c (kill_value, copy_value): Likewise.
31580 (copyprop_hardreg_forward_1): Likewise.
31581 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31582 (build_def_use): Likewise.
31583 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31584 (deps_analyze_insn): Likewise.
31585 * sched-rgn.c (check_live_1, update_live_1): Likewise.
31586 * sel-sched.c (count_occurrences_equiv): Likewise.
31587 * valtrack.c (dead_debug_insert_temp): Likewise.
31589 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31591 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31592 * dse.c (note_add_store): Likewise.
31593 * ira-lives.c (mark_hard_reg_dead): Likewise.
31594 * loop-invariant.c (mark_reg_store): Likewise.
31595 (mark_reg_death): Likewise.
31596 * postreload.c (reload_combine): Likewise.
31597 (reload_combine_note_store): Likewise.
31598 (reload_combine_note_use): Likewise.
31599 * recog.c (peep2_reg_dead_p): Likewise.
31601 2015-05-19 Alan Modra <amodra@gmail.com>
31603 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31604 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31605 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31607 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31608 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
31609 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31610 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31612 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
31614 * config/mips/mips.md (JOIN_MODE): New mode iterator.
31615 (join2_load_Store<JOIN_MODE:mode>): New pattern.
31616 (join2_loadhi): Likewise.
31617 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
31618 load-load and store-stores.
31619 * config/mips/mips.opt (mload-store-pairs): New option.
31620 (TARGET_LOAD_STORE_PAIRS): New macro.
31621 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
31622 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
31623 * config/mips/mips.c (mips_load_store_bonding_p): New function.
31625 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
31627 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
31629 * dojump.c (do_compare_rtx_and_jump): Likewise.
31630 * expmed.c (emit_store_flag_1): Likewise.
31631 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
31632 * final.c (sprint_ul): Use std::reverse for reversing a string.
31633 * fold-const.c (extract_muldiv_1): Use std::swap.
31634 * genmodes.c (emit_mode_int_n): Likewise.
31635 * ifcvt.c (dead_or_predicable): Likewise.
31636 * ira-build.c (ira_merge_live_ranges): Likewise.
31637 (swap_allocno_copy_ends_if_necessary): Likewise.
31638 * ira.c (ira_setup_alts): Likewise.
31639 * loop-iv.c (iv_analyze_expr): Likewise.
31640 (implies_p): Likewise.
31641 (canon_condition): Likewise.
31642 * lra-constraints.c (swap_operands): Likewise.
31643 * lra-lives.c (lra_merge_live_ranges): Likewise.
31644 * omega.c (swap): Remove.
31646 (omega_unprotect_1): Use std::swap.
31647 (omega_solve_geq): Likewise.
31648 * optabs.c (expand_binop_directly): Likewise.
31649 (expand_binop): Likewise.
31650 (emit_conditional_move): Likewise.
31651 (emit_conditional_add): Likewise.
31652 * postreload.c (reload_cse_simplify_operands): Likewise.
31653 * reg-stack.c (emit_swap_insn): Likewise.
31654 (swap_to_top): Likewise.
31655 (compare_for_stack_reg): Likewise.
31656 (subst_asm_stack_regs): Likewise.
31657 * reload.c (find_reloads): Likewise.
31658 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
31659 * sel-sched.c (invoke_reorder_hooks): Likewise.
31660 (create_block_for_bookkeeping): Likewise.
31661 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
31662 (lambda_matrix_right_hermite): Use std::swap.
31663 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
31664 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
31665 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
31666 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
31667 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
31668 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
31669 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
31670 * tree-vrp.c (compare_ranges): Likewise.
31671 * var-tracking.c (add_with_sets): Likewise.
31672 (vt_find_locations): Likewise.
31674 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
31676 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
31678 (FBSD_ENDFILE_SPEC): Likewise.
31679 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
31680 config/freebsd-spec.h.
31681 (ENDFILE_SPEC): Likewise.
31683 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
31684 Richard Henderson <rth@redhat.com>
31687 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
31688 Check for a memory location that is not a reference (using an AND)
31689 to an unaligned location here.
31690 * config/alpha/predicates.md (normal_memory_operand): Remove.
31692 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
31694 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
31695 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
31697 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
31699 * config/mips/mips.c (micromips_globals): New variable.
31700 (mips_set_compression_mode): Save and reinitialize target-dependent
31701 state for microMIPS.
31703 2015-05-18 Martin Liska <mliska@suse.cz>
31705 * dbgcnt.def: Add new counter.
31706 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
31708 2015-05-18 Martin Liska <mliska@suse.cz>
31710 * dbgcnt.def: Sort counters.
31711 * opts.c (common_handle_option): Do not compile if
31712 -fdbg-cnt-list is enabled.
31714 2015-05-18 Tom de Vries <tom@codesourcery.com>
31716 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
31717 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
31718 address operator to va_list operand.
31719 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
31721 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
31723 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
31724 * config/s390/s390.c (s390_gimplify_va_arg): Same.
31725 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
31727 2015-05-18 Tom de Vries <tom@codesourcery.com>
31729 * tree-ssa-tail-merge.c: Fix whitespace.
31731 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
31733 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
31734 cortex-a17, and cortex-a17.cortex-a7.
31736 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
31739 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
31741 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
31744 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
31745 QImode inner modes for TARGET_AVX512BW. Force mask operand
31746 to a register for AVX512F modes.
31748 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31750 * toplev.c (emit_debug_global_declarations): Do not output debug info
31751 when doing slim LTO objects.
31753 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31755 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
31756 odr_types_equivalent_p): Declare.
31757 (odr_type_p): Use gcc_checking_assert.
31758 (type_in_anonymous_namespace_p) Declare.
31759 (type_with_linkage_p): Declare.
31760 * common.opt (Wlto-type-mismatch): New warning.
31761 * ipa-devirt.c (compound_type_base): New function.
31762 (odr_or_derived_type_p): New function.
31763 (odr_types_equivalent_p): New function.
31764 (add_type_duplicate): Simplify.
31765 (type_with_linkage_p): Add hack to prevent false positives on C types
31766 (type_in_anonymous_namespace_p): Likewise.
31767 * tree.c (need_assembler_name_p): Use type_with_linkage.
31768 * tree.h (type_in_anonymous_namespace_p): Remove.
31769 * doc/invoke.texi (-Wlto-type-mismatch): Document
31771 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31773 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
31774 (verify_type): Verify STRING_FLAG.
31776 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
31779 * tree-pretty-print.c (percent_K_format): Replace locus pointer
31780 with accessor function.
31781 * tree-diagnostic.c (diagnostic_report_current_function): Use
31782 diagnostic_location function.
31783 (maybe_unwind_expanded_macro_loc): Likewise.
31784 (virt_loc_aware_diagnostic_finalizer): Likewise.
31785 (default_tree_printer): Replace locus pointer with accessor function.
31786 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
31787 (diagnostic_set_info_translated): Initialize second location.
31788 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
31789 (diagnostic_show_locus): Handle two locations. Call
31790 diagnostic_print_caret_line.
31791 (diagnostic_print_caret_line): New.
31792 (default_diagnostic_starter): Use diagnostic_location function.
31793 (diagnostic_report_diagnostic): Use diagnostic_location function.
31794 (verbatim): Do not set text.locus.
31795 * diagnostic.h (struct diagnostic_info): Remove location field.
31796 (struct diagnostic_context): Make caret_chars an array of two.
31797 (diagnostic_location): New inline.
31798 (diagnostic_expand_location): Handle two locations.
31799 (diagnostic_same_line): New inline.
31800 (diagnostic_print_caret_line): Declare.
31801 (CARET_LINE_MARGIN): New constant.
31802 * pretty-print.c (pp_printf): Do not set text.locus.
31803 (pp_verbatim): Do not set text.locus.
31804 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
31805 (struct text_info): Replace locus pointer with locations
31806 array. Add accessor functions.
31808 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
31809 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31812 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
31813 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
31814 large constants in register instead of splitting them.
31816 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
31819 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
31820 replacements in memory addresses.
31821 (get_unaligned_address): Ditto.
31823 2015-05-16 James Bowman <james.bowman@ftdichip.com>
31825 * config/ft32/*: New files for FT32 port.
31826 * doc/install.texi: Add FT32 information.
31827 * doc/invoke.texi: Add FT32 information.
31828 * doc/md.texi: Add FT32 information.
31829 * doc/contrib.texi: Self added.
31831 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
31833 PR tree-optimization/64454
31834 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
31835 (-1 - A -> ~A): Remove unnecessary condition.
31837 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
31839 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
31840 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
31841 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
31843 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
31845 * ipa-chkp.h (chkp_wrap_function): New.
31846 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
31847 (chkp_wrap_function_name): New.
31848 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
31849 to get wrapper name.
31850 * lto-cgraph.c: Include ipa-chkp.h.
31851 (input_cgraph_1): Avoid alias chain for wrappers.
31853 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31855 PR middle-end/66134
31856 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
31857 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
31859 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31861 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
31862 (AARCH64_FL_SLOWMUL): Delete.
31863 (AARCH64_FL_CRC): Redefine to 1<<3.
31864 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
31866 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31868 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
31871 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
31873 * config/alpha/alpha.md (extendqidi2): Use general_operand
31874 instead of some_operand for operand[1] predicate.
31875 (extendhidi2): Ditto.
31876 (cbranchdi4): Use general_operand instead of some_operand
31877 for operand[1] and operands[2] predicates.
31878 (cstoredi4): Ditto.
31879 * config/alpha/predicates.md (some_operand): Remove unused predicate.
31880 (some_ni_operand): Ditto.
31882 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
31884 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
31885 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
31886 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
31887 low part of the constant using alpha_emit_set_const_1.
31888 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
31890 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
31892 * varasm.c (output_constant_pool_1): Pass down alignment from
31893 constant pool entry's descriptor to output_constant_pool_2.
31894 (output_object_block): Add comment prior to call to
31895 output_constant_pool_1.
31897 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
31899 PR rtl-optimization/65862
31900 * target.def (ira_change_pseudo_allocno_class): New hook.
31901 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
31903 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
31904 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
31906 * ira-costs.c (find_costs_and_classes): Call the hook and change
31907 classes when it is necessary.
31908 * doc/tm.texi: Update.
31910 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
31912 * config/i386/i386.md (sibcall_memory): Check that register with
31913 callee address is not also used as one of the arguments, instead
31914 of checking that it is not live after the sibcall.
31915 (sibcall_pop_memory): Ditto.
31916 (sibcall_value_memory): Ditto.
31917 (sibcall_value_pop_memory): Ditto.
31919 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
31921 * generic-match-head.c (types_match): Handle non-types.
31922 * gimple-match-head.c (types_match): Likewise.
31923 * match.pd: Remove unnecessary TREE_TYPE for types_match.
31925 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
31927 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31928 (csneg3<mode>_insn): Enable expansion of pattern.
31930 2015-05-14 Nick Clifton <nickc@redhat.com>
31932 * config/rl78/rl78.c (rl78_select_section): Select the correct
31933 default section based upon the category of the decl.
31935 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
31937 PR rtl-optimization/30967
31938 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31939 destination mode for the cost of scc patterns.
31941 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
31943 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31944 using SWIM248 mode iterator.
31945 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31946 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
31947 for operand[2] constraint.
31948 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31950 2015-05-13 Jakub Jelinek <jakub@redhat.com>
31952 PR middle-end/66133
31953 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31954 make sure it is never noreturn, even when the task body does not
31956 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31957 right before GIMPLE_OMP_RETURN.
31958 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31959 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
31960 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31962 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31964 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31965 * tree-ssa-math-opts.c: Include params.h
31966 (pow_synth_sqrt_info): New struct.
31967 (representable_as_half_series_p): New function.
31968 (get_fn_chain): Likewise.
31969 (print_nested_fn): Likewise.
31970 (dump_fractional_sqrt_sequence): Likewise.
31971 (dump_integer_part): Likewise.
31972 (expand_pow_as_sqrts): Likewise.
31973 (gimple_expand_builtin_pow): Use above to attempt to expand
31974 pow as series of square roots. Removed now unused variables.
31976 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
31978 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31979 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31980 Remove *p0 and *p1 arguments. Rewrite function.
31981 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31982 (alpha_split_const_mov): Update calls to alpha_extract_integer and
31983 alpha_emit_set_long_const.
31984 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31985 (alpha_output_mi_thunk_osf): Ditto.
31986 * config/alpha/alpha.md (movti): Do not check operands[1]
31989 2015-05-13 Richard Biener <rguenther@suse.de>
31991 PR tree-optimization/66129
31992 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31994 (vect_schedule_slp_instance): Fix typo.
31996 2015-05-13 David Malcolm <dmalcolm@redhat.com>
31998 * common.opt (fdump-internal-locations): New option.
31999 * input.c: Include diagnostic-core.h.
32000 (get_end_location): New function.
32001 (write_digit): New function.
32002 (write_digit_row): New function.
32003 (dump_location_range): New function.
32004 (dump_labelled_location_range): New function.
32005 (dump_location_info): New function.
32006 * input.h (dump_location_info): New prototype.
32007 * toplev.c (compile_file): Handle flag_dump_locations.
32009 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32011 * gimple-expr.h (is_gimple_constant): Reorder.
32012 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32014 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32016 * combine.c (simplify_set): When generating a CC set, if the
32017 source already is in the correct mode, do not wrap it in a
32018 compare. Simplify the rest of that code.
32020 2015-05-13 Richard Biener <rguenther@suse.de>
32022 PR tree-optimization/66123
32023 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32026 2015-05-13 Richard Biener <rguenther@suse.de>
32028 PR middle-end/66110
32029 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32031 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32033 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32035 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32036 * aclocal.m4: Regenerated with automake-1.11.6.
32038 2015-05-13 Tom de Vries <tom@codesourcery.com>
32040 PR tree-optimization/66010
32041 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32042 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32043 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
32044 and rval based on do_deref.
32046 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32049 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32050 link time constants into adress expressions and therefore set
32053 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32056 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32057 Use SWI248 iterator instead of SWI.
32058 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
32059 Use eq_attr "alternative" "0" instead of match_test in
32060 length_immediate attribute computation.
32061 (*mulvhi4, *mulvhi4_1): New define_insns.
32064 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32065 SIGNED to get precision of non-negative value.
32067 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32070 * function.c (diddle_return_value_1): Process bounds first.
32071 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32074 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32076 PR rtl-optimization/64616
32077 * loop-invariant.c (can_move_invariant_reg): New.
32078 (move_invariant_reg): Call above new function to decide whether
32079 instruction can just be moved, skipping creation of temporary
32082 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32084 PR target/pr66047.c
32085 * i386.c (ix86_function_sseregparm): Only return -1 if local function
32086 with implied regparm is called from -mno-sse function.
32087 (init_cumulative_args): Output error if ix86_function_sseregparm
32088 return -1 and SSE register would be needed.
32089 (function_arg_advance_32): Likewise.
32090 (function_arg_32): Likewise.
32091 * i386.h (ix86_args): Add decl field.
32093 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32096 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
32097 inlines across optimization boundary.
32099 2015-05-12 Jason Merrill <jason@redhat.com>
32101 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
32102 string literal and macro name.
32104 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
32106 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
32107 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
32108 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
32110 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32112 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
32113 (-Wmisleading-indentation): New option.
32114 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
32116 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
32118 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
32119 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
32120 (alpha_extract_integer): Ditto.
32121 (alpha_legitimate_constant_p): Ditto.
32122 (alpha_split_tmode_pair): Ditto.
32123 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
32124 (alpha_expand_mov): Ditto.
32125 (print_operand): Remove handling of 'H' modifier.
32126 <case 'm'>: Remove CONST_DOUBLE handling.
32127 (summarize_insn): Handle CONST_WIDE_INT.
32128 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
32130 (movti): Handle CONST_WIDE_INT.
32131 * config/alpha/constraints.md ('H'): Remove constraint definition.
32132 ('G'): Do not match MODE_FLOAT class.
32133 * config/alpha/predicates.md (const0_operand): Also match
32135 (non_add_const_operand): Ditto.
32136 (non_zero_const_operand): Ditto.
32137 (some_operand): Ditto.
32138 (input_operand): Ditto. Handle CONST_WIDE_INT.
32139 (and_operand): Do not match const_double.
32140 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
32142 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
32145 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
32146 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
32147 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
32148 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
32149 is_mm_seq_cst, is_mm_sync): New accessor functions.
32150 * builtins.c (expand_builtin_sync_operation,
32151 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
32152 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
32153 (get_memmodel, expand_builtin_atomic_compare_exchange,
32154 expand_builtin_atomic_load, expand_builtin_atomic_store,
32155 expand_builtin_atomic_clear): Use new accessor routines.
32156 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
32157 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
32158 (maybe_emit_sync_lock_test_and_set): Use new accessors and
32159 MEMMODEL_SYNC_ACQUIRE.
32160 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
32161 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
32162 expand_atomic_store): Use new accessors.
32163 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
32164 * tsan.c (instrument_builtin_call): Update check for memory model beyond
32165 final enum to use MEMMODEL_LAST.
32166 * c-family/c-common.c: Use new accessor for memmodel_base.
32167 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
32169 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
32170 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
32171 mem_thread_fence, *dmb): Likewise.
32172 * config/alpha/alpha.c (alpha_split_compare_and_swap,
32173 alpha_split_compare_and_swap_12): Likewise.
32174 * config/arm/arm.c (arm_expand_compare_and_swap,
32175 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
32176 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
32177 atomic_loaddi): Likewise.
32178 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
32180 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
32181 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
32183 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
32184 atomic_store<mode>, atomic_compare_and_swap<mode>,
32185 atomic_exchange<mode>): Use new accessors.
32186 * config/mips/mips.c (mips_process_sync_loop): Likewise.
32187 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
32188 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
32189 rs6000_post_atomic_barrier): Add new cases.
32190 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
32191 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
32192 (atomic_load<mode>): Add new cases and use new accessors.
32193 (store_quadpti): Add new cases.
32194 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
32196 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
32197 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
32200 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32202 * ipa-devirt.c (type_with_linkage_p): New function.
32203 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
32205 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
32206 (can_be_name_hashed_p): Simplify.
32207 (hash_odr_name): Check that type has linkage before checking if it is
32209 (types_same_for_odr): Likewise.
32210 (odr_name_hasher::equal): Likewise.
32211 (odr_subtypes_equivalent_p): Likewise.
32212 (warn_types_mismatch): Likewise.
32213 (get_odr_type): Likewise.
32214 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
32215 * ipa-utils.h (odr_type_p): Move offline.
32216 * tree.c (need_assembler_name_p): Fix handling of types
32218 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
32220 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32222 * timevar.c (timevar_enable): Delete in favor of...
32223 (g_timer): New global.
32224 (struct timevar_def): Move to timevar.h inside class timer.
32225 (struct timevar_stack_def): Likewise.
32226 (timevars): Delete global in favor of field "m_timevars" within
32227 class timer in timevar.h
32228 (stack): Likewise, in favor of field "m_stack".
32229 (unused_stack_instances): Likewise, in favor of field
32230 "m_unused_stack_instances".
32231 (start_time): Likewise, in favor of field "m_start_time".
32232 (get_time): Eliminate check for timevar_enable.
32233 (timer::timer): New function, built from part of timevar_init.
32234 (timevar_init): Rewrite idempotency test from using
32235 "timevar_enable" bool to using dynamic allocation of "g_timer".
32236 Move rest of implementation into timer's constructor.
32237 (timevar_push_1): Rename to...
32238 (timer::push): ...this, adding "m_" prefixes to variables that
32239 are now fields of timer.
32240 (timevar_pop_1): Likewise, rename to...
32241 (timer::pop): ...this, and add "m_" prefixes.
32242 (timevar_start): Replace test for "timevar_enable" with one for
32243 "g_timer", and move bulk of implementation to...
32244 (timer::start): ...here, adding "m_" prefixes.
32245 (timevar_stop): Likewise, from here...
32246 (timer::stop): ...to here.
32247 (timevar_cond_start): Likewise, from here...
32248 (timer::cond_start): ...to here.
32249 (timevar_cond_stop): Likewise, from here...
32250 (timer::cond_stop): ...to here.
32251 (validate_phases): Rename to...
32252 (timer::validate_phases): ...this, and add "m_" prefixes. Make
32253 locals "total" and "tv" const.
32254 (timevar_print): Rename to...
32255 (timer::print): ...this, and add "m_" prefixes. Make locals
32256 "total" and "tv" const. Eliminate test for timevar_enable.
32257 * timevar.h (timevar_enable): Eliminate.
32258 (g_timer): New declaration.
32259 (timevar_push_1): Eliminate.
32260 (timevar_pop_1): Eliminate.
32261 (timevar_print): Eliminate.
32262 (class timer): New class.
32263 (timevar_push): Rewrite to use g_timer.
32264 (timevar_pop): Likewise.
32265 * toplev.c (toplev::~toplev): Likewise.
32267 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
32269 * arm-protos.h (arm_sched_autopref): Delete.
32270 (tune_params): Re-organize, use enums for flag values.
32271 (FUSE_OPS): New macro.
32272 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
32273 (ARM_PREFETCH_BENEFICIAL): Likewise.
32274 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
32275 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32276 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
32277 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
32278 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
32279 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
32280 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
32281 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
32283 (arm_option_override, thumb2_reorg, arm_print_tune_info)
32284 (aarch_macro_fusion_pair_p): Update uses of current_tune.
32285 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
32287 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
32289 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
32292 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
32293 Sandra Loosemore <sandra@codesourcery.com>
32295 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
32297 (REG_CLASS_NAMES): Add "IJMP_REGS".
32298 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
32299 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
32300 use new "c" register constraint.
32301 * config/nios2/constraint.md (c): New register constraint
32302 corresponding to IJMP_REGS.
32304 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32306 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
32307 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
32308 define_splits): Delete, revamp, transmogrify into ...
32309 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
32310 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
32311 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
32314 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32316 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32317 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32319 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32321 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32322 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32323 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32324 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32325 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32326 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32327 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32328 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32329 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32330 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32331 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32332 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32333 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32334 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32335 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32336 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32337 and 30 corresponding splitters): Delete.
32339 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32341 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32344 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32346 * combine.c (recog_for_combine_1): New function, factored out
32347 from recog_for_combine.
32348 (change_zero_ext): New function.
32349 (recog_for_combine): If recog fails, try again with the pattern
32350 modified by change_zero_ext; if that still fails, restore the
32353 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32355 * combine.c (get_undo_marker): New function.
32356 (undo_to_marker): New function, largely factored out from ...
32357 (undo_all): ... this. Adjust.
32359 2015-05-12 Richard Biener <rguenther@suse.de>
32361 PR tree-optimization/66101
32362 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32363 fixup if we turn a loop exit edge to a fallthru edge.
32365 2015-05-12 Richard Biener <rguenther@suse.de>
32367 PR tree-optimization/37021
32368 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32369 (SLP_TREE_TWO_OPERATORS): New define.
32370 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32371 SLP_TREE_TWO_OPERATORS.
32372 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32374 (vect_build_slp_tree): Adjust.
32375 (vect_analyze_slp_cost_1): Likewise.
32376 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32377 emitting two vector stmts and mixing the results.
32379 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
32381 * call.c (print_z_candidates): Remove dead code.
32383 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32385 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32386 and zEC12_simple_fp.
32387 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32390 2015-05-12 Tom de Vries <tom@codesourcery.com>
32392 PR tree-optimization/66010
32393 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32395 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32396 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
32397 va_lists are passed, and remove corresponding handling.
32398 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
32399 do_deref argument to ifn_va_arg.
32400 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32403 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32406 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32407 REG before taking its REGNO.
32409 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
32411 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32412 rsp->sign_bit_copies and rsp->nonzero_bits into ...
32413 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
32414 present to get more accurate information about the number of sign bit
32415 copies and non zero bits.
32417 2015-05-12 Richard Biener <rguenther@suse.de>
32419 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32420 do not allow unrolling.
32422 2015-05-11 Richard Henderson <rth@redhat.com>
32424 * config/i386/i386-modes.def (CCP): New.
32425 * config/i386/i386.c (put_condition_code): Handle it.
32426 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32428 2015-05-11 Richard Henderson <rth@redhat.com>
32430 * target.def (md_asm_clobbers): Replace with...
32431 (md_asm_adjust): this.
32432 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32433 (TARGET_MD_ASM_ADJUST): New.
32434 * tm.texi: Rebuild.
32435 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32436 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32437 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32439 * cfgexpand.c (check_operand_nalternatives): Accept vector of
32440 constraints instead of lists of outputs and inputs.
32441 (expand_asm_stmt): Save and restore input_location around the
32442 body of the function. Move asm data into vectors instead of
32443 building tree lists. Generate cleanup sequences as needed,
32444 rather than waiting til the end. Use new md_asm_adjust hook.
32446 * config/vxworks.c: Include vec.h before target.h.
32447 * gimple.c: Likewise.
32448 * incpath.c: Likewise.
32449 * mode-switching.c: Likewise.
32451 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32452 (cris_md_asm_adjust): this.
32453 (TARGET_MD_ASM_CLOBBERS): Remove.
32454 (TARGET_MD_ASM_ADJUST): New.
32455 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32456 (ix86_md_asm_adjust): this.
32457 (TARGET_MD_ASM_CLOBBERS): Remove.
32458 (TARGET_MD_ASM_ADJUST): New.
32459 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32460 (mn10300_md_asm_adjust): this.
32461 (TARGET_MD_ASM_CLOBBERS): Remove.
32462 (TARGET_MD_ASM_ADJUST): New.
32463 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32464 (rs6000_md_asm_adjust): this.
32465 (TARGET_MD_ASM_CLOBBERS): Remove.
32466 (TARGET_MD_ASM_ADJUST): New.
32467 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32468 (visium_md_asm_adjust): this.
32469 (TARGET_MD_ASM_CLOBBERS): Remove.
32470 (TARGET_MD_ASM_ADJUST): New.
32472 2015-05-11 Richard Henderson <rth@redhat.com>
32474 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32475 if noutputs is zero.
32476 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32478 * cfgexpand.c (expand_asm_operands): Merge into...
32479 (expand_asm_stmt): ... here.
32481 * cfgexpand.c (expand_asm_operands): Don't call
32482 resolve_asm_operand_names.
32483 * stmt.c (resolve_asm_operand_names): Clarify block comment.
32485 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
32487 * dwarf2out.c (gen_member_die): Sanity check that we access
32488 TYPE_MAIN_VARIANT for TYPE_METHODS.
32489 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32490 checking TYPE_METHODS.
32491 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32493 (build_distinct_type_copy): Clear TYPE_METHODS.
32494 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32495 (verify_type): Allow TYPE_METHODS to be error_mark_node.
32496 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32498 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
32500 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32501 (emit_pattern_before_setloc): Likewise.
32503 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32505 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32506 for define_peephole2s.
32507 (get_peephole2_pattern): New function.
32508 (main): Use it. Call validate_pattern.
32510 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32512 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32513 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32514 (Last callee saved reg is different for AVR_TINY architecture)
32516 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32518 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32519 when looking for memory references.
32521 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32524 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32525 via function pointers.
32527 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32529 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32530 indirect call by forcing address into a pseudo with -fno-plt.
32531 * common.opt (flag_plt): New option.
32532 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32533 ([-fno-plt]): Document.
32535 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
32538 * config/rs6000/option-defaults.h: Add space between string literal
32541 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
32543 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32544 accross ARM targets.
32546 2015-05-11 Christian Bruel <christian.bruel@st.com>
32548 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32549 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32551 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32553 PR rtl-optimization/66076
32554 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32555 Don't grow the heap array if it is already big enough from a
32556 previous iteration.
32558 2015-05-11 Christian Bruel <christian.bruel@st.com>
32560 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32561 (is_called_in_ARM_mode): Remove.
32562 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32563 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32564 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32565 arm_declare_function_name.
32567 2015-05-11 Christian Bruel <christian.bruel@st.com>
32569 * config/arm/arm.c (arm_option_override): Reoganized and split into :
32570 (arm_option_params_internal); New function.
32571 (arm_option_check_internal): New function.
32572 (arm_option_override_internal): New function.
32573 (thumb_code, thumb1_code): Remove.
32574 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32575 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32576 (thumb_code, thumb1_code): Remove.
32577 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32579 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32581 * config/alpha/alpha.c (alpha_emit_set_const_1)
32582 (alpha_emit_set_long_const, alpha_extract_integer)
32583 (alpha_legitimate_constant_p, alpha_split_const_mov)
32584 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32585 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32586 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32588 * config/alpha/predicates.md (mode_mask_operand): Do not match
32590 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32591 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32592 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32593 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32594 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32596 2015-05-11 Jakub Jelinek <jakub@redhat.com>
32599 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32600 default_binds_local_p_2.
32601 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32602 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32604 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32606 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32608 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32610 Patch by Richard Biener
32611 * coverage.c (coverage_obj_init): Delay building of type variant
32612 until the type is finished.
32614 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32616 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
32617 mismatch between C and C++ type; compoare correctly ARG_TYPES
32618 for non-prototypes and output correctly parameter index for METHOD_TYPE.
32619 (odr_types_equivalent_p): Fix wording of warning about attributes;
32620 it is OK to match prototype and non-prototype.
32622 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32624 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
32625 TYPE_ARG_TYPES list.
32626 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
32627 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
32629 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32631 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
32632 * tree.h (is_lang_specific): Constify.
32634 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
32636 PR tree-optimization/64454
32637 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
32640 2015-05-08 Jason Merrill <jason@redhat.com>
32642 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
32643 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
32644 config/darwin.h, config/darwin9.h, config/elfos.h,
32645 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
32646 config/microblaze/microblaze.h, config/mips/mips.h,
32647 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
32648 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
32649 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
32650 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
32651 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
32652 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
32653 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
32654 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
32655 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
32656 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
32657 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
32658 between string literal and macro name.
32660 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32662 * jump.c: Change argument types to rtx_insn *.
32665 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32667 * lra-constraints.c: Change argument type to rtx_insn *.
32669 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32671 * df-problems.c: Change argument type to rtx_insn *.
32673 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32675 * combine.c: Change argument type to rtx_insn *.
32677 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32680 * rtlanal.c: Change argument type to rtx_insn *.
32682 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32684 * sched-deps.c: Change argument types to rtx_insn *.
32685 * sched-int.h: Adjust.
32687 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32689 * dwarf2cfi.c: Change argument type to rtx_insn *.
32691 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32693 * ira.c (decrease_live_ranges_number): Changetype of local
32694 variable to rtx_insn *.
32695 * recog.c: Change argument types to rtx_insn *.
32698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32700 * reorg.c: Change argument types to rtx_insn *.
32702 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32704 * ira-color.c: Change argument types to rtx_insn *.
32705 * lra-eliminations.c: Likewise.
32708 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32710 * gcse.c: Change argument types to rtx_insn *.
32712 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32714 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
32716 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32718 * emit-rtl.c (emit_debug_insn_before): Change argument type to
32722 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32724 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
32727 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32729 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
32732 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32734 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
32737 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32739 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
32742 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32744 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
32748 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32750 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
32754 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32756 * except.c (can_nonlocal_goto): Change type of argument to
32760 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32762 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
32765 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32767 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
32768 * cfgrtl.c (can_delete_label_p): Adjust.
32771 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32773 * reorg.c (stop_search_p): Change argument to rtx_insn *.
32775 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32777 * except.c (make_reg_eh_region_note): Change argument to
32779 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
32780 * except.h: Adjust.
32782 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32784 * mode-switching.c (commit_mode_sets): Change type of local
32785 variable from rtx to rtx_insn *.
32787 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
32789 * doc/install.texi (--enable-languages): Add missing jit and lto info.
32790 Add ^ to grep command.
32791 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
32792 arg to last gimple_simplify declaration. Add missing gimple_build
32793 declaration for built-in function case with four tree args.
32795 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
32796 Szabolcs Nagy <szabolcs.nagy@arm.com>
32798 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
32799 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
32800 (GNU_USER_DYNAMIC_LINKERN32): Update.
32802 2015-05-08 Richard Biener <rguenther@suse.de>
32804 PR tree-optimization/66036
32805 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32806 Handle strided group loads.
32807 (vect_verify_datarefs_alignment): Likewise.
32808 (vect_enhance_data_refs_alignment): Likewise.
32809 (vect_analyze_group_access): Likewise.
32810 (vect_analyze_data_ref_access): Likewise.
32811 (vect_analyze_data_ref_accesses): Likewise.
32812 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
32813 (vectorizable_load): Likewise.
32815 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
32817 * config/rs6000/rs6000.md: Require operand inequality in one
32820 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
32821 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
32823 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
32825 * config/rx/rx.md (movdi, movdf): Likewise.
32826 Likewise for define_peephole2s.
32828 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32830 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
32831 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
32832 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
32833 vtst_u64): Rewrite using gcc vector extensions.
32835 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32837 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
32838 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
32840 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32842 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
32844 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
32846 * config/glibc-stdint.h (OPTION_MUSL): Define.
32847 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
32848 Change the definition based on OPTION_MUSL for 64 bit targets.
32849 * config/linux.h (OPTION_MUSL): Redefine.
32850 * config/alpha/linux.h (OPTION_MUSL): Redefine.
32851 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
32852 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
32854 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
32855 Szabolcs Nagy <szabolcs.nagy@arm.com>
32857 * config.gcc (LIBC_MUSL): New tm_defines macro.
32858 * config/linux.h (OPTION_MUSL): Define.
32859 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
32860 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
32861 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32862 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32863 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32864 * config/linux.opt (mmusl): New option.
32865 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
32866 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32867 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32868 * configure: Regenerate.
32870 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
32871 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32874 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
32875 * config/i386/knetbsd-gnu64.h: New file.
32877 2015-05-08 Marek Polacek <polacek@redhat.com>
32880 * doc/invoke.texi: Document -Woverride-init-side-effects.
32882 2015-05-07 Marek Polacek <polacek@redhat.com>
32885 * doc/invoke.texi: Document -Wshift-negative-value.
32887 2015-05-06 Aditya Kumar <hiraditya@msn.com>
32889 * gcov-tool.c (do_merge): Refactore to remove int ret.
32890 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
32891 !type == FUNC to type != FUNC.
32892 * reload.h (struct target_reload): Changee to type of
32893 x_spill_indirect_levels from bool to unsigned char.
32895 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
32897 * rtl.h (always_void_p): New function.
32898 * gengenrtl.c (always_void_p): Likewise.
32899 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
32900 with code foo are always VOIDmode.
32901 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
32902 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
32903 compare-elim.c, config/aarch64/aarch64.c,
32904 config/aarch64/aarch64.md, config/alpha/alpha.c,
32905 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
32906 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
32907 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
32908 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32909 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
32910 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
32911 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32912 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32913 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32914 config/ia64/vect.md, config/iq2000/iq2000.c,
32915 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32916 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32917 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32918 config/mep/mep.c, config/microblaze/microblaze.c,
32919 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32920 config/mn10300/mn10300.c, config/msp430/msp430.c,
32921 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32922 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32923 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32924 config/rs6000/altivec.md, config/rs6000/rs6000.c,
32925 config/rs6000/rs6000.md, config/rs6000/vector.md,
32926 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32927 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32928 config/sh/sh.md, config/sh/sh_treg_combine.cc,
32929 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32930 config/spu/spu.md, config/stormy16/stormy16.c,
32931 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32932 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32933 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32934 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32935 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32936 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32937 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32938 var-tracking.c: Update calls accordingly.
32940 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
32943 PR middle-end/54303
32944 * varasm.c (function_mergeable_rodata_prefix): New function.
32945 (mergeable_string_section): Use it.
32946 (mergeable_constant_section): Use it.
32948 2015-05-07 Jeff Law <law@redhat.com>
32951 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32952 simplifier to narrow arithmetic.
32953 * generic-match-head.c: (types_match, single_use): New functions.
32954 * gimple-match-head.c: (types_match, single_use): New functions.
32956 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32958 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32961 2015-05-07 Richard Biener <rguenther@suse.de>
32963 PR tree-optimization/66002
32964 * passes.def: Schedule another pass_merge_phi after ifcombine, right
32967 2015-05-07 Marek Polacek <polacek@redhat.com>
32968 Martin Uecker <uecker@eecs.berkeley.edu>
32970 * doc/invoke.texi: Document -fsanitize=bounds-strict.
32971 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32972 into SANITIZE_NONDEFAULT.
32973 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32975 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
32978 * config/alpha/alpha.c (alpha_override_options_after_change): New.
32979 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32980 (alpha_override_options): Move align_loops, align_jumps and
32981 align_functions handling into alpha_override_options_after_change.
32983 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
32984 Chris Jones <chrisj@nvidia.com>
32985 Joshua Conner <jconner@nvidia.com>
32987 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32988 linking of crtfastmath.o.
32989 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32991 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
32993 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32994 (cstore<mode>4_unsigned_imm): New expander.
32995 (cstore<mode>4): Remove empty constraint strings. Use the new
32998 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33001 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33004 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33006 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33008 2015-05-06 Alan Modra <amodra@gmail.com>
33011 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33012 (UNSPEC_NOP): Define.
33013 (reload_vsx_from_gpr<mode>): Add missing DONE.
33014 (reload_gpr_from_vsx<mode>): Likewise.
33015 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33016 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33018 2015-05-06 Christian Bruel <christian.bruel@st.com>
33021 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33022 align_jumps, align_functions into aarch64_override_options_after_change.
33024 2015-05-06 Richard Biener <rguenther@suse.de>
33026 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33027 vect_transform_slp_perm_load to check if we support a permutation
33028 for basic-block vectorization.
33030 2015-05-06 Nick Clifton <nickc@redhat.com>
33032 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33033 used, even if it is not being used as a frame pointer.
33035 2015-05-05 Jason Merrill <jason@redhat.com>
33037 * dwarf2out.c (gen_member_die): Don't emit anything for an
33038 anonymous class constructor.
33040 2015-05-05 David Malcolm <dmalcolm@redhat.com>
33042 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33043 that it reflects the block structure.
33044 (afdo_propagate_edge): Likewise.
33045 (afdo_calculate_branch_prob): Likewise.
33046 (afdo_annotate_cfg): Likewise.
33047 * cfgcleanup.c (equal_different_set_p): Likewise.
33048 (try_crossjump_to_edge): Likewise.
33049 * cgraph.c (cgraph_node::verify_node): Likewise.
33050 * cgraphunit.c (expand_all_functions): Likewise.
33051 * config/i386/i386.c (ix86_expand_copysign): Likewise.
33052 (exact_dependency_1): Likewise.
33053 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33054 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33055 * gensupport.c (process_define_subst): Likewise.
33056 * lto-wrapper.c (merge_and_complain): Likewise.
33057 * tree-if-conv.c (if_convertible_bb_p): Likewise.
33058 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33059 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33060 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33061 * tree-vect-loop.c (vectorizable_reduction): Likewise.
33062 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33063 * tree-vect-stmts.c (vectorizable_shift): Likewise.
33064 * tree-vrp.c (vrp_finalize): Likewise.
33065 * tree.c (variably_modified_type_p): Likewise.
33067 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
33069 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33070 on darwin12 and later.
33071 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33072 file to pass -rdynamic on darwin12 and later.
33073 * config/darwin.opt (rdynamic): Add.
33075 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33077 * doc/extend.texi (C Extensions): Update menu for moved Variable
33078 Attributes and Type Attributes sections.
33080 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33083 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33084 if rep_8byte stringop strategy was specified for 32-bit target.
33086 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
33089 * config/i386/i386.md (vector convert to float spltiter): Check for
33090 xmm16+, when splitting scalar float conversion.
33091 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33093 2015-05-05 Nick Clifton <nickc@redhat.com>
33095 * config/msp430/msp430-opts.h (enum msp430_regions): New.
33096 * config/msp430/msp430.c (msp430_override_options): Complain if
33097 -mcode-region or -mdata-region is used on a non MSP430X.
33098 (msp430_section_attr): New function. Checks lower, upper and
33100 (msp430_attribute_table): Add lower, upper and either.
33101 (gen_prefix): New function. Generates a prefix for a section
33103 (msp430_select_section): New function - handles the choice of
33104 section for an object. Takes into account memory region
33105 attributes and options.
33106 (msp430_function_section): Use gen_prefix.
33107 (TARGET_SECTION_TYPE_FLAGS): Define.
33108 (msp430_section_type_flags): New function.
33109 (TARGET_ASM_UNIQUE_SECTION): Define.
33110 (msp430_unique_section): New function.
33111 (msp430_output_aligned_decl_common): New function.
33112 (msp430_do_not_relax_short_jumps): New function.
33113 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
33115 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
33116 * config/msp430/msp430-protos.h
33117 (msp430_do_not_relax_short_jumps): New prototype.
33118 (msp430_output_aligned_decl_common): New prototype.
33119 * config/msp430/msp430.md (length): New attribute.
33120 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
33121 then use a long code sequence for short jumps.
33122 * config/msp430/msp430.opt (mcode-region): New.
33123 (mdata-region): New.
33124 * doc/invoke.texi: Document new options.
33125 * doc/extend.texi: Document new attributes.
33127 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33129 * config/aarch64-protos.h (struct cpu_branch_cost): New.
33130 (tune_params): Add field branch_costs.
33131 (aarch64_branch_cost): Declare.
33132 * config/aarch64.c (generic_branch_cost): New.
33133 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
33134 (cortexa53_tunings): Likewise.
33135 (cortexa57_tunings): Likewise.
33136 (thunderx_tunings): Likewise.
33137 (xgene1_tunings): Likewise.
33138 (aarch64_branch_cost): Define.
33139 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
33141 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33143 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
33144 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
33145 * config/i386/i386.md: Ditto.
33146 * config/i386/winnt.c: Ditto.
33148 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33150 * doc/extend.texi (__atomic Builtins): Move implementation details
33151 to the end of the description, rewrite opening paragraphs, state
33152 difference with __sync builtins, state C11/C++11 assumptions,
33153 weaken itemized descriptions, add explanation of memory model
33154 behaviour, expand description of compare-exchange, simplify text.
33156 2015-05-05 Renlin Li <renlin.li@arm.com>
33158 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
33160 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
33162 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
33163 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33164 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
33165 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33166 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
33167 * configure: Regenerate.
33168 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
33169 * doc/install.texi (aarch64*-*-*): Document new
33170 --enable-fix-cortex-a53-843419 option.
33171 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
33172 and -mno-fix-cortex-a53-843419 options.
33174 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33177 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
33179 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
33181 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
33182 fix overactive TYPE_MIN_VALUE check and add FIXME for type
33183 compatibility problems.
33185 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33187 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
33189 (cbranchsi4_reg): New.
33190 * config/microblaze/microblaze.c
33191 (microblaze_expand_conditional_branch_reg): New.
33192 * config/microblaze/microblaze-protos.h
33193 (microblaze_expand_conditional_branch_reg): New prototype.
33195 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33197 * config/microblaze/microblaze.md (peephole2): New.
33199 2015-05-04 Jeff Law <law@redhat.com>
33202 2015-05-04 Jeff Law <law@redhat.com>
33204 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33205 simplifier to narrow arithmetic.
33206 * generic-match-head.c: (types_match, single_use): New functions.
33207 * gimple-match-head.c: (types_match, single_use): New functions.
33209 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
33212 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
33213 (split_branches): Likewise.
33215 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
33217 * common.opt (fdelete-null-pointer-checks): Init to -1.
33218 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
33219 override flag_delete_null_pointer_checks default.
33220 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
33221 behavior re address zero. Better document target-specific behavior.
33222 (-fisolate-errneous-paths-dereference): Mention relationship to
33223 -fdelete-null-pointer-checks.
33225 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33227 PR tree-optimization/65984
33228 * ubsan.c: Include tree-cfg.h.
33229 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
33230 stmt_could_throw_p test, rename can_throw variable to ends_bb.
33232 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33234 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
33235 to CONST_DOUBLE_P predicate.
33236 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
33237 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
33238 allow only operands that satisfy standard_sse_constant_p predicate.
33239 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
33240 to CONST_DOUBLE_P predicate.
33242 2015-05-04 Jeff Law <law@redhat.com>
33244 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33245 simplifier to narrow arithmetic.
33246 * generic-match-head.c: (types_match, single_use): New functions.
33247 * gimple-match-head.c: (types_match, single_use): New functions.
33249 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
33251 * config/arm/arm.c: Restore bootstrap.
33253 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33255 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
33256 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
33257 as CONST_WIDE_INT, not CONST_DOUBLE.
33258 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
33259 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
33260 (ix86_find_base_term): Do not check for CONST_DOUBLE.
33261 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
33262 (ix86_build_signbit_mask): Rewrite using wide ints.
33263 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
33264 (ix86_rtx_costs): Handle CONST_WIDE_INT.
33265 (find_constant): Ditto.
33266 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
33267 using gen_int_mode.
33268 * config/i386/predicates.md (x86_64_immediate_operand)
33269 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33270 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
33271 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33272 (const0_operand): Also match const_wide_int.
33273 (constm1_operand): Ditto.
33274 (const1_operand): Ditto.
33276 2015-05-04 Richard Biener <rguenther@suse.de>
33278 PR tree-optimization/65965
33279 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
33280 store groups at gaps.
33282 2015-05-04 Richard Biener <rguenther@suse.de>
33284 PR tree-optimization/65935
33285 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
33286 then make sure to apply that swapping to the IL.
33288 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33290 * Makefile.in (PATCHLEVEL_c): New variable.
33291 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
33292 expand the same way as if DEVPHASE_c was non-empty.
33294 2015-05-04 Kai Tietz <ktietz@redhat.com>
33297 * lto-wrapper.c (run_gcc): Open filename
33300 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
33302 * doc/extend.texi (Variable Attributes, Type Attributes): Move
33303 sections up in file, to immediately after the Function Attributes
33306 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
33308 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
33310 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33312 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
33313 (insert_partition_copy_on_edge): Adjust.
33314 (insert_rtx_to_part_on_edge): Likewise.
33315 (insert_part_to_rtx_on_edge): Likewise.
33317 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33319 * function.c (set_return_jump_label): Change type of argument to
33321 * function.h (set_return_jump_label): Adjust.
33323 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33325 * reload.h (struct reg_equivs_t): Change type of init to
33327 * ira.c (fix_reg_equiv_init): Adjust.
33328 * reload1.c (eliminate_regs_1): Likewise.
33329 (init_eliminable_invariants): Likewise.
33331 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33333 * cselib.c (fp_setter_insn): Take a rtx_insn *.
33334 * cselib.h (fp_setter_insn): Adjust.
33336 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33338 * recog.c (struct validate_replace_src_data): Change type of
33339 insn field to rtx_insn *.
33340 (validate_replace_src_group): Change type of argument to rtx_insn *.
33341 * recog.h (validate_replace_src_group): Adjust.
33343 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33345 * haifa-sched.c: Change the type of some variables to rtx_insn *.
33346 * sched-deps.c: Likewise.
33347 * sched-int.h: Likewise.
33348 * sched-rgn.c: Likewise.
33349 * sel-sched.c: Likewise.
33351 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33354 * config/i386/i386.c: Change the type of some arguments to
33356 * config/arm/arm.c: Likewise.
33358 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33360 * lra-constraints.c: Change type of some arguments to rtx_insn *.
33362 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33364 * regcprop.c (kill_autoinc_value): Change type of argument to
33367 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33369 * genrecog.c (print_subroutine): Adjust.
33370 * recog.c (get_bool_attr_mask_uncached): Likewise.
33371 * recog.h (struct recog_data_d): Change the type of insn to
33374 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33376 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33378 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33380 * df-problems.c (df_set_note): Change type of argument to
33383 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33385 * builtins.c (expand_builtin_trap): Change type of local
33386 variable to rtx_insn *.
33387 (add_sched_insns_for_speculation): Likewise.
33388 (ix86_emit_save_regs): Likewise.
33389 (get_scratch_register_on_entry): Likewise.
33390 (ix86_emit_restore_reg_using_pop): Likewise.
33391 (ix86_emit_leave): Likewise.
33392 (ix86_emit_restore_regs_using_mov): Likewise.
33393 (ix86_expand_epilogue): Likewise.
33395 (rl78_alloc_physical_registers_umul): Likewise.
33396 * cselib.c (discard_useless_locs): Likewise.
33397 (cselib_invalidate_regno): Likewise.
33398 (cselib_invalidate_mem): Likewise.
33399 * function.c (expand_function_start): Likewise.
33400 (emit_use_return_register_into_block): Likewise.
33401 * gcse.c: Likewise.
33402 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33403 * ifcvt.c (noce_get_alt_condition): Likewise.
33404 * loop-doloop.c (doloop_condition_get): Likewise.
33405 * lra-constraints.c (inherit_in_ebb): Likewise.
33406 * modulo-sched.c (sms_schedule_by_order): Likewise.
33407 * recog.c (next_insn_tests_no_inequality): Likewise.
33408 * reorg.c (emit_delay_sequence): Likewise.
33409 (update_reg_dead_notes): Likewise.
33410 (fix_reg_dead_note): Likewise.
33411 (fill_slots_from_thread): Likewise.
33412 (delete_computation): Likewise.
33414 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
33416 * doc/extend.texi (Variable Attributes): Add menu and proper
33417 @nodes to subsections. Move Microsoft Windows attributes to
33418 their own subsection.
33419 (Type Attributes): Reorganize introduction to remove duplicate
33420 list of attributes. Add menu and proper @nodes to subsections.
33421 Alphabetize the main table of common attributes.
33423 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
33425 * match.pd: New simplification patterns.
33426 (x + (x & 1)) -> ((x + 1) & ~1)
33427 (x & ~(x & y)) -> ((x & ~y))
33428 (x | ~(x | y)) -> ((x | ~y))
33430 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33432 * target.def (attribute_table): Mention that struct attribute_spec
33433 is defined in tree-core.h rather than tree.h
33434 * doc/tm.texi: Regenerate.
33436 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
33438 * genrecog.c (test): Rename to rtx_test. Update rest of file
33441 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
33443 PR translation/65959
33444 * params.h (DEFPARAM): Rename msgid to nocmsgid.
33446 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33448 * config/aarch64/aarch64-protos.h (tune_params):
33449 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33450 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33451 Return value depending on target.
33452 (generic_tunings): Initialize new target settings.
33453 (cortexa53_tunings): Likewise.
33454 (cortexa57_tunings): Likewise.
33455 (thunderx_tunings): Likewise.
33456 (xgene1_tunings): Likewise.
33458 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33460 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33461 Make Cortex-A53 shift costs more accurate.
33463 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33465 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33468 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33470 * config/aarch64/aarch64.c (aarch64_rtx_costs):
33471 Calculate cost of op0 and op1 in PLUS and MINUS cases.
33473 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33475 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33476 Add cost of op0 in the compare-with-fpzero case.
33478 2015-04-30 David Malcolm <dmalcolm@redhat.com>
33480 * builtins.c (fold_builtin_1): Remove spurious second
33482 * cgraph.h (symtab_node::get_availability): Likewise.
33483 * opts.c (common_handle_option): Remove spurious second semicolon.
33484 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33485 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33487 2015-04-30 Caroline Tice <cmtice@google.com>
33489 PR gcov-profile/65929
33490 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33491 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33492 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33493 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33494 * doc/tm.texi: Regenerate.
33495 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
33496 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33497 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
33498 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33500 2015-04-30 Marek Polacek <polacek@redhat.com>
33502 * varasm.c (handle_cache_entry): Fix logic.
33504 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33506 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33507 (*extrsi5_insn_uxtw_alt): Likewise.
33508 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33509 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33512 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33514 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33517 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33519 * config/aarch64/aarch64.md
33520 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33521 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33522 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33523 appropriately. Handle alternative EON form.
33525 2015-04-30 Renlin Li <renlin.li@arm.com>
33527 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33528 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33530 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33533 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33534 -fstrict-aliasing boundaries.
33536 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33538 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33539 and [SU]MNEGL patterns.
33541 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33543 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33544 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33545 combined arithmetic-shift ops. Properly handle all shift and extend
33546 operations that can occur in combination with PLUS/MINUS.
33547 Rename maybe_fma to compound_p.
33548 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33549 arithmetic and shift operations.
33551 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33553 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33554 rather than arith_shift cost when costing ADD/MINUS of an
33557 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33560 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33563 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
33565 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33566 are for the same position.
33568 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
33570 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
33572 (vectorize_loops): Use it.
33574 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33576 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33577 for aggregate types.
33578 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33579 type to be non_ODR.
33580 * tree.c (need_assembler_name_p): Compute mangled name for
33581 non-fundamental types and integer types.
33583 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
33585 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33587 * expr.c (expand_expr_real_2): Likewise.
33589 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33591 * tree.c (build_common_builtin_nodes): Do not build
33592 __builtin_alloca_with_align as equivalent of library alloca.
33594 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33596 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33597 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33599 * tree.c: Include print-tree.h and ipa-utils.h
33600 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33601 (free_lang_data_in_cgraph): Call verify_type.
33602 (verify_type_variant): New function.
33603 (verify_type): New function.
33604 * tree.h (verify_type): Declare.
33606 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
33608 * config/mips/mips-cpus.def: (mips4): Change default processor
33609 from PROCESSOR_R8000 to PROCESSOR_R10000.
33611 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
33613 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
33614 la/jalr instead of jal.
33616 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
33619 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
33620 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
33621 (setcc+movzbl peephole2): Check also clobbered reg.
33622 (setcc+andl peephole2): Ditto.
33624 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
33627 * config/nvptx/mkoffload.c (target_ilp32): New variable.
33628 (main): Set it depending on "-foffload-abi=[...]".
33629 (compile_native, main): Use it to pass "-m32" or "-m64" to the
33632 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
33635 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
33636 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
33637 Flip lane index back at assembly time for bigendian.
33639 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
33641 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
33642 * gimplify.c (gimplify_omp_workshare): Use it.
33644 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33646 * Makefile.in (build/genrecog.o): Depend on inchash.h.
33647 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
33649 * genrecog.c: Rewrite most of the code except for the third page.
33651 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33653 * inchash.h, inchash.c: Include bconfig.h for build objects.
33654 * Makefile.in (build/inchash.o): New rule.
33656 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
33659 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
33660 number in type attribute expression.
33662 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33664 * loop-iv.c (canon_condition): Generalize to all types of integer
33667 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
33669 * gimple-walk.c: Prune duplicate or unneeded includes.
33670 (walk_gimple_asm): Only call parse_input_constraint or
33671 parse_output_constraint if their findings are used.
33672 Honour parse_input_constraint and parse_output_constraint
33675 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
33677 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
33679 2015-04-29 Tom de Vries <tom@codesourcery.com>
33681 PR tree-optimization/65893
33682 * passes.def (pass_all_optimizations): Move pass_stdarg to after
33685 2015-04-29 Richard Biener <rguenther@suse.de>
33687 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33688 compute GROUP_SIZE for basic-block SLP.
33689 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
33690 take into account gaps.
33691 (vect_get_mask_element): Properly reject references to previous
33693 (vect_transform_slp_perm_load): Likewise.
33695 2015-04-29 Christian Bruel <christian.bruel@st.com>
33698 * config/i386/i386.c (ix86_default_align): New function.
33699 (ix86_override_options_after_change): Call ix86_default_align.
33700 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
33701 (ix86_override_options_after_change): New function.
33703 2015-04-28 Jeff Law <law@redhat.com>
33705 * tree-ssa-dom.c (record_equality); Fix comment typos.
33707 2015-04-28 Tom de Vries <tom@codesourcery.com>
33709 PR tree-optimization/65887
33710 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
33712 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
33714 * doc/extend.texi (Declaring Attributes of Functions): Split into
33715 subsections by target. Alphabetize the table of common attributes.
33716 Rewrite some of the introductory text to reflect the new structure.
33717 Update some cross-references to point to the new subsections.
33718 (Attribute Syntax): Put paragraph about "__" naming here. Remove
33719 duplicate copies in the discussion of function, label, and type
33722 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
33725 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
33727 2015-04-28 Jason Merrill <jason@redhat.com>
33730 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
33731 (finalize_type_size): Respect TYPE_USER_ALIGN.
33732 (layout_type) [ARRAY_TYPE]: Likewise.
33734 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
33736 * config/arm/arm.md (*arm_movt): Fix type attribute.
33737 (*cmpsi_shiftsi): Likewise.
33738 (*cmpsi_shiftsi_swp): Likewise.
33739 (*movsicc_insn): Likewise.
33740 (*cond_move): Likewise.
33741 (*if_plus_move): Likewise.
33742 (*if_move_plus): Likewise.
33743 (*if_arith_move): Likewise.
33744 (*if_move_arith): Likewise.
33745 (*if_shift_move): Likewise.
33746 (*if_move_shift): Likewise.
33747 (*arm_movtas_ze): Likewise.
33748 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
33749 redundancy and type attribute.
33750 (*thumb2_movsi_insn): Fix type attribute.
33751 (*thumb2_addsi_short): Likewise.
33752 (thumb2_addsi3_compare0): Likewise.
33753 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33754 attributes accordingly.
33756 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
33759 * function.c (pad_to_arg_alignment): Add parentheses.
33761 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
33763 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
33764 libgcc/config/frv/elf-lib.h.
33766 2015-04-28 Tom de Vries <tom@codesourcery.com>
33768 * tree-call-cdce.c: Fix example in header comment.
33770 2015-04-28 Richard Biener <rguenther@suse.de>
33772 PR tree-optimization/62283
33773 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
33774 fails fatally and we are vectorizing a basic-block simply
33775 cause the child to be constructed piecewise.
33776 (vect_analyze_slp_cost_1): Adjust.
33777 (vect_detect_hybrid_slp_stmts): Likewise.
33778 (vect_bb_slp_scalar_cost): Likewise.
33779 (vect_get_constant_vectors): For piecewise constructed
33780 constants place them after the last def.
33781 (vect_get_slp_defs): Adjust.
33782 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
33783 externals for basic-block vectorization.
33785 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
33788 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
33790 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
33791 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
33792 (AARCH64_TUNE_FMA_STEERING): Likewise.
33793 * config/aarch64/aarch64-cores.def: Set
33794 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
33795 FMUL/FMADD instructions.
33796 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
33797 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
33798 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
33799 * config/aarch64/cortex-a57-fma-steering.h: New file.
33800 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
33802 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
33804 * gensupport.c (std_preds): Add missing codes to address_operand entry.
33806 2015-04-28 Richard Biener <rguenther@suse.de>
33808 PR tree-optimization/65851
33809 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
33810 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
33811 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
33812 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
33813 (ccp_visit_phi_node): Adjust.
33814 (evaluate_stmt): For simplifications to SSA names return its
33815 lattice value if that isn't VARYING. Return immediately when
33816 simplified to a constant.
33817 (visit_assignment): Adjust.
33818 (ccp_visit_stmt): Likewise.
33820 2015-04-28 Tom de Vries <tom@codesourcery.com>
33822 PR tree-optimization/65818
33823 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
33826 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33828 * calls.c (save_fixed_argument_area): Don't check
33829 ARGS_GROW_DOWNWARD with the preprocessor.
33830 (restore_fixed_argument_area): Likewise.
33831 (mem_overlaps_already_clobbered_arg_p): Likewise.
33832 (check_sibcall_argument_overlap): Likewise.
33833 (expand_call): Likewise.
33834 (emit_library_call_value_1): Likewise.
33835 (store_one_arg): Likewise.
33836 * function.c (assign_parms): Likewise.
33837 (locate_and_pad_parm): Likewise.
33838 (pad_to_arg_alignment): Likewise.
33839 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33841 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33843 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
33844 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
33845 * calls.c (save_fixed_argument_area): Don't chekc if
33846 ARGS_GROW_DOWNWARD is defined.
33847 (restore_fixed_argument_area): Likewise.
33848 (mem_overlaps_already_clobbered_arg_p): Likewise.
33849 (check_sibcall_argument_overlap): Likewise.
33850 (expand_call): Likewise.
33851 (emit_library_call_value_1): Likewise.
33852 (store_one_arg): Likewise.
33853 * function.c (assign_parms): Likewise.
33854 (locate_and_pad_parm): Likewise.
33855 (pad_to_arg_alignment): Likewise.
33856 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33858 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33860 * defaults.h (gen_epilogue): New function.
33861 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
33863 * cfgrtl.c (cfg_layout_finalize): Likewise.
33864 * df-scan.c: Likewise.
33865 * function.c (thread_prologue_and_epilogue_insns): Likewise.
33866 (reposition_prologue_and_epilogue_notes): Likewise.
33867 * reorg.c (find_end_label): Likewise.
33868 * toplev.c: Likewise.
33870 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33872 * bb-reorder.c (HAVE_return): Don't check if its undefined.
33873 * defaults.h (gen_simple_return): New function.
33874 (gen_simple_return): Likewise.
33875 (HAVE_return): Add default definition to false.
33876 (HAVE_simple_return): Likewise.
33877 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
33878 HAVE_return and HAVE_simple_return are defined.
33879 * function.c (gen_return_pattern): Likewise.
33880 (convert_jumps_to_returns): Likewise.
33881 (thread_prologue_and_epilogue_insns): Likewise.
33882 * reorg.c (find_end_label): Likewise.
33883 (dbr_schedule): Likewise.
33884 * shrink-wrap.c: Likewise.
33885 * shrink-wrap.h: Likewise.
33887 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33889 * defaults.h (EPILOGUE_USES): Add default definition of false.
33890 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
33891 * resource.c (init_resource_info): Likewise.
33893 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33895 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
33897 * dwarf2out.c (field_byte_offset): REmove check if
33898 PCC_BITFIELD_TYPE_MATTERS is defined.
33899 * stor-layout.c (layout_decl): Likewise.
33900 (update_alignment_for_field): Likewise.
33901 (place_field): Likewise.
33903 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33905 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
33907 * regrename.c (check_new_reg_p): Remove check if
33908 HARD_REGNO_RENAME_OK is defined.
33909 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
33911 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33913 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33914 * cse.c (fold_rtx): Likewise.
33915 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33916 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33917 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33918 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33919 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33920 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33921 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33922 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33923 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33924 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33926 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33927 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33928 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33929 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33930 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33931 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33932 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33933 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33934 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33935 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33936 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33937 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33938 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33939 * doc/tm.texi: Regenerate.
33940 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33941 either true or false.
33943 2015-04-27 Jeff Law <law@redhat.com>
33945 PR tree-optimization/65217
33946 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33947 of them has a single use, make sure it is the LHS of the implied
33950 2015-04-28 Alan Modra <amodra@gmail.com>
33953 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33954 (offsettable_ok_by_alignment): Use minimum of decl and toc
33955 pointer alignment. Replace dead code with assertion.
33956 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
33957 case if size exceeds toc pointer alignment.
33958 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33959 (rs6000_emit_move): Likewise.
33960 * configure.ac: Add linker toc pointer alignment check.
33961 * configure: Regenerate.
33962 * config.in: Regenerate.
33964 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
33966 * config.gcc: Add h8300-*-linux.
33967 * config/h8300/linux.h: New.
33968 * config/h8300/t-linux: New.
33969 * config/h8300/h8300.c (h8300_option_override): Normal mode
33970 is not supported for h8300-*-linux.
33971 (h8300_file_start): Target priority change.
33972 (get_shift_alg): Likewise.
33973 (h8300_shift_need_scratch_p): Likewise.
33974 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33975 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33977 2015-04-27 Caroline Tice <cmtice@google.com>
33979 * final.c (final_scan_insn): Output cold_function_name as function
33981 * varasm.c (cold_function_name): Make global.
33982 (assemble_start_function): Re-set cold_function_name.
33983 (assemble_end_function): Output cold partition size.
33984 * varasm.h (cold_function_name): Declare global.
33986 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
33988 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33989 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33991 (*movxi_internal_avx512f): Ditto.
33992 (define_split): Check for xmm16+, when splitting scalar float_extend.
33993 (*extendsfdf2_mixed): Use "v" constraint.
33994 (define_split): Check for xmm16+, when splitting scalar float_truncate.
33995 (*truncdfsf_fast_sse): Use "v" constraint.
33996 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33997 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33998 (define_peephole2): Check for xmm16+, when converting scalar
34000 (define_peephole2): Check for xmm16+, when converting scalar
34002 (*fop_<mode>_comm_mixed): Use "v" constraint.
34003 (*fop_<mode>_comm_sse): Ditto.
34004 (*fop_<mode>_1_mixed): Ditto.
34005 (*sqrt<mode>2_sse): Ditto.
34006 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34008 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34010 * combine.c (simplify_if_then_else): Use std::swap instead
34011 of manually swapping.
34012 (known_cond): Likewise.
34013 (simplify_comparison): Likewise.
34015 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34018 * config/rs6000/htm.md: Remove all define_expands.
34019 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34020 UNSPECV_HTM_TABORTWCI): Remove.
34021 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34022 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34023 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34024 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34025 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34026 tabortwci_internal): Remove define_insns.
34027 (tabort<wd>c, tabort<wd>ci): New define_insns.
34028 (tabort): Use gpc_reg_operand.
34029 (tcheck): Remove operand.
34030 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34031 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34033 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34034 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
34035 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34036 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34037 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34038 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34039 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34040 (tcheck): Remove builtin argument.
34041 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34043 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
34044 tabortdc and tabortdci builtins when not in 64-bit mode.
34045 Modify code to handle the loss of the HTM define_expands.
34046 Emit code to copy the CR register to TARGET.
34047 (htm_init_builtins): Modify code to handle the loss of the HTM
34049 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34050 (RS6000_BTC_64BIT): Likewise.
34051 (RS6000_BTC_CR): New macro.
34052 * doc/extend.texi: Update documentation for htm builtins.
34054 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34056 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34057 of manually swapping.
34058 (simplify_associative_operation): Likewise.
34059 (simplify_binary_operation): Likewise.
34060 (simplify_plus_minus): Likewise.
34061 (simplify_relational_operation): Likewise.
34062 (simplify_ternary_operation): Likewise.
34064 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34066 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34067 (xs_hi_nonmemory_operand): Remove error.
34068 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34069 general_operand rather than xs_hi_general_operand.
34071 2015-04-27 Richard Biener <rguenther@suse.de>
34073 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34074 (record_equivalences_from_stmt): Valueize rhs.
34075 (record_equality): Canonicalize x and y order via
34076 tree_swap_operands_p. Do not swap operands for same loop depth.
34078 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
34082 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34083 Add hint how to use own spec file.
34085 2015-04-27 Jakub Jelinek <jakub@redhat.com>
34087 PR tree-optimization/65875
34088 * tree-vrp.c (update_value_range): If in is_new case setting
34089 old_vr to VR_VARYING, also set new_vr to it. Remove
34090 old_vr->type == VR_VARYING test.
34091 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34092 SSA_PROP_INTERESTING if update_value_range returned true,
34093 but new range is VR_VARYING.
34095 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
34097 * combine.c (sign_extend_short_imm): New.
34098 (set_nonzero_bits_and_sign_copies): Use above new function for sign
34099 extension of src short immediate.
34100 (reg_nonzero_bits_for_combine): Likewise for tem.
34102 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34104 * stor-layout.c (self_referential_component_ref_p): New predicate.
34105 (copy_self_referential_tree_r): Use it.
34106 (self_referential_size): Punt for simple operations directly involving
34107 self-referential component references.
34108 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
34110 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34112 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
34114 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34116 * vec.h (vec): Make splice arguments const. Update definitions
34119 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
34121 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
34124 2015-04-26 Tom de Vries <tom@codesourcery.com>
34126 PR tree-optimization/65826
34127 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
34129 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
34131 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
34132 (*madd3<mode>): Ditto.
34133 (*msub4<mode>): Ditto.
34134 (*msub3<mode>): Ditto.
34135 (*nmadd4<mode>): Ditto.
34136 (*nmadd3<mode>): Ditto.
34137 (*nmadd4<mode>_fastmath): Ditto.
34138 (*nmadd3<mode>_fastmath): Ditto.
34139 (*nmsub4<mode>): Ditto.
34140 (*nmsub3<mode>): Ditto.
34141 (*nmsub4<mode>_fastmath): Ditto.
34142 (*nmsub3<mode>_fastmath): Ditto.
34144 2015-04-24 Jason Merrill <jason@redhat.com>
34147 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
34148 down when building TYPE_CANONICAL.
34149 (build_pointer_type_for_mode): Likewise.
34151 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
34153 * genrecog.c (validate_pattern): Check matching constraint refers
34154 to a lower numbered operand.
34156 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
34159 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
34160 save to independent variables use the Save attribute. This will
34161 allow these options to be modified with the #pragma/attribute
34163 (-mallow-movmisalign): Likewise.
34164 (-mallow-df-permute): Likewise.
34165 (-msched-groups): Likewise.
34166 (-malways-hint): Likewise.
34167 (-malign-branch-targets): Likewise.
34168 (-mvectorize-builtins): Likewise.
34169 (-msave-toc-indirect): Likewise.
34171 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
34172 can be set via the #pragma/attribute target support.
34173 (rs6000_opt_vars): Likewise.
34174 (rs6000_inner_target_options): If VSX was set, also set
34175 -mno-avoid-indexed-addresses.
34177 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34179 * config/arm/iterators.md (shiftable_ops): Rename to...
34180 (SHIFTABLE_OPS): ... This. Update use in comments.
34181 (ior_xor): Rename to...
34182 (IOR_XOR): ... This.
34183 (vqh_ops): Rename to...
34184 (VQH_OPS): ... This.
34185 (vqhs_ops): Rename to...
34186 (VQHS_OPS): ... This.
34187 (rshifts): Rename to...
34188 (RSHIFTS): ... This.
34189 (returns): Rename to...
34190 (RETURNS): ... This.
34191 * config/arm/arm.md: Update uses of the above.
34192 * config/arm/neon.md: Likewise.
34194 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34196 * config.host (case ${host}): Add aarch64*-*-linux case.
34197 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
34198 fields to all the cores.
34199 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
34200 Add MCPU_MTUNE_NATIVE_SPECS.
34201 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
34202 field to all extensions.
34203 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
34204 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
34205 Adjust definition of AARCH64_OPT_EXTENSION.
34206 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
34207 (MCPU_MTUNE_NATIVE_SPECS): Define.
34208 * config/aarch64/driver-aarch64.c: New file.
34209 * config/aarch64/x-arch64: New file.
34210 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
34213 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34214 Wei Mi <wmi@google.com>
34216 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
34217 * config/i386/i386.c (extract_base_offset_in_addr): New function.
34218 (ix86_operands_ok_for_move_multiple): Ditto.
34219 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
34220 (movlpd/movhpd to movupd peephole2): Ditto.
34222 2015-04-24 Marek Polacek <polacek@redhat.com>
34225 * input.h (from_macro_expansion_at): Define.
34228 * doc/invoke.texi: Update description of -Wlogical-op.
34230 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34232 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
34233 ternary operator in fprintf and harmonize spacing.
34235 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34237 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
34238 Mark operand1 commutative.
34240 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34242 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
34243 input operands in memory.
34244 (*vec_concatv2si_sse4_1): Ditto.
34245 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
34246 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
34248 (vec_extract_hi_v32hi): Ditto.
34249 (vec_extract_hi_v64hi): Ditto.
34250 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
34252 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34253 Steven Bosscher <steven@gcc.gnu.org>
34255 PR rtl-optimization/34503
34256 * cprop.c (cprop_reg_p): New.
34257 (hash_scan_set): Use above function to check if register can be
34259 (find_avail_set): Return up to two sets, one whose source is a
34260 register and one whose source is a constant. Sets are returned in an
34261 array passed as parameter rather than as a return value.
34262 (cprop_insn): Use a do while loop rather than a goto. Try each of the
34263 sets returned by find_avail_set, starting with the one whose source is
34264 a constant. Use cprop_reg_p to check if register can be propagated.
34265 (do_local_cprop): Use cprop_reg_p to check if register can be
34267 (implicit_set_cond_p): Likewise.
34269 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34271 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
34272 (sem_function::equals): IGNORED_NODES parameter is now unused;
34273 update call of equals_private.
34274 (sem_function::equals_private): Do not call equals_wpa; skip
34275 gimple body matching if there is no body.
34276 (sem_function::init): Add logic to hash tthunk info.
34277 (sem_function::parse): Also parse thunks.
34278 * ipa-icf.h (equals_private): Update declaration.
34280 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34282 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
34283 asterisk from name so this can be generated directly.
34284 (*altivec_stvx_<mode>_internal): Likewise.
34285 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
34286 that this is never called during or after reload/lra.
34287 (rs6000_frame_related): Remove split_reg
34288 argument and logic that references it.
34289 (emit_frame_save): Remove last parameter from call to
34290 rs6000_frame_related.
34291 (rs6000_emit_prologue): Remove last parameter from eight calls to
34292 rs6000_frame_related. Force generation of stvx instruction for
34293 Altivec register saves. Remove split_reg handling, which is no
34295 (rs6000_emit_epilogue): Force generation of lvx instruction for
34296 Altivec register restores.
34298 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34300 * config/rs6000/rs6000.opt (mcrypto): Change option description to
34301 match category changes in ISA 2.07B.
34303 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34305 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
34307 (cmp_op, cmp_type): New code attributes.
34308 (NEON_VCMP, NEON_VACMP): New int iterators.
34309 (cmp_op_unsp): New int attribute.
34310 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
34311 (neon_vceq<mode>): Delete.
34312 (neon_vc<cmp_op><mode>_insn): New pattern.
34313 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
34314 (neon_vcgeu<mode>): Delete.
34315 (neon_vcle<mode>): Likewise.
34316 (neon_vclt<mode>: Likewise.
34317 (neon_vcage<mode>): Likewise.
34318 (neon_vcagt<mode>): Likewise.
34319 (neon_vca<cmp_op><mode>): New define_expand.
34320 (neon_vca<cmp_op><mode>_insn): New pattern.
34321 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34323 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34325 * tree.h (attribute_value_equal): Declare.
34326 * tree.c (attribute_value_equal): Export.
34328 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34330 * ipa-icf.c (sem_item::compare_attributes): New function.
34331 (sem_item::compare_referenced_symbol_properties): Compare variable
34333 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34334 (sem_function::param_used_p): New function.
34335 (sem_function::equals_wpa): Fix attribute comparsion; match
34336 parameter type codes; do not compare paremter flags when
34337 they are not used; compare edge flags; compare indirect calls.
34338 (sem_item::update_hash_by_addr_refs): Hash reference type.
34339 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34340 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34341 reference use type.
34342 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34343 * ipa-icf.h (compare_attributes, param_used_p): Declare.
34345 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34347 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34349 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34350 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34351 (sem_item::compare_referenced_symbol_properties): New.
34352 (sem_item::hash_referenced_symbol_properties): New.
34353 (sem_item::compare_cgraph_references): Rename to ...
34354 (sem_item::compare_symbol_references): ... this one; use
34355 compare_referenced_symbol_properties.
34356 (sem_function::equals_wpa): Do not compare
34357 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34358 DECL_IS_OPERATOR_NEW; compare pointer sizes.
34359 (sem_item::update_hash_by_addr_refs): Call
34360 hash_referenced_symbol_properties.
34361 (sem_item::update_hash_by_local_refs): Cleanup.
34362 (sem_function::merge): Do not mix up symbol properties.
34363 (sem_variable::equals_wpa): Use compare_symbol_references.
34364 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34365 (sem_item::hash_referenced_symbol_properties): New.
34366 (sem_item::compare_symbol_references): New.
34367 (sem_item::compare_cgraph_references): Remove.
34369 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
34372 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34373 Emit size of local.
34375 2015-04-23 Nick Clifton <nickc@redhat.com>
34377 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34378 ATTRIBUTE_UNUSED to x parameter.
34379 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34381 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34383 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34384 TARGET_CRYPTO to TARGET_P8_VECTOR>
34385 (crypto_vpermxor_<mode>): Likewise.
34386 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34387 (BU_CRYPTO_3A): Likewise.
34388 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34389 (BU_CRYPTO_OVERLOAD_3A): New #define.
34390 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34391 (VPMSUMH): Likewise.
34392 (VPMSUMW): Likewise.
34393 (VPMSUMD): Likewise.
34394 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34395 (VPERMXOR_V4SI): Likewise.
34396 (VPERMXOR_V8HI): Likewise.
34397 (VPERMXOR_V16QI): Likewise.
34398 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34399 BU_CRYPTO_OVERLOAD_2A.
34400 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34401 BU_CRYPTO_OVERLOAD_3A.
34402 * config/rs6000/rs6000.opt (mcrypto): Change description of
34405 2015-04-23 Richard Biener <rguenther@suse.de>
34407 * passes.def: Remove copy propagation passes run directly after CCP.
34408 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34410 (ccp_visit_phi_node): Rework to handle first executable edge
34413 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
34415 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34416 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34417 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34418 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34419 (thumb_legimitimize_reload_address): Remove.
34420 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34422 (thumb_legimitimize_reload_address): Remove.
34424 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34426 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34428 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34430 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34432 (store_multiple): Likewise.
34434 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34436 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34437 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34438 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34439 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34440 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34441 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34442 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34443 Specify issue_rate value.
34444 (arm_issue_rate): Look up issue rate from tuning structs. Remove
34445 large switch statement.
34446 (arm_marvell_pj4_tune): New struct.
34447 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34450 2015-04-23 Richard Biener <rguenther@suse.de>
34452 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34453 (vect_find_last_store_in_slp_instance): Rename to ...
34454 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34455 (vect_analyze_slp_cost_1): Use vector_load for constant defs
34456 and vec_construct for external defs when estimating prologue cost.
34457 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34458 Compute costs here only when vectorizing loops.
34459 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34460 have been determined.
34461 (vect_schedule_slp_instance): Simplify vectorized code placement
34462 and prepare for in-BB external defs.
34463 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34464 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34465 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34467 (vect_model_load_cost): Likewise.
34468 (vectorizable_store): Instead add it here.
34469 (vectorizable_load): Likewise.
34470 (vect_is_simple_use): Dump def type textually.
34472 2015-04-23 Richard Biener <rguenther@suse.de>
34474 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34475 * cfgloop.c (verify_loop_structure): Verify the root loop node.
34476 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34477 instead of get_eh_region_from_lp_number.
34478 * loop-init.c (fix_loop_structure): If we removed a loop, reset
34481 2015-04-23 Anton Blanchard <anton@samba.org>
34483 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34484 need for -mprofile-kernel to save LR to stack.
34486 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34488 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34490 (insn_is_swappable_p): Return 1 for a convert from double to
34491 single precision when all of its uses are splats of BE element
34494 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34496 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34498 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34501 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
34502 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34503 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34505 (rs6000_builtin_mask_for_load): Return 0 for targets with
34506 efficient unaligned VSX accesses so that the vectorizer will use
34507 direct unaligned loads.
34508 (rs6000_builtin_support_vector_misalignment): Always return true
34509 for targets with efficient unaligned VSX accesses.
34510 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34511 stores on targets with efficient unaligned VSX accesses is almost
34512 always the same as the cost of an aligned load or store, so model
34514 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34515 unaligned vectors if we have efficient unaligned VSX accesses.
34516 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34517 undocumented option.
34519 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34522 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34524 * config.gcc (LIBC_MUSL): New tm_defines macro.
34525 * config/linux.h (OPTION_MUSL): Define.
34526 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34527 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34528 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34530 * config/linux.opt (mmusl): New option.
34531 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34532 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34534 * configure: Regenerate.
34536 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34538 * config.gcc (LIBC_MUSL): New tm_defines macro.
34539 * config/linux.h (OPTION_MUSL): Define.
34540 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34541 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34542 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34544 * config/linux.opt (mmusl): New option.
34545 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34546 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34548 * configure: Regenerate.
34550 2015-04-22 Yury Gribov <y.gribov@samsung.com>
34552 * doc/invoke.texi (-fsanitize-sections): Update description.
34553 * asan.c (set_sanitized_sections): Parse incoming arg.
34554 (section_sanitized_p): Support wildcards.
34556 2015-04-22 Tom de Vries <tom@codesourcery.com>
34558 PR tree-optimization/65823
34559 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34560 equality between ap_copy and ap.
34562 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34565 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34567 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34570 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34572 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34575 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34576 remove already contained t-files.
34578 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34580 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34581 Remove unneeded forward declarations.
34582 (suitable_for_tail_call_opt_p): Commentary typo fix.
34584 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34586 * varasm.c (emit_bss): Remove redundant guard.
34588 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34590 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34592 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34594 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34596 2015-04-22 Hale Wang <hale.wang@arm.com>
34597 Terry Guo <terry.guo@arm.com>
34599 PR rtl-optimization/64818
34600 * combine.c (can_combine_p): Don't combine user-specified
34601 register if it is in an asm input.
34603 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
34606 * passes.def (early_optimizations): Add pass_dse.
34608 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34610 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34611 * reorg.c (redundant_insn): Remove ifdef
34612 INSN_REFERENCES_ARE_DELAYED.
34613 * resource.c (mark_referenced_resources): Likewise.
34615 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34617 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
34618 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
34619 * resource.c (mark_set_resources): Likewise.
34621 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34623 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
34624 * cfgcleanup.c (flow_find_cross_jump): Likewise.
34625 (flow_find_head_matching_sequence): Likewise.
34626 (try_head_merge_bb): Likewise.
34627 * combine.c (can_combine_p): Likewise.
34628 (try_combine): Likewise.
34629 (distribute_notes): Likewise.
34630 * df-problems.c (can_move_insns_across): Likewise.
34631 * final.c (final): Likewise.
34632 * gcse.c (insert_insn_end_basic_block): Likewise.
34633 * ira.c (find_moveable_pseudos): Likewise.
34634 * reorg.c (try_merge_delay_insns): Likewise.
34635 (fill_simple_delay_slots): Likewise.
34636 (fill_slots_from_thread): Likewise.
34637 * sched-deps.c (sched_analyze_2): Likewise.
34639 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34641 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
34642 PIC_OFFSET_TABLE_REGNUM.
34644 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34646 * alias.c (init_alias_target): Remove ifdef
34647 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
34648 * df-scan.c (df_insn_refs_collect): Likewise.
34649 (df_get_regular_block_artificial_uses): Likewise.
34650 (df_get_eh_block_artificial_uses): Likewise.
34651 (df_get_entry_block_def_set): Likewise.
34652 (df_get_exit_block_use_set): Likewise.
34653 * emit-rtl.c (gen_rtx_REG): Likewise.
34654 * ira.c (ira_setup_eliminable_regset): Likewise.
34655 * reginfo.c (init_reg_sets_1): Likewise.
34656 * regrename.c (rename_chains): Likewise.
34657 * reload1.c (reload): Likewise.
34658 (eliminate_regs_in_insn): Likewise.
34659 * resource.c (mark_referenced_resources): Likewise.
34660 (init_resource_info): Likewise.
34662 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34664 * defaults.h (MASK_RETURN_ADDR): New definition.
34665 * except.c (expand_builtin_extract_return_addr): Remove ifdef
34668 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34670 * defaults.h (RETURN_ADDR_OFFSET): New definition.
34671 * except.c (expand_builtin_extract_return_addr): Remove ifdef
34672 RETURN_ADDR_OFFSET.
34673 (expand_builtin_frob_return_addr): Likewise.
34675 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34677 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
34678 (try_redirect_by_replacing_jump): Likewise.
34679 (rtl_tidy_fallthru_edge): Likewise.
34680 * combine.c (insn_a_feeds_b): Likewise.
34681 (find_split_point): Likewise.
34682 (simplify_set): Likewise.
34683 * cprop.c (cprop_jump): Likewise.
34684 * cse.c (cse_extended_basic_block): Likewise.
34685 * df-problems.c (can_move_insns_across): Likewise.
34686 * function.c (emit_use_return_register_into_block): Likewise.
34687 * haifa-sched.c (sched_init): Likewise.
34688 * ira.c (find_moveable_pseudos): Likewise.
34689 * loop-invariant.c (find_invariant_insn): Likewise.
34690 * lra-constraints.c (curr_insn_transform): Likewise.
34691 * postreload.c (reload_combine_recognize_const_pattern):
34693 * reload.c (find_reloads): Likewise.
34694 * reorg.c (delete_scheduled_jump): Likewise.
34695 (steal_delay_list_from_target): Likewise.
34696 (steal_delay_list_from_fallthrough): Likewise.
34697 (redundant_insn): Likewise.
34698 (fill_simple_delay_slots): Likewise.
34699 (fill_slots_from_thread): Likewise.
34700 (delete_computation): Likewise.
34701 * sched-rgn.c (add_branch_dependences): Likewise.
34703 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34705 * genconfig.c (main): Always define HAVE_cc0.
34706 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
34708 * cfgcleanup.c (flow_find_cross_jump): Likewise.
34709 (flow_find_head_matching_sequence): Likewise.
34710 (try_head_merge_bb): Likewise.
34711 * cfgrtl.c (rtl_merge_blocks): Likewise.
34712 (try_redirect_by_replacing_jump): Likewise.
34713 (rtl_tidy_fallthru_edge): Likewise.
34714 * combine.c (do_SUBST_MODE): Likewise.
34715 (insn_a_feeds_b): Likewise.
34716 (combine_instructions): Likewise.
34717 (can_combine_p): Likewise.
34718 (try_combine): Likewise.
34719 (find_split_point): Likewise.
34721 (simplify_set): Likewise.
34722 (distribute_notes): Likewise.
34723 * cprop.c (cprop_jump): Likewise.
34724 * cse.c (cse_extended_basic_block): Likewise.
34725 * df-problems.c (can_move_insns_across): Likewise.
34726 * final.c (final): Likewise.
34727 (final_scan_insn): Likewise.
34728 * function.c (emit_use_return_register_into_block): Likewise.
34729 * gcse.c (insert_insn_end_basic_block): Likewise.
34730 * haifa-sched.c (sched_init): Likewise.
34731 * ira.c (find_moveable_pseudos): Likewise.
34732 * loop-invariant.c (find_invariant_insn): Likewise.
34733 * lra-constraints.c (curr_insn_transform): Likewise.
34734 * optabs.c (prepare_cmp_insn): Likewise.
34735 * postreload.c (reload_combine_recognize_const_pattern):
34737 * reload.c (find_reloads): Likewise.
34738 (find_reloads_address_1): Likewise.
34739 * reorg.c (delete_scheduled_jump): Likewise.
34740 (steal_delay_list_from_target): Likewise.
34741 (steal_delay_list_from_fallthrough): Likewise.
34742 (try_merge_delay_insns): Likewise.
34743 (redundant_insn): Likewise.
34744 (fill_simple_delay_slots): Likewise.
34745 (fill_slots_from_thread): Likewise.
34746 (delete_computation): Likewise.
34747 (relax_delay_slots): Likewise.
34748 * sched-deps.c (sched_analyze_2): Likewise.
34749 * sched-rgn.c (add_branch_dependences): Likewise.
34751 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34753 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
34754 that is trivially ded on non cc0 targets.
34755 (simplify_set): Likewise.
34756 (mark_used_regs_combine): Likewise.
34757 * cse.c (new_basic_block): Likewise.
34758 (fold_rtx): Likewise.
34759 (cse_insn): Likewise.
34760 (cse_extended_basic_block): Likewise.
34761 (set_live_p): Likewise.
34762 * rtlanal.c (canonicalize_condition): Likewise.
34763 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
34765 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34767 * conditions.h: Define macros even if HAVE_cc0 is undefined.
34768 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
34769 * final.c: Likewise.
34770 * jump.c: Likewise.
34771 * recog.c: Likewise.
34772 * recog.h: Declare functions even when HAVE_cc0 is undefined.
34773 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
34775 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34777 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
34778 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
34779 * builtins.c (expand_builtin): Remove check if
34780 EH_RETURN_DATA_REGNO is defined.
34781 * df-scan.c (df_bb_refs_collect): Likewise.
34782 (df_get_exit_block_use_set): Likewise.
34783 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
34784 * ira-lives.c (process_bb_node_lives): Likewise.
34785 * lra-lives.c (process_bb_lives): Likewise.
34787 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
34789 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
34790 FIRST_PSEUDO_REG): New.
34791 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
34792 (ARG_POINTER_REGNUM): Define to ARGP_REG.
34793 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
34794 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
34795 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
34796 (FIRST_INT_REG): New.
34797 (LAST_INT_REG): New.
34798 (FIRST_*_REG): Define using *_REG.
34799 (LAST_*_REG): Ditto.
34800 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
34801 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
34802 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
34804 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34806 * expmed.c: (synth_mult): Only assume overlapping
34807 shift with previous steps in alg_sub_t_m2 case.
34809 2015-04-21 Richard Biener <rguenther@suse.de>
34811 PR tree-optimization/65650
34812 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
34813 transitions involving copies.
34814 (set_lattice_value): Adjust for copy lattice state.
34815 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
34816 if that doesn't dominate the merge point.
34817 (bit_value_unop): Adjust what we treat as varying mask.
34818 (bit_value_binop): Likewise.
34819 (bit_value_assume_aligned): Likewise.
34820 (evaluate_stmt): When we simplified to a SSA name record a copy
34821 instead of dropping to varying.
34822 (visit_assignment): Simplify.
34824 * gimple-match.h (gimple_simplify): Add another callback.
34825 * gimple-fold.c (fold_stmt_1): Adjust caller.
34826 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
34827 for the 2nd callback.
34828 * gimple-match-head.c (gimple_simplify): Add a callback that is
34829 used to valueize the stmt operands and use it that way.
34831 2015-04-21 Richard Biener <rguenther@suse.de>
34833 PR tree-optimization/65788
34834 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
34836 2015-04-21 Richard Biener <rguenther@suse.de>
34838 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
34839 vec_construct cost by vec_stmt_cost.
34841 2015-04-21 Richard Biener <rguenther@suse.de>
34843 * cfghooks.h (create_basic_block): Replace with two overloads
34844 for RTL and GIMPLE.
34845 (split_block): Likewise.
34846 * cfghooks.c (split_block): Rename to ...
34847 (split_block_1): ... this.
34848 (split_block): Add two type-safe overloads for RTL and GIMPLE.
34849 (split_block_after_labels): Call split_block_1.
34850 (create_basic_block): Rename to ...
34851 (create_basic_block_1): ... this.
34852 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
34853 (create_empty_bb): Call create_basic_block_1.
34854 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
34855 split_block_after_labels.
34856 * omp-low.c (expand_parallel_call): Likewise.
34857 (expand_omp_target): Likewise.
34858 (simd_clone_adjust): Likewise.
34859 * tree-chkp.c (chkp_get_entry_block): Likewise.
34860 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
34861 create_basic_block overload.
34862 (cgraph_node::expand_thunk): Likewise.
34863 * tree-cfg.c (make_blocks): Likewise.
34864 (handle_abnormal_edges): Likewise.
34865 * tree-inline.c (copy_bb): Likewise.
34867 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34869 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
34871 (*xor_one_cmplsidi3_ze): Likewise.
34873 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
34875 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
34876 use df_remove_problem rather than manually removing problems, leaving
34877 holes in df->problems_in_order[].
34879 2015-04-21 Tom de Vries <tom@codesourcery.com>
34881 PR tree-optimization/65802
34882 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
34884 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34886 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
34888 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
34889 at '.'. Assert that there's enough space for everything.
34891 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
34893 PR tree-optimization/64950
34895 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
34898 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
34901 2015-04-20 Shiva Chen <shiva0217@gmail.com>
34903 PR rtl-optimization/64916
34904 * cfgcleanup.c (values_equal_p): New function.
34905 (can_replace_by): Use it.
34907 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
34910 * doc/invoke.texi ([-Wnarrowing]): Update.
34912 2015-04-20 Jeff Law <law@redhat.com>
34914 PR tree-optimization/65658
34915 * tree-ssa-threadupdate.c (redirection_block_p): Remove
34916 redundant test for GIMPLE_ASSIGN in last change.
34918 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
34920 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34921 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34922 (legitimize_tls_address): Ditto.
34923 (ix86_expand_move): Ditto.
34924 (ix86_expand_binary_operator): Remove reload_in_progress checks.
34925 (ix86_expand_unary_operator): Ditto.
34926 * config/i386/predicates.md (index_register_operand): Ditto.
34928 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
34930 * reorg.c (try_merge_delay_insns): Improve correctness checking
34931 for targets with multiple delay slots.
34933 2015-04-20 Jeff Law <law@redhat.com>
34935 PR tree-optimization/65658
34936 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34939 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
34941 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34942 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34945 2015-04-20 Jakub Jelinek <jakub@redhat.com>
34948 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34950 2015-04-20 Richard Biener <rguenther@suse.de>
34952 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34953 * gimple-fold.c (gimple_build_valueize): New function.
34954 (gimple_build): Always use gimple_build_valueize as valueize hook.
34956 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
34959 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34960 and overwrite variable parts if <= 1/2 the elements are variable.
34962 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
34964 PR rtl-optimization/65805
34965 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34966 Don't use difference of offset and previous offset if
34967 update_sp_offset is non-zero.
34968 (eliminate_regs_in_insn): Ditto.
34969 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34970 lra_eliminate_regs_1 call.
34971 * lra-constraints.c (get_equiv_with_elimination): Ditto.
34973 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
34975 * hash-table.h: Remove version of hash_table that stored value_type *.
34976 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34977 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34978 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34979 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34980 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34981 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34982 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34983 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34984 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34985 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34986 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34987 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34988 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34989 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34990 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34991 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34993 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34994 Jakub Jelinek <jakub@redhat.com>
34997 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34998 subsequent SH_NONE operand does not overwrite an existing *special
35000 (adjust_extract): Handle case where a vec_extract operation is
35001 wrapped in a PARALLEL.
35003 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35006 * config/i386/i386.c (ix86_binds_local_p): Define only if
35007 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35009 2015-04-17 Jeff Law <law@redhat.com>
35011 PR tree-optimization/47679
35012 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35013 * tree-ssa-scopedtables.c: New file.
35014 * tree-ssa-scopedtables.h: New file.
35015 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35016 (const_and_copies): Change name/type.
35017 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35018 (record_const_or_copy_1): Similarly.
35019 (restore_vars_to_original_value): Similarly.
35020 (pass_dominator::execute): Create and destroy const_and_copies table.
35021 (thread_across_edge): Update passing of const_and_copies.
35022 (record_temporary_equivalence): Use method calls rather than
35023 manipulating const_and_copies directly.
35024 (record_equality, cprop_into_successor_phis): Similarly.
35025 (dom_opt_dom_walker::before_dom_children): Similarly.
35026 (dom_opt_dom_walker::after_dom_children): Similarly.
35027 (eliminate_redundant_computations): Similarly.
35028 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35029 (record_temporary_equivalence): Likewise.
35030 (invalidate_equivalences): Likewise.
35031 (record_temporary_equivalences_from_phis): Update due to type
35032 change of const_and_copies. Use method calls rather than
35033 manipulating the stack directly.
35034 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35035 (thread_through_normal_block, thread_across_edge): Likewise.
35036 (thread_across_edge): Likewise.
35037 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35038 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
35040 (identify_jump_threads): Update due to type change of equiv_stack.
35041 (finalize_jump_threads): Delete the equiv_stack when complete.
35043 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
35045 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35046 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35047 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35049 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
35052 * config.gcc: Exit with a comment when we do not have a major version
35053 number for the FreeBSD target.
35055 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35058 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35059 maybe_allows_mem bitfields.
35060 (maybe_allows_none_start, maybe_allows_none_end,
35061 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35062 maybe_allows_mem_end): New variables.
35063 (compute_maybe_allows): New function.
35064 (add_constraint): Use it to initialize maybe_allows_reg and
35065 maybe_allows_mem fields.
35066 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35067 is_address constraints such that those that allow neither mem nor
35068 reg come first, then those that only allow reg but not mem, then
35069 those that only allow mem but not reg, then the rest.
35070 (write_allows_reg_mem_function): New function.
35071 (write_tm_preds_h): Call it.
35072 * stmt.c (parse_output_constraint, parse_input_constraint): Use
35073 the generated insn_extra_constraint_allows_reg_mem function
35074 instead of always setting *allows_reg = true; *allows_mem = true;
35075 for unknown extra constraints.
35077 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35080 * output.h (default_binds_local_p_3): New.
35081 * varasm.c (default_binds_local_p_3): Make it public. Take an
35082 argument to indicate if common symbol may be local. If common
35083 symbol may be local, treat non-external variable as defined
35085 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35086 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35087 * config/i386/i386.c (ix86_binds_local_p): New.
35088 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35089 ix86_binds_local_p.
35091 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35094 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35095 trying mem_loc_descriptor on XEXP (rtl, 0).
35097 2015-04-17 Martin Liska <mliska@suse.cz>
35099 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
35100 Release symbol_compare_collection.
35101 * ipa-reference.c: Add TODO that a vector should be released.
35103 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
35106 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
35107 to new AVR-LibC file layout (bug #44574).
35108 (*avrlibc_devicelib): Same.
35109 * config/avr/avr-mcus.def: Adjust comments.
35110 * config/avr/avr.opt (nodevicelib): Adjust help.
35112 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
35114 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
35116 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
35119 * gimplify.c (gimplify_init_constructor): Always emit a
35120 side-effecting constructor.
35122 2015-04-17 Tom de Vries <tom@codesourcery.com>
35124 PR tree-optimization/64950
35125 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
35126 in cfun->curr_properties.
35127 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
35128 if we generate an IFN_VA_ARG.
35129 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
35130 function if PROP_gimple_lva is not set in src function.
35132 2015-04-17 Tom de Vries <tom@codesourcery.com>
35133 Michael Matz <matz@suse.de>
35135 PR tree-optimization/64950
35136 * gimple-iterator.c (update_modified_stmts): Remove static.
35137 * gimple-iterator.h (update_modified_stmts): Declare.
35138 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
35139 (gimplify_va_arg_internal): New function.
35140 (gimplify_va_arg_expr): Use IFN_VA_ARG.
35141 * gimplify.h (gimplify_va_arg_internal): Declare.
35142 * internal-fn.c (expand_VA_ARG): New unreachable function.
35143 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
35144 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
35145 (expand_ifn_va_arg): New function.
35146 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
35147 (pass_stdarg::execute): Call expand_ifn_va_arg.
35148 (pass_data_lower_vaarg): New pass_data.
35149 (pass_lower_vaarg): New gimple_opt_pass.
35150 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
35151 (make_pass_lower_vaarg): New function.
35152 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
35153 properties_required field.
35154 * passes.def (all_passes): Add pass_lower_vaarg.
35155 * tree-pass.h (PROP_gimple_lva): Add define.
35156 (make_pass_lower_vaarg): Declare.
35158 2015-04-17 Tom de Vries <tom@codesourcery.com>
35160 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
35161 * calls.c (call_expr_flags): Same.
35163 2015-04-17 Tom de Vries <tom@codesourcery.com>
35165 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
35166 (pass_stdarg::execute): ... here.
35168 2015-04-17 Tom de Vries <tom@codesourcery.com>
35169 Michael Matz <matz@suse.de>
35171 * tree-cfg.c (make_blocks_1): Factor out of ...
35172 (make_blocks): ... here.
35173 (make_edges_bb): Factor out of ...
35174 (make_edges): ... here.
35175 (gimple_find_sub_bbs): New function.
35176 * tree-cfg.h (gimple_find_sub_bbs): Declare.
35178 2015-04-17 Tom de Vries <tom@codesourcery.com>
35180 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
35182 2015-04-17 Yury Gribov <y.gribov@samsung.com>
35184 * asan.c (set_sanitized_sections): New function.
35185 (section_sanitized_p): Ditto.
35186 (asan_protect_global): Optionally sanitize user-defined
35188 * asan.h (set_sanitized_sections): Declare new function.
35189 * common.opt (fsanitize-sections): New option.
35190 * doc/invoke.texi (-fsanitize-sections): Document new option.
35191 * opts-global.c (handle_common_deferred_options): Handle new
35194 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35197 * dwarf2out.c (loc_list_from_tree): Return NULL
35198 for DEBUG_EXPR_DECL.
35200 2015-04-17 Christian Bruel <christian.bruel@st.com>
35202 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
35205 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35207 * ira-color.c (setup_left_conflict_sizes_p): Do not process
35208 node itself when computing left conflict subnode size.
35210 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35212 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
35213 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
35214 *fop_<mode>_1_sse using enabled attribute. Use
35215 register_mixssei387nonimm_operand operand 1 predicate. Change
35216 alternative 3 constraints from "x" to "v".
35218 2015-04-16 Richard Biener <rguenther@suse.de>
35220 PR tree-optimization/65774
35221 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
35222 bit-value tracking on.
35224 2015-04-16 Richard Biener <rguenther@suse.de>
35226 PR tree-optimization/64277
35227 * tree-vrp.c (check_array_ref): Fix anti-range handling,
35228 simplify upper bound handling.
35229 (search_for_addr_array): Simplify.
35230 (check_array_bounds): Handle ADDR_EXPRs here.
35231 (check_all_array_refs): Simplify.
35233 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35235 * config/i386/i386.c (print_reg): Rewrite function.
35237 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35239 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
35240 Invert the condition.
35242 2015-04-16 Renlin Li <renlin.li@arm.com>
35244 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
35245 simplifications for UNSIGNED_FLOAT.
35247 2015-04-16 Nick Clifton <nickc@redhat.com>
35249 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
35251 (enum rl78_cpu_type): New.
35252 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
35253 (umulhi3_shift_virt): Remove m constraint from operand 1.
35254 (umulqihi3_virt): Likewise.
35255 * config/rl78/rl78.c (rl78_option_override): Add code to process
35256 -mcpu and -mmul options.
35257 (rl78_alloc_physical_registers): Add code to handle divhi and
35258 divsi valloc attributes.
35259 (set_origin): Likewise.
35260 * config/rl78/rl78.h (RL78_MUL_G14): Define.
35261 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
35262 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
35264 (ASM_SPEC): Pass -mcpu on to assembler.
35265 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
35266 (mulqi3_rl78): Likewise.
35267 (mulhi3_g13): Likewise.
35268 (mulhi3): Generate the G13 or G14 versions of the insn directly.
35269 (mulsi3): Likewise.
35270 (mulhi3_g14): Add clobbers of AX and BC.
35271 (mulsi3_g14): Likewise.
35272 (mulsi3_g13): Likewise.
35273 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
35274 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
35275 * config/rl78/rl78.opt (mmul): Initialise value to
35277 (mcpu): New option.
35278 (m13, m14, mrl78): New option aliases.
35279 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
35280 (MULTILIB_DIRNAMES): Add g13 and g14.
35281 * doc/invoke.texi: Document -mcpu and -mmul options.
35283 2015-04-16 Richard Biener <rguenther@suse.de>
35285 * tree-ssa-ccp.c (likely_value): See if we have operands that
35286 are marked as never simulate again and return CONSTANT in this
35288 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
35289 not have any operands that will be simulated again as
35290 not being simulated again.
35292 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
35294 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
35295 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
35296 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
35298 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
35300 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
35301 *float<SWI48:mode><MODEF:mode>2_sse.
35302 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
35304 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
35307 2015-04-15 Tom de Vries <tom@codesourcery.com>
35310 * function.c (push_dummy_function): New function.
35311 (init_dummy_function_start): Use push_dummy_function.
35312 (pop_dummy_function): New function. Factored out of ...
35313 (expand_dummy_function_end): ... here.
35314 * function.h (push_dummy_function, pop_dummy_function): Declare.
35315 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
35316 pop_dummy_function.
35317 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35319 2015-04-15 Jeff Law <law@redhat.com>
35321 PR tree-optimization/47679
35322 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35323 need for forward declaration in upcoming changes.
35324 (record_conditions, record_edge_info): Likewise.
35326 PR rtl-optimization/42522
35327 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35328 SIGN_EXTRACT as a whole object rather than simplifying
35331 2015-04-15 Jakub Jelinek <jakub@redhat.com>
35334 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35335 and GIMPLE_PREDICT use break instead of return true. For
35336 GIMPLE_EH_DISPATCH, compare dispatch region.
35338 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
35340 * doc/extend.texi (__sync Builtins): Simplify some text. Update
35341 details about the implementation. Make clear preference for
35342 __atomic builtins. Reduce possibility of future change.
35344 2015-04-15 Nick Clifton <nickc@redhat.com>
35346 * config/rx/rx.opt (mallow-string-insns): New option.
35347 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35348 builtin if string instructions are denied.
35349 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35350 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35352 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35353 * config/rx/rx.md (movstr): Enable pattern only if string
35354 instructions are allowed.
35355 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35356 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35357 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35358 (MULTILIB_DIRNAMES): Add no-strings.
35359 * doc/invoke.texi: Document -mno-allow-string-insns.
35361 2015-04-15 Alan Modra <amodra@gmail.com>
35365 PR middle-end/36043
35366 * calls.c (load_register_parameters): Don't load past end of
35367 mem unless suitably aligned.
35369 2015-04-15 Nick Clifton <nickc@redhat.com>
35371 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35372 decrement instruction as being frame related.
35373 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35375 If zero extending a function address enclose the operation in
35377 (rl78_preferred_reload_class): New function.
35378 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35379 * config/rl78/rl78.md: Remove useless constraints in expanders.
35380 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35381 (mulhi3_rl78): Likewise.
35382 (mulhi3_g13): Likewise.
35383 (mulsi3_rl78): Likewise.
35384 (es_addr): Move to before the multiply patterns.
35386 2015-04-15 Alan Modra <amodra@gmail.com>
35388 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35389 and sequence_stack. Add seq.
35390 (seq_stack): Delete.
35391 * function.c (prepare_function_start): Don't access x_last_insn.
35392 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35393 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35394 * emit_rtl.c (start_sequence, push_topmost_sequence,
35395 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35396 sequence accessors.
35397 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35398 remove_insn): Likewise. Simplify.
35399 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35400 and pop_topmost_sequence.
35401 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
35403 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35405 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
35408 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35411 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35413 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35414 (LEGACY_INT_REGNO_P): Ditto.
35415 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35416 (ANY_MASK_REG_P): Remove.
35417 (BND_REG_P): Rename from ANY_BND_REG_P.
35418 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35419 legacy integer registers. Do not handle MMX_REG_P in a special way.
35420 Merge 64byte and 32byte SSE handling.
35422 2015-04-14 Nick Clifton <nickc@redhat.com>
35424 * expr.c (expand_assignment): Force an address offset computation
35425 into a register before changing its mode.
35426 (expand_expr_real_1): Likewise.
35428 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
35430 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35431 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35432 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35433 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35434 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35435 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35436 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35437 and __aarch64_vget_lane_any.
35439 2015-04-14 Jakub Jelinek <jakub@redhat.com>
35441 PR rtl-optimization/65761
35442 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35443 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35445 2015-04-14 Richard Biener <rguenther@suse.de>
35447 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35448 (graphite_can_represent_scev): Use POINTER_TYPE_P.
35450 2015-04-14 Richard Biener <rguenther@suse.de>
35452 PR tree-optimization/65758
35453 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35455 (ccp_lattice_meet): Likewise.
35456 (bit_value_unop): Likewise.
35457 (bit_value_binop): Likewise.
35458 (bit_value_assume_aligned): Likewise.
35460 2015-04-14 Christian Bruel <christian.bruel@st.com>
35462 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35465 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
35467 PR tree-optimization/63387
35468 * match.pd ((x unord x) | (y unord y) -> (x unord y),
35469 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35471 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35473 * config/i386/predicates.md (any_QIreg_operand): Rename from
35474 q_regs_operand. Do not process subregs.
35475 (QIreg_operand): Use QI_REGNO_P predicate.
35476 (ext_QIreg_operand): Ditto.
35477 (ext_register_operand): Ditto.
35478 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35479 (AND splitters): Ditto.
35480 (AND with -65536 splitter): Add SWI48 mode for operand 0.
35481 (AND with -256 splitter): Use any_QIreg_operand predicate and
35482 SWI248 mode for operand 0.
35483 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35484 mode for operand 0.
35485 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35487 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
35489 * doc/plugins.texi: Rewrite first introductory paragraph.
35491 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35493 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35494 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35496 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35498 * ipa-profie.c (ipa_profile): Check number of parameters
35499 and possible polymorphic call targets before
35502 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
35504 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35505 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35507 2015-04-13 Richard Biener <rguenther@suse.de>
35509 PR tree-optimization/65204
35510 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35511 takens for bit-CCP.
35513 2015-04-13 Richard Biener <rguenther@suse.de>
35516 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35517 and cond_not_taken_branch_cost to 4 and 2.
35518 (bdver2_cost): Likewise.
35519 (bdver3_cost): Likewise.
35520 (bdver4_cost): Likewise.
35522 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35524 * hash-table.h (hash_table constructor): Add mem stats.
35525 (alloc_entries): Likewise.
35527 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35529 * ipa-cp.c (ipcp_driver): Relase prev_edge.
35530 * passes.c (execute_one_pass): Only add transform if pass has one.
35532 2015-04-12 Joseph Myers <joseph@codesourcery.com>
35534 * config/i386/i386.c (ix86_option_override_internal): Don't set
35535 -fprefetch-loop-arrays if optimizing for size.
35537 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35538 Gerald Pfeifer <gerald@pfeifer.com>
35540 * doc/contrib.texi (Contributors): Add Martin Jambor and
35543 2015-04-12 Jakub Jelinek <jakub@redhat.com>
35545 * BASE-VER: Set to 6.0.0.
35547 PR tree-optimization/65747
35548 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35549 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35551 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
35553 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35554 sentence. Improve grammar.
35556 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
35558 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35560 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
35563 * ipa-inline-transform.c (speculation_removed): Remove static var.
35564 (check_speculations): New function.
35565 (clone_inlined_nodes): Do not check spculations.
35566 (inline_call): Call check_speculations.
35567 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35568 consider non-invariants.
35570 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
35571 Martin Liska <mliska@suse.cz>
35574 * ipa-icf.c (sem_item::compare_cgraph_references): function and
35575 variable can not match.
35576 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35577 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35579 2015-04-11 Jakub Jelinek <jakub@redhat.com>
35581 PR tree-optimization/65735
35582 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35583 Remove visited_phis argument, add visited_bbs, avoid recursing into the
35584 same bb rather than just into the same phi node.
35585 (thread_through_normal_block): Adjust caller.
35587 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
35589 * doc/contrib.texi (Contributors): Add Ira Rosen.
35591 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
35593 * gcov.c (find_source): Fix miswording in error message.
35594 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35595 (ix86_expand_sse_comi_round): Fix typo in error message.
35597 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
35599 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35601 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
35603 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35605 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
35608 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35609 Print bad_spills_num and insn_pseudos_num.
35611 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35614 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
35615 when creating +1 values for SImode.
35617 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
35620 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
35623 2015-04-10 Jakub Jelinek <jakub@redhat.com>
35624 Iain Sandoe <iain@codesourcery.com>
35627 * configure: Regenerate.
35629 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
35632 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
35634 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
35636 * doc/contrib.texi (Contributors): Add John Marino.
35638 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35640 PR tree-optimization/65709
35641 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
35642 TREE_TYPE (TREE_TYPE (t)).
35644 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
35647 * lra-int.h (lra_bad_spill_regno_start): New.
35648 * lra.c (lra_bad_spill_regno_start): New.
35649 (lra): Set up lra_bad_spill_regno_start. Set up
35650 lra_constraint_new_regno_start unconditionally.
35651 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
35654 2015-04-09 Marek Polacek <polacek@redhat.com>
35655 Jakub Jelinek <jakub@redhat.com>
35657 PR middle-end/65554
35658 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
35659 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
35662 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
35664 PR rtl-optimization/65693
35665 * combine.c (is_parallel_of_n_reg_sets): Move outside of
35668 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
35671 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
35672 device specs file if "device-specs%s" didn't resolve to a path.
35674 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
35677 * config/i386/i386.c (fixup_modeless_constant): New.
35678 (ix86_expand_args_builtin): Fixup modeless constant operand.
35679 (ix86_expand_round_builtin): Ditto.
35680 (ix86_expand_special_args_builtin): Ditto.
35681 (ix86_expand_builtin): Ditto.
35683 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35686 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
35687 any pow2 integer in between 2 and 0x80000000U inclusive.
35689 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
35691 PR rtl-optimization/65693
35692 * combine.c (is_parallel_of_n_reg_sets): Change first argument
35693 from an rtx_insn * to an rtx.
35694 (try_combine): Adjust both callers. Use it once more.
35696 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35698 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
35699 (chkp_make_static_const_bounds): Search existing
35700 symbol by assembler name. Use make_decl_one_only.
35701 (chkp_get_zero_bounds_var): Remove node search which
35702 is now performed in chkp_make_static_const_bounds.
35703 (chkp_get_none_bounds_var): Likewise.
35705 2015-04-08 Michael Witten <mfwitten@gmail.com>
35707 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
35710 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35712 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
35714 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
35716 * doc/extend.texi (__sync Builtins): Fix grammar.
35718 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35720 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
35722 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35724 * varasm.c (emit_local): Move definition of align.
35726 2015-04-08 Julian Brown <julian@codesourcery.com>
35728 * config/nvptx/mkoffload.c (process): Support variable mapping.
35730 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
35732 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
35734 (alpha_write_one_linkage): Correct typo.
35736 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35738 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
35740 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
35742 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
35744 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35746 * tree-chkp.h (chkp_insert_retbnd_call): New.
35747 * tree-chkp.c (chkp_insert_retbnd_call): New.
35748 * ipa-split.c (insert_bndret_call_after): Remove.
35749 (split_function): Use chkp_insert_retbnd_call.
35750 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
35751 bounds for instrumented functions.
35753 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
35756 * calls.c (initialize_argument_information): When producing tail
35757 call also turn SSA_NAMES passed by references to original PARM_DECLs
35759 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
35762 * lra-remat.c (do_remat): Process input and non-input insn
35763 registers separately.
35765 2015-04-07 Jakub Jelinek <jakub@redhat.com>
35768 * valtrack.c (debug_lowpart_subreg): New function.
35769 (dead_debug_insert_temp): Use it.
35771 PR middle-end/65680
35772 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
35773 into signed HOST_WIDE_INT the same as negative bit_offset.
35775 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
35777 * ipa-comdats.c (ipa_comdats): Visit all thunks
35778 to set proper comdat group.
35780 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35783 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
35784 on constants for NEON VSTRUCT modes.
35786 2015-04-07 Jakub Jelinek <jakub@redhat.com>
35787 Iain Sandoe <iain@codesourcery.com>
35790 * configure: Regenerate.
35792 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35795 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
35796 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
35797 that LFD is used to load double constants instead of LFS. Add
35798 defaults for all costs structures. Add comments for missing
35799 initialization fields.
35800 (size32_cost): Likewise.
35801 (size64_cost): Likewise.
35802 (rs64a_cost): Likewise.
35803 (mpccore_cost): Likewise.
35804 (ppc403_cost): Likewise.
35805 (ppc405_cost): Likewise.
35806 (ppc440_cost): Likewise.
35807 (ppc476_cost): Likewise.
35808 (ppc601_cost): Likewise.
35809 (ppc603_cost): Likewise.
35810 (ppc604_cost): Likewise.
35811 (ppc604e_cost): Likewise.
35812 (ppc620_cost): Likewise.
35813 (ppc630_cost): Likewise.
35814 (ppccell_cost): Likewise.
35815 (ppc750_cost): Likewise.
35816 (ppc7450_cost): Likewise.
35817 (ppc8540_cost): Likewise.
35818 (ppce300c2c3_cost): Likewise.
35819 (ppce500mc_cost): Likewise.
35820 (ppce500mc64_cost): Likewise.
35821 (ppce5500_cost): Likewise.
35822 (ppce6500_cost): Likewise.
35823 (titan_cost): Likewise.
35824 (power4_cost): Likewise.
35825 (power6_cost): Likewise.
35826 (power7_cost): Likewise.
35827 (power8_cost): Likewise.
35828 (ppca2_cost): Likewise.
35829 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
35831 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
35832 instead of XXLOR to copy SFmode to clear out dirty bits created
35833 when SFmode denormals are generated.
35834 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
35835 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
35837 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
35839 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
35840 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
35841 * config/aarch64/aarch64-tune.md: Regenerate.
35843 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
35845 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
35846 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
35847 * config/arm/arm-cores.def (exynos-m1): New core.
35848 * config/arm/arm-tune.md: Regenerate.
35849 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
35850 * config/arm/bpabi.h: Likewise.
35852 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
35854 * ipa-cp (set_single_call_flag): Remove too
35855 restrictive assert.
35857 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
35859 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
35860 GOMP_offload_unregister from the destructor.
35862 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
35864 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
35865 flags for instrumentation thunk.
35866 (chkp_produce_thunks): Likewise.
35868 2015-04-05 Martin Liska <mliska@suse.cz>
35871 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
35872 has computed data structure.
35873 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35875 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
35877 * invoke.texi (inline-unit-growth): Increase growth to 20%
35878 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
35880 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
35883 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
35885 (lra_rematerialization_iter): New.
35886 * lra.c (lra): Initialize lra_rematerialization_iter.
35887 Stop updating lra_constraint_new_regno_start after switching of
35888 inheritance and rematerialization.
35889 * lra-remat.c (lra_rematerialization_iter): New.
35890 (lra_remat): Add printing pass iteration. Do rematerialization
35891 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
35893 2015-04-04 Richard Biener <rguenther@suse.de>
35895 PR tree-optimization/64909
35896 PR tree-optimization/65660
35897 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
35898 to take a cost vector for scalar iteration cost.
35899 (vect_get_single_scalar_iteration_cost): Likewise.
35900 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
35901 Compute the scalar iteration cost into a cost vector.
35902 (vect_get_known_peeling_cost): Use the scalar cost vector to
35903 account for the cost of the peeled iterations.
35904 (vect_estimate_min_profitable_iters): Likewise.
35905 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
35908 2015-04-04 Alan Modra <amodra@gmail.com>
35912 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35913 0.0 constant unless TARGET_VSX.
35914 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35917 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35920 * ipa-inline-transform.c (inline_call): Skip sanity check to work
35923 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35926 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35927 speculative indirect edges to avoid ordering issue.
35929 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35932 * ipa-inline.c (edge_badness): Add combined size to the denominator.
35934 2015-04-03 Jakub Jelinek <jakub@redhat.com>
35936 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35937 TYPE_ARTIFICIAL on the .omp_data* types.
35939 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35941 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35942 instrumentation thunks.
35944 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35946 * config/i386/i386.c (ix86_expand_call): Avoid nested
35947 PARALLEL in returned call value.
35949 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35951 * lto-cgraph.c (input_cgraph_1): Always link instrumented
35952 assembler name with original one.
35954 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35956 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35958 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35960 Revert parts of r216820.
35961 * config/i386/i386.md (movqi_internal): Correct type calculation
35962 for alternatives 3 and 5.
35964 2015-04-02 Jakub Jelinek <jakub@redhat.com>
35966 PR preprocessor/61977
35967 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35968 predefine __vector/__bool/__pixel macros nor context sensitive
35969 macros for CLK_ASM.
35970 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35972 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
35974 * config/pa/pa.c (pa_output_move_double): Directly handle register
35975 indexed memory operand. Simplify handling of scaled register indexed
35978 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35981 * config/i386/linux-common.h (MPX_SPEC): New.
35982 (CHKP_SPEC): Add MPX_SPEC.
35983 * doc/invoke.texi (-fcheck-pointer-boudns): Document
35984 possible issues with '-z bndplt' support in linker.
35986 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35988 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35989 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35990 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35991 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35992 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35994 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
35996 * config/i386/sync.md (UNSPEC_MOVA): Remove.
35997 (atomic_load<mode>): Change operand 0 predicate to
35998 nonimmediate_operand and fix up the destination when needed.
36000 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36001 (atomic_store<mode>): Change operand 1 predicate to
36002 nonimmendate_operand and move the source to register when needed.
36004 (atomic_store<mode>_1): Use UNSPEC_STA.
36005 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36006 Fix moves from memory operand. Use UNSPEC_STA.
36008 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36010 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36011 not cross a MODESIZE boundary.
36012 (store_bit_field, extract_bit_field): Added assertions in the
36013 strict volatile bitfields code path.
36015 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36018 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36019 Increase args array size by one to avoid buffer overflow.
36021 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36023 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36025 * ipa-inline.c (edge_badness): Add wrapper penalty.
36026 (sum_callers): Move up.
36027 (inline_small_functions): Set single_caller.
36028 * ipa-inline.h (inline_summary): Add single_caller.
36029 * ipa-split.c (split_function): Set split_part.
36030 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36031 * cgraph.h (cgraph_node): Add split_part.
36033 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
36036 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36037 Do not split operands 0 and operands 2 to halfmode.
36038 (atomic_compare_and_swap<mode>): Update for
36039 atomic_compare_and_swap<dwi>_doubleword changes.
36041 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36043 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36044 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36045 no caching is done.
36047 2015-03-31 Martin Liska <mliska@suse.cz>
36050 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36051 has already filled up function summary.
36052 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36054 2015-03-31 Richard Biener <rguenther@suse.de>
36056 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36059 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
36061 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36063 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36064 (s390_asm_output_function_label): Adapt to new signature of
36065 s390_function_num_hotpatch_hw
36066 Optimise the code generating assembler output.
36067 Add comments to assembler file.
36069 2015-03-31 Richard Biener <rguenther@suse.de>
36071 PR middle-end/65626
36072 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36073 of the noreturn call so it is last and cleanup_control_flow_bb
36074 can do the CFG part.
36076 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
36079 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36080 same_comdat_group for external symbols.
36081 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36082 infinite same_comdat_group traversal loop.
36084 2015-03-31 Jakub Jelinek <jakub@redhat.com>
36087 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36088 automatically to $headers.
36090 2015-03-30 Jakub Jelinek <jakub@redhat.com>
36093 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36094 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
36096 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
36098 * ipa-prop.c (param_type_may_change_p): Likewise.
36099 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
36100 (remove_unused_scope_block_p): Add in_ctor_dtor_block
36101 argument. Before inlining, preserve
36102 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
36103 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
36105 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
36107 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36110 * ipa-inline.c (edge_badness): Base denominator on callee's
36113 2015-03-27 Martin Jambor <mjambor@suse.cz>
36116 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
36117 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
36118 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
36119 node_calling_single_call.
36120 * ipa-cp.c (count_callers): New function.
36121 (set_single_call_flag): Likewise.
36122 (initialize_node_lattices): Count callers and set single_flag_call if
36124 (incorporate_penalties): New function.
36125 (good_cloning_opportunity_p): Use it, dump new flags.
36126 (propagate_constants_topo): Set node_within_scc flag if appropriate.
36127 * doc/invoke.texi (ipa-cp-recursion-penalty,
36128 ipa-cp-single-call-pentalty): Document.
36130 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36133 * symtab.c (symtab_node::get_partitioning_class): Register vars
36135 * varpool.c (symbol_table::output_variables) Do not assemble unefined
36136 decls for non-symbols.
36138 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
36141 * output.h (default_binds_local_p_2): New.
36142 * varasm.c (default_binds_local_p_2): Renamed to ...
36143 (default_binds_local_p_3): This. Don't return true on protected
36144 data symbol if protected data may be external.
36145 (default_binds_local_p): Use default_binds_local_p_3.
36146 (default_binds_local_p_1): Likewise.
36147 (default_binds_local_p_2): New.
36148 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
36149 default_binds_local_p_2 if TARGET_MACHO is undefined.
36151 2015-03-27 Jakub Jelinek <jakub@redhat.com>
36154 * config/i386/i386.c (legitimize_pic_address): If base
36155 is SYMBOL_REF or LABEL_REF using %rip addressing, force
36156 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
36158 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36161 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
36164 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36167 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
36168 of optimized out indirect call.
36169 (redirect_to_unreachable): Always build symbol table node for
36170 BUILT_IN_UNREACHABLE
36172 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
36175 * ira-costs.c (record_reg_classes): Process all constraint string
36178 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
36180 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
36184 * config/c6x/constraints.md (S3): New constraint.
36185 * config/c6x/c6x.md (real_jump): Use it.
36187 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36189 PR middle-end/65595
36190 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
36191 do redirection if the call is not optimized out.
36193 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
36196 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
36197 (fchkp-check-incomplete-type): Add LTO.
36198 (fchkp-zero-input-bounds-for-main): Likewise.
36199 (fchkp-first-field-has-own-bounds): Likewise.
36200 (fchkp-narrow-bounds): Likewise.
36201 (fchkp-narrow-to-innermost-array): Likewise.
36202 (fchkp-use-static-bounds): Likewise.
36203 (fchkp-use-static-const-bounds): Likewise.
36204 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36206 2015-03-27 Marek Polacek <polacek@redhat.com>
36208 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
36210 2015-03-27 Marek Polacek <polacek@redhat.com>
36213 * ubsan.c (ubsan_create_edge): New function.
36214 (instrument_bool_enum_load): Call it.
36215 (instrument_nonnull_arg): Likewise.
36216 (instrument_nonnull_return): Likewise.
36217 (instrument_object_size): Likewise.
36219 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36221 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
36224 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36227 * lto-streamer.h (class lto_location_cache): New.
36228 (struct data_in): Add location_cache.
36229 (lto_input_location): Update prototype.
36230 (stream_input_location_now): New.
36231 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
36232 pointer to location.
36233 (stream_input_location): Update.
36234 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
36235 (warn_odr): Apply location cache before warning.
36236 (lto_input_location): Update prototype.
36237 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
36238 Use stream_input_location_now.
36239 * lto-streamer-in.c (lto_location_cache::current_cache): New static
36241 (lto_location_cache::cmp_loc): New function.
36242 (lto_location_cache::apply_location_cache): New function.
36243 (lto_location_cache::accept_location_cache): New function.
36244 (lto_location_cache::revert_location_cache): New function.
36245 (lto_location_cache::input_location): New function.
36246 (lto_input_location): Do location caching.
36247 (stream_input_location_now): New function.
36248 (input_eh_region, input_struct_function_base): Use
36249 stream_input_location_now.
36250 (lto_data_in_create): use new.
36251 (lto_data_in_delete): Use delete.
36252 * tree-streamer-in.c (unpack_ts_block_value_fields,
36253 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
36254 lto_input_ts_exp_tree_pointers): Update for cached location api.
36256 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36259 * passes.def: Add pass_nothrow.
36260 * ipa-pure-const.c: (pass_data_nothrow): New.
36261 (pass_nothrow): New.
36262 (pass_nothrow::execute): New.
36263 (make_pass_nothrow): New.
36264 * tree-pass.h (make_pass_nothrow): Declare.
36266 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36268 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
36269 edge to change by speculation resolution or redirection.
36270 (edge_set_predicate): Likewise.
36271 (inline_summary_t::duplicate): Likewise.
36272 (remap_edge_summaries): Likewise.
36274 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36276 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
36278 (can_inline_edge_p): Relax option matching for always inline functions.
36280 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
36283 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
36284 Check operand 4 and operand 0 for equality.
36285 (avx512f_vextract<shuffletype>32x4_1_maskm):
36286 Check operand 6 and operand 0 for equality.
36287 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
36289 (vec_extract_hi_<mode>_maskm): Ditto.
36291 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36293 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
36294 dead calls back to live.
36295 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
36297 (cgraph_node::verify_node): ... here; verify only callee edges,
36299 * cif-code.def (CILK_SPAWN): New code.
36301 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36303 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
36304 (edge_set_predicate): Use it to mark unreachable edges.
36305 (inline_summary_t::duplicate): Remove unnecesary code.
36306 (remap_edge_summaries): Likewise.
36307 (dump_inline_summary): Report contains_cilk_spawn.
36308 (compute_inline_parameters): Compute contains_cilk_spawn.
36309 (inline_read_section, inline_write_summary): Stream
36310 contains_cilk_spawn.
36311 * ipa-inline.c (can_inline_edge_p): Do not touch
36312 DECL_STRUCT_FUNCTION that may not be available;
36313 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
36314 remove check for callee_fun->can_throw_non_call_exceptions and
36315 replace it by optimization attribute check; check for flag_exceptions.
36316 * ipa-inline-transform.c (inline_call): Maintain
36317 DECL_FUNCTION_PERSONALITY
36318 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36320 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36322 PR tree-optimization/65551
36323 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36324 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36326 2015-03-26 Richard Biener <rguenther@suse.de>
36328 PR middle-end/65555
36329 * tree-cfg.c (verify_gimple_call): Do not require a call to
36330 have no LHS if it wasn't recognized as control altering yet.
36332 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36334 PR tree-optimization/64715
36335 * passes.def: Add another instance of pass_object_sizes before ccp1.
36336 * tree-object-size.c (pass_object_sizes::execute): In
36337 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36338 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36339 __bos result and the computed constant. Remove redundant
36340 checks, obsoleted by gimple_call_builtin_p test.
36342 * var-tracking.c (variable_tracking_main_1): Don't track
36343 variables for targetm.no_register_allocation targets.
36345 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
36347 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36348 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36350 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
36353 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36354 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
36355 0.0 is correctly setup.
36356 (extenddftf2_internal): Likewise.
36358 2015-03-25 Sebastian Pop <s.pop@samsung.com>
36360 PR tree-optimization/65177
36361 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36363 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
36364 edges not adjacent on the path to the original code.
36366 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
36369 * doc/install.texi (Building a native compiler): Document new
36370 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
36371 configuration assumes that the host supports the linker plugin.
36373 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
36376 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36377 chain for generated call.
36379 2015-03-25 Richard Biener <rguenther@suse.de>
36381 * passes.c (pass_manager::execute_early_local_passes): Guard
36382 execution of pass_chkp_instrumentation_passes with
36383 flag_check_pointer_bounds.
36384 (pass_chkp_instrumentation_passes::gate): Likewise.
36386 2015-03-25 Martin Liska <mliska@suse.cz>
36388 PR tree-optimization/65538
36389 * symbol-summary.h (function_summary::~function_summary):
36390 Relese memory for allocated summaries.
36391 (function_summary::release): New function.
36393 2015-03-25 Jakub Jelinek <jakub@redhat.com>
36396 * lto-streamer-out.c (DFS::worklist): New struct.
36397 (DFS::worklist_vec): New data member.
36398 (DFS::next_dfs_num): Remove.
36399 (DFS::DFS): Rewritten using worklist instead of recursion,
36400 using most of code from DFS::DFS_write_tree.
36401 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36402 pass it to DFS_write_tree calls.
36403 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36404 quick initial checks push it into worklist_vec and return.
36406 2015-03-25 Richard Biener <rguenther@suse.de>
36408 PR middle-end/65519
36409 * genmatch.c (expr::gen_transform): Re-write to avoid
36410 using gimple_build.
36412 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36414 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36416 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36418 * config/arm/arm.opt (print_tune_info): New option.
36419 * config/arm/arm.c (arm_print_tune_info): New function.
36420 (arm_file_start): Call arm_print_tune_info.
36421 * config/arm/arm-protos.h (struct tune_params): Add comment.
36422 * doc/invoke.texi (@item -mprint-tune-info): New item.
36423 (-mtune): mention it in ARM Option Summary.
36425 2015-03-25 DJ Delorie <dj@redhat.com>
36427 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36430 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
36431 Martin Liska <mliska@suse.cz>
36433 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36434 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36435 (sem_item::add_type): New function.
36436 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36437 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36438 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36439 (sem_function::equals_wpa): Fix typo.
36440 * ipa-icf.h (sem_item::add_type): New function.
36441 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36444 2015-03-24 Jakub Jelinek <jakub@redhat.com>
36446 PR tree-optimization/65533
36447 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36448 with swapped operands, call vect_free_slp_tree on
36449 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36452 2015-03-24 Richard Biener <rguenther@suse.de>
36454 PR middle-end/65517
36455 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36456 for fixup if necessary.
36458 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
36460 * doc/extend.texi (Function Attributes): Add @cindex entries
36461 for all attributes and regularize their format. Delete text
36462 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
36463 information about "eightbit_data", "tiny_data", and "model"
36464 variable attributes to the Variable Attributes section. Fix
36465 some obvious typos and copy-editing issues.
36466 (Variable Attributes, Type Attributes): Likewise add/fix
36467 @cindex entries for all attributes.
36469 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36472 * tree-chkp.c (chkp_build_returned_bound): Ignore
36473 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36475 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
36478 * config/sh/predicates.md (simple_mem_operand,
36479 displacement_mem_operand): Add test for reg.
36480 (short_displacement_mem_operand): Test for displacement_mem_operand
36481 before invoking sh_disp_addr_displacement.
36482 * config/sh/constraints.md (Sdd, Sra): Simplify.
36483 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36484 Remove redundant displacement_mem_operand tests.
36486 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
36489 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36490 the same -mmcu=MCU more than once.
36492 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36495 * ipa-devirt.c: Remove duplicate demangle.h include.
36498 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36500 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36501 REG_POINTER on *destptr after adjusting it for prologue size.
36504 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36505 ultimate_alias_target ()->order ints instead of
36506 ultimate_alias_target () pointers.
36508 2015-03-23 Richard Biener <rguenther@suse.de>
36510 PR tree-optimization/65518
36511 * tree-vect-stmts.c (vectorizable_load): Reject single-element
36512 interleaving cases we generate absymal code for.
36514 2015-03-23 Richard Biener <rguenther@suse.de>
36516 PR tree-optimization/65494
36517 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36519 (vect_analyze_slp_instance): But do that here, always and once.
36521 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36523 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36524 adding T or multiplying by T+1 and subracting T.
36526 2015-03-22 Jeff Law <law@redhat.com>
36528 PR rtl-optimization/64317
36529 * Makefile.in (OBJS): Add gcse-common.c
36530 * gcse.c: Include gcse-common.h
36531 (struct modify_pair_s): Move structure definition to gcse-common.h
36532 (compute_transp): Move function to gcse-common.c.
36533 (canon_list_insert): Similarly.
36534 (record_last_mem_set_info): Break out some code and put it into
36535 gcse-common.c. Call into the new common code.
36536 (compute_local_properties): Pass additional arguments to compute_transp.
36537 * postreload-gcse.c: Include gcse-common.h and df.h
36538 (modify_mem_list_set, blocks_with_calls): New variables.
36539 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36540 (get_bb_avail_insn): Pass in the expression index too.
36541 (alloc_mem): Allocate memory for the new bitmaps and lists.
36542 (free_mem): Free memory for the new bitmaps and lists.
36543 (insert_expr_in_table): Record a bitmap index for each entry we
36545 (record_last_mem_set_info): Call into common code in gcse-common.c.
36546 (get_bb_avail_insn): If no available insn was found in the requested
36547 BB. If BB has a single predecessor, see if the expression is
36548 transparent in BB and available in that single predecessor.
36549 (compute_expr_transp): New wrapper for compute_transp.
36550 (eliminate_partially_redundant_load): Pass expression's bitmap_index
36551 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
36552 (gcse_after_reload_main): If there are elements in the hash table,
36553 then compute transparency for all the elements in the hash table.
36554 * gcse-common.h: New file.
36555 * gcse-common.c: New file.
36557 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
36559 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36561 (System Headers): Likewise.
36563 (Traditional macros): Likewise.
36564 (Invocation): Likewise.
36565 (Option Index): Likewise.
36566 * doc/cppopts.texi (-M): Likewise.
36567 (-finput-charset): Likewise.
36568 (--help): Likewise.
36569 * doc.invoke.texi (AVR Options): Likewise.
36570 (V850 Options): Likewise.
36572 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
36575 * ipa-devirt.c: Include demangle.h
36576 (odr_type_d): Add field rtti_broken.
36577 (odr_subtypes_equivalent_p): Do not require name to match.
36578 (compare_virtual_tables): Fix typo; if type already has ODR violation,
36579 bypass the tests; be ready for function referneces in vtables that are
36580 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36581 (warn_odr): Give up for nameless types.
36582 (warn_types_mismatch): Report mismatch in mangled names;
36583 report mismatch in anonymous namespaces; look into component types to
36584 give useful error; report when mismatch is dragged in from other ODR
36586 (odr_types_equivalent_p): Match types for being polymorphic; avoid
36587 duplicated diagnostics.
36588 (add_type_duplicate): Reorder checks so more informative ones come
36589 first; fix typo; do not output "the extra base is defined here" when
36591 (BINFO_N_BASE_BINFOS): Relax sanity check.
36593 2015-03-22 Martin Liska <mliska@suse.cz>
36594 Jakub Jelinek <jakub@redhat.com>
36596 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36597 masks that can potentially include a builtin.
36598 (ix86_add_new_builtins): Introduce fast filter for isa values
36599 that cannot trigger builtin inclusion.
36601 2015-03-22 Martin Liska <mliska@suse.cz>
36603 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36604 (sem_item::update_hash_by_local_refs): Likewise.
36605 (sem_variable::get_hash): Empty line is fixed.
36606 (sem_item_optimizer::execute): Include adding of hash references.
36607 (sem_item_optimizer::update_hash_by_addr_refs): New function.
36608 (sem_item_optimizer::build_hash_based_classes): Use local hash.
36609 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36610 (sem_item::update_hash_by_local_refs): Likewise.
36612 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36615 * ipa-comdats.c (enqueue_references): Walk through thunks.
36616 (ipa_comdats): Likewise.
36617 (set_comdat_group_1): New function.
36619 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36622 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
36625 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
36626 Gerald Pfeifer <gerald@pfeifer.com>
36628 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
36630 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
36631 Sandra Loosemore <sandra@codesourcery.com>
36633 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
36634 function parameter declaration.
36635 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
36636 Update arguments to nios2_adjust_call_address().
36637 (sibcall_internal): Rename from *sibcall.
36638 (sibcall_value_internal): Rename from *sibcall_value.
36639 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
36640 (nios2_large_got_address): Add target temp reg parameter.
36641 (nios2_got_address): Adjust call to nios2_large_got_address, add
36642 force_reg around it.
36643 (nios2_load_pic_address): Add target temp reg parameter, replace call
36644 to nios2_got_address with corresponding code.
36645 (nios2_legitimize_constant_address): Update call to
36646 nios2_load_pic_address.
36647 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
36648 to use temp reg for PIC loading purposes.
36649 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
36650 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36651 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
36653 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36655 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
36656 usage of "the @option{...}".
36657 (-Wopenmp-simd): Likewise.
36658 (-fsanitize-recover): Likewise.
36659 (-fsanitize-undefined-trap-on-error): Likewise.
36661 (tracer-dynamic-coverage-feedback): Likewise.
36662 (reorder-block-duplicate-feedback): Likewise.
36663 (loop-unroll-jam-size): Likewise.
36666 (-mabs=legacy): Likewise.
36667 (-mupper-regs-df): Likewise.
36668 (-mupper-regs-sf): Likewise.
36669 (-mpointers-to-nested-functions): Likewise.
36671 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36673 * doc/extend.texi (Cilk Plus Builtins): Add markup.
36675 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36677 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
36678 additional index entries and cross-references.
36679 (-fchkp-check-incomplete-type): Likewise.
36680 (-fchkp-first-field-has-own-bounds): Likewise.
36681 (-fchkp-narrow-to-innermost-array): Likewise.
36682 (-fchkp-use-fast-string-functions): Likewise.
36683 (-fchkp-use-nochk-string-functions): Likewise.
36684 (-fchkp-use-static-const-bounds): Likewise.
36685 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36686 (-fchkp-instrument-marked-only): Likewise.
36687 (-fchkp-use-wrappers): Likewise.
36688 (-static-libmpx): Likewise.
36689 (-static-libmpxwrappers): Likewise.
36690 * doc/extend.texi (bnd_legacy): Likewise.
36691 (bnd_instrument): Likewise.
36692 (bnd_variable_size): Likewise.
36693 (Pointer Bounds Checker builtins): Likewise.
36695 2015-03-21 Tom de Vries <tom@codesourcery.com>
36697 PR tree-optimization/65458
36698 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
36699 * cgraph.h (cgraph_node): Add parallelized_function field.
36700 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
36701 (input_overwrite_node): Read parallelized_function field.
36702 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
36703 parallelized_function on cgraph_node for child_fn.
36704 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
36705 Remove include of gt-tree-parloops.h.
36706 (parallelized_functions): Remove static variable.
36707 (parallelized_function_p): Rewrite using parallelized_function field of
36709 (create_loop_fn): Remove adding to parallelized_functions.
36710 * Makefile.in (GTFILES): Remove tree-parloops.c
36712 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
36714 PR rtl-optimization/64366
36715 * lra.c (lra_update_insn_regno_info): Consider regs in
36716 CALL_INSN_FUNCTION_USAGE memory.
36718 2015-03-20 Richard Biener <rguenther@suse.de>
36720 PR middle-end/64715
36721 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
36722 for type comparison and gcc_checking_assert.
36723 (chrec_fold_plus_poly_poly): Likewise.
36724 (chrec_fold_multiply_poly_poly): Likewise.
36725 (chrec_convert_1): Likewise.
36726 * gimplify.c (gimplify_expr): Remove premature folding of
36727 &X + CST to &MEM[&X, CST].
36729 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36731 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
36733 (ipa_inline): Recompute inline_failed codes.
36734 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
36735 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
36738 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
36740 PR rtl-optimization/60851
36741 * recog.c (constrain_operands): Accept a pseudo register before reload
36742 for LRA enabled targets.
36744 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
36747 * config/rs6000/predicates.md (easy_fp_constant): Remove special
36748 -ffast-math handling that kept non-0 constants live in the RTL
36749 until reload. Remove logic testing the number of instructions it
36750 took to create a constant in a GPR that was never used, due to a
36751 test for soft-float earlier.
36752 (memory_fp_constant): Delete, no longer used.
36754 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
36755 alternatives for loading non-0 constants into GPRs for hard
36756 floating point that is no longer needed due to changes in
36757 easy_fp_constant. Add support for loading 0.0 into GPRs.
36758 (mov<mode>_hardfloat32): Likewise.
36759 (mov<mode>_hardfloat64): Likewise.
36760 (mov<mode>_64bit_dm): Likewise.
36761 (movtd_64bit_nodm): Likewise.
36762 (pre-reload move FP constant define_split): Delete define_split,
36763 since it is no longer used.
36764 (extenddftf2_internal): Remove GHF constraints that are not valid
36767 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
36769 PR rtl-optimization/63491
36770 * lra-constraints.c (check_and_process_move): Use src instead of
36771 sreg. Remove some dead code.
36773 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
36776 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
36777 (sem_variable::merge): Likewise.
36779 2015-03-19 Martin Liska <mliska@suse.cz>
36782 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
36783 all fields of cgraph_thunk_info.
36785 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
36787 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
36788 clone instrumented thunks.
36790 2015-03-19 Richard Biener <rguenther@suse.de>
36793 2015-03-10 Richard Biener <rguenther@suse.de>
36795 PR middle-end/63155
36796 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36797 * tree-ssa-coalesce.c: Include timevar.h.
36798 (attempt_coalesce): Handle graph being NULL.
36799 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36800 Split out abnormal coalescing to ...
36801 (perform_abnormal_coalescing): ... this function.
36802 (coalesce_ssa_name): Perform abnormal coalescing without computing
36804 (verify_ssa_coalescing_worker): New function.
36805 (verify_ssa_coalescing): Likewise.
36807 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
36808 Jakub Jelinek <jakub@redhat.com>
36811 * tsan.c (instrument_gimple): Clear tail call flag on
36814 2015-03-19 Jakub Jelinek <jakub@redhat.com>
36817 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
36818 call in the return bb.
36819 (find_split_points): Add RETURN_BB argument, don't call
36821 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
36822 if true append TSAN_FUNC_EXIT internal call after the call to
36823 the split off function.
36824 (execute_split_functions): Call find_return_bb here.
36825 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
36826 Adjust find_split_points and split_function calls.
36828 2015-03-18 DJ Delorie <dj@redhat.com>
36830 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
36831 (iorqi3_virt): Likewise.
36833 2015-03-18 Tom de Vries <tom@codesourcery.com>
36835 * tree-parloops.c (parallelize_loops): Make static.
36836 * tree-parloops.h (parallelize_loops): Remove extern declaration.
36838 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
36840 PR middle-end/64491
36842 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
36844 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
36845 condition would be removed due to undefined behaviour.
36847 2015-03-18 Martin Liska <mliska@suse.cz>
36850 * cgraph.c (cgraph_node::get_create): Remove unnecessary
36851 xstrdup_for_dump wrapper.
36852 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
36854 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
36855 with xstrdup_for_dump.
36856 (sem_variable::equals): Likewise.
36857 (sem_item_optimizer::read_section): Use symtab_node::name instead of
36859 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
36860 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
36861 symtab_node::asm_name with xstrdup_for_dump.
36862 (congruence_class::dump): Use symtab_node::name instead of
36864 * ipa-icf.h (symtab_node::name): Remove.
36865 (symtab_node::asm_name): Likewise.
36867 2015-03-18 Jakub Jelinek <jakub@redhat.com>
36869 PR tree-optimization/65450
36870 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
36872 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
36873 it instead of duplicate_ssa_name_ptr_info.
36876 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
36878 2015-03-18 Richard Biener <rguenther@suse.de>
36880 * tree-data-ref.h (struct access_matrix): Remove.
36881 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
36882 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
36883 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
36884 (am_vector_index_for_loop): Likewise.
36885 (struct data_reference): Remove access_matrix member.
36886 (DR_ACCESS_MATRIX): Remove.
36887 (lambda_vector_new): Add comment.
36888 (lambda_matrix_new): Use XOBNEWVEC.
36890 2015-03-18 Richard Biener <rguenther@suse.de>
36892 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
36893 (pass_ch::execute): Cleanup the CFG only if we did sth.
36894 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
36896 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36898 * expmed.c (synth_mult): Use std::swap instead of manually
36899 swapping algorithms.
36901 2015-03-18 Jakub Jelinek <jakub@redhat.com>
36904 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
36906 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
36909 * config/avr/avr.opt (-nodevicelib): New option.
36910 * doc/invoke.texi (AVR Options): Document it.
36911 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36912 libgcc.a, libc.a, libm.a.
36913 * config/avr/specs.h: Same.
36914 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36915 which don't (directly) depend on the device. Print more help.
36916 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36917 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36918 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36920 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36921 for specs file name.
36922 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36923 * config/avr/avr-mcus.def: Adjust initializers and comments.
36925 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
36927 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36928 DECL_ONE_ONLY to check if decl is one only.
36929 * ipa-split.c (consider_split): Limit splitt of one only functions.
36931 2015-03-16 Jakub Jelinek <jakub@redhat.com>
36933 PR tree-optimization/65427
36934 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36936 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36938 2015-03-16 Marek Polacek <polacek@redhat.com>
36940 * cgraph.h (add_new_static_var): Remove declaration.
36941 * varpool.c (add_new_static_var): Remove function.
36943 2015-03-16 Jakub Jelinek <jakub@redhat.com>
36945 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36946 instead of vec<tree> * with vec_alloc and release for args.
36949 PR middle-end/65431
36950 * omp-low.c (delete_omp_context): Only splay_tree_delete
36951 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36952 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
36954 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
36957 * cfgexpand.c (align_base): New function.
36958 (alloc_stack_frame_space): Call it.
36959 (expand_stack_vars): Align prev_frame to be sure
36960 data->asan_vec elements aligned properly.
36962 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
36964 PR middle-end/65409
36965 * expr.c (store_field): Do not do a direct block copy if the source is
36966 a PARALLEL with BLKmode.
36968 2015-03-16 Tom de Vries <tom@codesourcery.com>
36970 PR middle-end/65414
36972 2015-03-12 Tom de Vries <tom@codesourcery.com>
36974 PR rtl-optimization/64895
36975 * lra-lives.c (check_pseudos_live_through_calls): Use
36976 actual_call_used_reg_set instead of call_used_reg_set, if available.
36978 2015-03-16 Alan Modra <amodra@gmail.com>
36981 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36982 Modify Z->r bswapdi splitter to use dest in place of scratch.
36983 In r->Z and Z->r bswapdi splitter rename word_high, word_low
36984 to word1, word2 and rearrange logic to suit.
36985 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36986 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
36987 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36988 Add one '?' on r->r. Modify Z->r splitter to avoid need for
36991 2015-03-14 Jakub Jelinek <jakub@redhat.com>
36993 PR tree-optimization/65369
36994 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36995 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36996 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36998 PR tree-optimization/65418
36999 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37000 are casts in the first PLUS_EXPR operand, ensure tbias and
37001 *totallowp are in the inner type.
37003 PR rtl-optimization/65401
37004 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37005 argument. If true, adjust_address_nv of x with big-endian
37006 correction for the mode widening to GET_MODE (y).
37007 (make_field_assignment): Don't do MEM mode widening here.
37008 Use MEM_P instead of GET_CODE == MEM.
37010 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37012 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37013 the external decls.
37015 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37018 * config/arm/arm.c (arm_gen_constant, AND case): Use
37019 ARM_SIGN_EXTEND when constructing AND mask.
37021 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37023 * graph.c (print_graph_cfg): Make function names visible and append
37024 parenthesis to it. Also make groups of basic blocks belonging to the
37025 same function visible.
37027 2015-03-12 Richard Biener <rguenther@suse.de>
37029 PR middle-end/44563
37030 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37031 to avoid quadratic behavior with inline expansion splitting blocks.
37032 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37033 with the successor if the predecessor will be merged with it.
37034 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37035 entry block with its successor.
37037 2015-03-13 Richard Biener <rguenther@suse.de>
37039 PR middle-end/44563
37040 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37041 (cleanup_tree_cfg_1): Do not call it.
37042 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37043 (fixup_noreturn_call): Mark the stmt as control altering.
37044 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37046 (pass_data_fixup_cfg): Produce a dump file.
37047 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37048 (need_noreturn_fixup): New global.
37049 (pass_dominator::execute): Fixup queued noreturn calls.
37050 (optimize_stmt): Queue calls that became noreturn for fixup.
37051 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37052 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37053 (el_to_fixup): New global.
37054 (eliminate_dom_walker::before_dom_childre): Queue calls that
37055 became noreturn for fixup.
37056 (eliminate): Fixup queued noreturn calls.
37057 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37058 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37059 (substitute_and_fold_dom_walker::before_dom_children): Queue
37060 alls that became noreturn for fixup.
37061 (substitute_and_fold): Fixup queued noreturn calls.
37063 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
37065 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37066 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37067 are building; for methods check ODR type of class they belong to if
37068 they may lead to a polymorphic call.
37069 (sem_function::compare_polymorphic_p): Be bit smarter about testing
37070 when function may lead to a polymorphic call.
37071 (sem_function::compare_type_list): Remove.
37072 (sem_variable::equals): Update use of compatible_types_p.
37073 (sem_variable::parse_tree_refs): Remove.
37074 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37076 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37078 (func_checker::compatible_polymorphic_types_p): Break out from ...
37079 (unc_checker::compatible_types_p): ... here.
37080 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37082 (unc_checker::compatible_types_p): Update.
37083 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37086 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37088 PR rtl-optimization/65235
37089 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37090 When first element of vec_concat is const_int, calculate its size
37091 using second element.
37093 2015-03-12 Richard Biener <rguenther@suse.de>
37095 PR middle-end/65270
37096 * fold-const.c (operand_equal_p): Fix ordering of resetting
37097 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
37099 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
37101 * config/s390/s390.c (s390_reorg): Move code to output nops after label
37103 (s390_asm_output_function_label): Likewise.
37104 * config/s390/s390.c (s390_asm_output_function_label):
37105 Fix function label alignment with -mhtopatch.
37106 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
37107 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
37108 ("nop_2_byte"): New define_insn.
37109 ("nop_4_byte"): Likewise.
37110 ("nop_6_byte"): Likewise.
37111 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
37112 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
37114 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37117 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
37120 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37123 * toplev.c (process_options): Restrict Pointer Bounds Checker
37124 usage with Address Sanitizer.
37126 2015-03-12 Richard Biener <rguenther@suse.de>
37128 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
37130 * omp-low.c (expand_omp_taskreg): Split block before removing
37132 (expand_omp_target): Likewise.
37133 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
37134 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
37135 stmt to split_block.
37137 2015-03-12 Tom de Vries <tom@codesourcery.com>
37139 PR rtl-optimization/64895
37140 * lra-lives.c (check_pseudos_live_through_calls): Use
37141 actual_call_used_reg_set instead of call_used_reg_set, if available.
37143 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37145 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
37146 (cgraph_node::remove): Likewise.
37147 (cgraph_node::get_untransformed_body): Likewise.
37148 * varpool.c (varpool_node::remove): Likewise.
37149 (varpool_node::get_constructor): Add sanity check.
37151 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
37153 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
37155 (-fabi-compat-version): Likewise.
37156 (-ffriend-injection): Likewise.
37157 (-Wdeclaration-after-statement): Likewise.
37158 (-fomit-frame-pointer): Likewise.
37159 (-ftree-coalesce-inlined-vars): Likewise.
37160 (-fvisibility=): Likewise.
37161 * doc/extend.texi (Typeof): Likewise.
37162 (Zero Length): Likewise.
37163 (Escaped Newlines): Likewise.
37164 (Compound Literals): Likewise.
37165 (Function Attributes): Likewise.
37166 (Label Attributes): Likewise.
37167 (Type Attributes): Likewise.
37168 (Function Names): Likewise.
37169 (Other Builtins): Likewise.
37170 (Function Specific Option Pragmas): Likewise.
37171 (C++ Interface): Likewise.
37173 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
37175 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
37177 2015-03-11 Marek Polacek <polacek@redhat.com>
37179 PR tree-optimization/65388
37180 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
37182 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37185 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
37186 * configure: Regenerate.
37187 * config.in: Regenerate.
37188 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
37189 [-mn-flash]: Document it.
37190 [__AVR_ARCH__]: Document avrtiny.
37192 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
37193 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
37194 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
37196 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37198 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
37200 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37203 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
37204 allow reloads of PLUS in floating point/VSX registers.
37206 2015-03-11 Junmo Park <junmoz.park@samsung.com>
37208 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
37209 crypto_sha256_fast.
37210 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
37212 2015-03-11 Richard Biener <rguenther@suse.de>
37214 PR tree-optimization/65310
37215 * tree-sra.c (build_ref_for_offset): Also preserve larger
37218 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
37220 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
37222 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37225 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
37227 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
37229 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37231 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
37232 (sem_function::equals_wpa): ... here.
37234 2015-03-10 Marek Polacek <polacek@redhat.com>
37235 Jakub Jelinek <jakub@redhat.com>
37238 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
37239 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
37242 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37245 * config/rs6000/t-linux: For powerpc64* target set
37246 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
37248 2015-03-10 Richard Biener <rguenther@suse.de>
37250 PR middle-end/44563
37251 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
37252 for redirect_all_calls.
37254 2015-03-10 Marek Polacek <polacek@redhat.com>
37256 * gdbinit.in (pcfun): Define and document.
37258 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
37260 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
37261 of libgomp-plugin.h.
37262 (find_target_compiler): Support a case when the path to gcc is
37263 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
37264 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
37265 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
37267 (main): Use GCC_INSTALL_NAME as target_driver_name.
37268 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
37270 (mkoffload.o): Remove obsolete include path and defines.
37271 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
37273 2015-03-10 Richard Biener <rguenther@suse.de>
37275 PR middle-end/63155
37276 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37277 * tree-ssa-coalesce.c: Include timevar.h.
37278 (attempt_coalesce): Handle graph being NULL.
37279 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37280 Split out abnormal coalescing to ...
37281 (perform_abnormal_coalescing): ... this function.
37282 (coalesce_ssa_name): Perform abnormal coalescing without computing
37284 (verify_ssa_coalescing_worker): New function.
37285 (verify_ssa_coalescing): Likewise.
37287 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37290 * config.gcc (extra_options) [avr]: Remove.
37291 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
37292 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
37293 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
37295 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
37296 (-mmcu=): Add Var and MissingArgError properties.
37298 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
37299 * config/avr/t-multilib: Regenerate.
37300 * config/avr/specs.h: New file.
37301 * config/avr/driver-avr.c: New file.
37302 * config/avr/genopt.sh: Remove file.
37303 * config/avr/avr-tables.opt: Remove file.
37304 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
37305 * config/avr/avr-c.c: Same.
37306 * avr-arch.h: Same.
37307 (avr_current_device): Remove proto.
37308 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
37309 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
37310 (EXTRA_SPEC_FUNCTIONS): Define.
37311 (avr_devicespecs_file): New specs function proto.
37312 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
37313 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
37314 (avr_current_device): Remove definition and usage.
37315 (avr_set_core_architecture): New static function.
37316 (avr_option_override): Use it.
37317 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37318 (mcu_name): New static array.
37319 (comparator, avr_archs_str, avr_mcus_str): New static functions.
37320 (avr_inform_devices, avr_inform_core_architectures): New functions.
37321 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37322 (avrlibc.h) [WITH_AVRLIBC]: Include.
37323 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37324 (print_mcu): Rewrite from scratch.
37325 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37326 Forward to avr-specific specs defined in device-specs file.
37327 * config/avr/t-avr (driver-avr.o): New rule.
37328 (avr-devices.o): Depend on avr-arch.h.
37329 (avr-mcus): No more depend on avr-tables.opt.
37330 (avr-tables.opt): Remove rule.
37331 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37333 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37335 * c-family/c.opt (fchkp-use-wrappers): New.
37336 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37337 (chkp_wrap_function): New.
37338 (chkp_build_instrumented_fndecl): Support wrapped
37340 * doc/invoke.texi (-fcheck-pointer-bounds): New.
37341 (-fchkp-check-incomplete-type): New.
37342 (-fchkp-first-field-has-own-bounds): New.
37343 (-fchkp-narrow-bounds): New.
37344 (-fchkp-narrow-to-innermost-array): New.
37345 (-fchkp-optimize): New.
37346 (-fchkp-use-fast-string-functions): New.
37347 (-fchkp-use-nochk-string-functions): New.
37348 (-fchkp-use-static-bounds): New.
37349 (-fchkp-use-static-const-bounds): New.
37350 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37351 (-fchkp-check-read): New.
37352 (-fchkp-check-write): New.
37353 (-fchkp-store-bounds): New.
37354 (-fchkp-instrument-calls): New.
37355 (-fchkp-instrument-marked-only): New.
37356 (-fchkp-use-wrappers): New.
37357 (-static-libmpx): New.
37358 (-static-libmpxwrappers): New.
37360 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37362 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37363 (CHKP_SPEC): Add wrappers library.
37364 * c-family/c.opt (static-libmpxwrappers): New.
37366 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37368 * config/i386/linux-common.h (LIBMPX_LIBS): New.
37369 (LIBMPX_SPEC): New.
37371 * gcc.c (CHKP_SPEC): New.
37372 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37373 * c-family/c.opt (static-libmpx): New.
37375 2015-03-10 Richard Biener <rguenther@suse.de>
37377 PR middle-end/44563
37378 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37380 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37381 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37382 (cgraph_add_edge_to_call_site_hash): Likewise.
37383 (cgraph_node::get_edge): Likewise.
37384 (cgraph_edge::set_call_stmt): Likewise.
37385 (cgraph_edge::remove_caller): Likewise.
37387 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
37389 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37390 (callee_saved_gpr_regs_size): ... this.
37391 (callee_saved_regs_first_regno): Rename to ...
37392 (callee_saved_first_gpr_regno): ... this.
37393 (callee_saved_regs_last_regno) Rename to ...
37394 (callee_saved_last_gpr_regno): ... this.
37395 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37397 (nds32_initial_elimination_offset): Likewise.
37398 (nds32_expand_prologue): Likewise.
37399 (nds32_expand_epilogue): Likewise.
37400 (nds32_expand_prologue_v3push): Likewise.
37401 (nds32_expand_epilogue_v3pop): Likewise.
37402 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37403 Adjust renamed variables.
37404 (nds32_output_stack_pop): Likewise.
37406 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
37408 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37411 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37413 PR rtl-optimization/65321
37414 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37416 * var-tracking.c (use_narrower_mode): Likewise.
37418 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37420 PR tree-optimization/65355
37421 * varasm.c (notice_global_symbol): Do not produce RTL.
37422 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37424 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37425 check for section anchors.
37427 2015-03-10 Alan Modra <amodra@gmail.com>
37430 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37431 to be single-arch by default. Set cpu_is_64bit for powerpc64
37432 given --with-cpu=native.
37433 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37434 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37436 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37437 rs6000_isa_flags rather than TARGET_64BIT.
37439 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
37440 Kaz Kojima <kkojima@gcc.gnu.org>
37442 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37444 2015-03-09 Jakub Jelinek <jakub@redhat.com>
37447 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37448 on a TREE_BINFO, instead use BINFO_TYPE.
37450 2015-03-09 Richard Biener <rguenther@suse.de>
37452 PR middle-end/65270
37453 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37454 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37455 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
37456 of that. When comparing dereferences compare alignment.
37457 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37459 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37461 * ipa-inline-analysis.c (check_callers): Check
37462 node->can_remove_if_no_direct_calls_and_refs_p.
37463 (growth_likely_positive): Reorganize to call
37464 can_remove_if_no_direct_calls_p later.
37465 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37466 will_be_removed_from_program_if_no_direct_calls_p): Add
37467 will_inline parameter.
37468 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37469 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37470 Handle inliner case correctly.
37472 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
37474 PR tree-optimization/63743
37475 * cfgexpand.c (reorder_operands): Also reorder if only second operand
37476 had its definition forwarded by TER.
37478 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37481 * ipa-utils.h (types_odr_comparable): Add strict argument.
37482 * ipa-devirt.c: Fix whitespace;
37483 (odr_hasher): Remove.
37484 (odr_name_hasher, odr_vtable_hasher): New hashers.
37485 (can_be_name_hashed_p): New predicate.
37486 (hash_type_name): remove.
37487 (hash_odr_name): New.
37488 (odr_name_hasher::hash): new.
37489 (can_be_vtable_hashed_p): New.
37490 (hash_odr_vtable): New.
37491 (odr_vtable_hasher::hash): New.
37492 (types_same_for_odr): Add strict parameter.
37493 (types_odr_comparable): Likewise.
37494 (odr_name_hasher::equal): New.
37495 (odr_vtable_hasher::equal): New.
37496 (odr_name_hasher::remove): New.
37497 (odr_hash_type): Change to hash_table<odr_name_hasher>.
37498 (odr_vtable_hash_type): New.
37499 (odr_vtable_hash): New.
37500 (odr_subtypes_equivalent_p): Do strict comparsion.
37501 (add_type_duplicate): Merge type names; cleanup; avoid type
37503 (register_odr_type): Initialize vtable hash.
37504 (build_type_inheritance_graph): Likewise
37505 (get_odr_type): Reorg to use two hashes.
37506 (dump_possible_polymorphic_call_targets): Move sanity check after debug
37508 (ipa_devirt): Dump type_inheritance_graph.
37509 (types_same_for_odr): Add strict mode.
37511 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37514 * cgraph.h (symtab_node): Add definition_alignment,
37515 can_increase_alignment_p and increase_alignment.
37516 * symtab.c (symtab_node::can_increase_alignment_p,
37517 increase_alignment_1, symtab_node::increase_alignment,
37518 symtab_node::definition_alignment): New.
37519 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37520 can_increase_alignment_p.
37521 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37522 * tree-vect-stmts.c (ensure_base_align): Likewise.
37523 * varasm.c (function_section_1): Use definition_alignment.
37524 (assemble_start_function): Likewise.
37525 (emit_local): likewise.
37526 (build_constant_desc): Likewsie.
37527 (output_constant_def_contents): Likewise.
37528 (place_block_symbol): Likewise.
37529 (output_object_block): Likewise.
37531 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37534 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37535 when outputting debug.
37537 2015-03-07 Marek Polacek <polacek@redhat.com>
37538 Martin Uecker <uecker@eecs.berkeley.edu>
37541 * doc/invoke.texi: Update description of -fsanitize=bounds.
37543 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
37545 * tree-ssa-phiopt.c (neg_replacement): Remove.
37546 (tree_ssa_phiopt_worker): Remove negate optimization.
37548 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37551 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37553 2015-03-06 Richard Biener <rguenther@suse.de>
37555 PR middle-end/64928
37556 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37557 and liveout_obstack members.
37558 (calculate_live_on_exit): Remove.
37559 (calculate_live_ranges): Change declaration.
37560 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37561 (new_tree_live_info): Adjust.
37562 (calculate_live_ranges): Delete livein when not wanted.
37563 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37564 Deal with partly deleted live info.
37565 (loe_visit_block): Remove temporary bitmap by using
37566 bitmap_ior_and_compl_into.
37567 (live_worklist): Adjust accordingly.
37568 (calculate_live_on_exit): Make static.
37569 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37570 we do not need livein.
37572 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
37574 * real.c (real_from_string): Fix typo in assertion.
37576 2015-03-06 Alex Velenko <alex.velenko@arm.com>
37578 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37581 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37583 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37585 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
37588 * lra-assigns.c (find_hard_regno_for): Rename to
37589 find_hard_regno_for_1. Add a new parameter.
37590 (find_hard_regno_for): New function using find_hard_regno_for_1.
37592 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37594 PR rtl-optimization/65067
37595 * expmed.c (store_bit_field, extract_bit_field): Reworked the
37596 strict volatile bitfield handling.
37598 2015-03-05 Martin Liska <mliska@suse.cz>
37601 * ipa-icf.c (sem_variable::equals): Compare variables types.
37603 2015-03-05 Richard Henderson <rth@redhat.com>
37606 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37607 correctly check weak symbol binding.
37609 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
37611 PR middle-end/65315
37612 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
37615 2015-03-05 Martin Liska <mliska@suse.cz>
37617 * ipa-inline.c (inline_small_functions): Set default value to
37618 prevent warning during bootstrap.
37619 * tree.h: Add pragma guard that ignores false positives during
37622 2015-03-05 Richard Biener <rguenther@suse.de>
37624 PR tree-optimization/65310
37625 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
37626 Properly preserve alignment of the base of the access.
37628 2015-03-05 Richard Biener <rguenther@suse.de>
37631 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
37632 Compare dependence info.
37634 2015-03-05 Richard Biener <rguenther@suse.de>
37636 PR middle-end/65233
37637 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
37639 (walk_ssa_copies): Revert last chage. Instead do not walk
37640 SSA names registered for SSA update.
37642 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37645 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
37646 vtable references for their containing type.
37647 (sem_function::equals_wpa): Compare TYPE_RESTRICT
37648 and type attributes.
37650 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
37652 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
37653 before negating it.
37654 * stor-layout.c (finalize_record_size): Revert latest change.
37656 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
37658 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
37660 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37662 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
37663 for correct comdat handling.
37664 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37666 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
37667 (used_from_object_file_p_worker): Remove.
37668 (cgraph_node::only_called_directly_or_alised): Add
37669 used_from_object_file_p.
37670 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
37671 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
37672 can_remove_if_no_direct_calls_and_refs_p.
37674 2015-03-04 Nick Clifton <nickc@redhat.com>
37676 * config/rl78/rl78.h (enum reg_class): Remove real registers from
37677 General register class.
37678 * config/rl78/rl78-real.md: Replace general register constraints
37679 with real+virtual register constraints.
37681 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37683 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
37684 from checking for -mhtm option.
37686 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37688 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
37689 (struct ipa_sra_check_caller_data): Add has_thunk field.
37690 (ipa_sra_check_caller): Check for thunk.
37691 (ipa_sra_preliminary_function_checks): Give up on function with
37693 (ipa_early_sra): Use call_for_symbol_and_aliases.
37695 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
37698 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
37699 called for __stack_chk_guard symbol.
37701 2015-03-03 DJ Delorie <dj@redhat.com>
37703 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
37705 (*addhi3_real): Likewise.
37706 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
37707 pattern to match incrementing memory.
37708 * config/rl78/predicates.md (rl78_1_2_operand): New.
37709 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37710 it's the same and only mem.
37711 (rl78_alloc_physical_registers_op2): If there's effectively only
37712 one MEM, transcode it into HL.
37713 (rl78_far_p): Reject addresses that aren't legitimate.
37715 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
37717 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
37720 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
37722 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
37724 Implement call0 ABI for xtensa
37725 * config/xtensa/constraints.md ("a" constraint): Include stack
37726 pointer in case of call0 ABI.
37727 ("q" constraint): Make empty in case of call0 ABI.
37728 ("D" constraint): Include stack pointer in case of call0 ABI.
37729 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
37730 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
37732 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
37734 (xtensa_regno_to_class): Make it a local variable in the
37735 function xtensa_regno_to_class.
37736 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
37737 macro, function prototype and implementation.
37738 (reg_nonleaf_alloc_order): Make it a local variable in the
37739 function order_regs_for_local_alloc.
37740 (xtensa_conditional_register_usage): New function.
37741 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
37742 (xtensa_valid_move): Allow direct moves to stack pointer
37743 register in call0 ABI.
37744 (xtensa_setup_frame_addresses): Only spill register windows in
37746 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
37747 call0 ABI respectively.
37748 (xtensa_function_arg_1): Only mark a7 register for copying in
37750 (xtensa_call_save_reg): New function.
37751 (compute_frame_size): Add space for callee saved register
37752 storage to the frame size in call0 ABI.
37753 (xtensa_expand_prologue): Generate code to set up stack frame
37754 and save callee-saved registers in call0 ABI.
37755 (xtensa_expand_epilogue): New function.
37756 (xtensa_set_return_address): New function.
37757 (xtensa_return_addr): Calculate return address in call0 ABI.
37758 (xtensa_builtin_saveregs): Only mark a7 register for copying and
37759 emit copying code in windowed ABI.
37760 (order_regs_for_local_alloc): Add preferred register allocation
37761 order for non-leaf function in call0 ABI.
37762 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
37763 (xtensa_asm_trampoline_template): Add trampoline generation for
37765 (xtensa_trampoline_init): Add trampoline initialization for
37767 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
37769 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
37770 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
37771 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
37772 ABI call-used registers.
37773 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
37774 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
37776 (REG_CLASS_CONTENTS): Include all registers into the preferred
37777 reload registers set, adjust the set in the
37778 xtensa_conditional_register_usage.
37779 (xtensa_regno_to_class): Drop variable declaration.
37780 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
37782 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
37784 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
37785 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
37786 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
37787 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
37788 location in call0 ABI.
37789 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
37790 stack adjustment size when handling exception.
37791 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
37792 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
37794 ("return" pattern): Generate ret.n/ret in call0 ABI.
37795 ("epilogue" pattern): Expand epilogue.
37796 ("nonlocal_goto" pattern): Use default in call0 ABI.
37797 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
37798 emit eh_set_a0_* depending on ABI.
37799 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
37800 ("eh_set_a0_call0", "blockage"): New patterns.
37802 2015-03-03 Martin Liska <mliska@suse.cz>
37805 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
37807 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
37810 * config/rs6000/rs6000-tables.opt: Regenerate table.
37812 2015-03-03 Renlin Li <renlin.li@arm.com>
37814 * doc/md.texi (@item ^): Change ? into ^.
37816 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
37818 * doc/tm.texi: Regenerated.
37820 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
37822 * builtins.c (expand_builtin_return_addr): Add
37823 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
37824 surrounding #ifdef.
37825 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
37827 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
37829 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
37831 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
37834 2015-03-03 Martin Jambor <mjambor@suse.cz>
37835 Eric Botcazou <ebotcazou@adacore.com>
37837 * tree-sra.c (ipa_sra_check_caller_data): New type.
37838 (has_caller_p): Removed.
37839 (ipa_sra_check_caller): New function.
37840 (ipa_sra_preliminary_function_checks): Use it.
37842 2015-03-03 Martin Liska <mliska@suse.cz>
37844 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
37845 instead of if branch.
37847 2015-03-03 Martin Liska <mliska@suse.cz>
37850 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
37852 2015-03-23 Jeff Law <law@redhat.com>
37854 PR tree-optimization/65241
37855 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
37856 hash table if INSERT is true.
37858 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37861 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
37863 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37866 * config/avr/avr.c (context.h, tree-pass.h): Include them.
37867 (avr_pass_data_recompute_notes): New static variable.
37868 (avr_pass_recompute_notes): New class.
37869 (avr_register_passes): New static function.
37870 (avr_option_override): Call it.
37872 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37874 Fix various problems with specs file generation.
37877 * config.gcc (extra_gcc_objs) [avr]: Remove.
37878 * config/avr/driver-avr.c: Remove file.
37879 * config/avr/t-avr (driver-avr.o): Remove rule.
37880 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
37881 INCLUDES to build. Depend on TM_H.
37882 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
37883 build warnings. Fix non-matching types and non-existing %-codes.
37885 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
37886 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
37887 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
37888 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
37889 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
37890 (LIBGCC_SPEC): Remove definitions.
37892 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
37894 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
37895 to create a register in testing mode.
37897 2015-03-03 Martin Liska <mliska@suse.cz>
37898 Jan Hubicka <hubicka@ucw.cz>
37901 * cgraph.c (cgraph_node::has_thunk_p): New function.
37902 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
37903 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
37904 (sem_function::merge): Assert is changed.
37906 2015-03-03 Martin Liska <mliska@suse.cz>
37907 Martin Jambor <mjambor@suse.cz>
37910 * ipa-icf.c (sem_item_optimizer::execute): Change function
37911 return value to boolean.
37912 (sem_item_optimizer::merge_classes): Likewise.
37913 (ipa_icf_driver): Return TODO_remove_functions in case there's
37914 a merge operation processed.
37915 * ipa-icf.h: Change function return value to boolean.
37917 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37920 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37921 processor type for 64-bit little endian PowerPC.
37923 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37924 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
37925 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
37926 printing built-in mask so it does not pass NULL pointers.
37928 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37931 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
37934 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37935 !ISA_HAS_FP_CONDMOVE.
37937 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
37939 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37942 2015-03-02 Ulrich Drepper <drepper@gmail.com>
37944 * doc/invoke.texi (Options for Code Generation Conventions):
37945 Fix URL of DSO paper.
37947 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37950 * ipa-inline.c (check_callers): Looks for recursion.
37951 (inline_to_all_callers): Give up on uninlinable or recursive edges.
37952 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37953 summary of inline clones.
37954 (do_estimate_growth_1): Fix recursion check.
37956 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37959 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37962 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37963 Aldy Hernandez <aldyh@redhat.com>
37966 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37967 when checking TYPE_BINFO.
37969 2015-03-02 Richard Biener <rguenther@suse.de>
37972 * ipa-icf-gimple.c: Include builtins.h.
37973 (func_checker::compare_memory_operand): Compare base alignment.
37975 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
37978 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37979 passed by reference.
37981 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
37984 * tree-chkp.c (chkp_check_lower): Don't check against
37985 zero bounds for already instrumented functions.
37986 (chkp_check_upper): Likewise.
37987 (chkp_fini): Clean pass local data to avoid wrong reusage.
37989 2015-02-28 Martin Liska <mliska@suse.cz>
37990 Jan Hubicka <hubicka@ucw.cz>
37992 * ipa-icf.c (sem_variable::equals): Improve debug output;
37993 get variable constructor.
37994 (sem_variable::parse): Do not filter out too early; give up on
37995 volatile and register vars.
37996 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37998 * ipa-icf.h (sem_variable::init): Do not set ctor.
37999 (sem_variable::ctor): Remove.
38001 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38003 PR middle-end/65233
38004 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38006 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38008 * ipa-icf.c: Include stor-layout.h
38009 (sem_function::compare_cgraph_references): Rename to ...
38010 (sem_item::compare_cgraph_references): ... this one.
38011 (sem_variable::equals_wpa): New function
38012 (sem_variable::equals): Do not check stuff already verified by
38014 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38015 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38016 (sem_function): Remove compare_cgraph_references.
38017 (sem_variable): Turns equals_wpa into non-inline.
38019 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38021 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38022 (sem_item::add_expr): New function.
38023 (sem_function::hash_stmt): Handle operands of most statements.
38024 (sem_variable::get_hash): Hash the actual constructor.
38025 * ipa-icf.h (sem_item): Add add_expr.
38026 (sem_function): Update prototype of hash_stmt
38028 2015-02-28 Martin Liska <mliska@suse.cz>
38029 Jan Hubicka <hubicka@ucw.cz>
38032 * ipa-icf-gimple.c (func_checker::compare_function_decl):
38034 (func_checker::compare_variable_decl): Skip symtab vars.
38035 (func_checker::compare_cst_or_decl): Update.
38036 * ipa-icf.c (sem_function::parse): Do not consider aliases.
38037 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38038 use correct symtab predicates.
38039 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38040 (sem_variable::parse): Update comment.
38041 (sem_item_optimizer::build_graph): Consider ultimate aliases
38044 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38046 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38049 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38051 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38052 (sem_variable::merge) Likewise.
38054 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38056 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38057 target; also match flag_ipa_devirt.
38059 2015-03-01 Martin Liska <mliska@suse.cz>
38060 Jan Hubicka <hubicka@ucw.cz>
38062 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38063 Validate variable alignment.
38064 * ipa-icf.c (sem_function::equals_private): Be more precise
38065 about non-common function attributes.
38066 (sem_variable::equals): Likewise.
38068 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38071 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38072 across COMDAT group boundary.
38074 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38077 * ipa-icf.c (clear_decl_rtl): New function.
38078 (sem_function::merge): Clear RTL before forming alias.
38079 (sem_variable::merge): Clear RTL before forming alias.
38081 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38084 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38086 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
38088 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38091 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38093 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38094 a typo in the description.
38096 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38099 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38100 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38101 * lra-constraints.c: Include "params.h".
38102 (EBB_PROBABILITY_CUTOFF): Use
38103 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
38104 (lra_inheritance): Use '<' instead of '<=' for
38105 EBB_PROBABILITY_CUTOFF.
38106 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
38109 2015-02-27 Martin Liska <mliska@suse.cz>
38111 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
38112 vector length condition.
38114 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
38116 * doc/extend.texi (x86 transactional memory intrinsics):
38117 Reorganize discussion of _xbegin. Clarify that the return
38118 value is a bit mask. Expand example and move to end of section.
38120 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38121 Aldy Hernandez <aldyh@redhat.com>
38123 PR rtl-optimization/65220
38124 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
38126 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38129 * lra-remat.c (update_scratch_ops): New.
38130 (do_remat): Call it.
38131 * lra.c (lra_register_new_scratch_op): New. Take code from ...
38132 (remove_scratches): ... here.
38133 * lra-int.h (lra_register_new_scratch_op): New prototype.
38135 2015-02-27 Marek Polacek <polacek@redhat.com>
38138 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
38139 -Wformat-signedness anymore.
38141 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38143 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
38145 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
38147 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38149 * config/s390/s390.c (enum s390_builtin):
38150 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
38151 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
38152 (s390_init_builtins): Generate new builtin functions.
38153 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
38154 (s390_sfpc, s390_efpc): New pattern definitions.
38156 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38158 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
38159 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
38160 (s390_builtin_decls): New array.
38161 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
38162 (s390_builtin_decl): New function.
38163 (TARGET_BUILTIN_DECL): Define macro.
38165 2015-02-27 Richard Biener <rguenther@suse.de>
38167 PR middle-end/63175
38168 * builtins.c (get_object_alignment_2): Make sure to re-apply
38169 the ANDed mask after recursing to its operand gets us a new
38170 misalignment bit position.
38172 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
38173 Martin Liska <mliska@suse.cz>
38176 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
38177 Use address_matters_p.
38178 (redirect_all_callers, set_addressable): New functions.
38179 (sem_function::merge): Reorganize and fix merging issues.
38180 (sem_variable::merge): Likewise.
38181 (sem_variable::compare_sections): Remove.
38182 * common.opt (fmerge-all-constants, fmerge-constants): Remove
38184 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
38186 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
38188 (address_matters_1): New function.
38189 (symtab_node::address_matters_p): New function.
38190 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
38191 check for merged flag.
38192 * cgraph.h (address_matters_p): Declare.
38193 (symtab_node::address_taken_from_non_vtable_p): Remove.
38194 (symtab_node::address_can_be_compared_p): New method.
38195 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
38196 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
38198 (comdat_can_be_unshared_p_1) Use address_matters_p.
38199 (update_vtable_references): Fix formating.
38200 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
38201 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
38202 * cgraphclones.c: Preserve merged and icf_merged flags.
38204 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
38206 * doc/extend.texi (Function Attributes): Fix spelling and typos.
38207 (Label Attributes): Likewise.
38208 (Cilk Plus Builtins): Likewise.
38209 (ARC SIMD Built-in Functions): Likewise.
38210 (ARM C Language Extensions (ACLE)): Likewise.
38211 (PowerPC Built-in Functions): Likewise.
38212 (PowerPC Hardware Transactional Memory Built-in Functions):
38215 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38217 PR tree-optimization/65216
38218 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
38219 new stmt and new SSA_NAME for lhs whenever the arguments have
38220 changed and weren't just swapped. Fix comment typo.
38222 PR tree-optimization/65215
38223 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
38224 for PDP endian targets.
38225 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
38226 Fix up formatting issues.
38227 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
38228 size is smaller than the original, adjust MEM_REF offset by the
38229 difference of sizes. Use is_gimple_mem_ref_addr instead of
38230 is_gimple_min_invariant test to avoid adding address temporaries.
38232 2015-02-26 Martin Liska <mliska@suse.cz>
38233 Jan Hubicka <hubicka@ucw.cz>
38236 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
38237 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
38238 (sem_item_optimizer::process_cong_reduction): Include division by
38239 sensitive references.
38240 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
38241 * ipa-ref.c (ipa_ref::address_matters_p): New function.
38242 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
38244 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
38247 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
38249 * config/avr/avr.c: Same.
38250 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
38251 Refuse any constant address not in 0..0xbf.
38252 * config/avr/avr.md (*mov<mode>, *movsf): Remove
38253 tiny_valid_direct_memory_access_range from insn conditions.
38254 (mov<mode>): Don't special-case expansion of avrtiny addresses.
38256 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
38259 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
38260 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
38261 * config/sh/predicates.md (const_logical_operand): New predicate.
38262 * config/sh/sh.md: Add new peephole2 patterns.
38264 2015-02-26 Marek Polacek <polacek@redhat.com>
38267 * ipa-inline.c (early_inliner): Recompute inline parameters.
38269 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38272 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
38273 instructions with TImode operands are included in the analysis.
38275 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38277 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
38278 of an EDGE_FSM_THREAD.
38280 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
38282 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
38284 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
38287 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
38289 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38291 PR tree-optimization/65048
38292 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
38293 (thread_through_all_blocks): Call valid_jump_thread_path.
38294 Remove invalid FSM jump-thread paths.
38296 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38298 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
38299 (ipa_write_optimization_summaries): Likewise.
38300 * tree-streamer.h: Include data-streamer.h.
38301 (streamer_mode_table): Declare extern variable.
38302 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
38303 * lto-streamer-out.c (lto_output_init_mode_table,
38304 lto_write_mode_table): New functions.
38305 (produce_asm_for_decls): Call lto_write_mode_table when streaming
38307 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
38308 (lto_create_simple_input_block): Add mode_table argument to the
38309 lto_input_block constructors.
38310 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
38312 * data-streamer-in.c (string_for_index): Likewise.
38313 * ipa-inline-analysis.c (inline_read_section): Likewise.
38314 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
38315 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
38316 * lto-streamer-in.c (lto_read_body_or_constructor,
38317 lto_input_toplevel_asms): Likewise.
38318 (lto_input_mode_table): New function.
38319 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38320 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38321 Use bp_pack_machine_mode.
38322 * real.h (struct real_format): Add name field.
38323 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38324 (class lto_input_block): Add mode_table member.
38325 (lto_input_block::lto_input_block): Add mode_table_ argument,
38326 initialize mode_table.
38327 (struct lto_file_decl_data): Add mode_table field.
38328 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38329 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38330 unpack_ts_decl_common_value_fields,
38331 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38332 * tree-streamer.c (streamer_mode_table): New variable.
38333 * real.c (ieee_single_format, mips_single_format,
38334 motorola_single_format, spu_single_format, ieee_double_format,
38335 mips_double_format, motorola_double_format,
38336 ieee_extended_motorola_format, ieee_extended_intel_96_format,
38337 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38338 ibm_extended_format, mips_extended_format, ieee_quad_format,
38339 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38340 decimal_single_format, decimal_double_format, decimal_quad_format,
38341 ieee_half_format, arm_half_format, real_internal_format): Add name
38343 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38345 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
38348 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38349 reordering for selective scheduling.
38351 2015-02-26 Terry Guo <terry.guo@arm.com>
38353 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38354 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38355 (arm_arch_no_volatile_ce): Declare new global variable.
38356 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38357 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38358 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38359 (TARGET_NO_VOLATILE_CE): New macro.
38360 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38361 volatile memory access in IT block
38363 2015-02-25 Kai Tietz <ktietz@redhat.com>
38365 PR tree-optimization/61917
38366 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38367 that reduc_def_stmt is null.
38369 2015-02-25 Martin Liska <mliska@suse.cz>
38371 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38372 hard register variables.
38374 2015-02-25 Kai Tietz <ktietz@redhat.com>
38377 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38378 (symtab::noninterposable_alias): Likewise.
38380 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
38383 * config/i386/i386.c (ix86_function_arg_regno_p): Support
38385 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38387 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
38390 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38391 as split condition; force split via '#' in output pattern.
38393 2015-02-25 Richard Biener <rguenther@suse.de>
38394 Kai Tietz <ktietz@redhat.com>
38396 PR tree-optimization/61917
38397 * tree-vect-loop.c (vectorizable_reduction): Allow
38398 vect_internal_def without reduction to exit graceful.
38400 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38403 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38404 only with NONDEBUG_INSN_P.
38406 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38408 Use variadic macros with avr-log.c.
38410 * config/avr/avr-protos.h (avr_vdump): New prototype.
38411 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38412 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38413 * config/avr/avr-log.c: Adjust comments.
38414 (avr_vdump): New function.
38415 (avr_vadump): Pass caller as 2nd argument instead of format string.
38416 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38417 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38419 2015-02-25 Jakub Jelinek <jakub@redhat.com>
38422 * target.def (target_option_stream_in): New target hook.
38423 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38424 targetm.target_option.post_stream_in if non-NULL.
38425 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38426 * doc/tm.texi: Updated.
38427 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38429 (TARGET_OPTION_POST_STREAM_IN): Redefine.
38431 2015-02-24 Jeff Law <law@redhat.com>
38434 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38435 of operand 0 and operand 2.
38436 (zero_cost_loop_end, loop_end): Similarly.
38438 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
38440 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38443 2015-02-24 DJ Delorie <dj@redhat.com>
38445 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38446 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38447 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38448 instead of hardcoding SImode.
38450 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
38452 * omp-low.c (create_omp_child_function): Tag entrypoint
38453 functions with a special attribute.
38455 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38458 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38460 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
38462 PR rtl-optimization/65123
38463 * lra-remat.c (operand_to_remat): Check hard regs in insn
38466 2015-02-24 Nick Clifton <nickc@redhat.com>
38468 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38471 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
38474 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38475 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38476 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38477 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38478 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38479 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38480 (BUILT_IN_GOACC_PARALLEL): Specify as
38481 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38482 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38483 * builtin-types.def
38484 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38485 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38486 Remove function types.
38487 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38488 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38489 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38490 New function types.
38492 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
38494 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38496 2015-02-24 Jakub Jelinek <jakub@redhat.com>
38498 PR tree-optimization/65170
38499 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38500 if val[1] < 0, clear also val[2] and return 3.
38502 2015-02-24 Alan Modra <amodra@gmail.com>
38505 * config/rs6000/rs6000.c (get_memref_parts): Only return true
38506 when *base is a reg. Handle nested plus addresses. Simplify
38509 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
38511 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38512 use natural alignment when optimizing for size.
38514 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
38517 * config/sh/sh.md (movsicc_true+3): Remove peephole.
38518 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38519 * config/sh/sh.c (replace_n_hard_rtx): Remove.
38521 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
38524 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38525 too big for a wide_int. Implement missing wrapping operation.
38527 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
38530 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38531 instead of const_int 4294901760.
38533 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
38535 * config/avr/t-avr: Fix typo in comment.
38537 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
38539 * doc/rtl.texi (fma): Clarify documentation.
38541 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
38544 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38545 over input_location.
38547 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38549 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38550 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38551 restrict alignments to absolute_biggest_alignment.
38552 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38554 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38555 * doc/tm.texi: Regenerate.
38556 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38558 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
38561 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38563 2015-02-20 Richard Biener <rguenther@suse.de>
38565 PR tree-optimization/65136
38566 * tree-ssa-propagate.c: Include cfgloop.h.
38567 (replace_phi_args_in): Avoid replacing loop latch edge PHI
38568 arguments with constants.
38570 2015-02-20 Jakub Jelinek <jakub@redhat.com>
38571 Martin Liska <mliska@suse.cz>
38574 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38575 don't try to create_thunk if stdarg_p. If
38576 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38577 redirect_callers if possible.
38578 (sem_item_optimizer::execute): Call unregister_hooks here...
38579 (ipa_icf_driver): ... instead of here.
38581 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38583 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38584 Mark operand 0 as earlyclobber in 2nd alternative.
38585 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38586 Write negated shift amount into QI lowpart operand 0 and use it
38588 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38590 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38592 * cgraph.h (clone_function_name_1): Declare.
38593 * cgraphclones.c (clone_function_name_1): New function.
38594 (clone_function_name): Use it.
38595 * lto-partition.c: Include "stringpool.h".
38596 (must_not_rename, maybe_rewrite_identifier)
38597 (validize_symbol_for_target): New static functions.
38598 (privatize_symbol_name): Use must_not_rename.
38599 (promote_symbol): Call validize_symbol_for_target.
38600 (lto_promote_cross_file_statics): Likewise.
38601 (lto_promote_statics_nonwpa): Likewise.
38603 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
38606 * config/avr/avr.md (pushhi_insn): New insn.
38607 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38609 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38610 Jakub Jelinek <jakub@redhat.com>
38612 * tree-streamer.c (preload_common_nodes): Don't preload
38613 TI_VA_LIST* for offloading.
38614 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
38617 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
38619 * config/pa/pa.c (pa_emit_move_sequence): Always force
38620 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
38623 * config/pa/pa.c (pa_reloc_rw_mask): New function.
38624 (TARGET_ASM_RELOC_RW_MASK): Define.
38625 (pa_cannot_force_const_mem): Revert previous change.
38627 2015-02-19 Martin Jambor <mjmabor@suse.cz>
38628 Jan Hubicka <hubicka@ucw.cz>
38631 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
38632 across jump functions.
38634 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
38636 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
38638 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
38640 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
38642 2015-02-19 Richard Henderson <rth@redhat.com>
38644 PR middle-end/65074
38645 * varasm.c (default_binds_local_p_2): Don't test node->definition;
38646 test DECL_EXTERNAL independent of symtab_node.
38648 2015-02-19 Jakub Jelinek <jakub@redhat.com>
38651 * varpool.c (varpool_node::get_constructor): Return early
38652 if this->lto_file_data is NULL.
38654 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38656 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
38657 (rank_for_schedule_debug): Update.
38658 (ready_sort): Make static. Move sorting logic to ...
38659 (ready_sort_debug, ready_sort_real): New static functions.
38660 (schedule_block): Sort both debug insns and real insns in preparation
38661 for ready list trimming. Improve debug output.
38662 * sched-int.h (ready_sort): Remove global declaration.
38664 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
38666 * ipa-icf.c (sem_function::equals_private): Adjust.
38667 (sem_function::bb_dict_test): Take a vec<int> * instead of
38669 * ipa-icf.h (bb_dict_test): Likewise.
38671 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38673 PR gcov-profile/64634
38674 * tree-eh.c (frob_into_branch_around): Fix up typos
38675 in function comment.
38676 (lower_catch): Put eh_seq resulting from EH lowering of
38677 the cleanup sequence after the cleanup rather than before it.
38679 2015-02-18 Tom de Vries <tom@codesourcery.com>
38681 * common.opt (fstdarg-opt): New option.
38682 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
38683 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
38684 (@item -fstdarg-opt): New item.
38686 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
38689 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
38690 for common symbols.
38692 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38694 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
38696 (ALL_HOST_OBJS): Add mkoffload.o.
38697 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
38699 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
38701 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
38702 (compare_virtual_tables): Be smarter about skipping typeinfos;
38703 do sane output on virtual table table mismatch.
38704 (warn_odr): Be ready for forward declarations of enums;
38705 output sane info on base mismatch and virtual table mismatch.
38706 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
38707 when only one type is polymorphic.
38708 (get_odr_type): Fix hashtable corruption.
38709 (dump_odr_type): Dump mangled names.
38711 2015-02-18 Richard Biener <rguenther@suse.de>
38713 PR tree-optimization/65063
38714 * tree-predcom.c (determine_unroll_factor): Return 1 if we
38715 have replaced looparound PHIs.
38717 2015-02-18 Martin Liska <mliska@suse.cz>
38719 * lto-streamer.c (lto_streamer_init): Encapsulate
38720 streamer_check_handled_ts_structures with checking macro.
38722 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38725 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
38726 section if !implicit_section.
38727 (cgraph_node::create_version_clone_with_body): Likewise.
38728 * trans-mem.c (ipa_tm_create_version): Likewise.
38730 2015-02-18 Richard Biener <rguenther@suse.de>
38732 PR tree-optimization/62217
38733 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
38736 2015-02-18 Marek Polacek <polacek@redhat.com>
38739 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
38740 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
38741 is in range [-16K, -1]. Don't issue run-time error if
38742 (ptr > ptr + offset).
38744 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
38746 * doc/install.texi (nvptx-*-none): New section.
38747 * doc/invoke.texi (Nvidia PTX Options): Likewise.
38748 * config/nvptx/nvptx.opt: Update.
38750 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
38751 (access_check): New functions, copied from
38752 config/i386/intelmic-mkoffload.c.
38753 (main): For non-installed testing, look in all COMPILER_PATHs for
38756 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
38758 2015-02-18 Andrew Pinski <apinski@cavium.com>
38759 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38761 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
38762 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
38764 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
38766 * ipa-visibility.c (function_and_variable_visibility): Only
38767 check locality if node is not already local.
38768 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38769 call_for_symbol_and_aliases instead of
38770 call_for_symbol_thunks_and_aliases.
38771 (ipa_inline): Likewise.
38772 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38773 first walk aliases.
38774 * ipa.c (symbol_table::remove_unreachable_nodes): Use
38775 call_for_symbol_and_aliases.
38776 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38777 (ipa_propagate_frequency_1): Use it; use opt_for_fn
38778 (ipa_propagate_frequency): Update.
38779 (ipa_profile): Add opt_for_fn gueards.
38781 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
38783 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
38784 * doc/invoke.texi (SH options): Document it.
38785 * config/sh/sh.c (sh_insn_length_adjustment): Check
38786 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
38788 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
38790 * common.opt (fipa-cp-alignment): New.
38791 * ipa-cp.c (ipcp_store_alignment_results): Check
38792 flag_ipa_cp_alignment.
38793 * opts.c (default_options_table): Enable -fipa-cp-alignment for
38795 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
38796 * doc/invoke.texi: Document -fipa-cp-alignment.
38798 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
38801 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
38802 to nil. Adjust comments.
38804 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
38806 * ipa-visibility.c (function_and_variable_visibility): Only
38807 check locality if node is not already local.
38808 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38809 call_for_symbol_and_aliases instead of
38810 call_for_symbol_thunks_and_aliases.
38811 (ipa_inline): Likewise.
38812 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38813 first walk aliases.
38814 * ipa.c (symbol_table::remove_unreachable_nodes): Use
38815 call_for_symbol_and_aliases.
38816 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38817 (ipa_propagate_frequency_1): Use it; use opt_for_fn
38818 (ipa_propagate_frequency): Update.
38819 (ipa_profile): Add opt_for_fn guards.
38821 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
38823 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
38824 skipping of "strange" tokens.
38826 2015-02-17 Jeff Law <law@redhat.com>
38828 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
38831 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
38833 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
38834 as forcing a HARD_DEP between instructions, thereby
38835 disallowing rewriting to break dependencies.
38837 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
38839 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
38840 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
38841 variables in boundary that have no inlitalizer encoded and are
38843 * varasm.c (default_binds_local_p_2): External definitions do not
38844 count as definitions here.
38846 2015-02-16 Jeff Law <law@redhat.com>
38848 PR tree-optimization/64823
38849 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
38851 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38852 threading through blocks with PHIs, but no statements.
38853 (thread_through_normal_block): Distinguish between blocks where
38854 we did not process all the statements and blocks with no statements.
38856 2015-02-16 Jakub Jelinek <jakub@redhat.com>
38857 James Greenhalgh <james.greenhalgh@arm.com>
38860 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
38861 section if not linkonce. Fix up formatting.
38862 (cgraph_node::create_version_clone_with_body): Copy section.
38863 * trans-mem.c (ipa_tm_create_version): Likewise.
38865 2015-02-16 Richard Biener <rguenther@suse.de>
38867 PR tree-optimization/65077
38868 * tree-ssa-structalias.c (get_constraint_for_1): Handle
38869 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
38870 (find_func_aliases): Allow float values to carry pointers again.
38872 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
38874 * doc/install.texi (Specific): Reorder targets list to put
38875 aarch64 in alphabetical order. Add a link to aarch64*-*-*
38878 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38879 David Edelsohn <dje.gcc@gmail.com>
38882 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
38883 mapping class to external variable or function reference.
38884 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
38887 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
38890 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
38891 ASM_WEAKEN_DECL if defined.
38893 2015-02-16 Richard Biener <rguenther@suse.de>
38896 * varasm.c (default_file_start): For LTO produced units
38897 emit <artificial> as file directive.
38899 2015-02-16 Richard Biener <rguenther@suse.de>
38901 PR tree-optimization/63593
38902 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
38903 stmts and releasing SSA names until...
38904 (execute_pred_commoning): ... after processing all chains.
38906 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
38909 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
38910 external functions.
38912 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
38914 * doc/bugreport.texi: Adjust section titles throughout the file
38915 to use "Title Case".
38916 * doc/extend.texi: Likewise.
38917 * doc/gcov.texi: Likewise.
38918 * doc/implement-c.texi: Likewise.
38919 * doc/implement-cxx.texi: Likewise.
38920 * doc/invoke.texi: Likewise.
38921 * doc/objc.texi: Likewise.
38922 * doc/standards.texi: Likewise.
38923 * doc/trouble.texi: Likewise.
38925 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
38927 * cgraph.h (symtab_node::has_aliases_p): Simplify.
38928 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38929 * tree.c (lookup_binfo_at_offset): Make static.
38930 (get_binfo_at_offset): Do not shadow offset; add explanatory
38933 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
38935 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38936 for all floading point loads and stores except those using a register
38938 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38941 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
38943 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38944 (do_estimate_growth_1): Record if any uninlinable edge was seen.
38945 (estimate_growth): Handle uninlinable edges correctly.
38946 (check_callers): New.
38947 (growth_likely_positive): Handle aliases correctly.
38949 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
38951 * ipa-chkp.c: Use iterate_direct_aliases.
38952 * symtab.c (resolution_used_from_other_file_p): Move inline.
38953 (symtab_node::create_reference): Fix formating.
38954 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38955 (symtab_node::iterate_reference): Move inline.
38956 (symtab_node::iterate_referring): Move inline.
38957 (symtab_node::iterate_direct_aliases): Move inline.
38958 (symtab_node::used_from_object_file_p_worker): Inline into ...
38959 (symtab_node::used_from_object_file_p): ... this one; move inline.
38960 (symtab_node::call_for_symbol_and_aliases): Move inline;
38961 use iterate_direct_aliases.
38962 (symtab_node::call_for_symbol_and_aliases_1): New method.
38963 (cgraph_node::call_for_symbol_and_aliases): Move inline;
38964 use iterate_direct_aliases.
38965 (cgraph_node::call_for_symbol_and_aliases_1): New method.
38966 (varpool_node::call_for_node_and_aliases): Rename to ...
38967 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38968 use iterate_direct_aliases.
38969 (varpool_node::call_for_symbol_and_aliases_1): New method.
38970 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38971 (ipa_discover_readonly_nonaddressable_var): Update.
38972 * ipa-devirt.c: Fix formating.
38973 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38975 (cgraph_node::call_for_symbol_and_aliases): Move inline.
38976 (cgraph_node::call_for_symbol_and_aliases_1): New function..
38977 * cgraph.h (used_from_object_file_p_worker): Remove.
38978 (resolution_used_from_other_file_p): Move inline.
38979 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38980 (symtab_node::iterate_reference): Move inline.
38981 (symtab_node::iterate_referring): Move inline.
38982 (symtab_node::iterate_direct_aliases): Move inline.
38983 (symtab_node::used_from_object_file_p_worker): Inline into ...
38984 (symtab_node::used_from_object_file_p): Move inline.
38985 * tree-emutls.c (ipa_lower_emutls): Update.
38986 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38987 (varpool_node::call_for_node_and_aliases): Remove.
38989 2015-02-14 Jakub Jelinek <jakub@redhat.com>
38991 PR tree-optimization/62209
38992 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38993 op == range->exp, insert seq and gimplified code after labels
38994 instead of after the phi.
38996 2015-02-13 Jeff Law <law@redhat.com>
38999 Revert my change for tree-optimization/64823.
39001 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39003 PR tree-optimization/65053
39004 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39005 cond, either reset VR on lhs or set it to phi result VR.
39007 2015-02-13 Jeff Law <law@redhat.com>
39009 PR tree-optimization/64823
39010 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39011 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39012 threading through blocks with PHIs, but no statements.
39013 (thread_through_normal_block): Distinguish between blocks where
39014 we did not process all the statements and blocks with no statements.
39016 PR rtl-optimization/47477
39017 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39018 simplifier to narrow arithmetic.
39020 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39023 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39024 polymorphic call info when type is not known to be preserved.
39026 2015-02-13 Maritn Jambor <mjambor@suse.cz>
39029 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39030 (inline_call): Use it.
39032 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
39034 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39035 GOMP_DEVICE_NVIDIA_PTX.
39037 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39040 * stmt.c (emit_case_nodes): Use void_type_node instead of
39041 NULL_TREE as LABEL_DECL type.
39043 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
39045 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39047 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39048 symbolic references to data to be forced to constant memory on the
39051 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
39053 PR tree-optimization/65002
39054 * tree-cfg.c (pass_data_fixup_cfg): Don't update
39056 * tree-sra.c (some_callers_have_no_vuse_p): New.
39057 (ipa_early_sra): Reject functions whose callers
39058 assume function is read only.
39060 2015-02-13 Richard Biener <rguenther@suse.de>
39063 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39064 for LTO produced CUs.
39066 2015-02-13 Bin Cheng <bin.cheng@arm.com>
39068 PR tree-optimization/64705
39069 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39070 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39071 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39072 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39073 expand_simple_operations.
39075 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
39076 Richard Henderson <rth@redhat.com>
39079 * cgraphunit.c (cgraph_node::finalize_function): Set definition
39080 before notice_global_symbol.
39081 (varpool_node::finalize_decl): Likewise.
39082 * varasm.c (default_binds_local_p_2): Rename from
39083 default_binds_local_p_1, add weak_dominate argument. Use direct
39084 returns instead of assigning to local variable. Unify varpool and
39085 cgraph paths via symtab_node. Reject undef weak variables before
39086 testing visibility. Reorder tests for simplicity.
39087 (default_binds_local_p): Use default_binds_local_p_2.
39088 (default_binds_local_p_1): Likewise.
39089 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39091 (default_elf_asm_output_external): Emit visibility when specified.
39093 2015-02-13 Alan Modra <amodra@gmail.com>
39095 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
39096 code setting up r11 for out-of-line fp restore.
39098 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
39100 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
39101 (muser-mode): Likewise.
39103 2015-02-13 Alan Modra <amodra@gmail.com>
39105 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
39106 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
39108 2015-02-12 David Howells <dhowells@redhat.com>
39110 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
39112 * tree-ssa-uninit.c (dump_predicates): Likewise.
39113 * opts.c (print_filtered_help): Likewise.
39115 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39117 * dwarf2out.c (output_die): Use "%s", name instead of name to
39118 avoid -Wformat-security warning.
39120 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
39121 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39122 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
39123 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39125 2015-02-12 Jason Merrill <jason@redhat.com>
39127 * common.opt (-flifetime-dse): New.
39129 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39132 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
39134 PR tree-optimization/65014
39135 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
39136 use original second operand of arg0 or arg1 instead of
39137 that adjusted by STRIP_NOPS.
39139 2015-02-11 Jeff Law <law@redhat.com>
39142 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
39143 that needs to be queued, just queue it for a single cycle.
39145 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
39147 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
39148 bodies of thunks; comment on why.
39149 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
39150 symbols are extern.
39152 2015-02-11 Richard Henderson <rth@redhat.com>
39155 * tree-eh.c (mark_reachable_handlers): Mark source and destination
39156 regions of __builtin_eh_copy_values.
39158 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39160 PR middle-end/65003
39161 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
39162 ultimate alias is MEM with SYMBOL_REF satisfying
39163 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
39164 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
39166 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
39168 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
39169 "diagnostic-core.h".
39170 (main): Initialize progname, and call diagnostic_initialize.
39172 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
39173 instead of __OPENMP_TARGET__.
39175 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
39176 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
39177 hard-coding PTX_ID.
39179 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
39181 * doc/sourcebuild.texi (pie_enabled): Document.
39183 2015-02-11 Martin Liska <mliska@suse.cz>
39186 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
39187 a return value for call to a function that is noreturn.
39189 2015-02-11 Richard Biener <rguenther@suse.de>
39192 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
39195 2015-02-11 Andrew Pinski <apinski@cavium.com>
39198 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
39199 Change the first argument type to size_type_node and add another
39201 (aarch64_simd_expand_builtin): Handle the new argument to
39202 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
39203 print an out when the first two arguments are not
39204 nonzero integer constants.
39205 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
39206 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
39208 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39211 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
39212 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
39213 (ix86_set_current_function): Rewritten.
39214 (ix86_add_new_builtins): Temporarily clear current_target_pragma
39215 when creating builtin fndecls.
39217 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39220 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
39222 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
39223 have no comdat group.
39224 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
39225 (lto_output_varpool_node): Always output alias info.
39226 (output_refs): Output refs of boundary aliases, too.
39227 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
39228 (output_symtab): Output call eges in thunks in boundary.
39229 (get_alias_symbol): Remove.
39230 (input_node, input_varpool_node): Do not special case weakrefs.
39231 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
39232 alias and thunks targets in the boundary; do not take removed symbols
39233 from their comdat groups.
39234 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
39235 (cgraph_node::global_info): Remove.
39236 (cgraph_node::rtl_info): Look through aliases and thunks.
39237 * cgrpah.h (global_info): Remove.
39238 (non_local_p): Remove.
39240 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39241 Sandra Loosemore <sandra@codesourcery.com>
39243 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
39244 to inline asm. List dialects in proper order.
39246 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39247 Sandra Loosemore <sandra@codesourcery.com>
39249 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
39251 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39253 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
39254 modified) reference to Solaris.
39256 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
39258 * doc/extend.texi (Extended Asm): Fix typos.
39260 2015-02-10 Jakub Jelinek <jakub@redhat.com>
39263 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
39265 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
39268 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
39269 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
39270 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
39271 * config/sh/constraints.md (Ara, Add): New constraints.
39272 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
39274 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
39275 atomic_mem_operand_0. Don't use force_reg on the memory address.
39276 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
39277 Sra constraint. Convert to insn_and_split. Add workaround for
39279 (atomic_compare_and_swap<mode>_hard): Copy to
39280 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
39281 Use atomic_mem_operand_0 predicate.
39282 (atomic_compare_and_swap<mode>_soft_gusa,
39283 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
39284 AraAdd constraints.
39285 (atomic_compare_and_swap<mode>_soft_tcb,
39286 atomic_compare_and_swap<mode>_soft_imask,
39287 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
39288 atomic_mem_operand_0 predicate and SraSdd constraints.
39289 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
39291 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
39292 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
39293 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
39294 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
39295 force_reg on the memory address.
39296 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
39297 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
39298 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
39299 atomic_mem_operand_1 predicate and Sra constraint.
39300 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
39301 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39302 Use atomic_mem_operand_1 predicate.
39303 (atomic_<fetchop_name><mode>_hard): Copy to
39304 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39305 Use atomic_mem_operand_1 predicate.
39306 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
39307 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39308 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
39309 insn_and_split. Use atomic_mem_operand_1 predicate.
39310 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
39311 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
39312 Use atomic_mem_operand_1 predicate.
39313 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
39314 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39315 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
39316 in generated insn with original mem operand before emitting the insn.
39317 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39318 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39319 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39320 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39321 Use atomic_mem_operand_1 predicate and AraAdd constraints.
39322 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39323 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39324 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39325 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39326 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39327 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39328 atomic_not_fetch<mode>_soft_tcb,
39329 atomic_<fetchop_name>_fetch<mode>_soft_imask,
39330 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39331 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39332 Use atomic_mem_operand_1 predicate and SraSdd constraints.
39334 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
39336 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39337 and 3 earlyclobber operands.
39339 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39341 * common.opt (fstack-reuse): Mark as optimization.
39343 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39346 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39348 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
39350 PR tree-optimization/64326
39351 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39353 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
39355 PR gcov-profile/61889
39356 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39358 2015-02-10 Richard Biener <rguenther@suse.de>
39360 PR tree-optimization/64995
39361 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39362 value we use is final.
39363 (visit_reference_op_store): Always valueize op.
39364 (visit_use): Properly valueize vuses.
39366 2015-02-10 Richard Biener <rguenther@suse.de>
39368 PR tree-optimization/64909
39369 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39370 pass a scalar-stmt count estimate to the cost model.
39371 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39373 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
39375 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39376 enabled by default together with var-tracking.
39378 2015-02-10 Nick Clifton <nickc@redhat.com>
39380 * config/rl78/rl78.c: Remove DIV attribute code accidentally
39381 included in previous rl78 commit.
39383 2015-02-10 Richard Biener <rguenther@suse.de>
39385 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39386 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39387 return the bitpack.
39389 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39391 PR gcov-profile/61889
39392 * config.in: regenerate.
39393 * configure.in: Likewise.
39394 * configure.ac: Check for ftw.h.
39395 * gcov-tool.c: Check for ftw.h before using nftw.
39397 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39400 * ipa-visibility.c (update_visibility_by_resolution_info): Only
39401 assert when not in lto mode.
39403 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
39405 * ira-color.c (setup_left_conflict_sizes_p): Simplify
39406 initialization/assignment of conflict_size.
39408 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
39411 * ipa-cp.c (gather_caller_stats): Skip thunks.
39412 (propagate_constants_topo): Skip aliases.
39414 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
39417 * config/sh/sh.c (sh_option_override): Don't change
39418 -freorder-blocks-and-partition to -freorder-blocks even when
39419 unwinding is enabled.
39420 (sh_can_follow_jump): Return false if the followee jump is
39421 a crossing jump when -freorder-blocks-and-partition is specified.
39422 * config/sh/sh.md (*jump_compact_crossing): New insn.
39424 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
39425 Kaz Kojima <kkojima@gcc.gnu.org>
39428 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39429 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39430 (sh_can_redirect_branch): Rename to ...
39431 (sh_can_follow_jump): ... this. Constify argument types.
39432 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39433 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39434 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39435 * doc/tm.texi: Regenerate.
39437 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39440 * builtins.c (expand_builtin): Call targetm.expand_builtin
39441 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39443 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39446 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39448 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39451 * ipa-icf.c (set_local): New function.
39452 (sem_function::merge): Use it.
39454 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39456 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39457 (add_type_duplicate): Fix comparison of BINFOs.
39459 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39461 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39462 on getting VOID pointer.
39464 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39467 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39470 2015-02-09 Richard Biener <rguenther@suse.de>
39472 * genmatch.c (replace_id): Copy expr_type.
39474 2015-02-09 Richard Biener <rguenther@suse.de>
39476 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39477 (streamer_write_tree_bitfields): Declare.
39478 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39479 properly unpack padding.
39480 (unpack_value_fields): Inline ...
39481 (streamer_read_tree_bitfields): ... here.
39482 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39483 and properly add padding bits.
39484 (streamer_pack_tree_bitfields): Fold into ...
39485 (streamer_write_tree_bitfields): ... this new function,
39486 exposing the bitpack object.
39487 * lto-streamer-out.c (lto_write_tree_1): Call
39488 streamer_write_tree_bitfields.
39490 2015-02-09 Richard Biener <rguenther@suse.de>
39492 PR tree-optimization/54000
39493 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39494 (struct ivopts_data): Add loop_loc member.
39495 (tree_ssa_iv_optimize_loop): Dump loop location.
39496 (create_new_ivs): Likewise, also dump number of IVs generated.
39498 2015-02-09 Martin Liska <mliska@suse.cz>
39500 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39501 just if not yet registered.
39502 (ipa_icf_generate_summary): Register callgraph hooks.
39504 2015-02-08 Andrew Pinski <apinski@cavium.com>
39506 * config/aarch64/aarch64.c (gty_dummy): Delete.
39508 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39511 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39512 (cgraph_node::local_p): Remove thunk related FIXME.
39514 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39517 * i386.c (ix86_function_regparm): Look through aliases to see if callee
39518 is local and optimized.
39519 (ix86_function_sseregparm): Likewise; also use target's SSE math
39520 settings; error out instead of silently generating wrong code
39522 (init_cumulative_args): Look through aliases.
39524 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39527 * ipa-split.c (execute_split_functions): Split if function has aliases.
39529 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39532 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39533 aliases before trying to expand it.
39534 (cgraph_node::expand_thunk): Fix formating.
39536 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
39538 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39539 (Using Assembly Language with C): Expand introduction.
39540 (Basic Asm): Copy-edit. Add more information about uses of
39542 (Extended Asm): Copy-edit. Document new escape syntax and
39544 (Global Reg Vars): Copy-edit.
39545 (Local Reg Vars): Likewise.
39547 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
39551 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39552 (DBX_CONTIN_CHAR): Define.
39554 2015-02-06 Sebastian Pop <s.pop@samsung.com>
39555 Brian Rzycki <b.rzycki@samsung.com>
39557 PR tree-optimization/64878
39558 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39559 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39560 Stop recursion at loop phi nodes after having visited a loop phi node.
39562 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39564 * toplev.c (process_options): Change flag_ipa_ra before creating
39565 optimization_{default,current}_node.
39568 * cgraphunit.c (cgraph_node::expand_thunk): If
39569 restype is not is_gimple_reg_type nor the thunk_fndecl
39570 returns aggregate_value_p, set restmp to a temporary variable
39571 instead of resdecl.
39573 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
39575 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39577 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39580 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39581 add a general secondary reload handler for SDmode, unless we have
39582 both read/write support for SDmode.
39584 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39586 PR middle-end/64937
39587 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39588 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39589 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39590 1 before, push it to abstract_vec.
39591 (dwarf2out_abstract_function): Adjust caller. Don't call
39592 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39593 DECL_ABSTRACT_P flags for all abstract_vec elts.
39595 2015-02-06 Renlin Li <renlin.li@arm.com>
39597 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39599 * tree-ssa.c (execute_update_addresses_taken): Likewise.
39601 2015-02-06 Jeff Law <law@redhat.com>
39604 * config/h8300/h8300.c (push): New argument "in_prologue".
39605 Pass "in_prologue" along to "F".
39606 (h8300_push_pop): Corresponding changes.
39607 (h8300_expand_prologue): Likewise.
39608 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
39610 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39612 PR rtl-optimization/64957
39614 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
39615 IOR rather than for AND.
39617 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
39620 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
39621 of shift-add and (add + shift) operations. Rename local variable.
39623 2015-02-05 Jeff Law <law@redhat.com>
39626 * config/h8300/constraints.md (U): Correctly dectect
39627 "eightbit_data" memory addresses.
39628 * config/h8300/h8300.c (eightbit_constant_address_p): Also
39629 handle (const (plus (symbol_ref (x)))) where x is declared
39630 as an 8-bit data memory address.
39631 * config/h8300/h8300.md (call, call_value): Correctly detect
39632 "funcvec" functions.
39635 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
39636 24 to 28 bits for the H8/300.
39638 2015-02-06 Alan Modra <amodra@gmail.com>
39641 * config/rs6000/rs6000.c (chain_already_loaded): New function.
39642 (rs6000_call_aix): Use it.
39644 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
39646 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
39649 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
39651 * config/h8300/constraints.md ("U" constraint): Use strict
39652 variant of REG_OK_FOR_BASE_P after reload has started.
39654 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
39656 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
39657 define to zero if !TARGET_NEON.
39658 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
39660 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39661 Trevor Saunders <tsaunders@mozilla.com>
39664 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
39666 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39669 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
39670 when removing varpool nodes.
39672 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39675 * varpool.c (varpool_node::remove): Fix order of variables.
39677 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39680 * ipa-inline.c (inline_small_functions): Fix ordering issue between
39681 speculation resolution and key updates.
39683 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39685 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
39686 about not letting any speculative edges unupdated.
39688 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39691 * gcov-io.c (gcov_var): Export.
39693 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39695 PR middle-end/64922
39696 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
39697 edges that become speculative.
39699 2015-02-04 Jakub Jelinek <jakub@redhat.com>
39701 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
39702 or DW_LANG_Fortran08.
39703 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
39705 (gen_compile_unit_die): Handle "GNU Fortran2003" and
39706 "GNU Fortran2008" language strings.
39707 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
39708 * langhooks.h (lang_GNU_Fortran): New prototype.
39709 * langhooks.c (lang_GNU_Fortran): New function.
39710 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
39713 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
39715 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
39716 (RTX_OK_FOR_OLO10_P): Likewise.
39718 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
39720 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
39722 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39724 PR middle-end/64922
39725 * gimple.c: Include gimple-ssa.h.
39726 (maybe_remove_unused_call_args): New function.
39727 * gimple.h (maybe_remove_unused_call_args): Declare.
39728 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
39729 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
39730 * gimple-fold.c (gimple_fold_call): Likewise.
39732 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
39734 PR rtl-optimization/64905
39735 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
39736 pointer alignment if it isn't needed.
39738 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
39740 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
39741 cortex-a72.cortex-a53.
39742 * config/aarch64/aarch64-tune.md: Regenerate.
39743 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
39745 2015-02-04 Nick Clifton <nickc@redhat.com>
39747 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
39750 2015-02-04 Jakub Jelinek <jakub@redhat.com>
39752 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
39753 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
39754 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
39756 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
39757 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
39758 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
39759 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
39760 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
39761 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
39762 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
39763 * tree-core.h (enum built_in_function): In between
39764 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
39765 for builtins that use DEF_BUILTIN_CHKP macro.
39767 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
39770 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
39771 operands for tcc_comparison exprs. Fix typos.
39774 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
39775 of two XORs that have an intervening AND or IOR.
39778 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
39779 simplification of XOR of AND to not allocate new rtx before
39780 committing to a simplification.
39782 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39784 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
39785 manual swaps in all peepholes.
39787 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39789 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
39790 of manual swapping implementation.
39791 (aarch64_expand_vec_perm_const_1): Likewise.
39793 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
39795 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
39796 (generic_addrcost_table): Remove NAMED_PARAM.
39797 (cortexa57_addrcost_table): Likewise.
39798 (xgene1_addrcost_table): Likewise.
39799 (generic_regmove_table): Likewise.
39800 (cortexa53_regmove_table): Likewise.
39801 (xgene1_regmove_table): Likewise.
39802 (generic_vector_table): Likewise.
39803 (cortexa57_vector_table): Likewise.
39804 (xgene1_vector_table): Likewise.
39805 (generic_tunings): Likewise.
39806 (cortexa53_tunings): Likewise.
39807 (cortexa57_tunings): Likewise.
39808 (xgene1_tunings): Likewise.
39810 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
39812 * config/arm/arm-cores.def: Add cortex-a72 and
39813 cortex-a72.cortex-a53.
39814 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
39815 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
39816 * config/arm/arm-tune.md: Regenerate.
39817 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
39818 "cortex-a72.cortex-a53".
39819 * doc/invoke.texi (ARM Options/-mtune): Likewise.
39821 2015-02-04 Nick Clifton <nickc@redhat.com>
39824 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
39826 (nonimmediate_di_operand): Likewise.
39828 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
39829 prefixes of known F5 using MSP430 MCUs.
39831 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39833 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
39834 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
39835 instead of __builtin_sqrt.
39837 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
39839 * varasm.c (do_assemble_alias): Follow transparent alias
39841 (default_assemble_visibility): Follow transparent alias
39842 chain for decl name.
39844 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
39846 PR middle-end/62103
39847 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39848 to compute size of referenced value in the constant case.
39850 2015-02-03 Jakub Jelinek <jakub@redhat.com>
39852 PR rtl-optimization/64756
39853 * cse.c (invalidate_dest): New function.
39854 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
39855 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
39856 invalidate and do not record it.
39858 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
39861 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
39862 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
39863 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
39864 atomic_nand<mode>_soft_tcb): New insns.
39865 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
39866 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
39867 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
39868 Split into atomic_not_fetchsi_hard if operands[0] is unused.
39869 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
39870 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39871 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
39872 atomic_not<mode>_hard if operands[0] is unused.
39873 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
39874 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
39875 if operands[0] is unused.
39876 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
39877 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
39878 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
39879 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39881 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
39882 into atomic_not<mode>_soft_tcb if operands[0] is unused.
39883 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
39884 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
39885 if operands[0] is unused.
39886 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
39887 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
39888 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
39889 atomic_nand_fetchsi_hard if operands[0] is unused.
39890 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
39891 atomic_nand<mode>_hard if operands[0] is unused.
39892 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
39893 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
39894 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
39895 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39896 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
39897 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
39898 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
39899 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39900 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
39901 atomic_not<mode>_hard if operands[0] is unused.
39902 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
39903 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39905 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
39906 into atomic_not<mode>_soft_tcb if operands[0] is unused.
39907 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
39908 atomic_nand<mode>_hard if operands[0] is unused.
39909 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
39910 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39912 2015-02-03 David Malcolm <dmalcolm@redhat.com>
39915 * Makefile.in (GCC_OBJS): Add gcc-main.o.
39916 * gcc-main.c: New file, containing "main" taken from gcc.c.
39917 * gcc.c (do_self_spec): Free decoded_options.
39918 (class driver): Move declaration to gcc.h.
39919 (main): Move declaration and implementation to new file
39921 (driver_get_configure_time_options): New function.
39922 * gcc.h (class driver): Move this declaration here, from
39924 (driver_get_configure_time_options): New declaration.
39926 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
39928 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39929 cross-module inlining.
39930 * cgraph.h (cgraph_node): Add flag merged.
39931 * ipa-icf.c (sem_function::merge): Maintain it.
39933 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
39935 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39936 instead of OBJECT_P.
39938 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
39941 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39942 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39943 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39944 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39946 2015-02-03 Jakub Jelinek <jakub@redhat.com>
39949 * combine.c (reg_n_sets_max): New variable.
39950 (can_change_dest_mode, reg_nonzero_bits_for_combine,
39951 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39952 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39953 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39954 (rest_of_handle_combine): Initialize reg_n_sets_max.
39956 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
39958 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39959 if some always_inline was inlined, apply changes before inlining
39962 2015-02-02 David Malcolm <dmalcolm@redhat.com>
39965 * config/arm/arm.c (arm_option_override): Set
39966 arm_selected_arch/cpu/tune to NULL on entry.
39968 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
39969 Andrew Pinski <pinskia@gcc.gnu.org>
39970 Jakub Jelinek <jakub@gcc.gnu.org>
39973 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39974 integer typing for small model. Use IN_RANGE.
39976 2015-02-02 Richard Biener <rguenther@suse.de>
39978 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39979 * tree-vrp.c (vrp_valueize_1): Likewise.
39981 2015-02-02 Alan Modra <amodra@gmail.com>
39983 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39984 than mem for toc_restore.
39985 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39986 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39987 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39989 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
39992 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39993 explicit default options.
39995 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
39998 * ipa-utils.c (ipa_merge_profiles): Add release argument.
39999 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40000 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40002 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40005 * cfgexpand.c (deep_ter_debug_map): New variable.
40006 (avoid_deep_ter_for_debug): New function.
40007 (expand_debug_expr): If TERed SSA_NAME is in
40008 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40009 instead of trying to expand SSA_NAME's def stmt.
40010 (expand_debug_locations): When expanding debug bind
40011 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40012 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40014 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40015 all debug bind stmts. Delete deep_ter_debug_map after
40016 expand_debug_location if non-NULL and clear it.
40018 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40021 * config/sh/sync.md (atomic_fetch_notsi_hard,
40022 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40023 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40024 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40025 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40026 atomic_not_fetch<mode>_soft_imask): New insns.
40028 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40030 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40031 (rank_for_schedule_debug): Split from ...
40032 (rank_for_schedule): ... this.
40033 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40034 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40036 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40038 * doc/md.texi (Machine Constraints): Alphabetize table by target.
40039 * doc/extend.texi (x86 Variable Attributes): Move section to
40040 correct alphabetization after renaming.
40041 (x86 Type Attributes): Likewise.
40042 (Target Builtins): Re-alphabetize menu.
40043 (x86 Built-in Functions): Move section to correct alphabetization
40045 (x86 transactional memory intrinsics): Likewise.
40046 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40047 and x86 Windows Options in table and menu.
40048 (x86 Options): Move section to correct alphabetization after
40050 (x86 Windows Options): Likewise.
40052 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40054 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40055 preferred names of the architecture and its 32- and 64-bit
40057 * doc/invoke.texi: Likewise.
40058 * doc/md.texi: Likewise.
40060 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40063 * config/i386/predicates.md (address_no_seg_operand): Reject
40064 non-CONST_INT_P operands in invalid mode.
40066 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40068 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40069 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
40070 * config/i386/predicates.md (address_no_seg_operand): Call
40071 address_operand with VOIDmode.
40072 (vsib_address_operand): Ditto.
40073 (address_mpx_no_base_operand): Ditto.
40074 (address_mpx_no_index_operand): Ditto.
40076 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40079 * lra-constraints.c (original_subreg_reg_mode): New.
40080 (simplify_operand_subreg): Try to simplify subreg of const. Use
40081 original_subreg_reg_mode for it.
40082 (swap_operands): Update original_subreg_reg_mode.
40083 (curr_insn_transform): Set up original_subreg_reg_mode.
40085 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40088 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40090 (process_alt_operands): Use it.
40091 (curr_insn_transform): Check the optional reload pseudo class is
40094 2015-01-30 Joseph Myers <joseph@codesourcery.com>
40096 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
40097 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
40099 * toplev.h (init_asm_output): Update comment on use of
40100 UNKNOWN_LOCATION with fatal_error.
40101 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
40102 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
40103 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
40104 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
40105 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
40106 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
40107 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
40108 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
40109 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
40110 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
40111 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
40112 fatal_error changed to pass input_location as first argument.
40114 2015-01-30 Martin Liska <mliska@suse.cz>
40116 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
40117 in #pragma GCC diagnostic guards.
40119 2015-01-30 Richard Biener <rguenther@suse.de>
40121 PR tree-optimization/64829
40122 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
40123 not add a widening conversion pattern but hand off extra
40124 widenings to callers.
40125 (vect_recog_widen_mult_pattern): Handle extra widening produced
40126 by vect_handle_widen_op_by_const.
40127 (vect_recog_widen_shift_pattern): Likewise.
40128 (vect_pattern_recog_1): Remove excess vertical space in dumping.
40129 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
40130 (vect_init_vector_1): Likewise.
40131 (vect_get_vec_def_for_operand): Likewise.
40132 (vect_finish_stmt_generation): Likewise.
40133 (vectorizable_load): Likewise.
40134 (vect_analyze_stmt): Likewise.
40135 (vect_is_simple_use): Likewise.
40137 2015-01-29 Jeff Law <law@redhat.com>
40139 * combine.c (try_combine): Fix typo in comment.
40141 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
40144 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
40145 (rs6000_stack_info): Add assert.
40146 (rs6000_output_savres_externs): New function, split off from...
40147 (rs6000_output_function_prologue): ... here. Do not call it for
40150 2015-01-29 Jeff Law <law@redhat.com>
40153 * combine.c (try_combine): If I0 is a memory load and I3 a store
40154 to a related address, increase the "goodness" of doing a 4-insn
40155 combination with I0-I3.
40156 (make_field_assignment): Handle SUBREGs in the ior+and case.
40158 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
40160 PR tree-optimization/64746
40161 * tree-if-conv.c (mask_exists): New function.
40162 (predicate_mem_writes): Save created mask with given size for further
40164 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
40165 (ifcvt_repair_bool_pattern): Collect all statements that are root
40166 of bool pattern and use iterative algorithm to remove multiple uses
40167 of predicates, display number of required iterations.
40169 2015-01-29 Richard Biener <rguenther@suse.de>
40171 PR tree-optimization/64853
40172 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
40173 stmt will get simulated again.
40174 * tree-ssa-ccp.c (valueize_op_1): Likewise.
40176 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40178 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
40179 return_in_pc. Remove redundant assignments.
40180 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
40181 (arm_expand_epilogue): Don't compare boolean with true in if condition.
40183 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
40185 * config/i386/i386.c (ix86_mode_after): Make static.
40187 2015-01-29 Richard Biener <rguenther@suse.de>
40189 PR tree-optimization/64844
40190 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
40191 dump cost model analysis.
40192 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
40193 Do not register adjusted load/store costs here.
40195 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40196 Uros Bizjak <ubizjak@gmail.com>
40198 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
40199 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
40200 using x86_use_pseudo_pic_reg.
40201 * config/i386/i386.c (ix86_conditional_register_usage): Remove
40202 support for fixed PIC register.
40203 (ix86_use_pseudo_pic_reg): Not static any more.
40205 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40207 PR middle-end/64805
40208 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
40209 to avoid error in cgraph node verification.
40211 2015-01-29 Marek Polacek <polacek@redhat.com>
40213 * doc/standards.texi: Reflect that the default for C is gnu11.
40215 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
40218 * reorg.c (switch_text_sections_between_p): New function.
40219 (relax_delay_slots): Call it when testing if the jump insn
40220 is removable. Use targetm.can_follow_jump when testing if
40221 the conditional branch can follow an unconditional jump.
40223 2015-01-27 Caroline Tice <cmtice@google.com>
40225 Committing VTV Cywin/Ming patch for Patrick Wollgast
40226 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
40227 if -fvtable-verify=preinit/std is used.
40228 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
40229 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
40230 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
40231 if -fvtable-verify=preinit/std is used.
40232 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40233 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
40234 if -fvtable-verify=preinit/std is used.
40235 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
40236 * config/i386/mingw32.h (LIB_SPEC): Likewise.
40237 * varasm.c (assemble_variable): Add code to properly set the comdat
40238 section and name for the .vtable_map_vars section in case the
40239 target is PE or COFF.
40241 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40244 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
40245 make sane BB profile.
40246 (cgraph_node::expand_thunk): Make sane BB profile.
40247 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
40248 * cgraph.h (init_lowered_empty_function): Update prototype.
40249 * config/i386/i386.c (make_resolver_func): Update call.
40250 * predict.c (gate): Disable branch prediction pass if
40251 profile is already there.
40253 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40255 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
40256 * opth-gen.awk: Likewise.
40257 * common.opt: Mark flag_fp_contract_mode as Optimization.
40259 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
40261 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
40262 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
40264 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
40267 * config/sh/predicates.md (atomic_arith_operand,
40268 atomic_logical_operand): Remove.
40269 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
40270 (atomic_arith_operand_0): New predicate.
40271 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
40272 Use atomic_arith_operand_0 for input values.
40273 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
40274 atomic_compare_and_swap<mode>_soft_gusa,
40275 atomic_compare_and_swap<mode>_soft_tcb,
40276 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
40277 arith_reg_operand instead of register_operand.
40278 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
40279 atomic_arith_operand_0 for newval input.
40280 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
40281 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
40282 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
40283 arith_reg_operand instead of register_operand.
40284 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
40285 fetchop_predicate_1, fetchop_constraint_1_llcs,
40286 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
40287 fetchop_constraint_1_imask): New code iterator attributes.
40288 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
40289 register_operand. Use fetchop_predicate_1.
40290 (atomic_fetch_<fetchop_name>si_hard,
40291 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
40292 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
40293 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
40294 and arith_reg_operand instead of register_operand. Use
40295 fetchop_predicate_1, fetchop_constraint_1_gusa.
40296 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
40297 and arith_reg_operand instead of register_operand. Use
40298 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
40300 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
40301 and arith_reg_operand instead of register_operand. Use
40302 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
40304 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
40305 register_operand. Use atomic_logical_operand_1.
40306 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
40307 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
40308 arith_reg_operand instead of register_operand.
40309 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
40310 Use arith_reg_dest and arith_reg_operand instead of register_operand.
40311 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
40312 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
40313 register_operand. Use fetchop_predicate_1.
40314 (atomic_<fetchop_name>_fetchsi_hard,
40315 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
40316 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40317 fetchop_constraint_1_llcs.
40318 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40319 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40320 fetchop_constraint_1_gusa.
40321 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40322 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40323 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
40324 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40325 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40326 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
40327 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40328 register_operand. Use atomic_logical_operand_1.
40329 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40330 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40331 arith_reg_operand instead of register_operand.
40332 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40333 arith_reg_operand instead of register_operand. Use logical_operand
40334 and K08. Adjust asm sequence to allow R0 usage.
40335 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40336 arith_reg_operand instead of register_operand. Use logical_operand
40339 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40342 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40343 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40344 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40345 only get_full_len HOST_WIDE_INTs from get_val () array rather than
40346 all bits in *val_wide.
40348 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
40350 * varpool.c (tls_model_names): Fix names.
40351 (varpool_node::dump): Dump tls- prefix for tls models.
40353 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
40354 Bernd Schmidt <bernds@codesourcery.com>
40355 Nathan Sidwell <nathan@codesourcery.com>
40357 * config/nvptx/mkoffload.c: New file.
40358 * config/nvptx/t-nvptx: Add build rules for it.
40359 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40360 (extra_programs): Add mkoffload.
40361 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40363 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40365 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
40367 PR middle-end/64809
40368 * cfgexpand.c (reorder_operands): Skip debug gimples.
40370 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
40372 PR tree-optimization/64277
40373 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40374 range info when possible to refine estimation.
40376 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
40378 PR tree-optimization/64718
40379 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40380 be a 16bit unsigned integer when n->range is 16.
40381 (bswap_replace): Convert src to that type if necessary for all bswap
40382 sizes. Fix rotation right notation in nearby comment. Use bswap_type
40383 set in pass_optimize_bswap::execute ().
40385 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
40387 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40388 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40389 integer and floating point variants.
40390 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40392 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
40394 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40395 for all vector modes.
40397 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40400 * doc/sourcebuild.texi (comdat_group): Document.
40402 2015-01-28 Terry Guo <terry.guo@arm.com>
40404 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40406 2015-01-27 David Malcolm <dmalcolm@redhat.com>
40408 * toplev.c (print_version): Add param "show_global_state", and
40409 only print GGC and plugin information if it is true.
40410 (init_asm_output): Pass in "true" for the new param when calling
40412 (process_options): Likewise.
40413 (toplev::main): Likewise.
40414 * toplev.h (print_version): Add new param to decl.
40416 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40420 * tree.c (lookup_binfo_at_offset): New function.
40421 (get_binfo_at_offset): Use it.
40423 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40426 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40427 on vtable being vtable.
40429 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
40431 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40432 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40433 -mhotpatch= option.
40434 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40435 -mno-hotpatch options. Change syntax of -mhotpatch= option.
40436 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40438 (s390_hotpatch_trampoline_halfwords_max): Renamed.
40439 (s390_hotpatch_hw_max): New name.
40440 (s390_hotpatch_trampoline_halfwords): Renamed.
40441 (s390_hotpatch_hw_before_label): New name.
40442 (get_hotpatch_attribute): Removed.
40443 (s390_hotpatch_hw_after_label): New name.
40444 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40446 (s390_attribute_table): Ditto.
40447 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40448 (s390_function_num_hotpatch_hw): New name.
40449 Remove special handling of inline functions and hotpatching.
40450 Return number of nops before and after the function label.
40451 (s390_can_inline_p): Removed.
40452 (s390_asm_output_function_label): Emit a configurable number of nops
40453 after the function label.
40454 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40455 (TARGET_CAN_INLINE_P) Removed.
40456 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40458 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40459 Jiong Wang <jiong.wang@arm.com>
40461 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40463 (cb<optab><mode>1): Likewise.
40464 * config/aarch64/iterators.md (bcond): New define_code_attr.
40466 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40468 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40471 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40473 * config/s390/s390.c (s390_register_move_cost): Increase costs for
40476 2015-01-27 Richard Biener <rguenther@suse.de>
40478 * tree-vrp.c (update_value_range): Intersect the range with
40479 old recorded SSA name range information.
40481 2015-01-27 Nick Clifton <nickc@redhat.com>
40483 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40484 BC, DE and HL registers directly, not via AX.
40485 When decrementing the stack pointer by a large amount, transfer SP
40486 into AX and perform the subtraction there.
40487 (rl78_expand_epilogue): Perform the inverse of the above
40490 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40492 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40494 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40495 Yury Gribov <y.gribov@samsung.com>
40498 * ubsan.c (ubsan_source_location): Refactor code.
40499 (ubsan_type_descriptor): Update type size. Refactor code.
40501 2015-01-27 Richard Biener <rguenther@suse.de>
40503 PR tree-optimization/56273
40504 PR tree-optimization/59124
40505 PR tree-optimization/64277
40506 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40507 from the first VRP pass.
40509 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40512 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40513 handle the first argument in the same loop as all the other arguments.
40515 PR rtl-optimization/61058
40516 * jump.c (cleanup_barriers): Update basic block boundaries
40517 if BLOCK_FOR_INSN is non-NULL on PREV.
40519 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
40521 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40522 bounds narrowing, already instrumented calls and calls to
40523 not instrumentable functions.
40525 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40527 PR tree-optimization/64807
40528 * wide-int.cc (wi::divmod_internal): Clear
40529 b_dividend[dividend_blocks_needed].
40531 2015-01-26 DJ Delorie <dj@redhat.com>
40533 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40534 volatile memory references.
40536 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
40539 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40541 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40542 shifts if it already fits into K08.
40544 2015-01-26 Jakub Jelinek <jakub@redhat.com>
40547 * ipa-inline.c (inline_small_functions): Print "unknown" even
40548 if edge->call_stmt is non-NULL, but has builtins or unknown
40551 PR middle-end/64421
40552 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40553 with asterisk, skip the first character.
40555 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
40558 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40561 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
40564 * config/i386/i386.md (*movdi_internal): Also check operand 0
40565 to determine TYPE_LEA operand.
40566 (*movsi_internal): Ditto.
40568 2015-01-26 Jakub Jelinek <jakub@redhat.com>
40570 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40571 OPTION_MASK_QUAD_MEMORY_ATOMIC.
40573 2015-01-26 Renlin Li <renlin.li@arm.com>
40575 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40577 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40580 2015-01-26 Richard Biener <rguenther@suse.de>
40582 PR middle-end/64764
40583 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40584 combining two BIT_AND_EXPR predicates.
40586 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
40589 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40591 2015-01-26 Terry Guo <terry.guo@arm.com>
40593 * config/arm/arm.c (arm_file_start): Update the assignment of
40594 Tag_ABI_HardFP_use.
40596 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
40598 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40600 config/arm/arm.md: Include the new Cortex-A57 model.
40601 (generic_sched): Don't use generic_sched when tuning for
40604 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
40605 Uros Bizjak <ubizjak@gmail.com>
40607 * config/i386/i386.c (get_builtin_code_for_version): Add
40608 support for BMI and BMI2 multiversion functions.
40610 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40612 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
40613 (extract_bit_field): Likewise.
40614 (extract_low_bits): Likewise.
40615 (expand_mult): Likewise.
40616 (expand_mult_highpart_adjust): Likewise.
40618 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
40620 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
40621 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
40622 * config/i386/i386.c (processor_model): Add
40623 M_INTEL_COREI7_BROADWELL.
40624 (arch_names_table): Add "broadwell".
40626 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
40635 * config/sh/sh-protos.h
40636 (sh_extending_set_of_reg::can_use_as_unextended_reg,
40637 sh_extending_set_of_reg::use_as_unextended_reg,
40638 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
40639 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
40640 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
40641 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
40642 (sh_treg_insns): New class.
40643 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
40644 (scope_counter): New class.
40645 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
40646 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
40647 sh_extending_set_of_reg::can_use_as_unextended_reg,
40648 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
40649 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
40650 sh_split_treg_set_expr): New functions.
40651 (addsubcosts): Handle treg_set_expr.
40652 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
40653 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
40654 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
40655 (sh_insn_operands_modified_between_p): Make non-static.
40656 * config/sh/predicates.md (zero_extend_movu_operand): Allow
40657 simple_mem_operand in addition to displacement_mem_operand.
40658 (zero_extend_operand): Don't allow zero_extend_movu_operand.
40659 (treg_set_expr, treg_set_expr_not_const01,
40660 arith_reg_or_treg_set_expr): New predicates.
40661 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
40662 arith_or_int_operand instead of logical_operand. Convert to
40663 insn_and_split. Try to optimize constant operand in splitter.
40664 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
40665 (*tstqi_t_zero): Delete.
40666 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
40667 (tstsi_t_and_not): Delete.
40668 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
40669 Convert to insn_and_split.
40670 (unnamed split, tstsi_t_zero_extract_xor,
40671 tstsi_t_zero_extract_subreg_xor_little,
40672 tstsi_t_zero_extract_subreg_xor_big): Delete.
40673 (*tstsi_t_shift_mask): New insn_and_split.
40674 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
40675 to recombine with surrounding insns when splitting.
40676 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
40677 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
40678 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
40679 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
40680 (*cbranch_div0s: Delete.
40681 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
40682 Try to recombine with surrounding insns when splitting. Add operand
40684 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
40685 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
40686 *addc_r_r_msb, *addc_2r_msb): Delete.
40687 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
40689 (*addc_negreg_t): New insn_and_split.
40690 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
40691 Try to recombine with surrounding insns when splitting.
40692 Add operand order variants.
40693 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
40694 insn_and_split patterns.
40695 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
40696 surrounding insns when splitting.
40697 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
40698 (*rotcl): Likewise. Add zero_extract variant.
40699 (*ashrsi2_31): New insn_and_split.
40700 (*negc): Convert to insn_and_split. Use treg_set_expr.
40701 (*zero_extend<mode>si2_disp_mem): Update comment.
40702 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
40704 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
40705 with surrounding insns when splitting.
40706 (any_treg_expr_to_reg): New insn_and_split.
40707 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
40708 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
40709 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
40710 *zero_extract_2): New single bit zero extract patterns.
40711 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
40712 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
40713 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
40714 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
40716 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
40717 register_operand for set source.
40719 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
40721 * i386.opt (prefetch_sse): New targetsave.
40722 * i386.c (ix86_function_specific_save): Save prefetch_sse.
40723 (ix86_function_specific_restore): Restore prefetch_sse and initialize
40724 ix86_cost/ix86_tune_cost.
40726 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40728 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
40729 Support the JIT by using 0 as the language type.
40731 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
40734 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
40735 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
40736 (mark_regno_live, process_bb_lives): Pass new parameter value to
40737 make_hard_regno_born.
40739 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40741 PR rtl-optimization/63637
40742 PR rtl-optimization/60663
40743 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
40744 if elt->cost is MAX_COST for ASM_OPERANDS.
40745 (find_sets_in_insn): Fix up comment typo.
40746 (cse_insn): Don't set src_volatile for all non-volatile
40747 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
40748 or with "memory" clobber. Set elt->cost to MAX_COST
40749 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
40750 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
40752 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
40754 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
40757 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
40759 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
40760 libgcc/config/i386/elf-lib.h.
40762 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40765 * gcc.c (print_configuration): Don't print a blank line at the end
40767 (run_attempt): ... but here unstead.
40769 PR middle-end/64734
40770 * omp-low.c (scan_sharing_clauses): Don't ignore
40771 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
40772 on target data/update constructs.
40774 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
40777 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
40778 (DEBUG_RELOAD): Removed define.
40779 (m32c_limit_reload_class): Enable traces with if DEBUG0.
40780 (m32c_function_arg): Added a type cast.
40781 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
40782 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
40783 * config/m32c/bitops.md (andqi3_16): Likewise.
40784 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
40785 (push_a01_l): Likewise.
40787 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40790 * main.c (main): Construct toplev instances with init_signals=true.
40791 * toplev.c (general_init): Add param "init_signals", and use it to
40792 conditionalize the calls to signal and host_hooks.extra_signals.
40793 (toplev::toplev): Add param "init_signals".
40794 (toplev::main): When invoking general_init, pass m_init_signals
40795 to control whether signal-handlers are installed.
40796 * toplev.h (toplev::toplev): Add param "init_signals".
40797 (toplev::m_init_signals): New field.
40799 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40802 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
40803 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
40804 latter may be affected by the former (e.g. on i686).
40806 2015-01-23 Martin Liska <mliska@suse.cz>
40808 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
40809 false positive during profiledbootstrap.
40811 2015-01-23 Tom de Vries <tom@codesourcery.com>
40814 * lto-opts.c (lto_write_options): Output non-explicit conservative
40816 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
40817 (append_compiler_options): Pass -fopenacc through.
40819 2015-01-23 Tom de Vries <tom@codesourcery.com>
40822 * lto-opts.c (lto_write_options): Output non-explicit conservative
40824 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
40825 (append_compiler_options): Pass -fopenmp through.
40827 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40830 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
40833 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
40834 * diagnostic.def (DK_ICE_NOBT): New kind.
40835 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
40836 like DK_ICE, but never print backtrace.
40837 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
40838 (internal_error_no_backtrace): New function.
40839 * gcc.c (execute): Use internal_error_no_backtrace instead of
40842 2015-01-22 Jeff Law <law@redhat.com>
40845 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
40846 improve code density for small immediate to memory case.
40847 (insv): Better handle bitfield assignments when the field is
40848 being set to all ones.
40849 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
40852 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40853 Jakub Jelinek <jakub@redhat.com>
40855 PR middle-end/64729
40856 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
40857 for !TARGET_LIBC_PROVIDES_SSP version and
40858 -fstack-protector-{all,strong,explicit} otherwise.
40859 * config/freebsd.h (LINK_SSP_SPEC): Handle
40860 -fstack-protector-{strong,explicit}.
40862 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
40863 H.J. Lu <hongjiu.lu@intel.com>
40866 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
40869 2015-01-22 Wei Mi <wmi@google.com>
40871 PR rtl-optimization/64557
40872 * dse.c (record_store): Call get_addr for mem_addr.
40873 (check_mem_read_rtx): Likewise.
40875 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
40877 * fold-const.c (const_binop): Add early return for non-tcc_binary.
40879 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
40881 * toplev.c (init_local_tick): Process the failure when read
40882 fails for random_seed.
40884 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
40885 'pretty_name' to avoid memory overflow.
40887 2015-01-22 Richard Biener <rguenther@suse.de>
40889 PR middle-end/64728
40890 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
40891 abnormal coalescing on undefined SSA names.
40893 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
40897 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
40899 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
40901 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
40903 PR middle-end/63325
40904 * fold-const.c (fold_checksum_tree): Don't include value of
40905 expr->decl_with_vis.symtab_node in the checksum.
40907 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40909 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
40911 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
40914 * gcc.c (insert_comments): New function.
40915 (try_generate_repro): Call it.
40916 (append_text): Removed.
40918 2015-01-22 Richard Biener <rguenther@suse.de>
40920 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40921 with IL incompatible options. Properly honor user optimize
40924 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
40926 PR rtl-optimization/64682
40927 * combine.c (distribute_notes): When moving a death note for
40928 a register that is set in the new I2, make sure to put it
40929 before that new I2.
40931 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
40933 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40934 not TARGET_DEFAULT.
40936 2015-01-21 Jakub Jelinek <jakub@redhat.com>
40939 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40940 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40941 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40944 * doc/invoke.texi (-fsanitize=vptr): Document.
40946 PR rtl-optimization/62078
40947 * dse.c: Include cfgcleanup.h.
40948 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40949 anything call purge_all_dead_edges and cleanup_cfg at the end
40952 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
40954 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40957 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
40959 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40962 2015-01-21 David Sherwood <david.sherwood@arm.com>
40963 Tejas Belagod <Tejas.Belagod@arm.com>
40965 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40966 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40967 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40970 2015-01-21 David Sherwood <david.sherwood@arm.com>
40971 Tejas Belagod <Tejas.Belagod@arm.com>
40973 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40974 (aarch64_reverse_mask): New decls.
40975 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40976 (insn_count): New mode_attr.
40977 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40978 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40979 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40980 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40981 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40982 (aarch64_simd_st4): New patterns.
40983 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40984 (aarch64_reverse_mask): New functions.
40986 2015-01-21 Alan Hayward <alan.hayward@arm.com>
40988 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40990 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40991 addressing modes for BE.
40992 (aarch64_print_operand): Add 'R' specifier.
40993 (aarch64_simd_disambiguate_copy): Delete.
40994 (aarch64_simd_emit_reg_reg_move): New function.
40995 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40996 in define_splits for structural moves.
40997 (mov<mode>): Use less restrictive predicates.
40998 (*aarch64_mov<mode>): Simplify and only allow for LE.
40999 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41001 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41003 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41005 2015-01-21 Richard Henderson <rth@redhat.com>
41008 * ccmp.c (used_in_cond_stmt_p): Remove.
41009 (expand_ccmp_expr): Don't use it.
41011 2015-01-21 Nick Clifton <nickc@redhat.com>
41013 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41016 2015-01-21 Richard Biener <rguenther@suse.de>
41018 PR middle-end/64313
41019 * tree-core.h (builtin_info, builtin_info_type): Turn from
41020 an object with two arrays into an array of an object with
41021 decl and two flags, implicit_p and declared_p.
41022 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41023 set_builtin_decl, set_builtin_decl_implicit_p,
41024 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41025 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41026 * builtins.c (builtin_info): Adjust.
41027 * gimplify.c (gimplify_addr_expr): References to builtins
41028 that have been declared by the user makes them eligible for
41029 use by the compiler. Call set_builtin_decl_implicit_p on them.
41031 2015-01-20 Jeff Law <law@redhat.com>
41034 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41035 allow pc-relative addresses in operand predicates or constraints.
41037 2015-01-21 Bin Cheng <bin.cheng@arm.com>
41039 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41040 neon on aarch32 processors for stringops.
41042 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41045 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41047 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41050 * ipa-inline.c: Include lto-streamer.h
41051 (report_inline_failed_reason): Output source file differences and
41052 flags on optimization/target node mismatch.
41053 (can_inline_edge_p): Consider caller to be the outer inline function;
41054 be less restrictive about matching opimize and optimize_size attributes.
41055 (inline_account_function_p): Break out from ...
41056 (inline_small_functions): ... here.
41057 * ipa-inline-transform.c (clone_inlined_nodes): Use
41058 inline_account_function_p.
41059 (inline_call): Use optimize attribution; use inline_account_function_p.
41060 (inline_transform): Use opt_for_fn.
41061 * ipa-inline.h (inline_account_function_p): Declare.
41063 2015-01-20 Jakub Jelinek <jakub@redhat.com>
41066 * dwarf2out.c (decl_piece_node): Don't put bitsize into
41067 mode if bitsize <= 0.
41068 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41069 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41070 sizes and positions.
41072 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
41074 * config/nios2/nios2.c (nios2_asm_file_end): Implement
41075 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41077 (TARGET_ASM_FILE_END): Define.
41079 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41081 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41082 (struct tune_params): Use the enum.
41083 * arm.c (arm_*_tune): Update.
41084 (arm_option_override): Update.
41086 2015-01-20 Richard Biener <rguenther@suse.de>
41089 * ipa-reference.c (add_static_var): Inline ...
41090 (analyze_function): ... here after splitting out from ...
41091 (is_proper_for_analysis): ... this.
41093 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
41096 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
41097 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
41098 replace the conditional with it's true branch.
41099 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
41100 (arm_lra_p): Remove.
41102 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
41104 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
41106 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41108 * config/tilegx/mul-tables.c: Move symtab.h include after
41109 coretypes.h include.
41110 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
41111 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
41112 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
41113 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
41114 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41116 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
41120 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41122 PR rtl-optimization/64081
41123 * loop-iv.c (def_pred_latch_p): New function.
41124 (latch_dominating_def): Allow specific cases with non-single
41126 (iv_get_reaching_def): Likewise.
41127 (check_complex_exit_p): New function.
41128 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41129 with exits not executing on any iteration.
41131 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41134 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
41135 to set branch cost.
41137 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41140 * i386.c (gate): Check flag_expensive_optimizations and
41142 (ix86_option_override_internal): Drop optimize_size condition
41143 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
41144 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
41145 MASK_PREFER_AVX128.
41146 (ix86_avx256_split_vector_move_misalign,
41147 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
41148 * sse.md (all uses of TARGET_PREFER_AVX128): Add
41149 optimize_insn_for_speed_p check.
41151 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
41153 * config/mips/mips.h (FP_ASM_SPEC): New define.
41154 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
41157 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
41160 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
41161 nullptr for insn when reaching the first insn.
41162 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
41163 (sh_insn_operands_modified_between_p): Add nullptr check.
41164 (sh_find_extending_set_of_reg): Fix log message. Don't accept
41165 sign extending mem load if the insn contains any UNSPEC or
41168 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41170 * params.def (inline-unit-growth): Drop to 15%.
41171 * invoke.texi (inline-unit-growth): Document change.
41173 2015-01-19 Martin Liska <mliska@suse.cz>
41176 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
41177 function for second argument of OBJ_TYPE_REF.
41179 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41182 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
41183 whether function is an alias.
41185 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41187 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
41190 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
41192 PR rtl-optimization/64671
41193 * lra-remat.c (operand_to_remat): Don't consider jump and call
41196 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
41199 * config/rs6000/default64.h: Include rs6000-cpus.def.
41200 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
41201 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
41202 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
41204 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
41206 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
41207 pseudo-op to specify assembler dialect.
41209 2015-01-19 Martin Liska <mliska@suse.cz>
41212 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
41213 Handle safe potentially removed nodes during filtering.
41215 2015-01-19 Martin Liska <mliska@suse.cz>
41217 * doc/extend.texi (no_icf): Add new attribute description.
41218 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
41219 where the pass attempts to merge a function with no_icf attribute.
41221 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41224 * doc/md.texi (ARM Options): Document register constraints.
41226 2015-01-19 Jiong Wang <jiong.wang@arm.com>
41227 Andrew Pinski <apinski@cavium.com>
41230 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
41231 (ashl<mode>3): Don't expand if operands[2] is not constant.
41233 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41236 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
41237 Match xor-and-xor RTL pattern.
41239 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41241 PR rtl-optimization/64081
41242 * loop-iv.c (def_pred_latch_p): New function.
41243 (latch_dominating_def): Allow specific cases with non-single
41245 (iv_get_reaching_def): Likewise.
41246 (check_complex_exit_p): New function.
41247 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41248 with exits not executing on any iteration.
41250 2015-01-19 Jakub Jelinek <jakub@redhat.com>
41252 * common.opt (fgraphite): Fix a typo.
41254 2015-01-19 Felix Yang <felix.yang@huawei.com>
41256 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
41258 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
41259 uminp, smax_nanp, smin_nanp): New builtins.
41260 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
41261 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
41262 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
41263 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
41264 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
41265 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41266 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
41267 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
41268 vpminnms_f32): Rewrite using builtin functions.
41270 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
41273 * omp-low.c (offload_symbol_decl): Remove variable.
41274 (get_offload_symbol_decl): Remove function.
41275 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
41276 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
41277 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
41278 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
41279 BUILT_IN_GOACC_UPDATE don't pass it at all.
41281 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41283 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
41286 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41288 * ipa-chkp.c (chkp_produce_thunks): Add early param
41289 to split thunks production into two passes. Keep
41290 'always_inline' function bodies after the first pass.
41291 (pass_data_ipa_chkp_early_produce_thunks): New.
41292 (pass_ipa_chkp_early_produce_thunks): New.
41293 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
41294 chkp_produce_thunks signature.
41295 (make_pass_ipa_chkp_early_produce_thunks): New.
41296 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
41297 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
41298 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
41300 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41302 * cgraph.c (cgraph_node::dump): Dump profile flags.
41304 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
41307 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
41308 reg appear first in the parallel.
41310 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41312 * ipa-reference.c (set_reference_optimization_summary,
41313 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
41315 (ignore_module_statics): New static var.
41316 (propagate_bits): If ipa-reference is disabled, do not look into local
41318 (analyze_function): Disable analysis when ipa_reference is disabled.
41319 (generate_summary): Do not dump when reference is disabled;
41320 collect vars accessed from functions with ipa-reference disabled.
41321 (get_read_write_all_from_node): When ipa-reference is disabled, use the
41323 (gate): Enable for LTO.
41324 (ignore_edge_p): New function.
41325 (propagate): Skip functions w/o ipa-reference analysis.
41326 * optc-save-gen.awk: Handle optimize_debug correctly.
41327 * opth-gen.awk: Likewise.
41328 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41329 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41330 fira-share-save-slots, fira-share-spill-slots,
41331 fmodulo-sched-allow-regmoves, fpartial-inlining,
41332 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41333 ftracer, ftree-parallelize-loops, fassociative-math,
41334 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41336 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41337 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41339 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41342 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41345 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41347 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41349 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
41351 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41352 Remove duplicate option listings.
41354 2015-01-18 Felix Yang <felix.yang@huawei.com>
41356 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41357 (autofdo_source_profile::get_callsite_total_count,
41358 function_instance::get_function_instance_by_decl,
41359 string_table::get_index, string_table::get_index_by_decl,
41360 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41361 Fix comment typos. Reformatting and minor code rearrangement.
41363 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41365 * config/rs6000/rs6000.md (probe_stack): Delete.
41366 (probe_stack_address): New.
41368 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41370 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41371 to test for 32-bit ABIs, not !TARGET_POWERPC64.
41373 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41375 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41376 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
41377 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
41379 (rs6000_libcall_value): Use the new function.
41381 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
41383 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41385 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
41387 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41388 implement a more precise life analysis for it during backward scan.
41390 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
41392 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41394 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
41396 PR rtl-optimization/52773
41397 * calls.c (emit_library_call_value): When pushing arguments use
41398 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41399 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
41400 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41402 2015-01-17 Jeff Law <law@redhat.com>
41404 PR rtl-optimization/32790
41405 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41406 not ZERO_EXTEND in SET_DESTs.
41408 2015-01-17 Alan Modra <amodra@gmail.com>
41410 * cprop.c (do_local_cprop): Revert last change.
41412 2015-01-16 DJ Delorie <dj@redhat.com>
41413 Nick Clifton <nickc@redhat.com>
41415 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41416 (addhi3_real): Likewise. Fix [HL+0] syntax.
41417 (subqi3_real): Likewise.
41418 (subhi3_real): Likewise.
41419 (cbranchqi4_real): Likewise. Allow saddr,#imm.
41420 (cbranchhi4_real): Likewise.
41421 (cbranchhi4_real_inverted): Likewise.
41422 (cbranchsi4_real_lt): Likewise.
41423 (cbranchsi4_real_ge): Likewise.
41424 (cbranchsi4_real_ge): Likewise.
41425 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41426 (sub<mode>3_virt): Likewise.
41427 (cbranchqi4_virt): Likewise.
41428 (cbranchhi4_virt): Likewise.
41429 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41430 always use '[reg+imm]' even when imm is zero.
41431 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41432 (rl78_general_operand): New.
41433 (rl78_nonimmediate_operand): New.
41434 (rl78_nonfar_operand): Use them.
41435 (rl78_nonfar_nonimm_operand): Likewise.
41436 (rl78_stack_based_mem): Fix.
41437 * config/rl78/constraints.md (Ibqi): New.
41442 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41443 (iorqi3): Likewise.
41444 (xorqi3): Likewise.
41445 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41447 * config/rl78/constrains (Qs8): New constraint.
41448 * config/rl78/rl78.c (rl78_flags_already_set): New function.
41449 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41450 * config/rl78/rl78-real.md (update_Z): New attribute.
41451 Update patterns to set it.
41452 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41453 shorter compare and branch sequence can be used.
41454 (cbranchhi4_real): Likewise.
41455 (cbranchhi4_real_inverted): Likewise.
41457 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41458 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41460 * config/rl78/rl78.c (rl78_get_name_encoding): New.
41461 (rl78_option_override): Allow -mes0 only if C.
41462 (characterize_address): Support subregs of symbol_refs.
41463 (rl78_addr_space_address_mode): Move. Add __near.
41464 (rl78_far_p): Likewise.
41465 (rl78_addr_space_pointer_mode): Likewise.
41466 (rl78_as_legitimate_address): Likewise.
41467 (rl78_addr_space_subset_p): Likewise.
41468 (rl78_addr_space_convert): Likewise.
41469 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41470 symbols with -mes0.
41471 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
41473 (rl78_alloc_physical_registers_op1): Change logic to prefer
41474 symbol[BC] addressing.
41475 (frodata_section): New.
41476 (rl78_asm_init_sections): Initialize it.
41477 (rl78_select_section): Put __far readonly symbols in .frodata.
41478 (rl78_make_type_far): New.
41479 (rl78_insert_attributes): Force all readonly symbols to be
41481 (rl78_asm_out_integer): New.
41482 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41483 * config/rl78/rl78.opt (-mes0): New.
41485 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41486 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41487 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41488 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41489 (rl78_saddr_p): New.
41490 (rl78_output_aligned_common): New.
41491 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41492 (rl78_handle_saddr_attribute): New.
41493 (rl78_handle_naked_attribute): New.
41494 (rl78_attribute_table): Add saddr.
41495 (rl78_print_operand_1): Don't print '!' on saddr operands.
41496 (rl78_print_operand_1): Strip encodings.
41498 (rl78_strip_name_encoding): New.
41499 (rl78_attrlist_to_encoding): New.
41500 (rl78_encode_section_info): New.
41501 (rl78_asm_init_sections): New.
41502 (rl78_select_section): New.
41503 (rl78_output_labelref): New.
41504 (rl78_output_aligned_common): New.
41505 (rl78_asm_out_integer): New.
41506 (rl78_asm_ctor_dtor): New.
41507 (rl78_asm_constructor): New.
41508 (rl78_asm_destructor): New.
41510 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41511 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41512 (transcode_memory_rtx): Update.
41513 (rl78_expand_epilogue): Use A_REG instead of 0.
41515 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41517 * config/arm/arm-protos.h (struct tune_params): New field
41518 sched_autopref_queue_depth.
41519 * config/arm/arm.c (sched-int.h): Include header.
41520 (arm_first_cycle_multipass_dfa_lookahead_guard,)
41521 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41522 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41523 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41524 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41525 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41526 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41527 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41528 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
41529 * config/arm/t-arm (arm.o): Update.
41530 * haifa-sched.c (update_insn_after_change): Update.
41531 (rank_for_schedule): Use auto-prefetcher model, if requested.
41532 (autopref_multipass_init): New static function.
41533 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41534 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41535 variable for debug dumps.
41536 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41537 (autopref_multipass_dfa_lookahead_guard): New global function that
41538 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41539 (init_h_i_d): Update.
41540 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41541 * sched-int.h (enum autopref_multipass_data_status): New const enum.
41542 (autopref_multipass_data_): Structure for auto-prefetcher data.
41543 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41544 (struct _haifa_insn_data:autopref_multipass_data): New field.
41545 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41546 (autopref_multipass_dfa_lookahead_guard): Declare.
41548 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41550 * rtlanal.c (get_base_term): Handle SCRATCH.
41552 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41554 * config/aarch64/aarch64.c
41555 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41556 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41558 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41559 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41561 2015-01-17 Alan Modra <amodra@gmail.com>
41563 * cprop.c (do_local_cprop): Disallow replacement of fixed
41566 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41569 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41572 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
41574 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41575 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41577 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41579 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41580 * config/arm/thumb1.md: ... Here.
41582 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41584 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41585 TImode for TARGET_32BIT.
41587 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41589 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41590 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41592 (rs6000_abi_word_mode): New function.
41594 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41596 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41597 instead of UNITS_PER_WORD to describe the size of stack slots.
41599 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41601 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41602 as rs6000_promote_function_mode. Move comment to there.
41603 (rs6000_promote_function_mode): New function.
41605 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41607 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41608 -mpowerpc64 is active.
41610 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
41612 PR middle-end/64353
41613 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
41616 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
41618 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
41619 introduced in revision 219724.
41621 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41622 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41625 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
41626 destination is not a GP reg.
41627 (*movdi_aarch64): Likewise.
41629 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
41632 * config/rs6000/default64.h: Revert ISA change.
41634 2015-01-16 Richard Biener <rguenther@suse.de>
41636 PR middle-end/64614
41637 * tree-ssa-uninit.c: Include tree-cfg.h.
41638 (MAX_SWITCH_CASES): New define.
41639 (convert_control_dep_chain_into_preds): Handle switch statements.
41640 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
41641 (normalize_one_pred_1): Do not split bit-manipulations.
41644 2015-01-16 Richard Biener <rguenther@suse.de>
41646 PR tree-optimization/64568
41647 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
41648 complex load rewriting for TARGET_MEM_REFs.
41650 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
41652 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
41654 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
41657 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
41659 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
41660 (aarch64_lra_p): Remove.
41662 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
41665 * ipa-chkp.h (chkp_instrumentable_p): New.
41666 * ipa-chkp.c: Include tree-inline.h.
41667 (chkp_instrumentable_p): New.
41668 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
41669 Fix processing of not instrumentable functions.
41670 (chkp_versioning): Use chkp_instrumentable_p. Warn about
41671 not instrumentable functions.
41672 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
41673 chkp_instrumentable_p.
41674 * tree-inline.h (copy_forbidden): New.
41675 * tree-inline.c (copy_forbidden): Not static anymore.
41677 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41679 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
41682 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
41684 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
41685 type OP_OUT to OP_INOUT.
41687 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
41689 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
41690 (high x) y) to y if x and y have the same base.
41692 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
41694 * config/arm/cortex-a57.md: New.
41695 * config/aarch64/aarch64.md: Include it.
41696 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
41697 * config/aarch64/aarch64-tune.md: Regenerate.
41699 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
41702 * ccmp.c (expand_ccmp_next): New function.
41703 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
41704 and compare insn sequence.
41705 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
41706 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
41707 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
41708 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
41709 (*ccmp_ior): Changed to ccmp_ior<mode>.
41710 (cmp<mode>): New pattern.
41711 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
41713 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
41715 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
41717 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
41718 _mm256_bsrli_epi128): New.
41719 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
41721 2015-01-15 Jiong Wang <jiong.wang@arm.com>
41723 * expmed.c (store_bit_field_using_insv): Improve warning message.
41724 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
41726 2015-01-15 Jiong Wang <jiong.wang@arm.com>
41728 PR rtl-optimization/64011
41729 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
41730 there is partial overflow.
41732 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41734 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
41736 (nds32_expand_epilogue_v3pop): Likewise.
41737 * config/nds32/nds32.md (sibcall): Define this for sibling call
41739 (sibcall_register): Likewise.
41740 (sibcall_immediate): Likewise.
41741 (sibcall_value): Likewise.
41742 (sibcall_value_register): Likewise.
41743 (sibcall_value_immediate): Likewise.
41744 (sibcall_epilogue): Likewise.
41745 (epilogue): Pass false to indicate this is not a sibcall epilogue.
41746 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
41747 (nds32_expand_epilogue_v3pop): Likewise.
41749 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41751 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
41752 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
41753 (return_internal): New.
41754 (return): Define this named pattern.
41755 (simple_return): Define this named pattern.
41756 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
41757 pattern instead of unspec_volatile_func_return.
41758 (nds32_expand_epilogue_v3pop): Likewise.
41759 (nds32_can_use_return_insn): New function.
41761 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41763 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
41764 * config/nds32/nds32.md (pop25return): New.
41765 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
41766 pop25return pattern.
41768 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41770 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
41771 -mforbid-fp-as-gp, and -mex9 options.
41773 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41775 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
41776 remove -mgp-direct option.
41778 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41780 * doc/invoke.texi (--param early-inlining-insns): Update default value.
41781 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
41783 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41785 * ipa-inline.c (inline_small_functions): Work around hints
41788 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
41791 * doc/invoke.texi (Option Summary): Document new Nios II
41793 (Nios II Options): Likewise.
41794 * config/nios2/nios2.opt: Add -mgpopt= option support.
41795 Modify existing -mgpopt and -mno-gpopt options to be aliases.
41796 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
41797 * config/nios2/nios2.c (nios2_option_override): Adjust
41798 -mgpopt defaulting.
41799 (nios2_in_small_data_p): Return true for explicit small data
41800 sections even with -G0.
41801 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
41804 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41807 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
41809 (inline_call): Fix removal of aliases.
41811 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41813 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
41814 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
41815 * opts.c (common_handle_option): Add -fsanitize=vptr.
41816 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
41817 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
41818 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
41819 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
41820 (ubsan_expand_vptr_ifn): New prototype.
41821 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
41822 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
41823 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
41824 expand_LOOP_VECTORIZED): Make argument nameless, remove
41826 (expand_UBSAN_VPTR): New function.
41827 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
41829 (UBSAN_VPTR): New internal function.
41830 * sanopt.c (tree_map_traits): Renamed to ...
41831 (sanopt_tree_map_traits): ... this.
41832 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
41833 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
41834 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
41835 (maybe_optimize_ubsan_vptr_ifn): New function.
41836 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
41837 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
41839 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
41840 internal calls like pure functions for aliasing, even when they
41841 have other side-effects that prevent making them ECF_PURE.
41842 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
41843 (ubsan_expand_vptr_ifn): New function.
41845 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
41847 PR rtl-optimization/64110
41848 * stmt.c (parse_output_constraint): Process '^' and '$'.
41849 (parse_input_constraint): Ditto.
41850 * lra-constraints.c (process_alt_operands): Process the new
41852 * ira-costs.c (record_reg_classes): Process the new constraint
41854 * genoutput.c (indep_constraints): Add '^' and '$'.
41855 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
41856 * doc/md.texi: Add description of the new constraints.
41858 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
41859 Bernd Schmidt <bernds@codesourcery.com>
41860 Cesar Philippidis <cesar@codesourcery.com>
41861 James Norris <jnorris@codesourcery.com>
41862 Tom de Vries <tom@codesourcery.com>
41863 Ilmir Usmanov <i.usmanov@samsung.com>
41864 Dmitry Bocharnikov <dmitry.b@samsung.com>
41865 Evgeny Gavrin <e.gavrin@samsung.com>
41866 Jakub Jelinek <jakub@redhat.com>
41868 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
41869 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
41870 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
41871 New function types.
41872 * builtins.c: Include "gomp-constants.h".
41873 (expand_builtin_acc_on_device): New function.
41874 (expand_builtin, is_inexpensive_builtin): Handle
41875 BUILT_IN_ACC_ON_DEVICE.
41876 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
41878 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
41880 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
41881 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
41882 i386/intelmic-offload.h.
41883 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
41884 to libgomp and its dependencies.
41885 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
41886 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
41887 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
41888 * config/ia64/hpux.h (LIB_SPEC): Likewise.
41889 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
41890 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
41891 * doc/generic.texi: Update for OpenACC changes.
41892 * doc/gimple.texi: Likewise.
41893 * doc/invoke.texi: Likewise.
41894 * doc/sourcebuild.texi: Likewise.
41895 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
41896 GF_OMP_FOR_KIND_OACC_LOOP.
41897 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
41898 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
41899 GF_OMP_TARGET_KIND_OACC_UPDATE,
41900 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41902 * gimple.c: Update comments for OpenACC changes.
41903 * gimple.def: Likewise.
41904 * gimple.h: Likewise.
41905 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
41906 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41907 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
41908 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41909 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
41911 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41912 * gimplify.c: Include "gomp-constants.h".
41913 Update comments for OpenACC changes.
41914 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41915 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41916 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41917 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41918 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41919 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41920 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41921 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41922 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41924 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41925 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
41926 OMP_CLAUSE_SET_MAP_KIND.
41927 (gimplify_oacc_cache): New function.
41928 (gimplify_omp_for): Handle OACC_LOOP.
41929 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41931 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41932 OACC_EXIT_DATA, OACC_UPDATE.
41933 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41934 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41935 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41936 (gimplify_body): Consider flag_openacc next to flag_openmp.
41937 * lto-streamer-out.c: Include "gomp-constants.h".
41938 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41939 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41940 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41941 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41942 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41943 (BUILT_IN_ACC_ON_DEVICE): New builtins.
41944 * omp-low.c: Include "gomp-constants.h".
41945 Update comments for OpenACC changes.
41946 (struct omp_context): Add reduction_map, gwv_below, gwv_this
41948 (extract_omp_for_data, use_pointer_for_field, install_var_field)
41949 (new_omp_context, delete_omp_context, scan_sharing_clauses)
41950 (create_omp_child_function, scan_omp_for, scan_omp_target)
41951 (check_omp_nesting_restrictions, lower_reduction_clauses)
41952 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41953 Update for OpenACC changes.
41954 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41955 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41956 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41957 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41958 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41959 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
41961 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41962 Handle GF_OMP_FOR_KIND_OACC_LOOP.
41963 (expand_omp_target, lower_omp_target): Handle
41964 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41965 GF_OMP_TARGET_KIND_OACC_UPDATE,
41966 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41967 GF_OMP_TARGET_KIND_OACC_DATA.
41968 (pass_expand_omp::execute, execute_lower_omp)
41969 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41971 (offload_symbol_decl): New variable.
41972 (oacc_get_reduction_array_id, oacc_max_threads)
41973 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41974 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41975 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41976 (oacc_gimple_assign, oacc_initialize_reduction_data)
41977 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41979 (is_targetreg_ctx): Remove function.
41980 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41981 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41982 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41983 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41984 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41985 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41986 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41987 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41988 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41989 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41990 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41991 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41992 * tree-core.h: Update comments for OpenACC changes.
41993 (enum omp_clause_map_kind): Remove.
41994 (struct tree_omp_clause): Change type of map_kind member from enum
41995 omp_clause_map_kind to unsigned char.
41996 * tree-inline.c: Update comments for OpenACC changes.
41997 * tree-nested.c: Likewise. Include "gomp-constants.h".
41998 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41999 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42000 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42001 OMP_CLAUSE_SET_MAP_KIND.
42002 * tree-pretty-print.c: Include "gomp-constants.h".
42003 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42004 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42005 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42006 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42007 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42008 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42009 instead of OMP_CLAUSE_MAP_*.
42010 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42011 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42012 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42013 * tree-streamer-in.c: Include "gomp-constants.h".
42014 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42015 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42016 * tree-streamer-out.c: Include "gomp-constants.h".
42017 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42019 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42020 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42021 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42022 * tree.c (omp_clause_num_ops): Update accordingly.
42023 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42025 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42026 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42027 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42028 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42029 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42030 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42031 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42032 (OMP_CLAUSE_SET_MAP_KIND): New macro.
42033 * varpool.c (varpool_node::get_create): Consider flag_openacc next
42035 * config/i386/intelmic-offload.h: New file.
42036 * config/nvptx/offload.h: Likewise.
42038 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42040 * explow.h: Remove duplicate contents.
42041 * dojump.h: Likewise.
42043 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
42045 * arm.c (arm_xgene_tune): Add default initializer for instruction
42048 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42052 * ipa.c (symbol_table::remove_unreachable_nodes):
42053 Do not put abstract origins into boundary.
42055 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
42057 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42058 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42060 2015-01-15 Steve Ellcey <sellcey@mips.com>
42062 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42063 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42064 builtins.def, and chkp-builtins.def.
42066 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
42068 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42071 2015-01-15 Richard Biener <rguenther@suse.de>
42073 PR tree-optimization/61743
42074 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42075 information on PHIs for some simple cases.
42077 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42079 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42081 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42082 * config/arm/arm-cores.def (xgene1): New entry.
42083 * config/arm/arm-tables.opt: Regenerate.
42084 * config/arm/arm-tune.md: Regenerate.
42085 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42087 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42089 * tree-if-conv.c: Include hash-map.h.
42090 (aggressive_if_conv): New variable.
42091 (fold_build_cond_expr): Add simplification of non-zero condition.
42092 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42093 destination block is not always executed.
42094 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42095 than two predecessors if AGGRESSIVE_IF_CONV is true.
42096 (if_convertible_stmt_p): Fix commentary.
42097 (all_preds_critical_p): New function.
42098 (has_pred_critical_p): New function.
42099 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
42100 BB can have more than two predecessors and all incoming edges can be
42102 (predicate_bbs): Skip predication for loop exit block, use build2_loc
42103 to compute predicate for true edge.
42104 (find_phi_replacement_condition): Delete this function.
42105 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
42106 Allow interchange PHI arguments if EXTENDED is false.
42107 Change check that block containing reduction statement candidate
42108 is predecessor of phi-block since phi may have more than two arguments.
42109 (phi_args_hash_traits): New helper structure.
42110 (struct phi_args_hash_traits): New type.
42111 (phi_args_hash_traits::hash): New function.
42112 (phi_args_hash_traits::equal_keys): New function.
42113 (gen_phi_arg_condition): New function.
42114 (predicate_scalar_phi): Add handling of phi nodes with more than two
42115 arguments, delete COND and TRUE_BB arguments, insert body of
42116 find_phi_replacement_condition to predicate ordinary phi nodes.
42117 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
42118 delete call of find_phi_replacement_condition and invoke
42119 predicate_scalar_phi with two arguments.
42120 (insert_gimplified_predicates): Add assert that non-predicated block
42121 don't have statements to insert.
42122 (ifcvt_split_critical_edges): New function.
42123 (ifcvt_split_def_stmt): Likewise.
42124 (ifcvt_walk_pattern_tree): Likewise.
42125 (stmt_is_root_of_bool_pattern): Likewise.
42126 (ifcvt_repair_bool_pattern): Likewise.
42127 (ifcvt_local_dce): Likewise.
42128 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
42129 is copy of inner or outer loop force_vectorize field, invoke
42130 ifcvt_split_critical_edges, ifcvt_local_dce and
42131 ifcvt_repair_bool_pattern for aggressive if-conversion.
42133 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
42135 * config/aarch64/aarch64.md: Include xgene1.md.
42136 * config/aarch64/xgene1.md: New file.
42138 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42140 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
42141 xgene1 (APM XGene-1) core definition.
42142 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
42143 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
42144 * doc/invoke.texi: Document -mcpu=xgene1.
42146 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42148 * dojump.h: New header file.
42149 * explow.h: Likewise.
42150 * expr.h: Remove includes.
42151 Move expmed.c prototypes to expmed.h.
42152 Move dojump.c prototypes to dojump.h.
42153 Move alias.c prototypes to alias.h.
42154 Move explow.c prototypes to explow.h.
42155 Move calls.c prototypes to calls.h.
42156 Move emit-rtl.c prototypes to emit-rtl.h.
42157 Move varasm.c prototypes to varasm.h.
42158 Move stmt.c prototypes to stmt.h.
42159 (saved_pending_stack_adjust): Move to dojump.h.
42160 (adjust_address): Move to explow.h.
42161 (adjust_address_nv): Move to emit-rtl.h.
42162 (adjust_bitfield_address): Likewise.
42163 (adjust_bitfield_address_size): Likewise.
42164 (adjust_bitfield_address_nv): Likewise.
42165 (adjust_automodify_address_nv): Likewise.
42166 * explow.c (expr_size): Move to expr.c.
42167 (int_expr_size): Likewise.
42168 (tree_expr_size): Likewise.
42169 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42170 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42171 * genemit.c (main): Generate includes statistics.h, real.h,
42172 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
42174 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
42175 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
42176 explow.h, emit-rtl.h, stmt.h.
42177 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
42178 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
42179 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
42180 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
42181 emit-rtl.h, varasm.h, stmt.h.
42182 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
42183 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
42184 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
42185 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
42186 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42187 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
42188 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
42189 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
42190 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
42191 tm.h tree.h varasm.h vec.h wide-int.h.
42192 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42193 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42194 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
42195 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
42196 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
42197 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
42198 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
42199 * loop-iv.c: Likewise.
42200 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
42201 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
42202 statistics.h stmt.h tree.h varasm.h wide-int.h.
42203 * lra-constraints.c: Likewise.
42204 * lra-eliminations.c: Likewise.
42205 * lra-lives.c: Likewise.
42206 * lra-remat.c: Likewise.
42207 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42208 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
42209 statistics.h stmt.h tree.h varasm.h wide-int.h.
42210 * hw-doloop.c: Likewise.
42211 * ira-color.c: Likewise.
42212 * ira-emit.c: Likewise.
42213 * loop-doloop.c: Likewise.
42214 * loop-invariant.c: Likewise.
42215 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42216 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
42217 statistics.h stmt.h tree.h varasm.h wide-int.h.
42218 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
42219 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
42220 statistics.h stmt.h tree.h varasm.h wide-int.h.
42221 * combine-stack-adj.c: Likewise.
42224 * ifcvt.c: Likewise.
42225 * ira-costs.c: Likewise.
42226 * jump.c: Likewise.
42227 * lra-coalesce.c: Likewise.
42228 * lra-spills.c: Likewise.
42229 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42230 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
42231 stmt.h varasm.h wide-int.h.
42232 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42233 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42235 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
42236 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
42237 statistics.h stmt.h varasm.h wide-int.h.
42238 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
42239 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
42240 varasm.h wide-int.h.
42241 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
42242 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42243 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
42244 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
42245 statistics.h stmt.h.
42246 * config/tilepro/tilepro.c: Likewise.
42247 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
42248 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
42249 * config/pdp11/pdp11.c: Likewise.
42250 * config/xtensa/xtensa.c: Likewise.
42251 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
42252 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42254 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42255 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42256 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
42257 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42258 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42259 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
42260 * rtl-chkp.c: Likewise.
42261 * tree-chkp-opt.c: Likewise.
42262 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
42263 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42264 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
42265 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42266 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42267 statistics.h stmt.h.
42268 * tree-vect-data-refs.c: Likewise.
42269 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
42270 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42271 rtl.h statistics.h stmt.h varasm.h.
42272 * internal-fn.c: Likewise.
42273 * ipa-icf-gimple.c: Likewise.
42274 * lto-section-out.c: Likewise.
42275 * tree-data-ref.c: Likewise.
42276 * tree-nested.c: Likewise.
42277 * tree-outof-ssa.c: Likewise.
42278 * tree-predcom.c: Likewise.
42279 * tree-pretty-print.c: Likewise.
42280 * tree-scalar-evolution.c: Likewise.
42281 * tree-ssa-strlen.c: Likewise.
42282 * tree-vect-loop.c: Likewise.
42283 * tree-vect-patterns.c: Likewise.
42284 * tree-vect-slp.c: Likewise.
42285 * tree-vect-stmts.c: Likewise.
42286 * tsan.c: Likewise.
42287 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42288 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
42290 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
42291 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42292 statistics.h stmt.h varasm.h.
42293 * loop-unroll.c: Likewise.
42294 * ubsan.c: Likewise.
42295 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
42296 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
42298 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42299 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
42300 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
42301 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42302 statistics.h stmt.h.
42303 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
42304 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42305 statistics.h stmt.h varasm.h.
42306 * gimple-match-head.c: Likewise.
42307 * lto-cgraph.c: Likewise.
42308 * lto-section-in.c: Likewise.
42309 * lto-streamer-in.c: Likewise.
42310 * lto-streamer-out.c: Likewise.
42311 * tree-affine.c: Likewise.
42312 * tree-cfg.c: Likewise.
42313 * tree-cfgcleanup.c: Likewise.
42314 * tree-if-conv.c: Likewise.
42315 * tree-into-ssa.c: Likewise.
42316 * tree-ssa-alias.c: Likewise.
42317 * tree-ssa-copyrename.c: Likewise.
42318 * tree-ssa-dse.c: Likewise.
42319 * tree-ssa-forwprop.c: Likewise.
42320 * tree-ssa-live.c: Likewise.
42321 * tree-ssa-math-opts.c: Likewise.
42322 * tree-ssa-pre.c: Likewise.
42323 * tree-ssa-sccvn.c: Likewise.
42324 * tree-tailcall.c: Likewise.
42325 * tree-vect-generic.c: Likewise.
42326 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42327 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42328 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42329 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42330 * varasm.c: Likewise.
42331 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42332 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42334 * init-regs.c: Likewise.
42336 * omp-low.c: Likewise.
42337 * stack-ptr-mod.c: Likewise.
42338 * tree-ssa-reassoc.c: Likewise.
42339 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42340 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42342 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42343 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42344 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42345 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42346 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42347 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42348 * tree-ssa-phiopt.c: Likewise.
42349 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42350 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42351 * config/fr30/fr30.c: Likewise.
42352 * config/frv/frv.c: Likewise.
42353 * expr.c: Likewise.
42354 * final.c: Likewise.
42355 * optabs.c: Likewise.
42356 * passes.c: Likewise.
42357 * simplify-rtx.c: Likewise.
42358 * stmt.c: Likewise.
42359 * toplev.c: Likewise.
42360 * var-tracking.c: Likewise.
42361 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42362 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42363 * lower-subreg.c: Likewise.
42364 * postreload-gcse.c: Likewise.
42366 * reginfo.c: Likewise.
42367 * store-motion.c: Likewise.
42368 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42369 fixed-value.h hashtab.h real.h stmt.h varasm.h.
42370 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42371 fixed-value.h hashtab.h statistics.h stmt.h.
42372 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42373 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42374 * except.c: Likewise.
42375 * explow.c: Likewise.
42376 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42377 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42379 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42380 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42381 * tree-ssa-structalias.c: Likewise.
42382 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42383 fixed-value.h insn-config.h real.h statistics.h.
42384 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42385 fixed-value.h insn-config.h real.h statistics.h stmt.h.
42386 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42387 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42388 * cfgbuild.c: Likewise.
42389 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42390 fixed-value.h real.h rtl.h statistics.h stmt.h.
42391 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42392 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42393 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42394 fixed-value.h real.h statistics.h stmt.h.
42395 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42396 fixed-value.h real.h statistics.h stmt.h varasm.h.
42397 * cprop.c: Likewise.
42398 * modulo-sched.c: Likewise.
42399 * postreload.c: Likewise.
42400 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42401 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42402 statistics.h stmt.h varasm.h.
42403 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42404 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42405 rtl.h statistics.h stmt.h varasm.h.
42406 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42407 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42409 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42410 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42412 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42413 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42415 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42416 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42417 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42418 function.h real.h statistics.h stmt.h varasm.h.
42419 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42420 insn-config.h real.h statistics.h stmt.h.
42421 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42422 statistics.h stmt.h.
42423 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42424 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42425 statistics.h stmt.h varasm.h.
42426 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42427 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42428 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42429 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42430 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42431 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42432 statistics.h stmt.h varasm.h.
42433 * ipa-polymorphic-call.c: Likewise.
42434 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42435 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42436 statistics.h stmt.h.
42437 * config/c6x/c6x.c: Likewise.
42438 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42439 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42440 statistics.h stmt.h varasm.h.
42441 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42442 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42444 * ipa-split.c: Likewise.
42445 * tree-eh.c: Likewise.
42446 * tree-ssa-dce.c: Likewise.
42447 * tree-ssa-loop-niter.c: Likewise.
42448 * tree-vrp.c: Likewise.
42449 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42450 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42452 * config/nds32/nds32-fp-as-gp.c: Likewise.
42453 * config/nds32/nds32-intrinsic.c: Likewise.
42454 * config/nds32/nds32-isr.c: Likewise.
42455 * config/nds32/nds32-md-auxiliary.c: Likewise.
42456 * config/nds32/nds32-memory-manipulation.c: Likewise.
42457 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42458 * config/nds32/nds32-predicates.c: Likewise.
42459 * config/nds32/nds32.c: Likewise.
42460 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42461 fixed-value.h hashtab.h real.h statistics.h.
42462 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42463 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42464 * config/arm/arm.c: Likewise.
42465 * config/avr/avr.c: Likewise.
42466 * config/bfin/bfin.c: Likewise.
42467 * config/h8300/h8300.c: Likewise.
42468 * config/i386/i386.c: Likewise.
42469 * config/ia64/ia64.c: Likewise.
42470 * config/iq2000/iq2000.c: Likewise.
42471 * config/m32c/m32c.c: Likewise.
42472 * config/m32r/m32r.c: Likewise.
42473 * config/m68k/m68k.c: Likewise.
42474 * config/mcore/mcore.c: Likewise.
42475 * config/mep/mep.c: Likewise.
42476 * config/mips/mips.c: Likewise.
42477 * config/mn10300/mn10300.c: Likewise.
42478 * config/moxie/moxie.c: Likewise.
42479 * config/pa/pa.c: Likewise.
42480 * config/rl78/rl78.c: Likewise.
42481 * config/rx/rx.c: Likewise.
42482 * config/s390/s390.c: Likewise.
42483 * config/sh/sh.c: Likewise.
42484 * config/sparc/sparc.c: Likewise.
42485 * config/spu/spu.c: Likewise.
42486 * config/stormy16/stormy16.c: Likewise.
42487 * config/v850/v850.c: Likewise.
42488 * config/vax/vax.c: Likewise.
42489 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42490 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42491 * config/msp430/msp430.c: Likewise.
42492 * predict.c: Likewise.
42493 * value-prof.c: Likewise.
42494 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42495 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42496 * config/microblaze/microblaze.c: Likewise.
42497 * config/nios2/nios2.c: Likewise.
42498 * config/rs6000/rs6000.c: Likewise.
42499 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42500 insn-config.h real.h rtl.h statistics.h stmt.h.
42501 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42502 insn-config.h real.h statistics.h stmt.h.
42503 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42504 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42505 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42506 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42507 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42508 fixed-value.h real.h statistics.h stmt.h.
42509 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42510 fixed-value.h statistics.h stmt.h.
42511 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42514 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42516 * gengtype.c (create_user_defined_type): Workaround
42517 -Wmaybe-uninitialized false positives.
42518 * cse.c (fold_rtx): Likewise.
42519 * loop-invariant.c (gain_for_invariant): Likewise.
42521 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
42523 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42524 set the memory attributes in all cases but clear MEM_EXPR if need be.
42526 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42528 PR tree-optimization/64434
42529 * cfgexpand.c (reorder_operands): New function.
42530 (expand_gimple_basic_block): Insert call of reorder_operands if
42533 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
42535 * config/mips/micromips.md (*swp): Remove explicit parallel.
42536 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42537 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42538 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42539 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42540 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42541 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42542 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42543 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42544 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42545 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42546 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42547 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42548 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42549 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42550 (mips_wrdsp): Likewise.
42551 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42553 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42554 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42555 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42556 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42557 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42558 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42559 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42560 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42561 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42563 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42565 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42566 (mips_print_operand): Support 'y' to print exact log2 in decimal
42568 * config/mips/mips.h (ISA_HAS_LSA): New define.
42569 (ISA_HAS_DLSA): Likewise.
42570 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42571 * config/mips/predicates.md (const_immlsa_operand): New predicate.
42573 2015-01-15 Martin Liska <mliska@suse.cz>
42576 * optc-save-gen.awk: Add support for array types.
42578 2015-01-15 Richard Biener <rguenther@suse.de>
42580 PR middle-end/64365
42581 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42582 for MEM_REF access functions with the same base can never partially
42585 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
42587 * common.opt: New option -fstack-protector-explicit.
42588 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42589 (stack_protect_decl_phase): Handle stack_protect attribute for
42590 explicit stack protection requests.
42591 (expand_used_vars): Similarly.
42592 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42593 * doc/extend.texi: Add documentation for "stack_protect" attribute.
42594 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42596 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
42599 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42601 (sh_extending_set_of_reg): New struct.
42602 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42603 sh_remove_reg_dead_or_unused_notes): New Declarations.
42604 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42605 sh_find_extending_set_of_reg, sh_split_tst_subregs,
42606 sh_extending_set_of_reg::use_as_extended_reg): New functions.
42607 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42608 convert to insn_and_split and use new function sh_split_tst_subregs.
42610 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
42612 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
42614 (Optimization Options): Move -fuse-ld documentation to...
42615 (Link Options): ...here.
42617 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42619 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
42621 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
42622 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
42623 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
42624 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
42625 instead of ZR for the memory operand of LL/SC.
42626 (compare_and_swap_12, sync_add<mode>): Likewise.
42627 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
42628 (sync_new_<optab>_12, sync_nand_12): Likewise.
42629 (sync_old_nand_12, sync_new_nand_12): Likewise.
42630 (sync_sub<mode>, sync_old_add<mode>): Likewise.
42631 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
42632 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
42633 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
42634 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
42635 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
42636 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
42637 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
42638 * doc/md.texi (ZC): Update description.
42640 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
42642 * builtins.c (expand_builtin_atomic_exchange): Remove error when
42643 memory model is CONSUME.
42644 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
42645 expand_builtin_atomic_store): Change invalid memory model errors to
42647 (expand_builtin_atomic_clear): Change invalid model errors to warnings
42648 and issue warning for CONSUME.
42650 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
42652 * lto-cgraph: Update function comments for
42653 lto_symtab_encoder_encode_*.
42655 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
42657 * Makefile.in (site.exp): Do not set ENABLE_LTO.
42659 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
42661 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
42662 * lto-cgraph.c (select_what_to_stream): Remove argument, use
42663 lto_stream_offload_p instead.
42664 * lto-streamer.h (select_what_to_stream): Remove argument.
42665 * passes.c (ipa_write_summaries): Likewise.
42666 * tree-pass.h (ipa_write_summaries): Likewise.
42668 2015-01-14 Richard Biener <rguenther@suse.de>
42670 PR tree-optimization/59354
42671 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
42672 groups larger than the slp group size as having gaps.
42674 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
42676 PR middle-end/59448
42677 * builtins.c (get_memmodel): Promote consume to acquire always.
42679 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42682 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
42685 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42688 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
42690 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
42691 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
42692 AVX512VBMI, as it implies AVX512BW.
42694 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42697 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
42698 (vec_unpacks_hi_v16sf): Ditto.
42700 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42702 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
42705 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42707 * doc/invoke.texi (mapcs): Mention deprecation.
42708 (mapcs-frame): Likewise.
42710 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
42713 * config/arm/arm.c (callee_saved_reg_p): Define.
42714 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
42715 register is callee saved instead of !call_used_regs[reg].
42716 (thumb1_compute_save_reg_mask): Likewise.
42718 2015-01-14 Hale Wang <hale.wang@arm.com>
42720 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
42723 2015-01-14 Richard Biener <rguenther@suse.de>
42726 * tree-inline.c (insert_debug_decl_map): Check destination
42727 function MAY_HAVE_DEBUG_STMTS.
42728 (insert_init_debug_bind): Likewise.
42729 (insert_init_stmt): Remove redundant check.
42730 (remap_gimple_stmt): Drop debug stmts if the destination
42731 function has var-tracking assignments disabled.
42733 2015-01-14 Martin Liska <mliska@suse.cz>
42735 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
42736 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
42738 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42741 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
42742 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
42744 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42746 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
42747 level from an ARCH; do not inject the default.
42748 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
42749 MIPS_ISA_LEVEL_SPEC.
42750 (MIPS_ISA_NAN2008_SPEC): Update comment.
42751 (BASE_DRIVER_SELF_SPECS): Likewise.
42752 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
42753 MIPS_DEFAULT_ISA_LEVEL_SPEC.
42754 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
42755 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
42756 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
42758 2015-01-14 Richard Biener <rguenther@suse.de>
42760 PR tree-optimization/64493
42761 PR tree-optimization/64495
42762 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
42763 assign the proper vectorized PHI to the inner loop exit PHIs.
42765 2015-01-14 Joey Ye <joey.ye@arm.com>
42767 * config/arm/arm.c (arm_compute_save_reg_mask):
42768 Do not save lr in case of tail call.
42769 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
42771 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
42773 * tree-vrp.c (check_array_ref): Emit more warnings
42774 for warn_array_bounds >= 2.
42775 * common.opt: New option -Warray-bounds=.
42776 * doc/invoke.texi: Document -Warray-bounds=.
42778 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
42780 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
42781 (mforbid-fp-as-gp): Remove.
42783 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
42784 (nds32_symbol_load_store_p): Remove.
42785 (nds32_fp_as_gp_check_available): Clean up implementation.
42786 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
42788 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
42789 fp-as-gp and ex9 cases.
42791 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42793 * tree-profile.c (init_ic_make_global_vars): Drop workaround
42794 for bintuils bug 14342.
42795 (init_ic_make_global_vars): Likewise.
42796 (gimple_init_edge_profiler): Likewise.
42797 (gimple_gen_ic_func_profiler): Likewise.
42799 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
42801 * ipa-inline.c (inline_small_functions): Swap the operands in
42804 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42807 * ipa-inline-analysis.c (node_growth_cache): Remove.
42808 (initialize_growth_caches): Do not initialize it.
42809 (free_growth_caches): Do not free it.
42810 (do_estimate_growth): Rename to ...
42811 (estimate_growth): ... this one; drop growth cache code.
42812 (growth_likely_positive): Always go the heuristics way.
42813 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
42814 (reset_edge_caches): Do not reset node growth.
42815 (heap_edge_removal_hook): Do not maintain cache.
42816 (inline_small_functions): Likewise; strenghten sanity check.
42817 (ipa_inline): Do not maintain caches.
42818 * ipa-inline.h (node_growth_cache): Remove.
42819 (do_estimate_growth): Remove to ...
42820 (estimate_growth): this one; remove inline version.
42821 (reset_node_growth_cache): Remove.
42823 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42826 * ipa-inline.c (inline_small_functions): Update callee keys after
42827 resolving speculation
42828 (inline_small_functions): Always check monotonicity of the queue.
42830 2015-01-13 Marek Polacek <polacek@redhat.com>
42832 PR middle-end/64391
42833 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
42835 2015-01-13 Jakub Jelinek <jakub@redhat.com>
42837 PR rtl-optimization/64286
42838 * ree.c (combine_reaching_defs): Move part of comment earlier,
42839 remove !SCALAR_INT_MODE_P check.
42840 (add_removable_extension): Don't add vector mode
42841 extensions if all uses of the source register aren't the same
42844 2015-01-13 Renlin Li <renlin.li@arm.com>
42846 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
42847 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
42849 2015-01-13 Martin Liska <mliska@suse.cz>
42851 * ipa-icf.c (sem_function::equals_private): Call new functions
42852 cl_target_option_print_diff and cl_optimization_print_diff.
42853 * optc-save-gen.awk (cl_target_option_print_diff): New function.
42854 (cl_optimization_print_diff): Likewise.
42855 * opth-gen.awk: Likewise.
42857 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
42859 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
42860 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
42861 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
42862 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
42863 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
42864 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
42866 2015-01-13 Andrew Pinski <apinski@cavium.com>
42868 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
42869 instead of src mode.
42871 2015-01-13 Richard Biener <rguenther@suse.de>
42874 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
42877 2015-01-13 Andrew Pinski <apinski@cavium.com>
42879 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
42881 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
42883 2015-01-13 Jakub Jelinek <jakub@redhat.com>
42885 PR middle-end/63974
42886 * cfgexpand.c (expand_computed_goto): Don't call
42887 convert_memory_address here.
42889 2015-01-13 Richard Biener <rguenther@suse.de>
42891 PR tree-optimization/64406
42892 * tree-loop-distibution.c (pass_loop_distribution::execute):
42893 Reset the SCEV hashtable if we distributed anything.
42895 2015-01-13 Richard Biener <rguenther@suse.de>
42897 PR tree-optimization/64404
42898 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
42899 SLP types for CSEd loads.
42901 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
42903 PR tree-optimization/64436
42904 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
42905 merge of two symbolic numbers for a bitwise OR to ...
42906 (perform_symbolic_merge): This. Also fix computation of the range and
42907 end of the symbolic number corresponding to the result of a bitwise OR.
42909 2015-01-13 Richard Biener <rguenther@suse.de>
42911 PR tree-optimization/64568
42912 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42913 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42915 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42917 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42918 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42920 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42922 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42923 target-specific symbol_ref flag.
42924 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42925 resides in rodata section.
42926 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42927 (nds32_encode_section_info): New function.
42929 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42931 * config/nds32/nds32.md (call): Use pseudo instruction bal which
42932 clobbers TA_REGNUM if large code model is specified.
42933 (call_register): Likewise.
42934 (call_immediate): Likewise.
42935 (call_value): Likewise.
42936 (call_value_register): Likewise.
42937 (call_value_immediate): Likewise.
42939 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42941 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42942 (TARGET_CMODEL_MEDIUM): New macro.
42943 (TARGET_CMODEL_LARGE): New macro.
42944 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42945 code model setting in assembly code.
42947 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42949 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42950 Remove MASK_GP_DIRECT flag.
42951 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42952 one of the multilib default options.
42953 * config/nds32/nds32.opt (mgp-direct): Remove.
42954 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42955 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
42957 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42959 * config/nds32/nds32.opt (mcmodel): Add new option.
42960 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42961 to describe code model.
42963 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
42966 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42968 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
42970 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42971 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42972 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42973 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42974 __builtin_sh_set_fpscr.
42976 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
42978 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42979 after a funtion name just to indicate it is a function.
42980 ([-fsanitize-undefined-trap-on-error]): Likewise.
42981 ([-fdbg-cnt=]): Likewise.
42982 ([-mmemcpy]): Likewise.
42983 ([-mflush-func]): Likewise.
42984 ([-msynci]): Likewise.
42986 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
42988 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42991 2015-01-12 Jakub Jelinek <jakub@redhat.com>
42993 PR tree-optimization/64563
42994 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42995 instead of != VR_VARYING.
42998 * config/i386/i386.c (ix86_expand_prologue): Add
42999 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43001 PR tree-optimization/64454
43002 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43003 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43004 for signed or [0, op1 - 1] for unsigned modulo.
43005 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43006 even if op1 does not satisfy integer_pow2p.
43009 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43011 2015-01-12 Jeff Law <law@redhat.com>
43014 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43015 (trunchiqi2, truncsihi2): Similarly.
43017 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43018 rather than calling F.
43020 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43022 * tsan.c (instrument_expr): Use force_gimple_operand.
43023 Use may_be_nonaddressable_p instead of is_gimple_addressable.
43025 2015-01-12 Richard Biener <rguenther@suse.de>
43027 PR tree-optimization/64530
43028 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43031 2015-01-12 Richard Biener <rguenther@suse.de>
43033 PR middle-end/64357
43034 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43037 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43039 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43040 Cortex-A17 tuning parameters.
43041 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43043 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43045 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43046 * config/arm/arm.c (arm_macro_fusion_p): New function.
43047 (arm_macro_fusion_pair_p): Likewise.
43048 (TARGET_SCHED_MACRO_FUSION_P): Define.
43049 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43050 (ARM_FUSE_NOTHING): Likewise.
43051 (ARM_FUSE_MOVW_MOVT): Likewise.
43052 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43053 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43054 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43055 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43056 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43057 arm_cortex_a5_tune): Specify fuseable_ops value.
43059 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
43062 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43063 test for PIE with copy reloc.
43064 * configure: Regenerated.
43066 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43068 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43070 (arm_tls_descseq_addr): Likewise.
43071 (arm_gen_movmemqi): Likewise.
43072 (arm_expand_epilogue_apcs_frame): Likewise.
43073 (arm_expand_epilogue): Likewise.
43074 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
43077 2015-01-12 Martin Liska <mliska@suse.cz>
43080 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43081 volatility for correct operands.
43083 2015-01-12 Martin Liska <mliska@suse.cz>
43085 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43086 indication that a function is not leaf.
43087 (sem_function::compare_polymorphic_p): Likewise.
43089 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43091 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43092 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43093 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43094 fold-const.h, tree-check.h.
43096 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43100 * ipa-inline.c (compute_uninlined_call_time,
43101 compute_inlined_call_time): Use counts for extra precision when
43103 (big_speedup_p): Fix formating.
43104 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
43105 (relative_time_benefit): Remove.
43106 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
43107 merge guessed and read profile paths.
43108 (inline_small_functions): Count only !optimize_size functions into
43109 initial size; be more lax about sanity check when profile is used;
43110 be sure to update inlined function profile when profile is read.
43112 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43115 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
43116 cost when edge becomes direct.
43117 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
43118 is resolved or when introducing new speculation.
43120 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
43124 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
43125 '||' to fix typo issue.
43127 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
43128 accept and return NULL.
43130 2015-01-12 Martin Liska <mliska@suse.cz>
43132 * cgraph.c (cgraph_edge::remove_callee): Move function to header
43133 file for being inlined.
43134 (cgraph_set_edge_callee): Delete.
43135 (cgraph_edge::redirect_callee): Move function to header file
43137 (cgraph_edge::make_direct): Use new function.
43138 (cgraph_edge::dump_edge_flags): New function created from
43139 static dump_edge_flags function.
43140 (cgraph_node::dump): Use new function.
43141 (cgraph_edge::verify_count_and_frequency): New function created
43142 from verify_edge_count_and_frequency.
43143 (cgraph_edge::verify_corresponds_to_fndecl): New function created
43144 from verify_edge_corresponds_to_fndecl.
43145 (verify_edge_corresponds_to_fndecl): Delete.
43146 (cgraph_node::verify_node): Use new function.
43147 * cgraph.h (cgraph_edge::set_callee): New function.
43148 (cgraph_edge::dump_edge_flags): Likewise.
43149 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
43151 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
43153 * ipa-utils.c (estimate_function_body_sizes): Do not
43154 free node params when called late with early=true.
43156 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
43158 * doc/md.texi (Instruction Patterns): Rewrite text for
43160 (Example): Likewise.
43162 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
43164 * doc/invoke.texi (Option Summary): Break long lines.
43165 [(-fdiagnostics-color)]: Put long literal in @smallexample
43167 [(-fsanitize-recover)]: Likewise.
43168 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
43169 [(-ffast-math)]: Likewise.
43170 [(--param max-inline-insns-recursive)]: Likewise.
43171 [(--param max-inline-recursive-depth)]: Likewise.
43172 [(-mno-text-section-literals)]: Likewise.
43174 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
43176 * doc/install.texi: Update for libgomp being renamed from "GNU
43177 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
43179 * doc/sourcebuild.texi: Likewise.
43181 2015-01-10 Anthony Green <green@moxielogic.com>
43183 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
43184 mul.x availability for moxiebox configuration.
43186 2015-01-09 Anthony Green <green@moxielogic.com>
43188 * config/moxie/moxie.md: Tabify assembly output.
43190 2015-01-09 Anthony Green <green@moxielogic.com>
43192 * config/moxie/moxie.md (CC_REG): Correct register definition.
43194 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
43196 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
43197 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
43200 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43202 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
43204 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
43205 Jakub Jelinek <jakub@redhat.com>
43207 PR middle-end/64412
43208 * lto-streamer.h (lto_stream_offload_p): New declaration.
43209 * lto-streamer.c (lto_stream_offload_p): New variable.
43210 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
43211 at the same time as section_name_prefix.
43212 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
43213 if lto_stream_offload_p.
43214 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
43215 stream TREE_TARGET_OPTION if lto_stream_offload_p.
43216 (write_ts_function_decl_tree_pointers): Don't
43217 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
43218 * tree-streamer-in.c (unpack_value_fields): Don't stream
43219 TREE_TARGET_OPTION in if ACCEL_COMPILER.
43220 (lto_input_ts_function_decl_tree_pointers): Don't stream
43221 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
43222 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
43223 instead of section_name_prefix string comparisons.
43225 2015-01-09 Jakub Jelinek <jakub@redhat.com>
43227 PR rtl-optimization/64536
43228 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
43231 2015-01-09 Michael Collison <michael.collison@linaro.org>
43233 PR tree-optimization/64322
43234 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
43235 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
43237 2015-01-09 Tom de Vries <tom@codesourcery.com>
43239 PR rtl-optimization/64539
43240 * regcprop.c (kill_clobbered_values): Factor out of ...
43241 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
43242 instead of note_stores with kill_clobbered_value.
43244 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43246 * ginclude/unwind-arm-common.h: Revert previous commit.
43248 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43250 * config.gcc (arm*-*-freebsd*): New configuration.
43251 * config/arm/freebsd.h: New file.
43252 * config.host: Add extra components for arm*-*-freebsd*.
43253 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
43254 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
43256 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43258 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
43260 * config/rs6000/t-rtems: Add e6500 multilibs.
43262 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43264 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
43267 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43269 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
43270 MULTILIB_EXCEPTIONS.
43272 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43274 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
43275 MULTILIB_EXCEPTIONS.
43277 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43279 * config/arm/t-rtems-eabi: Rename to...
43280 * config/arm/t-rtems: ...this.
43281 * config/arm/rtems-eabi.h: Rename to...
43282 * config/arm/rtems.h: ...this.
43283 * config.gcc (arm*-*-rtems*): Reflect changes above.
43285 2015-01-09 Richard Biener <rguenther@suse.de>
43287 PR tree-optimization/64410
43288 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
43290 (execute_update_addresses_taken): Deal with that.
43291 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
43292 loads/stores for complex variables.
43294 2015-01-09 Martin Liska <mliska@suse.cz>
43296 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
43298 (func_checker::compare_memory_operand): New function.
43299 (func_checker::compare_operand): Split case to newly
43301 (func_checker::compare_cst_or_decl): New function.
43302 (func_checker::compare_gimple_call): Identify
43304 (func_checker::compare_gimple_assign): Likewise.
43305 * ipa-icf-gimple.h: New function.
43307 2015-01-09 Martin Liska <mliska@suse.cz>
43310 * sreal.c (sreal::dump): Change unsigned format to signed for
43312 (sreal::to_double): Replace exp2 with scalbln.
43314 2015-01-09 Martin Liska <mliska@suse.cz>
43316 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43317 * ipa-icf.c (sem_function::equals_private): Add support for target and
43318 (sem_item_optimizer::merge_classes): Remove redundant function
43319 optimization flags comparison.
43320 * tree.h (target_opts_for_fn): New function.
43322 2015-01-09 Tom de Vries <tom@codesourcery.com>
43324 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43326 2015-01-09 Kito Cheng <kito@0xlab.org>
43328 PR rtl-optimization/64348
43329 * lra-constraints.c (split_reg): Fix caller-save store/restore
43330 instruction generation.
43332 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
43334 PR gcov-profile/61790
43335 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43336 long long. Fallback to int64_t if host doesn't have long long and
43337 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
43339 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43341 PR tree-optimization/63989
43342 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43343 from 1000 to 10000.
43344 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43345 (get_stridx): If we don't have a record for certain SSA_NAME,
43346 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43347 constant offset, call get_stridx_plus_constant.
43348 (get_stridx_plus_constant): New function.
43349 (zero_length_string): Don't use get_stridx here.
43352 PR middle-end/64388
43353 * dse.c (struct insn_info): Mention frame_read set also
43354 before reload for tail calls on some targets.
43355 (scan_insn): Revert 2014-12-22 change. Set frame_read
43356 also before reload for tail calls if
43357 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
43358 instead of add_non_frame_wild_read for non-const/memset
43359 tail calls after reload.
43361 2015-01-08 Jason Merrill <jason@redhat.com>
43363 * ubsan.c (do_ubsan_in_current_function): New.
43364 (pass_ubsan::gate): Use it.
43365 * ubsan.h: Declare it.
43366 * convert.c (convert_to_integer): Use it.
43368 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43371 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43372 compare_code when it is unconditionally overwritten afterwards.
43373 Use ix86_reverse_condition instead of reverse_condition. Don't
43374 change code if *reverse_condition* returned UNKNOWN and don't
43375 swap ct/cf and negate diff in that case.
43377 2015-01-08 Mike Stump <mikestump@comcast.net>
43379 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43380 (pass_tsan_O0::gate): Likewise.
43381 * extend.texi (Function Attributes): Add no_sanitize_thread
43384 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
43386 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43387 for registering builtins.
43388 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43389 add -fopenmp to the argv_obstack used when invoking
43390 compile_for_target.
43392 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43393 add "-m32" or "-m64" to argv_obstack.
43394 (generate_host_descr_file): Likewise, when invoking host_compiler.
43395 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43398 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43400 * config/sh/sh-mem.cc: Use constant as second operand when emitting
43403 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43406 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43407 constant load if constant operand fits into I08.
43409 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43412 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43413 and TREE_THIS_VOLATILE for MEM_REFs.
43414 (build5_stat): Fix up initialization of TREE_READONLY and
43415 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43417 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
43420 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43421 of r for the second alternative of the destination operand.
43423 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
43426 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43428 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43430 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43432 ([-fivar-visibility], [-fvisibility]): Likewise.
43434 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43436 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43437 the file where @code, @command, etc is more appropriate.
43439 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
43441 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43442 of -mrecip= documentation.
43444 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
43447 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43448 correct reload handler if -m32 -mpowerpc64 is used.
43450 2015-01-06 Tom de Vries <tom@codesourcery.com>
43452 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43454 2015-01-08 Christian Bruel <christian.bruel@st.com>
43457 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43459 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
43461 PR tree-optimization/63259
43462 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43463 if optab exists for 16bit byteswap.
43465 2015-01-06 Jakub Jelinek <jakub@redhat.com>
43467 * opts.c (common_handle_option): Add support for
43468 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43469 * doc/invoke.texi: Document -fno-sanitize=all,
43470 -f{,no-}sanitize-recover=all. Document that
43471 -fsanitize=float-cast-overflow is not enabled
43472 by -fsanitize=undefined. Fix up documentation
43473 of -f{,no-}sanitize-recover.
43475 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
43477 * config.gcc: Add Visium support.
43478 * configure.ac: Likewise.
43479 * configure: Regenerate.
43480 * doc/extend.texi (interrupt attribute): Add Visium.
43481 * doc/invoke.texi: Document Visium options.
43482 * doc/install.texi: Document Visium target.
43483 * doc/md.texi: Document Visium constraints.
43484 * common/config/visium: New directory.
43485 * config/visium: Likewise.
43487 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43489 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43490 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43492 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43494 * combine.c (combine_validate_cost): Do not count the cost of a
43495 split I2 twice. Do not display it twice in the dump, either.
43497 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43499 Revert parts of r219199.
43500 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43502 ([-Wtraditional]): Restore markup on <limits.h>.
43504 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
43507 * doc/invoke.texi: Document -Wsuggest-override.
43509 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
43511 PR rtl-optimization/64287
43512 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43513 (process_options): Disable flag_ipa_ra if profiling.
43515 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
43517 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43519 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
43521 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43522 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43523 put under #if TARGET_LOOPS guard.
43525 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
43527 * config/i386/i386.c (output_387_binary_op): Use std::swap.
43529 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
43531 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43532 * rtl.h (refers_to_regno_p): Add overload.
43534 * bt-load.c: Likewise.
43535 * combine.c: Likewise.
43536 * df-scan.c: Likewise.
43537 * sched-deps.c: Likewise.
43538 * config/s390/s390.c: Likewise.
43539 * config/m32r/m32r.c: Likewise.
43540 * config/rs6000/spe.md: Likewise.
43541 * config/rs6000/rs6000.c: Likewise.
43542 * config/pa/pa.c: Likewise.
43543 * config/stormy16/stormy16.c: Likewise.
43544 * config/cris/cris.c: Likewise.
43545 * config/arc/arc.md: Likewise.
43546 * config/arc/arc.c: Likewise.
43547 * config/sh/sh.md: Likewise.
43548 * config/sh/sh.c: Likewise.
43549 * config/frv/frv.c: Likewise.
43551 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43554 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43555 call as cleanup of the whole body.
43556 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43557 * tsan.c (replace_func_exit): New function.
43558 (instrument_func_exit): Moved earlier.
43559 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43560 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43562 (tsan_pass): Don't call instrument_func_exit.
43563 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43564 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43568 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43569 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43570 it to libubsan handler instead of EXPR. Fold comparisons earlier,
43571 if the result is integer_zerop, return NULL_TREE.
43572 * convert.c (convert_to_integer): Pass expr as ARG.
43574 PR tree-optimization/64465
43575 * tree-inline.c (redirect_all_calls): During inlining
43576 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43577 changed the stmt to a non-throwing call.
43579 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43581 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43582 etc markup throughout the file.
43584 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
43586 Enable experimental TSAN support for Ada.
43587 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43589 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43591 PR tree-optimization/64494
43592 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43593 clear SSA_NAME_ANTI_RANGE_P flag.
43595 2015-01-05 Marek Polacek <polacek@redhat.com>
43597 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43599 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43601 Update copyright years.
43603 * gcc.c (process_command): Update copyright notice dates.
43604 * gcov-dump.c: Ditto.
43606 * doc/cpp.texi: Bump @copying's copyright year.
43607 * doc/cppinternals.texi: Ditto.
43608 * doc/gcc.texi: Ditto.
43609 * doc/gccint.texi: Ditto.
43610 * doc/gcov.texi: Ditto.
43611 * doc/install.texi: Ditto.
43612 * doc/invoke.texi: Ditto.
43614 * auto-profile.c, auto-profile.h: Fix up Copyright line.
43616 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
43618 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
43620 ([-fvtable-verify], [-fvtv-debug]): Likewise.
43621 ([-Wabi]): Likewise.
43622 ([-fmessage-length]): Likewise.
43623 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
43624 ([-Wno-discarded-qualifiers]): Likewise.
43625 ([-Wnodiscarded-array-qualifiers]): Likewise.
43626 ([-Wno-virtual-move-assign]): Likewise.
43627 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
43628 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
43629 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
43630 ([-fsanitize-undefined-trap-on-error]): Likewise.
43631 ([-floop-interchange]): Likewise.
43632 ([-ftree-coalesce-inlined-vars]): Likewise.
43633 ([-fvect-cost-model]): Likewise.
43634 ([-flto]): Likewise.
43635 ([--param]): Likewise.
43636 (Spec Files): Likewise.
43637 ([-mstrict-align]): Likewise.
43638 ([-mfix-cortex-a53-835769]): Likewise.
43639 ([-march], [-mtune]): Likewise.
43640 ([-mpic-register]): Likewise.
43641 ([-munaligned-access]): Likewise.
43642 ([-msp8]): Likewise.
43643 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
43644 (AVR Built-in Macros): Likewise.
43645 ([-mpreferred-stack-boundary]): Likewise.
43646 ([-mtune-crtl]): Likewise.
43647 ([-mashf]): Likewise.
43648 ([-mmcu=]): Likewise.
43649 ([-minrt]): Likewise.
43650 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
43651 ([-mupper-regs]): Likewise.
43652 ([-matomic-model]): Likewise.
43653 ([-mdiv]): Likewise.
43654 ([-mzdcbranch]): Likewise.
43655 ([-mdisable-callt]): Likewise.
43656 ([-msoft-float]): Likewise.
43657 ([-m8byte-align]): Likewise.
43658 ([-fstack-reuse]): Likewise.
43660 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43662 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
43663 Fix markup, light copy-editing.
43664 ([-fauto-profile]): Rewrite to fix formatting and content
43667 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43669 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
43670 Copy-edit description.
43671 ([-fisolate-erroneous-paths-attribute]): Likewise.
43672 * common.opt (fisolate-erroneous-paths-dereference):
43673 Copy-edit description.
43674 (fisolate-erroneous-paths-attribute): Likewise.
43676 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43678 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
43681 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43683 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
43684 ([-fvtv-debug]): Likewise.
43685 ([-Wc++-compat]): Likewise.
43686 ([-Wc++11-compat]): Likewise.
43687 ([-Wc++14-compat]): Likewise.
43688 ([-Wno-sized-deallocation]): Likewise.
43689 ([-femit-class-debug-always]): Likewise.
43690 ([-femit-struct-debug-detailed]): Likewise.
43691 ([-fno-keep-inline-dllexport]): Likewise.
43692 ([-fira-algorithm]): Likewise.
43693 ([-fira-region]): Likewise.
43694 ([-flra-remat]): Likewise.
43695 ([-fipa-ra]): Likewise.
43696 ([-fhoist-adjacent-loads]): Likewise.
43697 ([-fisolate-erroneous-paths-dereference]): Likewise.
43698 ([-fisolate-erroneous-paths-attribute]): Likewise.
43699 ([-ftree-switch-conversion]): Likewise.
43700 ([-ftree-tail-merge]): Likewise.
43701 ([-ftree-loop-if-convert]): Likewise.
43702 ([-ftree-loop-if-convert-stores]): Likewise.
43703 ([-ftree-loop-distribution]): Likewise.
43704 ([-ftree-loop-distribute-patterns]): Likewise.
43705 ([-flto-compression-level]): Likewise.
43706 ([-flto-report]): Likewise.
43707 ([-flto-report-wpa]): Likewise.
43708 ([-fuse-linker-plugin]): Likewise.
43709 ([-mfix-cortex-a53-835769]): Likewise.
43710 ([-mno-fix-cortex-a53-835769]): Likewise.
43711 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
43712 explicit listing; add a note to the discussion indicating they
43713 exist. Reorder table to group similar options. Add missing
43714 @opindex entries. Add @need commands throughout the table to
43715 allow it to be split across multiple pages.
43716 ([-m8bit-idiv]): Fix @opindex.
43717 ([-mavx256-split-unaligned-load]): Likewise.
43718 ([-mavx256-split-unaligned-store]): Likewise.
43719 ([-mstack-protector-guard]): Likewise.
43720 ([-mcpu=]): Likewise.
43721 ([-mcpu]): Likewise.
43722 ([-mpointer-size=]): Likewise.
43724 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
43726 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
43727 instead of `m' constraint. Likewise for unnamed movb comparison
43728 patterns using reg_before_reload_operand predicate.
43729 * config/pa/predicates.md (reg_before_reload_operand): Tighten
43730 predicate to reject register index and LO_SUM DLT memory forms
43733 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
43735 * doc/invoke.texi (Option Summary): Fix spelling of
43736 -fdevirtualize-at-ltrans.
43737 ([-fdevirtualize]): Fix markup.
43738 ([-fdevirtualize-speculatively]): Fix typo.
43739 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
43740 implementor-speaky.
43741 * common.opt (fdevirtualize-at-ltrans): Likewise.
43742 * ipa-devirt.c: Fix typos in comments throughout the file.
43743 (ipa_devirt): Fix typos in format strings for dump output.
43745 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
43747 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
43748 discussion of defaults, light copy-editing.
43750 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
43752 * tsan.c (instrument_expr): corrected previous checkin.
43754 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
43756 Instrument bit field and unaligned accesses for TSAN.
43757 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
43758 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
43759 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
43760 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
43761 unaligned memory regions.
43763 2015-01-01 Anthony Green <green@moxielogic.com>
43765 * config/moxie/predicates.md (moxie_general_movsrc_operand):
43766 Restrict move source register offsets to 16 bits.
43768 Copyright (C) 2015 Free Software Foundation, Inc.
43770 Copying and distribution of this file, with or without modification,
43771 are permitted in any medium without royalty provided the copyright
43772 notice and this notice are preserved.