1 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6 2015-07-10 Tom de Vries <tom@codesourcery.com>
8 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
11 2015-07-10 Richard Biener <rguenther@suse.de>
13 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
14 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15 (if_convertible_loop_p_1): For this always compute bb predicates.
16 (if_convertible_loop_p): And free them.
18 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23 2015-07-10 Richard Biener <rguenther@suse.de>
25 PR tree-optimization/66823
26 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
29 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
31 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
32 to handle mips[32|64]r3 and mips[32|64]r5.
34 2015-07-09 Jakub Jelinek <jakub@redhat.com>
37 * tree-nested.c (get_static_chain): Or in a flag into
38 info->static_chain_added.
39 (get_frame_field, get_nonlocal_debug_decl): Likewise.
40 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
42 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
43 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
46 PR tree-optimization/66718
47 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
49 (vect_simd_lane_linear): New function.
50 (vectorizable_simd_clone_call): Support using linear arguments for
51 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
53 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
56 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
58 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
60 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
61 Use machine mode, not enum machine_mode in the prototype.
63 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
64 classify 128-bit floating point support.
65 (FLOAT128_IBM_P): Likewise.
66 (FLOAT128_VECTOR_P): Likewise.
67 (FLOAT128_2REG_P): Likewise.
68 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
69 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
70 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
71 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
73 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
74 tests against TFmode/TDmode, since those modes do not use VSX
76 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
78 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
79 tests against TFmode, etc.
80 (invalid_e500_subreg): Add tests against IFmode/KFmode.
81 (reg_offset_addressing_ok_p): Likewise.
82 (rs6000_legitimate_offset_address_p): Likewise.
83 (rs6000_legitimize_address): Likewise.
84 (rs6000_legitimize_reload_address): Likewise.
85 (rs6000_legitimate_address_p): Clean up tests against TFmode and
86 TDmode to use the new helper macros, which will include IFmode and
88 (rs6000_emit_move): Likewise.
89 (rs6000_darwin64_record_arg_recurse): Likewise.
90 (print_operand): Likewise.
91 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
92 that uses a single vector register as a vector and not as a
93 floating point register in terms of the calling sequence.
94 (rs6000_discover_homogeneous_aggregate): Likewise.
95 (rs6000_return_in_memory): Likewise.
96 (init_cumulative_args): Likewise.
97 (rs6000_function_arg_boundary): Likewise.
98 (rs6000_function_arg_advance_1): Likewise.
99 (rs6000_function_arg): Likewise.
100 (rs6000_pass_by_reference): Likewise.
101 (rs6000_gimplify_va_arg): Likewise.
102 (rs6000_secondary_reload_memory): Use machine_mode not enum
104 (rs6000_split_multireg_move): Use new helper macros.
105 (spe_func_has_64bit_regs_p): Likewise.
106 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
107 (output_toc): Use new helper macros.
108 (rs6000_register_move_cost): Likewise.
109 (rs6000_function_value): Add IEEE 128-bit floating point calling
111 (rs6000_libcall_value): Likewise.
112 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
113 floating point support.
114 (rs6000_vector_mode_supported_p): Likewise.
116 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
118 PR rtl-optimization/66782
119 * lra-int.h (struct lra_insn_recog_data): Add comment about
120 clobbered hard regs for arg_hard_regs.
121 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
122 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
123 Add condition for processing used hard regs.
124 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
125 Process clobbered hard regs.
127 2015-07-09 Michael Matz <matz@suse.de>
129 * genmatch.c (fprintf_indent): New function.
130 (operand::gen_transform): Add indent parameter.
131 (expr::gen_transform, c_expr::gen_transform,
132 capture::gen_transform): Ditto and use fprintf_indent.
133 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
134 (dt_operand::gen, dt_operand::gen_predicate,
135 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
136 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
137 (decision_tree::gen_gimple): Adjust calls and indent generated
139 (decision_tree::gen_generic): Ditto.
140 (write_predicate): Ditto.
142 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
145 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
146 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
147 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
148 {GENERAL_SSE_MMX}_REG_P where appropriate.
150 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
152 * lto-streamer.h: Don't include target.h and alloc-pool.h.
153 * builtins.c: Adjust includes.
154 * gimple.c: Likewise.
155 * ipa-icf.c: Likewise.
156 * lto-opts.c: Likewise.
157 * ipa-reference.c: Likewise.
158 * lto-section-out.c: Likewise.
159 * lto-streamer-in.c: Likewise.
160 * lto-streamer-out.c: Likewise.
161 * opts-global.c: Likewise.
162 * symtab.c: Likewise.
163 * tree-chkp.c: Likewise.
164 * tree-ssa-live.c: Likewise.
165 * tree-streamer-in.c: Likewise.
166 * tree-streamer-out.c: Likewise.
167 * config/darwin.c: Likewise.
168 * config/i386/winnt.c: Likewise.
170 2015-07-09 Richard Biener <rguenther@suse.de>
172 * genmatch.c (struct expr): Add force_single_use flag.
173 (expr::expr): Add copy constructor.
174 (capture_info::walk_match): Gather force_single_use captures.
175 (expr::gen_transform): Use possibly NULLified sequence.
176 (dt_simplify::gen): Apply single-use restrictions by NULLifying
177 seq if any constrained expr is not single-use.
178 (parser::parse_expr): Refactor to allow multiple flags. Handle
179 's' flag to force an expression have a single-use if the pattern
180 simplifies to more than one statement.
181 * match.pd: Convert most single_use conditionals to :s flags.
183 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
185 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
186 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
187 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
189 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
191 * flags.h: Don't include flag-types.h or options.h.
192 * opts-common.c: Adjust includes.
193 * opts-global.c: Likewise.
194 * common/config/epiphany/epiphany-common.c: Likewise.
196 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
199 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
202 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
205 * config/i386/i386.c (ix86_return_in_memory): Return true
206 if int_size_in_bytes returns negative for IA MCU.
208 2015-07-09 Marek Polacek <polacek@redhat.com>
210 PR tree-optimization/66718
211 * Makefile.in (OBJS): Add gimple-laddress.o.
212 * passes.def: Schedule pass_laddress.
213 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
214 * tree-pass.h (make_pass_laddress): Declare.
215 * gimple-laddress.c: New file.
217 2015-07-09 Richard Biener <rguenther@suse.de>
219 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
221 2015-07-09 Richard Biener <rguenther@suse.de>
223 PR tree-optimization/66807
224 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
226 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
228 * function.c (stack_protect_epilogue): Use if rather than switch for
229 check targetm.have_stack_protect_test.
231 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
233 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
234 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
235 * config/arc/arc.h: Likewise.
236 * config/arm/arm.h: Likewise.
237 * config/bfin/bfin.h: Likewise.
238 * config/epiphany/epiphany.h: Likewise.
239 * config/frv/frv.h: Likewise.
240 * config/ia64/ia64.h: Likewise.
241 * config/iq2000/iq2000.h: Likewise.
242 * config/lm32/lm32.h: Likewise.
243 * config/m32r/m32r.h: Likewise.
244 * config/mcore/mcore.h: Likewise.
245 * config/mep/mep.h: Likewise.
246 * config/microblaze/microblaze.h: Likewise.
247 * config/mips/mips.h: Likewise.
248 * config/mmix/mmix.h: Likewise.
249 * config/mn10300/mn10300.h: Likewise.
250 * config/nds32/nds32.h: Likewise.
251 * config/nios2/nios2.h: Likewise.
252 * config/pa/pa.h: Likewise.
253 * config/rl78/rl78.h: Likewise.
254 * config/sh/sh.h: Likewise.
255 * config/sparc/sparc.h: Likewise.
256 * config/stormy16/stormy16.h: Likewise.
257 * config/tilegx/tilegx.h: Likewise.
258 * config/tilepro/tilepro.h: Likewise.
259 * config/v850/v850.h: Likewise.
260 * config/xtensa/xtensa.h: Likewise.
261 * doc/tm.texi: Regenerate.
262 * doc/tm.texi.in: Adjust.
263 * combine.c (simplify_set): Likewise.
264 (simplify_comparison): Likewise.
265 * expr.c (store_constructor): Likewise.
266 * internal-fn.c (expand_arith_overflow): Likewise.
267 * reload.c (push_reload): Likewise.
268 (find_reloads): Likewise.
269 (find_reloads_subreg_address): Likewise.
270 * reload1.c (eliminate_regs_1): Likewise.
271 * rtlanal.c (nonzero_bits1): Likewise.
272 (num_sign_bit_copies1): Likewise.
273 * simplify-rtx.c (simplify_truncation): Likewise.
275 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
277 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
278 of AUTO_INC_DEC with the preprocessor.
279 * combine.c (combine_instructions): Likewise.
280 (can_combine_p): Likewise.
281 (try_combine): Likewise.
282 * emit-rtl.c (try_split): Likewise.
283 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
284 * lower-subreg.c (resolve_simple_move): Likewise.
285 * lra.c (update_inc_notes): Likewise.
286 * recog.c (asm_operand_ok): Likewise.
287 (constrain_operands): Likewise.
288 * regrename.c (scan_rtx_address): Likewise.
289 * reload.c (update_auto_inc_notes): Likewise.
290 (reg_inc_found_and_valid_p): Likewise.
291 * reload1.c (reload): Likewise.
292 (emit_input_reload_insns): Likewise.
293 (delete_output_reload): Likewise.
294 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
295 * valtrack.c (cleanup_auto_inc_dec): Likewise.
297 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
299 * rtl.h: Always define AUTO_INC_DEC.
300 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
301 * combine.c (combine_instructions): Likewise.
302 (can_combine_p): Likewise.
303 (try_combine): Likewise.
304 * emit-rtl.c (try_split): Likewise.
305 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
306 * lower-subreg.c (resolve_simple_move): Likewise.
307 * lra.c (update_inc_notes): Likewise.
308 * recog.c (asm_operand_ok): Likewise.
309 (constrain_operands): Likewise.
310 * regrename.c (scan_rtx_address): Likewise.
311 * reload.c (update_auto_inc_notes): Likewise.
312 (find_equiv_reg): Likewise.
313 * reload1.c (reload): Likewise.
314 (reload_as_needed): Likewise.
315 (choose_reload_regs): Likewise.
316 (emit_input_reload_insns): Likewise.
317 (delete_output_reload): Likewise.
318 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
319 * valtrack.c (cleanup_auto_inc_dec): Likewise.
321 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
323 * combine.c (can_combine_def_p): Don't check the value of
324 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
325 (combinable_i3pat): Likewise.
326 (mark_used_regs_combine): Likewise.
327 * regrename.c (rename_chains): Likewise.
328 * reload.c (find_reloads_address): Likewise.
329 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
331 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
333 * combine.c (update_rsp_from_reg_equal): Don't check if
334 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
335 (reg_nonzero_bits_for_combine): Likewise.
336 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
338 * config/frv/frv.h: Likewise.
339 * config/lm32/lm32.h: Likewise.
340 * config/mep/mep.h: Likewise.
341 * config/mips/mips.h: Likewise.
342 * config/rs6000/rs6000.h: Likewise.
343 * config/sh/sh.h: Likewise.
344 * config/tilegx/tilegx.h (enum reg_class): Likewise.
345 * config/tilepro/tilepro.h: Likewise.
346 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
347 * doc/tm.texi: Regenerate.
348 * doc/tm.texi.in: Adjust.
349 * rtlanal.c (nonzero_bits1): Likewise.
351 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
353 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
354 with the preprocessor.
355 (combine_instructions): Likewise.
356 (try_combine): Likewise.
358 (distribute_notes): Likewise.
360 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
362 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
364 (simplify_set): Likewise.
365 * cse.c (cse_insn): Likewise.
366 * fold-const.c (fold_single_bit_test): Likewise.
367 (fold_unary_loc): Likewise.
368 * postreload.c (reload_cse_simplify_set): Likewise.
369 (reload_cse_simplify_operands): Likewise.
371 2015-07-08 Jiong Wang <jiong.wang@arm.com>
373 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
374 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
376 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
379 * config/i386/x86intrin.h: Include <adxintrin.h> even if
380 __iamcu__ is defined.
382 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
384 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
386 2015-07-08 Iain Sandoe <iain@codesourcery.com>
389 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
390 names from preservation.
392 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
395 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
396 hard regno live at the start of BB with incoming abnormal edges.
397 * lra-lives.c (process_bb_lives): Ditto.
399 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
402 * config/nvptx/mkoffload.c (main): Create an offload image only in
403 64-bit configurations.
405 2015-07-08 Martin Liska <mliska@suse.cz>
408 * tree-sra.c (create_access_1): Call ctor without brackets.
409 (create_artificial_child_access): Likewise.
411 2015-07-08 Richard Biener <rguenther@suse.de>
413 PR tree-optimization/66793
414 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
415 Properly split the block after stmts ending it.
417 2015-07-08 Richard Biener <rguenther@suse.de>
419 PR tree-optimization/66794
420 * passes.c (execute_function_todo): Assert that post-dominators
422 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
423 Free post-dominators.
425 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
427 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
430 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
432 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
433 more than or equal 8 and less than 32 when optimizing for size.
435 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
437 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
438 COSTS_N_INSNS (1) and increment it appropriately throughout the
441 2015-07-08 Richard Biener <rguenther@suse.de>
443 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
445 2015-07-08 Alan Modra <amodra@gmail.com>
447 * target.def (rtx_costs): Remove "code" param, add "mode".
448 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
449 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
450 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
451 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
452 call. Track mode when given in rtx.
453 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
454 (default_address_cost): Pass Pmode to rtx_cost.
455 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
456 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
458 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
459 (notreg_cost): Add mode param. Use it.
460 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
461 mode param and pass to set_src_cost. Update all calls.
462 (hash_scan_set): Formatting.
463 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
464 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
466 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
467 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
468 emit_store_flag): Update set_src_cost and rtx_cost calls.
469 * auto-inc-dec.c (attempt_change): Likewise.
470 * calls.c (precompute_register_parameters): Likewise.
471 * combine.c (expand_compound_operation, make_extraction,
472 force_to_mode, distribute_and_simplify_rtx): Likewise.
473 * dojump.c (prefer_and_bit_test): Likewise.
474 * dse.c (find_shift_sequence): Likewise.
475 * expr.c (compress_float_constant): Likewise.
476 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
477 * ifcvt.c (noce_try_sign_mask): Likewise.
478 * loop-doloop.c (doloop_optimize): Likewise.
479 * loop-invariant.c (create_new_invariant): Likewise.
480 * lower-subreg.c (shift_cost, compute_costs): Likewise.
481 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
482 lshift_cheap_p): Likewise.
483 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
484 try_replace_in_use, reload_cse_move2add): Likewise.
485 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
487 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
488 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
489 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
490 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
491 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
492 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
494 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
495 * config/arc/arc.c (arc_rtx_costs): Likewise.
496 * config/arm/arm.c (arm_rtx_costs): Likewise.
497 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
498 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
499 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
500 * config/cris/cris.c (cris_rtx_costs): Likewise.
501 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
502 * config/frv/frv.c (frv_rtx_costs): Likewise.
503 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
504 * config/i386/i386.c (ix86_rtx_costs): Likewise.
505 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
506 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
507 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
508 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
509 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
510 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
511 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
512 * config/mep/mep.c (mep_rtx_cost): Likewise.
513 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
514 * config/mips/mips.c (mips_rtx_costs): Likewise.
515 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
516 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
517 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
518 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
519 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
520 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
521 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
522 * config/pa/pa.c (hppa_rtx_costs): Likewise.
523 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
524 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
525 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
526 * config/s390/s390.c (s390_rtx_costs): Likewise.
527 * config/sh/sh.c (sh_rtx_costs): Likewise.
528 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
529 * config/spu/spu.c (spu_rtx_costs): Likewise.
530 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
531 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
532 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
533 * config/v850/v850.c (v850_rtx_costs): Likewise.
534 * config/vax/vax.c (vax_rtx_costs): Likewise.
535 * config/visium/visium.c (visium_rtx_costs): Likewise.
536 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
537 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
538 "code" param, and pass as outer_code to first rtx_cost call. Pass
539 mode to rtx_cost calls.
540 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
542 (aarch64_rtx_costs_wrapper): Update.
543 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
544 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
546 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
548 (avr_operand_rtx_cost): Similarly.
549 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
550 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
551 * config/mips/mips.c (mips_stack_address_p): Comment typo.
552 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
553 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
554 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
556 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
557 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
558 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
559 * doc/tm.texi: Regenerate.
561 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
563 * tree-core.h: Include symtab.h.
564 * rtl.h: Include hard-reg-set.h but not flags.h.
565 (HARD_CONST): Remove condition compilation involving HARD_CONST since
566 hard-reg-set.h is always included.
567 * regs.h: Don't include hard-reg-set.h or rtl.h.
568 * cfg.h: Include dominance.h.
569 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
570 * backend.h: New. Aggregate commonly used backend header files.
571 * gimple-ssa.h: Don't include tree-hasher.h.
572 * ssa.h: New. Aggregate commonly used SSA header files.
573 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
574 * sel-sched-ir.h: Flatten includes.
575 * lra-int.h: Flatten completely.
576 * sel-sched-dump.h: Flatten includes.
577 * ira-int.h: Flatten includes.
578 * gimple-streamer.h: Remove all includes.
579 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
580 * resource.h: Flatten hard-reg-set.h and df.h.
581 * sched-int.h: Flatten insn-arrt.h and df.h.
582 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
583 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
584 * genattrtab.c (write_header): Adjust generated includes.
585 * genautomata.c (main): Likewise.
586 * genconditions.c (write-header): Likewise.
587 * genemit.c (main): Likewise.
588 * gengtype.c (open_base_files): Likewise.
589 * genopinit.c (main): Likewise.
590 * genoutput.c (output_prologue): Likewise.
591 * genpeep.c (main): Likewise.
592 * genpreds.c (write_insn_preds_c): Likewise.
593 * genrecog.c (write_header): Likewise.
594 * alias.c: Adjust includes.
596 * attribs.c: Likewise.
597 * auto-inc-dec.c: Likewise.
598 * auto-profile.c: Likewise.
599 * bb-reorder.c: Likewise.
600 * bt-load.c: Likewise.
601 * builtins.c: Likewise.
602 * caller-save.c: Likewise.
606 * cfganal.c: Likewise.
607 * cfgbuild.c: Likewise.
608 * cfgcleanup.c: Likewise.
609 * cfgexpand.c: Likewise.
610 * cfghooks.c: Likewise.
611 * cfgloop.c: Likewise.
612 * cfgloopanal.c: Likewise.
613 * cfgloopmanip.c: Likewise.
614 * cfgrtl.c: Likewise.
615 * cgraph.c: Likewise.
616 * cgraphbuild.c: Likewise.
617 * cgraphclones.c: Likewise.
618 * cgraphunit.c: Likewise.
619 * cilk-common.c: Likewise.
620 * combine-stack-adj.c: Likewise.
621 * combine.c: Likewise.
622 * compare-elim.c: Likewise.
623 * convert.c: Likewise.
624 * coverage.c: Likewise.
625 * cppbuiltin.c: Likewise.
628 * cselib.c: Likewise.
629 * data-streamer-in.c: Likewise.
630 * data-streamer-out.c: Likewise.
631 * data-streamer.c: Likewise.
632 * dbxout.c: Likewise.
636 * df-core.c: Likewise.
637 * df-problems.c: Likewise.
638 * df-scan.c: Likewise.
640 * dojump.c: Likewise.
641 * dominance.c: Likewise.
642 * domwalk.c: Likewise.
643 * double-int.c: Likewise.
645 * dumpfile.c: Likewise.
646 * dwarf2asm.c: Likewise.
647 * dwarf2cfi.c: Likewise.
648 * dwarf2out.c: Likewise.
649 * emit-rtl.c: Likewise.
650 * et-forest.c: Likewise.
651 * except.c: Likewise.
652 * explow.c: Likewise.
653 * expmed.c: Likewise.
656 * fixed-value.c: Likewise.
657 * fold-const.c: Likewise.
658 * function.c: Likewise.
659 * fwprop.c: Likewise.
660 * gcc-plugin.h: Likewise.
661 * gcse-common.c: Likewise.
663 * generic-match-head.c: Likewise.
664 * ggc-page.c: Likewise.
665 * gimple-builder.c: Likewise.
666 * gimple-expr.c: Likewise.
667 * gimple-fold.c: Likewise.
668 * gimple-iterator.c: Likewise.
669 * gimple-low.c: Likewise.
670 * gimple-match-head.c: Likewise.
671 * gimple-pretty-print.c: Likewise.
672 * gimple-ssa-isolate-paths.c: Likewise.
673 * gimple-ssa-strength-reduction.c: Likewise.
674 * gimple-streamer-in.c: Likewise.
675 * gimple-streamer-out.c: Likewise.
676 * gimple-walk.c: Likewise.
677 * gimple.c: Likewise.
678 * gimplify-me.c: Likewise.
679 * gimplify.c: Likewise.
680 * godump.c: Likewise.
682 * graphite-blocking.c: Likewise.
683 * graphite-dependences.c: Likewise.
684 * graphite-interchange.c: Likewise.
685 * graphite-isl-ast-to-gimple.c: Likewise.
686 * graphite-optimize-isl.c: Likewise.
687 * graphite-poly.c: Likewise.
688 * graphite-scop-detection.c: Likewise.
689 * graphite-sese-to-poly.c: Likewise.
690 * graphite.c: Likewise.
691 * haifa-sched.c: Likewise.
692 * hw-doloop.c: Likewise.
694 * init-regs.c: Likewise.
695 * internal-fn.c: Likewise.
696 * ipa-chkp.c: Likewise.
697 * ipa-comdats.c: Likewise.
698 * ipa-cp.c: Likewise.
699 * ipa-devirt.c: Likewise.
700 * ipa-icf-gimple.c: Likewise.
701 * ipa-icf.c: Likewise.
702 * ipa-inline-analysis.c: Likewise.
703 * ipa-inline-transform.c: Likewise.
704 * ipa-inline.c: Likewise.
705 * ipa-polymorphic-call.c: Likewise.
706 * ipa-profile.c: Likewise.
707 * ipa-prop.c: Likewise.
708 * ipa-pure-const.c: Likewise.
709 * ipa-ref.c: Likewise.
710 * ipa-reference.c: Likewise.
711 * ipa-split.c: Likewise.
712 * ipa-utils.c: Likewise.
713 * ipa-visibility.c: Likewise.
715 * ira-build.c: Likewise.
716 * ira-color.c: Likewise.
717 * ira-conflicts.c: Likewise.
718 * ira-costs.c: Likewise.
719 * ira-emit.c: Likewise.
720 * ira-lives.c: Likewise.
723 * langhooks.c: Likewise.
725 * loop-doloop.c: Likewise.
726 * loop-init.c: Likewise.
727 * loop-invariant.c: Likewise.
728 * loop-iv.c: Likewise.
729 * loop-unroll.c: Likewise.
730 * lower-subreg.c: Likewise.
731 * lra-assigns.c: Likewise.
732 * lra-coalesce.c: Likewise.
733 * lra-constraints.c: Likewise.
734 * lra-eliminations.c: Likewise.
735 * lra-lives.c: Likewise.
736 * lra-remat.c: Likewise.
737 * lra-spills.c: Likewise.
739 * lto-cgraph.c: Likewise.
740 * lto-compress.c: Likewise.
741 * lto-opts.c: Likewise.
742 * lto-section-in.c: Likewise.
743 * lto-section-out.c: Likewise.
744 * lto-streamer-in.c: Likewise.
745 * lto-streamer-out.c: Likewise.
746 * lto-streamer.c: Likewise.
748 * mode-switching.c: Likewise.
749 * modulo-sched.c: Likewise.
751 * omp-low.c: Likewise.
752 * optabs.c: Likewise.
753 * opts-global.c: Likewise.
754 * passes.c: Likewise.
755 * plugin.c: Likewise.
756 * postreload-gcse.c: Likewise.
757 * postreload.c: Likewise.
758 * predict.c: Likewise.
759 * print-rtl.c: Likewise.
760 * print-tree.c: Likewise.
761 * profile.c: Likewise.
763 * realmpfr.c: Likewise.
766 * reg-stack.c: Likewise.
767 * regcprop.c: Likewise.
768 * reginfo.c: Likewise.
769 * regrename.c: Likewise.
770 * regstat.c: Likewise.
771 * reload.c: Likewise.
772 * reload1.c: Likewise.
774 * resource.c: Likewise.
775 * rtl-chkp.c: Likewise.
776 * rtlanal.c: Likewise.
777 * rtlhooks.c: Likewise.
778 * sanopt.c: Likewise.
779 * sched-deps.c: Likewise.
780 * sched-ebb.c: Likewise.
781 * sched-rgn.c: Likewise.
782 * sched-vis.c: Likewise.
783 * sdbout.c: Likewise.
784 * sel-sched-dump.c: Likewise.
785 * sel-sched-ir.c: Likewise.
786 * sel-sched.c: Likewise.
788 * shrink-wrap.c: Likewise.
789 * simplify-rtx.c: Likewise.
790 * stack-ptr-mod.c: Likewise.
792 * stor-layout.c: Likewise.
793 * store-motion.c: Likewise.
794 * stringpool.c: Likewise.
795 * symtab.c: Likewise.
796 * target-globals.c: Likewise.
797 * targhooks.c: Likewise.
798 * toplev.c: Likewise.
799 * tracer.c: Likewise.
800 * trans-mem.c: Likewise.
801 * tree-affine.c: Likewise.
802 * tree-browser.c: Likewise.
803 * tree-call-cdce.c: Likewise.
804 * tree-cfg.c: Likewise.
805 * tree-cfgcleanup.c: Likewise.
806 * tree-chkp-opt.c: Likewise.
807 * tree-chkp.c: Likewise.
808 * tree-chrec.c: Likewise.
809 * tree-complex.c: Likewise.
810 * tree-data-ref.c: Likewise.
811 * tree-dfa.c: Likewise.
812 * tree-diagnostic.c: Likewise.
813 * tree-dump.c: Likewise.
814 * tree-eh.c: Likewise.
815 * tree-emutls.c: Likewise.
816 * tree-if-conv.c: Likewise.
817 * tree-inline.c: Likewise.
818 * tree-into-ssa.c: Likewise.
819 * tree-iterator.c: Likewise.
820 * tree-loop-distribution.c: Likewise.
821 * tree-nested.c: Likewise.
822 * tree-nrv.c: Likewise.
823 * tree-object-size.c: Likewise.
824 * tree-outof-ssa.c: Likewise.
825 * tree-parloops.c: Likewise.
826 * tree-phinodes.c: Likewise.
827 * tree-predcom.c: Likewise.
828 * tree-pretty-print.c: Likewise.
829 * tree-profile.c: Likewise.
830 * tree-scalar-evolution.c: Likewise.
831 * tree-sra.c: Likewise.
832 * tree-ssa-address.c: Likewise.
833 * tree-ssa-alias.c: Likewise.
834 * tree-ssa-ccp.c: Likewise.
835 * tree-ssa-coalesce.c: Likewise.
836 * tree-ssa-copy.c: Likewise.
837 * tree-ssa-copyrename.c: Likewise.
838 * tree-ssa-dce.c: Likewise.
839 * tree-ssa-dom.c: Likewise.
840 * tree-ssa-dse.c: Likewise.
841 * tree-ssa-forwprop.c: Likewise.
842 * tree-ssa-ifcombine.c: Likewise.
843 * tree-ssa-live.c: Likewise.
844 * tree-ssa-loop-ch.c: Likewise.
845 * tree-ssa-loop-im.c: Likewise.
846 * tree-ssa-loop-ivcanon.c: Likewise.
847 * tree-ssa-loop-ivopts.c: Likewise.
848 * tree-ssa-loop-manip.c: Likewise.
849 * tree-ssa-loop-niter.c: Likewise.
850 * tree-ssa-loop-prefetch.c: Likewise.
851 * tree-ssa-loop-unswitch.c: Likewise.
852 * tree-ssa-loop.c: Likewise.
853 * tree-ssa-math-opts.c: Likewise.
854 * tree-ssa-operands.c: Likewise.
855 * tree-ssa-phiopt.c: Likewise.
856 * tree-ssa-phiprop.c: Likewise.
857 * tree-ssa-pre.c: Likewise.
858 * tree-ssa-propagate.c: Likewise.
859 * tree-ssa-reassoc.c: Likewise.
860 * tree-ssa-sccvn.c: Likewise.
861 * tree-ssa-scopedtables.c: Likewise.
862 * tree-ssa-sink.c: Likewise.
863 * tree-ssa-strlen.c: Likewise.
864 * tree-ssa-structalias.c: Likewise.
865 * tree-ssa-tail-merge.c: Likewise.
866 * tree-ssa-ter.c: Likewise.
867 * tree-ssa-threadedge.c: Likewise.
868 * tree-ssa-threadupdate.c: Likewise.
869 * tree-ssa-uncprop.c: Likewise.
870 * tree-ssa-uninit.c: Likewise.
871 * tree-ssa.c: Likewise.
872 * tree-ssanames.c: Likewise.
873 * tree-stdarg.c: Likewise.
874 * tree-streamer-in.c: Likewise.
875 * tree-streamer-out.c: Likewise.
876 * tree-streamer.c: Likewise.
877 * tree-switch-conversion.c: Likewise.
878 * tree-tailcall.c: Likewise.
879 * tree-vect-data-refs.c: Likewise.
880 * tree-vect-generic.c: Likewise.
881 * tree-vect-loop-manip.c: Likewise.
882 * tree-vect-loop.c: Likewise.
883 * tree-vect-patterns.c: Likewise.
884 * tree-vect-slp.c: Likewise.
885 * tree-vect-stmts.c: Likewise.
886 * tree-vectorizer.c: Likewise.
887 * tree-vrp.c: Likewise.
891 * valtrack.c: Likewise.
892 * value-prof.c: Likewise.
893 * var-tracking.c: Likewise.
894 * varasm.c: Likewise.
895 * varpool.c: Likewise.
896 * vmsdbgout.c: Likewise.
897 * vtable-verify.c: Likewise.
899 * wide-int.cc: Likewise.
900 * xcoffout.c: Likewise.
901 * config/aarch64/aarch64-builtins.c: Likewise.
902 * config/aarch64/aarch64.c: Likewise.
903 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
904 * config/alpha/alpha.c: Likewise.
905 * config/arc/arc.c: Likewise.
906 * config/arm/aarch-common.c: Likewise.
907 * config/arm/arm-builtins.c: Likewise.
908 * config/arm/arm-c.c: Likewise.
909 * config/arm/arm.c: Likewise.
910 * config/avr/avr-c.c: Likewise.
911 * config/avr/avr-log.c: Likewise.
912 * config/avr/avr.c: Likewise.
913 * config/bfin/bfin.c: Likewise.
914 * config/c6x/c6x.c: Likewise.
915 * config/cr16/cr16.c: Likewise.
916 * config/cris/cris.c: Likewise.
917 * config/darwin-c.c: Likewise.
918 * config/darwin.c: Likewise.
919 * config/epiphany/epiphany.c: Likewise.
920 * config/epiphany/mode-switch-use.c: Likewise.
921 * config/epiphany/resolve-sw-modes.c: Likewise.
922 * config/fr30/fr30.c: Likewise.
923 * config/frv/frv.c: Likewise.
924 * config/ft32/ft32.c: Likewise.
925 * config/h8300/h8300.c: Likewise.
926 * config/i386/i386-c.c: Likewise.
927 * config/i386/i386.c: Likewise.
928 * config/i386/msformat-c.c: Likewise.
929 * config/i386/winnt-cxx.c: Likewise.
930 * config/i386/winnt-stubs.c: Likewise.
931 * config/i386/winnt.c: Likewise.
932 * config/ia64/ia64-c.c: Likewise.
933 * config/ia64/ia64.c: Likewise.
934 * config/iq2000/iq2000.c: Likewise.
935 * config/lm32/lm32.c: Likewise.
936 * config/m32c/m32c-pragma.c: Likewise.
937 * config/m32c/m32c.c: Likewise.
938 * config/m32r/m32r.c: Likewise.
939 * config/m68k/m68k.c: Likewise.
940 * config/mcore/mcore.c: Likewise.
941 * config/mep/mep-pragma.c: Likewise.
942 * config/mep/mep.c: Likewise.
943 * config/microblaze/microblaze-c.c: Likewise.
944 * config/microblaze/microblaze.c: Likewise.
945 * config/mips/mips.c: Likewise.
946 * config/mmix/mmix.c: Likewise.
947 * config/mn10300/mn10300.c: Likewise.
948 * config/moxie/moxie.c: Likewise.
949 * config/msp430/msp430-c.c: Likewise.
950 * config/msp430/msp430.c: Likewise.
951 * config/nds32/nds32-cost.c: Likewise.
952 * config/nds32/nds32-fp-as-gp.c: Likewise.
953 * config/nds32/nds32-intrinsic.c: Likewise.
954 * config/nds32/nds32-isr.c: Likewise.
955 * config/nds32/nds32-md-auxiliary.c: Likewise.
956 * config/nds32/nds32-memory-manipulation.c: Likewise.
957 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
958 * config/nds32/nds32-predicates.c: Likewise.
959 * config/nds32/nds32.c: Likewise.
960 * config/nios2/nios2.c: Likewise.
961 * config/nvptx/nvptx.c: Likewise.
962 * config/pa/pa.c: Likewise.
963 * config/pdp11/pdp11.c: Likewise.
964 * config/rl78/rl78-c.c: Likewise.
965 * config/rl78/rl78.c: Likewise.
966 * config/rs6000/rs6000-c.c: Likewise.
967 * config/rs6000/rs6000.c: Likewise.
968 * config/rx/rx.c: Likewise.
969 * config/s390/s390-c.c: Likewise.
970 * config/s390/s390.c: Likewise.
971 * config/sh/sh-c.c: Likewise.
972 * config/sh/sh-mem.cc: Likewise.
973 * config/sh/sh.c: Likewise.
974 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
975 * config/sh/sh_treg_combine.cc: Likewise.
976 * config/sol2-c.c: Likewise.
977 * config/sol2-cxx.c: Likewise.
978 * config/sol2-stubs.c: Likewise.
979 * config/sol2.c: Likewise.
980 * config/sparc/sparc-c.c: Likewise.
981 * config/sparc/sparc.c: Likewise.
982 * config/spu/spu-c.c: Likewise.
983 * config/spu/spu.c: Likewise.
984 * config/stormy16/stormy16.c: Likewise.
985 * config/tilegx/mul-tables.c: Likewise.
986 * config/tilegx/tilegx-c.c: Likewise.
987 * config/tilegx/tilegx.c: Likewise.
988 * config/tilepro/mul-tables.c: Likewise.
989 * config/tilepro/tilepro-c.c: Likewise.
990 * config/tilepro/tilepro.c: Likewise.
991 * config/v850/v850-c.c: Likewise.
992 * config/v850/v850.c: Likewise.
993 * config/vax/vax.c: Likewise.
994 * config/visium/visium.c: Likewise.
995 * config/vms/vms-c.c: Likewise.
996 * config/vms/vms.c: Likewise.
997 * config/vxworks.c: Likewise.
998 * config/xtensa/xtensa.c: Likewise.
1000 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
1002 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
1003 Remove operand constraints. Change operand 2 predicate to
1004 nonmemory operand. Limit const_int values to mode bitsize. Only
1005 allow const_int values less than 32 when optimizing for size.
1006 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
1007 Remove operand constraints.
1008 (*bt<mode>): Use SImode for const_int values less than 32.
1009 (regmode): Remove mode attribute.
1011 2015-07-07 Anatoly Sokolov <aesok@post.ru>
1013 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1014 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
1015 moxie_legitimate_address_p): New functions.
1016 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1018 2015-07-07 Tom de Vries <tom@codesourcery.com>
1020 PR tree-optimization/66642
1021 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
1022 header comment. Rename split_edge variable to edge_at_split. Split
1023 exit edge to create new loop exit bb. Insert loop exit phis in new
1026 2015-07-07 Tom de Vries <tom@codesourcery.com>
1028 * tree-cfg.c (get_virtual_phi): New function.
1029 * tree-cfg.h (get_virtual_phi): Declare.
1030 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
1031 (rewrite_virtuals_into_loop_closed_ssa): New function.
1032 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
1034 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
1035 (transform_to_exit_first_loop_alt): Use
1036 rewrite_virtuals_into_loop_closed_ssa.
1038 2015-07-07 Richard Biener <rguenther@suse.de>
1040 * fold-const.c (fold_binary_loc): Move
1041 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
1042 * match.pd: ... here.
1043 Add (X * C1) % C2 -> 0 simplification pattern derived from
1046 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
1049 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
1050 change for target/65249.
1052 2015-07-07 Paulo Matos <pmatos@broadcom.com>
1054 * symtab.c (address_matters_1): Fix typo in comment above.
1055 (can_increase_alignment_p): Likewise.
1057 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1059 * function.c (free_after_compilation): Clear PROP_cfg in
1062 2015-07-07 Richard Biener <rguenther@suse.de>
1064 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
1066 (add_control_edge): Remove excessive vertical space in dumping.
1067 (process_ssa_edge_worklist): Simulate at most one statement and
1068 return whether we did. Do not simulate PHIs if they are in a
1069 BB not yet simulated.
1070 (ssa_propagate): Adjust to always drain the BB worklist whenever
1071 a BB is available there, likewise the VARYING edges list before
1072 the interesting edge list.
1074 2015-07-07 Christian Bruel <christian.bruel@st.com>
1077 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
1079 2015-07-07 Richard Biener <rguenther@suse.de>
1082 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
1085 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
1087 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
1088 modes for operands 0 and 3. Use SImode for operands 2 and 3.
1089 Copy operand 0 to a temporary if !ext_register_operand. Remove
1090 ancient extract_bit_field workaround.
1091 (insv<mode>_1): Rename from mov<mode>_insv_1.
1092 (*insvqi): Rename from *movqi_insv_2.
1093 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
1094 for renamed insvsi_1.
1095 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
1097 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
1099 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
1100 call to nvptx_reorg_subreg.
1102 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
1104 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
1105 * graphite-dependencies.c, graphite-interchange.c,
1106 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
1107 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
1110 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
1112 * match.pd: Remove element_mode inside HONOR_*.
1113 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
1114 (~X | X -> -1, ~X ^ X -> -1): Merge.
1115 * tree.c (build_each_one_cst): New function.
1116 * tree.h (build_each_one_cst): Likewise.
1118 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
1120 * config.gcc <mips*-*-*>: Add fused-madd.opt.
1121 * config/mips/mips.opt (mfused-madd): Remove.
1122 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
1123 * config/mips/mips.h (TARGET_MIPS8000): New.
1124 (ISA_HAS_FP_MADD4_MSUB4): Remove.
1125 (ISA_HAS_FP_MADDF_MSUBF): Remove.
1126 (ISA_HAS_FP_MADD3_MSUB3): Remove.
1127 (ISA_HAS_NMADD4_NMSUB4): Remove.
1128 (ISA_HAS_NMADD3_NMSUB3): Remove.
1129 (ISA_HAS_FUSED_MADD4): New.
1130 (ISA_HAS_UNFUSED_MADD4): New.
1131 (ISA_HAS_FUSED_MADDF): New.
1132 (ISA_HAS_FUSED_MADD3): New.
1133 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
1134 (*fma<mode>4_madd3) New.
1135 (*fma<mode>4_madd4) New.
1136 (*fma<mode>4_maddf) New.
1138 (*fms<mode>4_msub3) New.
1139 (*fms<mode>4_msub4) New.
1141 (*fnma<mode>4_nmadd3) New.
1142 (*fnma<mode>4_nmadd4) New.
1144 (*fnms<mode>4_nmsub3) New.
1145 (*fnms<mode>4_nmsub4) New.
1146 (*madd4<mode>) Modify to be unfused only.
1147 (*msub4<mode>) Modify to be unfused only.
1148 (*nmadd4<mode>) Modify to be unfused only.
1149 (*nmsub4<mode>) Modify to be unfused only.
1150 (*madd3<mode>) Remove.
1151 (*msub3<mode>) Remove.
1152 (*nmadd3<mode>) Remove.
1153 (*nmsub3<mode>) Remove.
1154 (*nmadd3<mode>_fastmath) Remove.
1155 (*nmsub3<mode>_fastmath) Remove.
1156 (*nmadd4<mode>_fastmath) Update condition.
1157 (*nmsub4<mode>_fastmath) Update condition.
1159 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
1162 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
1163 alignment attribute, exploring one level down for records and arrays.
1165 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
1167 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
1168 modes for operands 0 and 1. Use SImode for operands 2 and 3.
1169 Copy operand 1 to a temporary if !ext_register_operand. Remove
1170 ancient extract_bit_field workaround.
1171 (*extv<mode>): Rename from *mov<mode>_extv_1.
1172 (*extvqi): Rename from *movqi_extv_1.
1173 (extzv<mode>): Rename from extzv. Use SWI248 modes for
1174 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
1175 to a temporary if !ext_register_operand. Remove ancient
1176 extract_bit_field workaround.
1177 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
1178 (*extzvqi): Rename from *movqi_extzv_2.
1179 (*testqi_ext_3): Remove modes from const_int_operand predicated
1180 operands. Add "n" constraint.
1181 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
1182 operand. Add "J" constraint.
1183 (*btsq, *btrq, *btcq peephole2s): Remove mode from
1184 const_0_to_63 predicated operand.
1185 (regmode): New insn attribute.
1186 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
1187 to nonmemory_operand. Use regmode insn attribute.
1188 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
1189 (*jcc_bt<mode>_mask): Remove mode from operand 3.
1190 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
1191 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
1192 operands. Use "N" constraint instead of "n".
1194 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
1196 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
1198 2015-07-06 Richard Biener <rguenther@suse.de>
1200 PR tree-optimization/66772
1201 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
1202 values are available in the PHI node BB when there are
1203 still unexecutable edges.
1205 2015-07-06 Richard Biener <rguenther@suse.de>
1207 PR tree-optimization/66767
1208 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
1209 Make sure to build the alignment test on a SSA name without
1210 final alignment info valid only if the alignment test
1213 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
1216 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
1217 loop start when inserting LSETUP.
1219 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
1222 * config/i386/i386.c (ix86_option_override_internal): Allow
1223 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
1225 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1227 * read-md.c (decimal_string): Rename to ...
1228 (md_decimal_string): ... this.
1229 (handle_enum): Reflect this.
1231 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
1234 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
1236 2015-07-06 Richard Biener <rguenther@suse.de>
1239 * match.pd: Add missing constraint of y to REAL_CST in
1240 REAL_CST - x CMP y to y - CST CMP x simplification.
1242 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
1244 PR tree-optimization/66757
1245 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
1247 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
1248 Sandra Loosemore <sandra@codesourcery.com>
1250 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
1251 Delete extern declaration.
1252 (gprel_constant_p): Add extern declaration.
1253 * config/nios2/constraints.md ("S"): Use gprel_constant_p
1254 instead of nios2_symbol_ref_in_small_data_p.
1255 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
1256 (nios2_symbol_ref_in_small_data_p): Make static.
1257 (gprel_constant_p): Make non-static.
1259 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
1261 * doc/fragments.texi (Target Fragment): Convert debian.org
1263 * doc/install.texi (Configuration): Ditto.
1265 2015-07-05 Jakub Jelinek <jakub@redhat.com>
1267 PR tree-optimization/66718
1268 * tree-vect-stmts.c (vectorizable_call): Replace uses of
1269 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
1271 PR tree-optimization/66718
1272 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
1273 vectorizable_load, vectorizable_condition): Move vectype,
1274 nunits, ncopies computation after checking what kind of statement
1277 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1279 * target-insns.def (extv, extzv, insv): New targetm instruction
1281 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
1283 * recog.c (simplify_while_replacing): Likewise.
1285 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1287 * target-insns.def (doloop_begin, doloop_end): New targetm
1288 instruction patterns.
1289 * loop-init.c: Include target.h.
1290 (pass_loop2::gate): Use the new targetm patterns instead of
1291 HAVE_*/gen_* interface.
1292 (pass_rtl_doloop::gate): Likewise.
1293 (pass_rtl_doloop::execute): Remove preprocessor condition.
1294 * hw-doloop.c: Build unconditionally.
1295 * loop-doloop.c: Likewise.
1296 (doloop_optimize): Use the new targetm patterns instead of
1297 HAVE_*/gen_* interface.
1298 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
1299 * modulo-sched.c (doloop_register_get): Likewise.
1301 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1303 * target-insns.def (clear_cache): New targetm instruction pattern.
1304 * builtins.c (expand_builtin___clear_cache): Use it instead of
1305 HAVE_*/gen_* interface.
1307 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1309 * target-insns.def (allocate_stack, check_stack, probe_stack)
1310 (probe_stack_address, split_stack_prologue, split_stack_space_check):
1311 New targetm instruction patterns.
1312 * explow.c (allocate_dynamic_stack_space): Use them instead of
1313 HAVE_*/gen_* interface.
1314 (emit_stack_probe): Likewise.
1315 (probe_stack_range): Likewise.
1316 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1318 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1320 * target-insns.def (stack_protect_set, stack_protect_test): New
1321 targetm instruction patterns.
1322 * cfgexpand.c (stack_protect_prologue): Use them instead of
1323 HAVE_*/gen_* interface.
1324 * function.c (stack_protect_epilogue): Likewise.
1326 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1328 * expr.h (gen_move_insn_uncast): Delete.
1329 * expr.c (gen_move_insn_uncast): Delete.
1331 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1333 * target-insns.def (restore_stack_block, restore_stack_function)
1334 (restore_stack_nonlocal, save_stack_block, save_stack_function)
1335 (save_stack_nonlocal): New targetm instruction patterns.
1336 * builtins.c (expand_builtin_apply): Use them instead of
1337 HAVE_*/gen_* interface.
1338 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
1340 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1342 * target-insns.def (trap): New targetm instruction pattern.
1343 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
1345 * explow.c (allocate_dynamic_stack_space): Likewise.
1346 * ifcvt.c (find_if_header): Likewise.
1348 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1350 * target-insns.def (prefetch): New targetm instruction pattern.
1351 * tree-ssa-loop-prefetch.c: Include targeth.
1352 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
1353 of HAVE_*/gen_* interface.
1354 * builtins.c (expand_builtin_prefetch): Likewise.
1355 * toplev.c (process_options): Likewise.
1357 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1359 * target-insns.def (untyped_call, untyped_return): New targetm
1360 instruction patterns.
1361 * builtins.c (expand_builtin_apply): Use them instead of
1362 HAVE_*/gen_* interface.
1363 (result_vector): Define unconditionally.
1365 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1367 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
1368 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
1369 (nonlocal_goto_receiver): New targetm instruction patterns.
1370 * builtins.c (expand_builtin_setjmp_setup): Use them instead
1371 of HAVE_*/gen_* interface.
1372 (expand_builtin_setjmp_receiver): Likewise.
1373 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1374 * except.c (expand_dw2_landing_pad_for_region): Likewise.
1376 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
1378 * target.def: Add code_for_* hooks.
1379 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
1380 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
1381 * target-insns.def (casesi, tablejump): New targetm instruction
1383 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
1384 (do_tablejump): Likewise.
1385 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
1386 (expand_sjlj_dispatch_table): Likewise.
1387 * targhooks.c (default_case_values_threshold): Likewise.
1389 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
1391 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
1392 Use rtx_insn * instead of rtx.
1393 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
1394 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
1395 (nios2_call_tls_get_addr): Likewise.
1396 (nios2_emit_expensive_div): Likewise.
1397 (nios2_emit_move_sequence): Change return type to bool.
1398 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
1399 Change return type to bool.
1401 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1404 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
1406 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
1409 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
1410 of register_operand. Remove constraint.
1412 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
1414 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
1417 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
1419 * attribs.c (decl_attributes): Guard inform with the return value
1420 of the preceding warning.
1422 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1424 * doc/invoke.texi (moverride): Move to correct section.
1426 2015-07-03 Richard Biener <rguenther@suse.de>
1428 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
1430 (dt_operand::gen_gimple_expr): After valueizing operands
1431 re-canonicalize operand order for commutative tree codes.
1433 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
1436 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
1438 (__crc32w): Likewise.
1439 (__crc32d): Likewise.
1440 (__rdpmc): Likewise.
1441 (__rdtscp): Likewise.
1443 (_rdtscp): Likewise.
1444 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
1447 2015-07-03 Richard Biener <rguenther@suse.de>
1449 * fold-const.c (fold_mathfn_compare): Remove.
1450 (fold_inf_compare): Likewise.
1451 (fold_comparison): Move floating point comparison simplifications...
1452 * match.pd: ... to patterns here. Introduce simple_comparisons
1453 operator list and use it for patterns formerly in fold_comparison.
1455 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1457 PR tree-optimization/66119
1458 * toplev.c (process_options): Don't set up default values for
1459 the sra_max_scalarization_size_{speed,size} parameters.
1460 * tree-sra (analyze_all_variable_accesses): If no values
1461 have been set for the sra_max_scalarization_size_{speed,size}
1462 parameters, call get_move_ratio to get target defaults.
1464 2015-07-03 Richard Biener <rguenther@suse.de>
1466 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
1467 * match.pd: ... here.
1469 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
1472 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
1473 is not actually the default on FreeBSD.
1475 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1477 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
1479 (CMPGE_8HI): Likewise.
1480 (CMPGE_4SI): Likewise.
1481 (CMPGE_2DI): Likewise.
1482 (CMPGE_U16QI): Likewise.
1483 (CMPGE_U8HI): Likewise.
1484 (CMPGE_U4SI): Likewise.
1485 (CMPGE_U2DI): Likewise.
1486 (CMPLE_16QI): Likewise.
1487 (CMPLE_8HI): Likewise.
1488 (CMPLE_4SI): Likewise.
1489 (CMPLE_2DI): Likewise.
1490 (CMPLE_U16QI): Likewise.
1491 (CMPLE_U8HI): Likewise.
1492 (CMPLE_U4SI): Likewise.
1493 (CMPLE_U2DI): Likewise.
1494 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1495 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
1496 ALTIVEC_BUILTIN_VEC_CMPLE.
1497 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
1498 floating-point vector modes.
1499 (vector_nlt<mode>): New define_expand.
1500 (vector_nltu<mode>): Likewise.
1501 (vector_ngt<mode>): Likewise.
1502 (vector_ngtu<mode>): Likewise.
1504 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
1506 PR rtl-optimization/66706
1507 * combine.c (make_compound_operation): If an AND of SUBREG of
1508 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
1510 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
1512 * tree-pass.h (make_pass_ch_vect): New.
1513 * passes.def: Add pass_ch_vect just before pass_if_conversion.
1515 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
1516 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
1517 make_pass_ch_vect): New.
1518 (pass_ch): Extend ch_base.
1520 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
1521 (ch_base::copy_headers): ...here.
1523 2015-07-02 Richard Biener <rguenther@suse.de>
1525 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
1526 * fold-const.c (get_pointer_modulus_and_residue): Remove.
1527 (fold_binary_loc): Implement (T)ptr & CST in terms of
1528 get_pointer_alignment_1.
1529 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1530 Make sure to build the alignment test on a SSA name without
1531 final alignment info valid only after the prologue.
1533 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
1535 * config/cris/cris.md ("epilogue"): Remove condition.
1536 ("prologue"): Ditto.
1538 2015-07-02 Richard Biener <rguenther@suse.de>
1540 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
1541 parameter to record a condition that is false.
1542 (record_conditions): When recording an extra NE_EXPR that is
1543 true also record a EQ_EXPR that is false.
1545 2015-07-02 Bin Cheng <bin.cheng@arm.com>
1547 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
1548 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
1549 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
1550 (set_iv, find_interesting_uses_address, add_candidate_1): New
1551 argument to alloc_iv.
1552 (find_interesting_uses_op, find_interesting_uses_cond): Don't
1553 duplicate struct iv.
1554 (free_loop_data): Don't free struct iv explicitly.
1555 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
1557 2015-07-01 DJ Delorie <dj@redhat.com>
1559 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
1561 (SUPPORTS_DISCRIMINATOR): Define.
1563 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
1566 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
1567 there are no CALLs in the same pattern.
1569 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1571 PR rtl-optimization/61047
1572 * rtlanal.c (get_initial_register_offset): New function.
1573 (rtx_addr_can_trap_p_1): Check offsets of stack references.
1575 2015-07-01 Richard Biener <rguenther@suse.de>
1577 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
1578 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
1579 ~X CMP C -> X CMP' ~C to ...
1580 * match.pd: ... patterns here.
1582 2015-07-01 Nick Clifton <nickc@redhat.com>
1584 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
1585 a 16-bit value into a 20-bit memory slot.
1587 2015-07-01 Jiong Wang <jiong.wang@arm.com>
1589 * doc/sourcebuild.texi (AArch64-specific attributes): Document
1590 "aarch64_tiny", "aarch64_small", "aarch64_large",
1591 "aarch64_little_endian", "aarch64_big_endian".
1593 2015-07-01 Jiong Wang <jiong.wang@arm.com>
1595 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
1596 Document "aarch64_small_fpic".
1598 2015-07-01 Jiong Wang <jiong.wang@arm.com>
1600 * configure.ac: Add check for aarch64 assembler -fpic relocation
1602 * configure: Regenerate.
1603 * config.in: Regenerate.
1604 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
1605 to -fPIC if not support of -fpic relocation modifier in assembler.
1607 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
1610 * rtl.c (classify_insn): Handle returns in PARALLELs.
1612 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
1615 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
1616 to true if the function is nested and if not optimizing.
1617 (convert_local_omp_clauses): Initialize need_frame to true if the
1618 function contains nested functions and if not optimizing.
1620 2015-07-01 Richard Biener <rguenther@suse.de>
1622 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
1623 (X & Y) ^ Y -> ~X & Y transforms to ...
1624 * match.pd: ... here.
1626 2015-07-01 Richard Biener <rguenther@suse.de>
1628 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
1629 of converts to avoid uninteresting noise from the conversion
1630 simplifying patterns.
1632 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
1634 * config/c6x/c6x.c (try_rename_operands): Do not depend on
1635 gcc_assert evaluating its argument for side-effect.
1637 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
1640 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
1643 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
1645 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
1646 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
1647 (hash_scc): Add this_ref_p and ref_p parameters and pass them
1648 to the inner DFS walk.
1650 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1652 * target-insns.def (jump): New targetm instruction pattern.
1653 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
1654 instead of gen_jump.
1655 (fix_up_crossing_landing_pad): Likewise.
1656 (add_labels_and_missing_jumps): Likewise.
1657 (fix_crossing_conditional_branches): Likewise.
1658 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1659 (force_nonfallthru_and_redirect): Likewise.
1660 * cse.c (cse_insn): Likewise.
1661 * expmed.c (expand_divmod): Likewise.
1662 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
1663 * haifa-sched.c (init_before_recovery): Likewise.
1664 (sched_create_recovery_edges): Likewise.
1665 * ifcvt.c (find_cond_trap): Likewise.
1666 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
1667 (expand_float, expand_fix): Likewise.
1668 * stmt.c (emit_jump): Likewise.
1670 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1672 * defaults.h (HAVE_load_multiple, gen_load_multiple)
1673 (HAVE_store_multiple, gen_store_multiple): Delete.
1674 * target-insns.def (load_multiple, store_multiple): New targetm
1675 instruction patterns.
1676 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
1677 of HAVE_*/gen_* interface.
1679 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1681 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
1682 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
1683 (gen_mem_signal_fence): Delete.
1684 * target-insns.def (mem_signal_fence, mem_thread_fence)
1685 (memory_barrier): New targetm instruction patterns.
1686 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
1688 (expand_mem_signal_fence): Likewise.
1690 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
1692 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
1693 * target-insns.def (epilogue, prologue, sibcall_prologue): New
1694 targetm instruction patterns.
1695 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
1697 * calls.c (expand_call): Likewise.
1698 * cfgrtl.c (cfg_layout_finalize): Likewise.
1699 * df-scan.c (df_get_entry_block_def_set): Likewise.
1700 (df_get_exit_block_use_set): Likewise.
1701 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
1702 * final.c (final_start_function): Likewise.
1703 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1704 (reposition_prologue_and_epilogue_notes): Likewise.
1705 * reorg.c (find_end_label): Likewise.
1706 * toplev.c (process_options): Likewise.
1708 2015-06-30 David Malcolm <dmalcolm@redhat.com>
1710 * typed-splay-tree.h: New file.
1712 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
1715 * lra-int.h (lra_substitute_pseudo): Add a parameter.
1716 (lra_substitute_pseudo_within_insn): Ditto.
1717 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
1719 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
1720 to lra_substitute_pseudo.
1721 * lra-lives.c (process_bb_lives): Add an argument to
1722 lra_substitute_pseudo_within_insn call.
1723 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
1724 argument to lra_substitute_pseudo and
1725 lra_substitute_pseudo_within_insn calls.
1726 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
1728 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
1730 * configure: Regenerated.
1732 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
1734 * config.gcc: Support i[34567]86-*-elfiamcu target.
1735 * config/i386/iamcu.h: New.
1736 * config/i386/i386.opt: Add -miamcu.
1737 * doc/invoke.texi: Document -miamcu.
1738 * common/config/i386/i386-common.c (ix86_handle_option): Turn
1739 off x87/MMX/SSE/AVX codegen for -miamcu.
1740 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1741 __iamcu/__iamcu__ for -miamcu.
1742 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
1743 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
1744 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
1745 * config/i386/i386.c (ix86_option_override_internal): Ignore and
1746 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
1747 MCU by default. Default long double to 64-bit for Intel MCU.
1748 Turn on -freg-struct-return for Intel MCU. Issue an error when
1749 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
1751 (function_arg_advance_32): Pass value whose size is no larger
1752 than 8 bytes in registers for Intel MCU.
1753 (function_arg_32): Likewise.
1754 (ix86_return_in_memory): Return value whose size is no larger
1755 than 8 bytes in registers for Intel MCU.
1756 (iamcu_alignment): New function.
1757 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
1759 (ix86_local_alignment): Don't increase alignment for Intel MCU.
1760 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
1763 2015-06-30 Marek Polacek <polacek@redhat.com>
1765 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
1766 both operands of the resulting expression.
1768 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
1769 the final expression with the operand's type and then convert
1770 it to the type of the expression.
1772 2015-06-30 Richard Biener <rguenther@suse.de>
1774 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
1775 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
1776 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
1777 * match.pd: ... to patterns here.
1779 2015-06-30 Richard Biener <rguenther@suse.de>
1781 PR tree-optimization/66704
1782 * tree-vect-data-refs.c (vect_setup_realignment): Use
1783 make_ssa_name for non-SSA name source.
1785 2015-06-30 Jakub Jelinek <jakub@redhat.com>
1788 * omp-low.c (simd_clone_adjust): Handle addressable linear
1789 or uniform parameters or non-gimple type uniform parameters.
1791 2015-06-30 Richard Biener <rguenther@suse.de>
1793 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
1794 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
1795 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
1796 * match.pd: ... here.
1797 Add a few cases of A - B -> A + (-B) when B "easily" negates.
1798 Move (x & y) | x -> x and friends before
1799 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
1801 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
1803 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
1804 -mfix-ut699 is not specified.
1805 (leon3_load): Rename into...
1806 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
1809 2015-06-30 Marek Polacek <polacek@redhat.com>
1811 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
1812 * match.pd: ... here.
1814 2015-06-30 Richard Biener <rguenther@suse.de>
1816 * target-insns.def (canonicalize_funcptr_for_compare): Add.
1817 * fold-const.c (build_range_check): Replace uses of
1818 HAVE_canonicalize_funcptr_for_compare.
1819 (fold_widened_comparison): Likewise.
1820 (fold_sign_changed_comparison): Likewise.
1821 * dojump.c: Include "target.h".
1822 (do_compare_and_jump): Replace uses of
1823 HAVE_canonicalize_funcptr_for_compare and
1824 gen_canonicalize_funcptr_for_compare.
1825 * expr.c (do_store_flag): Likewise.
1827 2015-06-30 Tom de Vries <tom@codesourcery.com>
1829 PR tree-optimization/66652
1830 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
1831 max_loop_iterations to determine if nit + 1 overflows.
1833 2015-06-30 Richard Biener <rguenther@suse.de>
1835 * tree-vrp.c (register_edge_assert_for_2): Also register
1836 asserts for dominating conversion results.
1838 2015-06-30 Bin Cheng <bin.cheng@arm.com>
1840 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
1843 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
1846 * configure.ac: Fix filds and fildq test for 64-bit.
1847 * configure: Regenerated.
1849 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
1851 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
1852 (nvptx_reorg): Here. Keep the non-subreg pieces.
1854 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
1856 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
1857 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
1859 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
1861 * config/i386/i386.md (*jcc_1): Use %! in asm template.
1862 Set attribute "length_nobnd" instead of "length".
1865 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
1867 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
1869 * config/nios2/nios2.c (nios2_delegitimize_address): Make
1870 assert less restrictive.
1872 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1875 * cgraphunit.c (cgraph_node::finalize_function): Do not call
1876 do_warn_unused_parameter.
1877 * function.c (do_warn_unused_parameter): Move from here.
1878 * function.h (do_warn_unused_parameter): Do not declare.
1880 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1883 * gcc.target/arm/armv-sync-comp-swap.c: New.
1884 * gcc.target/arm/armv-sync-op-acquire.c: New.
1885 * gcc.target/arm/armv-sync-op-full.c: New.
1886 * gcc.target/arm/armv-sync-op-release.c: New.
1888 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1891 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
1892 initial acquire barrier with final barrier.
1894 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1897 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
1898 initial acquire barrier with final barrier.
1900 2015-06-29 Richard Henderson <rth@redhat.com>
1902 * config/i386/constraints.md (Bf): New constraint.
1903 * config/i386/i386-c.c (ix86_target_macros): Define
1904 __GCC_ASM_FLAG_OUTPUTS__.
1905 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
1907 * doc/extend.texi (FlagOutputOperands): Document them.
1909 2015-06-29 Jiong Wang <jiong.wang@arm.com>
1911 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
1912 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
1914 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
1915 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
1916 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
1917 (aarch64_symbol_context): Ditto.
1918 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
1919 and use new pattern name.
1920 (aarch64_expand_mov_immediate): Ditto.
1921 (aarch64_print_operand): Ditto.
1922 (aarch64_classify_tls_symbol): Ditto.
1924 2015-06-29 Marek Polacek <polacek@redhat.com>
1925 Marc Glisse <marc.glisse@inria.fr>
1927 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
1928 * match.pd: ... pattern here.
1930 2015-06-29 Tom de Vries <tom@codesourcery.com>
1932 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
1935 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1937 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
1938 feature description, split out the native option, add a link to
1939 the feature documentation, rearrange and slightly rewrite text.
1940 (Aarch64 options, -mcpu): Likewise.
1941 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
1942 +rdma implies Adv. SIMD.
1944 2015-06-29 Marek Polacek <polacek@redhat.com>
1947 * function.c (stack_protect_epilogue): Remove a cast to int.
1948 * doc/invoke.texi: Update -Wswitch-bool description.
1950 2015-06-29 Richard Biener <rguenther@suse.de>
1952 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
1953 * fold-const.c (fold_binary_loc): Move &A - &B simplification
1954 via ptr_difference_const ...
1955 * match.pd: ... here.
1956 When matching (X ^ Y) == Y also match with swapped operands.
1958 2015-06-29 Richard Biener <rguenther@suse.de>
1960 * lto-streamer.h (LTO_major_version): Bump to 5.
1962 2015-06-29 Richard Biener <rguenther@suse.de>
1964 PR tree-optimization/66677
1965 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
1966 STMT_VINFO_VEC_STMT clobbering less strict.
1968 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
1971 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
1972 division, compute max and min when value ranges for dividend and
1973 divisor are available.
1975 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
1976 Sandra Loosemore <sandra@codesourcery.com>
1978 * regrename.h (regrename_do_replace): Change to return bool.
1979 * regrename.c (rename_chains): Check return value of
1981 (regrename_do_replace): Re-validate the modified insns and
1983 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
1984 Update to match rename_chains changes.
1985 * config/c6x/c6x.c (try_rename_operands): Assert that
1986 regrename_do_replace returns true.
1988 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
1990 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
1991 operand 2 here. Use copy_addr_to_reg to copy non-index
1992 register operand 2 to a temporary.
1993 (<mode>_stx): Ditto for operand 1.
1994 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
1995 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
1996 (ix86_store_bounds): Ditto.
1998 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
2000 * print-tree.c (print_node) [TREE_VEC]: Print its length.
2002 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
2004 * gimple.c (gimple_call_set_fndecl): Remove.
2005 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
2006 build1_loc directly instead of build_fold_addr_expr_loc.
2008 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
2010 * hash-map.h (hash_map::traverse): Use the definition of the
2011 Key typedef rather than the typedef itself.
2013 2015-06-26 Martin Jambor <mjambor@suse.cz>
2016 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
2017 NULL instead of calling dump_enabled_p.
2019 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
2021 * config/aarch64/aarch64.opt: (override): New.
2022 * doc/invoke.texi (override): Document.
2023 * config/aarch64/aarch64.c (aarch64_flag_desc): New
2024 (aarch64_fusible_pairs): Likewise.
2025 (aarch64_tuning_flags): Likewise.
2026 (aarch64_tuning_override_function): Likewise.
2027 (aarch64_tuning_override_functions): Likewise.
2028 (aarch64_parse_one_option_token): Likewise.
2029 (aarch64_parse_boolean_options): Likewise.
2030 (aarch64_parse_fuse_string): Likewise.
2031 (aarch64_parse_tune_string): Likewise.
2032 (aarch64_parse_one_override_token): Likewise.
2033 (aarch64_parse_override_string): Likewise.
2034 (aarch64_override_options): Parse the -override string if it
2037 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
2039 * config/aarch64/aarch64-protos.h (tune_params): Remove
2041 (aarch64_tune_params): Remove const, change to no longer be
2043 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
2044 change to no longer be a pointer, initialize to generic_tunings.
2045 (aarch64_min_divisions_for_recip_mul): Change dereference of
2046 aarch64_tune_params to member access.
2047 (aarch64_reassociation_width): Likewise.
2048 (aarch64_rtx_mult_cost): Likewise.
2049 (aarch64_address_cost): Likewise.
2050 (aarch64_branch_cost): Likewise.
2051 (aarch64_rtx_costs): Likewise.
2052 (aarch64_register_move_cost): Likewise.
2053 (aarch64_memory_move_cost): Likewise.
2054 (aarch64_sched_issue_rate): Likewise.
2055 (aarch64_builtin_vectorization_cost): Likewise.
2056 (aarch64_override_options): Take a copy of the selected tuning
2057 struct in to aarch64_tune_params, rather than just setting
2058 a pointer, change dereferences of aarch64_tune_params to member
2060 (aarch64_override_options_after_change): Change dereferences of
2061 aarch64_tune_params to member access.
2062 (aarch64_macro_fusion_p): Likewise.
2063 (aarch_macro_fusion_pair_p): Likewise.
2064 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
2066 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
2068 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
2069 (aarch64_tune_flags): Likewise.
2070 (AARCH64_TUNE_FMA_STEERING): Likewise.
2071 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
2072 to AARCH64_FL_USE_FMA_STEERING_PASS.
2073 (cortex-a57.cortex-a53): Likewise.
2074 (cortex-a72): Use cortexa72_tunings.
2075 (cortex-a72.cortex-a53): Likewise.
2076 (exynos-m1): Likewise.
2077 * config/aarch64/aarch64-protos.h (tune_params): Add
2078 a field: extra_tuning_flags.
2079 * config/aarch64/aarch64-tuning-flags.def: New.
2080 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
2081 (aarch64_extra_tuning_flags): Likewise.
2082 (aarch64_tune_params): Declare here.
2083 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
2084 (cortexa53_tunings): Likewise.
2085 (cortexa57_tunings): Likewise.
2086 (thunderx_tunings): Likewise.
2087 (xgene1_tunings): Likewise.
2088 (cortexa72_tunings): New.
2089 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
2090 (gate): Check against aarch64_tune_params.
2091 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
2094 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
2096 * config/aarch64/aarch64-fusion-pairs.def: New.
2097 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
2098 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
2099 aarch64_fusion_pairs.
2100 (AARCH64_FUSE_MOV_MOVK): Likewise.
2101 (AARCH64_FUSE_ADRP_ADD): Likewise.
2102 (AARCH64_FUSE_MOVK_MOVK): Likewise.
2103 (AARCH64_FUSE_ADRP_LDR): Likewise.
2104 (AARCH64_FUSE_CMP_BRANCH): Likewise.
2106 2015-06-26 Jiong Wang <jiong.wang@arm.com>
2108 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
2109 SYMBOL_SMALL_GOT_28K.
2110 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
2111 relocation modifiers.
2112 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
2113 (ldr_got_small_28k_<mode>): New.
2114 (ldr_got_small_28k_sidi): New.
2115 * config/aarch64/iterators.md (got_modifier): New mode iterator.
2116 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
2117 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2118 SYMBOL_SMALL_GOT_28K.
2119 (aarch64_rtx_costs): Add costs for new instruction sequences.
2120 (initialize_aarch64_code_model): Initialize new model.
2121 (aarch64_classify_symbol): Recognize new model and new symbol classification.
2122 (aarch64_asm_preferred_eh_data_format): Support new model.
2123 (aarch64_load_symref_appropriately): Generate new instruction
2124 sequences for -fpic.
2125 (TARGET_USE_PSEUDO_PIC_REG): New definition.
2126 (aarch64_use_pseudo_pic_reg): New function.
2128 2015-06-26 Jiong Wang <jiong.wang@arm.com>
2130 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2131 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
2132 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
2133 (aarch64_expand_mov_immediate): Ditto.
2134 (aarch64_print_operand): Ditto.
2135 (aarch64_classify_symbol): Ditto.
2137 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
2139 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
2141 2015-06-26 Bin Cheng <bin.cheng@arm.com>
2144 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
2145 assertion failed. Remove assertion itself.
2147 2015-06-26 Richard Biener <rguenther@suse.de>
2149 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
2150 and -A CMP CST -> A CMP -CST which is redundant with a pattern
2152 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
2153 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
2154 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
2155 * match.pd: ... patterns here.
2157 2015-06-26 Marek Polacek <polacek@redhat.com>
2159 * match.pd ((x | y) & ~(x & y) -> x ^ y,
2160 (x | y) & (~x ^ y) -> x & y): New patterns.
2162 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
2164 * rtl.h (emit): Add an optional boolean parameter to control
2165 whether barriers are emitted.
2166 * emit-rtl.c (emit): Likewise.
2167 * gensupport.c (get_emit_function): Return null rather than "emit".
2168 * genemit.c (gen_emit_seq): Handle the null return value.
2169 Don't emit barriers after the final instruction in the sequence.
2170 * gentarget-def.c (main): Don't emit barriers after the instruction.
2172 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2174 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
2177 2015-06-26 Richard Biener <rguenther@suse.de>
2179 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
2181 2015-06-26 Richard Biener <rguenther@suse.de>
2183 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
2184 irrespective on whether the inner operation has a single use
2185 of both off are constant.
2187 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
2188 Segher Boessenkool <segher@kernel.crashing.org>
2191 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
2192 before doing PUT_MODE or PUT_CODE on operands to avoid
2193 in-place RTX modification.
2195 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
2197 * gentarget-def.c (def_target_insn): Cast return of strtol to
2200 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2202 * gimple.h (gimple_call_set_fn): Move inline function.
2203 * gimple.c (gimple_call_set_fn): Relocate here.
2205 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
2209 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
2210 the replacement insn will work.
2212 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
2214 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
2217 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2219 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
2220 * cgraph.h: Include ipa-ref.h and plugin-api.h.
2221 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
2222 (symtab_node::address_can_be_compared_p): Move function.
2223 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
2225 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
2226 * auto-profile.c: Likewise.
2227 * bb-reorder.c: Likewise.
2228 * builtins.c: Likewise.
2229 * calls.c: Likewise.
2230 * cfgexpand.c: Likewise.
2231 * cgraphbuild.c: Likewise.
2232 * cgraphclones.c: Likewise.
2233 * cgraphunit.c: Likewise.
2234 * combine.c: Likewise.
2235 * coverage.c: Likewise.
2236 * data-streamer-in.c: Likewise.
2237 * data-streamer-out.c: Likewise.
2238 * data-streamer.c: Likewise.
2239 * dbxout.c: Likewise.
2240 * dwarf2out.c: Likewise.
2241 * except.c: Likewise.
2243 * final.c: Likewise.
2244 * fold-const.c: Likewise.
2245 * ggc-page.c: Likewise.
2246 * gimple-fold.c: Likewise.
2247 * gimple-iterator.c: Likewise.
2248 * gimple-pretty-print.c: Likewise.
2249 * gimple-streamer-in.c: Likewise.
2250 * gimple-streamer-out.c: Likewise.
2251 * gimple.c: Likewise.
2252 * gimplify.c: Likewise.
2253 * ipa-chkp.c: Likewise.
2254 * ipa-comdats.c: Likewise.
2255 * ipa-cp.c: Likewise.
2256 * ipa-devirt.c: Likewise.
2257 * ipa-icf-gimple.c: Likewise.
2258 * ipa-icf.c: Likewise.
2259 * ipa-inline-analysis.c: Likewise.
2260 * ipa-inline-transform.c: Likewise.
2261 * ipa-inline.c: Likewise.
2262 * ipa-polymorphic-call.c: Likewise.
2263 * ipa-profile.c: Likewise.
2264 * ipa-prop.c: Likewise.
2265 * ipa-pure-const.c: Likewise.
2266 * ipa-ref.c: Likewise.
2267 * ipa-reference.c: Likewise.
2268 * ipa-split.c: Likewise.
2269 * ipa-utils.c: Likewise.
2270 * ipa-visibility.c: Likewise.
2272 * langhooks.c: Likewise.
2273 * lto-cgraph.c: Likewise.
2274 * lto-compress.c: Likewise.
2275 * lto-opts.c: Likewise.
2276 * lto-section-in.c: Likewise.
2277 * lto-section-out.c: Likewise.
2278 * lto-streamer-in.c: Likewise.
2279 * lto-streamer-out.c: Likewise.
2280 * lto-streamer.c: Likewise.
2281 * omp-low.c: Likewise.
2282 * opts-global.c: Likewise.
2283 * passes.c: Likewise.
2284 * predict.c: Likewise.
2285 * print-tree.c: Likewise.
2286 * profile.c: Likewise.
2288 * sanopt.c: Likewise.
2289 * stor-layout.c: Likewise.
2290 * symtab.c: Likewise.
2291 * toplev.c: Likewise.
2292 * trans-mem.c: Likewise.
2293 * tree-cfg.c: Likewise.
2294 * tree-chkp.c: Likewise.
2295 * tree-eh.c: Likewise.
2296 * tree-emutls.c: Likewise.
2297 * tree-inline.c: Likewise.
2298 * tree-nested.c: Likewise.
2299 * tree-parloops.c: Likewise.
2300 * tree-pretty-print.c: Likewise.
2301 * tree-profile.c: Likewise.
2302 * tree-sra.c: Likewise.
2303 * tree-ssa-alias.c: Likewise.
2304 * tree-ssa-live.c: Likewise.
2305 * tree-ssa-loop-ivcanon.c: Likewise.
2306 * tree-ssa-loop-ivopts.c: Likewise.
2307 * tree-ssa-pre.c: Likewise.
2308 * tree-ssa-sccvn.c: Likewise.
2309 * tree-ssa-strlen.c: Likewise.
2310 * tree-ssa-structalias.c: Likewise.
2311 * tree-streamer-in.c: Likewise.
2312 * tree-streamer-out.c: Likewise.
2313 * tree-streamer.c: Likewise.
2314 * tree-switch-conversion.c: Likewise.
2315 * tree-tailcall.c: Likewise.
2316 * tree-vect-data-refs.c: Likewise.
2317 * tree-vect-stmts.c: Likewise.
2318 * tree-vectorizer.c: Likewise.
2321 * ubsan.c: Likewise.
2322 * value-prof.c: Likewise.
2323 * varasm.c: Likewise.
2324 * varpool.c: Likewise.
2325 * config/arm/arm.c: Likewise.
2326 * config/bfin/bfin.c: Likewise.
2327 * config/c6x/c6x.c: Likewise.
2328 * config/cris/cris.c: Likewise.
2329 * config/darwin-c.c: Likewise.
2330 * config/darwin.c: Likewise.
2331 * config/i386/i386.c: Likewise.
2332 * config/i386/winnt.c: Likewise.
2333 * config/microblaze/microblaze.c: Likewise.
2334 * config/mips/mips.c: Likewise.
2335 * config/rs6000/rs6000.c: Likewise.
2336 * config/rx/rx.c: Likewise.
2337 * config/s390/s390.c: Likewise.
2338 * config/tilegx/mul-tables.c: Likewise.
2340 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2342 * config/aarch64/aarch64.c, config/alpha/alpha.c,
2343 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2344 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
2345 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
2346 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2347 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2348 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2349 config/microblaze/microblaze.c, config/mips/mips.c,
2350 config/mmix/mmix.c, config/mn10300/mn10300.c,
2351 config/moxie/moxie.c, config/msp430/msp430.c,
2352 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2353 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2354 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2355 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2356 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2357 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2358 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
2359 target-def.h include.
2360 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
2362 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2364 * Makefile.in (TARGET_DEF): Add target-insns.def.
2365 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
2366 (build/gentarget-def.o): New rule.
2367 (genprogrtl): Add target-def.
2368 * target-insns.def, gentarget-def.c: New files.
2369 * target.def: Add targetm.have_* and targetm.gen_* hooks,
2370 based on the contents of target-insns.def.
2371 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
2372 (HAVE_return, gen_return): Delete.
2373 * target-def.h: Include insn-target-def.h.
2374 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
2375 instead of direct calls. Rely on them to do the appropriate assertions.
2376 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
2377 (convert_jumps_to_returns): Use targetm interface instead of
2379 (thread_prologue_and_epilogue_insns): Likewise.
2380 * reorg.c (find_end_label, dbr_schedule): Likewise.
2381 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
2382 * shrink-wrap.c (convert_to_simple_return): Likewise.
2383 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
2385 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2387 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
2388 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2389 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
2390 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2391 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
2392 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2393 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
2394 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
2395 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
2396 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
2397 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
2398 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
2399 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
2400 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2401 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2402 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
2405 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2407 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
2408 (unbounded_int_hashmap_traits::key_type): Likewise.
2409 * hash-map.h (hash_map): Get the key type from the traits.
2410 * hash-traits.h (default_hash_traits): By default, inherit from the
2412 * alias.c (alias_set_traits): Delete.
2413 (alias_set_entry_d::children): Use alias_set_hash as the first
2415 (record_alias_subset): Update accordingly.
2416 * except.c (tree_hash_traits): Delete.
2417 (type_to_runtime_map): Use tree_hash as the first template parameter.
2418 (init_eh): Update accordingly.
2419 * genmatch.c (capture_id_map_hasher): Delete.
2420 (cid_map_t): Use nofree_string_hash as first template parameter.
2421 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
2422 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
2423 Use symbol_compare_hash as the first template parameter in
2425 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
2426 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
2428 * passes.c (pass_registry_hasher): Delete.
2429 (name_to_pass_map): Use nofree_string_hash as the first template
2431 (register_pass_name): Update accordingly.
2432 * sanopt.c (sanopt_tree_map_traits): Delete.
2433 (sanopt_tree_triplet_map_traits): Delete.
2434 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
2436 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
2437 the first template parameter.
2438 * sese.c (rename_map_hasher): Delete.
2439 (rename_map_type): Use tree_ssa_name_hash as the first template
2441 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
2442 (function_summary::m_map): Use map_hash as the first template
2444 (function_summary::release): Update accordingly.
2445 * tree-if-conv.c (phi_args_hash_traits): Delete.
2446 (predicate_scalar_phi): Use tree_operand_hash as the first template
2447 parameter to phi_arg_map.
2448 * tree-inline.h (dependence_hasher): Delete.
2449 (copy_body_data::dependence_map): Use dependence_hash as the first
2451 * tree-inline.c (remap_dependence_clique): Update accordingly.
2452 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
2453 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
2455 (addr_stridxptr): Update accordingly.
2456 * value-prof.c (profile_id_traits): Delete.
2457 (cgraph_node_map): Use profile_id_hash as the first template
2459 (init_node_map): Update accordingly.
2460 * config/alpha/alpha.c (string_traits): Delete.
2461 (machine_function::links): Use nofree_string_hash as the first
2463 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
2464 * config/m32c/m32c.c (pragma_traits): Delete.
2465 (pragma_htab): Use nofree_string_hash as the first template parameter.
2466 (m32c_note_pragma_address): Update accordingly.
2467 * config/mep/mep.c (pragma_traits): Delete.
2468 (pragma_htab): Use nofree_string_hash as the first template parameter.
2469 (mep_note_pragma_flag): Update accordingly.
2470 * config/mips/mips.c (mips16_flip_traits): Delete.
2471 (mflip_mips16_htab): Use nofree_string_hash as the first template
2473 (mflip_mips16_use_mips16_p): Update accordingly.
2474 (local_alias_traits): Delete.
2475 (mips16_local_aliases): Use nofree_string_hash as the first template
2477 (mips16_local_alias): Update accordingly.
2479 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2481 * hash-map-traits.h (default_hashmap_traits): Delete.
2483 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2485 * hash-map-traits.h (unbounded_hashmap_traits): New class.
2486 (unbounded_int_hashmap_traits): Likewise.
2487 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
2489 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2491 * ipa-icf.h (symbol_compare_hash): New class.
2492 (symbol_compare_hashmap_traits): Use it.
2493 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
2494 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
2495 (mem_alloc_description::reverse_mem_map_t): Remove redundant
2496 default_hashmap_traits.
2497 * sanopt.c (sanopt_tree_triplet_hash): New class.
2498 (sanopt_tree_triplet_map_traits): Use it.
2500 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2502 * gengtype-parse.c (require_template_declaration): Allow '+' in
2503 template parameters. Consolidate cases.
2504 * hash-traits.h (int_hash): New class.
2505 * alias.c (alias_set_hash): New structure.
2506 (alias_set_traits): Use it.
2507 * symbol-summary.h (function_summary::map_hash): New class.
2508 (function_summary::summary_hashmap_traits): Use it.
2509 * tree-inline.h (dependence_hash): New class.
2510 (dependence_hasher): Use it.
2511 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
2512 * value-prof.c (profile_id_hash): New class.
2513 (profile_id_traits): Use it.
2515 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2517 * config/mips/mips.c (mips16_flip_traits): Use it.
2518 (local_alias_traits, mips16_local_aliases): Convert from a map of
2519 rtxes to a map of symbol names.
2520 (mips16_local_alias): Update accordingly.
2522 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2524 * hash-traits.h (string_hash, nofree_string_hash): New classes.
2525 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
2526 * passes.c (pass_registry_hasher): Likewise.
2527 * config/alpha/alpha.c (string_traits): Likewise.
2528 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
2529 * config/m32c/m32c.c (pragma_traits): Likewise.
2530 * config/mep/mep.c (pragma_traits): Likewise.
2532 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2534 * tree-hash-traits.h (tree_hash): New class.
2535 * except.c: Include tree-hash-traits.h.
2536 (tree_hash_traits): Use tree_hash.
2538 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2540 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
2541 * sese.c: Include tree-hash-traits.h.
2542 (rename_map_hasher): Use tree_ssa_name_hasher.
2544 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2546 * tree-hash-traits.h (tree_decl_hash): New class.
2547 * tree-ssa-strlen.c: Include tree-hash-traits.h.
2548 (stridxlist_hash_traits): Use tree_decl_hash.
2550 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2552 * tree-hash-traits.h: New file.
2553 (tree_operand_hash): New class.
2554 * sanopt.c: Include tree-hash-traits.h.
2555 (sanopt_tree_map_traits): Use tree_operand_hash.
2556 * tree-if-conv.c: Include tree-hash-traits.h.
2557 (phi_args_hash_traits): Use tree_operand_hash.
2558 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
2559 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
2561 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2563 * hash-map-traits.h: Include hash-traits.h.
2564 (simple_hashmap_traits): New class.
2565 * mem-stats.h (hash_map): Change the default traits to
2566 simple_hashmap_traits<default_hash_traits<Key> >.
2568 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2570 * hash-table.h: Update comments.
2572 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2574 * hash-traits.h (default_hash_traits): New structure.
2575 * hash-set.h (default_hashset_traits): Delete.
2576 (hash_set): Use default_hash_traits<Key> instead of
2577 default_hashset_traits. Delete hash_entry type and use Key directly.
2578 * ipa-devirt.c (pair_traits): Delete.
2579 (default_hash_traits <type_pair>): Override.
2580 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
2581 (odr_types_equivalent_p, add_type_duplicate): Likewise.
2583 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2585 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
2587 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2589 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
2590 (has_is_empty, is_empty_helper): Delete.
2591 (has_mark_deleted, mark_deleted_helper): Delete.
2592 (has_mark_empty, mark_empty_helper): Delete.
2593 (hash_table::is_deleted): Call the Descriptor unconditionally.
2594 (hash_table::is_empty): Likewise.
2595 (hash_table::mark_deleted): Likewise.
2596 (hash_table::mark_empty): Likewise.
2598 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2600 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
2601 redundant typedefs and members.
2602 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
2604 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
2605 * ipa-devirt.c (odr_name_hasher): Likewise.
2606 (polymorphic_call_target_hasher): Likewise.
2607 * ira-costs.c (cost_classes_hasher): Likewise.
2608 * statistics.c (stats_counter_hasher): Likewise.
2609 * trans-mem.c (log_entry_hasher): Likewise.
2610 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
2611 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
2612 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
2613 * var-tracking.c (variable_hasher): Likewise.
2614 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
2615 Remove redundant typedefs and members.
2617 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2619 * hash-traits.h (ggc_cache_hasher): Rename to...
2620 (ggc_cache_remove): ...this and remove typedefs.
2621 (ggc_cache_ptr_hash): New class.
2622 * hash-table.h: Update commentary.
2623 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
2624 rather than ggc_cache_hasher.
2625 (const_wide_int_hasher, reg_attr_hasher): Likewise.
2626 (const_double_hasher, const_fixed_hasher): Likewise.
2627 * function.c (insn_cache_hasher): Likewise.
2628 * trans-mem.c (tm_wrapper_hasher): Likewise.
2629 * tree.h (tree_decl_map_cache_hasher): Likewise.
2630 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
2631 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
2632 * ubsan.c (tree_type_map_cache_hasher): Likewise.
2633 * varasm.c (tm_clone_hasher): Likewise.
2634 * config/i386/i386.c (dllimport_hasher): Likewise.
2635 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
2636 (tree_hasher): Likewise.
2638 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2640 * hash-traits.h (ggc_hasher): Rename to...
2641 (ggc_remover): ...this and remove typedefs.
2642 (ggc_cache_hasher): Update accordingly. Add typedefs.
2643 (ggc_ptr_hash): New class.
2644 * hash-table.h: Update comment.
2645 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
2647 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
2648 (tree_descriptor_hasher): Likewise.
2649 * cgraph.c (function_version_hasher): Likewise.
2650 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
2651 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
2652 (dw_loc_list_hasher, addr_hasher): Likewise.
2653 * function.h (used_type_hasher): Likewise.
2654 * function.c (temp_address_hasher): Likewise.
2655 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
2656 * libfuncs.h (libfunc_hasher): Likewise.
2657 * lto-streamer.h (decl_state_hasher): Likewise.
2658 * optabs.c (libfunc_decl_hasher): Likewise.
2659 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
2660 * varasm.c (section_hasher, object_block_hasher): Likewise.
2661 (const_rtx_desc_hasher): Likewise.
2662 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
2663 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
2665 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2667 * hash-traits.h (free_ptr_hash): New class.
2668 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
2669 rather than typed_free_remove. Remove redudant typedefs.
2670 (external_ref_hasher): Likewise.
2671 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
2672 (ehspec_hasher): Likewise.
2673 * ggc-common.c (saving_hasher): Likewise.
2674 * gimplify.c (gimplify_hasher): Likewise.
2675 * haifa-sched.c (delay_i2_hasher): Likewise.
2676 * loop-invariant.c (invariant_expr_hasher): Likewise.
2677 * loop-iv.c (biv_entry_hasher): Likewise.
2678 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
2679 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
2680 * tree-cfg.c (locus_discrim_hasher): Likewise.
2681 * tree-eh.c (finally_tree_hasher): Likewise.
2682 * tree-into-ssa.c (var_info_hasher): Likewise.
2683 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
2684 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
2685 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
2686 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
2687 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
2688 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
2689 (shared_bitmap_hasher): Likewise.
2690 * tree-ssa-threadupdate.c (redirection_data): Likewise.
2691 * tree-vectorizer.h (peel_info_hasher): Likewise.
2692 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
2693 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
2695 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2697 * hash-table.h: Update comments.
2698 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
2699 (nofree_ptr_hash): New class.
2700 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
2701 than typed_noop_remove. Remove redudant typedefs.
2702 * attribs.c (attribute_hasher): Likewise.
2703 * cfg.c (bb_copy_hasher): Likewise.
2704 * cselib.c (cselib_hasher): Likewise.
2705 * dse.c (invariant_group_base_hasher): Likewise.
2706 * dwarf2cfi.c (trace_info_hasher): Likewise.
2707 * dwarf2out.c (macinfo_entry_hasher): Likewise.
2708 (comdat_type_hasher, loc_list_hasher): Likewise.
2709 * gcse.c (pre_ldst_expr_hasher): Likewise.
2710 * genmatch.c (id_base): Likewise.
2711 * genrecog.c (test_pattern_hasher): Likewise.
2712 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
2713 * haifa-sched.c (delay_i1_hasher): Likewise.
2714 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
2715 * ipa-icf.h (congruence_class_group_hash): Likewise.
2716 * ipa-profile.c (histogram_hash): Likewise.
2717 * ira-color.c (allocno_hard_regs_hasher): Likewise.
2718 * lto-streamer.h (string_slot_hasher): Likewise.
2719 * lto-streamer.c (tree_entry_hasher): Likewise.
2720 * plugin.c (event_hasher): Likewise.
2721 * postreload-gcse.c (expr_hasher): Likewise.
2722 * store-motion.c (st_expr_hasher): Likewise.
2723 * tree-sra.c (uid_decl_hasher): Likewise.
2724 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
2725 (ssa_name_var_hash): Likewise.
2726 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
2727 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
2728 * tree-ssa-pre.c (pre_expr_d): Likewise.
2729 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
2730 * vtable-verify.h (registration_hasher): Likewise.
2731 * vtable-verify.c (vtbl_map_hasher): Likewise.
2732 * config/arm/arm.c (libcall_hasher): Likewise.
2733 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
2734 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
2735 * config/sol2.c (comdat_entry_hasher): Likewise.
2736 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
2737 (print_fold_checksum, fold_checksum_tree): Likewise.
2738 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
2739 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
2740 (fold_build_call_array_loc): Likewise.
2741 * tree-ssa-ccp.c (gimple_htab): Likewise.
2742 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
2743 rather than pointer_type.
2745 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2747 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
2748 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
2750 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2752 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
2753 (ggc_hasher::ggc_mx): Likewise.
2754 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
2755 that duplicate ggc_hasher ones.
2757 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2759 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
2760 (gt_cleare_cache): Check here for deleted and empty entries.
2761 Replace handle_cache_entry with a call to keep_cache_entry.
2762 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
2763 (ggc_cache_hasher::keep_cache_entry): New function.
2764 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
2765 (tm_wrapper_hasher::keep_cache_entry): New function.
2766 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
2767 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2768 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
2769 (type_cache_hasher::keep_cache_entry): New function.
2770 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
2771 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
2772 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
2773 (tree_type_map_cache_hasher::keep_cache_entry): New function.
2774 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
2775 (tm_clone_hasher::keep_cache_entry): New function.
2776 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
2777 (dllimport_hasher::keep_cache_entry): New function.
2779 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2781 * hash-table.h: Include hash-traits.h.
2782 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
2783 (ggc_cache_hasher): Move to...
2784 * hash-traits.h: ...this new file.
2786 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2788 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
2789 struct cl_optimization.
2790 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
2791 * tree.c (make_node_stat): Allocate cl_optimization struct.
2792 (copy_node_stat): Allocate and copy cl_optimization struct.
2794 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2796 * function.h (struct incoming_args): Move struct.
2797 (pass_by_reference, reference_callee_copied): Remove prototypes.
2798 * emit-rtl.h (struct incoming_args): Relocate struct here.
2799 * calls.h (pass_by_reference, reference_callee_copied): Relocate
2801 * function.c (pass_by_reference, reference_callee_copied): Move.
2802 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
2803 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
2804 * ipa-chkp.c: Include calls.h.
2806 2015-06-25 Andrew Macleod <amacleod@redhat.com>
2808 * alias.h (alias_set_type): Move typedef.
2809 * coretypes.h (alias_set_type): Relocate typedef here.
2810 * rtl.h: Don't include alias.h.
2812 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
2814 * cgraph.h (cgraph_rtl_info): Move to rtl.h
2815 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
2817 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
2818 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
2820 * calls.c: Include hard-reg-set.h before rtl.h.
2823 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2824 Vladimir Makarov <vmakarov@redhat.com>
2826 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
2829 2015-06-25 Richard Biener <rguenther@suse.de>
2831 * fold-const.c (fold_binary_loc): Move simplification of
2832 (X <<>> C1) & C2 ...
2833 * match.pd: ... here.
2835 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
2837 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
2839 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2841 * match.pd: Add patterns for vec_conds between 1 and 0.
2843 2015-06-25 Richard Biener <rguenther@suse.de>
2845 * tree-vect-stmts.c (vectorizable_conversion): Do not set
2846 STMT_VINFO_VEC_STMT for SLP.
2847 (vectorizable_store): Likewise.
2848 (vectorizable_load): Likewise.
2849 (vect_transform_stmt): Catch SLP vectorization clobbering
2850 STMT_VINFO_VEC_STMT.
2852 2015-06-25 Richard Biener <rguenther@suse.de>
2854 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
2856 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
2857 cleanup resulting dead code and parameters.
2858 (vect_transform_slp_perm_load): Adjust.
2860 2015-06-25 Nick Clifton <nickc@redhat.com>
2862 * config/bfin/bfin.c (bfin_expand_prologue): Set
2863 current_function_static_stack_size if flag_stack_usage_info is set.
2864 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2865 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
2866 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2867 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
2869 2015-06-25 Tom de Vries <tom@codesourcery.com>
2871 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
2872 comment that the generated IV is unsigned.
2874 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2877 * config/arm/arm.c (arm_dbx_register_number): Return
2878 DWARF_FRAME_REGISTERS by default.
2880 2015-06-25 Tom de Vries <tom@codesourcery.com>
2882 * dominance.c (calculate_dominance_info): Fix verify_dominators call
2883 argument. Call verify_dominator when reusing dominator info.
2885 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
2888 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
2889 an additional element of the unspec vector. Modify indices
2891 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
2892 * config/sh/sh.c (prepare_move_operands): Pass incremented
2893 const_int to gen_GOTaddr2picreg.
2894 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
2896 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
2898 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
2899 Condition on TARGET_FLOAT.
2901 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
2903 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
2906 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
2908 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
2910 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
2911 aarch64_err_no_fpadvsimd.
2913 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
2914 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
2915 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
2916 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
2917 Turn error into assert, test TARGET_FLOAT.
2918 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
2921 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
2924 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
2926 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2928 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
2930 2015-06-24 Renlin Li <renlin.li@arm.com>
2932 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
2933 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
2935 2015-06-24 Richard Biener <rguenther@suse.de>
2937 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
2939 (lower_opt_convert): Support lowering of conditional view_convert.
2940 (parser::parse_operation): Likewise.
2941 (parser::parse_for): Likewise.
2943 2015-06-24 Renlin Li <renlin.li@arm.com>
2945 * varasm.c (emit_local): Use unsigned int for align variable.
2947 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2950 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
2951 for negative numbers.
2953 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2955 PR rtl-optimization/66306
2956 * reload.c (find_reloads): Swap the match_dup info for
2957 commutative operands.
2959 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2961 * config/s390/vx-builtins.md
2962 ("vec_scatter_element<mode>_<non_vec_int>")
2963 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
2964 attribute with bhfgq.
2966 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2968 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
2970 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2972 * config/s390/s390-builtin-types.def: Add flag to indicate the
2973 options under which the function type is needed.
2974 * config/s390/s390-builtins.def: Add flag to indicate the options
2975 under which the builtin is enabled.
2976 * config/s390/s390-builtins.h: Add flags parameter to macro
2978 (bflags_for_builtin): New function.
2979 (flags_for_builtin): Renamed to ...
2980 (opflags_for_builtin): ... this.
2981 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
2982 flags_for_builtin to bflags_for_builtin and
2983 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
2984 * config/s390/s390.c: Add initialization of bflags_builtin and
2985 opflags_builtin arrays.
2986 Remove code for flags_builtin.
2987 (s390_init_builtins): Only create builtin function types if one of
2988 their flags is active.
2989 Only create builtins if all of their flags are active.
2990 (s390_expand_builtin): Rename flags_for_builtin to
2991 opflags_for_builtin.
2993 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2995 * config/s390/vecintrin.h: Remove internal builtins.
2997 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2999 * config/s390/s390.c (s390_secondary_reload): Fix check for
3000 GENERAL_REGS register class.
3002 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3004 * config/s390/s390.c (s390_support_vector_misalignment): Call
3005 default implementation for !TARGET_VX.
3007 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3009 * config/s390/s390.c (s390_legitimate_constant_p): Add
3012 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3014 * config/s390/s390.c (s390_vector_abi): New variable definition.
3015 (s390_check_type_for_vector_abi): New function.
3016 (TARGET_ASM_FILE_END): New macro definition.
3017 (s390_asm_file_end): New function.
3018 (s390_function_arg): Call s390_check_type_for_vector_abi.
3019 (s390_gimplify_va_arg): Likewise.
3020 * configure: Regenerate.
3021 * configure.ac: Check for .gnu_attribute Binutils feature.
3023 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
3026 * config/bfin/bfin.c (hwloop_optimize): Initialize
3027 JUMP_LABEL for newly created jump.
3029 2015-06-23 Tristan Gingold <gingold@adacore.com>
3031 * collect-utils.c (collect_wait): Unlink the response file here
3034 (utils_cleanup): ...and here.
3036 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
3038 * df-scan.c: Don't include target-def.h.
3039 * targhooks.c: Likewise.
3040 * config/arm/arm-c.c: Likewise.
3041 * config/i386/i386-c.c: Likewise.
3042 * config/nds32/nds32-cost.c: Likewise.
3043 * config/nds32/nds32-fp-as-gp.c: Likewise.
3044 * config/nds32/nds32-intrinsic.c: Likewise.
3045 * config/nds32/nds32-isr.c: Likewise.
3046 * config/nds32/nds32-md-auxiliary.c: Likewise.
3047 * config/nds32/nds32-memory-manipulation.c: Likewise.
3048 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3049 * config/nds32/nds32-predicates.c: Likewise.
3051 2015-06-23 Richard Biener <rguenther@suse.de>
3053 PR tree-optimization/66636
3054 * tree-vect-stmts.c (vectorizable_store): Properly compute the
3055 def type for further defs for strided stores.
3057 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
3059 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
3060 conditional selects.
3061 (setcc_int<mode>, setcc_float<mode>): Reformat.
3063 2015-06-23 Marek Polacek <polacek@redhat.com>
3065 * match.pd ((x + y) - (x | y) -> x & y,
3066 (x + y) - (x & y) -> x | y): New patterns.
3068 2015-06-23 Ludovic Courtès <ludo@gnu.org>
3071 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
3072 '-dynamic-linker' within %{!shared: ...}.
3074 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
3077 * config/i386/predicates.md (addsub_vm_operator): New predicate.
3078 (addsub_vs_operator): Ditto.
3079 (addsub_vs_parallel): Ditto.
3080 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
3081 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
3082 Put minus RTX before plus and adjust vec_merge selector.
3083 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
3084 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
3085 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
3086 (addsub vec_merge splitters): New combiner splitters.
3087 (addsub vec_select/vec_concat splitters): Ditto.
3089 2015-06-23 Bin Cheng <bin.cheng@arm.com>
3091 PR tree-optimization/66449
3092 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
3093 POINTER_PLUS_EXPR for pointers.
3095 2015-06-23 Alan Modra <amodra@gmail.com>
3097 * rtlanal.c (commutative_operand_precedence): Correct comments.
3098 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
3099 declaration. Return an int. Distinguish REG,REG return from
3101 (struct simplify_plus_minus_op_data): Make local to function.
3102 (simplify_plus_minus): Don't set canonicalized if merely sorting
3103 registers. Avoid packing ops if nothing changes. White space fixes.
3105 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
3107 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
3108 -fdump-ada-spec is passed but not if -fsyntax-only is.
3110 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
3113 * lra-lives.c (process_bb_lives): Check insn copying the same
3114 reload pseudo and don't create a copy for it.
3116 2015-06-22 Tom de Vries <tom@codesourcery.com>
3118 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
3121 2015-06-22 Tom de Vries <tom@codesourcery.com>
3123 * builtins.def (DEF_GOMP_BUILTIN): Test
3124 'flag_tree_parallelize_loops > 1' instead of
3125 'flag_tree_parallelize_loops'. Test flag_cilkplus.
3127 2015-06-22 Tom de Vries <tom@codesourcery.com>
3129 * dominance.c (calculate_dominance_info): Verify dominators if
3132 2015-06-22 Marek Polacek <polacek@redhat.com>
3134 * match.pd ((x ^ y) ^ (x | y) -> x & y,
3135 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
3136 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
3137 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
3139 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
3142 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
3143 cost of embedded comparison.
3145 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3148 * config/rs6000/predicates.md (altivec_register_operand): Permit
3149 virtual stack registers.
3150 (vsx_register_operand): Likewise.
3151 (vfloat_operand): Likewise.
3152 (vint_operand): Likewise.
3153 (vlogical_operand): Likewise.
3155 2015-06-22 Richard Biener <rguenther@suse.de>
3157 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
3158 and single_scalar_iteration_cost members.
3159 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
3160 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
3161 (vect_get_single_scalar_iteration_cost): Remove.
3162 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
3163 Use LOOP_VINFO_SCALAR_ITERATION_COST.
3164 * tree-vect-loop.c (destroy_loop_vec_info): Free
3166 (vect_get_single_scalar_iteration_cost): Compute result into
3167 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
3168 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
3169 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
3170 (vect_estimate_min_profitable_iters): Use them.
3172 2015-06-22 Christian Bruel <christian.bruel@st.com>
3175 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
3176 (TARGET_INSERT_ATTRIBUTES): Define.
3177 (thumb_flipper): New var.
3178 * config/arm/arm.opt (-mflip-thumb): New switch.
3180 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
3181 Martin Liska <mliska@suse.cz>
3184 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
3185 construction of arg_types.
3186 (sem_function::sem_function): Likewise.
3187 (sem_function::~sem_function): Remove destruction of arg_types.
3188 (sem_function::compatible_parm_types_p): New function.
3189 (sem_function::equals_wpa): Reorg matching of return values
3190 and parameter types.
3191 (sem_function::equals_private): Reorg mathcing of argument types.
3192 (sem_function::parse_tree_args): Remove.
3193 * ipa-icf.h (init_wpa): Do not call it.
3194 (parse_tree_args): Remove.
3195 (compatible_parm_types_p): Declare.
3196 (result_type): Remove.
3197 (arg_types): Remove.
3199 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
3202 * ipa-polymorphic-call.c
3203 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
3204 initializing alias oracle; fix formating; set base_alias_set if it
3207 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
3209 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
3210 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
3211 (find_inc): Likewise.
3212 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
3214 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3215 * df-scan.c (df_swap_refs): Remove.
3216 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
3217 * dominance.c (link_roots): Use std::swap instead of manually swapping.
3218 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
3219 * fold-const.c (fold_relational_const): Likewise.
3220 * genattrtab.c (simplify_test_exp): Likewise.
3221 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
3222 gimple_simplify): Likewise.
3223 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
3224 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
3225 * ipa-devirt.c (add_type_duplicate): Likewise.
3226 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
3227 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
3228 * lra.c (lra_create_copy): Likewise.
3229 * lto-streamer-out.c (DFS::DFS): Likewise.
3230 * modulo-sched.c (get_sched_window): Likewise.
3231 * omega.c (omega_pretty_print_problem): Likewise.
3232 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
3233 * reload1.c (reloads_unique_chain_p): Likewise.
3234 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
3235 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
3237 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
3239 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
3240 predicate_mem_writes): Likewise.
3241 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
3242 * tree-predcom.c (combine_chains): Likewise.
3243 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
3244 refs_may_alias_p_1): Likewise.
3245 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
3246 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3247 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
3248 number_of_iterations_cond): Likewise.
3249 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3250 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3251 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3252 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
3253 * tree-vrp.c (extract_range_from_binary_expr_1,
3254 extract_range_from_unary_expr_1): Likewise.
3256 2015-06-20 Marek Polacek <polacek@redhat.com>
3258 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
3260 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
3263 * config/sh/sh.c (prepare_move_operands): Replace subreg
3264 index term with R0 for base and index addressing.
3266 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
3268 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
3270 (movsf_aarch64): Change condition from register_operand to
3271 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
3272 load1. Change type for alternative 7 to store1.
3273 (movdf_aarch64): Likewise.
3275 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
3277 * config/vax/vax.md: Adjust sign/zero extend patterns to
3278 handle SUBREGs in operands[1].
3280 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3282 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
3283 of manually swapping.
3284 (expand_vec_perm_interleave2): Likewise.
3286 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
3288 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
3289 reuse bounds created for abnormal ssa names.
3291 2015-06-19 Jakub Jelinek <jakub@redhat.com>
3293 * config/nvptx/nvptx.md (allocate_stack): Rename to...
3294 (allocate_stack_<mode>): ... this, and add :P on both
3295 match_operand and unspec.
3296 (allocate_stack): New expander.
3298 2015-06-19 Christian Bruel <christian.bruel@st.com>
3302 * config/arm/arm.c (arm_set_current_function): Handle
3303 explicit default options.
3305 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
3307 * config/i386/i386.md (*movsicc_noc_zext): New insn.
3308 (zero-extended cmove with mem peephole2): New pattern.
3309 (cmove with mem peephole2): Merge patterns.
3311 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
3313 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
3315 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
3317 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
3318 * config/mips/mips.md (*madd4<mode>): Ditto.
3319 (*nmadd3<mode>) Ditto.
3320 (*nmadd4<mode>_fastmath): Ditto.
3321 (*nmadd3<mode>_fastmath): Ditto.
3322 (*nmsub4<mode>): Ditto.
3323 (*nmsub3<mode>): Ditto.
3324 (*nmsub4<mode>_fastmath): Ditto.
3325 (*nmsub3<mode>_fastmath): Ditto.
3327 2015-06-18 Michael Matz <matz@suse.de>
3330 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
3331 grouped strided stores.
3332 (vectorizable_load): Don't use the DR from first_stmt in
3333 the non-SLP grouped strided case.
3335 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3338 * function.c (assign_bounds): Add arguments assign_regs,
3339 assign_special, assign_bt.
3340 (assign_parms): For vararg functions handle bounds in BT
3341 and special slots after incoming vararg bounds.
3343 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3346 * cfgexpand.c (expand_return): Handle missing bounds.
3347 (expand_gimple_stmt_1): Likewise.
3348 * tree-chkp.c (chkp_expand_zero_bounds): New.
3349 * tree-chkp.h (chkp_expand_zero_bounds): New.
3351 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3354 * ipa-chkp.c (chkp_maybe_create_clone): Require
3355 functions to be instrumentable.
3356 * tree-chkp.c (chkp_replace_function_pointer): Use
3357 chkp_instrumentable_p instead of attribute check.
3359 2015-06-18 Richard Biener <rguenther@suse.de>
3361 PR tree-optimization/66510
3362 * tree-vect-stmts.c (vectorizable_load): Properly compute the
3363 number of vector loads for SLP permuted loads.
3364 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
3365 check the stride for loop vectorization.
3366 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
3367 vectorization factor.
3368 (vect_analyze_group_access): If the group size is not a power
3369 of two require a epilogue loop.
3370 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
3371 compute and optimizing and alias test pruning after final
3372 vectorization factor computation.
3373 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
3375 (vect_transform_slp_perm_load): Properly compute the original
3376 number of vector load stmts.
3378 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
3380 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
3381 "unlikely character , in @var" warning.
3383 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
3385 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
3386 (ix86_function_arg_advance): Ditto.
3387 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
3389 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3391 * function.h (struct rtl_data): Remove struct and accessor macros.
3392 * emit-rtl.h (struct rtl_data): Relocate to here.
3393 * Makefile.in (GTFILES): Add emit-rtl.h.
3394 * df-core.c: Include emit-rtl.h.
3395 * genattrtab.c: Likewise.
3396 * genconditions.c: Likewise.
3397 * genpreds.c: Likewise.
3398 * genrecog.c: Likewise.
3399 * regcprop.c: Likewise.
3400 * resource.c: Likewise.
3401 * sched-rgn.c: Likewise.
3402 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3403 * config/i386/winnt.c: Likewise.
3405 2015-06-17 Jakub Jelinek <jakub@redhat.com>
3408 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
3409 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
3410 and has_force_vectorize_loops flags from cfun into
3412 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
3413 if simduid is non-NULL.
3414 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
3415 * passes.def (pass_simduid_cleanup): Add new pass after loop
3417 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
3418 indirection from htab argument's type.
3419 (shrink_simd_arrays): New function.
3420 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
3421 Don't call adjust_simduid_builtins if there are no loops.
3422 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
3423 (pass_simduid_cleanup::execute): New method.
3424 (make_pass_simduid_cleanup): New function.
3426 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
3428 * tree-core.h (tree_target_option): Make opts field a pointer to a
3429 cl_target_option instead of an instance of the struct.
3430 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
3432 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
3434 (copy_node_stat): Allocate and copy struct cl_target_option.
3436 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3438 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
3439 Remove conditional exposure of prototypes.
3440 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
3441 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
3442 definitions in tree.h with functions.
3443 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
3445 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
3447 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
3449 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
3450 (*cmp<mode>_signed): ... this.
3451 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
3452 (*cmp<mode>_unsigned): ... this. Remove %b.
3454 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
3456 * coretypes.h: Include input.h and as-a.h.
3457 * rtl.h: Include input.h and as-a.h for generator files.
3458 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
3459 * vec.c: Don't include diagnostic-core.h.
3460 * alias.c: Do not include input.h, line-map.h or is-a.h.
3462 * attribs.c: Likewise.
3463 * auto-inc-dec.c: Likewise.
3464 * auto-profile.c: Likewise.
3465 * bb-reorder.c: Likewise.
3466 * bt-load.c: Likewise.
3467 * builtins.c: Likewise.
3468 * caller-save.c: Likewise.
3469 * calls.c: Likewise.
3472 * cfganal.c: Likewise.
3473 * cfgbuild.c: Likewise.
3474 * cfgcleanup.c: Likewise.
3475 * cfgexpand.c: Likewise.
3476 * cfghooks.c: Likewise.
3477 * cfgloop.c: Likewise.
3478 * cfgloop.h: Likewise.
3479 * cfgloopanal.c: Likewise.
3480 * cfgloopmanip.c: Likewise.
3481 * cfgrtl.c: Likewise.
3482 * cgraph.c: Likewise.
3483 * cgraphbuild.c: Likewise.
3484 * cgraphclones.c: Likewise.
3485 * cgraphunit.c: Likewise.
3486 * cilk-common.c: Likewise.
3487 * combine-stack-adj.c: Likewise.
3488 * combine.c: Likewise.
3489 * compare-elim.c: Likewise.
3490 * convert.c: Likewise.
3491 * coverage.c: Likewise.
3492 * cppbuiltin.c: Likewise.
3493 * cprop.c: Likewise.
3495 * cselib.c: Likewise.
3496 * data-streamer-in.c: Likewise.
3497 * data-streamer-out.c: Likewise.
3498 * data-streamer.c: Likewise.
3499 * dbxout.c: Likewise.
3502 * debug.c: Likewise.
3503 * df-core.c: Likewise.
3504 * df-problems.c: Likewise.
3505 * df-scan.c: Likewise.
3508 * diagnostic-core.h: Likewise.
3509 * diagnostic.c: Likewise.
3510 * dojump.c: Likewise.
3511 * dominance.c: Likewise.
3512 * domwalk.c: Likewise.
3513 * double-int.c: Likewise.
3515 * dumpfile.c: Likewise.
3516 * dumpfile.h: Likewise.
3517 * dwarf2asm.c: Likewise.
3518 * dwarf2cfi.c: Likewise.
3519 * dwarf2out.c: Likewise.
3520 * emit-rtl.c: Likewise.
3521 * et-forest.c: Likewise.
3522 * except.c: Likewise.
3523 * explow.c: Likewise.
3524 * expmed.c: Likewise.
3526 * final.c: Likewise.
3527 * fixed-value.c: Likewise.
3528 * fold-const.c: Likewise.
3529 * function.c: Likewise.
3530 * fwprop.c: Likewise.
3531 * gcc-plugin.h: Likewise.
3533 * generic-match-head.c: Likewise.
3534 * ggc-page.c: Likewise.
3535 * gimple-builder.c: Likewise.
3536 * gimple-expr.c: Likewise.
3537 * gimple-fold.c: Likewise.
3538 * gimple-iterator.c: Likewise.
3539 * gimple-low.c: Likewise.
3540 * gimple-match-head.c: Likewise.
3541 * gimple-pretty-print.c: Likewise.
3542 * gimple-ssa-isolate-paths.c: Likewise.
3543 * gimple-ssa-strength-reduction.c: Likewise.
3544 * gimple-streamer-in.c: Likewise.
3545 * gimple-streamer-out.c: Likewise.
3546 * gimple-streamer.h: Likewise.
3547 * gimple-walk.c: Likewise.
3548 * gimple.c: Likewise.
3549 * gimplify-me.c: Likewise.
3550 * gimplify.c: Likewise.
3551 * godump.c: Likewise.
3552 * graph.c: Likewise.
3553 * graphite-blocking.c: Likewise.
3554 * graphite-dependences.c: Likewise.
3555 * graphite-interchange.c: Likewise.
3556 * graphite-isl-ast-to-gimple.c: Likewise.
3557 * graphite-optimize-isl.c: Likewise.
3558 * graphite-poly.c: Likewise.
3559 * graphite-scop-detection.c: Likewise.
3560 * graphite-sese-to-poly.c: Likewise.
3561 * graphite.c: Likewise.
3562 * haifa-sched.c: Likewise.
3563 * hw-doloop.c: Likewise.
3564 * ifcvt.c: Likewise.
3565 * init-regs.c: Likewise.
3566 * input.c: Likewise.
3567 * internal-fn.c: Likewise.
3568 * ipa-chkp.c: Likewise.
3569 * ipa-comdats.c: Likewise.
3570 * ipa-cp.c: Likewise.
3571 * ipa-devirt.c: Likewise.
3572 * ipa-icf-gimple.c: Likewise.
3573 * ipa-icf.c: Likewise.
3574 * ipa-inline-analysis.c: Likewise.
3575 * ipa-inline-transform.c: Likewise.
3576 * ipa-inline.c: Likewise.
3577 * ipa-polymorphic-call.c: Likewise.
3578 * ipa-profile.c: Likewise.
3579 * ipa-prop.c: Likewise.
3580 * ipa-pure-const.c: Likewise.
3581 * ipa-ref.c: Likewise.
3582 * ipa-reference.c: Likewise.
3583 * ipa-split.c: Likewise.
3584 * ipa-utils.c: Likewise.
3585 * ipa-visibility.c: Likewise.
3587 * ira-build.c: Likewise.
3588 * ira-color.c: Likewise.
3589 * ira-conflicts.c: Likewise.
3590 * ira-costs.c: Likewise.
3591 * ira-emit.c: Likewise.
3592 * ira-lives.c: Likewise.
3595 * langhooks.c: Likewise.
3597 * loop-doloop.c: Likewise.
3598 * loop-init.c: Likewise.
3599 * loop-invariant.c: Likewise.
3600 * loop-iv.c: Likewise.
3601 * loop-unroll.c: Likewise.
3602 * lower-subreg.c: Likewise.
3603 * lra-assigns.c: Likewise.
3604 * lra-coalesce.c: Likewise.
3605 * lra-constraints.c: Likewise.
3606 * lra-eliminations.c: Likewise.
3607 * lra-lives.c: Likewise.
3608 * lra-remat.c: Likewise.
3609 * lra-spills.c: Likewise.
3611 * lto-cgraph.c: Likewise.
3612 * lto-compress.c: Likewise.
3613 * lto-opts.c: Likewise.
3614 * lto-section-in.c: Likewise.
3615 * lto-section-out.c: Likewise.
3616 * lto-streamer-in.c: Likewise.
3617 * lto-streamer-out.c: Likewise.
3618 * lto-streamer.c: Likewise.
3620 * mode-switching.c: Likewise.
3621 * modulo-sched.c: Likewise.
3622 * omega.c: Likewise.
3623 * omp-low.c: Likewise.
3624 * optabs.c: Likewise.
3625 * opts-global.c: Likewise.
3627 * passes.c: Likewise.
3628 * plugin.c: Likewise.
3629 * postreload-gcse.c: Likewise.
3630 * postreload.c: Likewise.
3631 * predict.c: Likewise.
3632 * pretty-print.h: Likewise.
3633 * print-rtl.c: Likewise.
3634 * print-tree.c: Likewise.
3635 * profile.c: Likewise.
3637 * realmpfr.c: Likewise.
3638 * recog.c: Likewise.
3640 * reg-stack.c: Likewise.
3641 * regcprop.c: Likewise.
3642 * reginfo.c: Likewise.
3643 * regrename.c: Likewise.
3644 * regstat.c: Likewise.
3645 * reload.c: Likewise.
3646 * reload1.c: Likewise.
3647 * reorg.c: Likewise.
3648 * resource.c: Likewise.
3649 * rtl-chkp.c: Likewise.
3650 * rtl-error.c: Likewise.
3651 * rtlanal.c: Likewise.
3652 * rtlhooks.c: Likewise.
3653 * sanopt.c: Likewise.
3654 * sched-deps.c: Likewise.
3655 * sched-ebb.c: Likewise.
3656 * sched-rgn.c: Likewise.
3657 * sched-vis.c: Likewise.
3658 * sdbout.c: Likewise.
3659 * sel-sched-dump.c: Likewise.
3660 * sel-sched-ir.c: Likewise.
3661 * sel-sched.c: Likewise.
3663 * shrink-wrap.c: Likewise.
3664 * simplify-rtx.c: Likewise.
3665 * stack-ptr-mod.c: Likewise.
3666 * statistics.c: Likewise.
3668 * stor-layout.c: Likewise.
3669 * store-motion.c: Likewise.
3670 * streamer-hooks.c: Likewise.
3671 * stringpool.c: Likewise.
3672 * symtab.c: Likewise.
3673 * target-globals.c: Likewise.
3674 * targhooks.c: Likewise.
3675 * toplev.c: Likewise.
3676 * tracer.c: Likewise.
3677 * trans-mem.c: Likewise.
3678 * tree-affine.c: Likewise.
3679 * tree-browser.c: Likewise.
3680 * tree-call-cdce.c: Likewise.
3681 * tree-cfg.c: Likewise.
3682 * tree-cfgcleanup.c: Likewise.
3683 * tree-chkp-opt.c: Likewise.
3684 * tree-chkp.c: Likewise.
3685 * tree-chrec.c: Likewise.
3686 * tree-complex.c: Likewise.
3687 * tree-data-ref.c: Likewise.
3688 * tree-dfa.c: Likewise.
3689 * tree-diagnostic.c: Likewise.
3690 * tree-dump.c: Likewise.
3691 * tree-eh.c: Likewise.
3692 * tree-emutls.c: Likewise.
3693 * tree-if-conv.c: Likewise.
3694 * tree-inline.c: Likewise.
3695 * tree-into-ssa.c: Likewise.
3696 * tree-iterator.c: Likewise.
3697 * tree-loop-distribution.c: Likewise.
3698 * tree-nested.c: Likewise.
3699 * tree-nrv.c: Likewise.
3700 * tree-object-size.c: Likewise.
3701 * tree-outof-ssa.c: Likewise.
3702 * tree-parloops.c: Likewise.
3703 * tree-phinodes.c: Likewise.
3704 * tree-predcom.c: Likewise.
3705 * tree-pretty-print.c: Likewise.
3706 * tree-profile.c: Likewise.
3707 * tree-scalar-evolution.c: Likewise.
3708 * tree-sra.c: Likewise.
3709 * tree-ssa-address.c: Likewise.
3710 * tree-ssa-alias.c: Likewise.
3711 * tree-ssa-ccp.c: Likewise.
3712 * tree-ssa-coalesce.c: Likewise.
3713 * tree-ssa-copy.c: Likewise.
3714 * tree-ssa-copyrename.c: Likewise.
3715 * tree-ssa-dce.c: Likewise.
3716 * tree-ssa-dom.c: Likewise.
3717 * tree-ssa-dse.c: Likewise.
3718 * tree-ssa-forwprop.c: Likewise.
3719 * tree-ssa-ifcombine.c: Likewise.
3720 * tree-ssa-live.c: Likewise.
3721 * tree-ssa-loop-ch.c: Likewise.
3722 * tree-ssa-loop-im.c: Likewise.
3723 * tree-ssa-loop-ivcanon.c: Likewise.
3724 * tree-ssa-loop-ivopts.c: Likewise.
3725 * tree-ssa-loop-manip.c: Likewise.
3726 * tree-ssa-loop-niter.c: Likewise.
3727 * tree-ssa-loop-prefetch.c: Likewise.
3728 * tree-ssa-loop-unswitch.c: Likewise.
3729 * tree-ssa-loop.c: Likewise.
3730 * tree-ssa-math-opts.c: Likewise.
3731 * tree-ssa-operands.c: Likewise.
3732 * tree-ssa-phiopt.c: Likewise.
3733 * tree-ssa-phiprop.c: Likewise.
3734 * tree-ssa-pre.c: Likewise.
3735 * tree-ssa-propagate.c: Likewise.
3736 * tree-ssa-reassoc.c: Likewise.
3737 * tree-ssa-sccvn.c: Likewise.
3738 * tree-ssa-scopedtables.c: Likewise.
3739 * tree-ssa-sink.c: Likewise.
3740 * tree-ssa-strlen.c: Likewise.
3741 * tree-ssa-structalias.c: Likewise.
3742 * tree-ssa-tail-merge.c: Likewise.
3743 * tree-ssa-ter.c: Likewise.
3744 * tree-ssa-threadedge.c: Likewise.
3745 * tree-ssa-threadupdate.c: Likewise.
3746 * tree-ssa-uncprop.c: Likewise.
3747 * tree-ssa-uninit.c: Likewise.
3748 * tree-ssa.c: Likewise.
3749 * tree-ssanames.c: Likewise.
3750 * tree-stdarg.c: Likewise.
3751 * tree-streamer-in.c: Likewise.
3752 * tree-streamer-out.c: Likewise.
3753 * tree-streamer.c: Likewise.
3754 * tree-switch-conversion.c: Likewise.
3755 * tree-tailcall.c: Likewise.
3756 * tree-vect-data-refs.c: Likewise.
3757 * tree-vect-generic.c: Likewise.
3758 * tree-vect-loop-manip.c: Likewise.
3759 * tree-vect-loop.c: Likewise.
3760 * tree-vect-patterns.c: Likewise.
3761 * tree-vect-slp.c: Likewise.
3762 * tree-vect-stmts.c: Likewise.
3763 * tree-vectorizer.c: Likewise.
3764 * tree-vrp.c: Likewise.
3767 * ubsan.c: Likewise.
3768 * valtrack.c: Likewise.
3769 * value-prof.c: Likewise.
3770 * var-tracking.c: Likewise.
3771 * varasm.c: Likewise.
3772 * varpool.c: Likewise.
3773 * vmsdbgout.c: Likewise.
3774 * vtable-verify.c: Likewise.
3776 * wide-int.cc: Likewise.
3777 * xcoffout.c: Likewise.
3778 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
3779 * common/common-targhooks.c: Likewise.
3780 * config/aarch64/aarch64-builtins.c: Likewise.
3781 * config/aarch64/aarch64.c: Likewise.
3782 * config/alpha/alpha.c: Likewise.
3783 * config/arc/arc.c: Likewise.
3784 * config/arm/aarch-common.c: Likewise.
3785 * config/arm/arm-builtins.c: Likewise.
3786 * config/arm/arm-c.c: Likewise.
3787 * config/arm/arm.c: Likewise.
3788 * config/avr/avr-c.c: Likewise.
3789 * config/avr/avr-log.c: Likewise.
3790 * config/avr/avr.c: Likewise.
3791 * config/bfin/bfin.c: Likewise.
3792 * config/c6x/c6x.c: Likewise.
3793 * config/cr16/cr16.c: Likewise.
3794 * config/cris/cris.c: Likewise.
3795 * config/darwin-c.c: Likewise.
3796 * config/darwin.c: Likewise.
3797 * config/default-c.c: Likewise.
3798 * config/epiphany/epiphany.c: Likewise.
3799 * config/epiphany/mode-switch-use.c: Likewise.
3800 * config/epiphany/resolve-sw-modes.c: Likewise.
3801 * config/fr30/fr30.c: Likewise.
3802 * config/frv/frv.c: Likewise.
3803 * config/ft32/ft32.c: Likewise.
3804 * config/glibc-c.c: Likewise.
3805 * config/h8300/h8300.c: Likewise.
3806 * config/i386/i386-c.c: Likewise.
3807 * config/i386/i386.c: Likewise.
3808 * config/i386/msformat-c.c: Likewise.
3809 * config/i386/winnt-cxx.c: Likewise.
3810 * config/i386/winnt-stubs.c: Likewise.
3811 * config/i386/winnt.c: Likewise.
3812 * config/ia64/ia64-c.c: Likewise.
3813 * config/ia64/ia64.c: Likewise.
3814 * config/iq2000/iq2000.c: Likewise.
3815 * config/lm32/lm32.c: Likewise.
3816 * config/m32c/m32c-pragma.c: Likewise.
3817 * config/m32c/m32c.c: Likewise.
3818 * config/m32r/m32r.c: Likewise.
3819 * config/m68k/m68k.c: Likewise.
3820 * config/mcore/mcore.c: Likewise.
3821 * config/mep/mep-pragma.c: Likewise.
3822 * config/mep/mep.c: Likewise.
3823 * config/microblaze/microblaze-c.c: Likewise.
3824 * config/microblaze/microblaze.c: Likewise.
3825 * config/mips/mips.c: Likewise.
3826 * config/mmix/mmix.c: Likewise.
3827 * config/mn10300/mn10300.c: Likewise.
3828 * config/moxie/moxie.c: Likewise.
3829 * config/msp430/msp430-c.c: Likewise.
3830 * config/msp430/msp430.c: Likewise.
3831 * config/nds32/nds32-cost.c: Likewise.
3832 * config/nds32/nds32-fp-as-gp.c: Likewise.
3833 * config/nds32/nds32-intrinsic.c: Likewise.
3834 * config/nds32/nds32-isr.c: Likewise.
3835 * config/nds32/nds32-md-auxiliary.c: Likewise.
3836 * config/nds32/nds32-memory-manipulation.c: Likewise.
3837 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3838 * config/nds32/nds32-predicates.c: Likewise.
3839 * config/nds32/nds32.c: Likewise.
3840 * config/nios2/nios2.c: Likewise.
3841 * config/nvptx/nvptx.c: Likewise.
3842 * config/pa/pa.c: Likewise.
3843 * config/pdp11/pdp11.c: Likewise.
3844 * config/rl78/rl78-c.c: Likewise.
3845 * config/rl78/rl78.c: Likewise.
3846 * config/rs6000/rs6000-c.c: Likewise.
3847 * config/rs6000/rs6000.c: Likewise.
3848 * config/rx/rx.c: Likewise.
3849 * config/s390/s390-c.c: Likewise.
3850 * config/s390/s390.c: Likewise.
3851 * config/sh/sh-c.c: Likewise.
3852 * config/sh/sh-mem.cc: Likewise.
3853 * config/sh/sh.c: Likewise.
3854 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3855 * config/sh/sh_treg_combine.cc: Likewise.
3856 * config/sol2-c.c: Likewise.
3857 * config/sol2-cxx.c: Likewise.
3858 * config/sol2-stubs.c: Likewise.
3859 * config/sol2.c: Likewise.
3860 * config/sparc/sparc-c.c: Likewise.
3861 * config/sparc/sparc.c: Likewise.
3862 * config/spu/spu-c.c: Likewise.
3863 * config/spu/spu.c: Likewise.
3864 * config/stormy16/stormy16.c: Likewise.
3865 * config/tilegx/mul-tables.c: Likewise.
3866 * config/tilegx/tilegx-c.c: Likewise.
3867 * config/tilegx/tilegx.c: Likewise.
3868 * config/tilepro/mul-tables.c: Likewise.
3869 * config/tilepro/tilepro-c.c: Likewise.
3870 * config/tilepro/tilepro.c: Likewise.
3871 * config/v850/v850-c.c: Likewise.
3872 * config/v850/v850.c: Likewise.
3873 * config/vax/vax.c: Likewise.
3874 * config/visium/visium.c: Likewise.
3875 * config/vms/vms-c.c: Likewise.
3876 * config/vms/vms.c: Likewise.
3877 * config/vxworks.c: Likewise.
3878 * config/winnt-c.c: Likewise.
3879 * config/xtensa/xtensa.c: Likewise.
3881 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
3883 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
3885 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
3887 2015-06-17 Richard Biener <rguenther@suse.de>
3889 PR tree-optimization/66251
3890 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
3891 stmts for SLP strided stores.
3894 2015-05-22 Richard Biener <rguenther@suse.de>
3896 PR tree-optimization/66251
3897 * tree-vect-stmts.c (vectorizable_conversion): Properly
3898 set STMT_VINFO_VEC_STMT even for the SLP case.
3900 2015-05-26 Michael Matz <matz@suse.de>
3903 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
3904 STMT_VINFO_VEC_STMT, also with SLP.
3906 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
3909 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
3910 (*avx_addsubv4df3_1s): Ditto.
3911 (*sse3_addsubv2df3_1): Ditto.
3912 (*sse3_addsubv2df3_1s): Ditto.
3913 (*avx_addsubv8sf3_1): Ditto.
3914 (*avx_addsubv8sf3_1s): Ditto.
3915 (*sse3_addsubv4sf3_1): Ditto.
3916 (*sse3_addsubv4sf3_1s): Ditto.
3918 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
3920 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
3921 (SYSROOT_SUFFIX_SPEC): Update.
3922 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
3923 (STARTFILE_PREFIX_SPEC): Update.
3924 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
3925 (MULTILIB_REQUIRED): New.
3926 (MULTILIB_OSDIRNAMES): New.
3927 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
3928 (MULTILIB_REQUIRED): New.
3929 (MULTILIB_OSDIRNAMES): New.
3931 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
3933 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
3934 * config/aarch64/aarch64-options-extensions.def: Update "fP",
3935 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
3936 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
3937 (AARCH64_FL_PAN): New.
3938 (AARCH64_FL_LOR): New.
3939 (AARCH64_FL_RDMA): New.
3940 (AARCH64_FL_FOR_ARCH8_1): New.
3941 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
3942 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
3944 2015-06-16 Martin Liska <mliska@suse.cz>
3946 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
3947 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
3950 2015-06-16 Richard Biener <rguenther@suse.de>
3952 * tree-vect-stmts.c (vectorizable_store): Adjust.
3953 (vectorizable_load): Likewise.
3954 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3956 (vect_create_data_ref_ptr): Likewise.
3957 (bump_vector_ptr): Adjust.
3959 2015-06-16 Richard Biener <rguenther@suse.de>
3961 * tree-vect-stmts.c (vectorizable_load): Properly start loads
3962 with the first element if this is grouped loads.
3964 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
3966 * config/arm/arm-protos.h (struct tune_params): Rename
3967 log_op_non_sc to log_op_non_short_circuit, and rename enum
3968 values to expand SC to SHORT_CIRCUIT.
3969 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
3970 to LOG_OP_NON_SHORT_CIRCUIT.
3971 (arm_fastmul_tune):Likewise
3972 (arm_strongarm_tune): Likewise.
3973 (arm_xscale_tune): Likewise.
3974 (arm_9e_tune): Likewise.
3975 (arm_marvell_pj4_tune): Likewise.
3976 (arm_v6t2_tune): Likewise.
3977 (arm_cortex_tune): Likewise.
3978 (arm_cortex_a8_tune): Likewise.
3979 (arm_cortex_a7_tune): Likewise.
3980 (arm_cortex_a15_tune): Likewise.
3981 (arm_cortex_a53_tune): Likewise.
3982 (arm_cortex_a57_tune): Likewise.
3983 (arm_xgene1_tune): Likewise.
3984 (arm_cortex_a5_tune): Likewise.
3985 (arm_cortex_a9_tune): Likewise.
3986 (arm_cortex_a12_tune): Likewise.
3987 (arm_v7m_tune): Likewise.
3988 (arm_cortex_m7_tune): Likewise.
3989 (arm_v6m_tune): Likewise.
3990 (arm_fa726te_tune): Likewise.
3992 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
3994 * altivec.md: Delete UNSPEC_VMLADDUHM.
3995 (mulv4si3_p8): New pattern.
3996 (mulv4si3): Use it for POWER8.
3997 (mulv8hi3): Use vmladduhm with zero addend.
3998 (altivec_vmladduhm): Descriptive RTL.
4000 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
4002 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
4003 to use neon_move instead of mov_imm.
4004 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
4005 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
4007 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
4008 aarch64_float_const_zero_rtx_p check before TFmode check.
4009 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
4011 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
4012 code and attributes to match. Change condition from register_operand
4013 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
4014 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
4017 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
4020 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
4023 2015-06-14 Shiva Chen <shiva0217@gmail.com>
4025 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
4026 HOST_WIDE_INT parameter.
4028 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
4031 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
4032 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
4034 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
4036 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
4038 * rtl.h (classify_insn): Declare.
4039 * emit-rtl.c (classify_insn): Move to...
4040 * rtl.c: ...here and add generator support.
4041 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
4042 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
4043 * genemit.c (gen_emit_seq): New function.
4044 (gen_expand, gen_split): Use it.
4046 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
4048 * tree.c (make_vector_stat): Fix comment to state that the
4049 function returns a VECTOR_CST.
4051 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
4053 * gensupport.h (add_implicit_parallel): Declare.
4054 * genrecog.c (add_implicit_parallel): Move to...
4055 * gensupport.c (add_implicit_parallel): ...here.
4056 (process_one_cond_exec): Use it.
4057 * genemit.c (gen_insn): Likewise.
4059 2015-06-13 Iain Sandoe <iain@codesourcery.com>
4062 * passes.c (rest_of_decl_compilation): Do not register globals for
4063 early debug if they are declared in built-ins.
4065 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
4067 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
4069 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4071 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
4073 (noce_try_cmove_arith): Likewise.
4074 (noce_get_alt_condition): Likewise.
4076 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4078 * common/config/i386/i386-common.c
4079 (OPTION_MASK_ISA_MWAITX_SET): New.
4080 (ix86_handle_option): Handle mwaitx.
4081 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
4082 (x86_64-*-*): Likewise.
4083 * config/i386/mwaitxintrin.h: New header.
4084 * config/i386/cpuid.h (bit_MWAITX): Define.
4085 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4087 * config/i386/i386.opt (mwaitx): New.
4088 * config/i386/i386-builtin-types.def
4089 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
4090 * config/i386/i386-c.c: Define __MWAITX__ if needed.
4091 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
4093 (ix86_option_override_internal): Handle new option.
4094 (processor_alias_table): Added PTA_MWAITX.
4095 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
4096 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
4097 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
4098 IX86_BUILTIN_MONITORX built-ins.
4099 * config/i386/i386.h (TARGET_MWAITX): New.
4100 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
4102 (mwaitx): New pattern.
4103 (monitorx_<mode>): New pattern.
4104 * config/i386/x86intrin.h: Include mwaitxintrin.h.
4105 * doc/extend.texi: Document monitorx and mwaitx builtins.
4106 * doc/invoke.texi: Document -mmwaitx option.
4108 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
4110 * emit-rtl.c (need_atomic_barrier_p): Mask model with
4111 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
4113 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
4115 * dbxout.c (xcoff_debug_hooks): Provide a function for
4116 register_main_translation_unit hook.
4118 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
4120 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
4121 variants cases from switch.
4122 (rs6000_post_atomic_barrier): Same.
4123 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
4124 (rs6000_expand_atomic_exchange): Same.
4125 (rs6000_expand_atomic_op): Same.
4126 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
4127 SYNC variants cases from switch.
4128 (atomic_load): Same.
4129 (atomic_store): Same.
4131 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
4133 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
4136 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
4139 * dwarf2out.c (check_die): Check for common duplicate attributes.
4140 (add_location_or_const_value_attribute): Do not add duplicate
4142 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
4144 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
4145 (gen_type_die_with_usage): Call check_die.
4146 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
4148 2015-06-11 Jason Merrill <jason@redhat.com>
4150 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
4153 2015-06-11 Marek Polacek <polacek@redhat.com>
4155 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
4157 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
4160 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
4161 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
4162 (*addx_extend_sp32): Fix pasto.
4163 (*subx_extend): Rename into...
4164 (*subx_extend_sp32): ...this.
4165 (*adddi3_extend_sp32): Add earlyclobber.
4166 (*subdi3_insn_sp32): Likewise.
4167 (*subdi3_extend_sp32): Likewise.
4168 (*and_not_di_sp32): Likewise.
4169 (*or_not_di_sp32): Likewise.
4170 (*xor_not_di_sp32): Likewise.
4171 (*negdi2_sp32): Likewise.
4172 (*one_cmpldi2_sp32): Likewise.
4174 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
4176 * debug.h (struct gcc_debug_hooks): Add a
4177 register_main_translation_unit hook.
4178 * debug.c (do_nothing_debug_hooks): Provide a function for this
4180 * dbxout.c (dbx_debug_hooks): Likewise.
4181 * sdbout.c (sdb_debug_hooks): Likewise.
4182 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4183 * dwarf2out.c (main_translation_unit): New global variable.
4184 (dwarf2out_register_main_translation_unit): New function
4185 implementing the new hook.
4186 (dwarf2_debug_hooks): Assign
4187 dwarf2out_register_main_translation_unit to this new hook.
4188 (dwarf2out_init): Associate any main translation unit to
4191 2015-06-11 Marek Polacek <polacek@redhat.com>
4193 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
4195 2015-06-11 Marek Polacek <polacek@redhat.com>
4197 * match.pd: Use single_use throughout.
4199 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4201 * config/arm/arm.c (arm_option_params_internal): When optimising
4202 for speed set max_insns_skipped when arm_restrict_it.
4204 2015-06-11 Christian Bruel <christian.bruel@st.com>
4207 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
4209 (arm_cpu_builtins): New function.
4210 (arm_pragma_target_parse): Call arm_cpu_builtins.
4211 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
4212 (arm_register_target_pragmas): Likewise.
4213 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
4214 Call arm_register_target_pragmas.
4215 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
4216 (arm_pragma_target_parse): Likewise.
4218 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
4220 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
4221 of the second operand.
4223 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
4226 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
4227 to prepare mask operand for AVX512 modes.
4229 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4232 * doc/md.texi (Machine Constraints): Document that on the PowerPC
4233 if you use a constraint that targets a VSX register, you must use
4234 %x<n> in the template.
4236 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
4238 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
4239 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
4240 (define_insn "trap"): New definition.
4242 2015-06-10 Richard Biener <rguenther@suse.de>
4244 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
4246 (vect_supported_load_permutation_p): ... here. Handle
4247 supportable permutations in reductions.
4248 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
4249 for vectorizing strided group loads.
4251 2015-06-10 Jakub Jelinek <jakub@redhat.com>
4254 * config/i386/i386.c (ix86_split_long_move): For collisions
4255 involving direct tls segment refs, move the UNSPEC_TP possibly
4256 wrapped in ZERO_EXTEND out of the address for lea, to each of
4259 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4261 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
4262 dmb sy. Adjust tabs.
4264 2015-06-10 Tom de Vries <tom@codesourcery.com>
4266 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
4268 2015-06-10 Martin Liska <mliska@suse.cz>
4271 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
4272 all enum values in mem_alloc_origin.
4273 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
4275 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
4276 * bitmap.c (bitmap_register): Likewise.
4277 (dump_bitmap_statistics): Likewise.
4278 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4279 (ggc_record_overhead): Likewise.
4280 * hash-map.h: Likewise.
4281 * hash-set.h: Likewise.
4282 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
4283 * hash-table.h: Likewise.
4284 * vec.c (vec_prefix::register_overhead): Likewise.
4285 (vec_prefix::release_overhead): Likewise.
4286 (dump_vec_loc_statistics): Likewise.
4288 2015-06-09 Christian Bruel <christian.bruel@st.com>
4291 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
4292 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
4293 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
4294 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
4295 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
4296 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
4297 (arm_valid_target_attribute_p): Likewise.
4298 (arm_set_current_function, arm_can_inline_p): Likewise.
4299 (arm_valid_target_attribute_rec): Likewise.
4300 (arm_previous_fndecl): New variable.
4301 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4302 (TARGET_CAN_INLINE_P): Define.
4303 (arm_asm_trampoline_template): Emit mode.
4304 (arm_file_start): Don't set unified syntax.
4305 (arm_declare_function_name): Set unified syntax and mode.
4306 (arm_option_override): Init target_option_default_node.
4307 and target_option_current_node.
4308 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
4309 (*call_symbol): Likewise.
4310 * doc/extend.texi: Document ARM/Thumb target attribute.
4311 * doc/invoke.texi: Likewise.
4313 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4316 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4317 PR rtl-optimization/64164
4318 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4319 * tree-ssa-copyrename.c: Removed.
4320 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4321 -ftree-coalesce-vars.
4322 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4323 * common.opt (ftree-copyrename): Ignore.
4324 (ftree-coalesce-inlined-vars): Likewise.
4325 * doc/invoke.texi: Remove the ignored options above.
4326 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4327 * tree-ssa-coalesce.h: ... here.
4328 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4329 headers required by it.
4330 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4331 across variables when flag_tree_coalesce_vars. Check register
4332 use and promoted modes to allow coalescing. Moved to
4333 tree-ssa-coalesce.c.
4334 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4335 with its member functions to tree-ssa-coalesce.c.
4336 (var_map_base_init): Likewise. Renamed to
4337 compute_samebase_partition_bases.
4338 (partition_view_normal): Drop want_bases parameter.
4339 (partition_view_bitmap): Likewise.
4340 * tree-ssa-live.h: Adjust declarations.
4341 * tree-ssa-coalesce.c: Include explow.h.
4342 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4343 default defs at the entry point.
4344 (dump_part_var_map): New.
4345 (compute_optimized_partition_bases): New, called by...
4346 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4347 of compute_samebase_partition_bases. Adjust.
4348 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4349 * cfgexpand.c (leader_merge): New.
4350 (get_rtl_for_parm_ssa_default_def): New.
4351 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4352 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4353 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4354 redundant MEM attr setting.
4355 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4357 (expand_one_stack_var): ... this. New wrapper to check and
4358 skip already expanded SSA partitions.
4359 (record_alignment_for_reg_var): New, factored out of...
4360 (expand_one_var): ... this.
4361 (expand_one_ssa_partition): New.
4362 (adjust_one_expanded_partition_var): New.
4363 (expand_one_register_var): Check and skip already expanded SSA
4365 (expand_used_vars): Don't create DECLs for anonymous SSA
4366 names. Expand all SSA partitions, then adjust all SSA names.
4367 (pass::execute): Replace the loops that set
4368 SA.partition_to_pseudo from partition leaders and cleared
4369 DECL_RTL for multi-location variables, and that which used to
4370 rename vars and set attrs, with one that clears DECL_RTL and
4371 checks that PARMs and RESULTs default_defs match DECL_RTL.
4372 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4373 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4374 * explow.c (promote_ssa_mode): New.
4375 * explow.h (promote_ssa_mode): Declare.
4376 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4377 * function.c: Include cfgexpand.h.
4378 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4379 (use_register_for_parm_decl): Wrapper for the above to
4380 special-case the result_ptr.
4381 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4382 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4384 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4385 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4386 (assign_parm_setup_block): Prefer SSA-assigned location.
4387 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4388 if stack_parm is NULL.
4389 (assign_parm_setup_stack): Prefer SSA-assigned location.
4390 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4391 rtl before testing for pointer bounds. Special-case result_ptr.
4392 (expand_function_start): Maybe reset DECL_RTL of result.
4393 Prefer SSA-assigned location for result and static chain.
4394 Factor out DECL_RESULT and SET_DECL_RTL.
4395 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4396 anonymous SSA names. Use promote_ssa_mode.
4397 (get_temp_reg): Likewise.
4398 (remove_ssa_form): Adjust.
4399 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4400 and get its reg_usage for reg invalidation.
4401 (compute_bb_dataflow): Pass it insn.
4402 (emit_notes_in_bb): Likewise.
4403 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4404 fail assert on conversion between unsigned types.
4406 2015-06-09 Tom de Vries <tom@codesourcery.com>
4408 PR tree-optimization/65460
4409 * omp-low.c (expand_omp_target): Set parallelized_function on
4410 cgraph_node for child_fn.
4412 2015-06-09 Tom de Vries <tom@codesourcery.com>
4414 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
4415 parallelized_function before add_new_function.
4417 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
4419 * gcc-plugin.h: Move decls to plugin.h and include it.
4420 * plugin.h: Relocate decls from gcc-plugin.h
4421 * ggc-page.c: Include required header files.
4422 * passes.c: Likewise.
4423 * cgraphunit.c: Likewise.
4425 2015-06-09 Tom de Vries <tom@codesourcery.com>
4427 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
4429 2015-06-09 Jason Merrill <jason@redhat.com>
4432 * toplev.c (check_global_declaration): Don't warn about a clone.
4434 2015-06-09 Marek Polacek <polacek@redhat.com>
4436 PR tree-optimization/66299
4437 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
4438 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
4441 2015-06-09 Richard Biener <rguenther@suse.de>
4443 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
4444 (vect_analyze_slp_instance): Instead do not falsely drop
4447 2015-06-09 Richard Biener <rguenther@suse.de>
4450 * match.pd: Handle A % (unsigned)(1 << B).
4452 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
4454 * varasm.c (output_object_block_htab): Remove.
4455 (output_object_block_compare): New.
4456 (output_object_blocks): Sort named object_blocks before outputting
4459 2015-06-09 Richard Biener <rguenther@suse.de>
4461 PR tree-optimization/66419
4462 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
4463 consider GROUP_GAP when detecting a perfect subchain.
4465 2015-06-09 Nick Clifton <nickc@redhat.com>
4467 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
4468 place read only data in the .frodata section.
4470 2015-06-09 Shiva Chen <shiva0217@gmail.com>
4472 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
4473 (atomic_store<mode>): Likewise.
4475 2015-06-09 Richard Biener <rguenther@suse.de>
4477 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
4479 2015-06-09 Richard Biener <rguenther@suse.de>
4482 * tree-inline.c (insert_init_debug_bind): Unshare value.
4484 2015-06-09 Richard Biener <rguenther@suse.de>
4486 PR tree-optimization/66396
4487 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
4488 Rename virtual operands.
4490 2015-06-09 Tom de Vries <tom@codesourcery.com>
4492 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
4493 always return false.
4495 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4497 PR rtl-optimization/64164
4498 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4499 * tree-ssa-copyrename.c: Removed.
4500 * opts.c (default_options_table): Drop -ftree-copyrename. Add
4501 -ftree-coalesce-vars.
4502 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4503 * common.opt (ftree-copyrename): Ignore.
4504 (ftree-coalesce-inlined-vars): Likewise.
4505 * doc/invoke.texi: Remove the ignored options above.
4506 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4507 * tree-ssa-coalesce.h: ... here.
4508 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4509 headers required by it.
4510 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4511 across variables when flag_tree_coalesce_vars. Check register
4512 use and promoted modes to allow coalescing. Moved to
4513 tree-ssa-coalesce.c.
4514 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4515 with its member functions to tree-ssa-coalesce.c.
4516 (var_map_base_init): Likewise. Renamed to
4517 compute_samebase_partition_bases.
4518 (partition_view_normal): Drop want_bases parameter.
4519 (partition_view_bitmap): Likewise.
4520 * tree-ssa-live.h: Adjust declarations.
4521 * tree-ssa-coalesce.c: Include explow.h.
4522 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4523 default defs at the entry point.
4524 (dump_part_var_map): New.
4525 (compute_optimized_partition_bases): New, called by...
4526 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4527 of compute_samebase_partition_bases. Adjust.
4528 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4529 * cfgexpand.c (leader_merge): New.
4530 (get_rtl_for_parm_ssa_default_def): New.
4531 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4532 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4533 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
4534 redundant MEM attr setting.
4535 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
4537 (expand_one_stack_var): ... this. New wrapper to check and
4538 skip already expanded SSA partitions.
4539 (record_alignment_for_reg_var): New, factored out of...
4540 (expand_one_var): ... this.
4541 (expand_one_ssa_partition): New.
4542 (adjust_one_expanded_partition_var): New.
4543 (expand_one_register_var): Check and skip already expanded SSA
4545 (expand_used_vars): Don't create DECLs for anonymous SSA
4546 names. Expand all SSA partitions, then adjust all SSA names.
4547 (pass::execute): Replace the loops that set
4548 SA.partition_to_pseudo from partition leaders and cleared
4549 DECL_RTL for multi-location variables, and that which used to
4550 rename vars and set attrs, with one that clears DECL_RTL and
4551 checks that PARMs and RESULTs default_defs match DECL_RTL.
4552 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4553 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4554 * explow.c (promote_ssa_mode): New.
4555 * explow.h (promote_ssa_mode): Declare.
4556 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4557 * function.c: Include cfgexpand.h.
4558 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4559 (use_register_for_parm_decl): Wrapper for the above to
4560 special-case the result_ptr.
4561 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4562 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4564 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4565 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
4566 (assign_parm_setup_block): Prefer SSA-assigned location.
4567 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
4568 if stack_parm is NULL.
4569 (assign_parm_setup_stack): Prefer SSA-assigned location.
4570 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
4571 rtl before testing for pointer bounds. Special-case result_ptr.
4572 (expand_function_start): Maybe reset DECL_RTL of result.
4573 Prefer SSA-assigned location for result and static chain.
4574 Factor out DECL_RESULT and SET_DECL_RTL.
4575 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4576 anonymous SSA names. Use promote_ssa_mode.
4577 (get_temp_reg): Likewise.
4578 (remove_ssa_form): Adjust.
4579 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4580 and get its reg_usage for reg invalidation.
4581 (compute_bb_dataflow): Pass it insn.
4582 (emit_notes_in_bb): Likewise.
4583 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
4584 fail assert on conversion between unsigned types.
4586 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
4589 * tree-inline.c (reset_debug_binding): New.
4590 (reset_debug_bindings): Likewise.
4591 (expand_call_inline): Call it.
4593 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
4595 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
4598 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
4600 * lto-streamer-out.c (lto_output_location): Stream
4601 reserved locations correctly.
4602 * lto-streamer-in.c (lto_output_location): Likewise.
4604 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
4606 * coretypes.h: Include hash-table.h and hash-set.h for host files.
4607 * ggc.h: Don't include statistics.h>
4608 * hash-map.h: Remove all includes.
4609 * hash-set.h: Likewise.
4610 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
4611 the include list. Remove <new>.
4612 * inchash.h: Remove all includes.
4613 * mem-stats.h: Likewise.
4614 * vec.h: No special processing for generators or ggc.
4615 * alias.c : Adjust include files.
4616 * alloc-pool.c : Likewise.
4617 * alloc-pool.h : Likewise.
4618 * asan.c : Likewise.
4619 * attribs.c : Likewise.
4620 * auto-inc-dec.c : Likewise.
4621 * auto-profile.c : Likewise.
4622 * bb-reorder.c : Likewise.
4623 * bitmap.c : Likewise.
4624 * bitmap.h : Likewise.
4625 * bt-load.c : Likewise.
4626 * builtins.c : Likewise.
4627 * caller-save.c : Likewise.
4628 * calls.c : Likewise.
4629 * ccmp.c : Likewise.
4631 * cfganal.c : Likewise.
4632 * cfgbuild.c : Likewise.
4633 * cfgcleanup.c : Likewise.
4634 * cfgexpand.c : Likewise.
4635 * cfghooks.c : Likewise.
4636 * cfgloop.c : Likewise.
4637 * cfgloop.h : Likewise.
4638 * cfgloopanal.c : Likewise.
4639 * cfgloopmanip.c : Likewise.
4640 * cfgrtl.c : Likewise.
4641 * cgraph.c : Likewise.
4642 * cgraphbuild.c : Likewise.
4643 * cgraphclones.c : Likewise.
4644 * cgraphunit.c : Likewise.
4645 * cilk-common.c : Likewise.
4646 * combine-stack-adj.c : Likewise.
4647 * combine.c : Likewise.
4648 * compare-elim.c : Likewise.
4649 * context.c : Likewise.
4650 * convert.c : Likewise.
4651 * coverage.c : Likewise.
4652 * cppbuiltin.c : Likewise.
4653 * cprop.c : Likewise.
4655 * cselib.c : Likewise.
4656 * data-streamer-in.c : Likewise.
4657 * data-streamer-out.c : Likewise.
4658 * data-streamer.c : Likewise.
4659 * data-streamer.h : Likewise.
4660 * dbxout.c : Likewise.
4663 * debug.c : Likewise.
4664 * df-core.c : Likewise.
4665 * df-problems.c : Likewise.
4666 * df-scan.c : Likewise.
4669 * dojump.c : Likewise.
4670 * dominance.c : Likewise.
4671 * domwalk.c : Likewise.
4672 * double-int.c : Likewise.
4674 * dumpfile.c : Likewise.
4675 * dwarf2asm.c : Likewise.
4676 * dwarf2cfi.c : Likewise.
4677 * dwarf2out.c : Likewise.
4678 * emit-rtl.c : Likewise.
4679 * et-forest.c : Likewise.
4680 * except.c : Likewise.
4681 * except.h : Likewise.
4682 * explow.c : Likewise.
4683 * expmed.c : Likewise.
4684 * expr.c : Likewise.
4685 * final.c : Likewise.
4686 * fixed-value.c : Likewise.
4687 * fold-const.c : Likewise.
4688 * function.c : Likewise.
4689 * fwprop.c : Likewise.
4690 * gcc-plugin.h : Likewise.
4692 * gcse-common.c : Likewise.
4693 * gcse.c : Likewise.
4694 * genattrtab.c : Likewise.
4695 * genautomata.c : Likewise.
4696 * genconditions.c : Likewise.
4697 * genemit.c : Likewise.
4698 * generic-match-head.c : Likewise.
4699 * genextract.c : Likewise.
4700 * gengtype-state.c : Likewise.
4701 * gengtype.c : Likewise.
4702 * genhooks.c : Likewise.
4703 * genmatch.c : Likewise.
4704 * genmodes.c : Likewise.
4705 * genrecog.c : Likewise.
4706 * gensupport.c : Likewise.
4707 * ggc-common.c : Likewise.
4708 * ggc-internal.h : Likewise.
4709 * ggc-none.c : Likewise.
4710 * ggc-page.c : Likewise.
4711 * gimple-builder.c : Likewise.
4712 * gimple-expr.c : Likewise.
4713 * gimple-fold.c : Likewise.
4714 * gimple-iterator.c : Likewise.
4715 * gimple-low.c : Likewise.
4716 * gimple-match-head.c : Likewise.
4717 * gimple-pretty-print.c : Likewise.
4718 * gimple-ssa-isolate-paths.c : Likewise.
4719 * gimple-ssa-strength-reduction.c : Likewise.
4720 * gimple-ssa.h : Likewise.
4721 * gimple-streamer-in.c : Likewise.
4722 * gimple-streamer-out.c : Likewise.
4723 * gimple-streamer.h : Likewise.
4724 * gimple-walk.c : Likewise.
4725 * gimple.c : Likewise.
4726 * gimplify-me.c : Likewise.
4727 * gimplify.c : Likewise.
4728 * godump.c : Likewise.
4729 * graph.c : Likewise.
4730 * graphds.c : Likewise.
4731 * graphite-blocking.c : Likewise.
4732 * graphite-dependences.c : Likewise.
4733 * graphite-interchange.c : Likewise.
4734 * graphite-isl-ast-to-gimple.c : Likewise.
4735 * graphite-optimize-isl.c : Likewise.
4736 * graphite-poly.c : Likewise.
4737 * graphite-scop-detection.c : Likewise.
4738 * graphite-sese-to-poly.c : Likewise.
4739 * graphite.c : Likewise.
4740 * haifa-sched.c : Likewise.
4741 * hard-reg-set.h : Likewise.
4742 * hw-doloop.c : Likewise.
4743 * ifcvt.c : Likewise.
4744 * inchash.c : Likewise.
4745 * incpath.c : Likewise.
4746 * init-regs.c : Likewise.
4747 * input.c : Likewise.
4748 * internal-fn.c : Likewise.
4749 * ipa-chkp.c : Likewise.
4750 * ipa-comdats.c : Likewise.
4751 * ipa-cp.c : Likewise.
4752 * ipa-devirt.c : Likewise.
4753 * ipa-icf-gimple.c : Likewise.
4754 * ipa-icf.c : Likewise.
4755 * ipa-inline-analysis.c : Likewise.
4756 * ipa-inline-transform.c : Likewise.
4757 * ipa-inline.c : Likewise.
4758 * ipa-polymorphic-call.c : Likewise.
4759 * ipa-profile.c : Likewise.
4760 * ipa-prop.c : Likewise.
4761 * ipa-pure-const.c : Likewise.
4762 * ipa-ref.c : Likewise.
4763 * ipa-reference.c : Likewise.
4764 * ipa-split.c : Likewise.
4765 * ipa-utils.c : Likewise.
4766 * ipa-visibility.c : Likewise.
4768 * ira-build.c : Likewise.
4769 * ira-color.c : Likewise.
4770 * ira-conflicts.c : Likewise.
4771 * ira-costs.c : Likewise.
4772 * ira-emit.c : Likewise.
4773 * ira-lives.c : Likewise.
4775 * jump.c : Likewise.
4776 * langhooks.c : Likewise.
4778 * libfuncs.h : Likewise.
4779 * lists.c : Likewise.
4780 * loop-doloop.c : Likewise.
4781 * loop-init.c : Likewise.
4782 * loop-invariant.c : Likewise.
4783 * loop-iv.c : Likewise.
4784 * loop-unroll.c : Likewise.
4785 * lower-subreg.c : Likewise.
4786 * lra-assigns.c : Likewise.
4787 * lra-coalesce.c : Likewise.
4788 * lra-constraints.c : Likewise.
4789 * lra-eliminations.c : Likewise.
4790 * lra-lives.c : Likewise.
4791 * lra-remat.c : Likewise.
4792 * lra-spills.c : Likewise.
4794 * lto-cgraph.c : Likewise.
4795 * lto-compress.c : Likewise.
4796 * lto-opts.c : Likewise.
4797 * lto-section-in.c : Likewise.
4798 * lto-section-out.c : Likewise.
4799 * lto-streamer-in.c : Likewise.
4800 * lto-streamer-out.c : Likewise.
4801 * lto-streamer.c : Likewise.
4802 * lto-streamer.h : Likewise.
4804 * mode-switching.c : Likewise.
4805 * modulo-sched.c : Likewise.
4806 * omega.c : Likewise.
4807 * omp-low.c : Likewise.
4808 * optabs.c : Likewise.
4809 * opts-global.c : Likewise.
4810 * opts.h : Likewise.
4811 * passes.c : Likewise.
4812 * plugin.c : Likewise.
4813 * postreload-gcse.c : Likewise.
4814 * postreload.c : Likewise.
4815 * predict.c : Likewise.
4816 * print-rtl.c : Likewise.
4817 * print-tree.c : Likewise.
4818 * profile.c : Likewise.
4819 * read-md.c : Likewise.
4820 * read-md.h : Likewise.
4821 * read-rtl.c : Likewise.
4822 * real.c : Likewise.
4823 * realmpfr.c : Likewise.
4824 * recog.c : Likewise.
4826 * reg-stack.c : Likewise.
4827 * regcprop.c : Likewise.
4828 * reginfo.c : Likewise.
4829 * regrename.c : Likewise.
4830 * regstat.c : Likewise.
4831 * reload.c : Likewise.
4832 * reload1.c : Likewise.
4833 * reorg.c : Likewise.
4834 * resource.c : Likewise.
4835 * rtl-chkp.c : Likewise.
4838 * rtlanal.c : Likewise.
4839 * rtlhash.c : Likewise.
4840 * rtlhash.h : Likewise.
4841 * rtlhooks.c : Likewise.
4842 * sanopt.c : Likewise.
4843 * sched-deps.c : Likewise.
4844 * sched-ebb.c : Likewise.
4845 * sched-rgn.c : Likewise.
4846 * sched-vis.c : Likewise.
4847 * sdbout.c : Likewise.
4848 * sel-sched-dump.c : Likewise.
4849 * sel-sched-ir.c : Likewise.
4850 * sel-sched-ir.h : Likewise.
4851 * sel-sched.c : Likewise.
4852 * sese.c : Likewise.
4853 * shrink-wrap.c : Likewise.
4854 * shrink-wrap.h : Likewise.
4855 * simplify-rtx.c : Likewise.
4856 * stack-ptr-mod.c : Likewise.
4857 * statistics.c : Likewise.
4858 * stmt.c : Likewise.
4859 * stor-layout.c : Likewise.
4860 * store-motion.c : Likewise.
4861 * stringpool.c : Likewise.
4862 * symtab.c : Likewise.
4863 * target-globals.c : Likewise.
4864 * targhooks.c : Likewise.
4865 * tlink.c : Likewise.
4866 * toplev.c : Likewise.
4867 * tracer.c : Likewise.
4868 * trans-mem.c : Likewise.
4869 * tree-affine.c : Likewise.
4870 * tree-affine.h : Likewise.
4871 * tree-browser.c : Likewise.
4872 * tree-call-cdce.c : Likewise.
4873 * tree-cfg.c : Likewise.
4874 * tree-cfgcleanup.c : Likewise.
4875 * tree-chkp-opt.c : Likewise.
4876 * tree-chkp.c : Likewise.
4877 * tree-chrec.c : Likewise.
4878 * tree-complex.c : Likewise.
4879 * tree-data-ref.c : Likewise.
4880 * tree-dfa.c : Likewise.
4881 * tree-diagnostic.c : Likewise.
4882 * tree-dump.c : Likewise.
4883 * tree-eh.c : Likewise.
4884 * tree-eh.h : Likewise.
4885 * tree-emutls.c : Likewise.
4886 * tree-hasher.h : Likewise.
4887 * tree-if-conv.c : Likewise.
4888 * tree-inline.c : Likewise.
4889 * tree-inline.h : Likewise.
4890 * tree-into-ssa.c : Likewise.
4891 * tree-iterator.c : Likewise.
4892 * tree-loop-distribution.c : Likewise.
4893 * tree-nested.c : Likewise.
4894 * tree-nrv.c : Likewise.
4895 * tree-object-size.c : Likewise.
4896 * tree-outof-ssa.c : Likewise.
4897 * tree-parloops.c : Likewise.
4898 * tree-phinodes.c : Likewise.
4899 * tree-predcom.c : Likewise.
4900 * tree-pretty-print.c : Likewise.
4901 * tree-profile.c : Likewise.
4902 * tree-scalar-evolution.c : Likewise.
4903 * tree-sra.c : Likewise.
4904 * tree-ssa-address.c : Likewise.
4905 * tree-ssa-alias.c : Likewise.
4906 * tree-ssa-ccp.c : Likewise.
4907 * tree-ssa-coalesce.c : Likewise.
4908 * tree-ssa-copy.c : Likewise.
4909 * tree-ssa-copyrename.c : Likewise.
4910 * tree-ssa-dce.c : Likewise.
4911 * tree-ssa-dom.c : Likewise.
4912 * tree-ssa-dse.c : Likewise.
4913 * tree-ssa-forwprop.c : Likewise.
4914 * tree-ssa-ifcombine.c : Likewise.
4915 * tree-ssa-live.c : Likewise.
4916 * tree-ssa-loop-ch.c : Likewise.
4917 * tree-ssa-loop-im.c : Likewise.
4918 * tree-ssa-loop-ivcanon.c : Likewise.
4919 * tree-ssa-loop-ivopts.c : Likewise.
4920 * tree-ssa-loop-manip.c : Likewise.
4921 * tree-ssa-loop-niter.c : Likewise.
4922 * tree-ssa-loop-prefetch.c : Likewise.
4923 * tree-ssa-loop-unswitch.c : Likewise.
4924 * tree-ssa-loop.c : Likewise.
4925 * tree-ssa-math-opts.c : Likewise.
4926 * tree-ssa-operands.c : Likewise.
4927 * tree-ssa-phiopt.c : Likewise.
4928 * tree-ssa-phiprop.c : Likewise.
4929 * tree-ssa-pre.c : Likewise.
4930 * tree-ssa-propagate.c : Likewise.
4931 * tree-ssa-reassoc.c : Likewise.
4932 * tree-ssa-sccvn.c : Likewise.
4933 * tree-ssa-scopedtables.c : Likewise.
4934 * tree-ssa-sink.c : Likewise.
4935 * tree-ssa-strlen.c : Likewise.
4936 * tree-ssa-structalias.c : Likewise.
4937 * tree-ssa-tail-merge.c : Likewise.
4938 * tree-ssa-ter.c : Likewise.
4939 * tree-ssa-threadedge.c : Likewise.
4940 * tree-ssa-threadupdate.c : Likewise.
4941 * tree-ssa-uncprop.c : Likewise.
4942 * tree-ssa-uninit.c : Likewise.
4943 * tree-ssa.c : Likewise.
4944 * tree-ssanames.c : Likewise.
4945 * tree-stdarg.c : Likewise.
4946 * tree-streamer-in.c : Likewise.
4947 * tree-streamer-out.c : Likewise.
4948 * tree-streamer.c : Likewise.
4949 * tree-streamer.h : Likewise.
4950 * tree-switch-conversion.c : Likewise.
4951 * tree-tailcall.c : Likewise.
4952 * tree-vect-data-refs.c : Likewise.
4953 * tree-vect-generic.c : Likewise.
4954 * tree-vect-loop-manip.c : Likewise.
4955 * tree-vect-loop.c : Likewise.
4956 * tree-vect-patterns.c : Likewise.
4957 * tree-vect-slp.c : Likewise.
4958 * tree-vect-stmts.c : Likewise.
4959 * tree-vectorizer.c : Likewise.
4960 * tree-vectorizer.h : Likewise.
4961 * tree-vrp.c : Likewise.
4962 * tree.c : Likewise.
4963 * tsan.c : Likewise.
4964 * ubsan.c : Likewise.
4965 * valtrack.c : Likewise.
4966 * valtrack.h : Likewise.
4967 * value-prof.c : Likewise.
4968 * var-tracking.c : Likewise.
4969 * varasm.c : Likewise.
4970 * varpool.c : Likewise.
4972 * vmsdbgout.c : Likewise.
4973 * vtable-verify.c : Likewise.
4974 * vtable-verify.h : Likewise.
4976 * wide-int.cc : Likewise.
4977 * xcoffout.c : Likewise.
4978 * config/aarch64/aarch64-builtins.c : Likewise.
4979 * config/aarch64/aarch64.c : Likewise.
4980 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
4981 * config/alpha/alpha.c : Likewise.
4982 * config/arc/arc.c : Likewise.
4983 * config/arm/aarch-common.c : Likewise.
4984 * config/arm/arm-builtins.c : Likewise.
4985 * config/arm/arm-c.c : Likewise.
4986 * config/arm/arm.c : Likewise.
4987 * config/avr/avr-c.c : Likewise.
4988 * config/avr/avr-log.c : Likewise.
4989 * config/avr/avr.c : Likewise.
4990 * config/bfin/bfin.c : Likewise.
4991 * config/c6x/c6x.c : Likewise.
4992 * config/cr16/cr16.c : Likewise.
4993 * config/cris/cris.c : Likewise.
4994 * config/darwin-c.c : Likewise.
4995 * config/darwin.c : Likewise.
4996 * config/default-c.c : Likewise.
4997 * config/epiphany/epiphany.c : Likewise.
4998 * config/epiphany/mode-switch-use.c : Likewise.
4999 * config/epiphany/resolve-sw-modes.c : Likewise.
5000 * config/fr30/fr30.c : Likewise.
5001 * config/frv/frv.c : Likewise.
5002 * config/ft32/ft32.c : Likewise.
5003 * config/glibc-c.c : Likewise.
5004 * config/h8300/h8300.c : Likewise.
5005 * config/i386/i386-c.c : Likewise.
5006 * config/i386/i386.c : Likewise.
5007 * config/i386/msformat-c.c : Likewise.
5008 * config/i386/winnt-cxx.c : Likewise.
5009 * config/i386/winnt-stubs.c : Likewise.
5010 * config/i386/winnt.c : Likewise.
5011 * config/ia64/ia64-c.c : Likewise.
5012 * config/ia64/ia64.c : Likewise.
5013 * config/iq2000/iq2000.c : Likewise.
5014 * config/lm32/lm32.c : Likewise.
5015 * config/m32c/m32c-pragma.c : Likewise.
5016 * config/m32c/m32c.c : Likewise.
5017 * config/m32r/m32r.c : Likewise.
5018 * config/m68k/m68k.c : Likewise.
5019 * config/mcore/mcore.c : Likewise.
5020 * config/mep/mep-pragma.c : Likewise.
5021 * config/mep/mep.c : Likewise.
5022 * config/microblaze/microblaze-c.c : Likewise.
5023 * config/microblaze/microblaze.c : Likewise.
5024 * config/mips/mips.c : Likewise.
5025 * config/mmix/mmix.c : Likewise.
5026 * config/mn10300/mn10300.c : Likewise.
5027 * config/moxie/moxie.c : Likewise.
5028 * config/msp430/msp430-c.c : Likewise.
5029 * config/msp430/msp430.c : Likewise.
5030 * config/nds32/nds32-cost.c : Likewise.
5031 * config/nds32/nds32-fp-as-gp.c : Likewise.
5032 * config/nds32/nds32-intrinsic.c : Likewise.
5033 * config/nds32/nds32-isr.c : Likewise.
5034 * config/nds32/nds32-md-auxiliary.c : Likewise.
5035 * config/nds32/nds32-memory-manipulation.c : Likewise.
5036 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
5037 * config/nds32/nds32-predicates.c : Likewise.
5038 * config/nds32/nds32.c : Likewise.
5039 * config/nios2/nios2.c : Likewise.
5040 * config/nvptx/nvptx.c : Likewise.
5041 * config/pa/pa.c : Likewise.
5042 * config/pdp11/pdp11.c : Likewise.
5043 * config/rl78/rl78-c.c : Likewise.
5044 * config/rl78/rl78.c : Likewise.
5045 * config/rs6000/rs6000-c.c : Likewise.
5046 * config/rs6000/rs6000.c : Likewise.
5047 * config/rx/rx.c : Likewise.
5048 * config/s390/s390-c.c : Likewise.
5049 * config/s390/s390.c : Likewise.
5050 * config/sh/sh-c.c : Likewise.
5051 * config/sh/sh-mem.cc : Likewise.
5052 * config/sh/sh.c : Likewise.
5053 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
5054 * config/sh/sh_treg_combine.cc : Likewise.
5055 * config/sol2-c.c : Likewise.
5056 * config/sol2-cxx.c : Likewise.
5057 * config/sol2-stubs.c : Likewise.
5058 * config/sol2.c : Likewise.
5059 * config/sparc/sparc-c.c : Likewise.
5060 * config/sparc/sparc.c : Likewise.
5061 * config/spu/spu-c.c : Likewise.
5062 * config/spu/spu.c : Likewise.
5063 * config/stormy16/stormy16.c : Likewise.
5064 * config/tilegx/mul-tables.c : Likewise.
5065 * config/tilegx/tilegx-c.c : Likewise.
5066 * config/tilegx/tilegx.c : Likewise.
5067 * config/tilepro/mul-tables.c : Likewise.
5068 * config/tilepro/tilepro-c.c : Likewise.
5069 * config/tilepro/tilepro.c : Likewise.
5070 * config/v850/v850-c.c : Likewise.
5071 * config/v850/v850.c : Likewise.
5072 * config/vax/vax.c : Likewise.
5073 * config/visium/visium.c : Likewise.
5074 * config/vms/vms-c.c : Likewise.
5075 * config/vms/vms.c : Likewise.
5076 * config/vxworks.c : Likewise.
5077 * config/winnt-c.c : Likewise.
5078 * config/xtensa/xtensa.c : Likewise.
5080 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
5083 * ipa-utils.h (warn_types_mismatch): Update prototype.
5084 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
5086 (type_mismatch_p): New function.
5087 (warn_types_mismatch): Reorg to work better on non-C++ types.
5088 (odr_types_equivalent_p): Add loc1/loc2 parameters.
5089 (add_type_duplicate): Update.
5091 2015-06-08 Tom de Vries <tom@codesourcery.com>
5093 PR rtl-optimization/66444
5094 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
5097 2015-06-08 Richard Biener <rguenther@suse.de>
5099 PR tree-optimization/66422
5100 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
5101 block after inserted gcc_unreachable.
5103 2015-06-08 Nick Clifton <nickc@redhat.com>
5105 * config/rx/rx.c (rx_function_value): Do not promote vector types.
5106 (rx_promote_function_mode): Likewise.
5107 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
5109 2015-06-08 Jakub Jelinek <jakub@redhat.com>
5111 * genattrtab.c (insn_alternatives): Change type from int *
5113 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
5114 (get_attr_value): Change type of num_alt to uint64_t.
5115 (compute_alternative_mask): Change return type from
5116 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
5117 (make_alternative_compare, mk_attr_alt): Change argument type
5118 from int to uint64_t.
5119 (simplify_test_exp): Change type of i from int to uint64_t.
5120 Shift ((uint64_t) 1) instead of 1 up.
5121 (main): Adjust oballocvec first argument from int to uint64_t.
5122 Shift ((uint64_t) 1) instead of 1 up.
5124 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5127 * gdbhooks.py: Import sys.
5128 (intptr): New function. Replace int(...) by intptr(...).
5130 2015-06-08 Richard Biener <rguenther@suse.de>
5132 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
5133 adjustment for gaps at the end of a SLP load group properly.
5134 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
5135 all permutations we can generate.
5136 (vect_transform_slp_perm_load): Use the correct group-size.
5138 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
5140 * genmatch.c (expr::gen_transform): For conditions, guess the type
5141 from the second operand.
5143 2015-06-08 Tom de Vries <tom@codesourcery.com>
5145 PR tree-optimization/66442
5146 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
5147 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
5148 if the loop latch is not a singleton. Use
5149 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
5151 2015-06-08 Marek Polacek <polacek@redhat.com>
5154 * toplev.c (check_global_declaration): Don't warn about artificial
5157 2015-06-08 Tom de Vries <tom@codesourcery.com>
5159 PR tree-optimization/66436
5160 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
5162 * gimplify.c: Add tree-dump.h include.
5163 (gimplify_function_tree): Dump function to gimple dump file.
5164 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
5167 2015-06-08 Tom de Vries <tom@codesourcery.com>
5169 PR tree-optimization/66435
5170 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
5173 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
5175 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
5176 of ptr_type_node to not be ptr_to_node.
5177 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
5178 TREE_TYPE of pointers.
5179 * gimple-expr.c (useless_type_conversion): Reorder the check for
5180 function pointers and TYPE_CANONICAL.
5182 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
5185 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
5186 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
5187 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
5189 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
5190 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
5191 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
5192 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
5193 and non iso if unix2003.
5195 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
5197 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
5199 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
5201 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
5202 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
5203 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
5204 except.c, final.c, function.c, gcse-common.c, genemit.c,
5205 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
5206 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
5207 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
5208 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
5211 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
5213 * combine.c (combine_split_insns): Remove cast.
5214 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
5215 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
5216 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
5217 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
5218 * genemit.c (gen_split): Change return type of generated functions to
5220 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
5221 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
5222 gen_peephole2_* functions.
5223 (print_subroutine, main): Likewise.
5224 * recog.c (peephole2_optimize): Remove cast.
5225 (peep2_next_insn): Promote return type to rtx_insn.
5226 * recog.h (peep2_next_insn): Fix prototype.
5227 * rtl.h (try_split, split_insns): Likewise.
5229 2015-06-06 DJ Delorie <dj@redhat.com>
5231 * config/msp430/msp430.c (msp430_asm_integer): Support addition
5232 and subtraction too.
5234 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
5237 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
5238 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
5239 instead of Snd. Disparage Sid/z alternative with '^'.
5241 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
5243 * dwarf2out.c: Remove deferred_locations*.
5244 (dwarf2_debug_hooks): Add early_finish hook.
5245 Remove global_decl hook.
5246 Add early_global_decl and late_global_decl hook.
5247 New global early_dwarf.
5248 New structure set_early_dwarf.
5249 (output_die): Indicate whether a DIE was generated early
5250 when generating assembly with -dA.
5251 (struct limbo_die_struct): Document created_for field.
5252 Remove file_table_last_lookup.
5253 (remove_AT): Return TRUE if successful.
5254 (remove_child_TAG): Clear die_parent.
5255 (reparent_child): New function abstracted from...
5256 (splice_child_die): ...here.
5257 (new_die): ICE if a DIE ends up in limbo too late.
5259 (defer_location): Remove.
5260 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
5261 (fill_variable_array_bounds): New.
5262 (decl_start_label): Call fill_variable_array_bounds.
5263 (gen_formal_parameter_die): Rewrite to reuse previously generated
5265 (gen_subprogram_die): Same.
5266 (gen_variable_die): Same.
5267 (gen_const_die): Same.
5268 (gen_label_die): Same.
5269 (gen_lexical_block_die): Same.
5270 (decl_will_get_specification_p): New.
5271 (local_function_static): New.
5272 (gen_struct_or_union_type_die): Fill in variable-length fields.
5273 (gen_typedef_die): Fill in variable-length typedefs.
5274 (gen_tagged_type_die): Gracefully return on error_mark_node.
5276 (gen_type_die_with_usage): Handle variable-length types.
5277 Remove duplicate code for ARRAY_TYPE case.
5278 (process_scope_var): Only process imported modules during early
5280 (dwarf2out_early_global_decl): New.
5281 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
5282 (dwarf2out_type_decl): Set early_dwarf while calling
5284 (dwarf2out_decl): Verify that we did not recreate a previously
5286 Do not return on DECL_EXTERNALs in VAR_DECLs.
5287 Abstract some code to local_function_static.
5288 (lookup_filename): Remove use of file_table_last_lookup.
5289 Gracefully exit on missing file_name.
5290 (dwarf2out_finish): Verify limbo list.
5291 Remove deferred_locations_list use.
5292 Move deferred_asm_name and limbo flushing to...
5293 (dwarf2out_early_finish): ...here. New.
5294 (dwarf2out_c_finalize): Remove set of deferred_location_list,
5295 deferred_asm_name, and file_table_last_lookup.
5296 * cgraph.h (referred_to_p): Add default argument.
5297 * cgraphunit.c (referred_to_p): Add and handle include_self
5299 (analyze_functions): Add first_time argument.
5300 Call check_global_declaration for all symbols.
5301 Call late_global_decl for nodes for moribund nodes.
5302 (finalize_compilation_unit): Add new argument to
5304 Call early_global_decl for functions.
5305 Call early_finish debug hook.
5306 * dbxout.c (dbxout_early_global_decl): New.
5307 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
5308 (dbx_debug_hooks): Add new hooks.
5309 (xcoff_debug_hooks): Same.
5310 * debug.c (do_nothing_debug_hooks): Add early_finish field.
5311 Add early and late debug hooks.
5312 Remove global_decl hook.
5313 * debug.h (struct gcc_debug_hooks): Add early_finish,
5314 early_global_decl, and late_global_decl fields.
5315 Remove global_decl field.
5316 Document gcc_debug_hooks.
5317 * gengtype.c (output_typename): Remove.
5318 * godump.c (go_early_global_decl): New.
5319 (go_late_global_decl): New.
5320 (go_global_decl): Remove.
5321 (dump_go_spec_init): Remove global_decl. Add
5322 {early,late}_global_decl.
5323 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
5324 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
5325 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
5326 (write_global_declarations): Remove.
5327 (global_decl_processing): New.
5328 * langhooks.h (struct lang_hooks_for_decls): Remove
5329 final_write_globals field.
5330 Add post_compilation_parsing_cleanups field.
5331 * passes.c (rest_of_decl_compilation): Call early_global_decl.
5332 * sdbout.c: Add early and late_global_decl hooks. Remove
5333 sdbout_global_decl hook.
5334 Add early_finish field for sdb_debug_hooks.
5335 (sdbout_global_decl): Remove.
5336 (sdbout_early_global_decl): New.
5337 (sdbout_late_global_decl): New.
5338 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
5339 * toplev.c (check_global_declaration): Rename from
5340 check_global_declaration_1.
5341 Adapt to use symtab infrastructure.
5342 (check_global_declarations): Remove.
5343 (emit_debug_global_declarations): Remove.
5344 (compile_file): Remove call to final_write_globals langhook.
5345 Run the actual compilation process.
5346 Perform any post compilation parser cleanups.
5347 Generate late debug info.
5348 * toplev.h (check_global_declaration): New.
5349 (check_global_declaration_1): Remove.
5350 (check_global_declarations): Remove.
5351 (write_global_declarations): Remove.
5352 (emit_debug_global_declarations): Remove.
5353 (global_decl_processing): New.
5354 * tree-core.h (struct tree_block): Add DIE field.
5355 * tree.h (BLOCK_DIE): New.
5356 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
5358 (vmsdbgout_early_global_decl): New.
5359 (vmsdbgout_late_global_decl): New.
5360 Add early_finish debug hook field to vmsdbg_debug_hooks.
5361 Remove vmsdbgout_decl to vmsdbgout_function_decl.
5362 Add early and late_global_decl debug hooks.
5364 2015-06-05 Julian Brown <julian@codesourcery.com>
5365 Sandra Loosemore <sandra@codesourcery.com>
5367 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
5368 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
5369 to print-sysroot-suffix.sh script.
5371 2015-06-05 Tom de Vries <tom@codesourcery.com>
5373 merge from gomp4 branch:
5374 2015-05-28 Tom de Vries <tom@codesourcery.com>
5376 PR tree-optimization/65443
5377 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
5378 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
5379 (try_transform_to_exit_first_loop_alt): New function.
5380 (transform_to_exit_first_loop): Use
5381 try_transform_to_exit_first_loop_alt.
5383 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
5385 * builtins.c (expand_builtin_atomic_compare_exchange): Call
5386 emit_cmp_and_jump_insns with the mode of target.
5388 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5390 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
5392 2015-06-04 DJ Delorie <dj@redhat.com>
5394 * config/msp430/msp430.md (movsi_s): New. Special case for
5395 storing a 20-bit symbol into a 32-bit register.
5396 * config/msp430/msp430.c (msp430_subreg): Add support for it.
5397 * config/msp430/predicates.md (msp430_symbol_operand): New.
5399 2015-06-04 Sriraman Tallam <tmsriram@google.com>
5401 * c-family/c-common.c (noplt): New attribute.
5402 (handle_noplt_attribute): New handler.
5403 * calls.c (prepare_call_address): Check for noplt
5405 * config/i386/i386.c (ix86_expand_call): Check
5406 for noplt attribute.
5407 (ix86_nopic_noplt_attribute_p): New function.
5408 (ix86_output_call_insn): Output indirect call for non-pic
5410 * doc/extend.texi (noplt): Document new attribute.
5411 * doc/invoke.texi: Document new attribute.
5413 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
5415 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
5416 real.h, and fixed-value.h when included in host source files.
5417 * double-int.h: Remove redundant #includes listed above.
5418 * fixed-value.h: Likewise.
5420 * wide-int.h: Likewise.
5421 * inchash.h: Likewise.
5422 * rtl.h: Add some include files When included from a generator file.
5423 * target.h: Remove wide-int.h and insn-modes.h from the include list.
5424 * internal-fn.h: Don't include coretypes.h.
5425 * alias.c: Adjust includes for restructured coretypes.h.
5427 * attribs.c: Likewise.
5428 * auto-inc-dec.c: Likewise.
5429 * auto-profile.c: Likewise.
5430 * bb-reorder.c: Likewise.
5431 * bt-load.c: Likewise.
5432 * builtins.c: Likewise.
5433 * caller-save.c: Likewise.
5434 * calls.c: Likewise.
5437 * cfganal.c: Likewise.
5438 * cfgbuild.c: Likewise.
5439 * cfgcleanup.c: Likewise.
5440 * cfgexpand.c: Likewise.
5441 * cfghooks.c: Likewise.
5442 * cfgloop.c: Likewise.
5443 * cfgloop.h: Likewise.
5444 * cfgloopanal.c: Likewise.
5445 * cfgloopmanip.c: Likewise.
5446 * cfgrtl.c: Likewise.
5447 * cgraph.c: Likewise.
5448 * cgraphbuild.c: Likewise.
5449 * cgraphclones.c: Likewise.
5450 * cgraphunit.c: Likewise.
5451 * cilk-common.c: Likewise.
5452 * combine-stack-adj.c: Likewise.
5453 * combine.c: Likewise.
5454 * compare-elim.c: Likewise.
5455 * convert.c: Likewise.
5456 * coverage.c: Likewise.
5457 * cppbuiltin.c: Likewise.
5458 * cprop.c: Likewise.
5460 * cselib.c: Likewise.
5461 * data-streamer-in.c: Likewise.
5462 * data-streamer-out.c: Likewise.
5463 * data-streamer.c: Likewise.
5464 * dbxout.c: Likewise.
5467 * debug.c: Likewise.
5468 * df-core.c: Likewise.
5469 * df-problems.c: Likewise.
5470 * df-scan.c: Likewise.
5473 * dojump.c: Likewise.
5474 * dominance.c: Likewise.
5475 * domwalk.c: Likewise.
5476 * double-int.c: Likewise.
5478 * dumpfile.c: Likewise.
5479 * dwarf2asm.c: Likewise.
5480 * dwarf2cfi.c: Likewise.
5481 * dwarf2out.c: Likewise.
5482 * dwarf2out.h: Likewise.
5483 * emit-rtl.c: Likewise.
5484 * et-forest.c: Likewise.
5485 * except.c: Likewise.
5486 * explow.c: Likewise.
5487 * expmed.c: Likewise.
5489 * final.c: Likewise.
5490 * fixed-value.c: Likewise.
5491 * fold-const.c: Likewise.
5492 * function.c: Likewise.
5493 * fwprop.c: Likewise.
5494 * gcc-plugin.h: Likewise.
5496 * generic-match-head.c: Likewise.
5497 * ggc-page.c: Likewise.
5498 * gimple-builder.c: Likewise.
5499 * gimple-expr.c: Likewise.
5500 * gimple-fold.c: Likewise.
5501 * gimple-iterator.c: Likewise.
5502 * gimple-low.c: Likewise.
5503 * gimple-match-head.c: Likewise.
5504 * gimple-pretty-print.c: Likewise.
5505 * gimple-ssa-isolate-paths.c: Likewise.
5506 * gimple-ssa-strength-reduction.c: Likewise.
5507 * gimple-streamer-in.c: Likewise.
5508 * gimple-streamer-out.c: Likewise.
5509 * gimple-streamer.h: Likewise.
5510 * gimple-walk.c: Likewise.
5511 * gimple.c: Likewise.
5512 * gimplify-me.c: Likewise.
5513 * gimplify.c: Likewise.
5514 * godump.c: Likewise.
5515 * graph.c: Likewise.
5516 * graphite-blocking.c: Likewise.
5517 * graphite-dependences.c: Likewise.
5518 * graphite-interchange.c: Likewise.
5519 * graphite-isl-ast-to-gimple.c: Likewise.
5520 * graphite-optimize-isl.c: Likewise.
5521 * graphite-poly.c: Likewise.
5522 * graphite-scop-detection.c: Likewise.
5523 * graphite-sese-to-poly.c: Likewise.
5524 * graphite.c: Likewise.
5525 * haifa-sched.c: Likewise.
5526 * hooks.h: Likewise.
5527 * hw-doloop.c: Likewise.
5528 * ifcvt.c: Likewise.
5529 * incpath.c: Likewise.
5530 * init-regs.c: Likewise.
5531 * internal-fn.c: Likewise.
5532 * ipa-chkp.c: Likewise.
5533 * ipa-comdats.c: Likewise.
5534 * ipa-cp.c: Likewise.
5535 * ipa-devirt.c: Likewise.
5536 * ipa-icf-gimple.c: Likewise.
5537 * ipa-icf.c: Likewise.
5538 * ipa-inline-analysis.c: Likewise.
5539 * ipa-inline-transform.c: Likewise.
5540 * ipa-inline.c: Likewise.
5541 * ipa-polymorphic-call.c: Likewise.
5542 * ipa-profile.c: Likewise.
5543 * ipa-prop.c: Likewise.
5544 * ipa-pure-const.c: Likewise.
5545 * ipa-ref.c: Likewise.
5546 * ipa-reference.c: Likewise.
5547 * ipa-split.c: Likewise.
5548 * ipa-utils.c: Likewise.
5549 * ipa-visibility.c: Likewise.
5551 * ira-build.c: Likewise.
5552 * ira-color.c: Likewise.
5553 * ira-conflicts.c: Likewise.
5554 * ira-costs.c: Likewise.
5555 * ira-emit.c: Likewise.
5556 * ira-lives.c: Likewise.
5559 * langhooks.c: Likewise.
5561 * loop-doloop.c: Likewise.
5562 * loop-init.c: Likewise.
5563 * loop-invariant.c: Likewise.
5564 * loop-iv.c: Likewise.
5565 * loop-unroll.c: Likewise.
5566 * lower-subreg.c: Likewise.
5567 * lra-assigns.c: Likewise.
5568 * lra-coalesce.c: Likewise.
5569 * lra-constraints.c: Likewise.
5570 * lra-eliminations.c: Likewise.
5571 * lra-lives.c: Likewise.
5572 * lra-remat.c: Likewise.
5573 * lra-spills.c: Likewise.
5575 * lto-cgraph.c: Likewise.
5576 * lto-compress.c: Likewise.
5577 * lto-opts.c: Likewise.
5578 * lto-section-in.c: Likewise.
5579 * lto-section-out.c: Likewise.
5580 * lto-streamer-in.c: Likewise.
5581 * lto-streamer-out.c: Likewise.
5582 * lto-streamer.c: Likewise.
5584 * mode-switching.c: Likewise.
5585 * modulo-sched.c: Likewise.
5586 * omega.c: Likewise.
5587 * omp-low.c: Likewise.
5588 * optabs.c: Likewise.
5589 * opts-global.c: Likewise.
5590 * passes.c: Likewise.
5591 * plugin.c: Likewise.
5592 * postreload-gcse.c: Likewise.
5593 * postreload.c: Likewise.
5594 * predict.c: Likewise.
5595 * print-rtl.c: Likewise.
5596 * print-tree.c: Likewise.
5597 * profile.c: Likewise.
5599 * realmpfr.c: Likewise.
5600 * realmpfr.h: Likewise.
5601 * recog.c: Likewise.
5603 * reg-stack.c: Likewise.
5604 * regcprop.c: Likewise.
5605 * reginfo.c: Likewise.
5606 * regrename.c: Likewise.
5608 * regstat.c: Likewise.
5609 * reload.c: Likewise.
5610 * reload1.c: Likewise.
5611 * reorg.c: Likewise.
5612 * resource.c: Likewise.
5613 * rtl-chkp.c: Likewise.
5614 * rtlanal.c: Likewise.
5615 * rtlhooks.c: Likewise.
5616 * sanopt.c: Likewise.
5617 * sched-deps.c: Likewise.
5618 * sched-ebb.c: Likewise.
5619 * sched-rgn.c: Likewise.
5620 * sched-vis.c: Likewise.
5621 * sdbout.c: Likewise.
5622 * sel-sched-dump.c: Likewise.
5623 * sel-sched-ir.c: Likewise.
5624 * sel-sched.c: Likewise.
5626 * shrink-wrap.c: Likewise.
5627 * shrink-wrap.h: Likewise.
5628 * simplify-rtx.c: Likewise.
5629 * stack-ptr-mod.c: Likewise.
5630 * statistics.c: Likewise.
5632 * stor-layout.c: Likewise.
5633 * store-motion.c: Likewise.
5634 * stringpool.c: Likewise.
5635 * symtab.c: Likewise.
5636 * target-globals.c: Likewise.
5637 * targhooks.c: Likewise.
5638 * toplev.c: Likewise.
5639 * tracer.c: Likewise.
5640 * trans-mem.c: Likewise.
5641 * tree-affine.c: Likewise.
5642 * tree-affine.h: Likewise.
5643 * tree-browser.c: Likewise.
5644 * tree-call-cdce.c: Likewise.
5645 * tree-cfg.c: Likewise.
5646 * tree-cfgcleanup.c: Likewise.
5647 * tree-chkp-opt.c: Likewise.
5648 * tree-chkp.c: Likewise.
5649 * tree-chrec.c: Likewise.
5650 * tree-complex.c: Likewise.
5651 * tree-data-ref.c: Likewise.
5652 * tree-dfa.c: Likewise.
5653 * tree-diagnostic.c: Likewise.
5654 * tree-dump.c: Likewise.
5655 * tree-eh.c: Likewise.
5656 * tree-emutls.c: Likewise.
5657 * tree-if-conv.c: Likewise.
5658 * tree-inline.c: Likewise.
5659 * tree-into-ssa.c: Likewise.
5660 * tree-iterator.c: Likewise.
5661 * tree-loop-distribution.c: Likewise.
5662 * tree-nested.c: Likewise.
5663 * tree-nrv.c: Likewise.
5664 * tree-object-size.c: Likewise.
5665 * tree-outof-ssa.c: Likewise.
5666 * tree-parloops.c: Likewise.
5667 * tree-phinodes.c: Likewise.
5668 * tree-predcom.c: Likewise.
5669 * tree-pretty-print.c: Likewise.
5670 * tree-pretty-print.h: Likewise.
5671 * tree-profile.c: Likewise.
5672 * tree-scalar-evolution.c: Likewise.
5673 * tree-sra.c: Likewise.
5674 * tree-ssa-address.c: Likewise.
5675 * tree-ssa-alias.c: Likewise.
5676 * tree-ssa-ccp.c: Likewise.
5677 * tree-ssa-coalesce.c: Likewise.
5678 * tree-ssa-copy.c: Likewise.
5679 * tree-ssa-copyrename.c: Likewise.
5680 * tree-ssa-dce.c: Likewise.
5681 * tree-ssa-dom.c: Likewise.
5682 * tree-ssa-dse.c: Likewise.
5683 * tree-ssa-forwprop.c: Likewise.
5684 * tree-ssa-ifcombine.c: Likewise.
5685 * tree-ssa-live.c: Likewise.
5686 * tree-ssa-loop-ch.c: Likewise.
5687 * tree-ssa-loop-im.c: Likewise.
5688 * tree-ssa-loop-ivcanon.c: Likewise.
5689 * tree-ssa-loop-ivopts.c: Likewise.
5690 * tree-ssa-loop-manip.c: Likewise.
5691 * tree-ssa-loop-niter.c: Likewise.
5692 * tree-ssa-loop-prefetch.c: Likewise.
5693 * tree-ssa-loop-unswitch.c: Likewise.
5694 * tree-ssa-loop.c: Likewise.
5695 * tree-ssa-loop.h: Likewise.
5696 * tree-ssa-math-opts.c: Likewise.
5697 * tree-ssa-operands.c: Likewise.
5698 * tree-ssa-phiopt.c: Likewise.
5699 * tree-ssa-phiprop.c: Likewise.
5700 * tree-ssa-pre.c: Likewise.
5701 * tree-ssa-propagate.c: Likewise.
5702 * tree-ssa-reassoc.c: Likewise.
5703 * tree-ssa-sccvn.c: Likewise.
5704 * tree-ssa-scopedtables.c: Likewise.
5705 * tree-ssa-sink.c: Likewise.
5706 * tree-ssa-strlen.c: Likewise.
5707 * tree-ssa-structalias.c: Likewise.
5708 * tree-ssa-tail-merge.c: Likewise.
5709 * tree-ssa-ter.c: Likewise.
5710 * tree-ssa-threadedge.c: Likewise.
5711 * tree-ssa-threadupdate.c: Likewise.
5712 * tree-ssa-uncprop.c: Likewise.
5713 * tree-ssa-uninit.c: Likewise.
5714 * tree-ssa.c: Likewise.
5715 * tree-ssanames.c: Likewise.
5716 * tree-stdarg.c: Likewise.
5717 * tree-streamer-in.c: Likewise.
5718 * tree-streamer-out.c: Likewise.
5719 * tree-streamer.c: Likewise.
5720 * tree-switch-conversion.c: Likewise.
5721 * tree-tailcall.c: Likewise.
5722 * tree-vect-data-refs.c: Likewise.
5723 * tree-vect-generic.c: Likewise.
5724 * tree-vect-loop-manip.c: Likewise.
5725 * tree-vect-loop.c: Likewise.
5726 * tree-vect-patterns.c: Likewise.
5727 * tree-vect-slp.c: Likewise.
5728 * tree-vect-stmts.c: Likewise.
5729 * tree-vectorizer.c: Likewise.
5730 * tree-vrp.c: Likewise.
5733 * ubsan.c: Likewise.
5734 * valtrack.c: Likewise.
5735 * value-prof.c: Likewise.
5736 * var-tracking.c: Likewise.
5737 * varasm.c: Likewise.
5738 * varpool.c: Likewise.
5739 * vmsdbgout.c: Likewise.
5740 * vtable-verify.c: Likewise.
5742 * wide-int-print.cc: Likewise.
5743 * wide-int-print.h: Likewise.
5744 * wide-int.cc: Likewise.
5745 * xcoffout.c: Likewise.
5746 * config/aarch64/aarch64-builtins.c: Likewise.
5747 * config/aarch64/aarch64.c: Likewise.
5748 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5749 * config/alpha/alpha.c: Likewise.
5750 * config/arc/arc.c: Likewise.
5751 * config/arm/aarch-common.c: Likewise.
5752 * config/arm/arm-builtins.c: Likewise.
5753 * config/arm/arm-c.c: Likewise.
5754 * config/arm/arm.c: Likewise.
5755 * config/avr/avr-c.c: Likewise.
5756 * config/avr/avr-log.c: Likewise.
5757 * config/avr/avr.c: Likewise.
5758 * config/bfin/bfin.c: Likewise.
5759 * config/c6x/c6x.c: Likewise.
5760 * config/cr16/cr16.c: Likewise.
5761 * config/cris/cris.c: Likewise.
5762 * config/darwin-c.c: Likewise.
5763 * config/darwin.c: Likewise.
5764 * config/default-c.c: Likewise.
5765 * config/epiphany/epiphany.c: Likewise.
5766 * config/epiphany/mode-switch-use.c: Likewise.
5767 * config/epiphany/resolve-sw-modes.c: Likewise.
5768 * config/fr30/fr30.c: Likewise.
5769 * config/frv/frv.c: Likewise.
5770 * config/ft32/ft32.c: Likewise.
5771 * config/glibc-c.c: Likewise.
5772 * config/h8300/h8300.c: Likewise.
5773 * config/i386/i386-c.c: Likewise.
5774 * config/i386/i386.c: Likewise.
5775 * config/i386/msformat-c.c: Likewise.
5776 * config/i386/winnt-cxx.c: Likewise.
5777 * config/i386/winnt-stubs.c: Likewise.
5778 * config/i386/winnt.c: Likewise.
5779 * config/ia64/ia64-c.c: Likewise.
5780 * config/ia64/ia64.c: Likewise.
5781 * config/iq2000/iq2000.c: Likewise.
5782 * config/lm32/lm32.c: Likewise.
5783 * config/m32c/m32c-pragma.c: Likewise.
5784 * config/m32c/m32c.c: Likewise.
5785 * config/m32r/m32r.c: Likewise.
5786 * config/m68k/m68k.c: Likewise.
5787 * config/mcore/mcore.c: Likewise.
5788 * config/mep/mep-pragma.c: Likewise.
5789 * config/mep/mep.c: Likewise.
5790 * config/microblaze/microblaze-c.c: Likewise.
5791 * config/microblaze/microblaze.c: Likewise.
5792 * config/mips/mips.c: Likewise.
5793 * config/mmix/mmix.c: Likewise.
5794 * config/mn10300/mn10300.c: Likewise.
5795 * config/moxie/moxie.c: Likewise.
5796 * config/msp430/msp430-c.c: Likewise.
5797 * config/msp430/msp430.c: Likewise.
5798 * config/nds32/nds32-cost.c: Likewise.
5799 * config/nds32/nds32-fp-as-gp.c: Likewise.
5800 * config/nds32/nds32-intrinsic.c: Likewise.
5801 * config/nds32/nds32-isr.c: Likewise.
5802 * config/nds32/nds32-md-auxiliary.c: Likewise.
5803 * config/nds32/nds32-memory-manipulation.c: Likewise.
5804 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5805 * config/nds32/nds32-predicates.c: Likewise.
5806 * config/nds32/nds32.c: Likewise.
5807 * config/nios2/nios2.c: Likewise.
5808 * config/nvptx/nvptx.c: Likewise.
5809 * config/pa/pa.c: Likewise.
5810 * config/pdp11/pdp11.c: Likewise.
5811 * config/rl78/rl78-c.c: Likewise.
5812 * config/rl78/rl78.c: Likewise.
5813 * config/rs6000/rs6000-c.c: Likewise.
5814 * config/rs6000/rs6000.c: Likewise.
5815 * config/rx/rx.c: Likewise.
5816 * config/s390/s390-c.c: Likewise.
5817 * config/s390/s390.c: Likewise.
5818 * config/sh/sh-c.c: Likewise.
5819 * config/sh/sh-mem.cc: Likewise.
5820 * config/sh/sh.c: Likewise.
5821 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5822 * config/sh/sh_treg_combine.cc: Likewise.
5823 * config/sol2-c.c: Likewise.
5824 * config/sol2-cxx.c: Likewise.
5825 * config/sol2-stubs.c: Likewise.
5826 * config/sol2.c: Likewise.
5827 * config/sparc/sparc-c.c: Likewise.
5828 * config/sparc/sparc.c: Likewise.
5829 * config/spu/spu-c.c: Likewise.
5830 * config/spu/spu.c: Likewise.
5831 * config/stormy16/stormy16.c: Likewise.
5832 * config/tilegx/mul-tables.c: Likewise.
5833 * config/tilegx/tilegx-c.c: Likewise.
5834 * config/tilegx/tilegx.c: Likewise.
5835 * config/tilepro/mul-tables.c: Likewise.
5836 * config/tilepro/tilepro-c.c: Likewise.
5837 * config/tilepro/tilepro.c: Likewise.
5838 * config/v850/v850-c.c: Likewise.
5839 * config/v850/v850.c: Likewise.
5840 * config/vax/vax.c: Likewise.
5841 * config/visium/visium.c: Likewise.
5842 * config/vms/vms-c.c: Likewise.
5843 * config/vms/vms.c: Likewise.
5844 * config/vxworks.c: Likewise.
5845 * config/winnt-c.c: Likewise.
5846 * config/xtensa/xtensa.c: Likewise.
5847 * common/config/bfin/bfin-common.c: Likewise.
5849 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
5851 * tree.h (tree_code_for_canonical_type_merging): New function.
5852 * tree.c (gimple_canonical_types_compatible_p): Use
5853 tree_code_for_canonical_type_merging..
5855 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5859 * doc/tm.texi: Regenerate.
5860 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
5861 * target.def (TARGET_RELAXED_ORDERING): Likewise.
5862 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
5863 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
5864 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
5865 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
5866 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
5867 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
5868 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
5870 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5872 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
5873 register fma steering pass.
5874 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
5875 AARCH64_TUNE_FMA_STEERING.
5877 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
5879 * tree.c (verify_type_variant): Verify that type and variant is
5881 (gimple_canonical_types_compatible_p): Look for main variants.
5883 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5885 * config.gcc (powerpc*-*-*): Add support for a new configure
5886 option --with-advance-toolchain=<xxx> which overrides using the
5887 default header files, libraries and dynamic linker.
5889 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
5890 specs to support the configure --with-advance-toolchain=<xxx>
5892 (INCLUDE_EXTRA_SPEC): Likewise.
5893 (LINK_OS_EXTRA_SPEC32): Likewise.
5894 (LINK_OK_EXTRA_SPEC64): Likewise.
5895 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
5896 (DYNAMIC_LINKER_PREFIX): Likewise.
5897 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
5899 (GLIBC_DYNAMIC_LINKER32): Likewise.
5900 (GLIBC_DYNAMIC_LINKER64): Likewise.
5901 (LINK_OS_LINUX_SPEC32): Likewise.
5902 (LINK_OS_LINUX_SPEC64): Likewise.
5904 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
5905 configuration option.
5907 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
5910 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
5911 to determine current function ABI.
5912 (ix86_function_value_regno_p): Ditto.
5914 2015-06-03 Martin Liska <mliska@suse.cz>
5916 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
5917 * bitmap.h (struct bitmap_usage): Likewise.
5918 * ggc-common.c (struct ggc_usage): Likewise.
5919 * mem-stats.h (struct mem_location): Likewise.
5920 (struct mem_usage): Likewise.
5921 * vec.c (struct vec_usage): Likewise.
5923 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
5925 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
5928 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
5930 * doc/plugins.texi (enum plugin_event): New event.
5931 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
5932 and PLUGIN_FINISH_FUNCTION.
5933 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
5934 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
5936 2015-06-03 Richard Biener <rguenther@suse.de>
5938 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5939 compute GROUP_GAP for the first element.
5940 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
5943 2015-06-03 Nick Clifton <nickc@redhat.com>
5945 * config/rl78/rl78-real.md: Add peepholes to avoid a register
5946 copy when calling a function.
5947 * config/rl78/rl78.c (need_to_save): Do not push the frame
5948 pointer in an interrupt handler prologue if it is never used.
5950 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5952 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
5954 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
5956 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
5957 reference when cloning alias node.
5959 2015-06-03 Martin Liska <mliska@suse.cz>
5961 * alloc-pool.h (struct pool_usage): Correct space padding.
5962 * ggc-page.c (ggc_print_statistics): Align columns in a report.
5963 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
5964 * tree.c (dump_tree_statistics): Align columns in a report.
5966 2015-06-03 Martin Liska <mliska@suse.cz>
5968 * alloc-pool.c (allocate_pool_descriptor): Remove.
5969 (struct pool_output_info): Likewise.
5970 (print_alloc_pool_statistics): Likewise.
5971 (dump_alloc_pool_statistics): Likewise.
5972 * alloc-pool.h (struct pool_usage): New struct.
5973 (pool_allocator::initialize): Change usage of memory statistics
5975 (pool_allocator::release): Likewise.
5976 (pool_allocator::allocate): Likewise.
5977 (pool_allocator::remove): Likewise.
5978 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
5979 for a pool allocator.
5980 * mem-stats.h (struct mem_location): Add new ctor.
5981 (struct mem_usage): Add counter for number of
5983 (mem_alloc_description::register_descriptor): New overload of
5984 * mem-stats.h (mem_location::to_string): New function.
5985 * bitmap.h (struct bitmap_usage): Use this new function.
5986 * ggc-common.c (struct ggc_usage): Likewise.
5989 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
5991 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
5992 of GCC_INSN_FLAGS_H block.
5994 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
5996 * explow.c (plus_constant): Update check after force_const_mem call
5997 to see if the value returned is not a NULL_RTX.
5999 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
6001 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
6002 remove instumentation thunks calling reachable functions.
6003 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
6004 * lto/lto-partition.c (privatize_symbol_name_1): New.
6005 (privatize_symbol_name): Privatize both decl and orig_decl
6006 names for instrumented functions.
6007 * cgraph.c (cgraph_node::verify_node): Add transparent
6008 alias chain check for instrumented node.
6010 2015-06-03 Marek Polacek <polacek@redhat.com>
6014 * tree.c (attribute_value_equal): Handle attribute format.
6015 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
6017 2015-06-03 Richard Biener <rguenther@suse.de>
6019 PR tree-optimization/63916
6020 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6021 Forward-propagate non-invariant addresses by splicing their
6022 reference ops if the result isn't going to be used by PRE.
6023 (vn_reference_lookup_3): Remove pointless assert.
6025 2015-06-03 Richard Biener <rguenther@suse.de>
6027 PR tree-optimization/66375
6028 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
6029 add to the evolution before following SSA edges.
6031 2015-06-03 Bin Cheng <bin.cheng@arm.com>
6033 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
6034 (dump_use, dump_cand, find_induction_variables): Pass new argument
6036 (record_use): Preserve the ssa name information in IV.
6038 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
6040 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
6042 (add_mode_tests): Don't add mode tests if the predicate only
6043 accepts scalar constant integers. Otherwise, allow the mode
6044 of "op" to be VOIDmode if the predicate does accept such integers.
6046 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
6049 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
6050 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
6051 (aarch64_secondary_reload): Likewise
6052 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
6054 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
6057 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
6058 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6061 * cprop.c (try_replace_reg): Check cost of constants before propagating.
6063 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6065 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
6066 provide access to the IBM extended double floating point mode if
6067 long double is IEEE 128-bit floating point.
6068 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
6069 point if long double is the IBM extended double type.
6071 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
6072 enable adding IEEE 128-bit floating point support.
6073 (-mfloat128-software): Likewise.
6074 (-mfloat128-sw): Likewise.
6076 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
6077 128-bit floating point types to occupy any register if
6078 -mlong-double-64. Do not allow use of IFmode/KFmode unless
6079 -mfloat128-software is enabled.
6080 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
6082 (rs6000_option_override_internal): Add -mfloat128-* support.
6083 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
6085 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
6086 and float128 type nodes.
6087 (ieee128_float_type_node): Likewise.
6088 (ibm128_float_type_node): Likewise.
6090 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
6093 * config/aarch64/geniterators.sh: Rewrite in awk.
6095 2015-06-02 Martin Liska <mliska@suse.cz>
6097 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
6098 values to avoid -Wmaybe-uninitialized errors.
6100 2015-06-02 Richard Biener <rguenther@suse.de>
6103 * dwarf2out.c (lookup_context_die): New function.
6104 (resolve_addr): Avoid forcing a full DIE for the
6105 target of a DW_TAG_GNU_call_site during late compilation.
6106 Instead create a stub DIE without a type if we have a
6107 context DIE present.
6109 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
6111 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
6113 2015-06-02 Bin Cheng <bin.cheng@arm.com>
6115 PR tree-optimization/48052
6116 * cfgloop.h (struct control_iv): New.
6117 (struct loop): New field control_ivs.
6118 * tree-ssa-loop-niter.c : Include "stor-layout.h".
6119 (number_of_iterations_lt): Set no_overflow information.
6120 (number_of_iterations_exit): Init control iv in niter struct.
6121 (record_control_iv): New.
6122 (estimate_numbers_of_iterations_loop): Call record_control_iv.
6123 (loop_exits_before_overflow): New. Interface factored out of
6124 scev_probably_wraps_p.
6125 (scev_probably_wraps_p): Factor loop niter related code into
6126 loop_exits_before_overflow.
6127 (free_numbers_of_iterations_estimates_loop): Free control ivs.
6128 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
6130 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
6132 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
6133 the target doesn't belong to the current function.
6135 2015-06-02 Marek Polacek <polacek@redhat.com>
6138 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
6139 get_maxval_strlen does not produce an INTEGER_CST.
6141 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
6143 * config/arc/constraints.md: Use lower-case names in match_code.
6144 * config/mmix/constraints.md: Likewise.
6146 2015-06-02 Richard Biener <rguenther@suse.de>
6148 PR tree-optimization/65961
6149 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
6150 check and clarify dump message.
6151 (vect_build_slp_tree): If all children are built up from scalars
6152 build up the parent from scalars instead.
6153 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
6155 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6158 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
6159 instead of print ... .
6161 2015-06-02 Alan Modra <amodra@gmail.com>
6163 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
6166 2015-06-02 Bin Cheng <bin.cheng@arm.com>
6168 PR tree-optimization/52563
6169 PR tree-optimization/62173
6170 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
6171 (alloc_iv, set_iv): New parameter.
6172 (determine_biv_step): Delete.
6173 (find_bivs): Inline original determine_biv_step. Pass new
6175 (idx_find_step): Use no_overflow information for conversion.
6176 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
6177 resolve_mixers handle folded_casts.
6178 (instantiate_scev_name): Change bool parameter to bool pointer.
6179 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
6180 (instantiate_array_ref, instantiate_scev_not): Ditto.
6181 (instantiate_scev_3, instantiate_scev_2): Ditto.
6182 (instantiate_scev_1, instantiate_scev_r): Ditto.
6183 (instantiate_scev_convert, ): Change parameter. Pass argument
6184 to chrec_convert_aggressive.
6185 (instantiate_scev): Change argument.
6186 (resolve_mixers): New parameter and set it.
6187 (scev_const_prop): New argument.
6188 * tree-scalar-evolution.h (resolve_mixers): New parameter.
6189 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
6191 (chrec_convert): New parameter. Move definition below.
6192 (chrec_convert_aggressive): New parameter and set it. Call
6193 convert_affine_scev.
6194 * tree-chrec.h (chrec_convert): New parameter.
6195 (chrec_convert_aggressive): Ditto.
6197 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
6199 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
6200 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
6201 the LHS of a no-return call if its type has variable size.
6202 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6203 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
6205 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
6207 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
6208 * config.in: Regenerate.
6210 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
6212 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6213 consecutive accesses within outer-loop with force_vectorize
6214 for references with zero step in inner-loop.
6216 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
6218 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
6219 rather than from gcc/build directory.
6221 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
6224 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
6225 for __sync memory models, emit initial loads and final barriers as
6228 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
6231 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
6232 (aarch64_split_atomic_op): Check for __sync memory models, emit
6233 appropriate initial loads and final barriers.
6235 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
6237 * Makefile.in: Fix gcov dependencies that should
6238 not point to a build folder.
6240 2015-06-01 Richard Biener <rguenther@suse.de>
6243 2015-05-29 Richard Biener <rguenther@suse.de>
6245 PR tree-optimization/66314
6246 * tree-ssa-threadupdate.c (create_block_for_threading): Add
6247 parameter that says which loop the new block belongs to.
6248 (ssa_create_duplicates): Blocks duplicated for the threaded
6249 path belong to the loop of the thread destination.
6251 2015-06-01 Martin Liska <mliska@suse.cz>
6253 * sched-deps.c: Include pool-alloc.h before
6254 cselib.h header file is included.
6256 2015-06-01 Richard Biener <rguenther@suse.de>
6258 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
6261 2015-06-01 Martin Liska <mliska@suse.cz>
6263 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
6264 a function local variable.
6266 2015-06-01 Martin Liska <mliska@suse.cz>
6268 * alloc-pool.c (create_alloc_pool): Remove.
6269 (empty_alloc_pool): Likewise.
6270 (free_alloc_pool): Likewise.
6271 (free_alloc_pool_if_empty): Likewise.
6272 (pool_alloc): Likewise.
6273 (pool_free): Likewise.
6274 * alloc-pool.h: Remove old declarations.
6276 2015-06-01 Martin Liska <mliska@suse.cz>
6278 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
6279 (ira_create_object): Likewise.
6280 (ira_create_allocno): Likewise.
6281 (ira_create_live_range): Likewise.
6282 (copy_live_range): Likewise.
6283 (ira_finish_live_range): Likewise.
6284 (ira_free_allocno_costs): Likewise.
6285 (finish_allocno): Likewise.
6286 (finish_allocnos): Likewise.
6287 (initiate_prefs): Likewise.
6288 (ira_create_pref): Likewise.
6289 (finish_pref): Likewise.
6290 (finish_prefs): Likewise.
6291 (initiate_copies): Likewise.
6292 (ira_create_copy): Likewise.
6293 (finish_copy): Likewise.
6294 (finish_copies): Likewise.
6295 (finish_prefs): Likewise.
6297 2015-06-01 Martin Liska <mliska@suse.cz>
6299 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
6300 (allocate_and_init_ipcp_value): Likewise.
6301 (ipcp_lattice::add_value): Likewise.
6302 (merge_agg_lats_step): Likewise.
6303 (ipcp_driver): Likewise.
6304 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
6305 (ipa_free_all_structures_after_iinln): Likewise.
6306 * ipa-prop.h: Likewise.
6308 2015-06-01 Martin Liska <mliska@suse.cz>
6310 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
6312 (set_hint_predicate): Likewise.
6313 (inline_summary_alloc): Likewise.
6314 (reset_inline_edge_summary): Likewise.
6315 (reset_inline_summary): Likewise.
6316 (set_cond_stmt_execution_predicate): Likewise.
6317 (set_switch_stmt_execution_predicate): Likewise.
6318 (compute_bb_predicates): Likewise.
6319 (estimate_function_body_sizes): Likewise.
6320 (inline_free_summary): Likewise.
6322 2015-06-01 Martin Liska <mliska@suse.cz>
6324 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
6325 (ipa_edge_duplication_hook): Likewise.
6326 (ipa_free_all_structures_after_ipa_cp): Likewise.
6327 (ipa_free_all_structures_after_iinln): Likewise.
6329 2015-06-01 Martin Liska <mliska@suse.cz>
6331 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
6332 (ipa_profile_generate_summary): Likewise.
6333 (ipa_profile_read_summary): Likewise.
6334 (ipa_profile): Likewise.
6336 2015-06-01 Martin Liska <mliska@suse.cz>
6338 * tree-ssa-structalias.c (new_var_info): Use new type-based
6340 (new_constraint): Likewise.
6341 (init_alias_vars): Likewise.
6342 (delete_points_to_sets): Likewise.
6344 2015-06-01 Martin Liska <mliska@suse.cz>
6346 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
6347 (free_strinfo): Likewise.
6348 (pass_strlen::execute): Likewise.
6350 2015-06-01 Martin Liska <mliska@suse.cz>
6352 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
6354 (vn_reference_insert_pieces): Likewise.
6355 (vn_phi_insert): Likewise.
6356 (visit_reference_op_call): Likewise.
6357 (copy_phi): Likewise.
6358 (copy_reference): Likewise.
6359 (process_scc): Likewise.
6360 (allocate_vn_table): Likewise.
6361 (free_vn_table): Likewise.
6363 2015-06-01 Martin Liska <mliska@suse.cz>
6365 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
6367 (add_repeat_to_ops_vec): Likewise.
6368 (get_ops): Likewise.
6369 (maybe_optimize_range_tests): Likewise.
6370 (init_reassoc): Likewise.
6371 (fini_reassoc): Likewise.
6373 2015-06-01 Martin Liska <mliska@suse.cz>
6375 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
6377 (bitmap_set_new): Likewise.
6378 (get_or_alloc_expr_for_constant): Likewise.
6379 (get_or_alloc_expr_for): Likewise.
6380 (phi_translate_1): Likewise.
6381 (compute_avail): Likewise.
6382 (init_pre): Likewise.
6383 (fini_pre): Likewise.
6385 2015-06-01 Martin Liska <mliska@suse.cz>
6387 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
6388 (delete_dep_node): Likewise.
6389 (create_deps_list): Likewise.
6390 (free_deps_list): Likewise.
6391 (sched_deps_init): Likewise.
6392 (sched_deps_finish): Likewise.
6394 2015-06-01 Martin Liska <mliska@suse.cz>
6396 * regcprop.c (free_debug_insn_changes): Use new type-based
6398 (replace_oldest_value_reg): Likewise.
6399 (pass_cprop_hardreg::execute): Likewise.
6401 2015-06-01 Martin Liska <mliska@suse.cz>
6403 * ira-build.c (initiate_cost_vectors): Use new type-based
6405 (ira_allocate_cost_vector): Likewise.
6406 (ira_free_cost_vector): Likewise.
6407 (finish_cost_vectors): Likewise.
6409 2015-06-01 Martin Liska <mliska@suse.cz>
6411 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
6413 (free_sched_pools): Likewise.
6414 * sel-sched-ir.h (_list_alloc): Likewise.
6415 (_list_remove): Likewise.
6417 2015-06-01 Martin Liska <mliska@suse.cz>
6419 * stmt.c (add_case_node): Use new type-based pool allocator.
6420 (expand_case): Likewise.
6421 (expand_sjlj_dispatch_table): Likewise.
6423 2015-06-01 Martin Liska <mliska@suse.cz>
6425 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
6426 (free_bb): Likewise.
6427 (pass_cse_reciprocals::execute): Likewise.
6429 2015-06-01 Martin Liska <mliska@suse.cz>
6431 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
6432 (sra_deinitialize) Likewise.
6433 (create_access_1) Likewise.
6434 (build_accesses_from_assign) Likewise.
6435 (create_artificial_child_access) Likewise.
6437 2015-06-01 Martin Liska <mliska@suse.cz>
6439 * dse.c (get_group_info):Use new type-based pool allocator.
6440 (dse_step0) Likewise.
6441 (free_store_info) Likewise.
6442 (delete_dead_store_insn) Likewise.
6443 (free_read_records) Likewise.
6444 (record_store) Likewise.
6445 (replace_read) Likewise.
6446 (check_mem_read_rtx) Likewise.
6447 (scan_insn) Likewise.
6448 (dse_step1) Likewise.
6449 (dse_step7) Likewise.
6451 2015-06-01 Martin Liska <mliska@suse.cz>
6453 * df-scan.c (struct df_scan_problem_data):Use new type-based
6455 (df_scan_free_internal) Likewise.
6456 (df_scan_alloc) Likewise.
6457 (df_grow_reg_info) Likewise.
6458 (df_free_ref) Likewise.
6459 (df_insn_create_insn_record) Likewise.
6460 (df_mw_hardreg_chain_delete) Likewise.
6461 (df_insn_info_delete) Likewise.
6462 (df_free_collection_rec) Likewise.
6463 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
6464 (df_sort_and_compress_mws) Likewise.
6465 (df_ref_create_structure) Likewise.
6466 (df_ref_record) Likewise.
6468 2015-06-01 Martin Liska <mliska@suse.cz>
6470 * df-problems.c (df_chain_create):Use new type-based pool allocator.
6471 (df_chain_unlink_1) Likewise.
6472 (df_chain_unlink) Likewise.
6473 (df_chain_remove_problem) Likewise.
6474 (df_chain_alloc) Likewise.
6475 (df_chain_free) Likewise.
6476 * df.h (struct dataflow) Likewise.
6478 2015-06-01 Martin Liska <mliska@suse.cz>
6480 * cselib.c (new_elt_list):Use new type-based pool allocator.
6481 (new_elt_loc_list) Likewise.
6482 (unchain_one_elt_list) Likewise.
6483 (unchain_one_elt_loc_list) Likewise.
6484 (unchain_one_value) Likewise.
6485 (new_cselib_val) Likewise.
6486 (cselib_init) Likewise.
6487 (cselib_finish) Likewise.
6489 2015-06-01 Martin Liska <mliska@suse.cz>
6491 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
6492 (sh_reorg) Likewise.
6494 2015-06-01 Martin Liska <mliska@suse.cz>
6496 * cfg.c (initialize_original_copy_tables):Use new type-based
6498 (free_original_copy_tables) Likewise.
6499 (copy_original_table_clear) Likewise.
6500 (copy_original_table_set) Likewise.
6502 2015-06-01 Martin Liska <mliska@suse.cz>
6504 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
6506 (asan_mem_ref_new) Likewise.
6507 (free_mem_ref_resources) Likewise.
6509 2015-06-01 Martin Liska <mliska@suse.cz>
6511 * var-tracking.c (variable_htab_free):Use new type-based
6513 (attrs_list_clear) Likewise.
6514 (attrs_list_insert) Likewise.
6515 (attrs_list_copy) Likewise.
6516 (shared_hash_unshare) Likewise.
6517 (shared_hash_destroy) Likewise.
6518 (unshare_variable) Likewise.
6519 (var_reg_delete_and_set) Likewise.
6520 (var_reg_delete) Likewise.
6521 (var_regno_delete) Likewise.
6522 (drop_overlapping_mem_locs) Likewise.
6523 (variable_union) Likewise.
6524 (insert_into_intersection) Likewise.
6525 (canonicalize_values_star) Likewise.
6526 (variable_merge_over_cur) Likewise.
6527 (dataflow_set_merge) Likewise.
6528 (remove_duplicate_values) Likewise.
6529 (variable_post_merge_new_vals) Likewise.
6530 (dataflow_set_preserve_mem_locs) Likewise.
6531 (dataflow_set_remove_mem_locs) Likewise.
6532 (variable_from_dropped) Likewise.
6533 (variable_was_changed) Likewise.
6534 (set_slot_part) Likewise.
6535 (clobber_slot_part) Likewise.
6536 (delete_slot_part) Likewise.
6537 (loc_exp_insert_dep) Likewise.
6538 (notify_dependents_of_changed_value) Likewise.
6539 (emit_notes_for_differences_1) Likewise.
6540 (vt_emit_notes) Likewise.
6541 (vt_initialize) Likewise.
6542 (vt_finalize) Likewise.
6544 2015-06-01 Martin Liska <mliska@suse.cz>
6546 * ira-color.c (init_update_cost_records):Use new type-based
6548 (get_update_cost_record) Likewise.
6549 (free_update_cost_record_list) Likewise.
6550 (finish_update_cost_records) Likewise.
6551 (initiate_cost_update) Likewise.
6553 2015-06-01 Martin Liska <mliska@suse.cz>
6555 * lra.c (init_insn_regs): Use new type-based pool allocator.
6556 (new_insn_reg) Likewise.
6557 (free_insn_reg) Likewise.
6558 (free_insn_regs) Likewise.
6559 (finish_insn_regs) Likewise.
6560 (init_insn_recog_data) Likewise.
6561 (init_reg_info) Likewise.
6562 (finish_reg_info) Likewise.
6563 (lra_free_copies) Likewise.
6564 (lra_create_copy) Likewise.
6565 (invalidate_insn_data_regno_info) Likewise.
6567 2015-06-01 Martin Liska <mliska@suse.cz>
6569 * lra-lives.c (free_live_range): Use new type-based pool allocator.
6570 (free_live_range_list) Likewise.
6571 (create_live_range) Likewise.
6572 (copy_live_range) Likewise.
6573 (lra_merge_live_ranges) Likewise.
6574 (remove_some_program_points_and_update_live_ranges) Likewise.
6575 (lra_live_ranges_init) Likewise.
6576 (lra_live_ranges_finish) Likewise.
6578 2015-06-01 Martin Liska <mliska@suse.cz>
6580 * et-forest.c (et_new_occ): Use new type-based pool allocator.
6581 (et_new_tree): Likewise.
6582 (et_free_tree): Likewise.
6583 (et_free_tree_force): Likewise.
6584 (et_free_pools): Likewise.
6585 (et_split): Likewise.
6587 2015-06-01 Martin Liska <mliska@suse.cz>
6589 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
6591 * alloc-pool.h (pool_allocator::pool_allocator): New function.
6592 (pool_allocator::release): Likewise.
6593 (inline pool_allocator::release_if_empty): Likewise.
6594 (inline pool_allocator::~pool_allocator): Likewise.
6595 (pool_allocator::allocate): Likewise.
6596 (pool_allocator::remove): Likewise.
6598 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
6600 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
6603 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
6605 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
6607 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
6608 (arm_macro_fusion_p): Likewise.
6609 (arm_macro_fusion_pair_p): Likewise.
6611 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
6613 * config/aarch64/aarch64-protos.h (tune_params): Rename
6614 fuseable_ops to fusible_ops.
6615 * config/aarch64/aarch64.c (generic_tunings): Rename
6616 fuseable_ops to fusible_ops.
6617 (cortexa53_tunings): Likewise.
6618 (cortexa57_tunings): Likewise.
6619 (thunderx_tunings): Likewise.
6620 (xgene1_tunings): Likewise.
6621 (aarch64_macro_fusion_p): Likewise.
6622 (aarch64_macro_fusion_pair_p): Likewise.
6624 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
6626 * config/s390/driver-native.c: New file.
6627 * config/s390/x-native: New file.
6628 * config.host: Add new files for s390.
6629 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
6631 * config.gcc: Likewise.
6632 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
6633 * config/s390/s390-opts.h (enum processor_type): Ditto.
6634 * config/s390/s390.c (s390_option_override): Catch unhandled
6637 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
6640 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
6641 redirection for instrumented calls.
6642 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
6643 (append_compiler_options): Append -fcheck-pointer-bounds.
6644 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
6645 (chkp_redirect_edge): New.
6646 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
6647 (chkp_redirect_edge): New.
6649 2015-06-01 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/66280
6652 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
6655 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6657 * config/aarch64/aarch64.md
6658 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
6661 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
6663 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
6664 Remove obsolete kludge.
6666 2015-06-01 Richard Biener <rguenther@suse.de>
6668 * tree-ssa-reassoc.c (get_rank): Simplify.
6670 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
6672 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
6673 * configure: Regenerated.
6675 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
6677 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
6678 issue (add space between string literal and macro).
6679 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
6681 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
6683 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
6684 implict or explicit -fPIE or -fpie.
6686 2015-05-30 Mike Frysinger <vapier@gentoo.org>
6688 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
6690 2015-05-28 DJ Delorie <dj@redhat.com>
6692 * expmed.c (extract_bit_field_1): Avoid clobbering a
6693 yet-to-be-used base/index register.
6695 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
6697 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
6698 (alias_stats): Add num_universal.
6699 (alias_set_subset_of): Special case pointers; be ready for NULL
6701 (alias_sets_conflict_p): Special case pointers; be ready for NULL
6703 (init_alias_set_entry): Break out from ...
6704 (record_alias_subset): ... here; propagate new fields;
6705 allocate children only when really needed.
6706 (get_alias_set): Do less generous pointer globbing.
6707 (dump_alias_stats_in_alias_c): Update statistics.
6709 2015-05-30 Alan Modra <amodra@gmail.com>
6711 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
6712 correct block for use of r12.
6713 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
6715 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6718 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
6721 2015-05-29 Jakub Jelinek <jakub@redhat.com>
6723 PR tree-optimization/66142
6724 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
6725 virtual phis that feed themselves.
6727 2015-05-29 Richard Biener <rguenther@suse.de>
6729 PR tree-optimization/66314
6730 * tree-ssa-threadupdate.c (create_block_for_threading): Add
6731 parameter that says which loop the new block belongs to.
6732 (ssa_create_duplicates): Blocks duplicated for the threaded
6733 path belong to the loop of the thread destination.
6735 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6737 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
6738 to cleanup-saved-temps.
6739 * doc/sourcebuild.texi (Clean up generated test files): Expand
6741 (dg-keep-saved-temps): Document new proc.
6742 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
6743 cleanup-saved-temps): Remove.
6745 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
6747 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
6749 * configure: Regenerate.
6751 2015-05-28 Mike Frysinger <vapier@gentoo.org>
6753 * config/nios2/linux.h (CPP_SPEC): Define.
6755 2015-05-28 Mike Frysinger <vapier@gentoo.org>
6757 * config/microblaze/linux.h (CPP_SPEC): Define.
6759 2015-05-28 Mike Frysinger <vapier@gentoo.org>
6761 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
6762 -pthread is specified.
6764 2015-05-28 Richard Biener <rguenther@suse.de>
6766 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
6767 (vect_fixup_scalar_cycles_with_patterns): Likewise.
6768 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
6769 after pattern recog.
6770 (vect_create_epilog_for_reduction): Properly handle reductions
6772 (vectorizable_reduction): Likewise.
6773 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
6775 (vect_get_constant_vectors): Create the correct number of
6776 initial values for reductions.
6777 (vect_schedule_slp_instance): Handle reduction chains that are
6778 type changing properly.
6779 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
6781 2015-05-28 Richard Biener <rguenther@suse.de>
6783 PR tree-optimization/66142
6784 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
6785 values better in memcpy destination handling. Handle non-aliasing
6788 2015-05-28 Lawrence Velázquez <vq@larryv.me>
6791 * config/darwin-c.c (version_components): New global enum.
6792 (parse_version, version_as_legacy_macro)
6793 (version_as_modern_macro, macosx_version_as_macro): New functions.
6794 (version_as_macro): Remove.
6795 (darwin_cpp_builtins): Use new function.
6797 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
6799 * builtins.c (expand_builtin_acc_on_device): Mark parameters
6800 with ATTRIBUTE_UNUSED.
6802 2015-05-28 Julian Brown <julian@codesourcery.com>
6806 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
6807 sequence for !ACCEL_COMPILER.
6809 2015-05-28 Nick Clifton <nickc@redhat.com>
6811 * config/rx/rx.c (push_regs): New function. Extracts code from...
6812 (rx_expand_prologue): ... here. Use push_regs to push even small
6814 (pop_regs): New function.
6815 (rx_expand_epilogue): Use pop_regs to pop even small spans of
6818 2015-05-28 Richard Biener <rguenther@suse.de>
6820 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
6822 (SLP_INSTANCE_BODY_COST_VEC): Remove.
6823 (vect_update_slp_costs_according_to_vf): Likewise.
6824 (vect_slp_analyze_operations): Update prototype.
6825 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
6826 vect_update_slp_costs_according_to_vf, adjust.
6827 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
6828 (vect_analyze_slp_cost_1): Likewise.
6829 (vect_analyze_slp_cost): Likewise. Properly deal with
6830 widening reduction ops. Commit body costs.
6831 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
6832 cost for loops from here.
6833 (vect_slp_analyze_operations): But do it from here when
6834 the vectorization factor is known and stmts are analyzed.
6835 (vect_bb_vectorization_profitable_p): Simplify.
6836 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
6837 (vect_update_slp_costs_according_to_vf): Remove.
6839 2015-05-27 Magnus Granberg <zorry@gentoo.org>
6840 H.J. Lu <hongjiu.lu@intel.com>
6842 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
6843 (BUILD_CFLAGS): Likewise.
6844 (BUILD_CXXFLAGS): Likewise.
6845 (LINKER): Add @NO_PIE_FLAG@.
6846 (BUILD_LDFLAGS): Likewise.
6847 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
6848 --enable-default-pie.
6849 * common.opt (fPIE): Initialize to -1.
6851 (no-pie): New option.
6852 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
6853 * configure.ac: Add --enable-default-pie.
6854 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
6855 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
6856 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
6857 * gcc.c (NO_PIE_SPEC): New.
6858 (PIE_SPEC): Likewise.
6859 (NO_FPIE1_SPEC): Likewise.
6860 (FPIE1_SPEC): Likewise.
6861 (NO_FPIE2_SPEC): Likewise.
6862 (FPIE2_SPEC): Likewise.
6863 (NO_FPIE2_SPEC): Likewise.
6864 (FPIE_SPEC): Likewise.
6865 (NO_FPIE_SPEC): Likewise.
6866 (NO_FPIC1_SPEC): Likewise.
6867 (FPIC1_SPEC): Likewise.
6868 (NO_FPIC2_SPEC): Likewise.
6869 (FPIC2_SPEC): Likewise.
6870 (NO_FPIC2_SPEC): Likewise.
6871 (FPIC_SPEC): Likewise.
6872 (NO_FPIC_SPEC): Likewise.
6873 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
6874 (FPIE1_OR_FPIC1_SPEC): Likewise.
6875 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
6876 (FPIE2_OR_FPIC2_SPEC): Likewise.
6877 (NO_FPIE_AND_FPIC_SPEC): Likewise.
6878 (FPIE_OR_FPIC_SPEC): Likewise.
6879 (LD_PIE_SPEC): Likewise.
6880 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
6881 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
6882 * config/darwin.h (PIE_SPEC): Renamed to ...
6883 (DARWIN_PIE_SPEC): This.
6884 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
6885 * config/darwin9.h (PIE_SPEC): Renamed to ...
6886 (DARWIN_PIE_SPEC): This.
6887 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
6888 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6889 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
6890 FPIE2_OR_FPIC2_SPEC.
6891 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6892 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6893 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
6894 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6895 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6896 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6897 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
6898 * config/m32r/m32r.h (ASM_SPEC): Likewise.
6899 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
6900 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6901 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
6902 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
6903 * config/sparc/linux.h (ASM_SPEC): Likewise.
6904 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6905 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
6906 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
6907 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6908 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6909 * config/sparc/sparc.h (ASM_SPEC): Likewise.
6910 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
6911 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
6912 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
6913 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
6914 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
6915 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
6916 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
6917 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
6918 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
6919 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
6920 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
6921 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
6922 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6923 * config/vax/linux.h (ASM_SPEC): Likewise.
6924 * doc/install.texi: Document --enable-default-pie.
6925 * doc/invoke.texi: Document -no-pie.
6926 * config.in: Regenerated.
6927 * configure: Likewise.
6929 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6931 PR rtl-optimization/66168
6932 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
6933 can_move_invariant_reg.
6935 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
6938 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
6939 REG_EQUAL note when doing insert.
6941 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
6942 instead of "%d" for 'o' operand.
6944 2015-05-27 Nathan Sidwell <nathan@acm.org>
6947 * tree.c (build_pointer_type_for_mode): Canonical type does not
6948 inherit can_alias_all.
6949 (build_reference_type_for_mode): Likewise.
6951 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
6953 * expr.h (array_at_struct_end_p): Move to...
6954 (array_ref_element_size): Likewise.
6955 (component_ref_field_offset): Likewise.
6956 * tree.h (array_ref_element_size): ...here.
6957 (array_at_struct_end_p): Likewise.
6958 (component_ref_field_offset): Likewise.
6959 * expr.c (array_ref_element_size): Move to...
6960 (array_ref_low_bound): Likewise.
6961 (array_at_struct_end_p): Likewise.
6962 (array_ref_up_bound): Likewise.
6963 (component_ref_field_offset): Likewise.
6964 * tree.c (array_ref_element_size): ...here.
6965 (array_ref_low_bound): Likewise.
6966 (array_ref_up_bound): Likewise.
6967 (array_at_struct_end_p): Likewise.
6968 (component_ref_field_offset): Likewise.
6970 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
6971 Szabolcs Nagy <szabolcs.nagy@arm.com>
6973 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
6975 2015-05-27 Jason Merrill <jason@redhat.com>
6978 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
6979 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
6980 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
6982 2015-05-22 Aditya Kumar <hiraditya@msn.com>
6984 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
6987 * statistics.c (statistics_fini_pass): Print pass name.
6989 2015-05-27 Richard Biener <rguenther@suse.de>
6991 PR tree-optimization/66272
6993 2014-08-15 Richard Biener <rguenther@suse.de>
6995 PR tree-optimization/62031
6996 * tree-data-ref.c (dr_analyze_indices): Do not set
6997 DR_UNCONSTRAINED_BASE.
6998 (dr_may_alias_p): All indirect accesses have to go the
6999 formerly DR_UNCONSTRAINED_BASE path.
7000 * tree-data-ref.h (struct indices): Remove
7001 unconstrained_base member.
7002 (DR_UNCONSTRAINED_BASE): Remove.
7004 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
7006 * dwarf2out.c: Remove block_map.
7007 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
7008 (gen_lexical_block_die): Same.
7009 (dwarf2out_function_decl): Remove block_map use.
7010 (dwarf2out_c_finalize): Same.
7011 * tree-core.h (struct tree_block): Add die field.
7012 * tree.h (BLOCK_DIE): New.
7014 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7017 * expr.c (memory_load_overlap): New function.
7018 (emit_push_insn): When pushing partial args to the stack would
7019 clobber the register part load the overlapping part into a pseudo
7020 and put it into the hard reg after pushing. Change return type
7021 to bool. Add bool argument.
7022 * expr.h (emit_push_insn): Change return type to bool.
7024 * calls.c (expand_call): Cancel sibcall optimization when encountering
7025 partial argument on targets with ARGS_GROW_DOWNWARD and
7026 !STACK_GROWS_DOWNWARD.
7027 (emit_library_call_value_1): Update callsite of emit_push_insn.
7028 (store_one_arg): Likewise.
7030 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
7032 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
7034 2015-05-27 Martin Liska <mliska@suse.cz>
7036 * Makefile.in: Add additional dependencies related to memory report
7038 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
7039 * bitmap.c (struct bitmap_descriptor_d): Remove.
7040 (struct loc): Likewise.
7041 (struct bitmap_desc_hasher): Likewise.
7042 (bitmap_desc_hasher::hash): Likewise.
7043 (bitmap_desc_hasher::equal): Likewise.
7044 (get_bitmap_descriptor): Likewise.
7045 (bitmap_register): User new memory descriptor API.
7046 (register_overhead): Likewise.
7047 (bitmap_find_bit): Register nsearches and search_iter statistics.
7048 (struct bitmap_output_info): Remove.
7049 (print_statistics): Likewise.
7050 (dump_bitmap_statistics): Use new memory descriptor.
7051 * bitmap.h (struct bitmap_usage): New class.
7052 * genmatch.c: Extend header file inclusion.
7053 * genpreds.c: Likewise.
7054 * ggc-common.c (struct ggc_usage): New class.
7055 (struct ggc_loc_desc_hasher): Remove.
7056 (ggc_loc_desc_hasher::hash): Likewise.
7057 (ggc_loc_desc_hasher::equal): Likewise.
7058 (struct ggc_ptr_hash_entry): Likewise.
7059 (struct ptr_hash_hasher): Likewise.
7060 (ptr_hash_hasher::hash): Likewise.
7061 (ptr_hash_hasher::equal): Likewise.
7062 (make_loc_descriptor): Likewise.
7063 (ggc_prune_ptr): Likewise.
7064 (dump_ggc_loc_statistics): Use new memory descriptor.
7065 (ggc_record_overhead): Likewise.
7066 (ggc_free_overhead): Likewise.
7067 (final_cmp_statistic): Remove.
7068 (cmp_statistic): Likewise.
7069 (ggc_add_statistics): Liekwise.
7070 (ggc_prune_overhead_list): Likewise.
7071 * hash-map-traits.h: New file.
7072 * hash-map.h (struct default_hashmap_traits): Move the traits to a
7073 separate header file.
7074 * hash-set.h: Pass memory statistics info to ctor.
7075 * hash-table.c (void dump_hash_table_loc_statistics): New function.
7076 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
7077 (hash_table::~hash_table): Register memory release operation.
7078 (hash_table::alloc_entries): Handle memory allocation operation.
7079 (hash_table::expand): Likewise.
7080 * inchash.c (iterative_hash_hashval_t): Move implementation to header
7082 (iterative_hash_host_wide_int): Likewise.
7083 * inchash.h (class hash): Likewise.
7084 * mem-stats-traits.h: New file.
7085 * mem-stats.h: New file.
7086 (mem_location): Add new class.
7087 (mem_usage): Likewise.
7088 (mem_alloc_description): Likewise.
7089 * sese.c: Add new header file inclusision.
7090 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
7092 * tree-sra.c: Add new header file inclusision.
7093 * vec.c (struct vec_descriptor): Remove.
7094 (hash_descriptor): Likewise.
7095 (struct vec_usage): Likewise.
7096 (struct ptr_hash_entry): Likewise.
7097 (hash_ptr): Likewise.
7099 (vec_prefix::register_overhead): Use new memory descriptor API.
7100 (vec_prefix::release_overhead): Likewise.
7101 (add_statistics): Remove.
7102 (dump_vec_loc_statistics): Use new memory descriptor API.
7103 * vec.h (struct vec_prefix): Likewise.
7104 (va_heap::reserve): Likewise.
7105 (va_heap::release): Likewise.
7106 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
7108 2015-05-27 Richard Biener <rguenther@suse.de>
7110 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
7111 earlier and remove ??? comment.
7112 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
7113 and got called from loop analysis bail out. Always pass the SLP
7114 node to the vectorizable_* functions.
7115 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
7116 the premature SLP check here.
7117 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
7119 (vect_detect_hybrid_slp_1): Likewise.
7121 2015-05-26 Jeff Law <law@redhat.com>
7123 * combine.c (find_split_point): Verify that the shift count is a
7124 constant when choosing (plus (ashift ...)) as a split point.
7126 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
7127 No functional changes.
7129 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
7131 * ipa-polymorphic-call.c
7132 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
7133 case when call target is already known.
7135 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
7138 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
7139 take into account the case that operands[1] and operands[2]
7140 are the same register.
7142 2015-05-26 Michael Matz <matz@suse.de>
7146 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
7148 (vect_create_vectorized_demotion_stmts): Always set
7149 STMT_VINFO_VEC_STMT, also with SLP.
7150 (vectorizable_store): Handle strided group stores.
7152 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7155 * config/aarch64/aarch64.md
7156 (*adds_shift_imm_<mode>): New pattern.
7157 (*subs_shift_imm_<mode>): Likewise.
7158 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
7159 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
7160 (*add_uxt<mode>_shift2): Likewise.
7161 (*add_uxtsi_shift2_uxtw): Likewise.
7162 (*sub_uxt<mode>_shift2): Likewise.
7163 (*sub_uxtsi_shift2_uxtw): Likewise.
7165 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
7167 * config/rs6000/constraints.md (Y, U): Use match_test.
7169 2015-05-26 Christian Bruel <christian.bruel@st.com>
7172 * config/arm/arm.c (arm_option_check_internal)
7173 (arm_option_params_internal): Check opts->target_flags to set macros.
7174 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
7175 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
7176 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
7177 (builtin_define): Replaced with def_or_undef_macro.
7178 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
7179 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
7180 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
7181 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
7182 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
7183 (TARGET_ARM_FEATURE_LDREX_P)
7184 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
7185 * config/arm/arm-c.c (def_or_undef_macro): New function.
7186 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
7188 2015-05-26 Christian Bruel <christian.bruel@st.com>
7190 * c-common.h (builtin_define_with_int_value)
7191 (builtin_define_type_sizeof): Declare.
7192 * c-cppbuiltin.c (builtin_define_with_int_value)
7193 (builtin_define_type_sizeof): Externalize.
7194 (builtin_define_std): Cleanup declaration.
7195 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
7196 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
7197 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
7198 (builtin_define, builtin_assert): New macros.
7200 2015-05-26 Richard Biener <rguenther@suse.de>
7202 PR tree-optimization/66142
7203 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
7204 MEM_REFs for the same base address.
7206 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7209 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
7211 2015-05-26 Jason Merrill <jason@redhat.com>
7213 * configure.ac: Set CXXFLAGS for ISL test.
7214 * configure: Regenerate.
7216 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
7217 strstr and basename.
7218 * configure: Regenerate.
7220 2015-05-26 Richard Biener <rguenther@suse.de>
7222 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
7223 X % C -> X & (C - 1) for C being a power-of two to ...
7224 * match.pd: ... patterns.
7226 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
7228 * match.pd (swapped_tcc_comparison): New operator list.
7229 (-A CMP -B): New simplification.
7230 * fold-const.c (fold_comparison): Remove corresponding code.
7232 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
7234 * caller-save.c (init_caller_save): Base temporary register numbers
7235 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
7236 * cfgloopanal.c (init_set_costs): Likewise.
7237 * dojump.c (prefer_and_bit_test): Likewise.
7238 * expr.c (init_expr_target): Likewise.
7239 * ira.c (setup_prohibited_mode_move_regs): Likewise.
7240 * lower-subreg.c (init_lower_subreg): Likewise.
7241 * postreload.c (reload_cse_regs_1): Likewise.
7243 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
7245 * gensupport.h (compute_test_codes): Declare.
7246 * gensupport.c (compute_predicate_codes): Rename to...
7247 (compute_test_codes): ...this. Generalize error message.
7248 (process_define_predicate): Update accordingly.
7249 * genpreds.c (compute_maybe_allows): Delete.
7250 (add_constraint): Use compute_test_codes to determine whether
7251 something can accept a SUBREG, REG or MEM.
7253 2015-05-26 Torvald Riegel <triegel@redhat.com>
7255 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
7256 'memory model' to align with C++11; fix description of memory orders;
7259 2015-05-26 Richard Biener <rguenther@suse.de>
7261 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
7262 (vect_analyze_loop_operations): ... here. Remove slp parameter,
7263 detect whether we apply SLP. Remove call to
7264 vect_update_slp_costs_according_to_vf.
7265 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
7266 vect_update_slp_costs_according_to_vf from here. Dispatch
7267 to vect_slp_analyze_operations to analyze SLP stmts.
7268 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
7269 unused bb_vec_info parameter, adjust assert.
7270 (vect_slp_analyze_operations): Pass in the slp instance tree
7271 instead of bb_vec_info.
7272 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
7273 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
7275 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
7277 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
7278 Q_REGS. Expand comment.
7279 (REG_CLASS_NAMES): Ditto.
7280 (REG_CLASS_CONTENTS): Ditto.
7282 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
7285 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
7286 when LEGACY_INT_REGNO_P is processed.
7288 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
7290 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
7292 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7294 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
7295 register if not marked dead/unused, before return.
7297 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
7300 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
7301 is set; check for assembler name at LTO time.
7302 (type_in_anonymous_namespace): Remove hacks, check that all
7303 anonymous types are called "<anon>"
7304 (odr_type_p): Simplify; add check for "<anon>"
7305 (odr_subtypes_equivalent): Add odr_type_p check.
7306 * tree.c (need_assembler_name_p): Even anonymous namespace needs
7309 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
7311 * ipa-utils.h (method_class_type): Remove.
7312 * cgraphunit.c (walk_polymorphic_call_targets): Use
7313 TYPE_METHOD_BASETYPE.
7314 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
7315 on main variants only.
7316 (method_class_type): Remove.
7317 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
7318 (build_type_inheritance_graph): Likewise.
7319 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7320 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
7321 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
7323 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
7325 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
7326 is_typedef_decl, typedef_variant_p): Constify.
7327 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
7328 is_typedef_decl, typedef_variant_p): Constify.
7330 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7332 * defaults.h (gen_tablejump): New function.
7333 (HAVE_tablejump): Add default value.
7337 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7339 * defaults.h (gen_store_multiple): New function.
7340 (HAVE_store_multiple): Add default value.
7341 * expr.c (move_block_from_reg): Adjust.
7343 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7345 * defaults.h (gen_load_multiple): New function.
7346 (HAVE_load_multiple): Add default value.
7347 * expr.c (move_block_to_reg): Adjust.
7349 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7351 * defaults.h (gen_mem_signal_fence): New function.
7352 (HAVE_mem_signal_fence): Add default value.
7355 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7357 * defaults.h (gen_memory_barrier): New function.
7358 (HAVE_memory_barrier): Add default value.
7361 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7363 * defaults.h (gen_mem_thread_fence): New function.
7364 (HAVE_mem_thread_fence): Add default definition.
7367 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7369 * combine.c (find_split_point): Check the value of HAVE_lo_sum
7370 instead of if it is defined.
7371 (combine_simplify_rtx): Likewise.
7372 * lra-constraints.c (process_address_1): Likewise.
7373 * config/darwin.c: Adjust.
7374 * genconfig.c (main): Always define HAVE_lo_sum.
7376 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7378 * genmatch.c (parser::parse_operation): Reject expanding
7379 operator-list inside 'for'.
7381 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7383 * genmatch.c (parser::parse_for): Reject iterator if used as
7386 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7388 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
7389 after end of id-list.
7391 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
7393 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
7394 we do not try to compute canonical type for type that does not need
7396 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
7398 * tree.h (type_with_alias_set_p): New.
7400 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
7402 * tree.c (gimple_canonical_types_compatible_p): Do not compare
7403 function attributes.
7404 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
7406 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
7408 * Makefile.in (check_gcc_parallelize): Delete.
7409 (lang_checks_parallelized): Update comment.
7411 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
7413 PR rtl-optimization/66237
7414 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
7415 location of an "as_a" cast.
7417 2015-05-22 Jeff Law <law@redhat.com>
7419 * config/pa/pa.md (non-canonical shift-add insns): Remove.
7420 (peepholes with non-canonical RTL sources): Remove.
7421 (peepholes for indexed stores of FP regs in integer modes): Match and
7422 generate canonical RTL.
7424 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
7426 PR tree-optimization/63387
7427 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
7428 ((x ord x) & (y ord y) -> (x ord y),
7429 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
7430 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
7431 vectors like scalars.
7433 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
7435 * convert.c (convert_to_integer, convert_to_vector): Include the
7436 types in the error message.
7438 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
7440 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
7443 2015-05-22 Jeff Law <law@redhat.com>
7445 * config/pa/pa.md (integer_indexed_store splitters): Use
7446 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
7447 insns -- adjusting the constant 2nd operand accordingly.
7449 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
7450 (plus (ashift X log2) Y) if it is a split point.
7452 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
7453 out of hppa_legitimize_address to handle both forms of a multiply
7455 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
7456 Always generate the ASHIFT variant as the result is not directly
7457 used in a MEM. Update comments and refactor slightly to improve
7460 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7463 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
7464 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
7465 (aarch64_composite_type_p): Return false if given type and mode are
7468 2015-05-22 Richard Biener <rguenther@suse.de>
7470 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
7472 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
7473 patterns when determining whether SLP is pure.
7474 (vect_is_slp_reduction): Remove check for pattern stmts.
7475 (vect_is_simple_reduction_1): Remove dead code.
7476 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
7477 (vect_get_and_check_slp_defs): Pass in the stmt number.
7478 Allow the first def in a reduction to be not a pattern stmt when
7479 the rest of the stmts def are patterns.
7480 (vect_build_slp_tree_1): Allow tcc_expression codes like
7481 SAD_EXPR and DOT_PROD_EXPR.
7482 (vect_build_slp_tree): Adjust.
7483 (vect_analyze_slp): Refactor and move BB vect error message ...
7484 (vect_slp_analyze_bb_1): ... here.
7486 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
7488 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
7489 for CSWTCH temporary.
7491 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7493 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
7494 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
7497 2015-05-22 Richard Biener <rguenther@suse.de>
7499 PR tree-optimization/66251
7500 * tree-vect-stmts.c (vectorizable_conversion): Properly
7501 set STMT_VINFO_VEC_STMT even for the SLP case.
7503 2015-05-22 Marek Polacek <polacek@redhat.com>
7505 * doc/extend.texi: Use @pxref instead of @xref.
7507 2015-05-22 hiraditya <hiraditya@msn.com>
7509 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
7512 2015-05-22 Richard Biener <rguenther@suse.de>
7514 PR tree-optimization/65701
7515 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7516 Move peeling cost models into one place. Peel for alignment
7517 for single loads only if an aligned load is cheaper than
7520 2015-05-22 Marek Polacek <polacek@redhat.com>
7523 * doc/extend.texi (Enumerator Attributes): New section.
7524 Document syntax of enumerator attributes.
7526 2015-05-22 Richard Biener <rguenther@suse.de>
7528 * tree-vect-loop.c (get_reduction_op): New function.
7529 (vect_model_reduction_cost): Use it, add reduc_index parameter.
7530 Make ready for BB reductions.
7531 (vect_create_epilog_for_reduction): Use get_reduction_op.
7532 (vectorizable_reduction): Init reduc_index to a valid value.
7533 Adjust vect_model_reduction_cost call.
7534 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
7535 operand for reduction defaults. Add SAD_EXPR support.
7536 Assert we have a neutral op for SLP reductions.
7537 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
7538 walking pattern stmt ops only recurse to SSA names.
7540 2015-05-22 Richard Biener <rguenther@suse.de>
7542 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
7543 assert with guard, remove check on detected reduction.
7544 (vect_recog_sad_pattern): Likewise.
7545 (vect_recog_widen_sum_pattern): Likewise.
7547 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7549 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
7550 __always_inline__ attribute.
7551 (vaesdq_u8): Likewise.
7552 (vaesmcq_u8): Likewise.
7553 (vaesimcq_u8): Likewise.
7554 (vsha1cq_u32): Likewise.
7555 (vsha1mq_u32): Likewise.
7556 (vsha1pq_u32): Likewise.
7557 (vsha1h_u32): Likewise.
7558 (vsha1su0q_u32): Likewise.
7559 (vsha1su1q_u32): Likewise.
7560 (vsha256hq_u32): Likewise.
7561 (vsha256h2q_u32): Likewise.
7562 (vsha256su0q_u32): Likewise.
7563 (vsha256su1q_u32): Likewise.
7564 (vmull_p64): Likewise.
7565 (vmull_high_p64): Likewise.
7567 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7569 * final.c (final_scan_insn): Don't check HAVE_peephole with the
7571 * output.h: Likewise.
7572 * genconfig.c (main): Alwways define HAVE_peephole.
7573 * genpeep.c: Don't emit checks of HAVE_peephole.
7575 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7577 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
7578 check HAVE_conditional_move with the preprocessor.
7580 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7582 * genconfig.c (main): Always define HAVE_conditional_move.
7583 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
7584 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
7587 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7589 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
7590 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
7591 and FRAME_POINTER_REGNUM with the preprocessor.
7593 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7595 * defaults.h: Add default for STACK_PUSH_CODE.
7596 * expr.c: Don't redefine STACK_PUSH_CODE.
7597 * recog.c: Likewise.
7599 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7601 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
7602 sched-deps.c: Use if instead of preprocessor checks with
7603 STACK_GROWS_DOWNWARD.
7605 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7607 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
7609 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
7610 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
7611 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
7612 * doc/tm.texi: Regenerate.
7614 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
7617 * config/i386/constraints.md (Bg): New constraint for GOT memory
7619 * config/i386/i386.md (*call_got_x32): New pattern.
7620 (*call_value_got_x32): Likewise.
7621 * config/i386/predicates.md (GOT_memory_operand): New predicate.
7623 2015-05-21 Jakub Jelinek <jakub@redhat.com>
7625 PR tree-optimization/66233
7626 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
7629 2015-05-21 Jeff Law <law@redhat.com>
7631 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
7632 than MULT for shadd sequences.
7634 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
7636 * alias.c (alias_stats): New static var.
7637 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
7638 (dump_alias_stats_in_alias_c): New function.
7639 * alias.h (dump_alias_stats_in_alias_c): Declare.
7640 * tree-ssa-alias.c (dump_alias_stats): Call it.
7642 2015-05-08 Michael Matz <matz@suse.de>
7644 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
7646 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
7647 (STMT_VINFO_STRIDED_P): ... this.
7648 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
7649 (vect_verify_datarefs_alignment): Likewise.
7650 (vect_enhance_data_refs_alignment): Likewise.
7651 (vect_analyze_data_ref_access): Likewise.
7652 (vect_analyze_data_refs): Accept strided stores.
7653 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
7654 (vect_model_load_cost): Adjust for macro rename.
7655 (vectorizable_mask_load_store): Likewise.
7656 (vectorizable_load): Likewise.
7657 (vectorizable_store): Open code strided stores.
7659 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7661 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
7664 2015-05-21 Richard Biener <rguenther@suse.de>
7667 * match.pd: Guard pattern optimzing (int)(float)int
7668 conversions to apply only on GIMPLE.
7670 2015-05-21 Jeff Law <law@redhat.com>
7672 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
7673 multiply-accumulate/shift-add insn generation.
7675 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
7678 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
7679 operands[1] are the same.
7681 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
7684 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
7685 build_distinct_type_copy to copy bounds.
7687 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
7689 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
7690 Change to unsigned int.
7692 2015-05-20 Jeff Law <law@redhat.com>
7694 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
7695 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
7696 (pa_shadd_constant_p): Allow constants for shadd insns rather
7697 than valid scaling constants for memory addresses.
7698 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
7699 * config/pa/predicates.md (mem_shadd_operand): New predicate.
7700 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
7701 (shift-add insns using ASHIFT): New patterns.
7703 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
7705 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
7707 (fix_up_fall_thru_edges): Likewise.
7708 (fix_crossing_conditional_branches): Likewise. Promote jump targets
7709 from to rtx_insn to rtx_code_label where feasible.
7710 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
7711 gen_move_insn (returned type changed to rtx_insn).
7712 * builtins.c (expand_errno_check): Fix arguments of
7713 do_compare_rtx_and_jump (now expects rtx_code_label).
7714 (expand_builtin_acc_on_device): Likewise.
7715 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
7716 invert_jump (now exprects rtx_jump_insn).
7717 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
7718 (construct_init_block): Use rtx_code_label.
7719 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
7720 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
7721 calling redirect_jump.
7722 (patch_jump_insn): Likewise.
7723 (redirect_branch_edge): Likewise.
7724 (force_nonfallthru_and_redirect): Likewise.
7725 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
7727 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
7728 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
7729 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
7730 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
7731 to store the value retured by gen_label_rtx.
7732 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
7734 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
7735 (split_branches): Fix calls of redirect_jump.
7736 * dojump.c (jumpifnot): Promote argument type from rtx to
7738 (jumpifnot_1): Likewise.
7740 (jumpif_1): Likewise.
7741 (do_jump_1): Likewise.
7742 (do_jump): Likewise. Use rtx_code_label when feasible.
7743 (do_jump_by_parts_greater_rtx): Likewise.
7744 (do_jump_by_parts_zero_rtx): Likewise.
7745 (do_jump_by_parts_equality_rtx): Likewise.
7746 (do_compare_rtx_and_jump): Likewise.
7747 * dojump.h: Update function prototypes.
7748 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
7750 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
7752 (emit_label_before): Likewise.
7753 (emit_jump_insn_after_noloc): Likewise.
7754 (emit_jump_insn_after_setloc): Likewise.
7755 (emit_jump_insn_after): Likewise
7756 (emit_jump_insn_before_setloc): Likewise.
7757 (emit_jump_insn_before): Likewise.
7758 (emit_label_before): Promote return type to rtx_code_label.
7759 (emit_label): Likewise.
7760 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
7761 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
7763 (emit_stack_restore): Likewise.
7764 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
7765 (do_cmp_and_jump): Likewise.
7766 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
7767 from rtx to rtx_code_label.
7768 (gen_move_insn_uncast): New function.
7769 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
7770 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
7771 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
7772 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
7773 invert_jump_1 and redirect_jump_1.
7774 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
7775 do_compare_rtx_and_jump.
7776 (expand_addsub_overflow): Likewise.
7777 (expand_neg_overflow): Likewise.
7778 (expand_mul_overflow): Likewise.
7779 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
7780 return value of gen_move_insn.
7781 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
7782 * loop-doloop.c (add_test): Use rtx_code_label.
7783 (doloop_modify): Likewise.
7784 (doloop_optimize): Likewise.
7785 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
7786 * lra-constraints.c (emit_spill_move): Remove cast of value returned
7788 (inherit_reload_reg): Add cast when calling dump_insn_slim.
7789 (split_reg): Likewise.
7790 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
7792 * optabs.c (expand_binop_directly): Remove casts of values returned by
7794 (expand_unop_direct): Likewise.
7795 (expand_abs): Likewise.
7796 (maybe_emit_unop_insn): Likewise.
7797 (maybe_gen_insn): Promote return type to rtx_insn.
7798 * optabs.h: Update prototype of maybe_gen_insn.
7799 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
7801 * recog.c (struct peep2_insn_data): Promote type of insn field to
7803 (peep2_reinit_state): Use NULL instead of NULL_RTX.
7804 (peep2_attempt): Remove casts of insn in peep2_insn_data.
7805 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
7806 * recog.h (struct insn_gen_fn): Promote return types of function
7807 pointers and operator ().from rtx to rtx_insn.
7808 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
7809 (fill_eager_delay_slots): Likewise.
7810 (relax_delay_slots): Likewise.
7811 (make_return_insns): Likewise.
7812 (dbr_schedule): Likewise.
7813 (optimize_skips): Likewise.
7814 (reorg_redirect_jump): Likewise.
7815 (fill_slots_from_thread): Likewise.
7816 * reorg.h: Update prototypes.
7817 * resource.c (find_dead_or_set_registers): Use dyn_cast to
7818 rtx_jump_insn instead of check. Use it's jump_target method.
7819 * rtl.h (rtx_jump_insn::jump_label): Define new method.
7820 (rtx_jump_insn::jump_target): Define new method.
7821 (rtx_jump_insn::set_jump_target): Define new method.
7822 * rtlanal.c (tablejump_p): Promote type of one local variable.
7823 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
7824 (sched_analyze_insn): Likewise.
7825 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
7826 (print_insn): Likewise.
7827 * stmt.c (label_rtx): Promote return type to rtx_insn.
7828 (force_label_rtx): Likewise.
7829 (jump_target_rtx): Define new function.
7830 (expand_label): Use it, get rid of one cast.
7831 (expand_naked_return): Promote rtx to rtx_code_label.
7832 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
7833 (expand_case): Use rtx_code_label instread of rtx where feasible.
7834 (expand_sjlj_dispatch_table): Likewise.
7835 (emit_case_nodes): Likewise.
7836 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
7837 * store-motion.c (insert_store): Make use of new return type of
7838 gen_move_insn and remove a cast.
7839 (replace_store_insn): Likewise.
7841 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
7843 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
7844 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
7846 2015-05-20 Jeff Law <law@redhat.com>
7848 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
7849 dispose of the jump thread path when the jump threading
7850 opportunity is cancelled.
7852 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7854 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
7855 when printing the caret character.
7857 2015-05-20 Marek Polacek <polacek@redhat.com>
7859 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
7861 2015-05-20 Marek Polacek <polacek@redhat.com>
7863 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
7864 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
7865 * gimple-fold.c (canonicalize_bool): Likewise.
7866 (same_bool_result_p): Likewise.
7867 * tree-if-conv.c (parse_predicate): Likewise.
7869 2015-05-20 Marek Polacek <polacek@redhat.com>
7871 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
7872 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
7874 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7876 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
7877 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
7880 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
7882 * config/mips/mips.h (micromips_globals): Declare.
7884 2015-05-20 David Malcolm <dmalcolm@redhat.com>
7886 * timevar.def (TV_INITIALIZE_RTL): New.
7887 * toplev.c (initialize_rtl): Use an auto_timevar to account this
7888 function's time to TV_INITIALIZE_RTL.
7890 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7892 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
7893 gimple_build_nop calls.
7894 (chkp_find_bounds_for_elem): Likewise.
7895 (chkp_get_zero_bounds): Likewise.
7896 (chkp_get_none_bounds): Likewise.
7897 (chkp_get_bounds_by_definition): Likewise.
7898 (chkp_generate_extern_var_bounds): Likewise.
7899 (chkp_get_bounds_for_decl_addr): Likewise.
7900 (chkp_get_bounds_for_string_cst): Likewise.
7902 2015-05-20 Bin Cheng <bin.cheng@arm.com>
7904 PR tree-optimization/65447
7905 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
7906 (dump_use, dump_uses): Support to dump sub use.
7907 (record_use): New parameters to support sub use. Remove call to
7909 (record_sub_use, record_group_use): New functions.
7910 (compute_max_addr_offset, split_all_small_groups): New functions.
7911 (group_address_uses, rewrite_use_address): New functions.
7912 (strip_offset): New declaration.
7913 (find_interesting_uses_address): Call record_group_use.
7914 (add_candidate): New assertion.
7915 (infinite_cost_p): Move definition forward.
7916 (add_costs): Check INFTY cost and return immediately.
7917 (get_computation_cost_at): Clear setup cost and dependent bitmap
7919 (determine_use_iv_cost_address): Compute cost for sub uses.
7920 (rewrite_use_address_1): Rename from old rewrite_use_address.
7921 (free_loop_data): Free sub uses.
7922 (tree_ssa_iv_optimize_loop): Call group_address_uses.
7924 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7925 Jim Wilson <jim.wilson@linaro.org>
7927 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
7928 new fields loadv and storev.
7929 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
7930 Initialize loadv and storev.
7931 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
7932 (cortexa53_extra_costs): Likewise.
7933 (cortexa57_extra_costs): Likewise.
7934 (xgene1_extra_costs): Likewise.
7935 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
7938 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7940 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
7942 (cortexa8_extra_costs): Likewise.
7943 (cortexa5_extra_costs): Likewise.
7944 (cortexa7_extra_costs): Likewise.
7945 (cortexa12_extra_costs): Likewise.
7946 (cortexa15_extra_costs): Likewise.
7947 (v7m_extra_costs): Likewise.
7949 2015-05-20 Jeff Law <law@redhat.com>
7951 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
7952 instead of open-coded version. Also delete the jump thread created
7953 within this function.
7955 2015-05-20 Alan Modra <amodra@gmail.com>
7957 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
7958 stack adjusting insn. Formatting.
7959 (rs6000_emit_prologue): Track stack adjusting insn, and use of
7960 r12. If possible, emit first -fsplit-stack arg pointer insn
7961 before stack adjust. Don't use r12 to save cr if split-stack.
7963 2015-05-20 Alan Modra <amodra@gmail.com>
7965 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
7967 (rs6000_supports_split_stack): New function.
7968 * gcc/config/rs6000/rs6000.c (machine_function): Add
7969 split_stack_arg_pointer.
7970 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
7971 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
7972 rather than virtual_incoming_args_rtx.
7973 (rs6000_va_start): Likewise.
7974 (split_stack_arg_pointer_used_p): New function.
7975 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
7976 (morestack_ref): New var.
7977 (gen_add3_const, rs6000_expand_split_stack_prologue,
7978 rs6000_internal_arg_pointer, rs6000_live_on_entry,
7979 rs6000_split_stack_space_check): New functions.
7980 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
7981 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
7982 (UNSPECV_SPLIT_STACK_RETURN): Define.
7983 (split_stack_prologue, load_split_stack_limit,
7984 load_split_stack_limit_di, load_split_stack_limit_si,
7985 split_stack_return, split_stack_space_check): New expands and insns.
7986 * gcc/config/rs6000/rs6000-protos.h
7987 (rs6000_expand_split_stack_prologue): Declare.
7988 (rs6000_split_stack_space_check): Declare.
7990 2015-05-20 Alan Modra <amodra@gmail.com>
7992 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
7993 (direct_return): Test vrsave_size rather than vrsave_mask.
7994 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
7995 (rs6000_emit_epilogue): Likewise.
7997 2015-05-20 Alan Modra <amodra@gmail.com>
7999 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
8000 when not saving registers.
8001 (debug_stack_info): Adjust to omit printing unused offsets,
8003 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
8006 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8009 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
8010 value_type to const char *.
8012 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
8014 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
8015 to build a biarch toolchain again.
8017 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
8019 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
8020 or implicit declarations.
8021 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
8023 (get_odr_type): Check type has linkage before adding bases.
8024 (register_odr_type): Check that type has linkage before adding it.
8025 (type_known_to_have_no_deriavations_p): Rename to ..
8026 (type_known_to_have_no_derivations_p): This one.
8027 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
8028 (type_known_to_have_no_derivations_p): This one.
8029 * ipa-polymorphic-call.c
8030 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
8033 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
8035 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
8036 (layout_type): Use RECORD_OR_UNION_TYPE_P.
8038 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8040 * config/s390/s390.c (s390_vector_bool_type_p): New function.
8041 (s390_invalid_binary_op): New function.
8042 (TARGET_INVALID_BINARY_OP): Define macro.
8044 2015-05-19 David Sherwood <david.sherwood@arm.com>
8046 * loop-invariant.c (create_new_invariant): Don't calculate address cost
8047 if mode is not a scalar integer.
8048 (get_inv_cost): Increase computational cost for unused invariants.
8050 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8052 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
8053 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
8054 * config/s390/s390-builtin-types.def: New file.
8055 * config/s390/s390-builtins.def: New file.
8056 * config/s390/s390-builtins.h: New file.
8057 * config/s390/s390-c.c: New file.
8058 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
8059 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
8060 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
8061 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
8063 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
8065 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
8066 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
8067 variable definitions.
8068 (s390_const_operand_ok): New function.
8069 (s390_expand_builtin): Rewrite.
8070 (s390_init_builtins): New function.
8071 (s390_handle_vectorbool_attribute): New function.
8072 (s390_attribute_table): Add s390_vector_bool attribute.
8073 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
8074 (s390_branch_condition_mask): Generate masks for new modes.
8075 (s390_expand_vec_compare_cc): New function.
8076 (s390_mangle_type): Add mangling for vector bool types.
8077 (enum s390_builtin): Remove.
8078 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
8080 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
8081 s390_cpu_cpp_builtins.
8082 (REGISTER_TARGET_PRAGMAS): New macro.
8083 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
8084 (insn_cmp mode attribute): Add new CC modes.
8085 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
8086 (lcbb): New pattern definition.
8087 * config/s390/s390intrin.h: Include vecintrin.h.
8088 * config/s390/t-s390: New file.
8089 * config/s390/vecintrin.h: New file.
8090 * config/s390/vector.md: Include vx-builtins.md.
8091 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
8094 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8096 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
8098 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
8099 (s390_select_ccmode): Likewise.
8100 (s390_canonicalize_comparison): Swap operands if necessary.
8101 (s390_expand_vec_compare_scalar): Expand DFmode compare using
8102 single element vector instructions.
8103 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
8104 (s390_branch_condition_mask): Generate CC masks for the new modes.
8105 * config/s390/s390.md (v0, vf, vd): New mode attributes.
8106 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
8107 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
8108 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
8109 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
8110 (*extend<DSF:mode><BFP:mode>2): New insn definition.
8111 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
8112 (extend<DSF:mode><BFP:mode>2): Turn into expander.
8113 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
8114 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
8115 (sqrt<mode>2): Add vector instruction.
8117 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8119 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
8121 * config/s390/predicates.md (const0_operand, constm1_operand)
8122 (constable_operand): Accept vector operands.
8123 * config/s390/s390-modes.def: Add supported vector modes.
8124 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
8125 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
8126 (s390_bytemask_vector_p, s390_expand_vec_strlen)
8127 (s390_expand_vec_compare, s390_expand_vcond)
8128 (s390_expand_vec_init): Add prototypes.
8129 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
8130 (s390_vector_mode_supported_p): New function.
8131 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
8132 (s390_contiguous_bitmask_vector_p): New function.
8133 (s390_bytemask_vector_p): New function.
8134 (s390_split_ok_p): Vector regs don't work either.
8135 (regclass_map): Add VEC_REGS.
8136 (s390_legitimate_constant_p): Handle vector constants.
8137 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
8138 (legitimate_reload_vector_constant_p): New function.
8139 (s390_preferred_reload_class): Handle CONST_VECTOR.
8140 (s390_reload_symref_address): Likewise.
8141 (s390_secondary_reload): Vector memory instructions only support
8142 short displacements. Rename reload*_nonoffmem* to reload*_la*.
8143 (s390_emit_ccraw_jump): New function.
8144 (s390_expand_vec_strlen): New function.
8145 (s390_expand_vec_compare): New function.
8146 (s390_expand_vcond): New function.
8147 (s390_expand_vec_init): New function.
8148 (s390_dwarf_frame_reg_mode): New function.
8149 (print_operand): Handle addresses with 'O' and 'R' constraints.
8150 (NR_C_MODES, constant_modes): Add vector modes.
8151 (s390_output_pool_entry): Handle vector constants.
8152 (s390_hard_regno_mode_ok): Handle vector registers.
8153 (s390_class_max_nregs): Likewise.
8154 (s390_cannot_change_mode_class): New function.
8155 (s390_invalid_arg_for_unprototyped_fn): New function.
8156 (s390_function_arg_vector): New function.
8157 (s390_function_arg_float): Remove size variable.
8158 (s390_pass_by_reference): Handle vector arguments.
8159 (s390_function_arg_advance): Likewise.
8160 (s390_function_arg): Likewise.
8161 (s390_return_in_memory): Vector values are returned in a VR if
8163 (s390_function_and_libcall_value): Handle vector arguments.
8164 (s390_gimplify_va_arg): Likewise.
8165 (s390_call_saved_register_used): Consider the arguments named.
8166 (s390_conditional_register_usage): Disable v16-v31 for non-vec
8168 (s390_preferred_simd_mode): New function.
8169 (s390_support_vector_misalignment): New function.
8170 (s390_vector_alignment): New function.
8171 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
8172 (TARGET_VECTOR_MODE_SUPPORTED_P)
8173 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
8174 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
8175 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
8176 (TARGET_VECTOR_ALIGNMENT): Define target macro.
8177 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
8178 (FIRST_PSEUDO_REGISTER): Increase value.
8179 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
8180 (VECTOR_REG_P): Define macros.
8181 (FIXED_REGISTERS, CALL_USED_REGISTERS)
8182 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
8183 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
8184 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
8185 Add vector registers.
8186 (CANNOT_CHANGE_MODE_CLASS): Call C function.
8187 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
8188 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
8190 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
8191 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
8192 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
8193 (VR*_REGNUM): New constants.
8194 (ALL): New mode iterator.
8195 (INTALL): Remove mode iterator.
8197 (movti): Implement TImode moves for VRs.
8198 Disable TImode splitter for VR targets.
8199 Implement splitting TImode GPR<->VR moves.
8200 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
8201 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
8202 reload<mode>_la_in, reload<mode>_la_out.
8203 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
8204 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
8205 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
8206 (mov<mode> SF SD): Prefer lder, lde for loading.
8207 Add lrl and strl instructions.
8208 Add vector instructions.
8209 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
8210 Call s390_expand_vec_strlen on z13.
8211 (*cc_to_int): Change predicate to nonimmediate_operand.
8212 (addti3): Rename to *addti3. New expander.
8213 (subti3): Rename to *subti3. New expander.
8214 * config/s390/vector.md: New file.
8216 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8218 * common/config/s390/s390-common.c (processor_flags_table): Add
8220 * config.gcc: Add z13.
8221 * config/s390/s390-opts.h (enum processor_type): Add
8223 * config/s390/s390.c (s390_adjust_priority): Check for
8225 (s390_reorg): Likewise.
8226 (s390_sched_reorder): Likewise.
8227 (s390_sched_variable_issue): Likewise.
8228 (s390_loop_unroll_adjust): Likewise.
8229 (s390_option_override): Likewise. Default to -mvx when available.
8230 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
8231 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
8232 (TARGET_VX_ABI): Define macros.
8234 (TARGET_DEFAULT): Add MASK_OPT_VX.
8235 * config/s390/s390.md ("cpu" attribute): Add z13.
8236 ("cpu_facility" attribute): Add vec.
8237 * config/s390/s390.opt (processor_type): Add z13.
8239 * doc/invoke.texi: Add z13 option for -march.
8241 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8243 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
8244 mode check to make sure that only scalar integer values are
8247 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
8249 * tree.c (verify_type_variant): Fix #undef.
8250 (gimple_canonical_types_compatible_p): Move here from lto.c
8251 (verify_type): Verify TYPE_CANONICAL compatibility.
8252 * tree.h (gimple_canonical_types_compatible_p): Declare.
8254 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8257 * tree.h (OMP_TEAMS_COMBINED): Define.
8258 * gimplify.c (enum gimplify_omp_var_data): Add
8259 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
8260 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
8261 (omp_notice_variable): Accept both ORT_TEAMS
8262 and ORT_COMBINED_TEAMS. Don't recurse if
8263 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
8264 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
8266 (omp_no_lastprivate): New function.
8267 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
8268 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
8269 notice_outer and set appropriate bits, otherwise make
8270 sure default(none) combined constructs won't complain.
8271 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
8272 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
8273 omp_no_lastprivate either remove the clause or turn it
8274 into OMP_CLAUSE_PRIVATE.
8275 (gimplify_omp_for): Fix up handling of implicit
8276 lastprivate or linear iterators.
8277 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
8279 * omp-low.c (lower_omp_for_lastprivate): For combined
8280 for simd use fd.loop.n2 from the for rather than simd.
8282 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8284 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
8285 instead of gen_rtx_raw_REG.
8286 (cris_expand_epilogue): Likewise.
8287 * config/microblaze/microblaze.c (microblaze_classify_address):
8289 * config/sparc/sparc.md: Likewise.
8291 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
8293 * config/alpha/alpha.c (alpha_legitimize_reload_address)
8294 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
8295 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
8296 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
8297 Use CASE_CONST_SCALAR_INT.
8298 (print_operand) <case 'M'>: Use mode_width_operand to check the
8299 value of the constant.
8300 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
8301 * config/alpha/predicates.md (input_operand): Use general_operand
8302 instead of match_code as operand check.
8303 (symbolic_operand): Use match_code with subexpression digits.
8304 * config/alpha/constraints.md (Q): Ditto.
8306 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8308 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
8310 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8312 * config/s390/s390.c (s390_secondary_reload): Fix check for
8313 load/store relative.
8315 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8317 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
8318 alternative_mask to uint64_t.
8320 2015-05-19 Jakub Jelinek <jakub@redhat.com>
8322 PR tree-optimization/66187
8323 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8324 Pass TYPE_SIGN to tree_int_cst_min_precision. If
8325 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
8327 2015-05-19 David Malcolm <dmalcolm@redhat.com>
8329 * diagnostic.c (diagnostic_report_current_module): Strengthen
8330 local "new_map" from const line_map * to
8331 const line_map_ordinary *.
8332 * genmatch.c (error_cb): Likewise for local "map".
8333 (output_line_directive): Likewise for local "map".
8334 * input.c (expand_location_1): Likewise for local "map".
8335 Pass NULL rather than &map to
8336 linemap_unwind_to_first_non_reserved_loc, since the value is never
8337 read from there, and the value written back not read from here.
8338 (is_location_from_builtin_token): Strengthen local "map" from
8339 const line_map * to const line_map_ordinary *.
8340 (dump_location_info): Strengthen locals "map" from
8341 line_map *, one to const line_map_ordinary *, the other
8342 to const line_map_macro *.
8343 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
8344 const line_map * to const line_map_macro *.
8345 (maybe_unwind_expanded_macro_loc): Add a call to
8346 linemap_check_macro when writing to the "map" field of the
8348 Introduce local const line_map_ordinary * "ord_map", using it in
8349 place of "map" in the part of the function where we know we have
8350 an ordinary map. Strengthen local "m" from const line_map * to
8351 const line_map_ordinary *.
8353 2015-05-19 Nick Clifton <nickc@redhat.com>
8356 * config/msp430/msp430.md (zero_extendhisi2): Add support for
8357 separate source and destination registers.
8359 2015-05-19 Richard Biener <rguenther@suse.de>
8361 PR tree-optimization/66165
8362 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
8363 for no load permutation.
8365 PR tree-optimization/66185
8366 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
8367 when building the SLP node from scalars.
8369 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
8370 Tristan Gingold <gingold@adacore.com>
8372 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
8373 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
8374 (expand_stack_restore): Call record_new_stack_level.
8375 (expand_stack_save): Do not call do_pending_stack_adjust.
8376 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
8377 * calls.c (expand_call): Call record_new_stack_level for alloca.
8378 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
8379 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
8380 (update_sjlj_context): New global function.
8381 * except.h (update_sjlj_context): Declare.
8382 * explow.c (record_new_stack_level): New global function.
8383 (allocate_dynamic_stack_space): Call record_new_stack_level.
8384 * explow.h (record_new_stack_level): Declare.
8385 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
8386 * cfgrtl.c (duplicate_insn_chain): Likewise.
8388 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8390 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
8391 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
8392 STACK_GROWS_DOWNWARD as normal if.
8393 (expand_call): Likewise.
8395 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
8398 * config/sh/sh.md (*round_int_even): New insn_and_split and
8399 accompanying new unnamed split.
8401 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8403 * bitmap.c (bitmap_set_range): Handle count==1 specially.
8404 (bitmap_clear_range): Likewise.
8405 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
8406 bitmap_set_range unconditionally.
8407 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8408 * df-scan.c (df_mark_reg): Likewise.
8409 * haifa-sched.c (setup_ref_regs): Likewise.
8410 * sched-rgn.c (update_live_1): Likewise.
8412 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8414 * regs.h (END_HARD_REGNO): Delete.
8415 (END_REGNO): Move to...
8417 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
8418 * caller-save.c (mark_set_regs): Likewise.
8419 * combine.c (move_deaths, distribute_notes): Likewise.
8420 * cse.c (invalidate, invalidate_for_call): Likewise.
8421 * df-scan.c (df_ref_record): Likewise.
8422 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
8423 (record_last_reg_set_info): Likewise.
8424 * reg-stack.c (convert_regs_exit): Likewise.
8425 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
8426 * resource.c (update_live_status): Likewise.
8427 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
8429 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8431 * rtl.h (reg_info): Add an nregs field.
8432 (REG_NREGS): Use it.
8433 (SET_REGNO_RAW): Delete.
8434 (set_regno_raw): New function.
8435 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
8436 (END_REGNO): Redefine in terms of REG_NREGS.
8437 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
8439 * emit-rtl.c (set_mode_and_regno): Likewise.
8440 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
8441 instead of SET_REGNO_RAW.
8443 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8445 * rtl.h (PUT_MODE_RAW): New macro.
8446 (PUT_REG_NOTE_KIND): Use it.
8447 (set_mode_and_regno): Declare.
8448 (gen_raw_REG): Change regno to "unsigned int".
8449 (gen_rtx_REG): Change "unsigned" to "unsigned int".
8450 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
8451 use set_mode_and_regno to change the mode of registers.
8452 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
8453 * emit-rtl.c (set_mode_and_regno): New function.
8454 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
8455 * caller-save.c (reg_save_code): Use set_mode_and_regno.
8456 * expr.c (init_expr_target): Likewise.
8457 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8458 * postreload.c (reload_cse_simplify_operands): Likewise.
8460 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8462 * caller-save.c (init_caller_save): Use word_mode and
8463 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
8464 * expr.c (init_expr_target): Likewise.
8465 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8466 * postreload.c (reload_cse_regs_1): Likewise.
8468 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8470 * rtl.def (REG): Change format to "r".
8471 * rtl.h (rtunion): Remove rt_reg.
8472 (reg_info): New structure.
8473 (rtx_def): Add reg field to main union.
8474 (X0REGATTR): Delete.
8475 (REG_CHECK): New macro.
8476 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
8477 * rtl.c (rtx_format): Document "r".
8478 (rtx_code_size): Handle REG specially.
8479 * gengenrtl.c (special_format): Return true for formats
8481 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
8482 Deal with REG_ATTRS after the field loop.
8483 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
8484 * expmed.c (init_expmed): Call gen_raw_REG instead of
8486 * expr.c (init_expr_target): Likewise.
8487 * regcprop.c (maybe_mode_change): Likewise.
8488 * varasm.c (make_decl_rtl): Likewise.
8489 * final.c (leaf_renumber_regs_insn): Return early after
8491 * genemit.c (gen_exp): Handle 'r' fields.
8492 * genpeep.c (match_rtx): Likewise.
8493 * gensupport.c (subst_pattern_match): Likewise.
8494 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
8495 (alter_constraints, subst_dup): Likewise.
8496 * read-rtl.c (read_rtx_code): Likewise.
8497 * print-rtl.c (print_rtx): Likewise.
8498 * genrecog.c (find_operand, find_matching_operand): Likewise.
8499 (validate_pattern, match_pattern_2): Likewise.
8500 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
8501 (rtx_test::regno_field): New function.
8502 (operator ==, safe_to_hoist_p, transition_parameter_type)
8503 (parameter_type_string, print_parameter_value)
8504 (print_nonbool_test, print_test): Handle new enum values.
8505 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
8506 * lra-constraints.c (operands_match_p): Likewise.
8508 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8510 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
8511 Change type of new_regno to unsigned int.
8512 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
8513 new_regno to unsigned int.
8514 (df_ref_change_reg_with_loc): Remove old_regno parameter.
8515 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
8516 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
8517 (SET_REGNO_RAW): Add space after ",".
8519 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8521 * rtl.h (REG_NREGS): New macro
8522 * alias.c (record_set): Use it.
8523 * cfgcleanup.c (mark_effect): Likewise.
8524 * combine.c (likely_spilled_retval_1): Likewise.
8525 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
8526 (move_deaths, distribute_notes): Likewise.
8527 * cselib.c (cselib_record_set): Likewise.
8528 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
8529 * df-scan.c (df_mark_reg): Likewise.
8530 * dse.c (look_for_hardregs): Likewise.
8531 * dwarf2out.c (reg_loc_descriptor): Likewise.
8532 (multiple_reg_loc_descriptor): Likewise.
8533 * expr.c (write_complex_part, read_complex_part): Likewise.
8534 (emit_move_complex): Likewise.
8535 * haifa-sched.c (setup_ref_regs): Likewise.
8536 * ira-lives.c (mark_hard_reg_live): Likewise.
8537 * lra.c (lra_set_insn_recog_data): Likewise.
8538 * mode-switching.c (create_pre_exit): Likewise.
8539 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
8540 (reload_combine_recognize_pattern): Likewise.
8541 (reload_combine_note_use, move2add_record_mode): Likewise.
8542 (reload_cse_move2add): Likewise.
8543 * reg-stack.c (subst_stack_regs_pat): Likewise.
8544 * regcprop.c (kill_value, copy_value): Likewise.
8545 (copyprop_hardreg_forward_1): Likewise.
8546 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
8547 (build_def_use): Likewise.
8548 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
8549 (deps_analyze_insn): Likewise.
8550 * sched-rgn.c (check_live_1, update_live_1): Likewise.
8551 * sel-sched.c (count_occurrences_equiv): Likewise.
8552 * valtrack.c (dead_debug_insert_temp): Likewise.
8554 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
8556 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
8557 * dse.c (note_add_store): Likewise.
8558 * ira-lives.c (mark_hard_reg_dead): Likewise.
8559 * loop-invariant.c (mark_reg_store): Likewise.
8560 (mark_reg_death): Likewise.
8561 * postreload.c (reload_combine): Likewise.
8562 (reload_combine_note_store): Likewise.
8563 (reload_combine_note_use): Likewise.
8564 * recog.c (peep2_reg_dead_p): Likewise.
8566 2015-05-19 Alan Modra <amodra@gmail.com>
8568 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
8569 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
8570 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
8572 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
8573 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
8574 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
8575 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
8577 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
8579 * config/mips/mips.md (JOIN_MODE): New mode iterator.
8580 (join2_load_Store<JOIN_MODE:mode>): New pattern.
8581 (join2_loadhi): Likewise.
8582 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
8583 load-load and store-stores.
8584 * config/mips/mips.opt (mload-store-pairs): New option.
8585 (TARGET_LOAD_STORE_PAIRS): New macro.
8586 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
8587 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
8588 * config/mips/mips.c (mips_load_store_bonding_p): New function.
8590 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
8592 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
8594 * dojump.c (do_compare_rtx_and_jump): Likewise.
8595 * expmed.c (emit_store_flag_1): Likewise.
8596 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
8597 * final.c (sprint_ul): Use std::reverse for reversing a string.
8598 * fold-const.c (extract_muldiv_1): Use std::swap.
8599 * genmodes.c (emit_mode_int_n): Likewise.
8600 * ifcvt.c (dead_or_predicable): Likewise.
8601 * ira-build.c (ira_merge_live_ranges): Likewise.
8602 (swap_allocno_copy_ends_if_necessary): Likewise.
8603 * ira.c (ira_setup_alts): Likewise.
8604 * loop-iv.c (iv_analyze_expr): Likewise.
8605 (implies_p): Likewise.
8606 (canon_condition): Likewise.
8607 * lra-constraints.c (swap_operands): Likewise.
8608 * lra-lives.c (lra_merge_live_ranges): Likewise.
8609 * omega.c (swap): Remove.
8611 (omega_unprotect_1): Use std::swap.
8612 (omega_solve_geq): Likewise.
8613 * optabs.c (expand_binop_directly): Likewise.
8614 (expand_binop): Likewise.
8615 (emit_conditional_move): Likewise.
8616 (emit_conditional_add): Likewise.
8617 * postreload.c (reload_cse_simplify_operands): Likewise.
8618 * reg-stack.c (emit_swap_insn): Likewise.
8619 (swap_to_top): Likewise.
8620 (compare_for_stack_reg): Likewise.
8621 (subst_asm_stack_regs): Likewise.
8622 * reload.c (find_reloads): Likewise.
8623 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
8624 * sel-sched.c (invoke_reorder_hooks): Likewise.
8625 (create_block_for_bookkeeping): Likewise.
8626 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
8627 (lambda_matrix_right_hermite): Use std::swap.
8628 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
8629 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8630 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
8631 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
8632 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
8633 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
8634 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8635 * tree-vrp.c (compare_ranges): Likewise.
8636 * var-tracking.c (add_with_sets): Likewise.
8637 (vt_find_locations): Likewise.
8639 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
8641 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
8643 (FBSD_ENDFILE_SPEC): Likewise.
8644 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
8645 config/freebsd-spec.h.
8646 (ENDFILE_SPEC): Likewise.
8648 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
8649 Richard Henderson <rth@redhat.com>
8652 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
8653 Check for a memory location that is not a reference (using an AND)
8654 to an unaligned location here.
8655 * config/alpha/predicates.md (normal_memory_operand): Remove.
8657 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
8659 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
8660 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
8662 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
8664 * config/mips/mips.c (micromips_globals): New variable.
8665 (mips_set_compression_mode): Save and reinitialize target-dependent
8666 state for microMIPS.
8668 2015-05-18 Martin Liska <mliska@suse.cz>
8670 * dbgcnt.def: Add new counter.
8671 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
8673 2015-05-18 Martin Liska <mliska@suse.cz>
8675 * dbgcnt.def: Sort counters.
8676 * opts.c (common_handle_option): Do not compile if
8677 -fdbg-cnt-list is enabled.
8679 2015-05-18 Tom de Vries <tom@codesourcery.com>
8681 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
8682 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
8683 address operator to va_list operand.
8684 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
8686 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
8688 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
8689 * config/s390/s390.c (s390_gimplify_va_arg): Same.
8690 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
8692 2015-05-18 Tom de Vries <tom@codesourcery.com>
8694 * tree-ssa-tail-merge.c: Fix whitespace.
8696 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
8698 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
8699 cortex-a17, and cortex-a17.cortex-a7.
8701 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
8704 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
8706 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
8709 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
8710 QImode inner modes for TARGET_AVX512BW. Force mask operand
8711 to a register for AVX512F modes.
8713 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
8715 * toplev.c (emit_debug_global_declarations): Do not output debug info
8716 when doing slim LTO objects.
8718 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
8720 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
8721 odr_types_equivalent_p): Declare.
8722 (odr_type_p): Use gcc_checking_assert.
8723 (type_in_anonymous_namespace_p) Declare.
8724 (type_with_linkage_p): Declare.
8725 * common.opt (Wlto-type-mismatch): New warning.
8726 * ipa-devirt.c (compound_type_base): New function.
8727 (odr_or_derived_type_p): New function.
8728 (odr_types_equivalent_p): New function.
8729 (add_type_duplicate): Simplify.
8730 (type_with_linkage_p): Add hack to prevent false positives on C types
8731 (type_in_anonymous_namespace_p): Likewise.
8732 * tree.c (need_assembler_name_p): Use type_with_linkage.
8733 * tree.h (type_in_anonymous_namespace_p): Remove.
8734 * doc/invoke.texi (-Wlto-type-mismatch): Document
8736 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
8738 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
8739 (verify_type): Verify STRING_FLAG.
8741 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8744 * tree-pretty-print.c (percent_K_format): Replace locus pointer
8745 with accessor function.
8746 * tree-diagnostic.c (diagnostic_report_current_function): Use
8747 diagnostic_location function.
8748 (maybe_unwind_expanded_macro_loc): Likewise.
8749 (virt_loc_aware_diagnostic_finalizer): Likewise.
8750 (default_tree_printer): Replace locus pointer with accessor function.
8751 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
8752 (diagnostic_set_info_translated): Initialize second location.
8753 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
8754 (diagnostic_show_locus): Handle two locations. Call
8755 diagnostic_print_caret_line.
8756 (diagnostic_print_caret_line): New.
8757 (default_diagnostic_starter): Use diagnostic_location function.
8758 (diagnostic_report_diagnostic): Use diagnostic_location function.
8759 (verbatim): Do not set text.locus.
8760 * diagnostic.h (struct diagnostic_info): Remove location field.
8761 (struct diagnostic_context): Make caret_chars an array of two.
8762 (diagnostic_location): New inline.
8763 (diagnostic_expand_location): Handle two locations.
8764 (diagnostic_same_line): New inline.
8765 (diagnostic_print_caret_line): Declare.
8766 (CARET_LINE_MARGIN): New constant.
8767 * pretty-print.c (pp_printf): Do not set text.locus.
8768 (pp_verbatim): Do not set text.locus.
8769 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
8770 (struct text_info): Replace locus pointer with locations
8771 array. Add accessor functions.
8773 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
8774 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8777 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
8778 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
8779 large constants in register instead of splitting them.
8781 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
8784 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
8785 replacements in memory addresses.
8786 (get_unaligned_address): Ditto.
8788 2015-05-16 James Bowman <james.bowman@ftdichip.com>
8790 * config/ft32/*: New files for FT32 port.
8791 * doc/install.texi: Add FT32 information.
8792 * doc/invoke.texi: Add FT32 information.
8793 * doc/md.texi: Add FT32 information.
8794 * doc/contrib.texi: Self added.
8796 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
8798 PR tree-optimization/64454
8799 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
8800 (-1 - A -> ~A): Remove unnecessary condition.
8802 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
8804 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
8805 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8806 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
8808 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
8810 * ipa-chkp.h (chkp_wrap_function): New.
8811 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
8812 (chkp_wrap_function_name): New.
8813 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
8814 to get wrapper name.
8815 * lto-cgraph.c: Include ipa-chkp.h.
8816 (input_cgraph_1): Avoid alias chain for wrappers.
8818 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8821 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
8822 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
8824 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8826 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
8827 (AARCH64_FL_SLOWMUL): Delete.
8828 (AARCH64_FL_CRC): Redefine to 1<<3.
8829 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
8831 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8833 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
8836 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
8838 * config/alpha/alpha.md (extendqidi2): Use general_operand
8839 instead of some_operand for operand[1] predicate.
8840 (extendhidi2): Ditto.
8841 (cbranchdi4): Use general_operand instead of some_operand
8842 for operand[1] and operands[2] predicates.
8844 * config/alpha/predicates.md (some_operand): Remove unused predicate.
8845 (some_ni_operand): Ditto.
8847 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
8849 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
8850 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
8851 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
8852 low part of the constant using alpha_emit_set_const_1.
8853 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
8855 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
8857 * varasm.c (output_constant_pool_1): Pass down alignment from
8858 constant pool entry's descriptor to output_constant_pool_2.
8859 (output_object_block): Add comment prior to call to
8860 output_constant_pool_1.
8862 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
8864 PR rtl-optimization/65862
8865 * target.def (ira_change_pseudo_allocno_class): New hook.
8866 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
8868 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
8869 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
8871 * ira-costs.c (find_costs_and_classes): Call the hook and change
8872 classes when it is necessary.
8873 * doc/tm.texi: Update.
8875 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
8877 * config/i386/i386.md (sibcall_memory): Check that register with
8878 callee address is not also used as one of the arguments, instead
8879 of checking that it is not live after the sibcall.
8880 (sibcall_pop_memory): Ditto.
8881 (sibcall_value_memory): Ditto.
8882 (sibcall_value_pop_memory): Ditto.
8884 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
8886 * generic-match-head.c (types_match): Handle non-types.
8887 * gimple-match-head.c (types_match): Likewise.
8888 * match.pd: Remove unnecessary TREE_TYPE for types_match.
8890 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
8892 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
8893 (csneg3<mode>_insn): Enable expansion of pattern.
8895 2015-05-14 Nick Clifton <nickc@redhat.com>
8897 * config/rl78/rl78.c (rl78_select_section): Select the correct
8898 default section based upon the category of the decl.
8900 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
8902 PR rtl-optimization/30967
8903 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
8904 destination mode for the cost of scc patterns.
8906 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
8908 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
8909 using SWIM248 mode iterator.
8910 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
8911 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
8912 for operand[2] constraint.
8913 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
8915 2015-05-13 Jakub Jelinek <jakub@redhat.com>
8918 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
8919 make sure it is never noreturn, even when the task body does not
8921 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
8922 right before GIMPLE_OMP_RETURN.
8923 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
8924 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
8925 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
8927 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8929 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
8930 * tree-ssa-math-opts.c: Include params.h
8931 (pow_synth_sqrt_info): New struct.
8932 (representable_as_half_series_p): New function.
8933 (get_fn_chain): Likewise.
8934 (print_nested_fn): Likewise.
8935 (dump_fractional_sqrt_sequence): Likewise.
8936 (dump_integer_part): Likewise.
8937 (expand_pow_as_sqrts): Likewise.
8938 (gimple_expand_builtin_pow): Use above to attempt to expand
8939 pow as series of square roots. Removed now unused variables.
8941 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
8943 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
8944 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
8945 Remove *p0 and *p1 arguments. Rewrite function.
8946 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
8947 (alpha_split_const_mov): Update calls to alpha_extract_integer and
8948 alpha_emit_set_long_const.
8949 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
8950 (alpha_output_mi_thunk_osf): Ditto.
8951 * config/alpha/alpha.md (movti): Do not check operands[1]
8954 2015-05-13 Richard Biener <rguenther@suse.de>
8956 PR tree-optimization/66129
8957 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
8959 (vect_schedule_slp_instance): Fix typo.
8961 2015-05-13 David Malcolm <dmalcolm@redhat.com>
8963 * common.opt (fdump-internal-locations): New option.
8964 * input.c: Include diagnostic-core.h.
8965 (get_end_location): New function.
8966 (write_digit): New function.
8967 (write_digit_row): New function.
8968 (dump_location_range): New function.
8969 (dump_labelled_location_range): New function.
8970 (dump_location_info): New function.
8971 * input.h (dump_location_info): New prototype.
8972 * toplev.c (compile_file): Handle flag_dump_locations.
8974 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
8976 * gimple-expr.h (is_gimple_constant): Reorder.
8977 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
8979 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
8981 * combine.c (simplify_set): When generating a CC set, if the
8982 source already is in the correct mode, do not wrap it in a
8983 compare. Simplify the rest of that code.
8985 2015-05-13 Richard Biener <rguenther@suse.de>
8987 PR tree-optimization/66123
8988 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
8991 2015-05-13 Richard Biener <rguenther@suse.de>
8994 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
8996 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
8998 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
9000 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
9001 * aclocal.m4: Regenerated with automake-1.11.6.
9003 2015-05-13 Tom de Vries <tom@codesourcery.com>
9005 PR tree-optimization/66010
9006 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
9007 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
9008 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
9009 and rval based on do_deref.
9011 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
9014 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
9015 link time constants into adress expressions and therefore set
9018 2015-05-13 Jakub Jelinek <jakub@redhat.com>
9021 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
9022 Use SWI248 iterator instead of SWI.
9023 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
9024 Use eq_attr "alternative" "0" instead of match_test in
9025 length_immediate attribute computation.
9026 (*mulvhi4, *mulvhi4_1): New define_insns.
9029 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
9030 SIGNED to get precision of non-negative value.
9032 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
9035 * function.c (diddle_return_value_1): Process bounds first.
9036 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
9039 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9041 PR rtl-optimization/64616
9042 * loop-invariant.c (can_move_invariant_reg): New.
9043 (move_invariant_reg): Call above new function to decide whether
9044 instruction can just be moved, skipping creation of temporary
9047 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
9050 * i386.c (ix86_function_sseregparm): Only return -1 if local function
9051 with implied regparm is called from -mno-sse function.
9052 (init_cumulative_args): Output error if ix86_function_sseregparm
9053 return -1 and SSE register would be needed.
9054 (function_arg_advance_32): Likewise.
9055 (function_arg_32): Likewise.
9056 * i386.h (ix86_args): Add decl field.
9058 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
9061 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
9062 inlines across optimization boundary.
9064 2015-05-12 Jason Merrill <jason@redhat.com>
9066 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
9067 string literal and macro name.
9069 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
9071 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
9072 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
9073 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
9075 2015-05-12 David Malcolm <dmalcolm@redhat.com>
9077 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
9078 (-Wmisleading-indentation): New option.
9079 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
9081 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
9083 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
9084 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
9085 (alpha_extract_integer): Ditto.
9086 (alpha_legitimate_constant_p): Ditto.
9087 (alpha_split_tmode_pair): Ditto.
9088 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
9089 (alpha_expand_mov): Ditto.
9090 (print_operand): Remove handling of 'H' modifier.
9091 <case 'm'>: Remove CONST_DOUBLE handling.
9092 (summarize_insn): Handle CONST_WIDE_INT.
9093 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
9095 (movti): Handle CONST_WIDE_INT.
9096 * config/alpha/constraints.md ('H'): Remove constraint definition.
9097 ('G'): Do not match MODE_FLOAT class.
9098 * config/alpha/predicates.md (const0_operand): Also match
9100 (non_add_const_operand): Ditto.
9101 (non_zero_const_operand): Ditto.
9102 (some_operand): Ditto.
9103 (input_operand): Ditto. Handle CONST_WIDE_INT.
9104 (and_operand): Do not match const_double.
9105 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
9107 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
9110 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
9111 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
9112 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
9113 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
9114 is_mm_seq_cst, is_mm_sync): New accessor functions.
9115 * builtins.c (expand_builtin_sync_operation,
9116 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
9117 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
9118 (get_memmodel, expand_builtin_atomic_compare_exchange,
9119 expand_builtin_atomic_load, expand_builtin_atomic_store,
9120 expand_builtin_atomic_clear): Use new accessor routines.
9121 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
9122 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
9123 (maybe_emit_sync_lock_test_and_set): Use new accessors and
9124 MEMMODEL_SYNC_ACQUIRE.
9125 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
9126 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
9127 expand_atomic_store): Use new accessors.
9128 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
9129 * tsan.c (instrument_builtin_call): Update check for memory model beyond
9130 final enum to use MEMMODEL_LAST.
9131 * c-family/c-common.c: Use new accessor for memmodel_base.
9132 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
9134 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
9135 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
9136 mem_thread_fence, *dmb): Likewise.
9137 * config/alpha/alpha.c (alpha_split_compare_and_swap,
9138 alpha_split_compare_and_swap_12): Likewise.
9139 * config/arm/arm.c (arm_expand_compare_and_swap,
9140 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
9141 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
9142 atomic_loaddi): Likewise.
9143 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
9145 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
9146 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
9148 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
9149 atomic_store<mode>, atomic_compare_and_swap<mode>,
9150 atomic_exchange<mode>): Use new accessors.
9151 * config/mips/mips.c (mips_process_sync_loop): Likewise.
9152 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
9153 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
9154 rs6000_post_atomic_barrier): Add new cases.
9155 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
9156 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
9157 (atomic_load<mode>): Add new cases and use new accessors.
9158 (store_quadpti): Add new cases.
9159 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
9161 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
9162 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
9165 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
9167 * ipa-devirt.c (type_with_linkage_p): New function.
9168 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
9170 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
9171 (can_be_name_hashed_p): Simplify.
9172 (hash_odr_name): Check that type has linkage before checking if it is
9174 (types_same_for_odr): Likewise.
9175 (odr_name_hasher::equal): Likewise.
9176 (odr_subtypes_equivalent_p): Likewise.
9177 (warn_types_mismatch): Likewise.
9178 (get_odr_type): Likewise.
9179 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
9180 * ipa-utils.h (odr_type_p): Move offline.
9181 * tree.c (need_assembler_name_p): Fix handling of types
9183 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
9185 2015-05-12 David Malcolm <dmalcolm@redhat.com>
9187 * timevar.c (timevar_enable): Delete in favor of...
9188 (g_timer): New global.
9189 (struct timevar_def): Move to timevar.h inside class timer.
9190 (struct timevar_stack_def): Likewise.
9191 (timevars): Delete global in favor of field "m_timevars" within
9192 class timer in timevar.h
9193 (stack): Likewise, in favor of field "m_stack".
9194 (unused_stack_instances): Likewise, in favor of field
9195 "m_unused_stack_instances".
9196 (start_time): Likewise, in favor of field "m_start_time".
9197 (get_time): Eliminate check for timevar_enable.
9198 (timer::timer): New function, built from part of timevar_init.
9199 (timevar_init): Rewrite idempotency test from using
9200 "timevar_enable" bool to using dynamic allocation of "g_timer".
9201 Move rest of implementation into timer's constructor.
9202 (timevar_push_1): Rename to...
9203 (timer::push): ...this, adding "m_" prefixes to variables that
9204 are now fields of timer.
9205 (timevar_pop_1): Likewise, rename to...
9206 (timer::pop): ...this, and add "m_" prefixes.
9207 (timevar_start): Replace test for "timevar_enable" with one for
9208 "g_timer", and move bulk of implementation to...
9209 (timer::start): ...here, adding "m_" prefixes.
9210 (timevar_stop): Likewise, from here...
9211 (timer::stop): ...to here.
9212 (timevar_cond_start): Likewise, from here...
9213 (timer::cond_start): ...to here.
9214 (timevar_cond_stop): Likewise, from here...
9215 (timer::cond_stop): ...to here.
9216 (validate_phases): Rename to...
9217 (timer::validate_phases): ...this, and add "m_" prefixes. Make
9218 locals "total" and "tv" const.
9219 (timevar_print): Rename to...
9220 (timer::print): ...this, and add "m_" prefixes. Make locals
9221 "total" and "tv" const. Eliminate test for timevar_enable.
9222 * timevar.h (timevar_enable): Eliminate.
9223 (g_timer): New declaration.
9224 (timevar_push_1): Eliminate.
9225 (timevar_pop_1): Eliminate.
9226 (timevar_print): Eliminate.
9227 (class timer): New class.
9228 (timevar_push): Rewrite to use g_timer.
9229 (timevar_pop): Likewise.
9230 * toplev.c (toplev::~toplev): Likewise.
9232 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
9234 * arm-protos.h (arm_sched_autopref): Delete.
9235 (tune_params): Re-organize, use enums for flag values.
9236 (FUSE_OPS): New macro.
9237 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
9238 (ARM_PREFETCH_BENEFICIAL): Likewise.
9239 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
9240 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9241 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
9242 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
9243 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
9244 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
9245 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
9246 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
9248 (arm_option_override, thumb2_reorg, arm_print_tune_info)
9249 (aarch_macro_fusion_pair_p): Update uses of current_tune.
9250 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
9252 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
9254 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
9257 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
9258 Sandra Loosemore <sandra@codesourcery.com>
9260 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
9262 (REG_CLASS_NAMES): Add "IJMP_REGS".
9263 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
9264 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
9265 use new "c" register constraint.
9266 * config/nios2/constraint.md (c): New register constraint
9267 corresponding to IJMP_REGS.
9269 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9271 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
9272 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
9273 define_splits): Delete, revamp, transmogrify into ...
9274 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9275 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9276 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9279 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9281 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
9282 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
9284 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9286 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
9287 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
9288 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
9289 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
9290 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
9291 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
9292 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
9293 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
9294 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
9295 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9296 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
9297 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
9298 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
9299 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
9300 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
9301 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
9302 and 30 corresponding splitters): Delete.
9304 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9306 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
9309 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9311 * combine.c (recog_for_combine_1): New function, factored out
9312 from recog_for_combine.
9313 (change_zero_ext): New function.
9314 (recog_for_combine): If recog fails, try again with the pattern
9315 modified by change_zero_ext; if that still fails, restore the
9318 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
9320 * combine.c (get_undo_marker): New function.
9321 (undo_to_marker): New function, largely factored out from ...
9322 (undo_all): ... this. Adjust.
9324 2015-05-12 Richard Biener <rguenther@suse.de>
9326 PR tree-optimization/66101
9327 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
9328 fixup if we turn a loop exit edge to a fallthru edge.
9330 2015-05-12 Richard Biener <rguenther@suse.de>
9332 PR tree-optimization/37021
9333 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
9334 (SLP_TREE_TWO_OPERATORS): New define.
9335 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
9336 SLP_TREE_TWO_OPERATORS.
9337 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
9339 (vect_build_slp_tree): Adjust.
9340 (vect_analyze_slp_cost_1): Likewise.
9341 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
9342 emitting two vector stmts and mixing the results.
9344 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
9346 * call.c (print_z_candidates): Remove dead code.
9348 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9350 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
9351 and zEC12_simple_fp.
9352 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
9355 2015-05-12 Tom de Vries <tom@codesourcery.com>
9357 PR tree-optimization/66010
9358 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
9360 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
9361 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
9362 va_lists are passed, and remove corresponding handling.
9363 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
9364 do_deref argument to ifn_va_arg.
9365 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
9368 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9371 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
9372 REG before taking its REGNO.
9374 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
9376 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
9377 rsp->sign_bit_copies and rsp->nonzero_bits into ...
9378 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
9379 present to get more accurate information about the number of sign bit
9380 copies and non zero bits.
9382 2015-05-12 Richard Biener <rguenther@suse.de>
9384 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
9385 do not allow unrolling.
9387 2015-05-11 Richard Henderson <rth@redhat.com>
9389 * config/i386/i386-modes.def (CCP): New.
9390 * config/i386/i386.c (put_condition_code): Handle it.
9391 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
9393 2015-05-11 Richard Henderson <rth@redhat.com>
9395 * target.def (md_asm_clobbers): Replace with...
9396 (md_asm_adjust): this.
9397 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
9398 (TARGET_MD_ASM_ADJUST): New.
9400 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
9401 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
9402 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
9404 * cfgexpand.c (check_operand_nalternatives): Accept vector of
9405 constraints instead of lists of outputs and inputs.
9406 (expand_asm_stmt): Save and restore input_location around the
9407 body of the function. Move asm data into vectors instead of
9408 building tree lists. Generate cleanup sequences as needed,
9409 rather than waiting til the end. Use new md_asm_adjust hook.
9411 * config/vxworks.c: Include vec.h before target.h.
9412 * gimple.c: Likewise.
9413 * incpath.c: Likewise.
9414 * mode-switching.c: Likewise.
9416 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
9417 (cris_md_asm_adjust): this.
9418 (TARGET_MD_ASM_CLOBBERS): Remove.
9419 (TARGET_MD_ASM_ADJUST): New.
9420 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
9421 (ix86_md_asm_adjust): this.
9422 (TARGET_MD_ASM_CLOBBERS): Remove.
9423 (TARGET_MD_ASM_ADJUST): New.
9424 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
9425 (mn10300_md_asm_adjust): this.
9426 (TARGET_MD_ASM_CLOBBERS): Remove.
9427 (TARGET_MD_ASM_ADJUST): New.
9428 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
9429 (rs6000_md_asm_adjust): this.
9430 (TARGET_MD_ASM_CLOBBERS): Remove.
9431 (TARGET_MD_ASM_ADJUST): New.
9432 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
9433 (visium_md_asm_adjust): this.
9434 (TARGET_MD_ASM_CLOBBERS): Remove.
9435 (TARGET_MD_ASM_ADJUST): New.
9437 2015-05-11 Richard Henderson <rth@redhat.com>
9439 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
9440 if noutputs is zero.
9441 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
9443 * cfgexpand.c (expand_asm_operands): Merge into...
9444 (expand_asm_stmt): ... here.
9446 * cfgexpand.c (expand_asm_operands): Don't call
9447 resolve_asm_operand_names.
9448 * stmt.c (resolve_asm_operand_names): Clarify block comment.
9450 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
9452 * dwarf2out.c (gen_member_die): Sanity check that we access
9453 TYPE_MAIN_VARIANT for TYPE_METHODS.
9454 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
9455 checking TYPE_METHODS.
9456 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
9458 (build_distinct_type_copy): Clear TYPE_METHODS.
9459 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
9460 (verify_type): Allow TYPE_METHODS to be error_mark_node.
9461 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
9463 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
9465 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
9466 (emit_pattern_before_setloc): Likewise.
9468 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
9470 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
9471 for define_peephole2s.
9472 (get_peephole2_pattern): New function.
9473 (main): Use it. Call validate_pattern.
9475 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9477 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
9478 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
9479 (Last callee saved reg is different for AVR_TINY architecture)
9481 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
9483 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
9484 when looking for memory references.
9486 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
9489 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
9490 via function pointers.
9492 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
9494 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
9495 indirect call by forcing address into a pseudo with -fno-plt.
9496 * common.opt (flag_plt): New option.
9497 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
9498 ([-fno-plt]): Document.
9500 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
9503 * config/rs6000/option-defaults.h: Add space between string literal
9506 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
9508 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
9509 accross ARM targets.
9511 2015-05-11 Christian Bruel <christian.bruel@st.com>
9513 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
9514 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
9516 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
9518 PR rtl-optimization/66076
9519 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
9520 Don't grow the heap array if it is already big enough from a
9523 2015-05-11 Christian Bruel <christian.bruel@st.com>
9525 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
9526 (is_called_in_ARM_mode): Remove.
9527 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
9528 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
9529 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
9530 arm_declare_function_name.
9532 2015-05-11 Christian Bruel <christian.bruel@st.com>
9534 * config/arm/arm.c (arm_option_override): Reoganized and split into :
9535 (arm_option_params_internal); New function.
9536 (arm_option_check_internal): New function.
9537 (arm_option_override_internal): New function.
9538 (thumb_code, thumb1_code): Remove.
9539 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
9540 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
9541 (thumb_code, thumb1_code): Remove.
9542 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
9544 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
9546 * config/alpha/alpha.c (alpha_emit_set_const_1)
9547 (alpha_emit_set_long_const, alpha_extract_integer)
9548 (alpha_legitimate_constant_p, alpha_split_const_mov)
9549 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
9550 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9551 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
9553 * config/alpha/predicates.md (mode_mask_operand): Do not match
9555 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9556 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
9557 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
9558 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
9559 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
9561 2015-05-11 Jakub Jelinek <jakub@redhat.com>
9564 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
9565 default_binds_local_p_2.
9566 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
9567 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
9569 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9571 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
9573 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9575 Patch by Richard Biener
9576 * coverage.c (coverage_obj_init): Delay building of type variant
9577 until the type is finished.
9579 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9581 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
9582 mismatch between C and C++ type; compoare correctly ARG_TYPES
9583 for non-prototypes and output correctly parameter index for METHOD_TYPE.
9584 (odr_types_equivalent_p): Fix wording of warning about attributes;
9585 it is OK to match prototype and non-prototype.
9587 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9589 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
9590 TYPE_ARG_TYPES list.
9591 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
9592 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
9594 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
9596 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
9597 * tree.h (is_lang_specific): Constify.
9599 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
9601 PR tree-optimization/64454
9602 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
9605 2015-05-08 Jason Merrill <jason@redhat.com>
9607 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
9608 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
9609 config/darwin.h, config/darwin9.h, config/elfos.h,
9610 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
9611 config/microblaze/microblaze.h, config/mips/mips.h,
9612 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
9613 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
9614 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9615 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
9616 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
9617 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
9618 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
9619 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
9620 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
9621 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
9622 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
9623 between string literal and macro name.
9625 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9627 * jump.c: Change argument types to rtx_insn *.
9630 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9632 * lra-constraints.c: Change argument type to rtx_insn *.
9634 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9636 * df-problems.c: Change argument type to rtx_insn *.
9638 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9640 * combine.c: Change argument type to rtx_insn *.
9642 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9645 * rtlanal.c: Change argument type to rtx_insn *.
9647 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9649 * sched-deps.c: Change argument types to rtx_insn *.
9650 * sched-int.h: Adjust.
9652 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9654 * dwarf2cfi.c: Change argument type to rtx_insn *.
9656 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9658 * ira.c (decrease_live_ranges_number): Changetype of local
9659 variable to rtx_insn *.
9660 * recog.c: Change argument types to rtx_insn *.
9663 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9665 * reorg.c: Change argument types to rtx_insn *.
9667 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9669 * ira-color.c: Change argument types to rtx_insn *.
9670 * lra-eliminations.c: Likewise.
9673 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9675 * gcse.c: Change argument types to rtx_insn *.
9677 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9679 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
9681 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9683 * emit-rtl.c (emit_debug_insn_before): Change argument type to
9687 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9689 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
9692 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9694 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
9697 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9699 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
9702 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9704 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
9707 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9709 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
9713 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9715 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
9719 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9721 * except.c (can_nonlocal_goto): Change type of argument to
9725 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9727 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
9730 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9732 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
9733 * cfgrtl.c (can_delete_label_p): Adjust.
9736 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9738 * reorg.c (stop_search_p): Change argument to rtx_insn *.
9740 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9742 * except.c (make_reg_eh_region_note): Change argument to
9744 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
9747 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9749 * mode-switching.c (commit_mode_sets): Change type of local
9750 variable from rtx to rtx_insn *.
9752 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
9754 * doc/install.texi (--enable-languages): Add missing jit and lto info.
9755 Add ^ to grep command.
9756 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
9757 arg to last gimple_simplify declaration. Add missing gimple_build
9758 declaration for built-in function case with four tree args.
9760 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
9761 Szabolcs Nagy <szabolcs.nagy@arm.com>
9763 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
9764 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
9765 (GNU_USER_DYNAMIC_LINKERN32): Update.
9767 2015-05-08 Richard Biener <rguenther@suse.de>
9769 PR tree-optimization/66036
9770 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9771 Handle strided group loads.
9772 (vect_verify_datarefs_alignment): Likewise.
9773 (vect_enhance_data_refs_alignment): Likewise.
9774 (vect_analyze_group_access): Likewise.
9775 (vect_analyze_data_ref_access): Likewise.
9776 (vect_analyze_data_ref_accesses): Likewise.
9777 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
9778 (vectorizable_load): Likewise.
9780 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
9782 * config/rs6000/rs6000.md: Require operand inequality in one
9785 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
9786 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9788 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
9790 * config/rx/rx.md (movdi, movdf): Likewise.
9791 Likewise for define_peephole2s.
9793 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
9795 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
9796 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
9797 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
9798 vtst_u64): Rewrite using gcc vector extensions.
9800 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
9802 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
9803 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
9805 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
9807 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
9809 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
9811 * config/glibc-stdint.h (OPTION_MUSL): Define.
9812 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
9813 Change the definition based on OPTION_MUSL for 64 bit targets.
9814 * config/linux.h (OPTION_MUSL): Redefine.
9815 * config/alpha/linux.h (OPTION_MUSL): Redefine.
9816 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
9817 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
9819 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
9820 Szabolcs Nagy <szabolcs.nagy@arm.com>
9822 * config.gcc (LIBC_MUSL): New tm_defines macro.
9823 * config/linux.h (OPTION_MUSL): Define.
9824 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
9825 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
9826 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9827 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9828 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9829 * config/linux.opt (mmusl): New option.
9830 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
9831 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9832 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9833 * configure: Regenerate.
9835 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
9836 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9839 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
9840 * config/i386/knetbsd-gnu64.h: New file.
9842 2015-05-08 Marek Polacek <polacek@redhat.com>
9845 * doc/invoke.texi: Document -Woverride-init-side-effects.
9847 2015-05-07 Marek Polacek <polacek@redhat.com>
9850 * doc/invoke.texi: Document -Wshift-negative-value.
9852 2015-05-06 Aditya Kumar <hiraditya@msn.com>
9854 * gcov-tool.c (do_merge): Refactore to remove int ret.
9855 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
9856 !type == FUNC to type != FUNC.
9857 * reload.h (struct target_reload): Changee to type of
9858 x_spill_indirect_levels from bool to unsigned char.
9860 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
9862 * rtl.h (always_void_p): New function.
9863 * gengenrtl.c (always_void_p): Likewise.
9864 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
9865 with code foo are always VOIDmode.
9866 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
9867 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
9868 compare-elim.c, config/aarch64/aarch64.c,
9869 config/aarch64/aarch64.md, config/alpha/alpha.c,
9870 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
9871 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
9872 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
9873 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9874 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
9875 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
9876 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
9877 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
9878 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
9879 config/ia64/vect.md, config/iq2000/iq2000.c,
9880 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
9881 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
9882 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
9883 config/mep/mep.c, config/microblaze/microblaze.c,
9884 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
9885 config/mn10300/mn10300.c, config/msp430/msp430.c,
9886 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
9887 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
9888 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
9889 config/rs6000/altivec.md, config/rs6000/rs6000.c,
9890 config/rs6000/rs6000.md, config/rs6000/vector.md,
9891 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
9892 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
9893 config/sh/sh.md, config/sh/sh_treg_combine.cc,
9894 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
9895 config/spu/spu.md, config/stormy16/stormy16.c,
9896 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
9897 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
9898 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
9899 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
9900 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
9901 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
9902 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
9903 var-tracking.c: Update calls accordingly.
9905 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
9909 * varasm.c (function_mergeable_rodata_prefix): New function.
9910 (mergeable_string_section): Use it.
9911 (mergeable_constant_section): Use it.
9913 2015-05-07 Jeff Law <law@redhat.com>
9916 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
9917 simplifier to narrow arithmetic.
9918 * generic-match-head.c: (types_match, single_use): New functions.
9919 * gimple-match-head.c: (types_match, single_use): New functions.
9921 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9923 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
9926 2015-05-07 Richard Biener <rguenther@suse.de>
9928 PR tree-optimization/66002
9929 * passes.def: Schedule another pass_merge_phi after ifcombine, right
9932 2015-05-07 Marek Polacek <polacek@redhat.com>
9933 Martin Uecker <uecker@eecs.berkeley.edu>
9935 * doc/invoke.texi: Document -fsanitize=bounds-strict.
9936 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
9937 into SANITIZE_NONDEFAULT.
9938 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
9940 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
9943 * config/alpha/alpha.c (alpha_override_options_after_change): New.
9944 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
9945 (alpha_override_options): Move align_loops, align_jumps and
9946 align_functions handling into alpha_override_options_after_change.
9948 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
9949 Chris Jones <chrisj@nvidia.com>
9950 Joshua Conner <jconner@nvidia.com>
9952 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
9953 linking of crtfastmath.o.
9954 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
9956 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9958 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
9959 (cstore<mode>4_unsigned_imm): New expander.
9960 (cstore<mode>4): Remove empty constraint strings. Use the new
9963 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
9966 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
9969 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9971 * config/aarch64/geniterators.sh: Use standard BRE in sed.
9973 2015-05-06 Alan Modra <amodra@gmail.com>
9976 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
9977 (UNSPEC_NOP): Define.
9978 (reload_vsx_from_gpr<mode>): Add missing DONE.
9979 (reload_gpr_from_vsx<mode>): Likewise.
9980 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
9981 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
9983 2015-05-06 Christian Bruel <christian.bruel@st.com>
9986 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
9987 align_jumps, align_functions into aarch64_override_options_after_change.
9989 2015-05-06 Richard Biener <rguenther@suse.de>
9991 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
9992 vect_transform_slp_perm_load to check if we support a permutation
9993 for basic-block vectorization.
9995 2015-05-06 Nick Clifton <nickc@redhat.com>
9997 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
9998 used, even if it is not being used as a frame pointer.
10000 2015-05-05 Jason Merrill <jason@redhat.com>
10002 * dwarf2out.c (gen_member_die): Don't emit anything for an
10003 anonymous class constructor.
10005 2015-05-05 David Malcolm <dmalcolm@redhat.com>
10007 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
10008 that it reflects the block structure.
10009 (afdo_propagate_edge): Likewise.
10010 (afdo_calculate_branch_prob): Likewise.
10011 (afdo_annotate_cfg): Likewise.
10012 * cfgcleanup.c (equal_different_set_p): Likewise.
10013 (try_crossjump_to_edge): Likewise.
10014 * cgraph.c (cgraph_node::verify_node): Likewise.
10015 * cgraphunit.c (expand_all_functions): Likewise.
10016 * config/i386/i386.c (ix86_expand_copysign): Likewise.
10017 (exact_dependency_1): Likewise.
10018 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
10019 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
10020 * gensupport.c (process_define_subst): Likewise.
10021 * lto-wrapper.c (merge_and_complain): Likewise.
10022 * tree-if-conv.c (if_convertible_bb_p): Likewise.
10023 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
10024 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
10025 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
10026 * tree-vect-loop.c (vectorizable_reduction): Likewise.
10027 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10028 * tree-vect-stmts.c (vectorizable_shift): Likewise.
10029 * tree-vrp.c (vrp_finalize): Likewise.
10030 * tree.c (variably_modified_type_p): Likewise.
10032 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
10034 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
10035 on darwin12 and later.
10036 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
10037 file to pass -rdynamic on darwin12 and later.
10038 * config/darwin.opt (rdynamic): Add.
10040 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
10042 * doc/extend.texi (C Extensions): Update menu for moved Variable
10043 Attributes and Type Attributes sections.
10045 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
10048 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
10049 if rep_8byte stringop strategy was specified for 32-bit target.
10051 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
10054 * config/i386/i386.md (vector convert to float spltiter): Check for
10055 xmm16+, when splitting scalar float conversion.
10056 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
10058 2015-05-05 Nick Clifton <nickc@redhat.com>
10060 * config/msp430/msp430-opts.h (enum msp430_regions): New.
10061 * config/msp430/msp430.c (msp430_override_options): Complain if
10062 -mcode-region or -mdata-region is used on a non MSP430X.
10063 (msp430_section_attr): New function. Checks lower, upper and
10065 (msp430_attribute_table): Add lower, upper and either.
10066 (gen_prefix): New function. Generates a prefix for a section
10068 (msp430_select_section): New function - handles the choice of
10069 section for an object. Takes into account memory region
10070 attributes and options.
10071 (msp430_function_section): Use gen_prefix.
10072 (TARGET_SECTION_TYPE_FLAGS): Define.
10073 (msp430_section_type_flags): New function.
10074 (TARGET_ASM_UNIQUE_SECTION): Define.
10075 (msp430_unique_section): New function.
10076 (msp430_output_aligned_decl_common): New function.
10077 (msp430_do_not_relax_short_jumps): New function.
10078 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
10080 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
10081 * config/msp430/msp430-protos.h
10082 (msp430_do_not_relax_short_jumps): New prototype.
10083 (msp430_output_aligned_decl_common): New prototype.
10084 * config/msp430/msp430.md (length): New attribute.
10085 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
10086 then use a long code sequence for short jumps.
10087 * config/msp430/msp430.opt (mcode-region): New.
10088 (mdata-region): New.
10089 * doc/invoke.texi: Document new options.
10090 * doc/extend.texi: Document new attributes.
10092 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
10094 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
10095 (tune_params): Add field branch_costs.
10096 (aarch64_branch_cost): Declare.
10097 * gcc/config/aarch64.c (generic_branch_cost): New.
10098 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
10099 (cortexa53_tunings): Likewise.
10100 (cortexa57_tunings): Likewise.
10101 (thunderx_tunings): Likewise.
10102 (xgene1_tunings): Likewise.
10103 (aarch64_branch_cost): Define.
10104 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
10106 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
10108 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
10109 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
10110 * config/i386/i386.md: Ditto.
10111 * config/i386/winnt.c: Ditto.
10113 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
10115 * doc/extend.texi (__atomic Builtins): Move implementation details
10116 to the end of the description, rewrite opening paragraphs, state
10117 difference with __sync builtins, state C11/C++11 assumptions,
10118 weaken itemized descriptions, add explanation of memory model
10119 behaviour, expand description of compare-exchange, simplify text.
10121 2015-05-05 Renlin Li <renlin.li@arm.com>
10123 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
10125 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
10127 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
10128 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
10129 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
10130 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
10131 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
10132 * configure: Regenerate.
10133 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
10134 * doc/install.texi (aarch64*-*-*): Document new
10135 --enable-fix-cortex-a53-843419 option.
10136 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
10137 and -mno-fix-cortex-a53-843419 options.
10139 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
10142 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
10144 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
10146 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
10147 fix overactive TYPE_MIN_VALUE check and add FIXME for type
10148 compatibility problems.
10150 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
10152 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
10154 (cbranchsi4_reg): New.
10155 * config/microblaze/microblaze.c
10156 (microblaze_expand_conditional_branch_reg): New.
10157 * config/microblaze/microblaze-protos.h
10158 (microblaze_expand_conditional_branch_reg): New prototype.
10160 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
10162 * config/microblaze/microblaze.md (peephole2): New.
10164 2015-05-04 Jeff Law <law@redhat.com>
10167 2015-05-04 Jeff Law <law@redhat.com>
10169 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
10170 simplifier to narrow arithmetic.
10171 * generic-match-head.c: (types_match, single_use): New functions.
10172 * gimple-match-head.c: (types_match, single_use): New functions.
10174 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10177 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
10178 (split_branches): Likewise.
10180 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
10182 * common.opt (fdelete-null-pointer-checks): Init to -1.
10183 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
10184 override flag_delete_null_pointer_checks default.
10185 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
10186 behavior re address zero. Better document target-specific behavior.
10187 (-fisolate-errneous-paths-dereference): Mention relationship to
10188 -fdelete-null-pointer-checks.
10190 2015-05-04 Jakub Jelinek <jakub@redhat.com>
10192 PR tree-optimization/65984
10193 * ubsan.c: Include tree-cfg.h.
10194 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
10195 stmt_could_throw_p test, rename can_throw variable to ends_bb.
10197 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
10199 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
10200 to CONST_DOUBLE_P predicate.
10201 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
10202 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
10203 allow only operands that satisfy standard_sse_constant_p predicate.
10204 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
10205 to CONST_DOUBLE_P predicate.
10207 2015-05-04 Jeff Law <law@redhat.com>
10209 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
10210 simplifier to narrow arithmetic.
10211 * generic-match-head.c: (types_match, single_use): New functions.
10212 * gimple-match-head.c: (types_match, single_use): New functions.
10214 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
10216 * config/arm/arm.c: Restore bootstrap.
10218 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
10220 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
10221 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
10222 as CONST_WIDE_INT, not CONST_DOUBLE.
10223 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
10224 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
10225 (ix86_find_base_term): Do not check for CONST_DOUBLE.
10226 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
10227 (ix86_build_signbit_mask): Rewrite using wide ints.
10228 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
10229 (ix86_rtx_costs): Handle CONST_WIDE_INT.
10230 (find_constant): Ditto.
10231 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
10232 using gen_int_mode.
10233 * config/i386/predicates.md (x86_64_immediate_operand)
10234 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10235 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
10236 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
10237 (const0_operand): Also match const_wide_int.
10238 (constm1_operand): Ditto.
10239 (const1_operand): Ditto.
10241 2015-05-04 Richard Biener <rguenther@suse.de>
10243 PR tree-optimization/65965
10244 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
10245 store groups at gaps.
10247 2015-05-04 Richard Biener <rguenther@suse.de>
10249 PR tree-optimization/65935
10250 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
10251 then make sure to apply that swapping to the IL.
10253 2015-05-04 Jakub Jelinek <jakub@redhat.com>
10255 * Makefile.in (PATCHLEVEL_c): New variable.
10256 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
10257 expand the same way as if DEVPHASE_c was non-empty.
10259 2015-05-04 Kai Tietz <ktietz@redhat.com>
10262 * lto-wrapper.c (run_gcc): Open filename
10265 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
10267 * doc/extend.texi (Variable Attributes, Type Attributes): Move
10268 sections up in file, to immediately after the Function Attributes
10271 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
10273 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
10275 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10277 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
10278 (insert_partition_copy_on_edge): Adjust.
10279 (insert_rtx_to_part_on_edge): Likewise.
10280 (insert_part_to_rtx_on_edge): Likewise.
10282 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10284 * function.c (set_return_jump_label): Change type of argument to
10286 * function.h (set_return_jump_label): Adjust.
10288 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10290 * reload.h (struct reg_equivs_t): Change type of init to
10292 * ira.c (fix_reg_equiv_init): Adjust.
10293 * reload1.c (eliminate_regs_1): Likewise.
10294 (init_eliminable_invariants): Likewise.
10296 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10298 * cselib.c (fp_setter_insn): Take a rtx_insn *.
10299 * cselib.h (fp_setter_insn): Adjust.
10301 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10303 * recog.c (struct validate_replace_src_data): Change type of
10304 insn field to rtx_insn *.
10305 (validate_replace_src_group): Change type of argument to rtx_insn *.
10306 * recog.h (validate_replace_src_group): Adjust.
10308 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10310 * haifa-sched.c: Change the type of some variables to rtx_insn *.
10311 * sched-deps.c: Likewise.
10312 * sched-int.h: Likewise.
10313 * sched-rgn.c: Likewise.
10314 * sel-sched.c: Likewise.
10316 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10319 * config/i386/i386.c: Change the type of some arguments to
10321 * config/arm/arm.c: Likewise.
10323 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10325 * lra-constraints.c: Change type of some arguments to rtx_insn *.
10327 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10329 * regcprop.c (kill_autoinc_value): Change type of argument to
10332 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10334 * genrecog.c (print_subroutine): Adjust.
10335 * recog.c (get_bool_attr_mask_uncached): Likewise.
10336 * recog.h (struct recog_data_d): Change the type of insn to
10339 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10341 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
10343 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10345 * df-problems.c (df_set_note): Change type of argument to
10348 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10350 * builtins.c (expand_builtin_trap): Change type of local
10351 variable to rtx_insn *.
10352 (add_sched_insns_for_speculation): Likewise.
10353 (ix86_emit_save_regs): Likewise.
10354 (get_scratch_register_on_entry): Likewise.
10355 (ix86_emit_restore_reg_using_pop): Likewise.
10356 (ix86_emit_leave): Likewise.
10357 (ix86_emit_restore_regs_using_mov): Likewise.
10358 (ix86_expand_epilogue): Likewise.
10360 (rl78_alloc_physical_registers_umul): Likewise.
10361 * cselib.c (discard_useless_locs): Likewise.
10362 (cselib_invalidate_regno): Likewise.
10363 (cselib_invalidate_mem): Likewise.
10364 * function.c (expand_function_start): Likewise.
10365 (emit_use_return_register_into_block): Likewise.
10366 * gcse.c: Likewise.
10367 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
10368 * ifcvt.c (noce_get_alt_condition): Likewise.
10369 * loop-doloop.c (doloop_condition_get): Likewise.
10370 * lra-constraints.c (inherit_in_ebb): Likewise.
10371 * modulo-sched.c (sms_schedule_by_order): Likewise.
10372 * recog.c (next_insn_tests_no_inequality): Likewise.
10373 * reorg.c (emit_delay_sequence): Likewise.
10374 (update_reg_dead_notes): Likewise.
10375 (fix_reg_dead_note): Likewise.
10376 (fill_slots_from_thread): Likewise.
10377 (delete_computation): Likewise.
10379 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
10381 * doc/extend.texi (Variable Attributes): Add menu and proper
10382 @nodes to subsections. Move Microsoft Windows attributes to
10383 their own subsection.
10384 (Type Attributes): Reorganize introduction to remove duplicate
10385 list of attributes. Add menu and proper @nodes to subsections.
10386 Alphabetize the main table of common attributes.
10388 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
10390 * match.pd: New simplification patterns.
10391 (x + (x & 1)) -> ((x + 1) & ~1)
10392 (x & ~(x & y)) -> ((x & ~y))
10393 (x | ~(x | y)) -> ((x | ~y))
10395 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10397 * target.def (attribute_table): Mention that struct attribute_spec
10398 is defined in tree-core.h rather than tree.h
10399 * doc/tm.texi: Regenerate.
10401 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
10403 * genrecog.c (test): Rename to rtx_test. Update rest of file
10406 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
10408 PR translation/65959
10409 * params.h (DEFPARAM): Rename msgid to nocmsgid.
10411 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
10413 * gcc/config/aarch64/aarch64-protos.h (tune_params):
10414 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
10415 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
10416 Return value depending on target.
10417 (generic_tunings): Initialize new target settings.
10418 (cortexa53_tunings): Likewise.
10419 (cortexa57_tunings): Likewise.
10420 (thunderx_tunings): Likewise.
10421 (xgene1_tunings): Likewise.
10423 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
10425 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
10426 Make Cortex-A53 shift costs more accurate.
10428 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10430 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
10433 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
10435 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
10436 Calculate cost of op0 and op1 in PLUS and MINUS cases.
10438 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10440 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10441 Add cost of op0 in the compare-with-fpzero case.
10443 2015-04-30 David Malcolm <dmalcolm@redhat.com>
10445 * builtins.c (fold_builtin_1): Remove spurious second
10447 * cgraph.h (symtab_node::get_availability): Likewise.
10448 * opts.c (common_handle_option): Remove spurious second semicolon.
10449 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
10450 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10452 2015-04-30 Caroline Tice <cmtice@google.com>
10454 PR gcov-profile/65929
10455 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
10456 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
10457 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
10458 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
10459 * doc/tm.texi: Regenerate.
10460 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
10461 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
10462 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
10463 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
10465 2015-04-30 Marek Polacek <polacek@redhat.com>
10467 * varasm.c (handle_cache_entry): Fix logic.
10469 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10471 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
10472 (*extrsi5_insn_uxtw_alt): Likewise.
10473 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
10474 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
10477 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10479 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
10482 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10484 * config/aarch64/aarch64.md
10485 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
10486 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
10487 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
10488 appropriately. Handle alternative EON form.
10490 2015-04-30 Renlin Li <renlin.li@arm.com>
10492 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
10493 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
10495 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
10498 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
10499 -fstrict-aliasing boundaries.
10501 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10503 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
10504 and [SU]MNEGL patterns.
10506 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10508 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
10509 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
10510 combined arithmetic-shift ops. Properly handle all shift and extend
10511 operations that can occur in combination with PLUS/MINUS.
10512 Rename maybe_fma to compound_p.
10513 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
10514 arithmetic and shift operations.
10516 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10518 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
10519 rather than arith_shift cost when costing ADD/MINUS of an
10522 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
10525 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
10528 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
10530 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
10531 are for the same position.
10533 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
10535 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
10537 (vectorize_loops): Use it.
10539 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
10541 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
10542 for aggregate types.
10543 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
10544 type to be non_ODR.
10545 * tree.c (need_assembler_name_p): Compute mangled name for
10546 non-fundamental types and integer types.
10548 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
10550 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
10552 * expr.c (expand_expr_real_2): Likewise.
10554 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
10556 * tree.c (build_common_builtin_nodes): Do not build
10557 __builtin_alloca_with_align as equivalent of library alloca.
10559 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
10561 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
10562 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
10564 * tree.c: Include print-tree.h and ipa-utils.h
10565 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
10566 (free_lang_data_in_cgraph): Call verify_type.
10567 (verify_type_variant): New function.
10568 (verify_type): New function.
10569 * tree.h (verify_type): Declare.
10571 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
10573 * config/mips/mips-cpus.def: (mips4): Change default processor
10574 from PROCESSOR_R8000 to PROCESSOR_R10000.
10576 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
10578 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
10579 la/jalr instead of jal.
10581 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
10584 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
10585 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
10586 (setcc+movzbl peephole2): Check also clobbered reg.
10587 (setcc+andl peephole2): Ditto.
10589 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
10592 * config/nvptx/mkoffload.c (target_ilp32): New variable.
10593 (main): Set it depending on "-foffload-abi=[...]".
10594 (compile_native, main): Use it to pass "-m32" or "-m64" to the
10597 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
10600 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
10601 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
10602 Flip lane index back at assembly time for bigendian.
10604 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
10606 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
10607 * gimplify.c (gimplify_omp_workshare): Use it.
10609 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
10611 * Makefile.in (build/genrecog.o): Depend on inchash.h.
10612 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
10614 * genrecog.c: Rewrite most of the code except for the third page.
10616 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
10618 * inchash.h, inchash.c: Include bconfig.h for build objects.
10619 * Makefile.in (build/inchash.o): New rule.
10621 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
10624 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
10625 number in type attribute expression.
10627 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
10629 * loop-iv.c (canon_condition): Generalize to all types of integer
10632 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
10634 * gimple-walk.c: Prune duplicate or unneeded includes.
10635 (walk_gimple_asm): Only call parse_input_constraint or
10636 parse_output_constraint if their findings are used.
10637 Honour parse_input_constraint and parse_output_constraint
10640 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
10642 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
10644 2015-04-29 Tom de Vries <tom@codesourcery.com>
10646 PR tree-optimization/65893
10647 * passes.def (pass_all_optimizations): Move pass_stdarg to after
10650 2015-04-29 Richard Biener <rguenther@suse.de>
10652 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10653 compute GROUP_SIZE for basic-block SLP.
10654 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
10655 take into account gaps.
10656 (vect_get_mask_element): Properly reject references to previous
10658 (vect_transform_slp_perm_load): Likewise.
10660 2015-04-29 Christian Bruel <christian.bruel@st.com>
10663 * config/i386/i386.c (ix86_default_align): New function.
10664 (ix86_override_options_after_change): Call ix86_default_align.
10665 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
10666 (ix86_override_options_after_change): New function.
10668 2015-04-28 Jeff Law <law@redhat.com>
10670 * tree-ssa-dom.c (record_equality); Fix comment typos.
10672 2015-04-28 Tom de Vries <tom@codesourcery.com>
10674 PR tree-optimization/65887
10675 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
10677 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
10679 * doc/extend.texi (Declaring Attributes of Functions): Split into
10680 subsections by target. Alphabetize the table of common attributes.
10681 Rewrite some of the introductory text to reflect the new structure.
10682 Update some cross-references to point to the new subsections.
10683 (Attribute Syntax): Put paragraph about "__" naming here. Remove
10684 duplicate copies in the discussion of function, label, and type
10687 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
10690 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
10692 2015-04-28 Jason Merrill <jason@redhat.com>
10695 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
10696 (finalize_type_size): Respect TYPE_USER_ALIGN.
10697 (layout_type) [ARRAY_TYPE]: Likewise.
10699 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
10701 * config/arm/arm.md (*arm_movt): Fix type attribute.
10702 (*cmpsi_shiftsi): Likewise.
10703 (*cmpsi_shiftsi_swp): Likewise.
10704 (*movsicc_insn): Likewise.
10705 (*cond_move): Likewise.
10706 (*if_plus_move): Likewise.
10707 (*if_move_plus): Likewise.
10708 (*if_arith_move): Likewise.
10709 (*if_move_arith): Likewise.
10710 (*if_shift_move): Likewise.
10711 (*if_move_shift): Likewise.
10712 (*arm_movtas_ze): Likewise.
10713 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
10714 redundancy and type attribute.
10715 (*thumb2_movsi_insn): Fix type attribute.
10716 (*thumb2_addsi_short): Likewise.
10717 (thumb2_addsi3_compare0): Likewise.
10718 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
10719 attributes accordingly.
10721 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10724 * function.c (pad_to_arg_alignment): Add parentheses.
10726 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
10728 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
10729 libgcc/config/frv/elf-lib.h.
10731 2015-04-28 Tom de Vries <tom@codesourcery.com>
10733 * tree-call-cdce.c: Fix example in header comment.
10735 2015-04-28 Richard Biener <rguenther@suse.de>
10737 PR tree-optimization/62283
10738 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
10739 fails fatally and we are vectorizing a basic-block simply
10740 cause the child to be constructed piecewise.
10741 (vect_analyze_slp_cost_1): Adjust.
10742 (vect_detect_hybrid_slp_stmts): Likewise.
10743 (vect_bb_slp_scalar_cost): Likewise.
10744 (vect_get_constant_vectors): For piecewise constructed
10745 constants place them after the last def.
10746 (vect_get_slp_defs): Adjust.
10747 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
10748 externals for basic-block vectorization.
10750 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10753 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
10755 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
10756 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
10757 (AARCH64_TUNE_FMA_STEERING): Likewise.
10758 * config/aarch64/aarch64-cores.def: Set
10759 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
10760 FMUL/FMADD instructions.
10761 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
10762 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
10763 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
10764 * config/aarch64/cortex-a57-fma-steering.h: New file.
10765 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10767 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
10769 * gensupport.c (std_preds): Add missing codes to address_operand entry.
10771 2015-04-28 Richard Biener <rguenther@suse.de>
10773 PR tree-optimization/65851
10774 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
10775 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
10776 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
10777 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
10778 (ccp_visit_phi_node): Adjust.
10779 (evaluate_stmt): For simplifications to SSA names return its
10780 lattice value if that isn't VARYING. Return immediately when
10781 simplified to a constant.
10782 (visit_assignment): Adjust.
10783 (ccp_visit_stmt): Likewise.
10785 2015-04-28 Tom de Vries <tom@codesourcery.com>
10787 PR tree-optimization/65818
10788 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
10791 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10793 * calls.c (save_fixed_argument_area): Don't check
10794 ARGS_GROW_DOWNWARD with the preprocessor.
10795 (restore_fixed_argument_area): Likewise.
10796 (mem_overlaps_already_clobbered_arg_p): Likewise.
10797 (check_sibcall_argument_overlap): Likewise.
10798 (expand_call): Likewise.
10799 (emit_library_call_value_1): Likewise.
10800 (store_one_arg): Likewise.
10801 * function.c (assign_parms): Likewise.
10802 (locate_and_pad_parm): Likewise.
10803 (pad_to_arg_alignment): Likewise.
10804 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10806 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10808 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
10809 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
10810 * calls.c (save_fixed_argument_area): Don't chekc if
10811 ARGS_GROW_DOWNWARD is defined.
10812 (restore_fixed_argument_area): Likewise.
10813 (mem_overlaps_already_clobbered_arg_p): Likewise.
10814 (check_sibcall_argument_overlap): Likewise.
10815 (expand_call): Likewise.
10816 (emit_library_call_value_1): Likewise.
10817 (store_one_arg): Likewise.
10818 * function.c (assign_parms): Likewise.
10819 (locate_and_pad_parm): Likewise.
10820 (pad_to_arg_alignment): Likewise.
10821 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
10823 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10825 * defaults.h (gen_epilogue): New function.
10826 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
10828 * cfgrtl.c (cfg_layout_finalize): Likewise.
10829 * df-scan.c: Likewise.
10830 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10831 (reposition_prologue_and_epilogue_notes): Likewise.
10832 * reorg.c (find_end_label): Likewise.
10833 * toplev.c: Likewise.
10835 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10837 * bb-reorder.c (HAVE_return): Don't check if its undefined.
10838 * defaults.h (gen_simple_return): New function.
10839 (gen_simple_return): Likewise.
10840 (HAVE_return): Add default definition to false.
10841 (HAVE_simple_return): Likewise.
10842 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
10843 HAVE_return and HAVE_simple_return are defined.
10844 * function.c (gen_return_pattern): Likewise.
10845 (convert_jumps_to_returns): Likewise.
10846 (thread_prologue_and_epilogue_insns): Likewise.
10847 * reorg.c (find_end_label): Likewise.
10848 (dbr_schedule): Likewise.
10849 * shrink-wrap.c: Likewise.
10850 * shrink-wrap.h: Likewise.
10852 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10854 * defaults.h (EPILOGUE_USES): Add default definition of false.
10855 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
10856 * resource.c (init_resource_info): Likewise.
10858 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10860 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
10862 * dwarf2out.c (field_byte_offset): REmove check if
10863 PCC_BITFIELD_TYPE_MATTERS is defined.
10864 * stor-layout.c (layout_decl): Likewise.
10865 (update_alignment_for_field): Likewise.
10866 (place_field): Likewise.
10868 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10870 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
10872 * regrename.c (check_new_reg_p): Remove check if
10873 HARD_REGNO_RENAME_OK is defined.
10874 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
10876 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10878 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
10879 * cse.c (fold_rtx): Likewise.
10880 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
10881 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
10882 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
10883 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
10884 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
10885 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
10886 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
10887 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
10888 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
10889 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
10891 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
10892 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
10893 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
10894 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
10895 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
10896 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
10897 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
10898 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
10899 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
10900 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
10901 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
10902 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
10903 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
10904 * doc/tm.texi: Regenerate.
10905 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
10906 either true or false.
10908 2015-04-27 Jeff Law <law@redhat.com>
10910 PR tree-optimization/65217
10911 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
10912 of them has a single use, make sure it is the LHS of the implied
10915 2015-04-28 Alan Modra <amodra@gmail.com>
10918 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
10919 (offsettable_ok_by_alignment): Use minimum of decl and toc
10920 pointer alignment. Replace dead code with assertion.
10921 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
10922 case if size exceeds toc pointer alignment.
10923 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
10924 (rs6000_emit_move): Likewise.
10925 * configure.ac: Add linker toc pointer alignment check.
10926 * configure: Regenerate.
10927 * config.in: Regenerate.
10929 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
10931 * config.gcc: Add h8300-*-linux.
10932 * config/h8300/linux.h: New.
10933 * config/h8300/t-linux: New.
10934 * config/h8300/h8300.c (h8300_option_override): Normal mode
10935 is not supported for h8300-*-linux.
10936 (h8300_file_start): Target priority change.
10937 (get_shift_alg): Likewise.
10938 (h8300_shift_need_scratch_p): Likewise.
10939 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10940 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
10942 2015-04-27 Caroline Tice <cmtice@google.com>
10944 * final.c (final_scan_insn): Output cold_function_name as function
10946 * varasm.c (cold_function_name): Make global.
10947 (assemble_start_function): Re-set cold_function_name.
10948 (assemble_end_function): Output cold partition size.
10949 * varasm.h (cold_function_name): Declare global.
10951 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
10953 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
10954 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
10956 (*movxi_internal_avx512f): Ditto.
10957 (define_split): Check for xmm16+, when splitting scalar float_extend.
10958 (*extendsfdf2_mixed): Use "v" constraint.
10959 (define_split): Check for xmm16+, when splitting scalar float_truncate.
10960 (*truncdfsf_fast_sse): Use "v" constraint.
10961 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
10962 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
10963 (define_peephole2): Check for xmm16+, when converting scalar
10965 (define_peephole2): Check for xmm16+, when converting scalar
10967 (*fop_<mode>_comm_mixed): Use "v" constraint.
10968 (*fop_<mode>_comm_sse): Ditto.
10969 (*fop_<mode>_1_mixed): Ditto.
10970 (*sqrt<mode>2_sse): Ditto.
10971 (*ieee_s<ieee_maxmin><mode>3): Ditto.
10973 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10975 * combine.c (simplify_if_then_else): Use std::swap instead
10976 of manually swapping.
10977 (known_cond): Likewise.
10978 (simplify_comparison): Likewise.
10980 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
10983 * config/rs6000/htm.md: Remove all define_expands.
10984 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
10985 UNSPECV_HTM_TABORTWCI): Remove.
10986 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
10987 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
10988 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
10989 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
10990 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
10991 tabortwci_internal): Remove define_insns.
10992 (tabort<wd>c, tabort<wd>ci): New define_insns.
10993 (tabort): Use gpc_reg_operand.
10994 (tcheck): Remove operand.
10995 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
10996 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
10998 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
10999 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
11000 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
11001 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
11002 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
11003 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
11004 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
11005 (tcheck): Remove builtin argument.
11006 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
11008 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
11009 tabortdc and tabortdci builtins when not in 64-bit mode.
11010 Modify code to handle the loss of the HTM define_expands.
11011 Emit code to copy the CR register to TARGET.
11012 (htm_init_builtins): Modify code to handle the loss of the HTM
11014 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
11015 (RS6000_BTC_64BIT): Likewise.
11016 (RS6000_BTC_CR): New macro.
11017 * doc/extend.texi: Update documentation for htm builtins.
11019 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11021 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
11022 of manually swapping.
11023 (simplify_associative_operation): Likewise.
11024 (simplify_binary_operation): Likewise.
11025 (simplify_plus_minus): Likewise.
11026 (simplify_relational_operation): Likewise.
11027 (simplify_ternary_operation): Likewise.
11029 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
11031 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
11032 (xs_hi_nonmemory_operand): Remove error.
11033 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
11034 general_operand rather than xs_hi_general_operand.
11036 2015-04-27 Richard Biener <rguenther@suse.de>
11038 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
11039 (record_equivalences_from_stmt): Valueize rhs.
11040 (record_equality): Canonicalize x and y order via
11041 tree_swap_operands_p. Do not swap operands for same loop depth.
11043 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
11047 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
11048 Add hint how to use own spec file.
11050 2015-04-27 Jakub Jelinek <jakub@redhat.com>
11052 PR tree-optimization/65875
11053 * tree-vrp.c (update_value_range): If in is_new case setting
11054 old_vr to VR_VARYING, also set new_vr to it. Remove
11055 old_vr->type == VR_VARYING test.
11056 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
11057 SSA_PROP_INTERESTING if update_value_range returned true,
11058 but new range is VR_VARYING.
11060 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
11062 * combine.c (sign_extend_short_imm): New.
11063 (set_nonzero_bits_and_sign_copies): Use above new function for sign
11064 extension of src short immediate.
11065 (reg_nonzero_bits_for_combine): Likewise for tem.
11067 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
11069 * stor-layout.c (self_referential_component_ref_p): New predicate.
11070 (copy_self_referential_tree_r): Use it.
11071 (self_referential_size): Punt for simple operations directly involving
11072 self-referential component references.
11073 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
11075 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
11077 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
11079 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
11081 * vec.h (vec): Make splice arguments const. Update definitions
11084 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
11086 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
11089 2015-04-26 Tom de Vries <tom@codesourcery.com>
11091 PR tree-optimization/65826
11092 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
11094 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
11096 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
11097 (*madd3<mode>): Ditto.
11098 (*msub4<mode>): Ditto.
11099 (*msub3<mode>): Ditto.
11100 (*nmadd4<mode>): Ditto.
11101 (*nmadd3<mode>): Ditto.
11102 (*nmadd4<mode>_fastmath): Ditto.
11103 (*nmadd3<mode>_fastmath): Ditto.
11104 (*nmsub4<mode>): Ditto.
11105 (*nmsub3<mode>): Ditto.
11106 (*nmsub4<mode>_fastmath): Ditto.
11107 (*nmsub3<mode>_fastmath): Ditto.
11109 2015-04-24 Jason Merrill <jason@redhat.com>
11112 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
11113 down when building TYPE_CANONICAL.
11114 (build_pointer_type_for_mode): Likewise.
11116 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
11118 * genrecog.c (validate_pattern): Check matching constraint refers
11119 to a lower numbered operand.
11121 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11124 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
11125 save to independent variables use the Save attribute. This will
11126 allow these options to be modified with the #pragma/attribute
11128 (-mallow-movmisalign): Likewise.
11129 (-mallow-df-permute): Likewise.
11130 (-msched-groups): Likewise.
11131 (-malways-hint): Likewise.
11132 (-malign-branch-targets): Likewise.
11133 (-mvectorize-builtins): Likewise.
11134 (-msave-toc-indirect): Likewise.
11136 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
11137 can be set via the #pragma/attribute target support.
11138 (rs6000_opt_vars): Likewise.
11139 (rs6000_inner_target_options): If VSX was set, also set
11140 -mno-avoid-indexed-addresses.
11142 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11144 * config/arm/iterators.md (shiftable_ops): Rename to...
11145 (SHIFTABLE_OPS): ... This. Update use in comments.
11146 (ior_xor): Rename to...
11147 (IOR_XOR): ... This.
11148 (vqh_ops): Rename to...
11149 (VQH_OPS): ... This.
11150 (vqhs_ops): Rename to...
11151 (VQHS_OPS): ... This.
11152 (rshifts): Rename to...
11153 (RSHIFTS): ... This.
11154 (returns): Rename to...
11155 (RETURNS): ... This.
11156 * config/arm/arm.md: Update uses of the above.
11157 * config/arm/neon.md: Likewise.
11159 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11161 * config.host (case ${host}): Add aarch64*-*-linux case.
11162 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
11163 fields to all the cores.
11164 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
11165 Add MCPU_MTUNE_NATIVE_SPECS.
11166 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
11167 field to all extensions.
11168 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
11169 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
11170 Adjust definition of AARCH64_OPT_EXTENSION.
11171 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
11172 (MCPU_MTUNE_NATIVE_SPECS): Define.
11173 * config/aarch64/driver-aarch64.c: New file.
11174 * config/aarch64/x-arch64: New file.
11175 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
11178 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
11179 Wei Mi <wmi@google.com>
11181 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
11182 * config/i386/i386.c (extract_base_offset_in_addr): New function.
11183 (ix86_operands_ok_for_move_multiple): Ditto.
11184 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
11185 (movlpd/movhpd to movupd peephole2): Ditto.
11187 2015-04-24 Marek Polacek <polacek@redhat.com>
11190 * input.h (from_macro_expansion_at): Define.
11193 * doc/invoke.texi: Update description of -Wlogical-op.
11195 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11197 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
11198 ternary operator in fprintf and harmonize spacing.
11200 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
11202 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
11203 Mark operand1 commutative.
11205 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
11207 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
11208 input operands in memory.
11209 (*vec_concatv2si_sse4_1): Ditto.
11210 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
11211 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
11213 (vec_extract_hi_v32hi): Ditto.
11214 (vec_extract_hi_v64hi): Ditto.
11215 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
11217 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11218 Steven Bosscher <steven@gcc.gnu.org>
11220 PR rtl-optimization/34503
11221 * cprop.c (cprop_reg_p): New.
11222 (hash_scan_set): Use above function to check if register can be
11224 (find_avail_set): Return up to two sets, one whose source is a
11225 register and one whose source is a constant. Sets are returned in an
11226 array passed as parameter rather than as a return value.
11227 (cprop_insn): Use a do while loop rather than a goto. Try each of the
11228 sets returned by find_avail_set, starting with the one whose source is
11229 a constant. Use cprop_reg_p to check if register can be propagated.
11230 (do_local_cprop): Use cprop_reg_p to check if register can be
11232 (implicit_set_cond_p): Likewise.
11234 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11236 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
11237 (sem_function::equals): IGNORED_NODES parameter is now unused;
11238 update call of equals_private.
11239 (sem_function::equals_private): Do not call equals_wpa; skip
11240 gimple body matching if there is no body.
11241 (sem_function::init): Add logic to hash tthunk info.
11242 (sem_function::parse): Also parse thunks.
11243 * ipa-icf.h (equals_private): Update declaration.
11245 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11247 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
11248 asterisk from name so this can be generated directly.
11249 (*altivec_stvx_<mode>_internal): Likewise.
11250 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
11251 that this is never called during or after reload/lra.
11252 (rs6000_frame_related): Remove split_reg
11253 argument and logic that references it.
11254 (emit_frame_save): Remove last parameter from call to
11255 rs6000_frame_related.
11256 (rs6000_emit_prologue): Remove last parameter from eight calls to
11257 rs6000_frame_related. Force generation of stvx instruction for
11258 Altivec register saves. Remove split_reg handling, which is no
11260 (rs6000_emit_epilogue): Force generation of lvx instruction for
11261 Altivec register restores.
11263 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11265 * config/rs6000/rs6000.opt (mcrypto): Change option description to
11266 match category changes in ISA 2.07B.
11268 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11270 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
11272 (cmp_op, cmp_type): New code attributes.
11273 (NEON_VCMP, NEON_VACMP): New int iterators.
11274 (cmp_op_unsp): New int attribute.
11275 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
11276 (neon_vceq<mode>): Delete.
11277 (neon_vc<cmp_op><mode>_insn): New pattern.
11278 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
11279 (neon_vcgeu<mode>): Delete.
11280 (neon_vcle<mode>): Likewise.
11281 (neon_vclt<mode>: Likewise.
11282 (neon_vcage<mode>): Likewise.
11283 (neon_vcagt<mode>): Likewise.
11284 (neon_vca<cmp_op><mode>): New define_expand.
11285 (neon_vca<cmp_op><mode>_insn): New pattern.
11286 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
11288 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11290 * tree.h (attribute_value_equal): Declare.
11291 * tree.c (attribute_value_equal): Export.
11293 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11295 * ipa-icf.c (sem_item::compare_attributes): New function.
11296 (sem_item::compare_referenced_symbol_properties): Compare variable
11298 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
11299 (sem_function::param_used_p): New function.
11300 (sem_function::equals_wpa): Fix attribute comparsion; match
11301 parameter type codes; do not compare paremter flags when
11302 they are not used; compare edge flags; compare indirect calls.
11303 (sem_item::update_hash_by_addr_refs): Hash reference type.
11304 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
11305 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
11306 reference use type.
11307 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
11308 * ipa-icf.h (compare_attributes, param_used_p): Declare.
11310 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
11312 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
11314 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
11315 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
11316 (sem_item::compare_referenced_symbol_properties): New.
11317 (sem_item::hash_referenced_symbol_properties): New.
11318 (sem_item::compare_cgraph_references): Rename to ...
11319 (sem_item::compare_symbol_references): ... this one; use
11320 compare_referenced_symbol_properties.
11321 (sem_function::equals_wpa): Do not compare
11322 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
11323 DECL_IS_OPERATOR_NEW; compare pointer sizes.
11324 (sem_item::update_hash_by_addr_refs): Call
11325 hash_referenced_symbol_properties.
11326 (sem_item::update_hash_by_local_refs): Cleanup.
11327 (sem_function::merge): Do not mix up symbol properties.
11328 (sem_variable::equals_wpa): Use compare_symbol_references.
11329 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
11330 (sem_item::hash_referenced_symbol_properties): New.
11331 (sem_item::compare_symbol_references): New.
11332 (sem_item::compare_cgraph_references): Remove.
11334 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
11337 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11338 Emit size of local.
11340 2015-04-23 Nick Clifton <nickc@redhat.com>
11342 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
11343 ATTRIBUTE_UNUSED to x parameter.
11344 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
11346 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11348 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
11349 TARGET_CRYPTO to TARGET_P8_VECTOR>
11350 (crypto_vpermxor_<mode>): Likewise.
11351 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
11352 (BU_CRYPTO_3A): Likewise.
11353 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
11354 (BU_CRYPTO_OVERLOAD_3A): New #define.
11355 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
11356 (VPMSUMH): Likewise.
11357 (VPMSUMW): Likewise.
11358 (VPMSUMD): Likewise.
11359 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
11360 (VPERMXOR_V4SI): Likewise.
11361 (VPERMXOR_V8HI): Likewise.
11362 (VPERMXOR_V16QI): Likewise.
11363 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
11364 BU_CRYPTO_OVERLOAD_2A.
11365 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
11366 BU_CRYPTO_OVERLOAD_3A.
11367 * config/rs6000/rs6000.opt (mcrypto): Change description of
11370 2015-04-23 Richard Biener <rguenther@suse.de>
11372 * passes.def: Remove copy propagation passes run directly after CCP.
11373 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
11375 (ccp_visit_phi_node): Rework to handle first executable edge
11378 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
11380 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
11381 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11382 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
11383 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
11384 (thumb_legimitimize_reload_address): Remove.
11385 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
11387 (thumb_legimitimize_reload_address): Remove.
11389 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11391 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
11393 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11395 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
11397 (store_multiple): Likewise.
11399 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11401 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
11402 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
11403 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
11404 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
11405 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
11406 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
11407 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
11408 Specify issue_rate value.
11409 (arm_issue_rate): Look up issue rate from tuning structs. Remove
11410 large switch statement.
11411 (arm_marvell_pj4_tune): New struct.
11412 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
11415 2015-04-23 Richard Biener <rguenther@suse.de>
11417 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
11418 (vect_find_last_store_in_slp_instance): Rename to ...
11419 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
11420 (vect_analyze_slp_cost_1): Use vector_load for constant defs
11421 and vec_construct for external defs when estimating prologue cost.
11422 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
11423 Compute costs here only when vectorizing loops.
11424 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
11425 have been determined.
11426 (vect_schedule_slp_instance): Simplify vectorized code placement
11427 and prepare for in-BB external defs.
11428 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
11429 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
11430 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
11432 (vect_model_load_cost): Likewise.
11433 (vectorizable_store): Instead add it here.
11434 (vectorizable_load): Likewise.
11435 (vect_is_simple_use): Dump def type textually.
11437 2015-04-23 Richard Biener <rguenther@suse.de>
11439 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
11440 * cfgloop.c (verify_loop_structure): Verify the root loop node.
11441 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
11442 instead of get_eh_region_from_lp_number.
11443 * loop-init.c (fix_loop_structure): If we removed a loop, reset
11446 2015-04-23 Anton Blanchard <anton@samba.org>
11448 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
11449 need for -mprofile-kernel to save LR to stack.
11451 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11453 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
11455 (insn_is_swappable_p): Return 1 for a convert from double to
11456 single precision when all of its uses are splats of BE element
11459 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11461 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
11463 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11466 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
11467 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
11468 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
11470 (rs6000_builtin_mask_for_load): Return 0 for targets with
11471 efficient unaligned VSX accesses so that the vectorizer will use
11472 direct unaligned loads.
11473 (rs6000_builtin_support_vector_misalignment): Always return true
11474 for targets with efficient unaligned VSX accesses.
11475 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
11476 stores on targets with efficient unaligned VSX accesses is almost
11477 always the same as the cost of an aligned load or store, so model
11479 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
11480 unaligned vectors if we have efficient unaligned VSX accesses.
11481 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
11482 undocumented option.
11484 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11487 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
11489 * config.gcc (LIBC_MUSL): New tm_defines macro.
11490 * config/linux.h (OPTION_MUSL): Define.
11491 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11492 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11493 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11495 * config/linux.opt (mmusl): New option.
11496 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11497 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11499 * configure: Regenerate.
11501 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
11503 * config.gcc (LIBC_MUSL): New tm_defines macro.
11504 * config/linux.h (OPTION_MUSL): Define.
11505 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11506 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11507 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11509 * config/linux.opt (mmusl): New option.
11510 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
11511 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
11513 * configure: Regenerate.
11515 2015-04-22 Yury Gribov <y.gribov@samsung.com>
11517 * doc/invoke.texi (-fsanitize-sections): Update description.
11518 * asan.c (set_sanitized_sections): Parse incoming arg.
11519 (section_sanitized_p): Support wildcards.
11521 2015-04-22 Tom de Vries <tom@codesourcery.com>
11523 PR tree-optimization/65823
11524 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
11525 equality between ap_copy and ap.
11527 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11530 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
11532 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11535 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
11537 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11540 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
11541 remove already contained t-files.
11543 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11545 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
11546 Remove unneeded forward declarations.
11547 (suitable_for_tail_call_opt_p): Commentary typo fix.
11549 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11551 * varasm.c (emit_bss): Remove redundant guard.
11553 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11555 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
11557 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11559 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
11561 2015-04-22 Hale Wang <hale.wang@arm.com>
11562 Terry Guo <terry.guo@arm.com>
11564 PR rtl-optimization/64818
11565 * combine.c (can_combine_p): Don't combine user-specified
11566 register if it is in an asm input.
11568 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
11571 * passes.def (early_optimizations): Add pass_dse.
11573 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11575 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
11576 * reorg.c (redundant_insn): Remove ifdef
11577 INSN_REFERENCES_ARE_DELAYED.
11578 * resource.c (mark_referenced_resources): Likewise.
11580 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11582 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
11583 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
11584 * resource.c (mark_set_resources): Likewise.
11586 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11588 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
11589 * cfgcleanup.c (flow_find_cross_jump): Likewise.
11590 (flow_find_head_matching_sequence): Likewise.
11591 (try_head_merge_bb): Likewise.
11592 * combine.c (can_combine_p): Likewise.
11593 (try_combine): Likewise.
11594 (distribute_notes): Likewise.
11595 * df-problems.c (can_move_insns_across): Likewise.
11596 * final.c (final): Likewise.
11597 * gcse.c (insert_insn_end_basic_block): Likewise.
11598 * ira.c (find_moveable_pseudos): Likewise.
11599 * reorg.c (try_merge_delay_insns): Likewise.
11600 (fill_simple_delay_slots): Likewise.
11601 (fill_slots_from_thread): Likewise.
11602 * sched-deps.c (sched_analyze_2): Likewise.
11604 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11606 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
11607 PIC_OFFSET_TABLE_REGNUM.
11609 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11611 * alias.c (init_alias_target): Remove ifdef
11612 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
11613 * df-scan.c (df_insn_refs_collect): Likewise.
11614 (df_get_regular_block_artificial_uses): Likewise.
11615 (df_get_eh_block_artificial_uses): Likewise.
11616 (df_get_entry_block_def_set): Likewise.
11617 (df_get_exit_block_use_set): Likewise.
11618 * emit-rtl.c (gen_rtx_REG): Likewise.
11619 * ira.c (ira_setup_eliminable_regset): Likewise.
11620 * reginfo.c (init_reg_sets_1): Likewise.
11621 * regrename.c (rename_chains): Likewise.
11622 * reload1.c (reload): Likewise.
11623 (eliminate_regs_in_insn): Likewise.
11624 * resource.c (mark_referenced_resources): Likewise.
11625 (init_resource_info): Likewise.
11627 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11629 * defaults.h (MASK_RETURN_ADDR): New definition.
11630 * except.c (expand_builtin_extract_return_addr): Remove ifdef
11633 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11635 * defaults.h (RETURN_ADDR_OFFSET): New definition.
11636 * except.c (expand_builtin_extract_return_addr): Remove ifdef
11637 RETURN_ADDR_OFFSET.
11638 (expand_builtin_frob_return_addr): Likewise.
11640 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11642 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
11643 (try_redirect_by_replacing_jump): Likewise.
11644 (rtl_tidy_fallthru_edge): Likewise.
11645 * combine.c (insn_a_feeds_b): Likewise.
11646 (find_split_point): Likewise.
11647 (simplify_set): Likewise.
11648 * cprop.c (cprop_jump): Likewise.
11649 * cse.c (cse_extended_basic_block): Likewise.
11650 * df-problems.c (can_move_insns_across): Likewise.
11651 * function.c (emit_use_return_register_into_block): Likewise.
11652 * haifa-sched.c (sched_init): Likewise.
11653 * ira.c (find_moveable_pseudos): Likewise.
11654 * loop-invariant.c (find_invariant_insn): Likewise.
11655 * lra-constraints.c (curr_insn_transform): Likewise.
11656 * postreload.c (reload_combine_recognize_const_pattern):
11658 * reload.c (find_reloads): Likewise.
11659 * reorg.c (delete_scheduled_jump): Likewise.
11660 (steal_delay_list_from_target): Likewise.
11661 (steal_delay_list_from_fallthrough): Likewise.
11662 (redundant_insn): Likewise.
11663 (fill_simple_delay_slots): Likewise.
11664 (fill_slots_from_thread): Likewise.
11665 (delete_computation): Likewise.
11666 * sched-rgn.c (add_branch_dependences): Likewise.
11668 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11670 * genconfig.c (main): Always define HAVE_cc0.
11671 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
11673 * cfgcleanup.c (flow_find_cross_jump): Likewise.
11674 (flow_find_head_matching_sequence): Likewise.
11675 (try_head_merge_bb): Likewise.
11676 * cfgrtl.c (rtl_merge_blocks): Likewise.
11677 (try_redirect_by_replacing_jump): Likewise.
11678 (rtl_tidy_fallthru_edge): Likewise.
11679 * combine.c (do_SUBST_MODE): Likewise.
11680 (insn_a_feeds_b): Likewise.
11681 (combine_instructions): Likewise.
11682 (can_combine_p): Likewise.
11683 (try_combine): Likewise.
11684 (find_split_point): Likewise.
11686 (simplify_set): Likewise.
11687 (distribute_notes): Likewise.
11688 * cprop.c (cprop_jump): Likewise.
11689 * cse.c (cse_extended_basic_block): Likewise.
11690 * df-problems.c (can_move_insns_across): Likewise.
11691 * final.c (final): Likewise.
11692 (final_scan_insn): Likewise.
11693 * function.c (emit_use_return_register_into_block): Likewise.
11694 * gcse.c (insert_insn_end_basic_block): Likewise.
11695 * haifa-sched.c (sched_init): Likewise.
11696 * ira.c (find_moveable_pseudos): Likewise.
11697 * loop-invariant.c (find_invariant_insn): Likewise.
11698 * lra-constraints.c (curr_insn_transform): Likewise.
11699 * optabs.c (prepare_cmp_insn): Likewise.
11700 * postreload.c (reload_combine_recognize_const_pattern):
11702 * reload.c (find_reloads): Likewise.
11703 (find_reloads_address_1): Likewise.
11704 * reorg.c (delete_scheduled_jump): Likewise.
11705 (steal_delay_list_from_target): Likewise.
11706 (steal_delay_list_from_fallthrough): Likewise.
11707 (try_merge_delay_insns): Likewise.
11708 (redundant_insn): Likewise.
11709 (fill_simple_delay_slots): Likewise.
11710 (fill_slots_from_thread): Likewise.
11711 (delete_computation): Likewise.
11712 (relax_delay_slots): Likewise.
11713 * sched-deps.c (sched_analyze_2): Likewise.
11714 * sched-rgn.c (add_branch_dependences): Likewise.
11716 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11718 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
11719 that is trivially ded on non cc0 targets.
11720 (simplify_set): Likewise.
11721 (mark_used_regs_combine): Likewise.
11722 * cse.c (new_basic_block): Likewise.
11723 (fold_rtx): Likewise.
11724 (cse_insn): Likewise.
11725 (cse_extended_basic_block): Likewise.
11726 (set_live_p): Likewise.
11727 * rtlanal.c (canonicalize_condition): Likewise.
11728 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11730 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11732 * conditions.h: Define macros even if HAVE_cc0 is undefined.
11733 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
11734 * final.c: Likewise.
11735 * jump.c: Likewise.
11736 * recog.c: Likewise.
11737 * recog.h: Declare functions even when HAVE_cc0 is undefined.
11738 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
11740 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11742 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
11743 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
11744 * builtins.c (expand_builtin): Remove check if
11745 EH_RETURN_DATA_REGNO is defined.
11746 * df-scan.c (df_bb_refs_collect): Likewise.
11747 (df_get_exit_block_use_set): Likewise.
11748 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
11749 * ira-lives.c (process_bb_node_lives): Likewise.
11750 * lra-lives.c (process_bb_lives): Likewise.
11752 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
11754 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
11755 FIRST_PSEUDO_REG): New.
11756 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
11757 (ARG_POINTER_REGNUM): Define to ARGP_REG.
11758 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
11759 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
11760 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
11761 (FIRST_INT_REG): New.
11762 (LAST_INT_REG): New.
11763 (FIRST_*_REG): Define using *_REG.
11764 (LAST_*_REG): Ditto.
11765 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
11766 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
11767 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
11769 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11771 * expmed.c: (synth_mult): Only assume overlapping
11772 shift with previous steps in alg_sub_t_m2 case.
11774 2015-04-21 Richard Biener <rguenther@suse.de>
11776 PR tree-optimization/65650
11777 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
11778 transitions involving copies.
11779 (set_lattice_value): Adjust for copy lattice state.
11780 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
11781 if that doesn't dominate the merge point.
11782 (bit_value_unop): Adjust what we treat as varying mask.
11783 (bit_value_binop): Likewise.
11784 (bit_value_assume_aligned): Likewise.
11785 (evaluate_stmt): When we simplified to a SSA name record a copy
11786 instead of dropping to varying.
11787 (visit_assignment): Simplify.
11789 * gimple-match.h (gimple_simplify): Add another callback.
11790 * gimple-fold.c (fold_stmt_1): Adjust caller.
11791 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
11792 for the 2nd callback.
11793 * gimple-match-head.c (gimple_simplify): Add a callback that is
11794 used to valueize the stmt operands and use it that way.
11796 2015-04-21 Richard Biener <rguenther@suse.de>
11798 PR tree-optimization/65788
11799 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
11801 2015-04-21 Richard Biener <rguenther@suse.de>
11803 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
11804 vec_construct cost by vec_stmt_cost.
11806 2015-04-21 Richard Biener <rguenther@suse.de>
11808 * cfghooks.h (create_basic_block): Replace with two overloads
11809 for RTL and GIMPLE.
11810 (split_block): Likewise.
11811 * cfghooks.c (split_block): Rename to ...
11812 (split_block_1): ... this.
11813 (split_block): Add two type-safe overloads for RTL and GIMPLE.
11814 (split_block_after_labels): Call split_block_1.
11815 (create_basic_block): Rename to ...
11816 (create_basic_block_1): ... this.
11817 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
11818 (create_empty_bb): Call create_basic_block_1.
11819 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
11820 split_block_after_labels.
11821 * omp-low.c (expand_parallel_call): Likewise.
11822 (expand_omp_target): Likewise.
11823 (simd_clone_adjust): Likewise.
11824 * tree-chkp.c (chkp_get_entry_block): Likewise.
11825 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
11826 create_basic_block overload.
11827 (cgraph_node::expand_thunk): Likewise.
11828 * tree-cfg.c (make_blocks): Likewise.
11829 (handle_abnormal_edges): Likewise.
11830 * tree-inline.c (copy_bb): Likewise.
11832 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11834 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
11836 (*xor_one_cmplsidi3_ze): Likewise.
11838 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
11840 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
11841 use df_remove_problem rather than manually removing problems, leaving
11842 holes in df->problems_in_order[].
11844 2015-04-21 Tom de Vries <tom@codesourcery.com>
11846 PR tree-optimization/65802
11847 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
11849 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11851 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
11853 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
11854 at '.'. Assert that there's enough space for everything.
11856 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
11858 PR tree-optimization/64950
11860 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11863 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11866 2015-04-20 Shiva Chen <shiva0217@gmail.com>
11868 PR rtl-optimization/64916
11869 * cfgcleanup.c (values_equal_p): New function.
11870 (can_replace_by): Use it.
11872 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
11875 * doc/invoke.texi ([-Wnarrowing]): Update.
11877 2015-04-20 Jeff Law <law@redhat.com>
11879 PR tree-optimization/65658
11880 * tree-ssa-threadupdate.c (redirection_block_p): Remove
11881 redundant test for GIMPLE_ASSIGN in last change.
11883 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
11885 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
11886 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
11887 (legitimize_tls_address): Ditto.
11888 (ix86_expand_move): Ditto.
11889 (ix86_expand_binary_operator): Remove reload_in_progress checks.
11890 (ix86_expand_unary_operator): Ditto.
11891 * config/i386/predicates.md (index_register_operand): Ditto.
11893 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
11895 * reorg.c (try_merge_delay_insns): Improve correctness checking
11896 for targets with multiple delay slots.
11898 2015-04-20 Jeff Law <law@redhat.com>
11900 PR tree-optimization/65658
11901 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
11904 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
11906 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
11907 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
11910 2015-04-20 Jakub Jelinek <jakub@redhat.com>
11913 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
11915 2015-04-20 Richard Biener <rguenther@suse.de>
11917 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
11918 * gimple-fold.c (gimple_build_valueize): New function.
11919 (gimple_build): Always use gimple_build_valueize as valueize hook.
11921 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
11924 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
11925 and overwrite variable parts if <= 1/2 the elements are variable.
11927 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
11929 PR rtl-optimization/65805
11930 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
11931 Don't use difference of offset and previous offset if
11932 update_sp_offset is non-zero.
11933 (eliminate_regs_in_insn): Ditto.
11934 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
11935 lra_eliminate_regs_1 call.
11936 * lra-constraints.c (get_equiv_with_elimination): Ditto.
11938 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
11940 * hash-table.h: Remove version of hash_table that stored value_type *.
11941 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
11942 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
11943 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
11944 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
11945 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
11946 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
11947 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11948 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
11949 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
11950 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
11951 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
11952 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
11953 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
11954 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11955 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
11956 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
11958 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11959 Jakub Jelinek <jakub@redhat.com>
11962 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
11963 subsequent SH_NONE operand does not overwrite an existing *special
11965 (adjust_extract): Handle case where a vec_extract operation is
11966 wrapped in a PARALLEL.
11968 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
11971 * config/i386/i386.c (ix86_binds_local_p): Define only if
11972 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
11974 2015-04-17 Jeff Law <law@redhat.com>
11976 PR tree-optimization/47679
11977 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
11978 * tree-ssa-scopedtables.c: New file.
11979 * tree-ssa-scopedtables.h: New file.
11980 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
11981 (const_and_copies): Change name/type.
11982 (record_const_or_copy): Move into tree-ssa-scopedtables.c
11983 (record_const_or_copy_1): Similarly.
11984 (restore_vars_to_original_value): Similarly.
11985 (pass_dominator::execute): Create and destroy const_and_copies table.
11986 (thread_across_edge): Update passing of const_and_copies.
11987 (record_temporary_equivalence): Use method calls rather than
11988 manipulating const_and_copies directly.
11989 (record_equality, cprop_into_successor_phis): Similarly.
11990 (dom_opt_dom_walker::before_dom_children): Similarly.
11991 (dom_opt_dom_walker::after_dom_children): Similarly.
11992 (eliminate_redundant_computations): Similarly.
11993 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
11994 (record_temporary_equivalence): Likewise.
11995 (invalidate_equivalences): Likewise.
11996 (record_temporary_equivalences_from_phis): Update due to type
11997 change of const_and_copies. Use method calls rather than
11998 manipulating the stack directly.
11999 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
12000 (thread_through_normal_block, thread_across_edge): Likewise.
12001 (thread_across_edge): Likewise.
12002 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12003 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
12005 (identify_jump_threads): Update due to type change of equiv_stack.
12006 (finalize_jump_threads): Delete the equiv_stack when complete.
12008 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
12010 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
12011 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
12012 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
12014 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
12017 * config.gcc: Exit with a comment when we do not have a major version
12018 number for the FreeBSD target.
12020 2015-04-17 Jakub Jelinek <jakub@redhat.com>
12023 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
12024 maybe_allows_mem bitfields.
12025 (maybe_allows_none_start, maybe_allows_none_end,
12026 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
12027 maybe_allows_mem_end): New variables.
12028 (compute_maybe_allows): New function.
12029 (add_constraint): Use it to initialize maybe_allows_reg and
12030 maybe_allows_mem fields.
12031 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
12032 is_address constraints such that those that allow neither mem nor
12033 reg come first, then those that only allow reg but not mem, then
12034 those that only allow mem but not reg, then the rest.
12035 (write_allows_reg_mem_function): New function.
12036 (write_tm_preds_h): Call it.
12037 * stmt.c (parse_output_constraint, parse_input_constraint): Use
12038 the generated insn_extra_constraint_allows_reg_mem function
12039 instead of always setting *allows_reg = true; *allows_mem = true;
12040 for unknown extra constraints.
12042 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
12045 * output.h (default_binds_local_p_3): New.
12046 * varasm.c (default_binds_local_p_3): Make it public. Take an
12047 argument to indicate if common symbol may be local. If common
12048 symbol may be local, treat non-external variable as defined
12050 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
12051 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
12052 * config/i386/i386.c (ix86_binds_local_p): New.
12053 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
12054 ix86_binds_local_p.
12056 2015-04-17 Jakub Jelinek <jakub@redhat.com>
12059 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
12060 trying mem_loc_descriptor on XEXP (rtl, 0).
12062 2015-04-17 Martin Liska <mliska@suse.cz>
12064 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
12065 Release symbol_compare_collection.
12066 * ipa-reference.c: Add TODO that a vector should be released.
12068 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
12071 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
12072 to new AVR-LibC file layout (bug #44574).
12073 (*avrlibc_devicelib): Same.
12074 * config/avr/avr-mcus.def: Adjust comments.
12075 * config/avr/avr.opt (nodevicelib): Adjust help.
12077 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
12079 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
12081 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
12084 * gimplify.c (gimplify_init_constructor): Always emit a
12085 side-effecting constructor.
12087 2015-04-17 Tom de Vries <tom@codesourcery.com>
12089 PR tree-optimization/64950
12090 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
12091 in cfun->curr_properties.
12092 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
12093 if we generate an IFN_VA_ARG.
12094 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
12095 function if PROP_gimple_lva is not set in src function.
12097 2015-04-17 Tom de Vries <tom@codesourcery.com>
12098 Michael Matz <matz@suse.de>
12100 PR tree-optimization/64950
12101 * gimple-iterator.c (update_modified_stmts): Remove static.
12102 * gimple-iterator.h (update_modified_stmts): Declare.
12103 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
12104 (gimplify_va_arg_internal): New function.
12105 (gimplify_va_arg_expr): Use IFN_VA_ARG.
12106 * gimplify.h (gimplify_va_arg_internal): Declare.
12107 * internal-fn.c (expand_VA_ARG): New unreachable function.
12108 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
12109 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
12110 (expand_ifn_va_arg): New function.
12111 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
12112 (pass_stdarg::execute): Call expand_ifn_va_arg.
12113 (pass_data_lower_vaarg): New pass_data.
12114 (pass_lower_vaarg): New gimple_opt_pass.
12115 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
12116 (make_pass_lower_vaarg): New function.
12117 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
12118 properties_required field.
12119 * passes.def (all_passes): Add pass_lower_vaarg.
12120 * tree-pass.h (PROP_gimple_lva): Add define.
12121 (make_pass_lower_vaarg): Declare.
12123 2015-04-17 Tom de Vries <tom@codesourcery.com>
12125 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
12126 * calls.c (call_expr_flags): Same.
12128 2015-04-17 Tom de Vries <tom@codesourcery.com>
12130 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
12131 (pass_stdarg::execute): ... here.
12133 2015-04-17 Tom de Vries <tom@codesourcery.com>
12134 Michael Matz <matz@suse.de>
12136 * tree-cfg.c (make_blocks_1): Factor out of ...
12137 (make_blocks): ... here.
12138 (make_edges_bb): Factor out of ...
12139 (make_edges): ... here.
12140 (gimple_find_sub_bbs): New function.
12141 * tree-cfg.h (gimple_find_sub_bbs): Declare.
12143 2015-04-17 Tom de Vries <tom@codesourcery.com>
12145 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
12147 2015-04-17 Yury Gribov <y.gribov@samsung.com>
12149 * asan.c (set_sanitized_sections): New function.
12150 (section_sanitized_p): Ditto.
12151 (asan_protect_global): Optionally sanitize user-defined
12153 * asan.h (set_sanitized_sections): Declare new function.
12154 * common.opt (fsanitize-sections): New option.
12155 * doc/invoke.texi (-fsanitize-sections): Document new option.
12156 * opts-global.c (handle_common_deferred_options): Handle new
12159 2015-04-17 Jakub Jelinek <jakub@redhat.com>
12162 * dwarf2out.c (loc_list_from_tree): Return NULL
12163 for DEBUG_EXPR_DECL.
12165 2015-04-17 Christian Bruel <christian.bruel@st.com>
12167 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
12170 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12172 * ira-color.c (setup_left_conflict_sizes_p): Do not process
12173 node itself when computing left conflict subnode size.
12175 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
12177 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
12178 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
12179 *fop_<mode>_1_sse using enabled attribute. Use
12180 register_mixssei387nonimm_operand operand 1 predicate. Change
12181 alternative 3 constraints from "x" to "v".
12183 2015-04-16 Richard Biener <rguenther@suse.de>
12185 PR tree-optimization/65774
12186 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
12187 bit-value tracking on.
12189 2015-04-16 Richard Biener <rguenther@suse.de>
12191 PR tree-optimization/64277
12192 * tree-vrp.c (check_array_ref): Fix anti-range handling,
12193 simplify upper bound handling.
12194 (search_for_addr_array): Simplify.
12195 (check_array_bounds): Handle ADDR_EXPRs here.
12196 (check_all_array_refs): Simplify.
12198 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
12200 * config/i386/i386.c (print_reg): Rewrite function.
12202 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12204 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
12205 Invert the condition.
12207 2015-04-16 Renlin Li <renlin.li@arm.com>
12209 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
12210 simplifications for UNSIGNED_FLOAT.
12212 2015-04-16 Nick Clifton <nickc@redhat.com>
12214 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
12216 (enum rl78_cpu_type): New.
12217 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
12218 (umulhi3_shift_virt): Remove m constraint from operand 1.
12219 (umulqihi3_virt): Likewise.
12220 * config/rl78/rl78.c (rl78_option_override): Add code to process
12221 -mcpu and -mmul options.
12222 (rl78_alloc_physical_registers): Add code to handle divhi and
12223 divsi valloc attributes.
12224 (set_origin): Likewise.
12225 * config/rl78/rl78.h (RL78_MUL_G14): Define.
12226 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
12227 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
12229 (ASM_SPEC): Pass -mcpu on to assembler.
12230 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
12231 (mulqi3_rl78): Likewise.
12232 (mulhi3_g13): Likewise.
12233 (mulhi3): Generate the G13 or G14 versions of the insn directly.
12234 (mulsi3): Likewise.
12235 (mulhi3_g14): Add clobbers of AX and BC.
12236 (mulsi3_g14): Likewise.
12237 (mulsi3_g13): Likewise.
12238 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
12239 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
12240 * config/rl78/rl78.opt (mmul): Initialise value to
12242 (mcpu): New option.
12243 (m13, m14, mrl78): New option aliases.
12244 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
12245 (MULTILIB_DIRNAMES): Add g13 and g14.
12246 * doc/invoke.texi: Document -mcpu and -mmul options.
12248 2015-04-16 Richard Biener <rguenther@suse.de>
12250 * tree-ssa-ccp.c (likely_value): See if we have operands that
12251 are marked as never simulate again and return CONSTANT in this
12253 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
12254 not have any operands that will be simulated again as
12255 not being simulated again.
12257 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
12259 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
12260 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
12261 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
12263 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
12265 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
12266 *float<SWI48:mode><MODEF:mode>2_sse.
12267 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
12269 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
12272 2015-04-15 Tom de Vries <tom@codesourcery.com>
12275 * function.c (push_dummy_function): New function.
12276 (init_dummy_function_start): Use push_dummy_function.
12277 (pop_dummy_function): New function. Factored out of ...
12278 (expand_dummy_function_end): ... here.
12279 * function.h (push_dummy_function, pop_dummy_function): Declare.
12280 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
12281 pop_dummy_function.
12282 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
12284 2015-04-15 Jeff Law <law@redhat.com>
12286 PR tree-optimization/47679
12287 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
12288 need for forward declaration in upcoming changes.
12289 (record_conditions, record_edge_info): Likewise.
12291 PR rtl-optimization/42522
12292 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
12293 SIGN_EXTRACT as a whole object rather than simplifying
12296 2015-04-15 Jakub Jelinek <jakub@redhat.com>
12299 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
12300 and GIMPLE_PREDICT use break instead of return true. For
12301 GIMPLE_EH_DISPATCH, compare dispatch region.
12303 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
12305 * doc/extend.texi (__sync Builtins): Simplify some text. Update
12306 details about the implementation. Make clear preference for
12307 __atomic builtins. Reduce possibility of future change.
12309 2015-04-15 Nick Clifton <nickc@redhat.com>
12311 * config/rx/rx.opt (mallow-string-insns): New option.
12312 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
12313 builtin if string instructions are denied.
12314 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
12315 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
12317 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
12318 * config/rx/rx.md (movstr): Enable pattern only if string
12319 instructions are allowed.
12320 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
12321 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
12322 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
12323 (MULTILIB_DIRNAMES): Add no-strings.
12324 * doc/invoke.texi: Document -mno-allow-string-insns.
12326 2015-04-15 Alan Modra <amodra@gmail.com>
12330 PR middle-end/36043
12331 * calls.c (load_register_parameters): Don't load past end of
12332 mem unless suitably aligned.
12334 2015-04-15 Nick Clifton <nickc@redhat.com>
12336 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
12337 decrement instruction as being frame related.
12338 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
12340 If zero extending a function address enclose the operation in
12342 (rl78_preferred_reload_class): New function.
12343 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12344 * config/rl78/rl78.md: Remove useless constraints in expanders.
12345 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
12346 (mulhi3_rl78): Likewise.
12347 (mulhi3_g13): Likewise.
12348 (mulsi3_rl78): Likewise.
12349 (es_addr): Move to before the multiply patterns.
12351 2015-04-15 Alan Modra <amodra@gmail.com>
12353 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
12354 and sequence_stack. Add seq.
12355 (seq_stack): Delete.
12356 * function.c (prepare_function_start): Don't access x_last_insn.
12357 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
12358 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
12359 * emit_rtl.c (start_sequence, push_topmost_sequence,
12360 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
12361 sequence accessors.
12362 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
12363 remove_insn): Likewise. Simplify.
12364 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
12365 and pop_topmost_sequence.
12366 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
12368 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
12370 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
12373 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
12376 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
12378 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
12379 (LEGACY_INT_REGNO_P): Ditto.
12380 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
12381 (ANY_MASK_REG_P): Remove.
12382 (BND_REG_P): Rename from ANY_BND_REG_P.
12383 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
12384 legacy integer registers. Do not handle MMX_REG_P in a special way.
12385 Merge 64byte and 32byte SSE handling.
12387 2015-04-14 Nick Clifton <nickc@redhat.com>
12389 * expr.c (expand_assignment): Force an address offset computation
12390 into a register before changing its mode.
12391 (expand_expr_real_1): Likewise.
12393 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
12395 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
12396 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
12397 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
12398 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
12399 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
12400 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
12401 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
12402 and __aarch64_vget_lane_any.
12404 2015-04-14 Jakub Jelinek <jakub@redhat.com>
12406 PR rtl-optimization/65761
12407 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
12408 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
12410 2015-04-14 Richard Biener <rguenther@suse.de>
12412 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
12413 (graphite_can_represent_scev): Use POINTER_TYPE_P.
12415 2015-04-14 Richard Biener <rguenther@suse.de>
12417 PR tree-optimization/65758
12418 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
12420 (ccp_lattice_meet): Likewise.
12421 (bit_value_unop): Likewise.
12422 (bit_value_binop): Likewise.
12423 (bit_value_assume_aligned): Likewise.
12425 2015-04-14 Christian Bruel <christian.bruel@st.com>
12427 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
12430 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
12432 PR tree-optimization/63387
12433 * match.pd ((x unord x) | (y unord y) -> (x unord y),
12434 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
12436 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
12438 * config/i386/predicates.md (any_QIreg_operand): Rename from
12439 q_regs_operand. Do not process subregs.
12440 (QIreg_operand): Use QI_REGNO_P predicate.
12441 (ext_QIreg_operand): Ditto.
12442 (ext_register_operand): Ditto.
12443 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
12444 (AND splitters): Ditto.
12445 (AND with -65536 splitter): Add SWI48 mode for operand 0.
12446 (AND with -256 splitter): Use any_QIreg_operand predicate and
12447 SWI248 mode for operand 0.
12448 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
12449 mode for operand 0.
12450 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
12452 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
12454 * doc/plugins.texi: Rewrite first introductory paragraph.
12456 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12458 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
12459 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
12461 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12463 * ipa-profie.c (ipa_profile): Check number of parameters
12464 and possible polymorphic call targets before
12467 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
12469 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
12470 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
12472 2015-04-13 Richard Biener <rguenther@suse.de>
12474 PR tree-optimization/65204
12475 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
12476 takens for bit-CCP.
12478 2015-04-13 Richard Biener <rguenther@suse.de>
12481 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
12482 and cond_not_taken_branch_cost to 4 and 2.
12483 (bdver2_cost): Likewise.
12484 (bdver3_cost): Likewise.
12485 (bdver4_cost): Likewise.
12487 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12489 * hash-table.h (hash_table constructor): Add mem stats.
12490 (alloc_entries): Likewise.
12492 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12494 * ipa-cp.c (ipcp_driver): Relase prev_edge.
12495 * passes.c (execute_one_pass): Only add transform if pass has one.
12497 2015-04-12 Joseph Myers <joseph@codesourcery.com>
12499 * config/i386/i386.c (ix86_option_override_internal): Don't set
12500 -fprefetch-loop-arrays if optimizing for size.
12502 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
12503 Gerald Pfeifer <gerald@pfeifer.com>
12505 * doc/contrib.texi (Contributors): Add Martin Jambor and
12508 2015-04-12 Jakub Jelinek <jakub@redhat.com>
12510 * BASE-VER: Set to 6.0.0.
12512 PR tree-optimization/65747
12513 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
12514 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
12516 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
12518 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
12519 sentence. Improve grammar.
12521 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
12523 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
12525 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
12528 * ipa-inline-transform.c (speculation_removed): Remove static var.
12529 (check_speculations): New function.
12530 (clone_inlined_nodes): Do not check spculations.
12531 (inline_call): Call check_speculations.
12532 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
12533 consider non-invariants.
12535 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
12536 Martin Liska <mliska@suse.cz>
12539 * ipa-icf.c (sem_item::compare_cgraph_references): function and
12540 variable can not match.
12541 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
12542 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
12544 2015-04-11 Jakub Jelinek <jakub@redhat.com>
12546 PR tree-optimization/65735
12547 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
12548 Remove visited_phis argument, add visited_bbs, avoid recursing into the
12549 same bb rather than just into the same phi node.
12550 (thread_through_normal_block): Adjust caller.
12552 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
12554 * doc/contrib.texi (Contributors): Add Ira Rosen.
12556 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
12558 * gcov.c (find_source): Fix miswording in error message.
12559 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
12560 (ix86_expand_sse_comi_round): Fix typo in error message.
12562 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
12564 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
12566 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
12568 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
12570 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
12573 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
12574 Print bad_spills_num and insn_pseudos_num.
12576 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12579 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
12580 when creating +1 values for SImode.
12582 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
12585 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
12588 2015-04-10 Jakub Jelinek <jakub@redhat.com>
12589 Iain Sandoe <iain@codesourcery.com>
12592 * configure: Regenerate.
12594 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
12597 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
12599 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
12601 * doc/contrib.texi (Contributors): Add John Marino.
12603 2015-04-09 Jakub Jelinek <jakub@redhat.com>
12605 PR tree-optimization/65709
12606 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
12607 TREE_TYPE (TREE_TYPE (t)).
12609 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
12612 * lra-int.h (lra_bad_spill_regno_start): New.
12613 * lra.c (lra_bad_spill_regno_start): New.
12614 (lra): Set up lra_bad_spill_regno_start. Set up
12615 lra_constraint_new_regno_start unconditionally.
12616 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
12619 2015-04-09 Marek Polacek <polacek@redhat.com>
12620 Jakub Jelinek <jakub@redhat.com>
12622 PR middle-end/65554
12623 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
12624 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
12627 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
12629 PR rtl-optimization/65693
12630 * combine.c (is_parallel_of_n_reg_sets): Move outside of
12633 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
12636 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
12637 device specs file if "device-specs%s" didn't resolve to a path.
12639 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
12642 * config/i386/i386.c (fixup_modeless_constant): New.
12643 (ix86_expand_args_builtin): Fixup modeless constant operand.
12644 (ix86_expand_round_builtin): Ditto.
12645 (ix86_expand_special_args_builtin): Ditto.
12646 (ix86_expand_builtin): Ditto.
12648 2015-04-09 Jakub Jelinek <jakub@redhat.com>
12651 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
12652 any pow2 integer in between 2 and 0x80000000U inclusive.
12654 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
12656 PR rtl-optimization/65693
12657 * combine.c (is_parallel_of_n_reg_sets): Change first argument
12658 from an rtx_insn * to an rtx.
12659 (try_combine): Adjust both callers. Use it once more.
12661 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
12663 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
12664 (chkp_make_static_const_bounds): Search existing
12665 symbol by assembler name. Use make_decl_one_only.
12666 (chkp_get_zero_bounds_var): Remove node search which
12667 is now performed in chkp_make_static_const_bounds.
12668 (chkp_get_none_bounds_var): Likewise.
12670 2015-04-08 Michael Witten <mfwitten@gmail.com>
12672 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
12675 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12677 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
12679 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
12681 * doc/extend.texi (__sync Builtins): Fix grammar.
12683 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12685 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
12687 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12689 * varasm.c (emit_local): Move definition of align.
12691 2015-04-08 Julian Brown <julian@codesourcery.com>
12693 * config/nvptx/mkoffload.c (process): Support variable mapping.
12695 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
12697 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
12699 (alpha_write_one_linkage): Correct typo.
12701 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
12703 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
12705 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
12707 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
12709 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
12711 * tree-chkp.h (chkp_insert_retbnd_call): New.
12712 * tree-chkp.c (chkp_insert_retbnd_call): New.
12713 * ipa-split.c (insert_bndret_call_after): Remove.
12714 (split_function): Use chkp_insert_retbnd_call.
12715 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
12716 bounds for instrumented functions.
12718 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
12721 * calls.c (initialize_argument_information): When producing tail
12722 call also turn SSA_NAMES passed by references to original PARM_DECLs
12724 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
12727 * lra-remat.c (do_remat): Process input and non-input insn
12728 registers separately.
12730 2015-04-07 Jakub Jelinek <jakub@redhat.com>
12733 * valtrack.c (debug_lowpart_subreg): New function.
12734 (dead_debug_insert_temp): Use it.
12736 PR middle-end/65680
12737 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
12738 into signed HOST_WIDE_INT the same as negative bit_offset.
12740 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
12742 * ipa-comdats.c (ipa_comdats): Visit all thunks
12743 to set proper comdat group.
12745 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12748 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
12749 on constants for NEON VSTRUCT modes.
12751 2015-04-07 Jakub Jelinek <jakub@redhat.com>
12752 Iain Sandoe <iain@codesourcery.com>
12755 * configure: Regenerate.
12757 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12760 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
12761 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
12762 that LFD is used to load double constants instead of LFS. Add
12763 defaults for all costs structures. Add comments for missing
12764 initialization fields.
12765 (size32_cost): Likewise.
12766 (size64_cost): Likewise.
12767 (rs64a_cost): Likewise.
12768 (mpccore_cost): Likewise.
12769 (ppc403_cost): Likewise.
12770 (ppc405_cost): Likewise.
12771 (ppc440_cost): Likewise.
12772 (ppc476_cost): Likewise.
12773 (ppc601_cost): Likewise.
12774 (ppc603_cost): Likewise.
12775 (ppc604_cost): Likewise.
12776 (ppc604e_cost): Likewise.
12777 (ppc620_cost): Likewise.
12778 (ppc630_cost): Likewise.
12779 (ppccell_cost): Likewise.
12780 (ppc750_cost): Likewise.
12781 (ppc7450_cost): Likewise.
12782 (ppc8540_cost): Likewise.
12783 (ppce300c2c3_cost): Likewise.
12784 (ppce500mc_cost): Likewise.
12785 (ppce500mc64_cost): Likewise.
12786 (ppce5500_cost): Likewise.
12787 (ppce6500_cost): Likewise.
12788 (titan_cost): Likewise.
12789 (power4_cost): Likewise.
12790 (power6_cost): Likewise.
12791 (power7_cost): Likewise.
12792 (power8_cost): Likewise.
12793 (ppca2_cost): Likewise.
12794 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
12796 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
12797 instead of XXLOR to copy SFmode to clear out dirty bits created
12798 when SFmode denormals are generated.
12799 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
12800 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
12802 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
12804 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
12805 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
12806 * config/aarch64/aarch64-tune.md: Regenerate.
12808 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
12810 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
12811 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
12812 * config/arm/arm-cores.def (exynos-m1): New core.
12813 * config/arm/arm-tune.md: Regenerate.
12814 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
12815 * config/arm/bpabi.h: Likewise.
12817 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
12819 * ipa-cp (set_single_call_flag): Remove too
12820 restrictive assert.
12822 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
12824 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
12825 GOMP_offload_unregister from the destructor.
12827 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
12829 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
12830 flags for instrumentation thunk.
12831 (chkp_produce_thunks): Likewise.
12833 2015-04-05 Martin Liska <mliska@suse.cz>
12836 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
12837 has computed data structure.
12838 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
12840 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
12842 * invoke.texi (inline-unit-growth): Increase growth to 20%
12843 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
12845 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
12848 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
12850 (lra_rematerialization_iter): New.
12851 * lra.c (lra): Initialize lra_rematerialization_iter.
12852 Stop updating lra_constraint_new_regno_start after switching of
12853 inheritance and rematerialization.
12854 * lra-remat.c (lra_rematerialization_iter): New.
12855 (lra_remat): Add printing pass iteration. Do rematerialization
12856 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
12858 2015-04-04 Richard Biener <rguenther@suse.de>
12860 PR tree-optimization/64909
12861 PR tree-optimization/65660
12862 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
12863 to take a cost vector for scalar iteration cost.
12864 (vect_get_single_scalar_iteration_cost): Likewise.
12865 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
12866 Compute the scalar iteration cost into a cost vector.
12867 (vect_get_known_peeling_cost): Use the scalar cost vector to
12868 account for the cost of the peeled iterations.
12869 (vect_estimate_min_profitable_iters): Likewise.
12870 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12873 2015-04-04 Alan Modra <amodra@gmail.com>
12877 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
12878 0.0 constant unless TARGET_VSX.
12879 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
12882 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
12885 * ipa-inline-transform.c (inline_call): Skip sanity check to work
12888 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
12891 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
12892 speculative indirect edges to avoid ordering issue.
12894 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
12897 * ipa-inline.c (edge_badness): Add combined size to the denominator.
12899 2015-04-03 Jakub Jelinek <jakub@redhat.com>
12901 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
12902 TYPE_ARTIFICIAL on the .omp_data* types.
12904 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12906 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
12907 instrumentation thunks.
12909 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12911 * config/i386/i386.c (ix86_expand_call): Avoid nested
12912 PARALLEL in returned call value.
12914 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12916 * lto-cgraph.c (input_cgraph_1): Always link instrumented
12917 assembler name with original one.
12919 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
12921 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
12923 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
12925 Revert parts of r216820.
12926 * config/i386/i386.md (movqi_internal): Correct type calculation
12927 for alternatives 3 and 5.
12929 2015-04-02 Jakub Jelinek <jakub@redhat.com>
12931 PR preprocessor/61977
12932 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
12933 predefine __vector/__bool/__pixel macros nor context sensitive
12934 macros for CLK_ASM.
12935 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
12937 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
12939 * config/pa/pa.c (pa_output_move_double): Directly handle register
12940 indexed memory operand. Simplify handling of scaled register indexed
12943 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
12946 * config/i386/linux-common.h (MPX_SPEC): New.
12947 (CHKP_SPEC): Add MPX_SPEC.
12948 * doc/invoke.texi (-fcheck-pointer-boudns): Document
12949 possible issues with '-z bndplt' support in linker.
12951 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
12953 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
12954 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
12955 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
12956 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
12957 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
12959 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
12961 * config/i386/sync.md (UNSPEC_MOVA): Remove.
12962 (atomic_load<mode>): Change operand 0 predicate to
12963 nonimmediate_operand and fix up the destination when needed.
12965 (atomic_loaddi_fpu): Use UNSPEC_LDA.
12966 (atomic_store<mode>): Change operand 1 predicate to
12967 nonimmendate_operand and move the source to register when needed.
12969 (atomic_store<mode>_1): Use UNSPEC_STA.
12970 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
12971 Fix moves from memory operand. Use UNSPEC_STA.
12973 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12975 * expmed.c (strict_volatile_bitfield_p): Check that the access will
12976 not cross a MODESIZE boundary.
12977 (store_bit_field, extract_bit_field): Added assertions in the
12978 strict volatile bitfields code path.
12980 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
12983 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12984 Increase args array size by one to avoid buffer overflow.
12986 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
12988 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12990 * ipa-inline.c (edge_badness): Add wrapper penalty.
12991 (sum_callers): Move up.
12992 (inline_small_functions): Set single_caller.
12993 * ipa-inline.h (inline_summary): Add single_caller.
12994 * ipa-split.c (split_function): Set split_part.
12995 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
12996 * cgraph.h (cgraph_node): Add split_part.
12998 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
13001 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
13002 Do not split operands 0 and operands 2 to halfmode.
13003 (atomic_compare_and_swap<mode>): Update for
13004 atomic_compare_and_swap<dwi>_doubleword changes.
13006 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
13008 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
13009 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
13010 no caching is done.
13012 2015-03-31 Martin Liska <mliska@suse.cz>
13015 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
13016 has already filled up function summary.
13017 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
13019 2015-03-31 Richard Biener <rguenther@suse.de>
13021 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
13024 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
13026 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
13028 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
13029 (s390_asm_output_function_label): Adapt to new signature of
13030 s390_function_num_hotpatch_hw
13031 Optimise the code generating assembler output.
13032 Add comments to assembler file.
13034 2015-03-31 Richard Biener <rguenther@suse.de>
13036 PR middle-end/65626
13037 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
13038 of the noreturn call so it is last and cleanup_control_flow_bb
13039 can do the CFG part.
13041 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
13044 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
13045 same_comdat_group for external symbols.
13046 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
13047 infinite same_comdat_group traversal loop.
13049 2015-03-31 Jakub Jelinek <jakub@redhat.com>
13052 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
13053 automatically to $headers.
13055 2015-03-30 Jakub Jelinek <jakub@redhat.com>
13058 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
13059 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
13061 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
13063 * ipa-prop.c (param_type_may_change_p): Likewise.
13064 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
13065 (remove_unused_scope_block_p): Add in_ctor_dtor_block
13066 argument. Before inlining, preserve
13067 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
13068 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
13070 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
13072 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
13075 * ipa-inline.c (edge_badness): Base denominator on callee's
13078 2015-03-27 Martin Jambor <mjambor@suse.cz>
13081 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
13082 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
13083 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
13084 node_calling_single_call.
13085 * ipa-cp.c (count_callers): New function.
13086 (set_single_call_flag): Likewise.
13087 (initialize_node_lattices): Count callers and set single_flag_call if
13089 (incorporate_penalties): New function.
13090 (good_cloning_opportunity_p): Use it, dump new flags.
13091 (propagate_constants_topo): Set node_within_scc flag if appropriate.
13092 * doc/invoke.texi (ipa-cp-recursion-penalty,
13093 ipa-cp-single-call-pentalty): Document.
13095 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
13098 * symtab.c (symtab_node::get_partitioning_class): Register vars
13100 * varpool.c (symbol_table::output_variables) Do not assemble unefined
13101 decls for non-symbols.
13103 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
13106 * output.h (default_binds_local_p_2): New.
13107 * varasm.c (default_binds_local_p_2): Renamed to ...
13108 (default_binds_local_p_3): This. Don't return true on protected
13109 data symbol if protected data may be external.
13110 (default_binds_local_p): Use default_binds_local_p_3.
13111 (default_binds_local_p_1): Likewise.
13112 (default_binds_local_p_2): New.
13113 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
13114 default_binds_local_p_2 if TARGET_MACHO is undefined.
13116 2015-03-27 Jakub Jelinek <jakub@redhat.com>
13119 * config/i386/i386.c (legitimize_pic_address): If base
13120 is SYMBOL_REF or LABEL_REF using %rip addressing, force
13121 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
13123 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
13126 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
13129 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
13132 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
13133 of optimized out indirect call.
13134 (redirect_to_unreachable): Always build symbol table node for
13135 BUILT_IN_UNREACHABLE
13137 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
13140 * ira-costs.c (record_reg_classes): Process all constraint string
13143 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
13145 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
13149 * config/c6x/constraints.md (S3): New constraint.
13150 * config/c6x/c6x.md (real_jump): Use it.
13152 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13154 PR middle-end/65595
13155 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
13156 do redirection if the call is not optimized out.
13158 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
13161 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
13162 (fchkp-check-incomplete-type): Add LTO.
13163 (fchkp-zero-input-bounds-for-main): Likewise.
13164 (fchkp-first-field-has-own-bounds): Likewise.
13165 (fchkp-narrow-bounds): Likewise.
13166 (fchkp-narrow-to-innermost-array): Likewise.
13167 (fchkp-use-static-bounds): Likewise.
13168 (fchkp-use-static-const-bounds): Likewise.
13169 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
13171 2015-03-27 Marek Polacek <polacek@redhat.com>
13173 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
13175 2015-03-27 Marek Polacek <polacek@redhat.com>
13178 * ubsan.c (ubsan_create_edge): New function.
13179 (instrument_bool_enum_load): Call it.
13180 (instrument_nonnull_arg): Likewise.
13181 (instrument_nonnull_return): Likewise.
13182 (instrument_object_size): Likewise.
13184 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13186 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
13189 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13192 * lto-streamer.h (class lto_location_cache): New.
13193 (struct data_in): Add location_cache.
13194 (lto_input_location): Update prototype.
13195 (stream_input_location_now): New.
13196 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
13197 pointer to location.
13198 (stream_input_location): Update.
13199 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
13200 (warn_odr): Apply location cache before warning.
13201 (lto_input_location): Update prototype.
13202 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
13203 Use stream_input_location_now.
13204 * lto-streamer-in.c (lto_location_cache::current_cache): New static
13206 (lto_location_cache::cmp_loc): New function.
13207 (lto_location_cache::apply_location_cache): New function.
13208 (lto_location_cache::accept_location_cache): New function.
13209 (lto_location_cache::revert_location_cache): New function.
13210 (lto_location_cache::input_location): New function.
13211 (lto_input_location): Do location caching.
13212 (stream_input_location_now): New function.
13213 (input_eh_region, input_struct_function_base): Use
13214 stream_input_location_now.
13215 (lto_data_in_create): use new.
13216 (lto_data_in_delete): Use delete.
13217 * tree-streamer-in.c (unpack_ts_block_value_fields,
13218 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
13219 lto_input_ts_exp_tree_pointers): Update for cached location api.
13221 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13224 * passes.def: Add pass_nothrow.
13225 * ipa-pure-const.c: (pass_data_nothrow): New.
13226 (pass_nothrow): New.
13227 (pass_nothrow::execute): New.
13228 (make_pass_nothrow): New.
13229 * tree-pass.h (make_pass_nothrow): Declare.
13231 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13233 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
13234 edge to change by speculation resolution or redirection.
13235 (edge_set_predicate): Likewise.
13236 (inline_summary_t::duplicate): Likewise.
13237 (remap_edge_summaries): Likewise.
13239 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13241 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
13243 (can_inline_edge_p): Relax option matching for always inline functions.
13245 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
13248 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
13249 Check operand 4 and operand 0 for equality.
13250 (avx512f_vextract<shuffletype>32x4_1_maskm):
13251 Check operand 6 and operand 0 for equality.
13252 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
13254 (vec_extract_hi_<mode>_maskm): Ditto.
13256 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13258 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
13259 dead calls back to live.
13260 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
13262 (cgraph_node::verify_node): ... here; verify only callee edges,
13264 * cif-code.def (CILK_SPAWN): New code.
13266 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
13268 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
13269 (edge_set_predicate): Use it to mark unreachable edges.
13270 (inline_summary_t::duplicate): Remove unnecesary code.
13271 (remap_edge_summaries): Likewise.
13272 (dump_inline_summary): Report contains_cilk_spawn.
13273 (compute_inline_parameters): Compute contains_cilk_spawn.
13274 (inline_read_section, inline_write_summary): Stream
13275 contains_cilk_spawn.
13276 * ipa-inline.c (can_inline_edge_p): Do not touch
13277 DECL_STRUCT_FUNCTION that may not be available;
13278 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
13279 remove check for callee_fun->can_throw_non_call_exceptions and
13280 replace it by optimization attribute check; check for flag_exceptions.
13281 * ipa-inline-transform.c (inline_call): Maintain
13282 DECL_FUNCTION_PERSONALITY
13283 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
13285 2015-03-26 Jakub Jelinek <jakub@redhat.com>
13287 PR tree-optimization/65551
13288 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
13289 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
13291 2015-03-26 Richard Biener <rguenther@suse.de>
13293 PR middle-end/65555
13294 * tree-cfg.c (verify_gimple_call): Do not require a call to
13295 have no LHS if it wasn't recognized as control altering yet.
13297 2015-03-26 Jakub Jelinek <jakub@redhat.com>
13299 PR tree-optimization/64715
13300 * passes.def: Add another instance of pass_object_sizes before ccp1.
13301 * tree-object-size.c (pass_object_sizes::execute): In
13302 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
13303 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
13304 __bos result and the computed constant. Remove redundant
13305 checks, obsoleted by gimple_call_builtin_p test.
13307 * var-tracking.c (variable_tracking_main_1): Don't track
13308 variables for targetm.no_register_allocation targets.
13310 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
13312 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
13313 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
13315 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13318 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
13319 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
13320 0.0 is correctly setup.
13321 (extenddftf2_internal): Likewise.
13323 2015-03-25 Sebastian Pop <s.pop@samsung.com>
13325 PR tree-optimization/65177
13326 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
13328 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
13329 edges not adjacent on the path to the original code.
13331 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
13334 * doc/install.texi (Building a native compiler): Document new
13335 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
13336 configuration assumes that the host supports the linker plugin.
13338 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
13341 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
13342 chain for generated call.
13344 2015-03-25 Richard Biener <rguenther@suse.de>
13346 * passes.c (pass_manager::execute_early_local_passes): Guard
13347 execution of pass_chkp_instrumentation_passes with
13348 flag_check_pointer_bounds.
13349 (pass_chkp_instrumentation_passes::gate): Likewise.
13351 2015-03-25 Martin Liska <mliska@suse.cz>
13353 PR tree-optimization/65538
13354 * symbol-summary.h (function_summary::~function_summary):
13355 Relese memory for allocated summaries.
13356 (function_summary::release): New function.
13358 2015-03-25 Jakub Jelinek <jakub@redhat.com>
13361 * lto-streamer-out.c (DFS::worklist): New struct.
13362 (DFS::worklist_vec): New data member.
13363 (DFS::next_dfs_num): Remove.
13364 (DFS::DFS): Rewritten using worklist instead of recursion,
13365 using most of code from DFS::DFS_write_tree.
13366 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
13367 pass it to DFS_write_tree calls.
13368 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
13369 quick initial checks push it into worklist_vec and return.
13371 2015-03-25 Richard Biener <rguenther@suse.de>
13373 PR middle-end/65519
13374 * genmatch.c (expr::gen_transform): Re-write to avoid
13375 using gimple_build.
13377 2015-03-25 Bin Cheng <bin.cheng@arm.com>
13379 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
13381 2015-03-25 Bin Cheng <bin.cheng@arm.com>
13383 * config/arm/arm.opt (print_tune_info): New option.
13384 * config/arm/arm.c (arm_print_tune_info): New function.
13385 (arm_file_start): Call arm_print_tune_info.
13386 * config/arm/arm-protos.h (struct tune_params): Add comment.
13387 * doc/invoke.texi (@item -mprint-tune-info): New item.
13388 (-mtune): mention it in ARM Option Summary.
13390 2015-03-25 DJ Delorie <dj@redhat.com>
13392 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
13395 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
13396 Martin Liska <mliska@suse.cz>
13398 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
13399 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
13400 (sem_item::add_type): New function.
13401 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
13402 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
13403 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
13404 (sem_function::equals_wpa): Fix typo.
13405 * ipa-icf.h (sem_item::add_type): New function.
13406 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
13409 2015-03-24 Jakub Jelinek <jakub@redhat.com>
13411 PR tree-optimization/65533
13412 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
13413 with swapped operands, call vect_free_slp_tree on
13414 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
13417 2015-03-24 Richard Biener <rguenther@suse.de>
13419 PR middle-end/65517
13420 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
13421 for fixup if necessary.
13423 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
13425 * doc/extend.texi (Function Attributes): Add @cindex entries
13426 for all attributes and regularize their format. Delete text
13427 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
13428 information about "eightbit_data", "tiny_data", and "model"
13429 variable attributes to the Variable Attributes section. Fix
13430 some obvious typos and copy-editing issues.
13431 (Variable Attributes, Type Attributes): Likewise add/fix
13432 @cindex entries for all attributes.
13434 2015-03-23 Jakub Jelinek <jakub@redhat.com>
13437 * tree-chkp.c (chkp_build_returned_bound): Ignore
13438 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
13440 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
13443 * config/sh/predicates.md (simple_mem_operand,
13444 displacement_mem_operand): Add test for reg.
13445 (short_displacement_mem_operand): Test for displacement_mem_operand
13446 before invoking sh_disp_addr_displacement.
13447 * config/sh/constraints.md (Sdd, Sra): Simplify.
13448 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
13449 Remove redundant displacement_mem_operand tests.
13451 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
13454 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
13455 the same -mmcu=MCU more than once.
13457 2015-03-23 Jakub Jelinek <jakub@redhat.com>
13460 * ipa-devirt.c: Remove duplicate demangle.h include.
13463 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
13465 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
13466 REG_POINTER on *destptr after adjusting it for prologue size.
13469 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
13470 ultimate_alias_target ()->order ints instead of
13471 ultimate_alias_target () pointers.
13473 2015-03-23 Richard Biener <rguenther@suse.de>
13475 PR tree-optimization/65518
13476 * tree-vect-stmts.c (vectorizable_load): Reject single-element
13477 interleaving cases we generate absymal code for.
13479 2015-03-23 Richard Biener <rguenther@suse.de>
13481 PR tree-optimization/65494
13482 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
13484 (vect_analyze_slp_instance): But do that here, always and once.
13486 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13488 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
13489 adding T or multiplying by T+1 and subracting T.
13491 2015-03-22 Jeff Law <law@redhat.com>
13493 PR rtl-optimization/64317
13494 * Makefile.in (OBJS): Add gcse-common.c
13495 * gcse.c: Include gcse-common.h
13496 (struct modify_pair_s): Move structure definition to gcse-common.h
13497 (compute_transp): Move function to gcse-common.c.
13498 (canon_list_insert): Similarly.
13499 (record_last_mem_set_info): Break out some code and put it into
13500 gcse-common.c. Call into the new common code.
13501 (compute_local_properties): Pass additional arguments to compute_transp.
13502 * postreload-gcse.c: Include gcse-common.h and df.h
13503 (modify_mem_list_set, blocks_with_calls): New variables.
13504 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
13505 (get_bb_avail_insn): Pass in the expression index too.
13506 (alloc_mem): Allocate memory for the new bitmaps and lists.
13507 (free_mem): Free memory for the new bitmaps and lists.
13508 (insert_expr_in_table): Record a bitmap index for each entry we
13510 (record_last_mem_set_info): Call into common code in gcse-common.c.
13511 (get_bb_avail_insn): If no available insn was found in the requested
13512 BB. If BB has a single predecessor, see if the expression is
13513 transparent in BB and available in that single predecessor.
13514 (compute_expr_transp): New wrapper for compute_transp.
13515 (eliminate_partially_redundant_load): Pass expression's bitmap_index
13516 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
13517 (gcse_after_reload_main): If there are elements in the hash table,
13518 then compute transparency for all the elements in the hash table.
13519 * gcse-common.h: New file.
13520 * gcse-common.c: New file.
13522 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
13524 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
13526 (System Headers): Likewise.
13528 (Traditional macros): Likewise.
13529 (Invocation): Likewise.
13530 (Option Index): Likewise.
13531 * doc/cppopts.texi (-M): Likewise.
13532 (-finput-charset): Likewise.
13533 (--help): Likewise.
13534 * doc.invoke.texi (AVR Options): Likewise.
13535 (V850 Options): Likewise.
13537 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
13540 * ipa-devirt.c: Include demangle.h
13541 (odr_type_d): Add field rtti_broken.
13542 (odr_subtypes_equivalent_p): Do not require name to match.
13543 (compare_virtual_tables): Fix typo; if type already has ODR violation,
13544 bypass the tests; be ready for function referneces in vtables that are
13545 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
13546 (warn_odr): Give up for nameless types.
13547 (warn_types_mismatch): Report mismatch in mangled names;
13548 report mismatch in anonymous namespaces; look into component types to
13549 give useful error; report when mismatch is dragged in from other ODR
13551 (odr_types_equivalent_p): Match types for being polymorphic; avoid
13552 duplicated diagnostics.
13553 (add_type_duplicate): Reorder checks so more informative ones come
13554 first; fix typo; do not output "the extra base is defined here" when
13556 (BINFO_N_BASE_BINFOS): Relax sanity check.
13558 2015-03-22 Martin Liska <mliska@suse.cz>
13559 Jakub Jelinek <jakub@redhat.com>
13561 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
13562 masks that can potentially include a builtin.
13563 (ix86_add_new_builtins): Introduce fast filter for isa values
13564 that cannot trigger builtin inclusion.
13566 2015-03-22 Martin Liska <mliska@suse.cz>
13568 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
13569 (sem_item::update_hash_by_local_refs): Likewise.
13570 (sem_variable::get_hash): Empty line is fixed.
13571 (sem_item_optimizer::execute): Include adding of hash references.
13572 (sem_item_optimizer::update_hash_by_addr_refs): New function.
13573 (sem_item_optimizer::build_hash_based_classes): Use local hash.
13574 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
13575 (sem_item::update_hash_by_local_refs): Likewise.
13577 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
13580 * ipa-comdats.c (enqueue_references): Walk through thunks.
13581 (ipa_comdats): Likewise.
13582 (set_comdat_group_1): New function.
13584 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
13587 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
13590 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
13591 Gerald Pfeifer <gerald@pfeifer.com>
13593 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
13595 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13596 Sandra Loosemore <sandra@codesourcery.com>
13598 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
13599 function parameter declaration.
13600 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
13601 Update arguments to nios2_adjust_call_address().
13602 (sibcall_internal): Rename from *sibcall.
13603 (sibcall_value_internal): Rename from *sibcall_value.
13604 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
13605 (nios2_large_got_address): Add target temp reg parameter.
13606 (nios2_got_address): Adjust call to nios2_large_got_address, add
13607 force_reg around it.
13608 (nios2_load_pic_address): Add target temp reg parameter, replace call
13609 to nios2_got_address with corresponding code.
13610 (nios2_legitimize_constant_address): Update call to
13611 nios2_load_pic_address.
13612 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
13613 to use temp reg for PIC loading purposes.
13614 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
13615 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13616 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
13618 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
13620 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
13621 usage of "the @option{...}".
13622 (-Wopenmp-simd): Likewise.
13623 (-fsanitize-recover): Likewise.
13624 (-fsanitize-undefined-trap-on-error): Likewise.
13626 (tracer-dynamic-coverage-feedback): Likewise.
13627 (reorder-block-duplicate-feedback): Likewise.
13628 (loop-unroll-jam-size): Likewise.
13631 (-mabs=legacy): Likewise.
13632 (-mupper-regs-df): Likewise.
13633 (-mupper-regs-sf): Likewise.
13634 (-mpointers-to-nested-functions): Likewise.
13636 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
13638 * doc/extend.texi (Cilk Plus Builtins): Add markup.
13640 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
13642 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
13643 additional index entries and cross-references.
13644 (-fchkp-check-incomplete-type): Likewise.
13645 (-fchkp-first-field-has-own-bounds): Likewise.
13646 (-fchkp-narrow-to-innermost-array): Likewise.
13647 (-fchkp-use-fast-string-functions): Likewise.
13648 (-fchkp-use-nochk-string-functions): Likewise.
13649 (-fchkp-use-static-const-bounds): Likewise.
13650 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
13651 (-fchkp-instrument-marked-only): Likewise.
13652 (-fchkp-use-wrappers): Likewise.
13653 (-static-libmpx): Likewise.
13654 (-static-libmpxwrappers): Likewise.
13655 * doc/extend.texi (bnd_legacy): Likewise.
13656 (bnd_instrument): Likewise.
13657 (bnd_variable_size): Likewise.
13658 (Pointer Bounds Checker builtins): Likewise.
13660 2015-03-21 Tom de Vries <tom@codesourcery.com>
13662 PR tree-optimization/65458
13663 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
13664 * cgraph.h (cgraph_node): Add parallelized_function field.
13665 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
13666 (input_overwrite_node): Read parallelized_function field.
13667 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
13668 parallelized_function on cgraph_node for child_fn.
13669 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
13670 Remove include of gt-tree-parloops.h.
13671 (parallelized_functions): Remove static variable.
13672 (parallelized_function_p): Rewrite using parallelized_function field of
13674 (create_loop_fn): Remove adding to parallelized_functions.
13675 * Makefile.in (GTFILES): Remove tree-parloops.c
13677 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
13679 PR rtl-optimization/64366
13680 * lra.c (lra_update_insn_regno_info): Consider regs in
13681 CALL_INSN_FUNCTION_USAGE memory.
13683 2015-03-20 Richard Biener <rguenther@suse.de>
13685 PR middle-end/64715
13686 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
13687 for type comparison and gcc_checking_assert.
13688 (chrec_fold_plus_poly_poly): Likewise.
13689 (chrec_fold_multiply_poly_poly): Likewise.
13690 (chrec_convert_1): Likewise.
13691 * gimplify.c (gimplify_expr): Remove premature folding of
13692 &X + CST to &MEM[&X, CST].
13694 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
13696 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
13698 (ipa_inline): Recompute inline_failed codes.
13699 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
13700 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
13703 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
13705 PR rtl-optimization/60851
13706 * recog.c (constrain_operands): Accept a pseudo register before reload
13707 for LRA enabled targets.
13709 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
13712 * config/rs6000/predicates.md (easy_fp_constant): Remove special
13713 -ffast-math handling that kept non-0 constants live in the RTL
13714 until reload. Remove logic testing the number of instructions it
13715 took to create a constant in a GPR that was never used, due to a
13716 test for soft-float earlier.
13717 (memory_fp_constant): Delete, no longer used.
13719 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
13720 alternatives for loading non-0 constants into GPRs for hard
13721 floating point that is no longer needed due to changes in
13722 easy_fp_constant. Add support for loading 0.0 into GPRs.
13723 (mov<mode>_hardfloat32): Likewise.
13724 (mov<mode>_hardfloat64): Likewise.
13725 (mov<mode>_64bit_dm): Likewise.
13726 (movtd_64bit_nodm): Likewise.
13727 (pre-reload move FP constant define_split): Delete define_split,
13728 since it is no longer used.
13729 (extenddftf2_internal): Remove GHF constraints that are not valid
13732 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
13734 PR rtl-optimization/63491
13735 * lra-constraints.c (check_and_process_move): Use src instead of
13736 sreg. Remove some dead code.
13738 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
13741 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
13742 (sem_variable::merge): Likewise.
13744 2015-03-19 Martin Liska <mliska@suse.cz>
13747 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
13748 all fields of cgraph_thunk_info.
13750 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
13752 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
13753 clone instrumented thunks.
13755 2015-03-19 Richard Biener <rguenther@suse.de>
13758 2015-03-10 Richard Biener <rguenther@suse.de>
13760 PR middle-end/63155
13761 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
13762 * tree-ssa-coalesce.c: Include timevar.h.
13763 (attempt_coalesce): Handle graph being NULL.
13764 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
13765 Split out abnormal coalescing to ...
13766 (perform_abnormal_coalescing): ... this function.
13767 (coalesce_ssa_name): Perform abnormal coalescing without computing
13769 (verify_ssa_coalescing_worker): New function.
13770 (verify_ssa_coalescing): Likewise.
13772 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13773 Jakub Jelinek <jakub@redhat.com>
13776 * tsan.c (instrument_gimple): Clear tail call flag on
13779 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13782 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
13783 call in the return bb.
13784 (find_split_points): Add RETURN_BB argument, don't call
13786 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
13787 if true append TSAN_FUNC_EXIT internal call after the call to
13788 the split off function.
13789 (execute_split_functions): Call find_return_bb here.
13790 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
13791 Adjust find_split_points and split_function calls.
13793 2015-03-18 DJ Delorie <dj@redhat.com>
13795 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
13796 (iorqi3_virt): Likewise.
13798 2015-03-18 Tom de Vries <tom@codesourcery.com>
13800 * tree-parloops.c (parallelize_loops): Make static.
13801 * tree-parloops.h (parallelize_loops): Remove extern declaration.
13803 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
13805 PR middle-end/64491
13807 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
13809 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
13810 condition would be removed due to undefined behaviour.
13812 2015-03-18 Martin Liska <mliska@suse.cz>
13815 * cgraph.c (cgraph_node::get_create): Remove unnecessary
13816 xstrdup_for_dump wrapper.
13817 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
13819 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
13820 with xstrdup_for_dump.
13821 (sem_variable::equals): Likewise.
13822 (sem_item_optimizer::read_section): Use symtab_node::name instead of
13824 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
13825 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
13826 symtab_node::asm_name with xstrdup_for_dump.
13827 (congruence_class::dump): Use symtab_node::name instead of
13829 * ipa-icf.h (symtab_node::name): Remove.
13830 (symtab_node::asm_name): Likewise.
13832 2015-03-18 Jakub Jelinek <jakub@redhat.com>
13834 PR tree-optimization/65450
13835 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
13837 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
13838 it instead of duplicate_ssa_name_ptr_info.
13841 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
13843 2015-03-18 Richard Biener <rguenther@suse.de>
13845 * tree-data-ref.h (struct access_matrix): Remove.
13846 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
13847 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
13848 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
13849 (am_vector_index_for_loop): Likewise.
13850 (struct data_reference): Remove access_matrix member.
13851 (DR_ACCESS_MATRIX): Remove.
13852 (lambda_vector_new): Add comment.
13853 (lambda_matrix_new): Use XOBNEWVEC.
13855 2015-03-18 Richard Biener <rguenther@suse.de>
13857 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
13858 (pass_ch::execute): Cleanup the CFG only if we did sth.
13859 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
13861 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13863 * expmed.c (synth_mult): Use std::swap instead of manually
13864 swapping algorithms.
13866 2015-03-18 Jakub Jelinek <jakub@redhat.com>
13869 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
13871 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
13874 * config/avr/avr.opt (-nodevicelib): New option.
13875 * doc/invoke.texi (AVR Options): Document it.
13876 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
13877 libgcc.a, libc.a, libm.a.
13878 * config/avr/specs.h: Same.
13879 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
13880 which don't (directly) depend on the device. Print more help.
13881 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
13882 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
13883 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
13885 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
13886 for specs file name.
13887 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
13888 * config/avr/avr-mcus.def: Adjust initializers and comments.
13890 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
13892 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
13893 DECL_ONE_ONLY to check if decl is one only.
13894 * ipa-split.c (consider_split): Limit splitt of one only functions.
13896 2015-03-16 Jakub Jelinek <jakub@redhat.com>
13898 PR tree-optimization/65427
13899 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
13901 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
13903 2015-03-16 Marek Polacek <polacek@redhat.com>
13905 * cgraph.h (add_new_static_var): Remove declaration.
13906 * varpool.c (add_new_static_var): Remove function.
13908 2015-03-16 Jakub Jelinek <jakub@redhat.com>
13910 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
13911 instead of vec<tree> * with vec_alloc and release for args.
13914 PR middle-end/65431
13915 * omp-low.c (delete_omp_context): Only splay_tree_delete
13916 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
13917 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
13919 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
13922 * cfgexpand.c (align_base): New function.
13923 (alloc_stack_frame_space): Call it.
13924 (expand_stack_vars): Align prev_frame to be sure
13925 data->asan_vec elements aligned properly.
13927 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
13929 PR middle-end/65409
13930 * expr.c (store_field): Do not do a direct block copy if the source is
13931 a PARALLEL with BLKmode.
13933 2015-03-16 Tom de Vries <tom@codesourcery.com>
13935 PR middle-end/65414
13937 2015-03-12 Tom de Vries <tom@codesourcery.com>
13939 PR rtl-optimization/64895
13940 * lra-lives.c (check_pseudos_live_through_calls): Use
13941 actual_call_used_reg_set instead of call_used_reg_set, if available.
13943 2015-03-16 Alan Modra <amodra@gmail.com>
13946 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
13947 Modify Z->r bswapdi splitter to use dest in place of scratch.
13948 In r->Z and Z->r bswapdi splitter rename word_high, word_low
13949 to word1, word2 and rearrange logic to suit.
13950 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
13951 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
13952 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
13953 Add one '?' on r->r. Modify Z->r splitter to avoid need for
13956 2015-03-14 Jakub Jelinek <jakub@redhat.com>
13958 PR tree-optimization/65369
13959 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
13960 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
13961 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
13963 PR tree-optimization/65418
13964 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
13965 are casts in the first PLUS_EXPR operand, ensure tbias and
13966 *totallowp are in the inner type.
13968 PR rtl-optimization/65401
13969 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
13970 argument. If true, adjust_address_nv of x with big-endian
13971 correction for the mode widening to GET_MODE (y).
13972 (make_field_assignment): Don't do MEM mode widening here.
13973 Use MEM_P instead of GET_CODE == MEM.
13975 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13977 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
13978 the external decls.
13980 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13983 * config/arm/arm.c (arm_gen_constant, AND case): Use
13984 ARM_SIGN_EXTEND when constructing AND mask.
13986 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13988 * graph.c (print_graph_cfg): Make function names visible and append
13989 parenthesis to it. Also make groups of basic blocks belonging to the
13990 same function visible.
13992 2015-03-12 Richard Biener <rguenther@suse.de>
13994 PR middle-end/44563
13995 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
13996 to avoid quadratic behavior with inline expansion splitting blocks.
13997 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
13998 with the successor if the predecessor will be merged with it.
13999 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
14000 entry block with its successor.
14002 2015-03-13 Richard Biener <rguenther@suse.de>
14004 PR middle-end/44563
14005 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
14006 (cleanup_tree_cfg_1): Do not call it.
14007 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
14008 (fixup_noreturn_call): Mark the stmt as control altering.
14009 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
14011 (pass_data_fixup_cfg): Produce a dump file.
14012 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
14013 (need_noreturn_fixup): New global.
14014 (pass_dominator::execute): Fixup queued noreturn calls.
14015 (optimize_stmt): Queue calls that became noreturn for fixup.
14016 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
14017 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
14018 (el_to_fixup): New global.
14019 (eliminate_dom_walker::before_dom_childre): Queue calls that
14020 became noreturn for fixup.
14021 (eliminate): Fixup queued noreturn calls.
14022 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
14023 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
14024 (substitute_and_fold_dom_walker::before_dom_children): Queue
14025 alls that became noreturn for fixup.
14026 (substitute_and_fold): Fixup queued noreturn calls.
14028 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
14030 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
14031 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
14032 are building; for methods check ODR type of class they belong to if
14033 they may lead to a polymorphic call.
14034 (sem_function::compare_polymorphic_p): Be bit smarter about testing
14035 when function may lead to a polymorphic call.
14036 (sem_function::compare_type_list): Remove.
14037 (sem_variable::equals): Update use of compatible_types_p.
14038 (sem_variable::parse_tree_refs): Remove.
14039 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
14041 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
14043 (func_checker::compatible_polymorphic_types_p): Break out from ...
14044 (unc_checker::compatible_types_p): ... here.
14045 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
14047 (unc_checker::compatible_types_p): Update.
14048 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
14051 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14053 PR rtl-optimization/65235
14054 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
14055 When first element of vec_concat is const_int, calculate its size
14056 using second element.
14058 2015-03-12 Richard Biener <rguenther@suse.de>
14060 PR middle-end/65270
14061 * fold-const.c (operand_equal_p): Fix ordering of resetting
14062 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
14064 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
14066 * config/s390/s390.c (s390_reorg): Move code to output nops after label
14068 (s390_asm_output_function_label): Likewise.
14069 * config/s390/s390.c (s390_asm_output_function_label):
14070 Fix function label alignment with -mhtopatch.
14071 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
14072 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
14073 ("nop_2_byte"): New define_insn.
14074 ("nop_4_byte"): Likewise.
14075 ("nop_6_byte"): Likewise.
14076 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
14077 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
14079 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
14082 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
14085 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
14088 * toplev.c (process_options): Restrict Pointer Bounds Checker
14089 usage with Address Sanitizer.
14091 2015-03-12 Richard Biener <rguenther@suse.de>
14093 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
14095 * omp-low.c (expand_omp_taskreg): Split block before removing
14097 (expand_omp_target): Likewise.
14098 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
14099 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
14100 stmt to split_block.
14102 2015-03-12 Tom de Vries <tom@codesourcery.com>
14104 PR rtl-optimization/64895
14105 * lra-lives.c (check_pseudos_live_through_calls): Use
14106 actual_call_used_reg_set instead of call_used_reg_set, if available.
14108 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
14110 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
14111 (cgraph_node::remove): Likewise.
14112 (cgraph_node::get_untransformed_body): Likewise.
14113 * varpool.c (varpool_node::remove): Likewise.
14114 (varpool_node::get_constructor): Add sanity check.
14116 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
14118 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
14120 (-fabi-compat-version): Likewise.
14121 (-ffriend-injection): Likewise.
14122 (-Wdeclaration-after-statement): Likewise.
14123 (-fomit-frame-pointer): Likewise.
14124 (-ftree-coalesce-inlined-vars): Likewise.
14125 (-fvisibility=): Likewise.
14126 * doc/extend.texi (Typeof): Likewise.
14127 (Zero Length): Likewise.
14128 (Escaped Newlines): Likewise.
14129 (Compound Literals): Likewise.
14130 (Function Attributes): Likewise.
14131 (Label Attributes): Likewise.
14132 (Type Attributes): Likewise.
14133 (Function Names): Likewise.
14134 (Other Builtins): Likewise.
14135 (Function Specific Option Pragmas): Likewise.
14136 (C++ Interface): Likewise.
14138 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
14140 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
14142 2015-03-11 Marek Polacek <polacek@redhat.com>
14144 PR tree-optimization/65388
14145 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
14147 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
14150 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
14151 * configure: Regenerate.
14152 * config.in: Regenerate.
14153 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
14154 [-mn-flash]: Document it.
14155 [__AVR_ARCH__]: Document avrtiny.
14157 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
14158 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
14159 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
14161 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14163 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
14165 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14168 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
14169 allow reloads of PLUS in floating point/VSX registers.
14171 2015-03-11 Junmo Park <junmoz.park@samsung.com>
14173 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
14174 crypto_sha256_fast.
14175 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
14177 2015-03-11 Richard Biener <rguenther@suse.de>
14179 PR tree-optimization/65310
14180 * tree-sra.c (build_ref_for_offset): Also preserve larger
14183 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
14185 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
14187 2015-03-10 Jakub Jelinek <jakub@redhat.com>
14190 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
14192 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
14194 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
14196 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
14197 (sem_function::equals_wpa): ... here.
14199 2015-03-10 Marek Polacek <polacek@redhat.com>
14200 Jakub Jelinek <jakub@redhat.com>
14203 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
14204 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
14207 2015-03-10 Jakub Jelinek <jakub@redhat.com>
14210 * config/rs6000/t-linux: For powerpc64* target set
14211 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
14213 2015-03-10 Richard Biener <rguenther@suse.de>
14215 PR middle-end/44563
14216 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
14217 for redirect_all_calls.
14219 2015-03-10 Marek Polacek <polacek@redhat.com>
14221 * gdbinit.in (pcfun): Define and document.
14223 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
14225 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
14226 of libgomp-plugin.h.
14227 (find_target_compiler): Support a case when the path to gcc is
14228 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
14229 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
14230 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
14232 (main): Use GCC_INSTALL_NAME as target_driver_name.
14233 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
14235 (mkoffload.o): Remove obsolete include path and defines.
14236 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
14238 2015-03-10 Richard Biener <rguenther@suse.de>
14240 PR middle-end/63155
14241 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
14242 * tree-ssa-coalesce.c: Include timevar.h.
14243 (attempt_coalesce): Handle graph being NULL.
14244 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
14245 Split out abnormal coalescing to ...
14246 (perform_abnormal_coalescing): ... this function.
14247 (coalesce_ssa_name): Perform abnormal coalescing without computing
14249 (verify_ssa_coalescing_worker): New function.
14250 (verify_ssa_coalescing): Likewise.
14252 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
14255 * config.gcc (extra_options) [avr]: Remove.
14256 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
14257 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
14258 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
14260 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
14261 (-mmcu=): Add Var and MissingArgError properties.
14263 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
14264 * config/avr/t-multilib: Regenerate.
14265 * config/avr/specs.h: New file.
14266 * config/avr/driver-avr.c: New file.
14267 * config/avr/genopt.sh: Remove file.
14268 * config/avr/avr-tables.opt: Remove file.
14269 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
14270 * config/avr/avr-c.c: Same.
14271 * avr-arch.h: Same.
14272 (avr_current_device): Remove proto.
14273 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
14274 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
14275 (EXTRA_SPEC_FUNCTIONS): Define.
14276 (avr_devicespecs_file): New specs function proto.
14277 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
14278 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
14279 (avr_current_device): Remove definition and usage.
14280 (avr_set_core_architecture): New static function.
14281 (avr_option_override): Use it.
14282 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
14283 (mcu_name): New static array.
14284 (comparator, avr_archs_str, avr_mcus_str): New static functions.
14285 (avr_inform_devices, avr_inform_core_architectures): New functions.
14286 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
14287 (avrlibc.h) [WITH_AVRLIBC]: Include.
14288 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
14289 (print_mcu): Rewrite from scratch.
14290 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
14291 Forward to avr-specific specs defined in device-specs file.
14292 * config/avr/t-avr (driver-avr.o): New rule.
14293 (avr-devices.o): Depend on avr-arch.h.
14294 (avr-mcus): No more depend on avr-tables.opt.
14295 (avr-tables.opt): Remove rule.
14296 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
14298 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
14300 * c-family/c.opt (fchkp-use-wrappers): New.
14301 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
14302 (chkp_wrap_function): New.
14303 (chkp_build_instrumented_fndecl): Support wrapped
14305 * doc/invoke.texi (-fcheck-pointer-bounds): New.
14306 (-fchkp-check-incomplete-type): New.
14307 (-fchkp-first-field-has-own-bounds): New.
14308 (-fchkp-narrow-bounds): New.
14309 (-fchkp-narrow-to-innermost-array): New.
14310 (-fchkp-optimize): New.
14311 (-fchkp-use-fast-string-functions): New.
14312 (-fchkp-use-nochk-string-functions): New.
14313 (-fchkp-use-static-bounds): New.
14314 (-fchkp-use-static-const-bounds): New.
14315 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
14316 (-fchkp-check-read): New.
14317 (-fchkp-check-write): New.
14318 (-fchkp-store-bounds): New.
14319 (-fchkp-instrument-calls): New.
14320 (-fchkp-instrument-marked-only): New.
14321 (-fchkp-use-wrappers): New.
14322 (-static-libmpx): New.
14323 (-static-libmpxwrappers): New.
14325 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
14327 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
14328 (CHKP_SPEC): Add wrappers library.
14329 * c-family/c.opt (static-libmpxwrappers): New.
14331 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
14333 * config/i386/linux-common.h (LIBMPX_LIBS): New.
14334 (LIBMPX_SPEC): New.
14336 * gcc.c (CHKP_SPEC): New.
14337 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
14338 * c-family/c.opt (static-libmpx): New.
14340 2015-03-10 Richard Biener <rguenther@suse.de>
14342 PR middle-end/44563
14343 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
14345 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
14346 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
14347 (cgraph_add_edge_to_call_site_hash): Likewise.
14348 (cgraph_node::get_edge): Likewise.
14349 (cgraph_edge::set_call_stmt): Likewise.
14350 (cgraph_edge::remove_caller): Likewise.
14352 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
14354 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
14355 (callee_saved_gpr_regs_size): ... this.
14356 (callee_saved_regs_first_regno): Rename to ...
14357 (callee_saved_first_gpr_regno): ... this.
14358 (callee_saved_regs_last_regno) Rename to ...
14359 (callee_saved_last_gpr_regno): ... this.
14360 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
14362 (nds32_initial_elimination_offset): Likewise.
14363 (nds32_expand_prologue): Likewise.
14364 (nds32_expand_epilogue): Likewise.
14365 (nds32_expand_prologue_v3push): Likewise.
14366 (nds32_expand_epilogue_v3pop): Likewise.
14367 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
14368 Adjust renamed variables.
14369 (nds32_output_stack_pop): Likewise.
14371 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
14373 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
14376 2015-03-10 Jakub Jelinek <jakub@redhat.com>
14378 PR rtl-optimization/65321
14379 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
14381 * var-tracking.c (use_narrower_mode): Likewise.
14383 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
14385 PR tree-optimization/65355
14386 * varasm.c (notice_global_symbol): Do not produce RTL.
14387 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
14389 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
14390 check for section anchors.
14392 2015-03-10 Alan Modra <amodra@gmail.com>
14395 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
14396 to be single-arch by default. Set cpu_is_64bit for powerpc64
14397 given --with-cpu=native.
14398 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
14399 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
14401 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
14402 rs6000_isa_flags rather than TARGET_64BIT.
14404 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
14405 Kaz Kojima <kkojima@gcc.gnu.org>
14407 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
14409 2015-03-09 Jakub Jelinek <jakub@redhat.com>
14412 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
14413 on a TREE_BINFO, instead use BINFO_TYPE.
14415 2015-03-09 Richard Biener <rguenther@suse.de>
14417 PR middle-end/65270
14418 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
14419 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
14420 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
14421 of that. When comparing dereferences compare alignment.
14422 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
14424 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
14426 * ipa-inline-analysis.c (check_callers): Check
14427 node->can_remove_if_no_direct_calls_and_refs_p.
14428 (growth_likely_positive): Reorganize to call
14429 can_remove_if_no_direct_calls_p later.
14430 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
14431 will_be_removed_from_program_if_no_direct_calls_p): Add
14432 will_inline parameter.
14433 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
14434 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14435 Handle inliner case correctly.
14437 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
14439 PR tree-optimization/63743
14440 * cfgexpand.c (reorder_operands): Also reorder if only second operand
14441 had its definition forwarded by TER.
14443 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
14446 * ipa-utils.h (types_odr_comparable): Add strict argument.
14447 * ipa-devirt.c: Fix whitespace;
14448 (odr_hasher): Remove.
14449 (odr_name_hasher, odr_vtable_hasher): New hashers.
14450 (can_be_name_hashed_p): New predicate.
14451 (hash_type_name): remove.
14452 (hash_odr_name): New.
14453 (odr_name_hasher::hash): new.
14454 (can_be_vtable_hashed_p): New.
14455 (hash_odr_vtable): New.
14456 (odr_vtable_hasher::hash): New.
14457 (types_same_for_odr): Add strict parameter.
14458 (types_odr_comparable): Likewise.
14459 (odr_name_hasher::equal): New.
14460 (odr_vtable_hasher::equal): New.
14461 (odr_name_hasher::remove): New.
14462 (odr_hash_type): Change to hash_table<odr_name_hasher>.
14463 (odr_vtable_hash_type): New.
14464 (odr_vtable_hash): New.
14465 (odr_subtypes_equivalent_p): Do strict comparsion.
14466 (add_type_duplicate): Merge type names; cleanup; avoid type
14468 (register_odr_type): Initialize vtable hash.
14469 (build_type_inheritance_graph): Likewise
14470 (get_odr_type): Reorg to use two hashes.
14471 (dump_possible_polymorphic_call_targets): Move sanity check after debug
14473 (ipa_devirt): Dump type_inheritance_graph.
14474 (types_same_for_odr): Add strict mode.
14476 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14479 * cgraph.h (symtab_node): Add definition_alignment,
14480 can_increase_alignment_p and increase_alignment.
14481 * symtab.c (symtab_node::can_increase_alignment_p,
14482 increase_alignment_1, symtab_node::increase_alignment,
14483 symtab_node::definition_alignment): New.
14484 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
14485 can_increase_alignment_p.
14486 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
14487 * tree-vect-stmts.c (ensure_base_align): Likewise.
14488 * varasm.c (function_section_1): Use definition_alignment.
14489 (assemble_start_function): Likewise.
14490 (emit_local): likewise.
14491 (build_constant_desc): Likewsie.
14492 (output_constant_def_contents): Likewise.
14493 (place_block_symbol): Likewise.
14494 (output_object_block): Likewise.
14496 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14499 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
14500 when outputting debug.
14502 2015-03-07 Marek Polacek <polacek@redhat.com>
14503 Martin Uecker <uecker@eecs.berkeley.edu>
14506 * doc/invoke.texi: Update description of -fsanitize=bounds.
14508 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
14510 * tree-ssa-phiopt.c (neg_replacement): Remove.
14511 (tree_ssa_phiopt_worker): Remove negate optimization.
14513 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14516 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
14518 2015-03-06 Richard Biener <rguenther@suse.de>
14520 PR middle-end/64928
14521 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
14522 and liveout_obstack members.
14523 (calculate_live_on_exit): Remove.
14524 (calculate_live_ranges): Change declaration.
14525 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
14526 (new_tree_live_info): Adjust.
14527 (calculate_live_ranges): Delete livein when not wanted.
14528 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
14529 Deal with partly deleted live info.
14530 (loe_visit_block): Remove temporary bitmap by using
14531 bitmap_ior_and_compl_into.
14532 (live_worklist): Adjust accordingly.
14533 (calculate_live_on_exit): Make static.
14534 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
14535 we do not need livein.
14537 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
14539 * real.c (real_from_string): Fix typo in assertion.
14541 2015-03-06 Alex Velenko <alex.velenko@arm.com>
14543 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
14546 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
14548 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
14550 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
14553 * lra-assigns.c (find_hard_regno_for): Rename to
14554 find_hard_regno_for_1. Add a new parameter.
14555 (find_hard_regno_for): New function using find_hard_regno_for_1.
14557 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14559 PR rtl-optimization/65067
14560 * expmed.c (store_bit_field, extract_bit_field): Reworked the
14561 strict volatile bitfield handling.
14563 2015-03-05 Martin Liska <mliska@suse.cz>
14566 * ipa-icf.c (sem_variable::equals): Compare variables types.
14568 2015-03-05 Richard Henderson <rth@redhat.com>
14571 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
14572 correctly check weak symbol binding.
14574 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
14576 PR middle-end/65315
14577 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
14580 2015-03-05 Martin Liska <mliska@suse.cz>
14582 * ipa-inline.c (inline_small_functions): Set default value to
14583 prevent warning during bootstrap.
14584 * tree.h: Add pragma guard that ignores false positives during
14587 2015-03-05 Richard Biener <rguenther@suse.de>
14589 PR tree-optimization/65310
14590 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14591 Properly preserve alignment of the base of the access.
14593 2015-03-05 Richard Biener <rguenther@suse.de>
14596 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
14597 Compare dependence info.
14599 2015-03-05 Richard Biener <rguenther@suse.de>
14601 PR middle-end/65233
14602 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
14604 (walk_ssa_copies): Revert last chage. Instead do not walk
14605 SSA names registered for SSA update.
14607 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
14610 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
14611 vtable references for their containing type.
14612 (sem_function::equals_wpa): Compare TYPE_RESTRICT
14613 and type attributes.
14615 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
14617 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
14618 before negating it.
14619 * stor-layout.c (finalize_record_size): Revert latest change.
14621 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
14623 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
14625 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
14627 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
14628 for correct comdat handling.
14629 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
14631 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
14632 (used_from_object_file_p_worker): Remove.
14633 (cgraph_node::only_called_directly_or_alised): Add
14634 used_from_object_file_p.
14635 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
14636 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
14637 can_remove_if_no_direct_calls_and_refs_p.
14639 2015-03-04 Nick Clifton <nickc@redhat.com>
14641 * config/rl78/rl78.h (enum reg_class): Remove real registers from
14642 General register class.
14643 * config/rl78/rl78-real.md: Replace general register constraints
14644 with real+virtual register constraints.
14646 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14648 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
14649 from checking for -mhtm option.
14651 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
14653 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
14654 (struct ipa_sra_check_caller_data): Add has_thunk field.
14655 (ipa_sra_check_caller): Check for thunk.
14656 (ipa_sra_preliminary_function_checks): Give up on function with
14658 (ipa_early_sra): Use call_for_symbol_and_aliases.
14660 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
14663 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
14664 called for __stack_chk_guard symbol.
14666 2015-03-03 DJ Delorie <dj@redhat.com>
14668 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
14670 (*addhi3_real): Likewise.
14671 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
14672 pattern to match incrementing memory.
14673 * config/rl78/predicates.md (rl78_1_2_operand): New.
14674 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
14675 it's the same and only mem.
14676 (rl78_alloc_physical_registers_op2): If there's effectively only
14677 one MEM, transcode it into HL.
14678 (rl78_far_p): Reject addresses that aren't legitimate.
14680 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
14682 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
14685 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
14687 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
14689 Implement call0 ABI for xtensa
14690 * config/xtensa/constraints.md ("a" constraint): Include stack
14691 pointer in case of call0 ABI.
14692 ("q" constraint): Make empty in case of call0 ABI.
14693 ("D" constraint): Include stack pointer in case of call0 ABI.
14694 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
14695 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
14697 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
14699 (xtensa_regno_to_class): Make it a local variable in the
14700 function xtensa_regno_to_class.
14701 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
14702 macro, function prototype and implementation.
14703 (reg_nonleaf_alloc_order): Make it a local variable in the
14704 function order_regs_for_local_alloc.
14705 (xtensa_conditional_register_usage): New function.
14706 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
14707 (xtensa_valid_move): Allow direct moves to stack pointer
14708 register in call0 ABI.
14709 (xtensa_setup_frame_addresses): Only spill register windows in
14711 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
14712 call0 ABI respectively.
14713 (xtensa_function_arg_1): Only mark a7 register for copying in
14715 (xtensa_call_save_reg): New function.
14716 (compute_frame_size): Add space for callee saved register
14717 storage to the frame size in call0 ABI.
14718 (xtensa_expand_prologue): Generate code to set up stack frame
14719 and save callee-saved registers in call0 ABI.
14720 (xtensa_expand_epilogue): New function.
14721 (xtensa_set_return_address): New function.
14722 (xtensa_return_addr): Calculate return address in call0 ABI.
14723 (xtensa_builtin_saveregs): Only mark a7 register for copying and
14724 emit copying code in windowed ABI.
14725 (order_regs_for_local_alloc): Add preferred register allocation
14726 order for non-leaf function in call0 ABI.
14727 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
14728 (xtensa_asm_trampoline_template): Add trampoline generation for
14730 (xtensa_trampoline_init): Add trampoline initialization for
14732 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
14734 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
14735 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
14736 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
14737 ABI call-used registers.
14738 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
14739 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
14741 (REG_CLASS_CONTENTS): Include all registers into the preferred
14742 reload registers set, adjust the set in the
14743 xtensa_conditional_register_usage.
14744 (xtensa_regno_to_class): Drop variable declaration.
14745 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
14747 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
14749 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
14750 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
14751 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
14752 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
14753 location in call0 ABI.
14754 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
14755 stack adjustment size when handling exception.
14756 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
14757 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
14759 ("return" pattern): Generate ret.n/ret in call0 ABI.
14760 ("epilogue" pattern): Expand epilogue.
14761 ("nonlocal_goto" pattern): Use default in call0 ABI.
14762 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
14763 emit eh_set_a0_* depending on ABI.
14764 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
14765 ("eh_set_a0_call0", "blockage"): New patterns.
14767 2015-03-03 Martin Liska <mliska@suse.cz>
14770 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
14772 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14775 * config/rs6000/rs6000-tables.opt: Regenerate table.
14777 2015-03-03 Renlin Li <renlin.li@arm.com>
14779 * doc/md.texi (@item ^): Change ? into ^.
14781 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
14783 * doc/tm.texi: Regenerated.
14785 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
14787 * builtins.c (expand_builtin_return_addr): Add
14788 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
14789 surrounding #ifdef.
14790 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
14792 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
14794 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
14796 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
14799 2015-03-03 Martin Jambor <mjambor@suse.cz>
14800 Eric Botcazou <ebotcazou@adacore.com>
14802 * tree-sra.c (ipa_sra_check_caller_data): New type.
14803 (has_caller_p): Removed.
14804 (ipa_sra_check_caller): New function.
14805 (ipa_sra_preliminary_function_checks): Use it.
14807 2015-03-03 Martin Liska <mliska@suse.cz>
14809 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
14810 instead of if branch.
14812 2015-03-03 Martin Liska <mliska@suse.cz>
14815 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
14817 2015-03-23 Jeff Law <law@redhat.com>
14819 PR tree-optimization/65241
14820 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
14821 hash table if INSERT is true.
14823 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
14826 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
14828 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
14831 * config/avr/avr.c (context.h, tree-pass.h): Include them.
14832 (avr_pass_data_recompute_notes): New static variable.
14833 (avr_pass_recompute_notes): New class.
14834 (avr_register_passes): New static function.
14835 (avr_option_override): Call it.
14837 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
14839 Fix various problems with specs file generation.
14842 * config.gcc (extra_gcc_objs) [avr]: Remove.
14843 * config/avr/driver-avr.c: Remove file.
14844 * config/avr/t-avr (driver-avr.o): Remove rule.
14845 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
14846 INCLUDES to build. Depend on TM_H.
14847 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
14848 build warnings. Fix non-matching types and non-existing %-codes.
14850 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
14851 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
14852 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
14853 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
14854 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
14855 (LIBGCC_SPEC): Remove definitions.
14857 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
14859 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
14860 to create a register in testing mode.
14862 2015-03-03 Martin Liska <mliska@suse.cz>
14863 Jan Hubicka <hubicka@ucw.cz>
14866 * cgraph.c (cgraph_node::has_thunk_p): New function.
14867 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
14868 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
14869 (sem_function::merge): Assert is changed.
14871 2015-03-03 Martin Liska <mliska@suse.cz>
14872 Martin Jambor <mjambor@suse.cz>
14875 * ipa-icf.c (sem_item_optimizer::execute): Change function
14876 return value to boolean.
14877 (sem_item_optimizer::merge_classes): Likewise.
14878 (ipa_icf_driver): Return TODO_remove_functions in case there's
14879 a merge operation processed.
14880 * ipa-icf.h: Change function return value to boolean.
14882 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14885 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
14886 processor type for 64-bit little endian PowerPC.
14888 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14889 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
14890 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
14891 printing built-in mask so it does not pass NULL pointers.
14893 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
14896 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
14899 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
14900 !ISA_HAS_FP_CONDMOVE.
14902 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
14904 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
14907 2015-03-02 Ulrich Drepper <drepper@gmail.com>
14909 * doc/invoke.texi (Options for Code Generation Conventions):
14910 Fix URL of DSO paper.
14912 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
14915 * ipa-inline.c (check_callers): Looks for recursion.
14916 (inline_to_all_callers): Give up on uninlinable or recursive edges.
14917 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
14918 summary of inline clones.
14919 (do_estimate_growth_1): Fix recursion check.
14921 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
14924 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
14927 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
14928 Aldy Hernandez <aldyh@redhat.com>
14931 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
14932 when checking TYPE_BINFO.
14934 2015-03-02 Richard Biener <rguenther@suse.de>
14937 * ipa-icf-gimple.c: Include builtins.h.
14938 (func_checker::compare_memory_operand): Compare base alignment.
14940 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
14943 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
14944 are never passed by reference.
14946 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
14949 * tree-chkp.c (chkp_check_lower): Don't check against
14950 zero bounds for already instrumented functions.
14951 (chkp_check_upper): Likewise.
14952 (chkp_fini): Clean pass local data to avoid wrong reusage.
14954 2015-02-28 Martin Liska <mliska@suse.cz>
14955 Jan Hubicka <hubicka@ucw.cz>
14957 * ipa-icf.c (sem_variable::equals): Improve debug output;
14958 get variable constructor.
14959 (sem_variable::parse): Do not filter out too early; give up on
14960 volatile and register vars.
14961 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
14963 * ipa-icf.h (sem_variable::init): Do not set ctor.
14964 (sem_variable::ctor): Remove.
14966 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
14968 PR middle-end/65233
14969 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
14971 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14973 * ipa-icf.c: Include stor-layout.h
14974 (sem_function::compare_cgraph_references): Rename to ...
14975 (sem_item::compare_cgraph_references): ... this one.
14976 (sem_variable::equals_wpa): New function
14977 (sem_variable::equals): Do not check stuff already verified by
14979 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
14980 * ipa-icf.h (sem_item): Add compare_cgraph_references.
14981 (sem_function): Remove compare_cgraph_references.
14982 (sem_variable): Turns equals_wpa into non-inline.
14984 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
14986 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
14987 (sem_item::add_expr): New function.
14988 (sem_function::hash_stmt): Handle operands of most statements.
14989 (sem_variable::get_hash): Hash the actual constructor.
14990 * ipa-icf.h (sem_item): Add add_expr.
14991 (sem_function): Update prototype of hash_stmt
14993 2015-02-28 Martin Liska <mliska@suse.cz>
14994 Jan Hubicka <hubicka@ucw.cz>
14997 * ipa-icf-gimple.c (func_checker::compare_function_decl):
14999 (func_checker::compare_variable_decl): Skip symtab vars.
15000 (func_checker::compare_cst_or_decl): Update.
15001 * ipa-icf.c (sem_function::parse): Do not consider aliases.
15002 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
15003 use correct symtab predicates.
15004 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
15005 (sem_variable::parse): Update comment.
15006 (sem_item_optimizer::build_graph): Consider ultimate aliases
15009 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
15011 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
15014 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
15016 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
15017 (sem_variable::merge) Likewise.
15019 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
15021 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
15022 target; also match flag_ipa_devirt.
15024 2015-03-01 Martin Liska <mliska@suse.cz>
15025 Jan Hubicka <hubicka@ucw.cz>
15027 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
15028 Validate variable alignment.
15029 * ipa-icf.c (sem_function::equals_private): Be more precise
15030 about non-common function attributes.
15031 (sem_variable::equals): Likewise.
15033 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
15036 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
15037 across COMDAT group boundary.
15039 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
15042 * ipa-icf.c (clear_decl_rtl): New function.
15043 (sem_function::merge): Clear RTL before forming alias.
15044 (sem_variable::merge): Clear RTL before forming alias.
15046 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
15049 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
15051 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
15053 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
15056 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
15058 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
15059 a typo in the description.
15061 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
15064 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
15065 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
15066 * lra-constraints.c: Include "params.h".
15067 (EBB_PROBABILITY_CUTOFF): Use
15068 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
15069 (lra_inheritance): Use '<' instead of '<=' for
15070 EBB_PROBABILITY_CUTOFF.
15071 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
15074 2015-02-27 Martin Liska <mliska@suse.cz>
15076 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
15077 vector length condition.
15079 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
15081 * doc/extend.texi (x86 transactional memory intrinsics):
15082 Reorganize discussion of _xbegin. Clarify that the return
15083 value is a bit mask. Expand example and move to end of section.
15085 2015-02-26 Jakub Jelinek <jakub@redhat.com>
15086 Aldy Hernandez <aldyh@redhat.com>
15088 PR rtl-optimization/65220
15089 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
15091 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
15094 * lra-remat.c (update_scratch_ops): New.
15095 (do_remat): Call it.
15096 * lra.c (lra_register_new_scratch_op): New. Take code from ...
15097 (remove_scratches): ... here.
15098 * lra-int.h (lra_register_new_scratch_op): New prototype.
15100 2015-02-27 Marek Polacek <polacek@redhat.com>
15103 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
15104 -Wformat-signedness anymore.
15106 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15108 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
15110 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
15112 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15114 * config/s390/s390.c (enum s390_builtin):
15115 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
15116 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
15117 (s390_init_builtins): Generate new builtin functions.
15118 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
15119 (s390_sfpc, s390_efpc): New pattern definitions.
15121 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15123 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
15124 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
15125 (s390_builtin_decls): New array.
15126 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
15127 (s390_builtin_decl): New function.
15128 (TARGET_BUILTIN_DECL): Define macro.
15130 2015-02-27 Richard Biener <rguenther@suse.de>
15132 PR middle-end/63175
15133 * builtins.c (get_object_alignment_2): Make sure to re-apply
15134 the ANDed mask after recursing to its operand gets us a new
15135 misalignment bit position.
15137 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
15138 Martin Liska <mliska@suse.cz>
15141 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
15142 Use address_matters_p.
15143 (redirect_all_callers, set_addressable): New functions.
15144 (sem_function::merge): Reorganize and fix merging issues.
15145 (sem_variable::merge): Likewise.
15146 (sem_variable::compare_sections): Remove.
15147 * common.opt (fmerge-all-constants, fmerge-constants): Remove
15149 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
15151 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
15153 (address_matters_1): New function.
15154 (symtab_node::address_matters_p): New function.
15155 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
15156 check for merged flag.
15157 * cgraph.h (address_matters_p): Declare.
15158 (symtab_node::address_taken_from_non_vtable_p): Remove.
15159 (symtab_node::address_can_be_compared_p): New method.
15160 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
15161 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
15163 (comdat_can_be_unshared_p_1) Use address_matters_p.
15164 (update_vtable_references): Fix formating.
15165 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
15166 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
15167 * cgraphclones.c: Preserve merged and icf_merged flags.
15169 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
15171 * doc/extend.texi (Function Attributes): Fix spelling and typos.
15172 (Label Attributes): Likewise.
15173 (Cilk Plus Builtins): Likewise.
15174 (ARC SIMD Built-in Functions): Likewise.
15175 (ARM C Language Extensions (ACLE)): Likewise.
15176 (PowerPC Built-in Functions): Likewise.
15177 (PowerPC Hardware Transactional Memory Built-in Functions):
15180 2015-02-26 Jakub Jelinek <jakub@redhat.com>
15182 PR tree-optimization/65216
15183 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
15184 new stmt and new SSA_NAME for lhs whenever the arguments have
15185 changed and weren't just swapped. Fix comment typo.
15187 PR tree-optimization/65215
15188 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
15189 for PDP endian targets.
15190 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
15191 Fix up formatting issues.
15192 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
15193 size is smaller than the original, adjust MEM_REF offset by the
15194 difference of sizes. Use is_gimple_mem_ref_addr instead of
15195 is_gimple_min_invariant test to avoid adding address temporaries.
15197 2015-02-26 Martin Liska <mliska@suse.cz>
15198 Jan Hubicka <hubicka@ucw.cz>
15201 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
15202 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
15203 (sem_item_optimizer::process_cong_reduction): Include division by
15204 sensitive references.
15205 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
15206 * ipa-ref.c (ipa_ref::address_matters_p): New function.
15207 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
15209 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
15212 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
15214 * config/avr/avr.c: Same.
15215 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
15216 Refuse any constant address not in 0..0xbf.
15217 * config/avr/avr.md (*mov<mode>, *movsf): Remove
15218 tiny_valid_direct_memory_access_range from insn conditions.
15219 (mov<mode>): Don't special-case expansion of avrtiny addresses.
15221 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
15224 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
15225 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
15226 * config/sh/predicates.md (const_logical_operand): New predicate.
15227 * config/sh/sh.md: Add new peephole2 patterns.
15229 2015-02-26 Marek Polacek <polacek@redhat.com>
15232 * ipa-inline.c (early_inliner): Recompute inline parameters.
15234 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15237 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
15238 instructions with TImode operands are included in the analysis.
15240 2015-02-26 Sebastian Pop <s.pop@samsung.com>
15242 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
15243 of an EDGE_FSM_THREAD.
15245 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15247 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
15249 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
15252 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
15254 2015-02-26 Sebastian Pop <s.pop@samsung.com>
15256 PR tree-optimization/65048
15257 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
15258 (thread_through_all_blocks): Call valid_jump_thread_path.
15259 Remove invalid FSM jump-thread paths.
15261 2015-02-26 Jakub Jelinek <jakub@redhat.com>
15263 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
15264 (ipa_write_optimization_summaries): Likewise.
15265 * tree-streamer.h: Include data-streamer.h.
15266 (streamer_mode_table): Declare extern variable.
15267 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
15268 * lto-streamer-out.c (lto_output_init_mode_table,
15269 lto_write_mode_table): New functions.
15270 (produce_asm_for_decls): Call lto_write_mode_table when streaming
15272 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
15273 (lto_create_simple_input_block): Add mode_table argument to the
15274 lto_input_block constructors.
15275 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
15277 * data-streamer-in.c (string_for_index): Likewise.
15278 * ipa-inline-analysis.c (inline_read_section): Likewise.
15279 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
15280 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15281 * lto-streamer-in.c (lto_read_body_or_constructor,
15282 lto_input_toplevel_asms): Likewise.
15283 (lto_input_mode_table): New function.
15284 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
15285 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
15286 Use bp_pack_machine_mode.
15287 * real.h (struct real_format): Add name field.
15288 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
15289 (class lto_input_block): Add mode_table member.
15290 (lto_input_block::lto_input_block): Add mode_table_ argument,
15291 initialize mode_table.
15292 (struct lto_file_decl_data): Add mode_table field.
15293 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
15294 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
15295 unpack_ts_decl_common_value_fields,
15296 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
15297 * tree-streamer.c (streamer_mode_table): New variable.
15298 * real.c (ieee_single_format, mips_single_format,
15299 motorola_single_format, spu_single_format, ieee_double_format,
15300 mips_double_format, motorola_double_format,
15301 ieee_extended_motorola_format, ieee_extended_intel_96_format,
15302 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
15303 ibm_extended_format, mips_extended_format, ieee_quad_format,
15304 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
15305 decimal_single_format, decimal_double_format, decimal_quad_format,
15306 ieee_half_format, arm_half_format, real_internal_format): Add name
15308 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
15310 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
15313 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
15314 reordering for selective scheduling.
15316 2015-02-26 Terry Guo <terry.guo@arm.com>
15318 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
15319 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
15320 (arm_arch_no_volatile_ce): Declare new global variable.
15321 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
15322 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
15323 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
15324 (TARGET_NO_VOLATILE_CE): New macro.
15325 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
15326 volatile memory access in IT block
15328 2015-02-25 Kai Tietz <ktietz@redhat.com>
15330 PR tree-optimization/61917
15331 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
15332 that reduc_def_stmt is null.
15334 2015-02-25 Martin Liska <mliska@suse.cz>
15336 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
15337 hard register variables.
15339 2015-02-25 Kai Tietz <ktietz@redhat.com>
15342 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
15343 (symtab::noninterposable_alias): Likewise.
15345 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
15348 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
15350 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
15352 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
15355 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
15356 as split condition; force split via '#' in output pattern.
15358 2015-02-25 Richard Biener <rguenther@suse.de>
15359 Kai Tietz <ktietz@redhat.com>
15361 PR tree-optimization/61917
15362 * tree-vect-loop.c (vectorizable_reduction): Allow
15363 vect_internal_def without reduction to exit graceful.
15365 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
15368 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
15369 only with NONDEBUG_INSN_P.
15371 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
15373 Use variadic macros with avr-log.c.
15375 * config/avr/avr-protos.h (avr_vdump): New prototype.
15376 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
15377 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
15378 * config/avr/avr-log.c: Adjust comments.
15379 (avr_vdump): New function.
15380 (avr_vadump): Pass caller as 2nd argument instead of format string.
15381 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
15382 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
15384 2015-02-25 Jakub Jelinek <jakub@redhat.com>
15387 * target.def (target_option_stream_in): New target hook.
15388 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
15389 targetm.target_option.post_stream_in if non-NULL.
15390 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
15391 * doc/tm.texi: Updated.
15392 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
15394 (TARGET_OPTION_POST_STREAM_IN): Redefine.
15396 2015-02-24 Jeff Law <law@redhat.com>
15399 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
15400 of operand 0 and operand 2.
15401 (zero_cost_loop_end, loop_end): Similarly.
15403 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
15405 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
15408 2015-02-24 DJ Delorie <dj@redhat.com>
15410 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
15411 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
15412 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
15413 instead of hardcoding SImode.
15415 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
15417 * omp-low.c (create_omp_child_function): Tag entrypoint
15418 functions with a special attribute.
15420 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15423 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
15425 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
15427 PR rtl-optimization/65123
15428 * lra-remat.c (operand_to_remat): Check hard regs in insn
15431 2015-02-24 Nick Clifton <nickc@redhat.com>
15433 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
15436 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
15439 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
15440 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
15441 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
15442 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
15443 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
15444 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
15445 (BUILT_IN_GOACC_PARALLEL): Specify as
15446 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
15447 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
15448 * builtin-types.def
15449 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15450 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15451 Remove function types.
15452 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
15453 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15454 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15455 New function types.
15457 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
15459 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
15461 2015-02-24 Jakub Jelinek <jakub@redhat.com>
15463 PR tree-optimization/65170
15464 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
15465 if val[1] < 0, clear also val[2] and return 3.
15467 2015-02-24 Alan Modra <amodra@gmail.com>
15470 * config/rs6000/rs6000.c (get_memref_parts): Only return true
15471 when *base is a reg. Handle nested plus addresses. Simplify
15474 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
15476 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
15477 use natural alignment when optimizing for size.
15479 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
15482 * config/sh/sh.md (movsicc_true+3): Remove peephole.
15483 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
15484 * config/sh/sh.c (replace_n_hard_rtx): Remove.
15486 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
15489 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
15490 too big for a wide_int. Implement missing wrapping operation.
15492 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
15495 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
15496 instead of const_int 4294901760.
15498 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
15500 * config/avr/t-avr: Fix typo in comment.
15502 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
15504 * doc/rtl.texi (fma): Clarify documentation.
15506 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
15509 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
15510 over input_location.
15512 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
15514 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
15515 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
15516 restrict alignments to absolute_biggest_alignment.
15517 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
15519 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
15520 * doc/tm.texi: Regenerate.
15521 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
15523 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
15526 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
15528 2015-02-20 Richard Biener <rguenther@suse.de>
15530 PR tree-optimization/65136
15531 * tree-ssa-propagate.c: Include cfgloop.h.
15532 (replace_phi_args_in): Avoid replacing loop latch edge PHI
15533 arguments with constants.
15535 2015-02-20 Jakub Jelinek <jakub@redhat.com>
15536 Martin Liska <mliska@suse.cz>
15539 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
15540 don't try to create_thunk if stdarg_p. If
15541 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
15542 redirect_callers if possible.
15543 (sem_item_optimizer::execute): Call unregister_hooks here...
15544 (ipa_icf_driver): ... instead of here.
15546 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15548 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
15549 Mark operand 0 as earlyclobber in 2nd alternative.
15550 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
15551 Write negated shift amount into QI lowpart operand 0 and use it
15553 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15555 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
15557 * cgraph.h (clone_function_name_1): Declare.
15558 * cgraphclones.c (clone_function_name_1): New function.
15559 (clone_function_name): Use it.
15560 * lto-partition.c: Include "stringpool.h".
15561 (must_not_rename, maybe_rewrite_identifier)
15562 (validize_symbol_for_target): New static functions.
15563 (privatize_symbol_name): Use must_not_rename.
15564 (promote_symbol): Call validize_symbol_for_target.
15565 (lto_promote_cross_file_statics): Likewise.
15566 (lto_promote_statics_nonwpa): Likewise.
15568 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
15571 * config/avr/avr.md (pushhi_insn): New insn.
15572 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
15574 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
15575 Jakub Jelinek <jakub@redhat.com>
15577 * tree-streamer.c (preload_common_nodes): Don't preload
15578 TI_VA_LIST* for offloading.
15579 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
15582 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
15584 * config/pa/pa.c (pa_emit_move_sequence): Always force
15585 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
15588 * config/pa/pa.c (pa_reloc_rw_mask): New function.
15589 (TARGET_ASM_RELOC_RW_MASK): Define.
15590 (pa_cannot_force_const_mem): Revert previous change.
15592 2015-02-19 Martin Jambor <mjmabor@suse.cz>
15593 Jan Hubicka <hubicka@ucw.cz>
15596 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
15597 across jump functions.
15599 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
15601 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
15603 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
15605 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
15607 2015-02-19 Richard Henderson <rth@redhat.com>
15609 PR middle-end/65074
15610 * varasm.c (default_binds_local_p_2): Don't test node->definition;
15611 test DECL_EXTERNAL independent of symtab_node.
15613 2015-02-19 Jakub Jelinek <jakub@redhat.com>
15616 * varpool.c (varpool_node::get_constructor): Return early
15617 if this->lto_file_data is NULL.
15619 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15621 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
15622 (rank_for_schedule_debug): Update.
15623 (ready_sort): Make static. Move sorting logic to ...
15624 (ready_sort_debug, ready_sort_real): New static functions.
15625 (schedule_block): Sort both debug insns and real insns in preparation
15626 for ready list trimming. Improve debug output.
15627 * sched-int.h (ready_sort): Remove global declaration.
15629 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
15631 * ipa-icf.c (sem_function::equals_private): Adjust.
15632 (sem_function::bb_dict_test): Take a vec<int> * instead of
15634 * ipa-icf.h (bb_dict_test): Likewise.
15636 2015-02-18 Jakub Jelinek <jakub@redhat.com>
15638 PR gcov-profile/64634
15639 * tree-eh.c (frob_into_branch_around): Fix up typos
15640 in function comment.
15641 (lower_catch): Put eh_seq resulting from EH lowering of
15642 the cleanup sequence after the cleanup rather than before it.
15644 2015-02-18 Tom de Vries <tom@codesourcery.com>
15646 * common.opt (fstdarg-opt): New option.
15647 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
15648 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
15649 (@item -fstdarg-opt): New item.
15651 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
15654 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
15655 for common symbols.
15657 2015-02-18 Jakub Jelinek <jakub@redhat.com>
15659 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
15661 (ALL_HOST_OBJS): Add mkoffload.o.
15662 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
15664 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
15666 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
15667 (compare_virtual_tables): Be smarter about skipping typeinfos;
15668 do sane output on virtual table table mismatch.
15669 (warn_odr): Be ready for forward declarations of enums;
15670 output sane info on base mismatch and virtual table mismatch.
15671 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
15672 when only one type is polymorphic.
15673 (get_odr_type): Fix hashtable corruption.
15674 (dump_odr_type): Dump mangled names.
15676 2015-02-18 Richard Biener <rguenther@suse.de>
15678 PR tree-optimization/65063
15679 * tree-predcom.c (determine_unroll_factor): Return 1 if we
15680 have replaced looparound PHIs.
15682 2015-02-18 Martin Liska <mliska@suse.cz>
15684 * lto-streamer.c (lto_streamer_init): Encapsulate
15685 streamer_check_handled_ts_structures with checking macro.
15687 2015-02-18 Jakub Jelinek <jakub@redhat.com>
15690 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
15691 section if !implicit_section.
15692 (cgraph_node::create_version_clone_with_body): Likewise.
15693 * trans-mem.c (ipa_tm_create_version): Likewise.
15695 2015-02-18 Richard Biener <rguenther@suse.de>
15697 PR tree-optimization/62217
15698 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
15701 2015-02-18 Marek Polacek <polacek@redhat.com>
15704 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
15705 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
15706 is in range [-16K, -1]. Don't issue run-time error if
15707 (ptr > ptr + offset).
15709 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
15711 * doc/install.texi (nvptx-*-none): New section.
15712 * doc/invoke.texi (Nvidia PTX Options): Likewise.
15713 * config/nvptx/nvptx.opt: Update.
15715 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
15716 (access_check): New functions, copied from
15717 config/i386/intelmic-mkoffload.c.
15718 (main): For non-installed testing, look in all COMPILER_PATHs for
15721 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
15723 2015-02-18 Andrew Pinski <apinski@cavium.com>
15724 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15726 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
15727 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
15729 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
15731 * ipa-visibility.c (function_and_variable_visibility): Only
15732 check locality if node is not already local.
15733 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15734 call_for_symbol_and_aliases instead of
15735 call_for_symbol_thunks_and_aliases.
15736 (ipa_inline): Likewise.
15737 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15738 first walk aliases.
15739 * ipa.c (symbol_table::remove_unreachable_nodes): Use
15740 call_for_symbol_and_aliases.
15741 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15742 (ipa_propagate_frequency_1): Use it; use opt_for_fn
15743 (ipa_propagate_frequency): Update.
15744 (ipa_profile): Add opt_for_fn gueards.
15746 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
15748 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
15749 * doc/invoke.texi (SH options): Document it.
15750 * config/sh/sh.c (sh_insn_length_adjustment): Check
15751 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
15753 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
15755 * common.opt (fipa-cp-alignment): New.
15756 * ipa-cp.c (ipcp_store_alignment_results): Check
15757 flag_ipa_cp_alignment.
15758 * opts.c (default_options_table): Enable -fipa-cp-alignment for
15760 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
15761 * doc/invoke.texi: Document -fipa-cp-alignment.
15763 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
15766 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
15767 to nil. Adjust comments.
15769 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
15771 * ipa-visibility.c (function_and_variable_visibility): Only
15772 check locality if node is not already local.
15773 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
15774 call_for_symbol_and_aliases instead of
15775 call_for_symbol_thunks_and_aliases.
15776 (ipa_inline): Likewise.
15777 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15778 first walk aliases.
15779 * ipa.c (symbol_table::remove_unreachable_nodes): Use
15780 call_for_symbol_and_aliases.
15781 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
15782 (ipa_propagate_frequency_1): Use it; use opt_for_fn
15783 (ipa_propagate_frequency): Update.
15784 (ipa_profile): Add opt_for_fn guards.
15786 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15788 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
15789 skipping of "strange" tokens.
15791 2015-02-17 Jeff Law <law@redhat.com>
15793 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
15796 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
15798 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
15799 as forcing a HARD_DEP between instructions, thereby
15800 disallowing rewriting to break dependencies.
15802 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
15804 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
15805 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
15806 variables in boundary that have no inlitalizer encoded and are
15808 * varasm.c (default_binds_local_p_2): External definitions do not
15809 count as definitions here.
15811 2015-02-16 Jeff Law <law@redhat.com>
15813 PR tree-optimization/64823
15814 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
15816 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15817 threading through blocks with PHIs, but no statements.
15818 (thread_through_normal_block): Distinguish between blocks where
15819 we did not process all the statements and blocks with no statements.
15821 2015-02-16 Jakub Jelinek <jakub@redhat.com>
15822 James Greenhalgh <james.greenhalgh@arm.com>
15825 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
15826 section if not linkonce. Fix up formatting.
15827 (cgraph_node::create_version_clone_with_body): Copy section.
15828 * trans-mem.c (ipa_tm_create_version): Likewise.
15830 2015-02-16 Richard Biener <rguenther@suse.de>
15832 PR tree-optimization/65077
15833 * tree-ssa-structalias.c (get_constraint_for_1): Handle
15834 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
15835 (find_func_aliases): Allow float values to carry pointers again.
15837 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
15839 * doc/install.texi (Specific): Reorder targets list to put
15840 aarch64 in alphabetical order. Add a link to aarch64*-*-*
15843 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15844 David Edelsohn <dje.gcc@gmail.com>
15847 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
15848 mapping class to external variable or function reference.
15849 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
15852 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
15855 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
15856 ASM_WEAKEN_DECL if defined.
15858 2015-02-16 Richard Biener <rguenther@suse.de>
15861 * varasm.c (default_file_start): For LTO produced units
15862 emit <artificial> as file directive.
15864 2015-02-16 Richard Biener <rguenther@suse.de>
15866 PR tree-optimization/63593
15867 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
15868 stmts and releasing SSA names until...
15869 (execute_pred_commoning): ... after processing all chains.
15871 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
15874 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
15875 external functions.
15877 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
15879 * doc/bugreport.texi: Adjust section titles throughout the file
15880 to use "Title Case".
15881 * doc/extend.texi: Likewise.
15882 * doc/gcov.texi: Likewise.
15883 * doc/implement-c.texi: Likewise.
15884 * doc/implement-cxx.texi: Likewise.
15885 * doc/invoke.texi: Likewise.
15886 * doc/objc.texi: Likewise.
15887 * doc/standards.texi: Likewise.
15888 * doc/trouble.texi: Likewise.
15890 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
15892 * cgraph.h (symtab_node::has_aliases_p): Simplify.
15893 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
15894 * tree.c (lookup_binfo_at_offset): Make static.
15895 (get_binfo_at_offset): Do not shadow offset; add explanatory
15898 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
15900 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
15901 for all floading point loads and stores except those using a register
15903 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
15906 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
15908 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
15909 (do_estimate_growth_1): Record if any uninlinable edge was seen.
15910 (estimate_growth): Handle uninlinable edges correctly.
15911 (check_callers): New.
15912 (growth_likely_positive): Handle aliases correctly.
15914 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
15916 * ipa-chkp.c: Use iterate_direct_aliases.
15917 * symtab.c (resolution_used_from_other_file_p): Move inline.
15918 (symtab_node::create_reference): Fix formating.
15919 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15920 (symtab_node::iterate_reference): Move inline.
15921 (symtab_node::iterate_referring): Move inline.
15922 (symtab_node::iterate_direct_aliases): Move inline.
15923 (symtab_node::used_from_object_file_p_worker): Inline into ...
15924 (symtab_node::used_from_object_file_p): ... this one; move inline.
15925 (symtab_node::call_for_symbol_and_aliases): Move inline;
15926 use iterate_direct_aliases.
15927 (symtab_node::call_for_symbol_and_aliases_1): New method.
15928 (cgraph_node::call_for_symbol_and_aliases): Move inline;
15929 use iterate_direct_aliases.
15930 (cgraph_node::call_for_symbol_and_aliases_1): New method.
15931 (varpool_node::call_for_node_and_aliases): Rename to ...
15932 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
15933 use iterate_direct_aliases.
15934 (varpool_node::call_for_symbol_and_aliases_1): New method.
15935 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
15936 (ipa_discover_readonly_nonaddressable_var): Update.
15937 * ipa-devirt.c: Fix formating.
15938 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
15940 (cgraph_node::call_for_symbol_and_aliases): Move inline.
15941 (cgraph_node::call_for_symbol_and_aliases_1): New function..
15942 * cgraph.h (used_from_object_file_p_worker): Remove.
15943 (resolution_used_from_other_file_p): Move inline.
15944 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
15945 (symtab_node::iterate_reference): Move inline.
15946 (symtab_node::iterate_referring): Move inline.
15947 (symtab_node::iterate_direct_aliases): Move inline.
15948 (symtab_node::used_from_object_file_p_worker): Inline into ...
15949 (symtab_node::used_from_object_file_p): Move inline.
15950 * tree-emutls.c (ipa_lower_emutls): Update.
15951 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
15952 (varpool_node::call_for_node_and_aliases): Remove.
15954 2015-02-14 Jakub Jelinek <jakub@redhat.com>
15956 PR tree-optimization/62209
15957 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
15958 op == range->exp, insert seq and gimplified code after labels
15959 instead of after the phi.
15961 2015-02-13 Jeff Law <law@redhat.com>
15964 Revert my change for tree-optimization/64823.
15966 2015-02-13 Jakub Jelinek <jakub@redhat.com>
15968 PR tree-optimization/65053
15969 * tree-ssa-phiopt.c (value_replacement): When moving assign before
15970 cond, either reset VR on lhs or set it to phi result VR.
15972 2015-02-13 Jeff Law <law@redhat.com>
15974 PR tree-optimization/64823
15975 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
15976 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
15977 threading through blocks with PHIs, but no statements.
15978 (thread_through_normal_block): Distinguish between blocks where
15979 we did not process all the statements and blocks with no statements.
15981 PR rtl-optimization/47477
15982 * match.pd (convert (plus/minus (convert @0) (convert @1): New
15983 simplifier to narrow arithmetic.
15985 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
15988 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
15989 polymorphic call info when type is not known to be preserved.
15991 2015-02-13 Maritn Jambor <mjambor@suse.cz>
15994 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
15995 (inline_call): Use it.
15997 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
15999 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
16000 GOMP_DEVICE_NVIDIA_PTX.
16002 2015-02-13 Jakub Jelinek <jakub@redhat.com>
16005 * stmt.c (emit_case_nodes): Use void_type_node instead of
16006 NULL_TREE as LABEL_DECL type.
16008 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
16010 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
16012 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
16013 symbolic references to data to be forced to constant memory on the
16016 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
16018 PR tree-optimization/65002
16019 * tree-cfg.c (pass_data_fixup_cfg): Don't update
16021 * tree-sra.c (some_callers_have_no_vuse_p): New.
16022 (ipa_early_sra): Reject functions whose callers
16023 assume function is read only.
16025 2015-02-13 Richard Biener <rguenther@suse.de>
16028 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
16029 for LTO produced CUs.
16031 2015-02-13 Bin Cheng <bin.cheng@arm.com>
16033 PR tree-optimization/64705
16034 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
16035 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
16036 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
16037 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
16038 expand_simple_operations.
16040 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
16041 Richard Henderson <rth@redhat.com>
16044 * cgraphunit.c (cgraph_node::finalize_function): Set definition
16045 before notice_global_symbol.
16046 (varpool_node::finalize_decl): Likewise.
16047 * varasm.c (default_binds_local_p_2): Rename from
16048 default_binds_local_p_1, add weak_dominate argument. Use direct
16049 returns instead of assigning to local variable. Unify varpool and
16050 cgraph paths via symtab_node. Reject undef weak variables before
16051 testing visibility. Reorder tests for simplicity.
16052 (default_binds_local_p): Use default_binds_local_p_2.
16053 (default_binds_local_p_1): Likewise.
16054 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
16056 (default_elf_asm_output_external): Emit visibility when specified.
16058 2015-02-13 Alan Modra <amodra@gmail.com>
16060 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
16061 code setting up r11 for out-of-line fp restore.
16063 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
16065 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
16066 (muser-mode): Likewise.
16068 2015-02-13 Alan Modra <amodra@gmail.com>
16070 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
16071 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
16073 2015-02-12 David Howells <dhowells@redhat.com>
16075 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
16077 * tree-ssa-uninit.c (dump_predicates): Likewise.
16078 * opts.c (print_filtered_help): Likewise.
16080 2015-02-12 Jakub Jelinek <jakub@redhat.com>
16082 * dwarf2out.c (output_die): Use "%s", name instead of name to
16083 avoid -Wformat-security warning.
16085 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
16086 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
16087 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
16088 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
16090 2015-02-12 Jason Merrill <jason@redhat.com>
16092 * common.opt (-flifetime-dse): New.
16094 2015-02-12 Jakub Jelinek <jakub@redhat.com>
16097 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
16099 PR tree-optimization/65014
16100 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
16101 use original second operand of arg0 or arg1 instead of
16102 that adjusted by STRIP_NOPS.
16104 2015-02-11 Jeff Law <law@redhat.com>
16107 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
16108 that needs to be queued, just queue it for a single cycle.
16110 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
16112 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
16113 bodies of thunks; comment on why.
16114 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
16115 symbols are extern.
16117 2015-02-11 Richard Henderson <rth@redhat.com>
16120 * tree-eh.c (mark_reachable_handlers): Mark source and destination
16121 regions of __builtin_eh_copy_values.
16123 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16125 PR middle-end/65003
16126 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
16127 ultimate alias is MEM with SYMBOL_REF satisfying
16128 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
16129 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
16131 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
16133 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
16134 "diagnostic-core.h".
16135 (main): Initialize progname, and call diagnostic_initialize.
16137 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
16138 instead of __OPENMP_TARGET__.
16140 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
16141 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
16142 hard-coding PTX_ID.
16144 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
16146 * doc/sourcebuild.texi (pie_enabled): Document.
16148 2015-02-11 Martin Liska <mliska@suse.cz>
16151 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
16152 a return value for call to a function that is noreturn.
16154 2015-02-11 Richard Biener <rguenther@suse.de>
16157 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
16160 2015-02-11 Andrew Pinski <apinski@cavium.com>
16163 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
16164 Change the first argument type to size_type_node and add another
16166 (aarch64_simd_expand_builtin): Handle the new argument to
16167 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
16168 print an out when the first two arguments are not
16169 nonzero integer constants.
16170 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
16171 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
16173 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16176 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
16177 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
16178 (ix86_set_current_function): Rewritten.
16179 (ix86_add_new_builtins): Temporarily clear current_target_pragma
16180 when creating builtin fndecls.
16182 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
16185 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
16187 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
16188 have no comdat group.
16189 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
16190 (lto_output_varpool_node): Always output alias info.
16191 (output_refs): Output refs of boundary aliases, too.
16192 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
16193 (output_symtab): Output call eges in thunks in boundary.
16194 (get_alias_symbol): Remove.
16195 (input_node, input_varpool_node): Do not special case weakrefs.
16196 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
16197 alias and thunks targets in the boundary; do not take removed symbols
16198 from their comdat groups.
16199 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
16200 (cgraph_node::global_info): Remove.
16201 (cgraph_node::rtl_info): Look through aliases and thunks.
16202 * cgrpah.h (global_info): Remove.
16203 (non_local_p): Remove.
16205 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
16206 Sandra Loosemore <sandra@codesourcery.com>
16208 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
16209 to inline asm. List dialects in proper order.
16211 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
16212 Sandra Loosemore <sandra@codesourcery.com>
16214 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
16216 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
16218 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
16219 modified) reference to Solaris.
16221 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
16223 * doc/extend.texi (Extended Asm): Fix typos.
16225 2015-02-10 Jakub Jelinek <jakub@redhat.com>
16228 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
16230 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
16233 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
16234 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
16235 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
16236 * config/sh/constraints.md (Ara, Add): New constraints.
16237 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
16239 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
16240 atomic_mem_operand_0. Don't use force_reg on the memory address.
16241 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
16242 Sra constraint. Convert to insn_and_split. Add workaround for
16244 (atomic_compare_and_swap<mode>_hard): Copy to
16245 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
16246 Use atomic_mem_operand_0 predicate.
16247 (atomic_compare_and_swap<mode>_soft_gusa,
16248 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
16249 AraAdd constraints.
16250 (atomic_compare_and_swap<mode>_soft_tcb,
16251 atomic_compare_and_swap<mode>_soft_imask,
16252 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
16253 atomic_mem_operand_0 predicate and SraSdd constraints.
16254 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
16256 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
16257 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
16258 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
16259 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
16260 force_reg on the memory address.
16261 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
16262 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
16263 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
16264 atomic_mem_operand_1 predicate and Sra constraint.
16265 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
16266 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
16267 Use atomic_mem_operand_1 predicate.
16268 (atomic_<fetchop_name><mode>_hard): Copy to
16269 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
16270 Use atomic_mem_operand_1 predicate.
16271 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
16272 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
16273 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
16274 insn_and_split. Use atomic_mem_operand_1 predicate.
16275 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
16276 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
16277 Use atomic_mem_operand_1 predicate.
16278 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
16279 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
16280 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
16281 in generated insn with original mem operand before emitting the insn.
16282 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
16283 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
16284 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
16285 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
16286 Use atomic_mem_operand_1 predicate and AraAdd constraints.
16287 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
16288 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
16289 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
16290 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
16291 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
16292 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
16293 atomic_not_fetch<mode>_soft_tcb,
16294 atomic_<fetchop_name>_fetch<mode>_soft_imask,
16295 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
16296 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
16297 Use atomic_mem_operand_1 predicate and SraSdd constraints.
16299 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
16301 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
16302 and 3 earlyclobber operands.
16304 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
16306 * common.opt (fstack-reuse): Mark as optimization.
16308 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
16311 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
16313 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
16315 PR tree-optimization/64326
16316 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
16318 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
16320 PR gcov-profile/61889
16321 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
16323 2015-02-10 Richard Biener <rguenther@suse.de>
16325 PR tree-optimization/64995
16326 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
16327 value we use is final.
16328 (visit_reference_op_store): Always valueize op.
16329 (visit_use): Properly valueize vuses.
16331 2015-02-10 Richard Biener <rguenther@suse.de>
16333 PR tree-optimization/64909
16334 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
16335 pass a scalar-stmt count estimate to the cost model.
16336 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
16338 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
16340 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
16341 enabled by default together with var-tracking.
16343 2015-02-10 Nick Clifton <nickc@redhat.com>
16345 * config/rl78/rl78.c: Remove DIV attribute code accidentally
16346 included in previous rl78 commit.
16348 2015-02-10 Richard Biener <rguenther@suse.de>
16350 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
16351 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
16352 return the bitpack.
16354 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
16356 PR gcov-profile/61889
16357 * config.in: regenerate.
16358 * configure.in: Likewise.
16359 * configure.ac: Check for ftw.h.
16360 * gcov-tool.c: Check for ftw.h before using nftw.
16362 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
16365 * ipa-visibility.c (update_visibility_by_resolution_info): Only
16366 assert when not in lto mode.
16368 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16370 * ira-color.c (setup_left_conflict_sizes_p): Simplify
16371 initialization/assignment of conflict_size.
16373 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
16376 * ipa-cp.c (gather_caller_stats): Skip thunks.
16377 (propagate_constants_topo): Skip aliases.
16379 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
16382 * config/sh/sh.c (sh_option_override): Don't change
16383 -freorder-blocks-and-partition to -freorder-blocks even when
16384 unwinding is enabled.
16385 (sh_can_follow_jump): Return false if the followee jump is
16386 a crossing jump when -freorder-blocks-and-partition is specified.
16387 * config/sh/sh.md (*jump_compact_crossing): New insn.
16389 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
16390 Kaz Kojima <kkojima@gcc.gnu.org>
16393 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
16394 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
16395 (sh_can_redirect_branch): Rename to ...
16396 (sh_can_follow_jump): ... this. Constify argument types.
16397 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
16398 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
16399 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
16400 * doc/tm.texi: Regenerate.
16402 2015-02-09 Jakub Jelinek <jakub@redhat.com>
16405 * builtins.c (expand_builtin): Call targetm.expand_builtin
16406 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
16408 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16411 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
16413 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16416 * ipa-icf.c (set_local): New function.
16417 (sem_function::merge): Use it.
16419 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16421 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
16422 (add_type_duplicate): Fix comparison of BINFOs.
16424 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16426 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
16427 on getting VOID pointer.
16429 2015-02-09 Jakub Jelinek <jakub@redhat.com>
16432 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
16435 2015-02-09 Richard Biener <rguenther@suse.de>
16437 * genmatch.c (replace_id): Copy expr_type.
16439 2015-02-09 Richard Biener <rguenther@suse.de>
16441 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
16442 (streamer_write_tree_bitfields): Declare.
16443 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
16444 properly unpack padding.
16445 (unpack_value_fields): Inline ...
16446 (streamer_read_tree_bitfields): ... here.
16447 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
16448 and properly add padding bits.
16449 (streamer_pack_tree_bitfields): Fold into ...
16450 (streamer_write_tree_bitfields): ... this new function,
16451 exposing the bitpack object.
16452 * lto-streamer-out.c (lto_write_tree_1): Call
16453 streamer_write_tree_bitfields.
16455 2015-02-09 Richard Biener <rguenther@suse.de>
16457 PR tree-optimization/54000
16458 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
16459 (struct ivopts_data): Add loop_loc member.
16460 (tree_ssa_iv_optimize_loop): Dump loop location.
16461 (create_new_ivs): Likewise, also dump number of IVs generated.
16463 2015-02-09 Martin Liska <mliska@suse.cz>
16465 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
16466 just if not yet registered.
16467 (ipa_icf_generate_summary): Register callgraph hooks.
16469 2015-02-08 Andrew Pinski <apinski@cavium.com>
16471 * config/aarch64/aarch64.c (gty_dummy): Delete.
16473 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16476 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
16477 (cgraph_node::local_p): Remove thunk related FIXME.
16479 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16482 * i386.c (ix86_function_regparm): Look through aliases to see if callee
16483 is local and optimized.
16484 (ix86_function_sseregparm): Likewise; also use target's SSE math
16485 settings; error out instead of silently generating wrong code
16487 (init_cumulative_args): Look through aliases.
16489 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16492 * ipa-split.c (execute_split_functions): Split if function has aliases.
16494 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
16497 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
16498 aliases before trying to expand it.
16499 (cgraph_node::expand_thunk): Fix formating.
16501 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
16503 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
16504 (Using Assembly Language with C): Expand introduction.
16505 (Basic Asm): Copy-edit. Add more information about uses of
16507 (Extended Asm): Copy-edit. Document new escape syntax and
16509 (Global Reg Vars): Copy-edit.
16510 (Local Reg Vars): Likewise.
16512 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
16516 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
16517 (DBX_CONTIN_CHAR): Define.
16519 2015-02-06 Sebastian Pop <s.pop@samsung.com>
16520 Brian Rzycki <b.rzycki@samsung.com>
16522 PR tree-optimization/64878
16523 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
16524 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
16525 Stop recursion at loop phi nodes after having visited a loop phi node.
16527 2015-02-06 Jakub Jelinek <jakub@redhat.com>
16529 * toplev.c (process_options): Change flag_ipa_ra before creating
16530 optimization_{default,current}_node.
16533 * cgraphunit.c (cgraph_node::expand_thunk): If
16534 restype is not is_gimple_reg_type nor the thunk_fndecl
16535 returns aggregate_value_p, set restmp to a temporary variable
16536 instead of resdecl.
16538 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
16540 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
16542 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16545 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
16546 add a general secondary reload handler for SDmode, unless we have
16547 both read/write support for SDmode.
16549 2015-02-06 Jakub Jelinek <jakub@redhat.com>
16551 PR middle-end/64937
16552 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
16553 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
16554 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
16555 1 before, push it to abstract_vec.
16556 (dwarf2out_abstract_function): Adjust caller. Don't call
16557 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
16558 DECL_ABSTRACT_P flags for all abstract_vec elts.
16560 2015-02-06 Renlin Li <renlin.li@arm.com>
16562 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
16564 * tree-ssa.c (execute_update_addresses_taken): Likewise.
16566 2015-02-06 Jeff Law <law@redhat.com>
16569 * config/h8300/h8300.c (push): New argument "in_prologue".
16570 Pass "in_prologue" along to "F".
16571 (h8300_push_pop): Corresponding changes.
16572 (h8300_expand_prologue): Likewise.
16573 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
16575 2015-02-06 Jakub Jelinek <jakub@redhat.com>
16577 PR rtl-optimization/64957
16579 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
16580 IOR rather than for AND.
16582 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
16585 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
16586 of shift-add and (add + shift) operations. Rename local variable.
16588 2015-02-05 Jeff Law <law@redhat.com>
16591 * config/h8300/constraints.md (U): Correctly dectect
16592 "eightbit_data" memory addresses.
16593 * config/h8300/h8300.c (eightbit_constant_address_p): Also
16594 handle (const (plus (symbol_ref (x)))) where x is declared
16595 as an 8-bit data memory address.
16596 * config/h8300/h8300.md (call, call_value): Correctly detect
16597 "funcvec" functions.
16600 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
16601 24 to 28 bits for the H8/300.
16603 2015-02-06 Alan Modra <amodra@gmail.com>
16606 * config/rs6000/rs6000.c (chain_already_loaded): New function.
16607 (rs6000_call_aix): Use it.
16609 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
16611 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
16614 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
16616 * config/h8300/constraints.md ("U" constraint): Use strict
16617 variant of REG_OK_FOR_BASE_P after reload has started.
16619 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
16621 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
16622 define to zero if !TARGET_NEON.
16623 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
16625 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16626 Trevor Saunders <tsaunders@mozilla.com>
16629 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
16631 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16634 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
16635 when removing varpool nodes.
16637 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16640 * varpool.c (varpool_node::remove): Fix order of variables.
16642 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16645 * ipa-inline.c (inline_small_functions): Fix ordering issue between
16646 speculation resolution and key updates.
16648 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16650 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
16651 about not letting any speculative edges unupdated.
16653 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16656 * gcov-io.c (gcov_var): Export.
16658 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16660 PR middle-end/64922
16661 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
16662 edges that become speculative.
16664 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16666 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
16667 or DW_LANG_Fortran08.
16668 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
16670 (gen_compile_unit_die): Handle "GNU Fortran2003" and
16671 "GNU Fortran2008" language strings.
16672 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
16673 * langhooks.h (lang_GNU_Fortran): New prototype.
16674 * langhooks.c (lang_GNU_Fortran): New function.
16675 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
16678 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
16680 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
16681 (RTX_OK_FOR_OLO10_P): Likewise.
16683 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
16685 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
16687 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
16689 PR middle-end/64922
16690 * gimple.c: Include gimple-ssa.h.
16691 (maybe_remove_unused_call_args): New function.
16692 * gimple.h (maybe_remove_unused_call_args): Declare.
16693 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
16694 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16695 * gimple-fold.c (gimple_fold_call): Likewise.
16697 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
16699 PR rtl-optimization/64905
16700 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
16701 pointer alignment if it isn't needed.
16703 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
16705 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
16706 cortex-a72.cortex-a53.
16707 * config/aarch64/aarch64-tune.md: Regenerate.
16708 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
16710 2015-02-04 Nick Clifton <nickc@redhat.com>
16712 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
16715 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16717 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
16718 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
16719 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
16721 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
16722 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
16723 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
16724 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
16725 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
16726 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
16727 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
16728 * tree-core.h (enum built_in_function): In between
16729 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
16730 for builtins that use DEF_BUILTIN_CHKP macro.
16732 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
16735 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
16736 operands for tcc_comparison exprs. Fix typos.
16739 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
16740 of two XORs that have an intervening AND or IOR.
16743 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
16744 simplification of XOR of AND to not allocate new rtx before
16745 committing to a simplification.
16747 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16749 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
16750 manual swaps in all peepholes.
16752 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16754 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
16755 of manual swapping implementation.
16756 (aarch64_expand_vec_perm_const_1): Likewise.
16758 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
16760 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
16761 (generic_addrcost_table): Remove NAMED_PARAM.
16762 (cortexa57_addrcost_table): Likewise.
16763 (xgene1_addrcost_table): Likewise.
16764 (generic_regmove_table): Likewise.
16765 (cortexa53_regmove_table): Likewise.
16766 (xgene1_regmove_table): Likewise.
16767 (generic_vector_table): Likewise.
16768 (cortexa57_vector_table): Likewise.
16769 (xgene1_vector_table): Likewise.
16770 (generic_tunings): Likewise.
16771 (cortexa53_tunings): Likewise.
16772 (cortexa57_tunings): Likewise.
16773 (xgene1_tunings): Likewise.
16775 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
16777 * config/arm/arm-cores.def: Add cortex-a72 and
16778 cortex-a72.cortex-a53.
16779 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
16780 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
16781 * config/arm/arm-tune.md: Regenerate.
16782 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
16783 "cortex-a72.cortex-a53".
16784 * doc/invoke.texi (ARM Options/-mtune): Likewise.
16786 2015-02-04 Nick Clifton <nickc@redhat.com>
16789 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
16791 (nonimmediate_di_operand): Likewise.
16793 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
16794 prefixes of known F5 using MSP430 MCUs.
16796 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16798 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
16799 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
16800 instead of __builtin_sqrt.
16802 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
16804 * varasm.c (do_assemble_alias): Follow transparent alias
16806 (default_assemble_visibility): Follow transparent alias
16807 chain for decl name.
16809 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16811 PR middle-end/62103
16812 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
16813 to compute size of referenced value in the constant case.
16815 2015-02-03 Jakub Jelinek <jakub@redhat.com>
16817 PR rtl-optimization/64756
16818 * cse.c (invalidate_dest): New function.
16819 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
16820 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
16821 invalidate and do not record it.
16823 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
16826 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
16827 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
16828 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
16829 atomic_nand<mode>_soft_tcb): New insns.
16830 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
16831 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
16832 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
16833 Split into atomic_not_fetchsi_hard if operands[0] is unused.
16834 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
16835 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16836 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
16837 atomic_not<mode>_hard if operands[0] is unused.
16838 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
16839 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
16840 if operands[0] is unused.
16841 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
16842 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
16843 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
16844 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16846 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
16847 into atomic_not<mode>_soft_tcb if operands[0] is unused.
16848 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
16849 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
16850 if operands[0] is unused.
16851 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
16852 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
16853 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
16854 atomic_nand_fetchsi_hard if operands[0] is unused.
16855 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
16856 atomic_nand<mode>_hard if operands[0] is unused.
16857 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
16858 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
16859 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
16860 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16861 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
16862 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
16863 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
16864 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
16865 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
16866 atomic_not<mode>_hard if operands[0] is unused.
16867 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
16868 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
16870 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
16871 into atomic_not<mode>_soft_tcb if operands[0] is unused.
16872 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
16873 atomic_nand<mode>_hard if operands[0] is unused.
16874 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
16875 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
16877 2015-02-03 David Malcolm <dmalcolm@redhat.com>
16880 * Makefile.in (GCC_OBJS): Add gcc-main.o.
16881 * gcc-main.c: New file, containing "main" taken from gcc.c.
16882 * gcc.c (do_self_spec): Free decoded_options.
16883 (class driver): Move declaration to gcc.h.
16884 (main): Move declaration and implementation to new file
16886 (driver_get_configure_time_options): New function.
16887 * gcc.h (class driver): Move this declaration here, from
16889 (driver_get_configure_time_options): New declaration.
16891 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
16893 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
16894 cross-module inlining.
16895 * cgraph.h (cgraph_node): Add flag merged.
16896 * ipa-icf.c (sem_function::merge): Maintain it.
16898 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
16900 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
16901 instead of OBJECT_P.
16903 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
16906 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
16907 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
16908 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
16909 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
16911 2015-02-03 Jakub Jelinek <jakub@redhat.com>
16914 * combine.c (reg_n_sets_max): New variable.
16915 (can_change_dest_mode, reg_nonzero_bits_for_combine,
16916 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
16917 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
16918 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
16919 (rest_of_handle_combine): Initialize reg_n_sets_max.
16921 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
16923 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
16924 if some always_inline was inlined, apply changes before inlining
16927 2015-02-02 David Malcolm <dmalcolm@redhat.com>
16930 * config/arm/arm.c (arm_option_override): Set
16931 arm_selected_arch/cpu/tune to NULL on entry.
16933 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
16934 Andrew Pinski <pinskia@gcc.gnu.org>
16935 Jakub Jelinek <jakub@gcc.gnu.org>
16938 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
16939 integer typing for small model. Use IN_RANGE.
16941 2015-02-02 Richard Biener <rguenther@suse.de>
16943 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
16944 * tree-vrp.c (vrp_valueize_1): Likewise.
16946 2015-02-02 Alan Modra <amodra@gmail.com>
16948 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
16949 than mem for toc_restore.
16950 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
16951 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
16952 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
16954 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16957 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
16958 explicit default options.
16960 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
16963 * ipa-utils.c (ipa_merge_profiles): Add release argument.
16964 * ipa-icf.c (sem_function::merge): Do not release body when merging.
16965 * ipa-utils.h (ipa_merge_profiles): Update prototype.
16967 2015-02-01 Jakub Jelinek <jakub@redhat.com>
16970 * cfgexpand.c (deep_ter_debug_map): New variable.
16971 (avoid_deep_ter_for_debug): New function.
16972 (expand_debug_expr): If TERed SSA_NAME is in
16973 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
16974 instead of trying to expand SSA_NAME's def stmt.
16975 (expand_debug_locations): When expanding debug bind
16976 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
16977 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
16979 (pass_expand::execute): Call avoid_deep_ter_for_debug on
16980 all debug bind stmts. Delete deep_ter_debug_map after
16981 expand_debug_location if non-NULL and clear it.
16983 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
16986 * config/sh/sync.md (atomic_fetch_notsi_hard,
16987 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
16988 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
16989 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
16990 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
16991 atomic_not_fetch<mode>_soft_imask): New insns.
16993 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16995 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
16996 (rank_for_schedule_debug): Split from ...
16997 (rank_for_schedule): ... this.
16998 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
16999 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
17001 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
17003 * doc/md.texi (Machine Constraints): Alphabetize table by target.
17004 * doc/extend.texi (x86 Variable Attributes): Move section to
17005 correct alphabetization after renaming.
17006 (x86 Type Attributes): Likewise.
17007 (Target Builtins): Re-alphabetize menu.
17008 (x86 Built-in Functions): Move section to correct alphabetization
17010 (x86 transactional memory intrinsics): Likewise.
17011 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
17012 and x86 Windows Options in table and menu.
17013 (x86 Options): Move section to correct alphabetization after
17015 (x86 Windows Options): Likewise.
17017 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
17019 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
17020 preferred names of the architecture and its 32- and 64-bit
17022 * doc/invoke.texi: Likewise.
17023 * doc/md.texi: Likewise.
17025 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
17028 * config/i386/predicates.md (address_no_seg_operand): Reject
17029 non-CONST_INT_P operands in invalid mode.
17031 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
17033 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
17034 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
17035 * config/i386/predicates.md (address_no_seg_operand): Call
17036 address_operand with VOIDmode.
17037 (vsib_address_operand): Ditto.
17038 (address_mpx_no_base_operand): Ditto.
17039 (address_mpx_no_index_operand): Ditto.
17041 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
17044 * lra-constraints.c (original_subreg_reg_mode): New.
17045 (simplify_operand_subreg): Try to simplify subreg of const. Use
17046 original_subreg_reg_mode for it.
17047 (swap_operands): Update original_subreg_reg_mode.
17048 (curr_insn_transform): Set up original_subreg_reg_mode.
17050 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
17053 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
17055 (process_alt_operands): Use it.
17056 (curr_insn_transform): Check the optional reload pseudo class is
17059 2015-01-30 Joseph Myers <joseph@codesourcery.com>
17061 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
17062 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
17064 * toplev.h (init_asm_output): Update comment on use of
17065 UNKNOWN_LOCATION with fatal_error.
17066 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
17067 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
17068 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
17069 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
17070 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
17071 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
17072 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
17073 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
17074 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
17075 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
17076 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
17077 fatal_error changed to pass input_location as first argument.
17079 2015-01-30 Martin Liska <mliska@suse.cz>
17081 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
17082 in #pragma GCC diagnostic guards.
17084 2015-01-30 Richard Biener <rguenther@suse.de>
17086 PR tree-optimization/64829
17087 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
17088 not add a widening conversion pattern but hand off extra
17089 widenings to callers.
17090 (vect_recog_widen_mult_pattern): Handle extra widening produced
17091 by vect_handle_widen_op_by_const.
17092 (vect_recog_widen_shift_pattern): Likewise.
17093 (vect_pattern_recog_1): Remove excess vertical space in dumping.
17094 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17095 (vect_init_vector_1): Likewise.
17096 (vect_get_vec_def_for_operand): Likewise.
17097 (vect_finish_stmt_generation): Likewise.
17098 (vectorizable_load): Likewise.
17099 (vect_analyze_stmt): Likewise.
17100 (vect_is_simple_use): Likewise.
17102 2015-01-29 Jeff Law <law@redhat.com>
17104 * combine.c (try_combine): Fix typo in comment.
17106 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
17109 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
17110 (rs6000_stack_info): Add assert.
17111 (rs6000_output_savres_externs): New function, split off from...
17112 (rs6000_output_function_prologue): ... here. Do not call it for
17115 2015-01-29 Jeff Law <law@redhat.com>
17118 * combine.c (try_combine): If I0 is a memory load and I3 a store
17119 to a related address, increase the "goodness" of doing a 4-insn
17120 combination with I0-I3.
17121 (make_field_assignment): Handle SUBREGs in the ior+and case.
17123 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
17125 PR tree-optimization/64746
17126 * tree-if-conv.c (mask_exists): New function.
17127 (predicate_mem_writes): Save created mask with given size for further
17129 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
17130 (ifcvt_repair_bool_pattern): Collect all statements that are root
17131 of bool pattern and use iterative algorithm to remove multiple uses
17132 of predicates, display number of required iterations.
17134 2015-01-29 Richard Biener <rguenther@suse.de>
17136 PR tree-optimization/64853
17137 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
17138 stmt will get simulated again.
17139 * tree-ssa-ccp.c (valueize_op_1): Likewise.
17141 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17143 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
17144 return_in_pc. Remove redundant assignments.
17145 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
17146 (arm_expand_epilogue): Don't compare boolean with true in if condition.
17148 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
17150 * config/i386/i386.c (ix86_mode_after): Make static.
17152 2015-01-29 Richard Biener <rguenther@suse.de>
17154 PR tree-optimization/64844
17155 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
17156 dump cost model analysis.
17157 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17158 Do not register adjusted load/store costs here.
17160 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
17161 Uros Bizjak <ubizjak@gmail.com>
17163 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
17164 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
17165 using x86_use_pseudo_pic_reg.
17166 * config/i386/i386.c (ix86_conditional_register_usage): Remove
17167 support for fixed PIC register.
17168 (ix86_use_pseudo_pic_reg): Not static any more.
17170 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
17172 PR middle-end/64805
17173 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
17174 to avoid error in cgraph node verification.
17176 2015-01-29 Marek Polacek <polacek@redhat.com>
17178 * doc/standards.texi: Reflect that the default for C is gnu11.
17180 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
17183 * reorg.c (switch_text_sections_between_p): New function.
17184 (relax_delay_slots): Call it when testing if the jump insn
17185 is removable. Use targetm.can_follow_jump when testing if
17186 the conditional branch can follow an unconditional jump.
17188 2015-01-27 Caroline Tice <cmtice@google.com>
17190 Committing VTV Cywin/Ming patch for Patrick Wollgast
17191 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
17192 if -fvtable-verify=preinit/std is used.
17193 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
17194 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
17195 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
17196 if -fvtable-verify=preinit/std is used.
17197 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
17198 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
17199 if -fvtable-verify=preinit/std is used.
17200 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
17201 * config/i386/mingw32.h (LIB_SPEC): Likewise.
17202 * varasm.c (assemble_variable): Add code to properly set the comdat
17203 section and name for the .vtable_map_vars section in case the
17204 target is PE or COFF.
17206 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
17209 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
17210 make sane BB profile.
17211 (cgraph_node::expand_thunk): Make sane BB profile.
17212 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
17213 * cgraph.h (init_lowered_empty_function): Update prototype.
17214 * config/i386/i386.c (make_resolver_func): Update call.
17215 * predict.c (gate): Disable branch prediction pass if
17216 profile is already there.
17218 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
17220 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
17221 * opth-gen.awk: Likewise.
17222 * common.opt: Mark flag_fp_contract_mode as Optimization.
17224 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
17226 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
17227 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
17229 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
17232 * config/sh/predicates.md (atomic_arith_operand,
17233 atomic_logical_operand): Remove.
17234 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
17235 (atomic_arith_operand_0): New predicate.
17236 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
17237 Use atomic_arith_operand_0 for input values.
17238 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
17239 atomic_compare_and_swap<mode>_soft_gusa,
17240 atomic_compare_and_swap<mode>_soft_tcb,
17241 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
17242 arith_reg_operand instead of register_operand.
17243 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
17244 atomic_arith_operand_0 for newval input.
17245 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
17246 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
17247 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
17248 arith_reg_operand instead of register_operand.
17249 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
17250 fetchop_predicate_1, fetchop_constraint_1_llcs,
17251 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
17252 fetchop_constraint_1_imask): New code iterator attributes.
17253 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
17254 register_operand. Use fetchop_predicate_1.
17255 (atomic_fetch_<fetchop_name>si_hard,
17256 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
17257 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
17258 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
17259 and arith_reg_operand instead of register_operand. Use
17260 fetchop_predicate_1, fetchop_constraint_1_gusa.
17261 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
17262 and arith_reg_operand instead of register_operand. Use
17263 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
17265 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
17266 and arith_reg_operand instead of register_operand. Use
17267 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
17269 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
17270 register_operand. Use atomic_logical_operand_1.
17271 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
17272 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
17273 arith_reg_operand instead of register_operand.
17274 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
17275 Use arith_reg_dest and arith_reg_operand instead of register_operand.
17276 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
17277 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
17278 register_operand. Use fetchop_predicate_1.
17279 (atomic_<fetchop_name>_fetchsi_hard,
17280 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
17281 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17282 fetchop_constraint_1_llcs.
17283 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
17284 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17285 fetchop_constraint_1_gusa.
17286 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
17287 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17288 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
17289 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
17290 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
17291 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
17292 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
17293 register_operand. Use atomic_logical_operand_1.
17294 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
17295 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
17296 arith_reg_operand instead of register_operand.
17297 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
17298 arith_reg_operand instead of register_operand. Use logical_operand
17299 and K08. Adjust asm sequence to allow R0 usage.
17300 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
17301 arith_reg_operand instead of register_operand. Use logical_operand
17304 2015-01-28 Jakub Jelinek <jakub@redhat.com>
17307 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
17308 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
17309 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
17310 only get_full_len HOST_WIDE_INTs from get_val () array rather than
17311 all bits in *val_wide.
17313 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
17315 * varpool.c (tls_model_names): Fix names.
17316 (varpool_node::dump): Dump tls- prefix for tls models.
17318 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
17319 Bernd Schmidt <bernds@codesourcery.com>
17320 Nathan Sidwell <nathan@codesourcery.com>
17322 * config/nvptx/mkoffload.c: New file.
17323 * config/nvptx/t-nvptx: Add build rules for it.
17324 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
17325 (extra_programs): Add mkoffload.
17326 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
17328 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
17330 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
17332 PR middle-end/64809
17333 * cfgexpand.c (reorder_operands): Skip debug gimples.
17335 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
17337 PR tree-optimization/64277
17338 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
17339 range info when possible to refine estimation.
17341 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
17343 PR tree-optimization/64718
17344 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
17345 be a 16bit unsigned integer when n->range is 16.
17346 (bswap_replace): Convert src to that type if necessary for all bswap
17347 sizes. Fix rotation right notation in nearby comment. Use bswap_type
17348 set in pass_optimize_bswap::execute ().
17350 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
17352 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
17353 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
17354 integer and floating point variants.
17355 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
17357 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
17359 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
17360 for all vector modes.
17362 2015-01-28 Jakub Jelinek <jakub@redhat.com>
17365 * doc/sourcebuild.texi (comdat_group): Document.
17367 2015-01-28 Terry Guo <terry.guo@arm.com>
17369 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
17371 2015-01-27 David Malcolm <dmalcolm@redhat.com>
17373 * toplev.c (print_version): Add param "show_global_state", and
17374 only print GGC and plugin information if it is true.
17375 (init_asm_output): Pass in "true" for the new param when calling
17377 (process_options): Likewise.
17378 (toplev::main): Likewise.
17379 * toplev.h (print_version): Add new param to decl.
17381 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
17385 * tree.c (lookup_binfo_at_offset): New function.
17386 (get_binfo_at_offset): Use it.
17388 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
17391 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
17392 on vtable being vtable.
17394 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17396 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
17397 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
17398 -mhotpatch= option.
17399 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
17400 -mno-hotpatch options. Change syntax of -mhotpatch= option.
17401 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
17403 (s390_hotpatch_trampoline_halfwords_max): Renamed.
17404 (s390_hotpatch_hw_max): New name.
17405 (s390_hotpatch_trampoline_halfwords): Renamed.
17406 (s390_hotpatch_hw_before_label): New name.
17407 (get_hotpatch_attribute): Removed.
17408 (s390_hotpatch_hw_after_label): New name.
17409 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
17411 (s390_attribute_table): Ditto.
17412 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
17413 (s390_function_num_hotpatch_hw): New name.
17414 Remove special handling of inline functions and hotpatching.
17415 Return number of nops before and after the function label.
17416 (s390_can_inline_p): Removed.
17417 (s390_asm_output_function_label): Emit a configurable number of nops
17418 after the function label.
17419 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
17420 (TARGET_CAN_INLINE_P) Removed.
17421 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
17423 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17424 Jiong Wang <jiong.wang@arm.com>
17426 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
17428 (cb<optab><mode>1): Likewise.
17429 * config/aarch64/iterators.md (bcond): New define_code_attr.
17431 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17433 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
17436 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17438 * config/s390/s390.c (s390_register_move_cost): Increase costs for
17441 2015-01-27 Richard Biener <rguenther@suse.de>
17443 * tree-vrp.c (update_value_range): Intersect the range with
17444 old recorded SSA name range information.
17446 2015-01-27 Nick Clifton <nickc@redhat.com>
17448 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
17449 BC, DE and HL registers directly, not via AX.
17450 When decrementing the stack pointer by a large amount, transfer SP
17451 into AX and perform the subtraction there.
17452 (rl78_expand_epilogue): Perform the inverse of the above
17455 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17457 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
17459 2015-01-27 Jakub Jelinek <jakub@redhat.com>
17460 Yury Gribov <y.gribov@samsung.com>
17463 * ubsan.c (ubsan_source_location): Refactor code.
17464 (ubsan_type_descriptor): Update type size. Refactor code.
17466 2015-01-27 Richard Biener <rguenther@suse.de>
17468 PR tree-optimization/56273
17469 PR tree-optimization/59124
17470 PR tree-optimization/64277
17471 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
17472 from the first VRP pass.
17474 2015-01-27 Jakub Jelinek <jakub@redhat.com>
17477 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
17478 handle the first argument in the same loop as all the other arguments.
17480 PR rtl-optimization/61058
17481 * jump.c (cleanup_barriers): Update basic block boundaries
17482 if BLOCK_FOR_INSN is non-NULL on PREV.
17484 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
17486 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
17487 bounds narrowing, already instrumented calls and calls to
17488 not instrumentable functions.
17490 2015-01-27 Jakub Jelinek <jakub@redhat.com>
17492 PR tree-optimization/64807
17493 * wide-int.cc (wi::divmod_internal): Clear
17494 b_dividend[dividend_blocks_needed].
17496 2015-01-26 DJ Delorie <dj@redhat.com>
17498 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
17499 volatile memory references.
17501 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
17504 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
17506 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
17507 shifts if it already fits into K08.
17509 2015-01-26 Jakub Jelinek <jakub@redhat.com>
17512 * ipa-inline.c (inline_small_functions): Print "unknown" even
17513 if edge->call_stmt is non-NULL, but has builtins or unknown
17516 PR middle-end/64421
17517 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
17518 with asterisk, skip the first character.
17520 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
17523 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
17526 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
17529 * config/i386/i386.md (*movdi_internal): Also check operand 0
17530 to determine TYPE_LEA operand.
17531 (*movsi_internal): Ditto.
17533 2015-01-26 Jakub Jelinek <jakub@redhat.com>
17535 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
17536 OPTION_MASK_QUAD_MEMORY_ATOMIC.
17538 2015-01-26 Renlin Li <renlin.li@arm.com>
17540 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
17542 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
17545 2015-01-26 Richard Biener <rguenther@suse.de>
17547 PR middle-end/64764
17548 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
17549 combining two BIT_AND_EXPR predicates.
17551 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
17554 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
17556 2015-01-26 Terry Guo <terry.guo@arm.com>
17558 * config/arm/arm.c (arm_file_start): Update the assignment of
17559 Tag_ABI_HardFP_use.
17561 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
17563 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
17565 config/arm/arm.md: Include the new Cortex-A57 model.
17566 (generic_sched): Don't use generic_sched when tuning for
17569 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
17570 Uros Bizjak <ubizjak@gmail.com>
17572 * config/i386/i386.c (get_builtin_code_for_version): Add
17573 support for BMI and BMI2 multiversion functions.
17575 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17577 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
17578 (extract_bit_field): Likewise.
17579 (extract_low_bits): Likewise.
17580 (expand_mult): Likewise.
17581 (expand_mult_highpart_adjust): Likewise.
17583 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
17585 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
17586 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
17587 * config/i386/i386.c (processor_model): Add
17588 M_INTEL_COREI7_BROADWELL.
17589 (arch_names_table): Add "broadwell".
17591 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
17600 * config/sh/sh-protos.h
17601 (sh_extending_set_of_reg::can_use_as_unextended_reg,
17602 sh_extending_set_of_reg::use_as_unextended_reg,
17603 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
17604 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
17605 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
17606 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
17607 (sh_treg_insns): New class.
17608 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
17609 (scope_counter): New class.
17610 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
17611 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
17612 sh_extending_set_of_reg::can_use_as_unextended_reg,
17613 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
17614 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
17615 sh_split_treg_set_expr): New functions.
17616 (addsubcosts): Handle treg_set_expr.
17617 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
17618 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
17619 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
17620 (sh_insn_operands_modified_between_p): Make non-static.
17621 * config/sh/predicates.md (zero_extend_movu_operand): Allow
17622 simple_mem_operand in addition to displacement_mem_operand.
17623 (zero_extend_operand): Don't allow zero_extend_movu_operand.
17624 (treg_set_expr, treg_set_expr_not_const01,
17625 arith_reg_or_treg_set_expr): New predicates.
17626 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
17627 arith_or_int_operand instead of logical_operand. Convert to
17628 insn_and_split. Try to optimize constant operand in splitter.
17629 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
17630 (*tstqi_t_zero): Delete.
17631 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
17632 (tstsi_t_and_not): Delete.
17633 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
17634 Convert to insn_and_split.
17635 (unnamed split, tstsi_t_zero_extract_xor,
17636 tstsi_t_zero_extract_subreg_xor_little,
17637 tstsi_t_zero_extract_subreg_xor_big): Delete.
17638 (*tstsi_t_shift_mask): New insn_and_split.
17639 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
17640 to recombine with surrounding insns when splitting.
17641 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
17642 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
17643 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
17644 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
17645 (*cbranch_div0s: Delete.
17646 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
17647 Try to recombine with surrounding insns when splitting. Add operand
17649 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
17650 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
17651 *addc_r_r_msb, *addc_2r_msb): Delete.
17652 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
17654 (*addc_negreg_t): New insn_and_split.
17655 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
17656 Try to recombine with surrounding insns when splitting.
17657 Add operand order variants.
17658 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
17659 insn_and_split patterns.
17660 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
17661 surrounding insns when splitting.
17662 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
17663 (*rotcl): Likewise. Add zero_extract variant.
17664 (*ashrsi2_31): New insn_and_split.
17665 (*negc): Convert to insn_and_split. Use treg_set_expr.
17666 (*zero_extend<mode>si2_disp_mem): Update comment.
17667 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
17669 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
17670 with surrounding insns when splitting.
17671 (any_treg_expr_to_reg): New insn_and_split.
17672 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
17673 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
17674 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
17675 *zero_extract_2): New single bit zero extract patterns.
17676 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
17677 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
17678 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
17679 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
17681 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
17682 register_operand for set source.
17684 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
17686 * i386.opt (prefetch_sse): New targetsave.
17687 * i386.c (ix86_function_specific_save): Save prefetch_sse.
17688 (ix86_function_specific_restore): Restore prefetch_sse and initialize
17689 ix86_cost/ix86_tune_cost.
17691 2015-01-23 David Malcolm <dmalcolm@redhat.com>
17693 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
17694 Support the JIT by using 0 as the language type.
17696 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
17699 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
17700 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
17701 (mark_regno_live, process_bb_lives): Pass new parameter value to
17702 make_hard_regno_born.
17704 2015-01-23 Jakub Jelinek <jakub@redhat.com>
17706 PR rtl-optimization/63637
17707 PR rtl-optimization/60663
17708 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
17709 if elt->cost is MAX_COST for ASM_OPERANDS.
17710 (find_sets_in_insn): Fix up comment typo.
17711 (cse_insn): Don't set src_volatile for all non-volatile
17712 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
17713 or with "memory" clobber. Set elt->cost to MAX_COST
17714 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
17715 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
17717 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
17719 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
17722 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
17724 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
17725 libgcc/config/i386/elf-lib.h.
17727 2015-01-23 Jakub Jelinek <jakub@redhat.com>
17730 * gcc.c (print_configuration): Don't print a blank line at the end
17732 (run_attempt): ... but here unstead.
17734 PR middle-end/64734
17735 * omp-low.c (scan_sharing_clauses): Don't ignore
17736 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
17737 on target data/update constructs.
17739 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
17742 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
17743 (DEBUG_RELOAD): Removed define.
17744 (m32c_limit_reload_class): Enable traces with if DEBUG0.
17745 (m32c_function_arg): Added a type cast.
17746 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
17747 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
17748 * config/m32c/bitops.md (andqi3_16): Likewise.
17749 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
17750 (push_a01_l): Likewise.
17752 2015-01-23 David Malcolm <dmalcolm@redhat.com>
17755 * main.c (main): Construct toplev instances with init_signals=true.
17756 * toplev.c (general_init): Add param "init_signals", and use it to
17757 conditionalize the calls to signal and host_hooks.extra_signals.
17758 (toplev::toplev): Add param "init_signals".
17759 (toplev::main): When invoking general_init, pass m_init_signals
17760 to control whether signal-handlers are installed.
17761 * toplev.h (toplev::toplev): Add param "init_signals".
17762 (toplev::m_init_signals): New field.
17764 2015-01-23 David Malcolm <dmalcolm@redhat.com>
17767 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
17768 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
17769 latter may be affected by the former (e.g. on i686).
17771 2015-01-23 Martin Liska <mliska@suse.cz>
17773 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
17774 false positive during profiledbootstrap.
17776 2015-01-23 Tom de Vries <tom@codesourcery.com>
17779 * lto-opts.c (lto_write_options): Output non-explicit conservative
17781 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
17782 (append_compiler_options): Pass -fopenacc through.
17784 2015-01-23 Tom de Vries <tom@codesourcery.com>
17787 * lto-opts.c (lto_write_options): Output non-explicit conservative
17789 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
17790 (append_compiler_options): Pass -fopenmp through.
17792 2015-01-23 Jakub Jelinek <jakub@redhat.com>
17795 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
17798 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
17799 * diagnostic.def (DK_ICE_NOBT): New kind.
17800 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
17801 like DK_ICE, but never print backtrace.
17802 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
17803 (internal_error_no_backtrace): New function.
17804 * gcc.c (execute): Use internal_error_no_backtrace instead of
17807 2015-01-22 Jeff Law <law@redhat.com>
17810 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
17811 improve code density for small immediate to memory case.
17812 (insv): Better handle bitfield assignments when the field is
17813 being set to all ones.
17814 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
17817 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17818 Jakub Jelinek <jakub@redhat.com>
17820 PR middle-end/64729
17821 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
17822 for !TARGET_LIBC_PROVIDES_SSP version and
17823 -fstack-protector-{all,strong,explicit} otherwise.
17824 * config/freebsd.h (LINK_SSP_SPEC): Handle
17825 -fstack-protector-{strong,explicit}.
17827 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
17828 H.J. Lu <hongjiu.lu@intel.com>
17831 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
17834 2015-01-22 Wei Mi <wmi@google.com>
17836 PR rtl-optimization/64557
17837 * dse.c (record_store): Call get_addr for mem_addr.
17838 (check_mem_read_rtx): Likewise.
17840 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
17842 * fold-const.c (const_binop): Add early return for non-tcc_binary.
17844 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
17846 * toplev.c (init_local_tick): Process the failure when read
17847 fails for random_seed.
17849 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
17850 'pretty_name' to avoid memory overflow.
17852 2015-01-22 Richard Biener <rguenther@suse.de>
17854 PR middle-end/64728
17855 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
17856 abnormal coalescing on undefined SSA names.
17858 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
17862 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
17864 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
17866 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
17868 PR middle-end/63325
17869 * fold-const.c (fold_checksum_tree): Don't include value of
17870 expr->decl_with_vis.symtab_node in the checksum.
17872 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17874 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
17876 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
17879 * gcc.c (insert_comments): New function.
17880 (try_generate_repro): Call it.
17881 (append_text): Removed.
17883 2015-01-22 Richard Biener <rguenther@suse.de>
17885 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
17886 with IL incompatible options. Properly honor user optimize
17889 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
17891 PR rtl-optimization/64682
17892 * combine.c (distribute_notes): When moving a death note for
17893 a register that is set in the new I2, make sure to put it
17894 before that new I2.
17896 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
17898 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
17899 not TARGET_DEFAULT.
17901 2015-01-21 Jakub Jelinek <jakub@redhat.com>
17904 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
17905 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
17906 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
17909 * doc/invoke.texi (-fsanitize=vptr): Document.
17911 PR rtl-optimization/62078
17912 * dse.c: Include cfgcleanup.h.
17913 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
17914 anything call purge_all_dead_edges and cleanup_cfg at the end
17917 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
17919 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
17922 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17924 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
17927 2015-01-21 David Sherwood <david.sherwood@arm.com>
17928 Tejas Belagod <Tejas.Belagod@arm.com>
17930 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
17931 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
17932 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
17935 2015-01-21 David Sherwood <david.sherwood@arm.com>
17936 Tejas Belagod <Tejas.Belagod@arm.com>
17938 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
17939 (aarch64_reverse_mask): New decls.
17940 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
17941 (insn_count): New mode_attr.
17942 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
17943 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
17944 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
17945 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
17946 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
17947 (aarch64_simd_st4): New patterns.
17948 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
17949 (aarch64_reverse_mask): New functions.
17951 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
17953 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
17955 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
17956 addressing modes for BE.
17957 (aarch64_print_operand): Add 'R' specifier.
17958 (aarch64_simd_disambiguate_copy): Delete.
17959 (aarch64_simd_emit_reg_reg_move): New function.
17960 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
17961 in define_splits for structural moves.
17962 (mov<mode>): Use less restrictive predicates.
17963 (*aarch64_mov<mode>): Simplify and only allow for LE.
17964 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
17966 2015-01-21 Alan Hayward <alan.hayward@arm.com>
17968 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
17970 2015-01-21 Richard Henderson <rth@redhat.com>
17973 * ccmp.c (used_in_cond_stmt_p): Remove.
17974 (expand_ccmp_expr): Don't use it.
17976 2015-01-21 Nick Clifton <nickc@redhat.com>
17978 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
17981 2015-01-21 Richard Biener <rguenther@suse.de>
17983 PR middle-end/64313
17984 * tree-core.h (builtin_info, builtin_info_type): Turn from
17985 an object with two arrays into an array of an object with
17986 decl and two flags, implicit_p and declared_p.
17987 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
17988 set_builtin_decl, set_builtin_decl_implicit_p,
17989 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
17990 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
17991 * builtins.c (builtin_info): Adjust.
17992 * gimplify.c (gimplify_addr_expr): References to builtins
17993 that have been declared by the user makes them eligible for
17994 use by the compiler. Call set_builtin_decl_implicit_p on them.
17996 2015-01-20 Jeff Law <law@redhat.com>
17999 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
18000 allow pc-relative addresses in operand predicates or constraints.
18002 2015-01-21 Bin Cheng <bin.cheng@arm.com>
18004 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
18005 neon on aarch32 processors for stringops.
18007 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18010 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
18012 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18015 * ipa-inline.c: Include lto-streamer.h
18016 (report_inline_failed_reason): Output source file differences and
18017 flags on optimization/target node mismatch.
18018 (can_inline_edge_p): Consider caller to be the outer inline function;
18019 be less restrictive about matching opimize and optimize_size attributes.
18020 (inline_account_function_p): Break out from ...
18021 (inline_small_functions): ... here.
18022 * ipa-inline-transform.c (clone_inlined_nodes): Use
18023 inline_account_function_p.
18024 (inline_call): Use optimize attribution; use inline_account_function_p.
18025 (inline_transform): Use opt_for_fn.
18026 * ipa-inline.h (inline_account_function_p): Declare.
18028 2015-01-20 Jakub Jelinek <jakub@redhat.com>
18031 * dwarf2out.c (decl_piece_node): Don't put bitsize into
18032 mode if bitsize <= 0.
18033 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
18034 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
18035 sizes and positions.
18037 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
18039 * config/nios2/nios2.c (nios2_asm_file_end): Implement
18040 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
18042 (TARGET_ASM_FILE_END): Define.
18044 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18046 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
18047 (struct tune_params): Use the enum.
18048 * arm.c (arm_*_tune): Update.
18049 (arm_option_override): Update.
18051 2015-01-20 Richard Biener <rguenther@suse.de>
18054 * ipa-reference.c (add_static_var): Inline ...
18055 (analyze_function): ... here after splitting out from ...
18056 (is_proper_for_analysis): ... this.
18058 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
18061 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
18062 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
18063 replace the conditional with it's true branch.
18064 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
18065 (arm_lra_p): Remove.
18067 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
18069 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
18071 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18073 * config/tilegx/mul-tables.c: Move symtab.h include after
18074 coretypes.h include.
18075 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
18076 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
18077 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
18078 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
18079 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
18081 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
18085 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
18087 PR rtl-optimization/64081
18088 * loop-iv.c (def_pred_latch_p): New function.
18089 (latch_dominating_def): Allow specific cases with non-single
18091 (iv_get_reaching_def): Likewise.
18092 (check_complex_exit_p): New function.
18093 (check_simple_exit): Use check_complex_exit_p to allow certain cases
18094 with exits not executing on any iteration.
18096 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18099 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
18100 to set branch cost.
18102 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18105 * i386.c (gate): Check flag_expensive_optimizations and
18107 (ix86_option_override_internal): Drop optimize_size condition
18108 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
18109 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
18110 MASK_PREFER_AVX128.
18111 (ix86_avx256_split_vector_move_misalign,
18112 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
18113 * sse.md (all uses of TARGET_PREFER_AVX128): Add
18114 optimize_insn_for_speed_p check.
18116 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
18118 * config/mips/mips.h (FP_ASM_SPEC): New define.
18119 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
18122 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
18125 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
18126 nullptr for insn when reaching the first insn.
18127 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
18128 (sh_insn_operands_modified_between_p): Add nullptr check.
18129 (sh_find_extending_set_of_reg): Fix log message. Don't accept
18130 sign extending mem load if the insn contains any UNSPEC or
18133 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18135 * params.def (inline-unit-growth): Drop to 15%.
18136 * invoke.texi (inline-unit-growth): Document change.
18138 2015-01-19 Martin Liska <mliska@suse.cz>
18141 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
18142 function for second argument of OBJ_TYPE_REF.
18144 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18147 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
18148 whether function is an alias.
18150 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
18152 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
18155 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
18157 PR rtl-optimization/64671
18158 * lra-remat.c (operand_to_remat): Don't consider jump and call
18161 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
18164 * config/rs6000/default64.h: Include rs6000-cpus.def.
18165 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
18166 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
18167 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
18169 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
18171 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
18172 pseudo-op to specify assembler dialect.
18174 2015-01-19 Martin Liska <mliska@suse.cz>
18177 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
18178 Handle safe potentially removed nodes during filtering.
18180 2015-01-19 Martin Liska <mliska@suse.cz>
18182 * doc/extend.texi (no_icf): Add new attribute description.
18183 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
18184 where the pass attempts to merge a function with no_icf attribute.
18186 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18189 * doc/md.texi (ARM Options): Document register constraints.
18191 2015-01-19 Jiong Wang <jiong.wang@arm.com>
18192 Andrew Pinski <apinski@cavium.com>
18195 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
18196 (ashl<mode>3): Don't expand if operands[2] is not constant.
18198 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18201 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
18202 Match xor-and-xor RTL pattern.
18204 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
18206 PR rtl-optimization/64081
18207 * loop-iv.c (def_pred_latch_p): New function.
18208 (latch_dominating_def): Allow specific cases with non-single
18210 (iv_get_reaching_def): Likewise.
18211 (check_complex_exit_p): New function.
18212 (check_simple_exit): Use check_complex_exit_p to allow certain cases
18213 with exits not executing on any iteration.
18215 2015-01-19 Jakub Jelinek <jakub@redhat.com>
18217 * common.opt (fgraphite): Fix a typo.
18219 2015-01-19 Felix Yang <felix.yang@huawei.com>
18221 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
18223 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
18224 uminp, smax_nanp, smin_nanp): New builtins.
18225 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
18226 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
18227 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
18228 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
18229 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
18230 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
18231 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
18232 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
18233 vpminnms_f32): Rewrite using builtin functions.
18235 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
18238 * omp-low.c (offload_symbol_decl): Remove variable.
18239 (get_offload_symbol_decl): Remove function.
18240 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
18241 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
18242 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
18243 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
18244 BUILT_IN_GOACC_UPDATE don't pass it at all.
18246 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
18248 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
18251 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
18253 * ipa-chkp.c (chkp_produce_thunks): Add early param
18254 to split thunks production into two passes. Keep
18255 'always_inline' function bodies after the first pass.
18256 (pass_data_ipa_chkp_early_produce_thunks): New.
18257 (pass_ipa_chkp_early_produce_thunks): New.
18258 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
18259 chkp_produce_thunks signature.
18260 (make_pass_ipa_chkp_early_produce_thunks): New.
18261 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
18262 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
18263 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
18265 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
18267 * cgraph.c (cgraph_node::dump): Dump profile flags.
18269 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
18272 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
18273 reg appear first in the parallel.
18275 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
18277 * ipa-reference.c (set_reference_optimization_summary,
18278 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
18280 (ignore_module_statics): New static var.
18281 (propagate_bits): If ipa-reference is disabled, do not look into local
18283 (analyze_function): Disable analysis when ipa_reference is disabled.
18284 (generate_summary): Do not dump when reference is disabled;
18285 collect vars accessed from functions with ipa-reference disabled.
18286 (get_read_write_all_from_node): When ipa-reference is disabled, use the
18288 (gate): Enable for LTO.
18289 (ignore_edge_p): New function.
18290 (propagate): Skip functions w/o ipa-reference analysis.
18291 * optc-save-gen.awk: Handle optimize_debug correctly.
18292 * opth-gen.awk: Likewise.
18293 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
18294 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
18295 fira-share-save-slots, fira-share-spill-slots,
18296 fmodulo-sched-allow-regmoves, fpartial-inlining,
18297 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
18298 ftracer, ftree-parallelize-loops, fassociative-math,
18299 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
18301 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
18302 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
18304 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
18307 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
18310 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
18312 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
18314 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
18316 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
18317 Remove duplicate option listings.
18319 2015-01-18 Felix Yang <felix.yang@huawei.com>
18321 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
18322 (autofdo_source_profile::get_callsite_total_count,
18323 function_instance::get_function_instance_by_decl,
18324 string_table::get_index, string_table::get_index_by_decl,
18325 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
18326 Fix comment typos. Reformatting and minor code rearrangement.
18328 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
18330 * config/rs6000/rs6000.md (probe_stack): Delete.
18331 (probe_stack_address): New.
18333 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
18335 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
18336 to test for 32-bit ABIs, not !TARGET_POWERPC64.
18338 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
18340 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
18341 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
18342 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
18344 (rs6000_libcall_value): Use the new function.
18346 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
18348 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
18350 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
18352 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
18353 implement a more precise life analysis for it during backward scan.
18355 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
18357 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
18359 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
18361 PR rtl-optimization/52773
18362 * calls.c (emit_library_call_value): When pushing arguments use
18363 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
18364 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
18365 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
18367 2015-01-17 Jeff Law <law@redhat.com>
18369 PR rtl-optimization/32790
18370 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
18371 not ZERO_EXTEND in SET_DESTs.
18373 2015-01-17 Alan Modra <amodra@gmail.com>
18375 * cprop.c (do_local_cprop): Revert last change.
18377 2015-01-16 DJ Delorie <dj@redhat.com>
18378 Nick Clifton <nickc@redhat.com>
18380 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
18381 (addhi3_real): Likewise. Fix [HL+0] syntax.
18382 (subqi3_real): Likewise.
18383 (subhi3_real): Likewise.
18384 (cbranchqi4_real): Likewise. Allow saddr,#imm.
18385 (cbranchhi4_real): Likewise.
18386 (cbranchhi4_real_inverted): Likewise.
18387 (cbranchsi4_real_lt): Likewise.
18388 (cbranchsi4_real_ge): Likewise.
18389 (cbranchsi4_real_ge): Likewise.
18390 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
18391 (sub<mode>3_virt): Likewise.
18392 (cbranchqi4_virt): Likewise.
18393 (cbranchhi4_virt): Likewise.
18394 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
18395 always use '[reg+imm]' even when imm is zero.
18396 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
18397 (rl78_general_operand): New.
18398 (rl78_nonimmediate_operand): New.
18399 (rl78_nonfar_operand): Use them.
18400 (rl78_nonfar_nonimm_operand): Likewise.
18401 (rl78_stack_based_mem): Fix.
18402 * config/rl78/constraints.md (Ibqi): New.
18407 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
18408 (iorqi3): Likewise.
18409 (xorqi3): Likewise.
18410 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
18412 * config/rl78/constrains (Qs8): New constraint.
18413 * config/rl78/rl78.c (rl78_flags_already_set): New function.
18414 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
18415 * config/rl78/rl78-real.md (update_Z): New attribute.
18416 Update patterns to set it.
18417 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
18418 shorter compare and branch sequence can be used.
18419 (cbranchhi4_real): Likewise.
18420 (cbranchhi4_real_inverted): Likewise.
18422 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
18423 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
18425 * config/rl78/rl78.c (rl78_get_name_encoding): New.
18426 (rl78_option_override): Allow -mes0 only if C.
18427 (characterize_address): Support subregs of symbol_refs.
18428 (rl78_addr_space_address_mode): Move. Add __near.
18429 (rl78_far_p): Likewise.
18430 (rl78_addr_space_pointer_mode): Likewise.
18431 (rl78_as_legitimate_address): Likewise.
18432 (rl78_addr_space_subset_p): Likewise.
18433 (rl78_addr_space_convert): Likewise.
18434 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
18435 symbols with -mes0.
18436 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
18438 (rl78_alloc_physical_registers_op1): Change logic to prefer
18439 symbol[BC] addressing.
18440 (frodata_section): New.
18441 (rl78_asm_init_sections): Initialize it.
18442 (rl78_select_section): Put __far readonly symbols in .frodata.
18443 (rl78_make_type_far): New.
18444 (rl78_insert_attributes): Force all readonly symbols to be
18446 (rl78_asm_out_integer): New.
18447 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
18448 * config/rl78/rl78.opt (-mes0): New.
18450 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
18451 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18452 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18453 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
18454 (rl78_saddr_p): New.
18455 (rl78_output_aligned_common): New.
18456 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
18457 (rl78_handle_saddr_attribute): New.
18458 (rl78_handle_naked_attribute): New.
18459 (rl78_attribute_table): Add saddr.
18460 (rl78_print_operand_1): Don't print '!' on saddr operands.
18461 (rl78_print_operand_1): Strip encodings.
18463 (rl78_strip_name_encoding): New.
18464 (rl78_attrlist_to_encoding): New.
18465 (rl78_encode_section_info): New.
18466 (rl78_asm_init_sections): New.
18467 (rl78_select_section): New.
18468 (rl78_output_labelref): New.
18469 (rl78_output_aligned_common): New.
18470 (rl78_asm_out_integer): New.
18471 (rl78_asm_ctor_dtor): New.
18472 (rl78_asm_constructor): New.
18473 (rl78_asm_destructor): New.
18475 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
18476 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
18477 (transcode_memory_rtx): Update.
18478 (rl78_expand_epilogue): Use A_REG instead of 0.
18480 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18482 * config/arm/arm-protos.h (struct tune_params): New field
18483 sched_autopref_queue_depth.
18484 * config/arm/arm.c (sched-int.h): Include header.
18485 (arm_first_cycle_multipass_dfa_lookahead_guard,)
18486 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
18487 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
18488 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
18489 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
18490 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
18491 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
18492 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
18493 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
18494 * config/arm/t-arm (arm.o): Update.
18495 * haifa-sched.c (update_insn_after_change): Update.
18496 (rank_for_schedule): Use auto-prefetcher model, if requested.
18497 (autopref_multipass_init): New static function.
18498 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
18499 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
18500 variable for debug dumps.
18501 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
18502 (autopref_multipass_dfa_lookahead_guard): New global function that
18503 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
18504 (init_h_i_d): Update.
18505 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
18506 * sched-int.h (enum autopref_multipass_data_status): New const enum.
18507 (autopref_multipass_data_): Structure for auto-prefetcher data.
18508 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
18509 (struct _haifa_insn_data:autopref_multipass_data): New field.
18510 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
18511 (autopref_multipass_dfa_lookahead_guard): Declare.
18513 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18515 * rtlanal.c (get_base_term): Handle SCRATCH.
18517 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18519 * config/aarch64/aarch64.c
18520 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
18521 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18523 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
18524 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
18526 2015-01-17 Alan Modra <amodra@gmail.com>
18528 * cprop.c (do_local_cprop): Disallow replacement of fixed
18531 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18534 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
18537 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18539 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
18540 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
18542 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18544 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
18545 * config/arm/thumb1.md: ... Here.
18547 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18549 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
18550 TImode for TARGET_32BIT.
18552 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18554 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
18555 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
18557 (rs6000_abi_word_mode): New function.
18559 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18561 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
18562 instead of UNITS_PER_WORD to describe the size of stack slots.
18564 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18566 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
18567 as rs6000_promote_function_mode. Move comment to there.
18568 (rs6000_promote_function_mode): New function.
18570 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
18572 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
18573 -mpowerpc64 is active.
18575 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
18577 PR middle-end/64353
18578 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
18581 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
18583 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
18584 introduced in revision 219724.
18586 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18587 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18590 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
18591 destination is not a GP reg.
18592 (*movdi_aarch64): Likewise.
18594 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
18597 * config/rs6000/default64.h: Revert ISA change.
18599 2015-01-16 Richard Biener <rguenther@suse.de>
18601 PR middle-end/64614
18602 * tree-ssa-uninit.c: Include tree-cfg.h.
18603 (MAX_SWITCH_CASES): New define.
18604 (convert_control_dep_chain_into_preds): Handle switch statements.
18605 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
18606 (normalize_one_pred_1): Do not split bit-manipulations.
18609 2015-01-16 Richard Biener <rguenther@suse.de>
18611 PR tree-optimization/64568
18612 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
18613 complex load rewriting for TARGET_MEM_REFs.
18615 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
18617 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
18619 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
18622 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
18624 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
18625 (aarch64_lra_p): Remove.
18627 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
18630 * ipa-chkp.h (chkp_instrumentable_p): New.
18631 * ipa-chkp.c: Include tree-inline.h.
18632 (chkp_instrumentable_p): New.
18633 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
18634 Fix processing of not instrumentable functions.
18635 (chkp_versioning): Use chkp_instrumentable_p. Warn about
18636 not instrumentable functions.
18637 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
18638 chkp_instrumentable_p.
18639 * tree-inline.h (copy_forbidden): New.
18640 * tree-inline.c (copy_forbidden): Not static anymore.
18642 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18644 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
18647 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
18649 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
18650 type OP_OUT to OP_INOUT.
18652 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
18654 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
18655 (high x) y) to y if x and y have the same base.
18657 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
18659 * config/arm/cortex-a57.md: New.
18660 * config/aarch64/aarch64.md: Include it.
18661 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
18662 * config/aarch64/aarch64-tune.md: Regenerate.
18664 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
18667 * ccmp.c (expand_ccmp_next): New function.
18668 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
18669 and compare insn sequence.
18670 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
18671 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
18672 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
18673 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
18674 (*ccmp_ior): Changed to ccmp_ior<mode>.
18675 (cmp<mode>): New pattern.
18676 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
18678 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
18680 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
18682 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
18683 _mm256_bsrli_epi128): New.
18684 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
18686 2015-01-15 Jiong Wang <jiong.wang@arm.com>
18688 * expmed.c (store_bit_field_using_insv): Improve warning message.
18689 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
18691 2015-01-15 Jiong Wang <jiong.wang@arm.com>
18693 PR rtl-optimization/64011
18694 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
18695 there is partial overflow.
18697 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18699 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
18701 (nds32_expand_epilogue_v3pop): Likewise.
18702 * config/nds32/nds32.md (sibcall): Define this for sibling call
18704 (sibcall_register): Likewise.
18705 (sibcall_immediate): Likewise.
18706 (sibcall_value): Likewise.
18707 (sibcall_value_register): Likewise.
18708 (sibcall_value_immediate): Likewise.
18709 (sibcall_epilogue): Likewise.
18710 (epilogue): Pass false to indicate this is not a sibcall epilogue.
18711 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
18712 (nds32_expand_epilogue_v3pop): Likewise.
18714 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18716 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
18717 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
18718 (return_internal): New.
18719 (return): Define this named pattern.
18720 (simple_return): Define this named pattern.
18721 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
18722 pattern instead of unspec_volatile_func_return.
18723 (nds32_expand_epilogue_v3pop): Likewise.
18724 (nds32_can_use_return_insn): New function.
18726 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18728 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
18729 * config/nds32/nds32.md (pop25return): New.
18730 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
18731 pop25return pattern.
18733 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18735 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
18736 -mforbid-fp-as-gp, and -mex9 options.
18738 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
18740 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
18741 remove -mgp-direct option.
18743 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18745 * doc/invoke.texi (--param early-inlining-insns): Update default value.
18746 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
18748 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18750 * ipa-inline.c (inline_small_functions): Work around hints
18753 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
18756 * doc/invoke.texi (Option Summary): Document new Nios II
18758 (Nios II Options): Likewise.
18759 * config/nios2/nios2.opt: Add -mgpopt= option support.
18760 Modify existing -mgpopt and -mno-gpopt options to be aliases.
18761 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
18762 * config/nios2/nios2.c (nios2_option_override): Adjust
18763 -mgpopt defaulting.
18764 (nios2_in_small_data_p): Return true for explicit small data
18765 sections even with -G0.
18766 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
18769 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
18772 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
18774 (inline_call): Fix removal of aliases.
18776 2015-01-15 Jakub Jelinek <jakub@redhat.com>
18778 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
18779 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
18780 * opts.c (common_handle_option): Add -fsanitize=vptr.
18781 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
18782 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
18783 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
18784 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
18785 (ubsan_expand_vptr_ifn): New prototype.
18786 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
18787 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
18788 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
18789 expand_LOOP_VECTORIZED): Make argument nameless, remove
18791 (expand_UBSAN_VPTR): New function.
18792 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
18794 (UBSAN_VPTR): New internal function.
18795 * sanopt.c (tree_map_traits): Renamed to ...
18796 (sanopt_tree_map_traits): ... this.
18797 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
18798 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
18799 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
18800 (maybe_optimize_ubsan_vptr_ifn): New function.
18801 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
18802 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
18804 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
18805 internal calls like pure functions for aliasing, even when they
18806 have other side-effects that prevent making them ECF_PURE.
18807 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
18808 (ubsan_expand_vptr_ifn): New function.
18810 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
18812 PR rtl-optimization/64110
18813 * stmt.c (parse_output_constraint): Process '^' and '$'.
18814 (parse_input_constraint): Ditto.
18815 * lra-constraints.c (process_alt_operands): Process the new
18817 * ira-costs.c (record_reg_classes): Process the new constraint
18819 * genoutput.c (indep_constraints): Add '^' and '$'.
18820 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
18821 * doc/md.texi: Add description of the new constraints.
18823 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
18824 Bernd Schmidt <bernds@codesourcery.com>
18825 Cesar Philippidis <cesar@codesourcery.com>
18826 James Norris <jnorris@codesourcery.com>
18827 Tom de Vries <tom@codesourcery.com>
18828 Ilmir Usmanov <i.usmanov@samsung.com>
18829 Dmitry Bocharnikov <dmitry.b@samsung.com>
18830 Evgeny Gavrin <e.gavrin@samsung.com>
18831 Jakub Jelinek <jakub@redhat.com>
18833 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
18834 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18835 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18836 New function types.
18837 * builtins.c: Include "gomp-constants.h".
18838 (expand_builtin_acc_on_device): New function.
18839 (expand_builtin, is_inexpensive_builtin): Handle
18840 BUILT_IN_ACC_ON_DEVICE.
18841 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
18843 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
18845 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
18846 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
18847 i386/intelmic-offload.h.
18848 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
18849 to libgomp and its dependencies.
18850 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
18851 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18852 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18853 * config/ia64/hpux.h (LIB_SPEC): Likewise.
18854 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18855 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18856 * doc/generic.texi: Update for OpenACC changes.
18857 * doc/gimple.texi: Likewise.
18858 * doc/invoke.texi: Likewise.
18859 * doc/sourcebuild.texi: Likewise.
18860 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
18861 GF_OMP_FOR_KIND_OACC_LOOP.
18862 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
18863 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
18864 GF_OMP_TARGET_KIND_OACC_UPDATE,
18865 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18867 * gimple.c: Update comments for OpenACC changes.
18868 * gimple.def: Likewise.
18869 * gimple.h: Likewise.
18870 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
18871 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18872 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
18873 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
18874 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
18876 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
18877 * gimplify.c: Include "gomp-constants.h".
18878 Update comments for OpenACC changes.
18879 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
18880 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
18881 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18882 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
18883 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18884 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18885 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
18886 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18887 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
18889 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
18890 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
18891 OMP_CLAUSE_SET_MAP_KIND.
18892 (gimplify_oacc_cache): New function.
18893 (gimplify_omp_for): Handle OACC_LOOP.
18894 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
18896 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
18897 OACC_EXIT_DATA, OACC_UPDATE.
18898 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
18899 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
18900 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
18901 (gimplify_body): Consider flag_openacc next to flag_openmp.
18902 * lto-streamer-out.c: Include "gomp-constants.h".
18903 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
18904 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
18905 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
18906 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
18907 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
18908 (BUILT_IN_ACC_ON_DEVICE): New builtins.
18909 * omp-low.c: Include "gomp-constants.h".
18910 Update comments for OpenACC changes.
18911 (struct omp_context): Add reduction_map, gwv_below, gwv_this
18913 (extract_omp_for_data, use_pointer_for_field, install_var_field)
18914 (new_omp_context, delete_omp_context, scan_sharing_clauses)
18915 (create_omp_child_function, scan_omp_for, scan_omp_target)
18916 (check_omp_nesting_restrictions, lower_reduction_clauses)
18917 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
18918 Update for OpenACC changes.
18919 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
18920 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
18921 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
18922 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
18923 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
18924 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
18926 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
18927 Handle GF_OMP_FOR_KIND_OACC_LOOP.
18928 (expand_omp_target, lower_omp_target): Handle
18929 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
18930 GF_OMP_TARGET_KIND_OACC_UPDATE,
18931 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
18932 GF_OMP_TARGET_KIND_OACC_DATA.
18933 (pass_expand_omp::execute, execute_lower_omp)
18934 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
18936 (offload_symbol_decl): New variable.
18937 (oacc_get_reduction_array_id, oacc_max_threads)
18938 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
18939 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
18940 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
18941 (oacc_gimple_assign, oacc_initialize_reduction_data)
18942 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
18944 (is_targetreg_ctx): Remove function.
18945 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
18946 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
18947 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
18948 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
18949 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
18950 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
18951 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
18952 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
18953 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
18954 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
18955 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
18956 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
18957 * tree-core.h: Update comments for OpenACC changes.
18958 (enum omp_clause_map_kind): Remove.
18959 (struct tree_omp_clause): Change type of map_kind member from enum
18960 omp_clause_map_kind to unsigned char.
18961 * tree-inline.c: Update comments for OpenACC changes.
18962 * tree-nested.c: Likewise. Include "gomp-constants.h".
18963 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
18964 (convert_tramp_reference_stmt, convert_gimple_call): Update for
18965 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
18966 OMP_CLAUSE_SET_MAP_KIND.
18967 * tree-pretty-print.c: Include "gomp-constants.h".
18968 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
18969 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
18970 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
18971 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
18972 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
18973 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
18974 instead of OMP_CLAUSE_MAP_*.
18975 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
18976 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
18977 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
18978 * tree-streamer-in.c: Include "gomp-constants.h".
18979 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
18980 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
18981 * tree-streamer-out.c: Include "gomp-constants.h".
18982 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
18984 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
18985 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
18986 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
18987 * tree.c (omp_clause_num_ops): Update accordingly.
18988 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
18990 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
18991 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
18992 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
18993 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
18994 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
18995 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
18996 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
18997 (OMP_CLAUSE_SET_MAP_KIND): New macro.
18998 * varpool.c (varpool_node::get_create): Consider flag_openacc next
19000 * config/i386/intelmic-offload.h: New file.
19001 * config/nvptx/offload.h: Likewise.
19003 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19005 * explow.h: Remove duplicate contents.
19006 * dojump.h: Likewise.
19008 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
19010 * arm.c (arm_xgene_tune): Add default initializer for instruction
19013 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
19017 * ipa.c (symbol_table::remove_unreachable_nodes):
19018 Do not put abstract origins into boundary.
19020 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
19022 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
19023 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
19025 2015-01-15 Steve Ellcey <sellcey@mips.com>
19027 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
19028 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
19029 builtins.def, and chkp-builtins.def.
19031 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
19033 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
19036 2015-01-15 Richard Biener <rguenther@suse.de>
19038 PR tree-optimization/61743
19039 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
19040 information on PHIs for some simple cases.
19042 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19044 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
19046 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
19047 * config/arm/arm-cores.def (xgene1): New entry.
19048 * config/arm/arm-tables.opt: Regenerate.
19049 * config/arm/arm-tune.md: Regenerate.
19050 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
19052 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
19054 * tree-if-conv.c: Include hash-map.h.
19055 (aggressive_if_conv): New variable.
19056 (fold_build_cond_expr): Add simplification of non-zero condition.
19057 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
19058 destination block is not always executed.
19059 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
19060 than two predecessors if AGGRESSIVE_IF_CONV is true.
19061 (if_convertible_stmt_p): Fix commentary.
19062 (all_preds_critical_p): New function.
19063 (has_pred_critical_p): New function.
19064 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
19065 BB can have more than two predecessors and all incoming edges can be
19067 (predicate_bbs): Skip predication for loop exit block, use build2_loc
19068 to compute predicate for true edge.
19069 (find_phi_replacement_condition): Delete this function.
19070 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
19071 Allow interchange PHI arguments if EXTENDED is false.
19072 Change check that block containing reduction statement candidate
19073 is predecessor of phi-block since phi may have more than two arguments.
19074 (phi_args_hash_traits): New helper structure.
19075 (struct phi_args_hash_traits): New type.
19076 (phi_args_hash_traits::hash): New function.
19077 (phi_args_hash_traits::equal_keys): New function.
19078 (gen_phi_arg_condition): New function.
19079 (predicate_scalar_phi): Add handling of phi nodes with more than two
19080 arguments, delete COND and TRUE_BB arguments, insert body of
19081 find_phi_replacement_condition to predicate ordinary phi nodes.
19082 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
19083 delete call of find_phi_replacement_condition and invoke
19084 predicate_scalar_phi with two arguments.
19085 (insert_gimplified_predicates): Add assert that non-predicated block
19086 don't have statements to insert.
19087 (ifcvt_split_critical_edges): New function.
19088 (ifcvt_split_def_stmt): Likewise.
19089 (ifcvt_walk_pattern_tree): Likewise.
19090 (stmt_is_root_of_bool_pattern): Likewise.
19091 (ifcvt_repair_bool_pattern): Likewise.
19092 (ifcvt_local_dce): Likewise.
19093 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
19094 is copy of inner or outer loop force_vectorize field, invoke
19095 ifcvt_split_critical_edges, ifcvt_local_dce and
19096 ifcvt_repair_bool_pattern for aggressive if-conversion.
19098 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
19100 * config/aarch64/aarch64.md: Include xgene1.md.
19101 * config/aarch64/xgene1.md: New file.
19103 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19105 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
19106 xgene1 (APM XGene-1) core definition.
19107 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
19108 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
19109 * doc/invoke.texi: Document -mcpu=xgene1.
19111 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19113 * dojump.h: New header file.
19114 * explow.h: Likewise.
19115 * expr.h: Remove includes.
19116 Move expmed.c prototypes to expmed.h.
19117 Move dojump.c prototypes to dojump.h.
19118 Move alias.c prototypes to alias.h.
19119 Move explow.c prototypes to explow.h.
19120 Move calls.c prototypes to calls.h.
19121 Move emit-rtl.c prototypes to emit-rtl.h.
19122 Move varasm.c prototypes to varasm.h.
19123 Move stmt.c prototypes to stmt.h.
19124 (saved_pending_stack_adjust): Move to dojump.h.
19125 (adjust_address): Move to explow.h.
19126 (adjust_address_nv): Move to emit-rtl.h.
19127 (adjust_bitfield_address): Likewise.
19128 (adjust_bitfield_address_size): Likewise.
19129 (adjust_bitfield_address_nv): Likewise.
19130 (adjust_automodify_address_nv): Likewise.
19131 * explow.c (expr_size): Move to expr.c.
19132 (int_expr_size): Likewise.
19133 (tree_expr_size): Likewise.
19134 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19135 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
19136 * genemit.c (main): Generate includes statistics.h, real.h,
19137 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
19139 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
19140 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
19141 explow.h, emit-rtl.h, stmt.h.
19142 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
19143 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
19144 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
19145 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
19146 emit-rtl.h, varasm.h, stmt.h.
19147 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
19148 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
19149 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
19150 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
19151 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
19152 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
19153 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
19154 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
19155 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
19156 tm.h tree.h varasm.h vec.h wide-int.h.
19157 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19158 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
19159 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
19160 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
19161 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
19162 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
19163 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
19164 * loop-iv.c: Likewise.
19165 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
19166 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
19167 statistics.h stmt.h tree.h varasm.h wide-int.h.
19168 * lra-constraints.c: Likewise.
19169 * lra-eliminations.c: Likewise.
19170 * lra-lives.c: Likewise.
19171 * lra-remat.c: Likewise.
19172 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19173 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
19174 statistics.h stmt.h tree.h varasm.h wide-int.h.
19175 * hw-doloop.c: Likewise.
19176 * ira-color.c: Likewise.
19177 * ira-emit.c: Likewise.
19178 * loop-doloop.c: Likewise.
19179 * loop-invariant.c: Likewise.
19180 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19181 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
19182 statistics.h stmt.h tree.h varasm.h wide-int.h.
19183 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
19184 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
19185 statistics.h stmt.h tree.h varasm.h wide-int.h.
19186 * combine-stack-adj.c: Likewise.
19189 * ifcvt.c: Likewise.
19190 * ira-costs.c: Likewise.
19191 * jump.c: Likewise.
19192 * lra-coalesce.c: Likewise.
19193 * lra-spills.c: Likewise.
19194 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19195 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
19196 stmt.h varasm.h wide-int.h.
19197 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
19198 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
19200 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
19201 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
19202 statistics.h stmt.h varasm.h wide-int.h.
19203 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
19204 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
19205 varasm.h wide-int.h.
19206 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
19207 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19208 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
19209 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
19210 statistics.h stmt.h.
19211 * config/tilepro/tilepro.c: Likewise.
19212 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
19213 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
19214 * config/pdp11/pdp11.c: Likewise.
19215 * config/xtensa/xtensa.c: Likewise.
19216 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
19217 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
19219 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19220 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
19221 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
19222 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19223 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
19224 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
19225 * rtl-chkp.c: Likewise.
19226 * tree-chkp-opt.c: Likewise.
19227 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
19228 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
19229 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
19230 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19231 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19232 statistics.h stmt.h.
19233 * tree-vect-data-refs.c: Likewise.
19234 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
19235 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19236 rtl.h statistics.h stmt.h varasm.h.
19237 * internal-fn.c: Likewise.
19238 * ipa-icf-gimple.c: Likewise.
19239 * lto-section-out.c: Likewise.
19240 * tree-data-ref.c: Likewise.
19241 * tree-nested.c: Likewise.
19242 * tree-outof-ssa.c: Likewise.
19243 * tree-predcom.c: Likewise.
19244 * tree-pretty-print.c: Likewise.
19245 * tree-scalar-evolution.c: Likewise.
19246 * tree-ssa-strlen.c: Likewise.
19247 * tree-vect-loop.c: Likewise.
19248 * tree-vect-patterns.c: Likewise.
19249 * tree-vect-slp.c: Likewise.
19250 * tree-vect-stmts.c: Likewise.
19251 * tsan.c: Likewise.
19252 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19253 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
19255 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
19256 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19257 statistics.h stmt.h varasm.h.
19258 * loop-unroll.c: Likewise.
19259 * ubsan.c: Likewise.
19260 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
19261 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
19263 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19264 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
19265 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
19266 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19267 statistics.h stmt.h.
19268 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
19269 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
19270 statistics.h stmt.h varasm.h.
19271 * gimple-match-head.c: Likewise.
19272 * lto-cgraph.c: Likewise.
19273 * lto-section-in.c: Likewise.
19274 * lto-streamer-in.c: Likewise.
19275 * lto-streamer-out.c: Likewise.
19276 * tree-affine.c: Likewise.
19277 * tree-cfg.c: Likewise.
19278 * tree-cfgcleanup.c: Likewise.
19279 * tree-if-conv.c: Likewise.
19280 * tree-into-ssa.c: Likewise.
19281 * tree-ssa-alias.c: Likewise.
19282 * tree-ssa-copyrename.c: Likewise.
19283 * tree-ssa-dse.c: Likewise.
19284 * tree-ssa-forwprop.c: Likewise.
19285 * tree-ssa-live.c: Likewise.
19286 * tree-ssa-math-opts.c: Likewise.
19287 * tree-ssa-pre.c: Likewise.
19288 * tree-ssa-sccvn.c: Likewise.
19289 * tree-tailcall.c: Likewise.
19290 * tree-vect-generic.c: Likewise.
19291 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19292 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
19293 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19294 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
19295 * varasm.c: Likewise.
19296 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19297 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
19299 * init-regs.c: Likewise.
19301 * omp-low.c: Likewise.
19302 * stack-ptr-mod.c: Likewise.
19303 * tree-ssa-reassoc.c: Likewise.
19304 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19305 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
19307 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19308 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
19309 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19310 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
19311 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19312 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
19313 * tree-ssa-phiopt.c: Likewise.
19314 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19315 fixed-value.h hashtab.h real.h statistics.h stmt.h.
19316 * config/fr30/fr30.c: Likewise.
19317 * config/frv/frv.c: Likewise.
19318 * expr.c: Likewise.
19319 * final.c: Likewise.
19320 * optabs.c: Likewise.
19321 * passes.c: Likewise.
19322 * simplify-rtx.c: Likewise.
19323 * stmt.c: Likewise.
19324 * toplev.c: Likewise.
19325 * var-tracking.c: Likewise.
19326 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19327 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19328 * lower-subreg.c: Likewise.
19329 * postreload-gcse.c: Likewise.
19331 * reginfo.c: Likewise.
19332 * store-motion.c: Likewise.
19333 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19334 fixed-value.h hashtab.h real.h stmt.h varasm.h.
19335 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19336 fixed-value.h hashtab.h statistics.h stmt.h.
19337 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19338 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
19339 * except.c: Likewise.
19340 * explow.c: Likewise.
19341 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19342 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
19344 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19345 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
19346 * tree-ssa-structalias.c: Likewise.
19347 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19348 fixed-value.h insn-config.h real.h statistics.h.
19349 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19350 fixed-value.h insn-config.h real.h statistics.h stmt.h.
19351 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19352 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19353 * cfgbuild.c: Likewise.
19354 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19355 fixed-value.h real.h rtl.h statistics.h stmt.h.
19356 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19357 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19358 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19359 fixed-value.h real.h statistics.h stmt.h.
19360 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
19361 fixed-value.h real.h statistics.h stmt.h varasm.h.
19362 * cprop.c: Likewise.
19363 * modulo-sched.c: Likewise.
19364 * postreload.c: Likewise.
19365 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19366 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
19367 statistics.h stmt.h varasm.h.
19368 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
19369 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19370 rtl.h statistics.h stmt.h varasm.h.
19371 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
19372 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
19374 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
19375 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
19377 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
19378 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
19380 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
19381 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19382 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19383 function.h real.h statistics.h stmt.h varasm.h.
19384 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19385 insn-config.h real.h statistics.h stmt.h.
19386 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
19387 statistics.h stmt.h.
19388 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
19389 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
19390 statistics.h stmt.h varasm.h.
19391 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
19392 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
19393 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19394 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
19395 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
19396 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
19397 statistics.h stmt.h varasm.h.
19398 * ipa-polymorphic-call.c: Likewise.
19399 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
19400 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19401 statistics.h stmt.h.
19402 * config/c6x/c6x.c: Likewise.
19403 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
19404 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
19405 statistics.h stmt.h varasm.h.
19406 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
19407 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
19409 * ipa-split.c: Likewise.
19410 * tree-eh.c: Likewise.
19411 * tree-ssa-dce.c: Likewise.
19412 * tree-ssa-loop-niter.c: Likewise.
19413 * tree-vrp.c: Likewise.
19414 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
19415 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
19417 * config/nds32/nds32-fp-as-gp.c: Likewise.
19418 * config/nds32/nds32-intrinsic.c: Likewise.
19419 * config/nds32/nds32-isr.c: Likewise.
19420 * config/nds32/nds32-md-auxiliary.c: Likewise.
19421 * config/nds32/nds32-memory-manipulation.c: Likewise.
19422 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19423 * config/nds32/nds32-predicates.c: Likewise.
19424 * config/nds32/nds32.c: Likewise.
19425 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
19426 fixed-value.h hashtab.h real.h statistics.h.
19427 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
19428 fixed-value.h hashtab.h real.h statistics.h stmt.h.
19429 * config/arm/arm.c: Likewise.
19430 * config/avr/avr.c: Likewise.
19431 * config/bfin/bfin.c: Likewise.
19432 * config/h8300/h8300.c: Likewise.
19433 * config/i386/i386.c: Likewise.
19434 * config/ia64/ia64.c: Likewise.
19435 * config/iq2000/iq2000.c: Likewise.
19436 * config/m32c/m32c.c: Likewise.
19437 * config/m32r/m32r.c: Likewise.
19438 * config/m68k/m68k.c: Likewise.
19439 * config/mcore/mcore.c: Likewise.
19440 * config/mep/mep.c: Likewise.
19441 * config/mips/mips.c: Likewise.
19442 * config/mn10300/mn10300.c: Likewise.
19443 * config/moxie/moxie.c: Likewise.
19444 * config/pa/pa.c: Likewise.
19445 * config/rl78/rl78.c: Likewise.
19446 * config/rx/rx.c: Likewise.
19447 * config/s390/s390.c: Likewise.
19448 * config/sh/sh.c: Likewise.
19449 * config/sparc/sparc.c: Likewise.
19450 * config/spu/spu.c: Likewise.
19451 * config/stormy16/stormy16.c: Likewise.
19452 * config/v850/v850.c: Likewise.
19453 * config/vax/vax.c: Likewise.
19454 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
19455 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
19456 * config/msp430/msp430.c: Likewise.
19457 * predict.c: Likewise.
19458 * value-prof.c: Likewise.
19459 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
19460 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
19461 * config/microblaze/microblaze.c: Likewise.
19462 * config/nios2/nios2.c: Likewise.
19463 * config/rs6000/rs6000.c: Likewise.
19464 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19465 insn-config.h real.h rtl.h statistics.h stmt.h.
19466 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
19467 insn-config.h real.h statistics.h stmt.h.
19468 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
19469 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
19470 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
19471 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
19472 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
19473 fixed-value.h real.h statistics.h stmt.h.
19474 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
19475 fixed-value.h statistics.h stmt.h.
19476 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
19479 2015-01-15 Jakub Jelinek <jakub@redhat.com>
19481 * gengtype.c (create_user_defined_type): Workaround
19482 -Wmaybe-uninitialized false positives.
19483 * cse.c (fold_rtx): Likewise.
19484 * loop-invariant.c (gain_for_invariant): Likewise.
19486 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
19488 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
19489 set the memory attributes in all cases but clear MEM_EXPR if need be.
19491 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
19493 PR tree-optimization/64434
19494 * cfgexpand.c (reorder_operands): New function.
19495 (expand_gimple_basic_block): Insert call of reorder_operands if
19498 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
19500 * config/mips/micromips.md (*swp): Remove explicit parallel.
19501 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
19502 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
19503 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
19504 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
19505 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
19506 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
19507 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
19508 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
19509 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
19510 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
19511 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
19512 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
19513 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
19514 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
19515 (mips_wrdsp): Likewise.
19516 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
19518 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
19519 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
19520 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
19521 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
19522 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
19523 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
19524 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
19525 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
19526 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
19528 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
19530 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
19531 (mips_print_operand): Support 'y' to print exact log2 in decimal
19533 * config/mips/mips.h (ISA_HAS_LSA): New define.
19534 (ISA_HAS_DLSA): Likewise.
19535 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
19536 * config/mips/predicates.md (const_immlsa_operand): New predicate.
19538 2015-01-15 Martin Liska <mliska@suse.cz>
19541 * optc-save-gen.awk: Add support for array types.
19543 2015-01-15 Richard Biener <rguenther@suse.de>
19545 PR middle-end/64365
19546 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
19547 for MEM_REF access functions with the same base can never partially
19550 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
19552 * common.opt: New option -fstack-protector-explicit.
19553 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
19554 (stack_protect_decl_phase): Handle stack_protect attribute for
19555 explicit stack protection requests.
19556 (expand_used_vars): Similarly.
19557 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
19558 * doc/extend.texi: Add documentation for "stack_protect" attribute.
19559 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
19561 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
19564 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
19566 (sh_extending_set_of_reg): New struct.
19567 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
19568 sh_remove_reg_dead_or_unused_notes): New Declarations.
19569 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
19570 sh_find_extending_set_of_reg, sh_split_tst_subregs,
19571 sh_extending_set_of_reg::use_as_extended_reg): New functions.
19572 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
19573 convert to insn_and_split and use new function sh_split_tst_subregs.
19575 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
19577 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
19579 (Optimization Options): Move -fuse-ld documentation to...
19580 (Link Options): ...here.
19582 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
19584 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
19586 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
19587 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
19588 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
19589 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
19590 instead of ZR for the memory operand of LL/SC.
19591 (compare_and_swap_12, sync_add<mode>): Likewise.
19592 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
19593 (sync_new_<optab>_12, sync_nand_12): Likewise.
19594 (sync_old_nand_12, sync_new_nand_12): Likewise.
19595 (sync_sub<mode>, sync_old_add<mode>): Likewise.
19596 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
19597 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
19598 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
19599 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
19600 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
19601 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
19602 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
19603 * doc/md.texi (ZC): Update description.
19605 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
19607 * builtins.c (expand_builtin_atomic_exchange): Remove error when
19608 memory model is CONSUME.
19609 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
19610 expand_builtin_atomic_store): Change invalid memory model errors to
19612 (expand_builtin_atomic_clear): Change invalid model errors to warnings
19613 and issue warning for CONSUME.
19615 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
19617 * lto-cgraph: Update function comments for
19618 lto_symtab_encoder_encode_*.
19620 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
19622 * Makefile.in (site.exp): Do not set ENABLE_LTO.
19624 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
19626 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
19627 * lto-cgraph.c (select_what_to_stream): Remove argument, use
19628 lto_stream_offload_p instead.
19629 * lto-streamer.h (select_what_to_stream): Remove argument.
19630 * passes.c (ipa_write_summaries): Likewise.
19631 * tree-pass.h (ipa_write_summaries): Likewise.
19633 2015-01-14 Richard Biener <rguenther@suse.de>
19635 PR tree-optimization/59354
19636 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
19637 groups larger than the slp group size as having gaps.
19639 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
19641 PR middle-end/59448
19642 * builtins.c (get_memmodel): Promote consume to acquire always.
19644 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
19647 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
19650 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
19653 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
19655 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
19656 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
19657 AVX512VBMI, as it implies AVX512BW.
19659 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
19662 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
19663 (vec_unpacks_hi_v16sf): Ditto.
19665 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19667 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
19670 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19672 * doc/invoke.texi (mapcs): Mention deprecation.
19673 (mapcs-frame): Likewise.
19675 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
19678 * config/arm/arm.c (callee_saved_reg_p): Define.
19679 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
19680 register is callee saved instead of !call_used_regs[reg].
19681 (thumb1_compute_save_reg_mask): Likewise.
19683 2015-01-14 Hale Wang <hale.wang@arm.com>
19685 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
19688 2015-01-14 Richard Biener <rguenther@suse.de>
19691 * tree-inline.c (insert_debug_decl_map): Check destination
19692 function MAY_HAVE_DEBUG_STMTS.
19693 (insert_init_debug_bind): Likewise.
19694 (insert_init_stmt): Remove redundant check.
19695 (remap_gimple_stmt): Drop debug stmts if the destination
19696 function has var-tracking assignments disabled.
19698 2015-01-14 Martin Liska <mliska@suse.cz>
19700 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
19701 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
19703 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19706 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
19707 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
19709 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
19711 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
19712 level from an ARCH; do not inject the default.
19713 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
19714 MIPS_ISA_LEVEL_SPEC.
19715 (MIPS_ISA_NAN2008_SPEC): Update comment.
19716 (BASE_DRIVER_SELF_SPECS): Likewise.
19717 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
19718 MIPS_DEFAULT_ISA_LEVEL_SPEC.
19719 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
19720 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
19721 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
19723 2015-01-14 Richard Biener <rguenther@suse.de>
19725 PR tree-optimization/64493
19726 PR tree-optimization/64495
19727 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
19728 assign the proper vectorized PHI to the inner loop exit PHIs.
19730 2015-01-14 Joey Ye <joey.ye@arm.com>
19732 * config/arm/arm.c (arm_compute_save_reg_mask):
19733 Do not save lr in case of tail call.
19734 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
19736 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
19738 * tree-vrp.c (check_array_ref): Emit more warnings
19739 for warn_array_bounds >= 2.
19740 * common.opt: New option -Warray-bounds=.
19741 * doc/invoke.texi: Document -Warray-bounds=.
19743 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
19745 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
19746 (mforbid-fp-as-gp): Remove.
19748 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
19749 (nds32_symbol_load_store_p): Remove.
19750 (nds32_fp_as_gp_check_available): Clean up implementation.
19751 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
19753 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
19754 fp-as-gp and ex9 cases.
19756 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
19758 * tree-profile.c (init_ic_make_global_vars): Drop workaround
19759 for bintuils bug 14342.
19760 (init_ic_make_global_vars): Likewise.
19761 (gimple_init_edge_profiler): Likewise.
19762 (gimple_gen_ic_func_profiler): Likewise.
19764 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19766 * ipa-inline.c (inline_small_functions): Swap the operands in
19769 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
19772 * ipa-inline-analysis.c (node_growth_cache): Remove.
19773 (initialize_growth_caches): Do not initialize it.
19774 (free_growth_caches): Do not free it.
19775 (do_estimate_growth): Rename to ...
19776 (estimate_growth): ... this one; drop growth cache code.
19777 (growth_likely_positive): Always go the heuristics way.
19778 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
19779 (reset_edge_caches): Do not reset node growth.
19780 (heap_edge_removal_hook): Do not maintain cache.
19781 (inline_small_functions): Likewise; strenghten sanity check.
19782 (ipa_inline): Do not maintain caches.
19783 * ipa-inline.h (node_growth_cache): Remove.
19784 (do_estimate_growth): Remove to ...
19785 (estimate_growth): this one; remove inline version.
19786 (reset_node_growth_cache): Remove.
19788 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
19791 * ipa-inline.c (inline_small_functions): Update callee keys after
19792 resolving speculation
19793 (inline_small_functions): Always check monotonicity of the queue.
19795 2015-01-13 Marek Polacek <polacek@redhat.com>
19797 PR middle-end/64391
19798 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
19800 2015-01-13 Jakub Jelinek <jakub@redhat.com>
19802 PR rtl-optimization/64286
19803 * ree.c (combine_reaching_defs): Move part of comment earlier,
19804 remove !SCALAR_INT_MODE_P check.
19805 (add_removable_extension): Don't add vector mode
19806 extensions if all uses of the source register aren't the same
19809 2015-01-13 Renlin Li <renlin.li@arm.com>
19811 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
19812 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
19814 2015-01-13 Martin Liska <mliska@suse.cz>
19816 * ipa-icf.c (sem_function::equals_private): Call new functions
19817 cl_target_option_print_diff and cl_optimization_print_diff.
19818 * optc-save-gen.awk (cl_target_option_print_diff): New function.
19819 (cl_optimization_print_diff): Likewise.
19820 * opth-gen.awk: Likewise.
19822 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
19824 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
19825 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
19826 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
19827 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
19828 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
19829 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
19831 2015-01-13 Andrew Pinski <apinski@cavium.com>
19833 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
19834 instead of src mode.
19836 2015-01-13 Richard Biener <rguenther@suse.de>
19839 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
19842 2015-01-13 Andrew Pinski <apinski@cavium.com>
19844 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
19846 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
19848 2015-01-13 Jakub Jelinek <jakub@redhat.com>
19850 PR middle-end/63974
19851 * cfgexpand.c (expand_computed_goto): Don't call
19852 convert_memory_address here.
19854 2015-01-13 Richard Biener <rguenther@suse.de>
19856 PR tree-optimization/64406
19857 * tree-loop-distibution.c (pass_loop_distribution::execute):
19858 Reset the SCEV hashtable if we distributed anything.
19860 2015-01-13 Richard Biener <rguenther@suse.de>
19862 PR tree-optimization/64404
19863 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
19864 SLP types for CSEd loads.
19866 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
19868 PR tree-optimization/64436
19869 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
19870 merge of two symbolic numbers for a bitwise OR to ...
19871 (perform_symbolic_merge): This. Also fix computation of the range and
19872 end of the symbolic number corresponding to the result of a bitwise OR.
19874 2015-01-13 Richard Biener <rguenther@suse.de>
19876 PR tree-optimization/64568
19877 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
19878 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
19880 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19882 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
19883 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
19885 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19887 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
19888 target-specific symbol_ref flag.
19889 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
19890 resides in rodata section.
19891 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
19892 (nds32_encode_section_info): New function.
19894 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19896 * config/nds32/nds32.md (call): Use pseudo instruction bal which
19897 clobbers TA_REGNUM if large code model is specified.
19898 (call_register): Likewise.
19899 (call_immediate): Likewise.
19900 (call_value): Likewise.
19901 (call_value_register): Likewise.
19902 (call_value_immediate): Likewise.
19904 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19906 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
19907 (TARGET_CMODEL_MEDIUM): New macro.
19908 (TARGET_CMODEL_LARGE): New macro.
19909 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
19910 code model setting in assembly code.
19912 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19914 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
19915 Remove MASK_GP_DIRECT flag.
19916 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
19917 one of the multilib default options.
19918 * config/nds32/nds32.opt (mgp-direct): Remove.
19919 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
19920 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
19922 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
19924 * config/nds32/nds32.opt (mcmodel): Add new option.
19925 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
19926 to describe code model.
19928 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
19931 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
19933 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
19935 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
19936 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19937 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
19938 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
19939 __builtin_sh_set_fpscr.
19941 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
19943 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
19944 after a funtion name just to indicate it is a function.
19945 ([-fsanitize-undefined-trap-on-error]): Likewise.
19946 ([-fdbg-cnt=]): Likewise.
19947 ([-mmemcpy]): Likewise.
19948 ([-mflush-func]): Likewise.
19949 ([-msynci]): Likewise.
19951 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
19953 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
19956 2015-01-12 Jakub Jelinek <jakub@redhat.com>
19958 PR tree-optimization/64563
19959 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
19960 instead of != VR_VARYING.
19963 * config/i386/i386.c (ix86_expand_prologue): Add
19964 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
19966 PR tree-optimization/64454
19967 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
19968 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
19969 for signed or [0, op1 - 1] for unsigned modulo.
19970 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
19971 even if op1 does not satisfy integer_pow2p.
19974 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
19976 2015-01-12 Jeff Law <law@redhat.com>
19979 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
19980 (trunchiqi2, truncsihi2): Similarly.
19982 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
19983 rather than calling F.
19985 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
19987 * tsan.c (instrument_expr): Use force_gimple_operand.
19988 Use may_be_nonaddressable_p instead of is_gimple_addressable.
19990 2015-01-12 Richard Biener <rguenther@suse.de>
19992 PR tree-optimization/64530
19993 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
19996 2015-01-12 Richard Biener <rguenther@suse.de>
19998 PR middle-end/64357
19999 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
20002 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20004 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
20005 Cortex-A17 tuning parameters.
20006 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
20008 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20010 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
20011 * config/arm/arm.c (arm_macro_fusion_p): New function.
20012 (arm_macro_fusion_pair_p): Likewise.
20013 (TARGET_SCHED_MACRO_FUSION_P): Define.
20014 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
20015 (ARM_FUSE_NOTHING): Likewise.
20016 (ARM_FUSE_MOVW_MOVT): Likewise.
20017 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
20018 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
20019 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
20020 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
20021 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
20022 arm_cortex_a5_tune): Specify fuseable_ops value.
20024 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
20027 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
20028 test for PIE with copy reloc.
20029 * configure: Regenerated.
20031 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20033 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
20035 (arm_tls_descseq_addr): Likewise.
20036 (arm_gen_movmemqi): Likewise.
20037 (arm_expand_epilogue_apcs_frame): Likewise.
20038 (arm_expand_epilogue): Likewise.
20039 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
20042 2015-01-12 Martin Liska <mliska@suse.cz>
20045 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
20046 volatility for correct operands.
20048 2015-01-12 Martin Liska <mliska@suse.cz>
20050 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
20051 indication that a function is not leaf.
20052 (sem_function::compare_polymorphic_p): Likewise.
20054 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20056 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
20057 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
20058 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
20059 fold-const.h, tree-check.h.
20061 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
20065 * ipa-inline.c (compute_uninlined_call_time,
20066 compute_inlined_call_time): Use counts for extra precision when
20068 (big_speedup_p): Fix formating.
20069 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
20070 (relative_time_benefit): Remove.
20071 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
20072 merge guessed and read profile paths.
20073 (inline_small_functions): Count only !optimize_size functions into
20074 initial size; be more lax about sanity check when profile is used;
20075 be sure to update inlined function profile when profile is read.
20077 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
20080 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
20081 cost when edge becomes direct.
20082 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
20083 is resolved or when introducing new speculation.
20085 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
20089 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
20090 '||' to fix typo issue.
20092 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
20093 accept and return NULL.
20095 2015-01-12 Martin Liska <mliska@suse.cz>
20097 * cgraph.c (cgraph_edge::remove_callee): Move function to header
20098 file for being inlined.
20099 (cgraph_set_edge_callee): Delete.
20100 (cgraph_edge::redirect_callee): Move function to header file
20102 (cgraph_edge::make_direct): Use new function.
20103 (cgraph_edge::dump_edge_flags): New function created from
20104 static dump_edge_flags function.
20105 (cgraph_node::dump): Use new function.
20106 (cgraph_edge::verify_count_and_frequency): New function created
20107 from verify_edge_count_and_frequency.
20108 (cgraph_edge::verify_corresponds_to_fndecl): New function created
20109 from verify_edge_corresponds_to_fndecl.
20110 (verify_edge_corresponds_to_fndecl): Delete.
20111 (cgraph_node::verify_node): Use new function.
20112 * cgraph.h (cgraph_edge::set_callee): New function.
20113 (cgraph_edge::dump_edge_flags): Likewise.
20114 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
20116 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
20118 * ipa-utils.c (estimate_function_body_sizes): Do not
20119 free node params when called late with early=true.
20121 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
20123 * doc/md.texi (Instruction Patterns): Rewrite text for
20125 (Example): Likewise.
20127 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
20129 * doc/invoke.texi (Option Summary): Break long lines.
20130 [(-fdiagnostics-color)]: Put long literal in @smallexample
20132 [(-fsanitize-recover)]: Likewise.
20133 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
20134 [(-ffast-math)]: Likewise.
20135 [(--param max-inline-insns-recursive)]: Likewise.
20136 [(--param max-inline-recursive-depth)]: Likewise.
20137 [(-mno-text-section-literals)]: Likewise.
20139 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
20141 * doc/install.texi: Update for libgomp being renamed from "GNU
20142 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
20144 * doc/sourcebuild.texi: Likewise.
20146 2015-01-10 Anthony Green <green@moxielogic.com>
20148 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
20149 mul.x availability for moxiebox configuration.
20151 2015-01-09 Anthony Green <green@moxielogic.com>
20153 * config/moxie/moxie.md: Tabify assembly output.
20155 2015-01-09 Anthony Green <green@moxielogic.com>
20157 * config/moxie/moxie.md (CC_REG): Correct register definition.
20159 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
20161 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
20162 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
20165 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
20167 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
20169 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
20170 Jakub Jelinek <jakub@redhat.com>
20172 PR middle-end/64412
20173 * lto-streamer.h (lto_stream_offload_p): New declaration.
20174 * lto-streamer.c (lto_stream_offload_p): New variable.
20175 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
20176 at the same time as section_name_prefix.
20177 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
20178 if lto_stream_offload_p.
20179 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
20180 stream TREE_TARGET_OPTION if lto_stream_offload_p.
20181 (write_ts_function_decl_tree_pointers): Don't
20182 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
20183 * tree-streamer-in.c (unpack_value_fields): Don't stream
20184 TREE_TARGET_OPTION in if ACCEL_COMPILER.
20185 (lto_input_ts_function_decl_tree_pointers): Don't stream
20186 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
20187 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
20188 instead of section_name_prefix string comparisons.
20190 2015-01-09 Jakub Jelinek <jakub@redhat.com>
20192 PR rtl-optimization/64536
20193 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
20196 2015-01-09 Michael Collison <michael.collison@linaro.org>
20198 PR tree-optimization/64322
20199 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
20200 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
20202 2015-01-09 Tom de Vries <tom@codesourcery.com>
20204 PR rtl-optimization/64539
20205 * regcprop.c (kill_clobbered_values): Factor out of ...
20206 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
20207 instead of note_stores with kill_clobbered_value.
20209 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
20211 * ginclude/unwind-arm-common.h: Revert previous commit.
20213 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
20215 * config.gcc (arm*-*-freebsd*): New configuration.
20216 * config/arm/freebsd.h: New file.
20217 * config.host: Add extra components for arm*-*-freebsd*.
20218 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
20219 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
20221 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20223 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
20225 * config/rs6000/t-rtems: Add e6500 multilibs.
20227 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20229 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
20232 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20234 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
20235 MULTILIB_EXCEPTIONS.
20237 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20239 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
20240 MULTILIB_EXCEPTIONS.
20242 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
20244 * config/arm/t-rtems-eabi: Rename to...
20245 * config/arm/t-rtems: ...this.
20246 * config/arm/rtems-eabi.h: Rename to...
20247 * config/arm/rtems.h: ...this.
20248 * config.gcc (arm*-*-rtems*): Reflect changes above.
20250 2015-01-09 Richard Biener <rguenther@suse.de>
20252 PR tree-optimization/64410
20253 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
20255 (execute_update_addresses_taken): Deal with that.
20256 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
20257 loads/stores for complex variables.
20259 2015-01-09 Martin Liska <mliska@suse.cz>
20261 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
20263 (func_checker::compare_memory_operand): New function.
20264 (func_checker::compare_operand): Split case to newly
20266 (func_checker::compare_cst_or_decl): New function.
20267 (func_checker::compare_gimple_call): Identify
20269 (func_checker::compare_gimple_assign): Likewise.
20270 * ipa-icf-gimple.h: New function.
20272 2015-01-09 Martin Liska <mliska@suse.cz>
20275 * sreal.c (sreal::dump): Change unsigned format to signed for
20277 (sreal::to_double): Replace exp2 with scalbln.
20279 2015-01-09 Martin Liska <mliska@suse.cz>
20281 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
20282 * ipa-icf.c (sem_function::equals_private): Add support for target and
20283 (sem_item_optimizer::merge_classes): Remove redundant function
20284 optimization flags comparison.
20285 * tree.h (target_opts_for_fn): New function.
20287 2015-01-09 Tom de Vries <tom@codesourcery.com>
20289 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
20291 2015-01-09 Kito Cheng <kito@0xlab.org>
20293 PR rtl-optimization/64348
20294 * lra-constraints.c (split_reg): Fix caller-save store/restore
20295 instruction generation.
20297 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
20299 PR gcov-profile/61790
20300 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
20301 long long. Fallback to int64_t if host doesn't have long long and
20302 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
20304 2015-01-08 Jakub Jelinek <jakub@redhat.com>
20306 PR tree-optimization/63989
20307 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
20308 from 1000 to 10000.
20309 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
20310 (get_stridx): If we don't have a record for certain SSA_NAME,
20311 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
20312 constant offset, call get_stridx_plus_constant.
20313 (get_stridx_plus_constant): New function.
20314 (zero_length_string): Don't use get_stridx here.
20317 PR middle-end/64388
20318 * dse.c (struct insn_info): Mention frame_read set also
20319 before reload for tail calls on some targets.
20320 (scan_insn): Revert 2014-12-22 change. Set frame_read
20321 also before reload for tail calls if
20322 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
20323 instead of add_non_frame_wild_read for non-const/memset
20324 tail calls after reload.
20326 2015-01-08 Jason Merrill <jason@redhat.com>
20328 * ubsan.c (do_ubsan_in_current_function): New.
20329 (pass_ubsan::gate): Use it.
20330 * ubsan.h: Declare it.
20331 * convert.c (convert_to_integer): Use it.
20333 2015-01-08 Jakub Jelinek <jakub@redhat.com>
20336 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
20337 compare_code when it is unconditionally overwritten afterwards.
20338 Use ix86_reverse_condition instead of reverse_condition. Don't
20339 change code if *reverse_condition* returned UNKNOWN and don't
20340 swap ct/cf and negate diff in that case.
20342 2015-01-08 Mike Stump <mikestump@comcast.net>
20344 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
20345 (pass_tsan_O0::gate): Likewise.
20346 * extend.texi (Function Attributes): Add no_sanitize_thread
20349 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
20351 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
20352 for registering builtins.
20353 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
20354 add -fopenmp to the argv_obstack used when invoking
20355 compile_for_target.
20357 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
20358 add "-m32" or "-m64" to argv_obstack.
20359 (generate_host_descr_file): Likewise, when invoking host_compiler.
20360 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
20363 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
20365 * config/sh/sh-mem.cc: Use constant as second operand when emitting
20368 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
20371 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
20372 constant load if constant operand fits into I08.
20374 2015-01-08 Jakub Jelinek <jakub@redhat.com>
20377 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
20378 and TREE_THIS_VOLATILE for MEM_REFs.
20379 (build5_stat): Fix up initialization of TREE_READONLY and
20380 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
20382 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
20385 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
20386 of r for the second alternative of the destination operand.
20388 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
20391 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
20393 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
20395 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
20397 ([-fivar-visibility], [-fvisibility]): Likewise.
20399 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
20401 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
20402 the file where @code, @command, etc is more appropriate.
20404 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
20406 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
20407 of -mrecip= documentation.
20409 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20412 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
20413 correct reload handler if -m32 -mpowerpc64 is used.
20415 2015-01-06 Tom de Vries <tom@codesourcery.com>
20417 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
20419 2015-01-08 Christian Bruel <christian.bruel@st.com>
20422 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
20424 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
20426 PR tree-optimization/63259
20427 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
20428 if optab exists for 16bit byteswap.
20430 2015-01-06 Jakub Jelinek <jakub@redhat.com>
20432 * opts.c (common_handle_option): Add support for
20433 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
20434 * doc/invoke.texi: Document -fno-sanitize=all,
20435 -f{,no-}sanitize-recover=all. Document that
20436 -fsanitize=float-cast-overflow is not enabled
20437 by -fsanitize=undefined. Fix up documentation
20438 of -f{,no-}sanitize-recover.
20440 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
20442 * config.gcc: Add Visium support.
20443 * configure.ac: Likewise.
20444 * configure: Regenerate.
20445 * doc/extend.texi (interrupt attribute): Add Visium.
20446 * doc/invoke.texi: Document Visium options.
20447 * doc/install.texi: Document Visium target.
20448 * doc/md.texi: Document Visium constraints.
20449 * common/config/visium: New directory.
20450 * config/visium: Likewise.
20452 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
20454 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
20455 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
20457 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
20459 * combine.c (combine_validate_cost): Do not count the cost of a
20460 split I2 twice. Do not display it twice in the dump, either.
20462 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
20464 Revert parts of r219199.
20465 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
20467 ([-Wtraditional]): Restore markup on <limits.h>.
20469 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
20472 * doc/invoke.texi: Document -Wsuggest-override.
20474 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
20476 PR rtl-optimization/64287
20477 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
20478 (process_options): Disable flag_ipa_ra if profiling.
20480 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
20482 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
20484 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
20486 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
20487 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
20488 put under #if TARGET_LOOPS guard.
20490 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
20492 * config/i386/i386.c (output_387_binary_op): Use std::swap.
20494 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
20496 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
20497 * rtl.h (refers_to_regno_p): Add overload.
20499 * bt-load.c: Likewise.
20500 * combine.c: Likewise.
20501 * df-scan.c: Likewise.
20502 * sched-deps.c: Likewise.
20503 * config/s390/s390.c: Likewise.
20504 * config/m32r/m32r.c: Likewise.
20505 * config/rs6000/spe.md: Likewise.
20506 * config/rs6000/rs6000.c: Likewise.
20507 * config/pa/pa.c: Likewise.
20508 * config/stormy16/stormy16.c: Likewise.
20509 * config/cris/cris.c: Likewise.
20510 * config/arc/arc.md: Likewise.
20511 * config/arc/arc.c: Likewise.
20512 * config/sh/sh.md: Likewise.
20513 * config/sh/sh.c: Likewise.
20514 * config/frv/frv.c: Likewise.
20516 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20519 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
20520 call as cleanup of the whole body.
20521 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
20522 * tsan.c (replace_func_exit): New function.
20523 (instrument_func_exit): Moved earlier.
20524 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
20525 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
20527 (tsan_pass): Don't call instrument_func_exit.
20528 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
20529 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
20533 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
20534 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
20535 it to libubsan handler instead of EXPR. Fold comparisons earlier,
20536 if the result is integer_zerop, return NULL_TREE.
20537 * convert.c (convert_to_integer): Pass expr as ARG.
20539 PR tree-optimization/64465
20540 * tree-inline.c (redirect_all_calls): During inlining
20541 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
20542 changed the stmt to a non-throwing call.
20544 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
20546 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
20547 etc markup throughout the file.
20549 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
20551 Enable experimental TSAN support for Ada.
20552 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
20554 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20556 PR tree-optimization/64494
20557 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
20558 clear SSA_NAME_ANTI_RANGE_P flag.
20560 2015-01-05 Marek Polacek <polacek@redhat.com>
20562 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
20564 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20566 Update copyright years.
20568 * gcc.c (process_command): Update copyright notice dates.
20569 * gcov-dump.c: Ditto.
20571 * doc/cpp.texi: Bump @copying's copyright year.
20572 * doc/cppinternals.texi: Ditto.
20573 * doc/gcc.texi: Ditto.
20574 * doc/gccint.texi: Ditto.
20575 * doc/gcov.texi: Ditto.
20576 * doc/install.texi: Ditto.
20577 * doc/invoke.texi: Ditto.
20579 * auto-profile.c, auto-profile.h: Fix up Copyright line.
20581 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
20583 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
20585 ([-fvtable-verify], [-fvtv-debug]): Likewise.
20586 ([-Wabi]): Likewise.
20587 ([-fmessage-length]): Likewise.
20588 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
20589 ([-Wno-discarded-qualifiers]): Likewise.
20590 ([-Wnodiscarded-array-qualifiers]): Likewise.
20591 ([-Wno-virtual-move-assign]): Likewise.
20592 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
20593 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
20594 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
20595 ([-fsanitize-undefined-trap-on-error]): Likewise.
20596 ([-floop-interchange]): Likewise.
20597 ([-ftree-coalesce-inlined-vars]): Likewise.
20598 ([-fvect-cost-model]): Likewise.
20599 ([-flto]): Likewise.
20600 ([--param]): Likewise.
20601 (Spec Files): Likewise.
20602 ([-mstrict-align]): Likewise.
20603 ([-mfix-cortex-a53-835769]): Likewise.
20604 ([-march], [-mtune]): Likewise.
20605 ([-mpic-register]): Likewise.
20606 ([-munaligned-access]): Likewise.
20607 ([-msp8]): Likewise.
20608 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
20609 (AVR Built-in Macros): Likewise.
20610 ([-mpreferred-stack-boundary]): Likewise.
20611 ([-mtune-crtl]): Likewise.
20612 ([-mashf]): Likewise.
20613 ([-mmcu=]): Likewise.
20614 ([-minrt]): Likewise.
20615 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
20616 ([-mupper-regs]): Likewise.
20617 ([-matomic-model]): Likewise.
20618 ([-mdiv]): Likewise.
20619 ([-mzdcbranch]): Likewise.
20620 ([-mdisable-callt]): Likewise.
20621 ([-msoft-float]): Likewise.
20622 ([-m8byte-align]): Likewise.
20623 ([-fstack-reuse]): Likewise.
20625 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20627 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
20628 Fix markup, light copy-editing.
20629 ([-fauto-profile]): Rewrite to fix formatting and content
20632 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20634 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
20635 Copy-edit description.
20636 ([-fisolate-erroneous-paths-attribute]): Likewise.
20637 * common.opt (fisolate-erroneous-paths-dereference):
20638 Copy-edit description.
20639 (fisolate-erroneous-paths-attribute): Likewise.
20641 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20643 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
20646 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
20648 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
20649 ([-fvtv-debug]): Likewise.
20650 ([-Wc++-compat]): Likewise.
20651 ([-Wc++11-compat]): Likewise.
20652 ([-Wc++14-compat]): Likewise.
20653 ([-Wno-sized-deallocation]): Likewise.
20654 ([-femit-class-debug-always]): Likewise.
20655 ([-femit-struct-debug-detailed]): Likewise.
20656 ([-fno-keep-inline-dllexport]): Likewise.
20657 ([-fira-algorithm]): Likewise.
20658 ([-fira-region]): Likewise.
20659 ([-flra-remat]): Likewise.
20660 ([-fipa-ra]): Likewise.
20661 ([-fhoist-adjacent-loads]): Likewise.
20662 ([-fisolate-erroneous-paths-dereference]): Likewise.
20663 ([-fisolate-erroneous-paths-attribute]): Likewise.
20664 ([-ftree-switch-conversion]): Likewise.
20665 ([-ftree-tail-merge]): Likewise.
20666 ([-ftree-loop-if-convert]): Likewise.
20667 ([-ftree-loop-if-convert-stores]): Likewise.
20668 ([-ftree-loop-distribution]): Likewise.
20669 ([-ftree-loop-distribute-patterns]): Likewise.
20670 ([-flto-compression-level]): Likewise.
20671 ([-flto-report]): Likewise.
20672 ([-flto-report-wpa]): Likewise.
20673 ([-fuse-linker-plugin]): Likewise.
20674 ([-mfix-cortex-a53-835769]): Likewise.
20675 ([-mno-fix-cortex-a53-835769]): Likewise.
20676 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
20677 explicit listing; add a note to the discussion indicating they
20678 exist. Reorder table to group similar options. Add missing
20679 @opindex entries. Add @need commands throughout the table to
20680 allow it to be split across multiple pages.
20681 ([-m8bit-idiv]): Fix @opindex.
20682 ([-mavx256-split-unaligned-load]): Likewise.
20683 ([-mavx256-split-unaligned-store]): Likewise.
20684 ([-mstack-protector-guard]): Likewise.
20685 ([-mcpu=]): Likewise.
20686 ([-mcpu]): Likewise.
20687 ([-mpointer-size=]): Likewise.
20689 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
20691 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
20692 instead of `m' constraint. Likewise for unnamed movb comparison
20693 patterns using reg_before_reload_operand predicate.
20694 * config/pa/predicates.md (reg_before_reload_operand): Tighten
20695 predicate to reject register index and LO_SUM DLT memory forms
20698 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
20700 * doc/invoke.texi (Option Summary): Fix spelling of
20701 -fdevirtualize-at-ltrans.
20702 ([-fdevirtualize]): Fix markup.
20703 ([-fdevirtualize-speculatively]): Fix typo.
20704 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
20705 implementor-speaky.
20706 * common.opt (fdevirtualize-at-ltrans): Likewise.
20707 * ipa-devirt.c: Fix typos in comments throughout the file.
20708 (ipa_devirt): Fix typos in format strings for dump output.
20710 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
20712 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
20713 discussion of defaults, light copy-editing.
20715 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
20717 * tsan.c (instrument_expr): corrected previous checkin.
20719 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
20721 Instrument bit field and unaligned accesses for TSAN.
20722 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
20723 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
20724 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
20725 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
20726 unaligned memory regions.
20728 2015-01-01 Anthony Green <green@moxielogic.com>
20730 * config/moxie/predicates.md (moxie_general_movsrc_operand):
20731 Restrict move source register offsets to 16 bits.
20733 Copyright (C) 2015 Free Software Foundation, Inc.
20735 Copying and distribution of this file, with or without modification,
20736 are permitted in any medium without royalty provided the copyright
20737 notice and this notice are preserved.