1 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
4 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
5 (gen_mem_signal_fence): Delete.
6 * target-insns.def (mem_signal_fence, mem_thread_fence)
7 (memory_barrier): New targetm instruction patterns.
8 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
10 (expand_mem_signal_fence): Likewise.
12 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
15 * target-insns.def (epilogue, prologue, sibcall_prologue): New
16 targetm instruction patterns.
17 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19 * calls.c (expand_call): Likewise.
20 * cfgrtl.c (cfg_layout_finalize): Likewise.
21 * df-scan.c (df_get_entry_block_def_set): Likewise.
22 (df_get_exit_block_use_set): Likewise.
23 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24 * final.c (final_start_function): Likewise.
25 * function.c (thread_prologue_and_epilogue_insns): Likewise.
26 (reposition_prologue_and_epilogue_notes): Likewise.
27 * reorg.c (find_end_label): Likewise.
28 * toplev.c (process_options): Likewise.
30 2015-06-30 David Malcolm <dmalcolm@redhat.com>
32 * typed-splay-tree.h: New file.
34 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
37 * lra-int.h (lra_substitute_pseudo): Add a parameter.
38 (lra_substitute_pseudo_within_insn): Ditto.
39 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
41 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
42 to lra_substitute_pseudo.
43 * lra-lives.c (process_bb_lives): Add an argument to
44 lra_substitute_pseudo_within_insn call.
45 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
46 argument to lra_substitute_pseudo and
47 lra_substitute_pseudo_within_insn calls.
48 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
50 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
52 * configure: Regenerated.
54 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
56 * config.gcc: Support i[34567]86-*-elfiamcu target.
57 * config/i386/iamcu.h: New.
58 * config/i386/i386.opt: Add -miamcu.
59 * doc/invoke.texi: Document -miamcu.
60 * common/config/i386/i386-common.c (ix86_handle_option): Turn
61 off x87/MMX/SSE/AVX codegen for -miamcu.
62 * config/i386/i386-c.c (ix86_target_macros_internal): Define
63 __iamcu/__iamcu__ for -miamcu.
64 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
65 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
66 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
67 * config/i386/i386.c (ix86_option_override_internal): Ignore and
68 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
69 MCU by default. Default long double to 64-bit for Intel MCU.
70 Turn on -freg-struct-return for Intel MCU. Issue an error when
71 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
73 (function_arg_advance_32): Pass value whose size is no larger
74 than 8 bytes in registers for Intel MCU.
75 (function_arg_32): Likewise.
76 (ix86_return_in_memory): Return value whose size is no larger
77 than 8 bytes in registers for Intel MCU.
78 (iamcu_alignment): New function.
79 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
81 (ix86_local_alignment): Don't increase alignment for Intel MCU.
82 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
85 2015-06-30 Marek Polacek <polacek@redhat.com>
87 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
88 both operands of the resulting expression.
90 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
91 the final expression with the operand's type and then convert
92 it to the type of the expression.
94 2015-06-30 Richard Biener <rguenther@suse.de>
96 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
97 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
98 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
99 * match.pd: ... to patterns here.
101 2015-06-30 Richard Biener <rguenther@suse.de>
103 PR tree-optimization/66704
104 * tree-vect-data-refs.c (vect_setup_realignment): Use
105 make_ssa_name for non-SSA name source.
107 2015-06-30 Jakub Jelinek <jakub@redhat.com>
110 * omp-low.c (simd_clone_adjust): Handle addressable linear
111 or uniform parameters or non-gimple type uniform parameters.
113 2015-06-30 Richard Biener <rguenther@suse.de>
115 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
116 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
117 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
118 * match.pd: ... here.
119 Add a few cases of A - B -> A + (-B) when B "easily" negates.
120 Move (x & y) | x -> x and friends before
121 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
123 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
125 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
126 -mfix-ut699 is not specified.
127 (leon3_load): Rename into...
128 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
131 2015-06-30 Marek Polacek <polacek@redhat.com>
133 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
134 * match.pd: ... here.
136 2015-06-30 Richard Biener <rguenther@suse.de>
138 * target-insns.def (canonicalize_funcptr_for_compare): Add.
139 * fold-const.c (build_range_check): Replace uses of
140 HAVE_canonicalize_funcptr_for_compare.
141 (fold_widened_comparison): Likewise.
142 (fold_sign_changed_comparison): Likewise.
143 * dojump.c: Include "target.h".
144 (do_compare_and_jump): Replace uses of
145 HAVE_canonicalize_funcptr_for_compare and
146 gen_canonicalize_funcptr_for_compare.
147 * expr.c (do_store_flag): Likewise.
149 2015-06-30 Tom de Vries <tom@codesourcery.com>
151 PR tree-optimization/66652
152 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
153 max_loop_iterations to determine if nit + 1 overflows.
155 2015-06-30 Richard Biener <rguenther@suse.de>
157 * tree-vrp.c (register_edge_assert_for_2): Also register
158 asserts for dominating conversion results.
160 2015-06-30 Bin Cheng <bin.cheng@arm.com>
162 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
165 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
168 * configure.ac: Fix filds and fildq test for 64-bit.
169 * configure: Regenerated.
171 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
173 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
174 (nvptx_reorg): Here. Keep the non-subreg pieces.
176 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
178 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
179 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
181 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
183 * config/i386/i386.md (*jcc_1): Use %! in asm template.
184 Set attribute "length_nobnd" instead of "length".
187 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
189 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
191 * config/nios2/nios2.c (nios2_delegitimize_address): Make
192 assert less restrictive.
194 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
197 * cgraphunit.c (cgraph_node::finalize_function): Do not call
198 do_warn_unused_parameter.
199 * function.c (do_warn_unused_parameter): Move from here.
200 * function.h (do_warn_unused_parameter): Do not declare.
202 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
205 * gcc.target/arm/armv-sync-comp-swap.c: New.
206 * gcc.target/arm/armv-sync-op-acquire.c: New.
207 * gcc.target/arm/armv-sync-op-full.c: New.
208 * gcc.target/arm/armv-sync-op-release.c: New.
210 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
213 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
214 initial acquire barrier with final barrier.
216 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
219 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
220 initial acquire barrier with final barrier.
222 2015-06-29 Richard Henderson <rth@redhat.com>
224 * config/i386/constraints.md (Bf): New constraint.
225 * config/i386/i386-c.c (ix86_target_macros): Define
226 __GCC_ASM_FLAG_OUTPUTS__.
227 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
229 * doc/extend.texi (FlagOutputOperands): Document them.
231 2015-06-29 Jiong Wang <jiong.wang@arm.com>
233 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
234 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
236 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
237 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
238 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
239 (aarch64_symbol_context): Ditto.
240 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
241 and use new pattern name.
242 (aarch64_expand_mov_immediate): Ditto.
243 (aarch64_print_operand): Ditto.
244 (aarch64_classify_tls_symbol): Ditto.
246 2015-06-29 Marek Polacek <polacek@redhat.com>
247 Marc Glisse <marc.glisse@inria.fr>
249 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
250 * match.pd: ... pattern here.
252 2015-06-29 Tom de Vries <tom@codesourcery.com>
254 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
257 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
259 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
260 feature description, split out the native option, add a link to
261 the feature documentation, rearrange and slightly rewrite text.
262 (Aarch64 options, -mcpu): Likewise.
263 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
264 +rdma implies Adv. SIMD.
266 2015-06-29 Marek Polacek <polacek@redhat.com>
269 * function.c (stack_protect_epilogue): Remove a cast to int.
270 * doc/invoke.texi: Update -Wswitch-bool description.
272 2015-06-29 Richard Biener <rguenther@suse.de>
274 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
275 * fold-const.c (fold_binary_loc): Move &A - &B simplification
276 via ptr_difference_const ...
277 * match.pd: ... here.
278 When matching (X ^ Y) == Y also match with swapped operands.
280 2015-06-29 Richard Biener <rguenther@suse.de>
282 * lto-streamer.h (LTO_major_version): Bump to 5.
284 2015-06-29 Richard Biener <rguenther@suse.de>
286 PR tree-optimization/66677
287 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
288 STMT_VINFO_VEC_STMT clobbering less strict.
290 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
293 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
294 division, compute max and min when value ranges for dividend and
295 divisor are available.
297 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
298 Sandra Loosemore <sandra@codesourcery.com>
300 * regrename.h (regrename_do_replace): Change to return bool.
301 * regrename.c (rename_chains): Check return value of
303 (regrename_do_replace): Re-validate the modified insns and
305 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
306 Update to match rename_chains changes.
307 * config/c6x/c6x.c (try_rename_operands): Assert that
308 regrename_do_replace returns true.
310 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
312 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
313 operand 2 here. Use copy_addr_to_reg to copy non-index
314 register operand 2 to a temporary.
315 (<mode>_stx): Ditto for operand 1.
316 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
317 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
318 (ix86_store_bounds): Ditto.
320 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
322 * print-tree.c (print_node) [TREE_VEC]: Print its length.
324 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
326 * gimple.c (gimple_call_set_fndecl): Remove.
327 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
328 build1_loc directly instead of build_fold_addr_expr_loc.
330 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
332 * hash-map.h (hash_map::traverse): Use the definition of the
333 Key typedef rather than the typedef itself.
335 2015-06-26 Martin Jambor <mjambor@suse.cz>
338 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
339 NULL instead of calling dump_enabled_p.
341 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
343 * config/aarch64/aarch64.opt: (override): New.
344 * doc/invoke.texi (override): Document.
345 * config/aarch64/aarch64.c (aarch64_flag_desc): New
346 (aarch64_fusible_pairs): Likewise.
347 (aarch64_tuning_flags): Likewise.
348 (aarch64_tuning_override_function): Likewise.
349 (aarch64_tuning_override_functions): Likewise.
350 (aarch64_parse_one_option_token): Likewise.
351 (aarch64_parse_boolean_options): Likewise.
352 (aarch64_parse_fuse_string): Likewise.
353 (aarch64_parse_tune_string): Likewise.
354 (aarch64_parse_one_override_token): Likewise.
355 (aarch64_parse_override_string): Likewise.
356 (aarch64_override_options): Parse the -override string if it
359 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
361 * config/aarch64/aarch64-protos.h (tune_params): Remove
363 (aarch64_tune_params): Remove const, change to no longer be
365 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
366 change to no longer be a pointer, initialize to generic_tunings.
367 (aarch64_min_divisions_for_recip_mul): Change dereference of
368 aarch64_tune_params to member access.
369 (aarch64_reassociation_width): Likewise.
370 (aarch64_rtx_mult_cost): Likewise.
371 (aarch64_address_cost): Likewise.
372 (aarch64_branch_cost): Likewise.
373 (aarch64_rtx_costs): Likewise.
374 (aarch64_register_move_cost): Likewise.
375 (aarch64_memory_move_cost): Likewise.
376 (aarch64_sched_issue_rate): Likewise.
377 (aarch64_builtin_vectorization_cost): Likewise.
378 (aarch64_override_options): Take a copy of the selected tuning
379 struct in to aarch64_tune_params, rather than just setting
380 a pointer, change dereferences of aarch64_tune_params to member
382 (aarch64_override_options_after_change): Change dereferences of
383 aarch64_tune_params to member access.
384 (aarch64_macro_fusion_p): Likewise.
385 (aarch_macro_fusion_pair_p): Likewise.
386 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
388 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
390 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
391 (aarch64_tune_flags): Likewise.
392 (AARCH64_TUNE_FMA_STEERING): Likewise.
393 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
394 to AARCH64_FL_USE_FMA_STEERING_PASS.
395 (cortex-a57.cortex-a53): Likewise.
396 (cortex-a72): Use cortexa72_tunings.
397 (cortex-a72.cortex-a53): Likewise.
398 (exynos-m1): Likewise.
399 * config/aarch64/aarch64-protos.h (tune_params): Add
400 a field: extra_tuning_flags.
401 * config/aarch64/aarch64-tuning-flags.def: New.
402 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
403 (aarch64_extra_tuning_flags): Likewise.
404 (aarch64_tune_params): Declare here.
405 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
406 (cortexa53_tunings): Likewise.
407 (cortexa57_tunings): Likewise.
408 (thunderx_tunings): Likewise.
409 (xgene1_tunings): Likewise.
410 (cortexa72_tunings): New.
411 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
412 (gate): Check against aarch64_tune_params.
413 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
416 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
418 * config/aarch64/aarch64-fusion-pairs.def: New.
419 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
420 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
421 aarch64_fusion_pairs.
422 (AARCH64_FUSE_MOV_MOVK): Likewise.
423 (AARCH64_FUSE_ADRP_ADD): Likewise.
424 (AARCH64_FUSE_MOVK_MOVK): Likewise.
425 (AARCH64_FUSE_ADRP_LDR): Likewise.
426 (AARCH64_FUSE_CMP_BRANCH): Likewise.
428 2015-06-26 Jiong Wang <jiong.wang@arm.com>
430 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
431 SYMBOL_SMALL_GOT_28K.
432 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
433 relocation modifiers.
434 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
435 (ldr_got_small_28k_<mode>): New.
436 (ldr_got_small_28k_sidi): New.
437 * config/aarch64/iterators.md (got_modifier): New mode iterator.
438 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
439 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
440 SYMBOL_SMALL_GOT_28K.
441 (aarch64_rtx_costs): Add costs for new instruction sequences.
442 (initialize_aarch64_code_model): Initialize new model.
443 (aarch64_classify_symbol): Recognize new model and new symbol classification.
444 (aarch64_asm_preferred_eh_data_format): Support new model.
445 (aarch64_load_symref_appropriately): Generate new instruction
447 (TARGET_USE_PSEUDO_PIC_REG): New definition.
448 (aarch64_use_pseudo_pic_reg): New function.
450 2015-06-26 Jiong Wang <jiong.wang@arm.com>
452 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
453 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
454 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
455 (aarch64_expand_mov_immediate): Ditto.
456 (aarch64_print_operand): Ditto.
457 (aarch64_classify_symbol): Ditto.
459 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
461 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
463 2015-06-26 Bin Cheng <bin.cheng@arm.com>
466 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
467 assertion failed. Remove assertion itself.
469 2015-06-26 Richard Biener <rguenther@suse.de>
471 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
472 and -A CMP CST -> A CMP -CST which is redundant with a pattern
474 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
475 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
476 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
477 * match.pd: ... patterns here.
479 2015-06-26 Marek Polacek <polacek@redhat.com>
481 * match.pd ((x | y) & ~(x & y) -> x ^ y,
482 (x | y) & (~x ^ y) -> x & y): New patterns.
484 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
486 * rtl.h (emit): Add an optional boolean parameter to control
487 whether barriers are emitted.
488 * emit-rtl.c (emit): Likewise.
489 * gensupport.c (get_emit_function): Return null rather than "emit".
490 * genemit.c (gen_emit_seq): Handle the null return value.
491 Don't emit barriers after the final instruction in the sequence.
492 * gentarget-def.c (main): Don't emit barriers after the instruction.
494 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
496 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
499 2015-06-26 Richard Biener <rguenther@suse.de>
501 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
503 2015-06-26 Richard Biener <rguenther@suse.de>
505 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
506 irrespective on whether the inner operation has a single use
507 of both off are constant.
509 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
510 Segher Boessenkool <segher@kernel.crashing.org>
513 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
514 before doing PUT_MODE or PUT_CODE on operands to avoid
515 in-place RTX modification.
517 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
519 * gentarget-def.c (def_target_insn): Cast return of strtol to
522 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
524 * gimple.h (gimple_call_set_fn): Move inline function.
525 * gimple.c (gimple_call_set_fn): Relocate here.
527 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
531 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
532 the replacement insn will work.
534 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
536 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
539 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
541 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
542 * cgraph.h: Include ipa-ref.h and plugin-api.h.
543 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
544 (symtab_node::address_can_be_compared_p): Move function.
545 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
547 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
548 * auto-profile.c: Likewise.
549 * bb-reorder.c: Likewise.
550 * builtins.c: Likewise.
552 * cfgexpand.c: Likewise.
553 * cgraphbuild.c: Likewise.
554 * cgraphclones.c: Likewise.
555 * cgraphunit.c: Likewise.
556 * combine.c: Likewise.
557 * coverage.c: Likewise.
558 * data-streamer-in.c: Likewise.
559 * data-streamer-out.c: Likewise.
560 * data-streamer.c: Likewise.
561 * dbxout.c: Likewise.
562 * dwarf2out.c: Likewise.
563 * except.c: Likewise.
566 * fold-const.c: Likewise.
567 * ggc-page.c: Likewise.
568 * gimple-fold.c: Likewise.
569 * gimple-iterator.c: Likewise.
570 * gimple-pretty-print.c: Likewise.
571 * gimple-streamer-in.c: Likewise.
572 * gimple-streamer-out.c: Likewise.
573 * gimple.c: Likewise.
574 * gimplify.c: Likewise.
575 * ipa-chkp.c: Likewise.
576 * ipa-comdats.c: Likewise.
577 * ipa-cp.c: Likewise.
578 * ipa-devirt.c: Likewise.
579 * ipa-icf-gimple.c: Likewise.
580 * ipa-icf.c: Likewise.
581 * ipa-inline-analysis.c: Likewise.
582 * ipa-inline-transform.c: Likewise.
583 * ipa-inline.c: Likewise.
584 * ipa-polymorphic-call.c: Likewise.
585 * ipa-profile.c: Likewise.
586 * ipa-prop.c: Likewise.
587 * ipa-pure-const.c: Likewise.
588 * ipa-ref.c: Likewise.
589 * ipa-reference.c: Likewise.
590 * ipa-split.c: Likewise.
591 * ipa-utils.c: Likewise.
592 * ipa-visibility.c: Likewise.
594 * langhooks.c: Likewise.
595 * lto-cgraph.c: Likewise.
596 * lto-compress.c: Likewise.
597 * lto-opts.c: Likewise.
598 * lto-section-in.c: Likewise.
599 * lto-section-out.c: Likewise.
600 * lto-streamer-in.c: Likewise.
601 * lto-streamer-out.c: Likewise.
602 * lto-streamer.c: Likewise.
603 * omp-low.c: Likewise.
604 * opts-global.c: Likewise.
605 * passes.c: Likewise.
606 * predict.c: Likewise.
607 * print-tree.c: Likewise.
608 * profile.c: Likewise.
610 * sanopt.c: Likewise.
611 * stor-layout.c: Likewise.
612 * symtab.c: Likewise.
613 * toplev.c: Likewise.
614 * trans-mem.c: Likewise.
615 * tree-cfg.c: Likewise.
616 * tree-chkp.c: Likewise.
617 * tree-eh.c: Likewise.
618 * tree-emutls.c: Likewise.
619 * tree-inline.c: Likewise.
620 * tree-nested.c: Likewise.
621 * tree-parloops.c: Likewise.
622 * tree-pretty-print.c: Likewise.
623 * tree-profile.c: Likewise.
624 * tree-sra.c: Likewise.
625 * tree-ssa-alias.c: Likewise.
626 * tree-ssa-live.c: Likewise.
627 * tree-ssa-loop-ivcanon.c: Likewise.
628 * tree-ssa-loop-ivopts.c: Likewise.
629 * tree-ssa-pre.c: Likewise.
630 * tree-ssa-sccvn.c: Likewise.
631 * tree-ssa-strlen.c: Likewise.
632 * tree-ssa-structalias.c: Likewise.
633 * tree-streamer-in.c: Likewise.
634 * tree-streamer-out.c: Likewise.
635 * tree-streamer.c: Likewise.
636 * tree-switch-conversion.c: Likewise.
637 * tree-tailcall.c: Likewise.
638 * tree-vect-data-refs.c: Likewise.
639 * tree-vect-stmts.c: Likewise.
640 * tree-vectorizer.c: Likewise.
644 * value-prof.c: Likewise.
645 * varasm.c: Likewise.
646 * varpool.c: Likewise.
647 * config/arm/arm.c: Likewise.
648 * config/bfin/bfin.c: Likewise.
649 * config/c6x/c6x.c: Likewise.
650 * config/cris/cris.c: Likewise.
651 * config/darwin-c.c: Likewise.
652 * config/darwin.c: Likewise.
653 * config/i386/i386.c: Likewise.
654 * config/i386/winnt.c: Likewise.
655 * config/microblaze/microblaze.c: Likewise.
656 * config/mips/mips.c: Likewise.
657 * config/rs6000/rs6000.c: Likewise.
658 * config/rx/rx.c: Likewise.
659 * config/s390/s390.c: Likewise.
660 * config/tilegx/mul-tables.c: Likewise.
662 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
664 * config/aarch64/aarch64.c, config/alpha/alpha.c,
665 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
666 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
667 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
668 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
669 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
670 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
671 config/microblaze/microblaze.c, config/mips/mips.c,
672 config/mmix/mmix.c, config/mn10300/mn10300.c,
673 config/moxie/moxie.c, config/msp430/msp430.c,
674 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
675 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
676 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
677 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
678 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
679 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
680 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
681 target-def.h include.
682 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
684 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
686 * Makefile.in (TARGET_DEF): Add target-insns.def.
687 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
688 (build/gentarget-def.o): New rule.
689 (genprogrtl): Add target-def.
690 * target-insns.def, gentarget-def.c: New files.
691 * target.def: Add targetm.have_* and targetm.gen_* hooks,
692 based on the contents of target-insns.def.
693 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
694 (HAVE_return, gen_return): Delete.
695 * target-def.h: Include insn-target-def.h.
696 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
697 instead of direct calls. Rely on them to do the appropriate assertions.
698 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
699 (convert_jumps_to_returns): Use targetm interface instead of
701 (thread_prologue_and_epilogue_insns): Likewise.
702 * reorg.c (find_end_label, dbr_schedule): Likewise.
703 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
704 * shrink-wrap.c (convert_to_simple_return): Likewise.
705 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
707 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
709 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
710 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
711 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
712 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
713 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
714 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
715 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
716 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
717 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
718 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
719 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
720 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
721 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
722 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
723 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
724 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
727 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
729 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
730 (unbounded_int_hashmap_traits::key_type): Likewise.
731 * hash-map.h (hash_map): Get the key type from the traits.
732 * hash-traits.h (default_hash_traits): By default, inherit from the
734 * alias.c (alias_set_traits): Delete.
735 (alias_set_entry_d::children): Use alias_set_hash as the first
737 (record_alias_subset): Update accordingly.
738 * except.c (tree_hash_traits): Delete.
739 (type_to_runtime_map): Use tree_hash as the first template parameter.
740 (init_eh): Update accordingly.
741 * genmatch.c (capture_id_map_hasher): Delete.
742 (cid_map_t): Use nofree_string_hash as first template parameter.
743 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
744 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
745 Use symbol_compare_hash as the first template parameter in
747 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
748 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
750 * passes.c (pass_registry_hasher): Delete.
751 (name_to_pass_map): Use nofree_string_hash as the first template
753 (register_pass_name): Update accordingly.
754 * sanopt.c (sanopt_tree_map_traits): Delete.
755 (sanopt_tree_triplet_map_traits): Delete.
756 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
758 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
759 the first template parameter.
760 * sese.c (rename_map_hasher): Delete.
761 (rename_map_type): Use tree_ssa_name_hash as the first template
763 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
764 (function_summary::m_map): Use map_hash as the first template
766 (function_summary::release): Update accordingly.
767 * tree-if-conv.c (phi_args_hash_traits): Delete.
768 (predicate_scalar_phi): Use tree_operand_hash as the first template
769 parameter to phi_arg_map.
770 * tree-inline.h (dependence_hasher): Delete.
771 (copy_body_data::dependence_map): Use dependence_hash as the first
773 * tree-inline.c (remap_dependence_clique): Update accordingly.
774 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
775 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
777 (addr_stridxptr): Update accordingly.
778 * value-prof.c (profile_id_traits): Delete.
779 (cgraph_node_map): Use profile_id_hash as the first template
781 (init_node_map): Update accordingly.
782 * config/alpha/alpha.c (string_traits): Delete.
783 (machine_function::links): Use nofree_string_hash as the first
785 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
786 * config/m32c/m32c.c (pragma_traits): Delete.
787 (pragma_htab): Use nofree_string_hash as the first template parameter.
788 (m32c_note_pragma_address): Update accordingly.
789 * config/mep/mep.c (pragma_traits): Delete.
790 (pragma_htab): Use nofree_string_hash as the first template parameter.
791 (mep_note_pragma_flag): Update accordingly.
792 * config/mips/mips.c (mips16_flip_traits): Delete.
793 (mflip_mips16_htab): Use nofree_string_hash as the first template
795 (mflip_mips16_use_mips16_p): Update accordingly.
796 (local_alias_traits): Delete.
797 (mips16_local_aliases): Use nofree_string_hash as the first template
799 (mips16_local_alias): Update accordingly.
801 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
803 * hash-map-traits.h (default_hashmap_traits): Delete.
805 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
807 * hash-map-traits.h (unbounded_hashmap_traits): New class.
808 (unbounded_int_hashmap_traits): Likewise.
809 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
811 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
813 * ipa-icf.h (symbol_compare_hash): New class.
814 (symbol_compare_hashmap_traits): Use it.
815 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
816 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
817 (mem_alloc_description::reverse_mem_map_t): Remove redundant
818 default_hashmap_traits.
819 * sanopt.c (sanopt_tree_triplet_hash): New class.
820 (sanopt_tree_triplet_map_traits): Use it.
822 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
824 * gengtype-parse.c (require_template_declaration): Allow '+' in
825 template parameters. Consolidate cases.
826 * hash-traits.h (int_hash): New class.
827 * alias.c (alias_set_hash): New structure.
828 (alias_set_traits): Use it.
829 * symbol-summary.h (function_summary::map_hash): New class.
830 (function_summary::summary_hashmap_traits): Use it.
831 * tree-inline.h (dependence_hash): New class.
832 (dependence_hasher): Use it.
833 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
834 * value-prof.c (profile_id_hash): New class.
835 (profile_id_traits): Use it.
837 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
839 * config/mips/mips.c (mips16_flip_traits): Use it.
840 (local_alias_traits, mips16_local_aliases): Convert from a map of
841 rtxes to a map of symbol names.
842 (mips16_local_alias): Update accordingly.
844 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
846 * hash-traits.h (string_hash, nofree_string_hash): New classes.
847 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
848 * passes.c (pass_registry_hasher): Likewise.
849 * config/alpha/alpha.c (string_traits): Likewise.
850 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
851 * config/m32c/m32c.c (pragma_traits): Likewise.
852 * config/mep/mep.c (pragma_traits): Likewise.
854 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
856 * tree-hash-traits.h (tree_hash): New class.
857 * except.c: Include tree-hash-traits.h.
858 (tree_hash_traits): Use tree_hash.
860 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
862 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
863 * sese.c: Include tree-hash-traits.h.
864 (rename_map_hasher): Use tree_ssa_name_hasher.
866 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
868 * tree-hash-traits.h (tree_decl_hash): New class.
869 * tree-ssa-strlen.c: Include tree-hash-traits.h.
870 (stridxlist_hash_traits): Use tree_decl_hash.
872 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
874 * tree-hash-traits.h: New file.
875 (tree_operand_hash): New class.
876 * sanopt.c: Include tree-hash-traits.h.
877 (sanopt_tree_map_traits): Use tree_operand_hash.
878 * tree-if-conv.c: Include tree-hash-traits.h.
879 (phi_args_hash_traits): Use tree_operand_hash.
880 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
881 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
883 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
885 * hash-map-traits.h: Include hash-traits.h.
886 (simple_hashmap_traits): New class.
887 * mem-stats.h (hash_map): Change the default traits to
888 simple_hashmap_traits<default_hash_traits<Key> >.
890 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
892 * hash-table.h: Update comments.
894 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
896 * hash-traits.h (default_hash_traits): New structure.
897 * hash-set.h (default_hashset_traits): Delete.
898 (hash_set): Use default_hash_traits<Key> instead of
899 default_hashset_traits. Delete hash_entry type and use Key directly.
900 * ipa-devirt.c (pair_traits): Delete.
901 (default_hash_traits <type_pair>): Override.
902 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
903 (odr_types_equivalent_p, add_type_duplicate): Likewise.
905 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
907 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
909 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
911 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
912 (has_is_empty, is_empty_helper): Delete.
913 (has_mark_deleted, mark_deleted_helper): Delete.
914 (has_mark_empty, mark_empty_helper): Delete.
915 (hash_table::is_deleted): Call the Descriptor unconditionally.
916 (hash_table::is_empty): Likewise.
917 (hash_table::mark_deleted): Likewise.
918 (hash_table::mark_empty): Likewise.
920 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
922 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
923 redundant typedefs and members.
924 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
926 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
927 * ipa-devirt.c (odr_name_hasher): Likewise.
928 (polymorphic_call_target_hasher): Likewise.
929 * ira-costs.c (cost_classes_hasher): Likewise.
930 * statistics.c (stats_counter_hasher): Likewise.
931 * trans-mem.c (log_entry_hasher): Likewise.
932 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
933 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
934 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
935 * var-tracking.c (variable_hasher): Likewise.
936 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
937 Remove redundant typedefs and members.
939 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
941 * hash-traits.h (ggc_cache_hasher): Rename to...
942 (ggc_cache_remove): ...this and remove typedefs.
943 (ggc_cache_ptr_hash): New class.
944 * hash-table.h: Update commentary.
945 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
946 rather than ggc_cache_hasher.
947 (const_wide_int_hasher, reg_attr_hasher): Likewise.
948 (const_double_hasher, const_fixed_hasher): Likewise.
949 * function.c (insn_cache_hasher): Likewise.
950 * trans-mem.c (tm_wrapper_hasher): Likewise.
951 * tree.h (tree_decl_map_cache_hasher): Likewise.
952 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
953 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
954 * ubsan.c (tree_type_map_cache_hasher): Likewise.
955 * varasm.c (tm_clone_hasher): Likewise.
956 * config/i386/i386.c (dllimport_hasher): Likewise.
957 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
958 (tree_hasher): Likewise.
960 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
962 * hash-traits.h (ggc_hasher): Rename to...
963 (ggc_remover): ...this and remove typedefs.
964 (ggc_cache_hasher): Update accordingly. Add typedefs.
965 (ggc_ptr_hash): New class.
966 * hash-table.h: Update comment.
967 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
969 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
970 (tree_descriptor_hasher): Likewise.
971 * cgraph.c (function_version_hasher): Likewise.
972 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
973 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
974 (dw_loc_list_hasher, addr_hasher): Likewise.
975 * function.h (used_type_hasher): Likewise.
976 * function.c (temp_address_hasher): Likewise.
977 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
978 * libfuncs.h (libfunc_hasher): Likewise.
979 * lto-streamer.h (decl_state_hasher): Likewise.
980 * optabs.c (libfunc_decl_hasher): Likewise.
981 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
982 * varasm.c (section_hasher, object_block_hasher): Likewise.
983 (const_rtx_desc_hasher): Likewise.
984 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
985 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
987 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
989 * hash-traits.h (free_ptr_hash): New class.
990 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
991 rather than typed_free_remove. Remove redudant typedefs.
992 (external_ref_hasher): Likewise.
993 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
994 (ehspec_hasher): Likewise.
995 * ggc-common.c (saving_hasher): Likewise.
996 * gimplify.c (gimplify_hasher): Likewise.
997 * haifa-sched.c (delay_i2_hasher): Likewise.
998 * loop-invariant.c (invariant_expr_hasher): Likewise.
999 * loop-iv.c (biv_entry_hasher): Likewise.
1000 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
1001 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
1002 * tree-cfg.c (locus_discrim_hasher): Likewise.
1003 * tree-eh.c (finally_tree_hasher): Likewise.
1004 * tree-into-ssa.c (var_info_hasher): Likewise.
1005 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
1006 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
1007 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
1008 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
1009 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
1010 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
1011 (shared_bitmap_hasher): Likewise.
1012 * tree-ssa-threadupdate.c (redirection_data): Likewise.
1013 * tree-vectorizer.h (peel_info_hasher): Likewise.
1014 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
1015 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
1017 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1019 * hash-table.h: Update comments.
1020 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
1021 (nofree_ptr_hash): New class.
1022 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
1023 than typed_noop_remove. Remove redudant typedefs.
1024 * attribs.c (attribute_hasher): Likewise.
1025 * cfg.c (bb_copy_hasher): Likewise.
1026 * cselib.c (cselib_hasher): Likewise.
1027 * dse.c (invariant_group_base_hasher): Likewise.
1028 * dwarf2cfi.c (trace_info_hasher): Likewise.
1029 * dwarf2out.c (macinfo_entry_hasher): Likewise.
1030 (comdat_type_hasher, loc_list_hasher): Likewise.
1031 * gcse.c (pre_ldst_expr_hasher): Likewise.
1032 * genmatch.c (id_base): Likewise.
1033 * genrecog.c (test_pattern_hasher): Likewise.
1034 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
1035 * haifa-sched.c (delay_i1_hasher): Likewise.
1036 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
1037 * ipa-icf.h (congruence_class_group_hash): Likewise.
1038 * ipa-profile.c (histogram_hash): Likewise.
1039 * ira-color.c (allocno_hard_regs_hasher): Likewise.
1040 * lto-streamer.h (string_slot_hasher): Likewise.
1041 * lto-streamer.c (tree_entry_hasher): Likewise.
1042 * plugin.c (event_hasher): Likewise.
1043 * postreload-gcse.c (expr_hasher): Likewise.
1044 * store-motion.c (st_expr_hasher): Likewise.
1045 * tree-sra.c (uid_decl_hasher): Likewise.
1046 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
1047 (ssa_name_var_hash): Likewise.
1048 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
1049 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
1050 * tree-ssa-pre.c (pre_expr_d): Likewise.
1051 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
1052 * vtable-verify.h (registration_hasher): Likewise.
1053 * vtable-verify.c (vtbl_map_hasher): Likewise.
1054 * config/arm/arm.c (libcall_hasher): Likewise.
1055 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
1056 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
1057 * config/sol2.c (comdat_entry_hasher): Likewise.
1058 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
1059 (print_fold_checksum, fold_checksum_tree): Likewise.
1060 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
1061 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
1062 (fold_build_call_array_loc): Likewise.
1063 * tree-ssa-ccp.c (gimple_htab): Likewise.
1064 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
1065 rather than pointer_type.
1067 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1069 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
1070 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
1072 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1074 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
1075 (ggc_hasher::ggc_mx): Likewise.
1076 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
1077 that duplicate ggc_hasher ones.
1079 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1081 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
1082 (gt_cleare_cache): Check here for deleted and empty entries.
1083 Replace handle_cache_entry with a call to keep_cache_entry.
1084 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
1085 (ggc_cache_hasher::keep_cache_entry): New function.
1086 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
1087 (tm_wrapper_hasher::keep_cache_entry): New function.
1088 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
1089 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1090 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
1091 (type_cache_hasher::keep_cache_entry): New function.
1092 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
1093 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1094 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
1095 (tree_type_map_cache_hasher::keep_cache_entry): New function.
1096 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
1097 (tm_clone_hasher::keep_cache_entry): New function.
1098 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
1099 (dllimport_hasher::keep_cache_entry): New function.
1101 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1103 * hash-table.h: Include hash-traits.h.
1104 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
1105 (ggc_cache_hasher): Move to...
1106 * hash-traits.h: ...this new file.
1108 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1110 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
1111 struct cl_optimization.
1112 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
1113 * tree.c (make_node_stat): Allocate cl_optimization struct.
1114 (copy_node_stat): Allocate and copy cl_optimization struct.
1116 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1118 * function.h (struct incoming_args): Move struct.
1119 (pass_by_reference, reference_callee_copied): Remove prototypes.
1120 * emit-rtl.h (struct incoming_args): Relocate struct here.
1121 * calls.h (pass_by_reference, reference_callee_copied): Relocate
1123 * function.c (pass_by_reference, reference_callee_copied): Move.
1124 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
1125 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
1126 * ipa-chkp.c: Include calls.h.
1128 2015-06-25 Andrew Macleod <amacleod@redhat.com>
1130 * alias.h (alias_set_type): Move typedef.
1131 * coretypes.h (alias_set_type): Relocate typedef here.
1132 * rtl.h: Don't include alias.h.
1134 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1136 * cgraph.h (cgraph_rtl_info): Move to rtl.h
1137 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
1139 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
1140 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
1142 * calls.c: Include hard-reg-set.h before rtl.h.
1145 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1146 Vladimir Makarov <vmakarov@redhat.com>
1148 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
1151 2015-06-25 Richard Biener <rguenther@suse.de>
1153 * fold-const.c (fold_binary_loc): Move simplification of
1154 (X <<>> C1) & C2 ...
1155 * match.pd: ... here.
1157 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
1159 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
1161 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1163 * match.pd: Add patterns for vec_conds between 1 and 0.
1165 2015-06-25 Richard Biener <rguenther@suse.de>
1167 * tree-vect-stmts.c (vectorizable_conversion): Do not set
1168 STMT_VINFO_VEC_STMT for SLP.
1169 (vectorizable_store): Likewise.
1170 (vectorizable_load): Likewise.
1171 (vect_transform_stmt): Catch SLP vectorization clobbering
1172 STMT_VINFO_VEC_STMT.
1174 2015-06-25 Richard Biener <rguenther@suse.de>
1176 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
1178 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
1179 cleanup resulting dead code and parameters.
1180 (vect_transform_slp_perm_load): Adjust.
1182 2015-06-25 Nick Clifton <nickc@redhat.com>
1184 * config/bfin/bfin.c (bfin_expand_prologue): Set
1185 current_function_static_stack_size if flag_stack_usage_info is
1187 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
1188 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
1189 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1190 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
1192 2015-06-25 Tom de Vries <tom@codesourcery.com>
1194 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
1195 comment that the generated IV is unsigned.
1197 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1200 * config/arm/arm.c (arm_dbx_register_number): Return
1201 DWARF_FRAME_REGISTERS by default.
1203 2015-06-25 Tom de Vries <tom@codesourcery.com>
1205 * dominance.c (calculate_dominance_info): Fix verify_dominators call
1206 argument. Call verify_dominator when reusing dominator info.
1208 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
1211 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
1212 an additional element of the unspec vector. Modify indices
1214 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
1215 * config/sh/sh.c (prepare_move_operands): Pass incremented
1216 const_int to gen_GOTaddr2picreg.
1217 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
1219 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
1221 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
1222 Condition on TARGET_FLOAT.
1224 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
1226 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
1229 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
1231 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
1233 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
1234 aarch64_err_no_fpadvsimd.
1236 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
1237 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
1238 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
1239 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
1240 Turn error into assert, test TARGET_FLOAT.
1241 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
1244 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
1247 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
1249 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1251 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
1253 2015-06-24 Renlin Li <renlin.li@arm.com>
1255 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
1256 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
1258 2015-06-24 Richard Biener <rguenther@suse.de>
1260 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
1262 (lower_opt_convert): Support lowering of conditional view_convert.
1263 (parser::parse_operation): Likewise.
1264 (parser::parse_for): Likewise.
1266 2015-06-24 Renlin Li <renlin.li@arm.com>
1268 * varasm.c (emit_local): Use unsigned int for align variable.
1270 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1273 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
1274 for negative numbers.
1276 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1278 PR rtl-optimization/66306
1279 * reload.c (find_reloads): Swap the match_dup info for
1280 commutative operands.
1282 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1284 * config/s390/vx-builtins.md
1285 ("vec_scatter_element<mode>_<non_vec_int>")
1286 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
1287 attribute with bhfgq.
1289 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1291 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
1293 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1295 * config/s390/s390-builtin-types.def: Add flag to indicate the
1296 options under which the function type is needed.
1297 * config/s390/s390-builtins.def: Add flag to indicate the options
1298 under which the builtin is enabled.
1299 * config/s390/s390-builtins.h: Add flags parameter to macro
1301 (bflags_for_builtin): New function.
1302 (flags_for_builtin): Renamed to ...
1303 (opflags_for_builtin): ... this.
1304 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
1305 flags_for_builtin to bflags_for_builtin and
1306 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
1307 * config/s390/s390.c: Add initialization of bflags_builtin and
1308 opflags_builtin arrays.
1309 Remove code for flags_builtin.
1310 (s390_init_builtins): Only create builtin function types if one of
1311 their flags is active.
1312 Only create builtins if all of their flags are active.
1313 (s390_expand_builtin): Rename flags_for_builtin to
1314 opflags_for_builtin.
1316 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1318 * config/s390/vecintrin.h: Remove internal builtins.
1320 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1322 * config/s390/s390.c (s390_secondary_reload): Fix check for
1323 GENERAL_REGS register class.
1325 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1327 * config/s390/s390.c (s390_support_vector_misalignment): Call
1328 default implementation for !TARGET_VX.
1330 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1332 * config/s390/s390.c (s390_legitimate_constant_p): Add
1335 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1337 * config/s390/s390.c (s390_vector_abi): New variable definition.
1338 (s390_check_type_for_vector_abi): New function.
1339 (TARGET_ASM_FILE_END): New macro definition.
1340 (s390_asm_file_end): New function.
1341 (s390_function_arg): Call s390_check_type_for_vector_abi.
1342 (s390_gimplify_va_arg): Likewise.
1343 * configure: Regenerate.
1344 * configure.ac: Check for .gnu_attribute Binutils feature.
1346 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
1349 * config/bfin/bfin.c (hwloop_optimize): Initialize
1350 JUMP_LABEL for newly created jump.
1352 2015-06-23 Tristan Gingold <gingold@adacore.com>
1354 * collect-utils.c (collect_wait): Unlink the response file here
1357 (utils_cleanup): ...and here.
1359 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1361 * df-scan.c: Don't include target-def.h.
1362 * targhooks.c: Likewise.
1363 * config/arm/arm-c.c: Likewise.
1364 * config/i386/i386-c.c: Likewise.
1365 * config/nds32/nds32-cost.c: Likewise.
1366 * config/nds32/nds32-fp-as-gp.c: Likewise.
1367 * config/nds32/nds32-intrinsic.c: Likewise.
1368 * config/nds32/nds32-isr.c: Likewise.
1369 * config/nds32/nds32-md-auxiliary.c: Likewise.
1370 * config/nds32/nds32-memory-manipulation.c: Likewise.
1371 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1372 * config/nds32/nds32-predicates.c: Likewise.
1374 2015-06-23 Richard Biener <rguenther@suse.de>
1376 PR tree-optimization/66636
1377 * tree-vect-stmts.c (vectorizable_store): Properly compute the
1378 def type for further defs for strided stores.
1380 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
1382 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
1383 conditional selects.
1384 (setcc_int<mode>, setcc_float<mode>): Reformat.
1386 2015-06-23 Marek Polacek <polacek@redhat.com>
1388 * match.pd ((x + y) - (x | y) -> x & y,
1389 (x + y) - (x & y) -> x | y): New patterns.
1391 2015-06-23 Ludovic Courtès <ludo@gnu.org>
1394 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
1395 '-dynamic-linker' within %{!shared: ...}.
1397 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
1400 * config/i386/predicates.md (addsub_vm_operator): New predicate.
1401 (addsub_vs_operator): Ditto.
1402 (addsub_vs_parallel): Ditto.
1403 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
1404 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
1405 Put minus RTX before plus and adjust vec_merge selector.
1406 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
1407 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
1408 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
1409 (addsub vec_merge splitters): New combiner splitters.
1410 (addsub vec_select/vec_concat splitters): Ditto.
1412 2015-06-23 Bin Cheng <bin.cheng@arm.com>
1414 PR tree-optimization/66449
1415 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
1416 POINTER_PLUS_EXPR for pointers.
1418 2015-06-23 Alan Modra <amodra@gmail.com>
1420 * rtlanal.c (commutative_operand_precedence): Correct comments.
1421 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
1422 declaration. Return an int. Distinguish REG,REG return from
1424 (struct simplify_plus_minus_op_data): Make local to function.
1425 (simplify_plus_minus): Don't set canonicalized if merely sorting
1426 registers. Avoid packing ops if nothing changes. White space fixes.
1428 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1430 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
1431 -fdump-ada-spec is passed but not if -fsyntax-only is.
1433 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
1436 * lra-lives.c (process_bb_lives): Check insn copying the same
1437 reload pseudo and don't create a copy for it.
1439 2015-06-22 Tom de Vries <tom@codesourcery.com>
1441 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
1444 2015-06-22 Tom de Vries <tom@codesourcery.com>
1446 * builtins.def (DEF_GOMP_BUILTIN): Test
1447 'flag_tree_parallelize_loops > 1' instead of
1448 'flag_tree_parallelize_loops'. Test flag_cilkplus.
1450 2015-06-22 Tom de Vries <tom@codesourcery.com>
1452 * dominance.c (calculate_dominance_info): Verify dominators if
1455 2015-06-22 Marek Polacek <polacek@redhat.com>
1457 * match.pd ((x ^ y) ^ (x | y) -> x & y,
1458 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
1459 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
1460 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
1462 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
1465 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
1466 cost of embedded comparison.
1468 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1471 * config/rs6000/predicates.md (altivec_register_operand): Permit
1472 virtual stack registers.
1473 (vsx_register_operand): Likewise.
1474 (vfloat_operand): Likewise.
1475 (vint_operand): Likewise.
1476 (vlogical_operand): Likewise.
1478 2015-06-22 Richard Biener <rguenther@suse.de>
1480 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
1481 and single_scalar_iteration_cost members.
1482 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
1483 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
1484 (vect_get_single_scalar_iteration_cost): Remove.
1485 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
1486 Use LOOP_VINFO_SCALAR_ITERATION_COST.
1487 * tree-vect-loop.c (destroy_loop_vec_info): Free
1489 (vect_get_single_scalar_iteration_cost): Compute result into
1490 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
1491 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
1492 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
1493 (vect_estimate_min_profitable_iters): Use them.
1495 2015-06-22 Christian Bruel <christian.bruel@st.com>
1498 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
1499 (TARGET_INSERT_ATTRIBUTES): Define.
1500 (thumb_flipper): New var.
1501 * config/arm/arm.opt (-mflip-thumb): New switch.
1503 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
1504 Martin Liska <mliska@suse.cz>
1507 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
1508 construction of arg_types.
1509 (sem_function::sem_function): Likewise.
1510 (sem_function::~sem_function): Remove destruction of arg_types.
1511 (sem_function::compatible_parm_types_p): New function.
1512 (sem_function::equals_wpa): Reorg matching of return values
1513 and parameter types.
1514 (sem_function::equals_private): Reorg mathcing of argument types.
1515 (sem_function::parse_tree_args): Remove.
1516 * ipa-icf.h (init_wpa): Do not call it.
1517 (parse_tree_args): Remove.
1518 (compatible_parm_types_p): Declare.
1519 (result_type): Remove.
1520 (arg_types): Remove.
1522 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
1525 * ipa-polymorphic-call.c
1526 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
1527 initializing alias oracle; fix formating; set base_alias_set if it
1530 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1532 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
1533 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
1534 (find_inc): Likewise.
1535 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
1537 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1538 * df-scan.c (df_swap_refs): Remove.
1539 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
1540 * dominance.c (link_roots): Use std::swap instead of manually swapping.
1541 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
1542 * fold-const.c (fold_relational_const): Likewise.
1543 * genattrtab.c (simplify_test_exp): Likewise.
1544 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
1545 gimple_simplify): Likewise.
1546 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
1547 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
1548 * ipa-devirt.c (add_type_duplicate): Likewise.
1549 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
1550 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
1551 * lra.c (lra_create_copy): Likewise.
1552 * lto-streamer-out.c (DFS::DFS): Likewise.
1553 * modulo-sched.c (get_sched_window): Likewise.
1554 * omega.c (omega_pretty_print_problem): Likewise.
1555 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
1556 * reload1.c (reloads_unique_chain_p): Likewise.
1557 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
1558 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
1560 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
1562 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
1563 predicate_mem_writes): Likewise.
1564 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
1565 * tree-predcom.c (combine_chains): Likewise.
1566 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
1567 refs_may_alias_p_1): Likewise.
1568 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
1569 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1570 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
1571 number_of_iterations_cond): Likewise.
1572 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1573 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1574 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1575 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1576 * tree-vrp.c (extract_range_from_binary_expr_1,
1577 extract_range_from_unary_expr_1): Likewise.
1579 2015-06-20 Marek Polacek <polacek@redhat.com>
1581 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
1583 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
1586 * config/sh/sh.c (prepare_move_operands): Replace subreg
1587 index term with R0 for base and index addressing.
1589 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
1591 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
1593 (movsf_aarch64): Change condition from register_operand to
1594 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
1595 load1. Change type for alternative 7 to store1.
1596 (movdf_aarch64): Likewise.
1598 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
1600 * config/vax/vax.md: Adjust sign/zero extend patterns to
1601 handle SUBREGs in operands[1].
1603 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1605 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
1606 of manually swapping.
1607 (expand_vec_perm_interleave2): Likewise.
1609 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
1611 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
1612 reuse bounds created for abnormal ssa names.
1614 2015-06-19 Jakub Jelinek <jakub@redhat.com>
1616 * config/nvptx/nvptx.md (allocate_stack): Rename to...
1617 (allocate_stack_<mode>): ... this, and add :P on both
1618 match_operand and unspec.
1619 (allocate_stack): New expander.
1621 2015-06-19 Christian Bruel <christian.bruel@st.com>
1625 * config/arm/arm.c (arm_set_current_function): Handle
1626 explicit default options.
1628 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
1630 * config/i386/i386.md (*movsicc_noc_zext): New insn.
1631 (zero-extended cmove with mem peephole2): New pattern.
1632 (cmove with mem peephole2): Merge patterns.
1634 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
1636 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
1638 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
1640 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
1641 * config/mips/mips.md (*madd4<mode>): Ditto.
1642 (*nmadd3<mode>) Ditto.
1643 (*nmadd4<mode>_fastmath): Ditto.
1644 (*nmadd3<mode>_fastmath): Ditto.
1645 (*nmsub4<mode>): Ditto.
1646 (*nmsub3<mode>): Ditto.
1647 (*nmsub4<mode>_fastmath): Ditto.
1648 (*nmsub3<mode>_fastmath): Ditto.
1650 2015-06-18 Michael Matz <matz@suse.de>
1653 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
1654 grouped strided stores.
1655 (vectorizable_load): Don't use the DR from first_stmt in
1656 the non-SLP grouped strided case.
1658 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1661 * function.c (assign_bounds): Add arguments assign_regs,
1662 assign_special, assign_bt.
1663 (assign_parms): For vararg functions handle bounds in BT
1664 and special slots after incoming vararg bounds.
1666 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1669 * cfgexpand.c (expand_return): Handle missing bounds.
1670 (expand_gimple_stmt_1): Likewise.
1671 * tree-chkp.c (chkp_expand_zero_bounds): New.
1672 * tree-chkp.h (chkp_expand_zero_bounds): New.
1674 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1677 * ipa-chkp.c (chkp_maybe_create_clone): Require
1678 functions to be instrumentable.
1679 * tree-chkp.c (chkp_replace_function_pointer): Use
1680 chkp_instrumentable_p instead of attribute check.
1682 2015-06-18 Richard Biener <rguenther@suse.de>
1684 PR tree-optimization/66510
1685 * tree-vect-stmts.c (vectorizable_load): Properly compute the
1686 number of vector loads for SLP permuted loads.
1687 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
1688 check the stride for loop vectorization.
1689 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
1690 vectorization factor.
1691 (vect_analyze_group_access): If the group size is not a power
1692 of two require a epilogue loop.
1693 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
1694 compute and optimizing and alias test pruning after final
1695 vectorization factor computation.
1696 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
1698 (vect_transform_slp_perm_load): Properly compute the original
1699 number of vector load stmts.
1701 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
1703 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
1704 "unlikely character , in @var" warning.
1706 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
1708 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
1709 (ix86_function_arg_advance): Ditto.
1710 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
1712 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1714 * function.h (struct rtl_data): Remove struct and accessor macros.
1715 * emit-rtl.h (struct rtl_data): Relocate to here.
1716 * Makefile.in (GTFILES): Add emit-rtl.h.
1717 * df-core.c: Include emit-rtl.h.
1718 * genattrtab.c: Likewise.
1719 * genconditions.c: Likewise.
1720 * genpreds.c: Likewise.
1721 * genrecog.c: Likewise.
1722 * regcprop.c: Likewise.
1723 * resource.c: Likewise.
1724 * sched-rgn.c: Likewise.
1725 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1726 * config/i386/winnt.c: Likewise.
1728 2015-06-17 Jakub Jelinek <jakub@redhat.com>
1731 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
1732 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
1733 and has_force_vectorize_loops flags from cfun into
1735 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
1736 if simduid is non-NULL.
1737 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
1738 * passes.def (pass_simduid_cleanup): Add new pass after loop
1740 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
1741 indirection from htab argument's type.
1742 (shrink_simd_arrays): New function.
1743 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
1744 Don't call adjust_simduid_builtins if there are no loops.
1745 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
1746 (pass_simduid_cleanup::execute): New method.
1747 (make_pass_simduid_cleanup): New function.
1749 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
1751 * tree-core.h (tree_target_option): Make opts field a pointer to a
1752 cl_target_option instead of an instance of the struct.
1753 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
1755 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
1757 (copy_node_stat): Allocate and copy struct cl_target_option.
1759 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1761 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
1762 Remove conditional exposure of prototypes.
1763 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
1764 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
1765 definitions in tree.h with functions.
1766 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
1768 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
1770 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
1772 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
1773 (*cmp<mode>_signed): ... this.
1774 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
1775 (*cmp<mode>_unsigned): ... this. Remove %b.
1777 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1779 * coretypes.h: Include input.h and as-a.h.
1780 * rtl.h: Include input.h and as-a.h for generator files.
1781 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
1782 * vec.c: Don't include diagnostic-core.h.
1783 * alias.c: Do not include input.h, line-map.h or is-a.h.
1785 * attribs.c: Likewise.
1786 * auto-inc-dec.c: Likewise.
1787 * auto-profile.c: Likewise.
1788 * bb-reorder.c: Likewise.
1789 * bt-load.c: Likewise.
1790 * builtins.c: Likewise.
1791 * caller-save.c: Likewise.
1792 * calls.c: Likewise.
1795 * cfganal.c: Likewise.
1796 * cfgbuild.c: Likewise.
1797 * cfgcleanup.c: Likewise.
1798 * cfgexpand.c: Likewise.
1799 * cfghooks.c: Likewise.
1800 * cfgloop.c: Likewise.
1801 * cfgloop.h: Likewise.
1802 * cfgloopanal.c: Likewise.
1803 * cfgloopmanip.c: Likewise.
1804 * cfgrtl.c: Likewise.
1805 * cgraph.c: Likewise.
1806 * cgraphbuild.c: Likewise.
1807 * cgraphclones.c: Likewise.
1808 * cgraphunit.c: Likewise.
1809 * cilk-common.c: Likewise.
1810 * combine-stack-adj.c: Likewise.
1811 * combine.c: Likewise.
1812 * compare-elim.c: Likewise.
1813 * convert.c: Likewise.
1814 * coverage.c: Likewise.
1815 * cppbuiltin.c: Likewise.
1816 * cprop.c: Likewise.
1818 * cselib.c: Likewise.
1819 * data-streamer-in.c: Likewise.
1820 * data-streamer-out.c: Likewise.
1821 * data-streamer.c: Likewise.
1822 * dbxout.c: Likewise.
1825 * debug.c: Likewise.
1826 * df-core.c: Likewise.
1827 * df-problems.c: Likewise.
1828 * df-scan.c: Likewise.
1831 * diagnostic-core.h: Likewise.
1832 * diagnostic.c: Likewise.
1833 * dojump.c: Likewise.
1834 * dominance.c: Likewise.
1835 * domwalk.c: Likewise.
1836 * double-int.c: Likewise.
1838 * dumpfile.c: Likewise.
1839 * dumpfile.h: Likewise.
1840 * dwarf2asm.c: Likewise.
1841 * dwarf2cfi.c: Likewise.
1842 * dwarf2out.c: Likewise.
1843 * emit-rtl.c: Likewise.
1844 * et-forest.c: Likewise.
1845 * except.c: Likewise.
1846 * explow.c: Likewise.
1847 * expmed.c: Likewise.
1849 * final.c: Likewise.
1850 * fixed-value.c: Likewise.
1851 * fold-const.c: Likewise.
1852 * function.c: Likewise.
1853 * fwprop.c: Likewise.
1854 * gcc-plugin.h: Likewise.
1856 * generic-match-head.c: Likewise.
1857 * ggc-page.c: Likewise.
1858 * gimple-builder.c: Likewise.
1859 * gimple-expr.c: Likewise.
1860 * gimple-fold.c: Likewise.
1861 * gimple-iterator.c: Likewise.
1862 * gimple-low.c: Likewise.
1863 * gimple-match-head.c: Likewise.
1864 * gimple-pretty-print.c: Likewise.
1865 * gimple-ssa-isolate-paths.c: Likewise.
1866 * gimple-ssa-strength-reduction.c: Likewise.
1867 * gimple-streamer-in.c: Likewise.
1868 * gimple-streamer-out.c: Likewise.
1869 * gimple-streamer.h: Likewise.
1870 * gimple-walk.c: Likewise.
1871 * gimple.c: Likewise.
1872 * gimplify-me.c: Likewise.
1873 * gimplify.c: Likewise.
1874 * godump.c: Likewise.
1875 * graph.c: Likewise.
1876 * graphite-blocking.c: Likewise.
1877 * graphite-dependences.c: Likewise.
1878 * graphite-interchange.c: Likewise.
1879 * graphite-isl-ast-to-gimple.c: Likewise.
1880 * graphite-optimize-isl.c: Likewise.
1881 * graphite-poly.c: Likewise.
1882 * graphite-scop-detection.c: Likewise.
1883 * graphite-sese-to-poly.c: Likewise.
1884 * graphite.c: Likewise.
1885 * haifa-sched.c: Likewise.
1886 * hw-doloop.c: Likewise.
1887 * ifcvt.c: Likewise.
1888 * init-regs.c: Likewise.
1889 * input.c: Likewise.
1890 * internal-fn.c: Likewise.
1891 * ipa-chkp.c: Likewise.
1892 * ipa-comdats.c: Likewise.
1893 * ipa-cp.c: Likewise.
1894 * ipa-devirt.c: Likewise.
1895 * ipa-icf-gimple.c: Likewise.
1896 * ipa-icf.c: Likewise.
1897 * ipa-inline-analysis.c: Likewise.
1898 * ipa-inline-transform.c: Likewise.
1899 * ipa-inline.c: Likewise.
1900 * ipa-polymorphic-call.c: Likewise.
1901 * ipa-profile.c: Likewise.
1902 * ipa-prop.c: Likewise.
1903 * ipa-pure-const.c: Likewise.
1904 * ipa-ref.c: Likewise.
1905 * ipa-reference.c: Likewise.
1906 * ipa-split.c: Likewise.
1907 * ipa-utils.c: Likewise.
1908 * ipa-visibility.c: Likewise.
1910 * ira-build.c: Likewise.
1911 * ira-color.c: Likewise.
1912 * ira-conflicts.c: Likewise.
1913 * ira-costs.c: Likewise.
1914 * ira-emit.c: Likewise.
1915 * ira-lives.c: Likewise.
1918 * langhooks.c: Likewise.
1920 * loop-doloop.c: Likewise.
1921 * loop-init.c: Likewise.
1922 * loop-invariant.c: Likewise.
1923 * loop-iv.c: Likewise.
1924 * loop-unroll.c: Likewise.
1925 * lower-subreg.c: Likewise.
1926 * lra-assigns.c: Likewise.
1927 * lra-coalesce.c: Likewise.
1928 * lra-constraints.c: Likewise.
1929 * lra-eliminations.c: Likewise.
1930 * lra-lives.c: Likewise.
1931 * lra-remat.c: Likewise.
1932 * lra-spills.c: Likewise.
1934 * lto-cgraph.c: Likewise.
1935 * lto-compress.c: Likewise.
1936 * lto-opts.c: Likewise.
1937 * lto-section-in.c: Likewise.
1938 * lto-section-out.c: Likewise.
1939 * lto-streamer-in.c: Likewise.
1940 * lto-streamer-out.c: Likewise.
1941 * lto-streamer.c: Likewise.
1943 * mode-switching.c: Likewise.
1944 * modulo-sched.c: Likewise.
1945 * omega.c: Likewise.
1946 * omp-low.c: Likewise.
1947 * optabs.c: Likewise.
1948 * opts-global.c: Likewise.
1950 * passes.c: Likewise.
1951 * plugin.c: Likewise.
1952 * postreload-gcse.c: Likewise.
1953 * postreload.c: Likewise.
1954 * predict.c: Likewise.
1955 * pretty-print.h: Likewise.
1956 * print-rtl.c: Likewise.
1957 * print-tree.c: Likewise.
1958 * profile.c: Likewise.
1960 * realmpfr.c: Likewise.
1961 * recog.c: Likewise.
1963 * reg-stack.c: Likewise.
1964 * regcprop.c: Likewise.
1965 * reginfo.c: Likewise.
1966 * regrename.c: Likewise.
1967 * regstat.c: Likewise.
1968 * reload.c: Likewise.
1969 * reload1.c: Likewise.
1970 * reorg.c: Likewise.
1971 * resource.c: Likewise.
1972 * rtl-chkp.c: Likewise.
1973 * rtl-error.c: Likewise.
1974 * rtlanal.c: Likewise.
1975 * rtlhooks.c: Likewise.
1976 * sanopt.c: Likewise.
1977 * sched-deps.c: Likewise.
1978 * sched-ebb.c: Likewise.
1979 * sched-rgn.c: Likewise.
1980 * sched-vis.c: Likewise.
1981 * sdbout.c: Likewise.
1982 * sel-sched-dump.c: Likewise.
1983 * sel-sched-ir.c: Likewise.
1984 * sel-sched.c: Likewise.
1986 * shrink-wrap.c: Likewise.
1987 * simplify-rtx.c: Likewise.
1988 * stack-ptr-mod.c: Likewise.
1989 * statistics.c: Likewise.
1991 * stor-layout.c: Likewise.
1992 * store-motion.c: Likewise.
1993 * streamer-hooks.c: Likewise.
1994 * stringpool.c: Likewise.
1995 * symtab.c: Likewise.
1996 * target-globals.c: Likewise.
1997 * targhooks.c: Likewise.
1998 * toplev.c: Likewise.
1999 * tracer.c: Likewise.
2000 * trans-mem.c: Likewise.
2001 * tree-affine.c: Likewise.
2002 * tree-browser.c: Likewise.
2003 * tree-call-cdce.c: Likewise.
2004 * tree-cfg.c: Likewise.
2005 * tree-cfgcleanup.c: Likewise.
2006 * tree-chkp-opt.c: Likewise.
2007 * tree-chkp.c: Likewise.
2008 * tree-chrec.c: Likewise.
2009 * tree-complex.c: Likewise.
2010 * tree-data-ref.c: Likewise.
2011 * tree-dfa.c: Likewise.
2012 * tree-diagnostic.c: Likewise.
2013 * tree-dump.c: Likewise.
2014 * tree-eh.c: Likewise.
2015 * tree-emutls.c: Likewise.
2016 * tree-if-conv.c: Likewise.
2017 * tree-inline.c: Likewise.
2018 * tree-into-ssa.c: Likewise.
2019 * tree-iterator.c: Likewise.
2020 * tree-loop-distribution.c: Likewise.
2021 * tree-nested.c: Likewise.
2022 * tree-nrv.c: Likewise.
2023 * tree-object-size.c: Likewise.
2024 * tree-outof-ssa.c: Likewise.
2025 * tree-parloops.c: Likewise.
2026 * tree-phinodes.c: Likewise.
2027 * tree-predcom.c: Likewise.
2028 * tree-pretty-print.c: Likewise.
2029 * tree-profile.c: Likewise.
2030 * tree-scalar-evolution.c: Likewise.
2031 * tree-sra.c: Likewise.
2032 * tree-ssa-address.c: Likewise.
2033 * tree-ssa-alias.c: Likewise.
2034 * tree-ssa-ccp.c: Likewise.
2035 * tree-ssa-coalesce.c: Likewise.
2036 * tree-ssa-copy.c: Likewise.
2037 * tree-ssa-copyrename.c: Likewise.
2038 * tree-ssa-dce.c: Likewise.
2039 * tree-ssa-dom.c: Likewise.
2040 * tree-ssa-dse.c: Likewise.
2041 * tree-ssa-forwprop.c: Likewise.
2042 * tree-ssa-ifcombine.c: Likewise.
2043 * tree-ssa-live.c: Likewise.
2044 * tree-ssa-loop-ch.c: Likewise.
2045 * tree-ssa-loop-im.c: Likewise.
2046 * tree-ssa-loop-ivcanon.c: Likewise.
2047 * tree-ssa-loop-ivopts.c: Likewise.
2048 * tree-ssa-loop-manip.c: Likewise.
2049 * tree-ssa-loop-niter.c: Likewise.
2050 * tree-ssa-loop-prefetch.c: Likewise.
2051 * tree-ssa-loop-unswitch.c: Likewise.
2052 * tree-ssa-loop.c: Likewise.
2053 * tree-ssa-math-opts.c: Likewise.
2054 * tree-ssa-operands.c: Likewise.
2055 * tree-ssa-phiopt.c: Likewise.
2056 * tree-ssa-phiprop.c: Likewise.
2057 * tree-ssa-pre.c: Likewise.
2058 * tree-ssa-propagate.c: Likewise.
2059 * tree-ssa-reassoc.c: Likewise.
2060 * tree-ssa-sccvn.c: Likewise.
2061 * tree-ssa-scopedtables.c: Likewise.
2062 * tree-ssa-sink.c: Likewise.
2063 * tree-ssa-strlen.c: Likewise.
2064 * tree-ssa-structalias.c: Likewise.
2065 * tree-ssa-tail-merge.c: Likewise.
2066 * tree-ssa-ter.c: Likewise.
2067 * tree-ssa-threadedge.c: Likewise.
2068 * tree-ssa-threadupdate.c: Likewise.
2069 * tree-ssa-uncprop.c: Likewise.
2070 * tree-ssa-uninit.c: Likewise.
2071 * tree-ssa.c: Likewise.
2072 * tree-ssanames.c: Likewise.
2073 * tree-stdarg.c: Likewise.
2074 * tree-streamer-in.c: Likewise.
2075 * tree-streamer-out.c: Likewise.
2076 * tree-streamer.c: Likewise.
2077 * tree-switch-conversion.c: Likewise.
2078 * tree-tailcall.c: Likewise.
2079 * tree-vect-data-refs.c: Likewise.
2080 * tree-vect-generic.c: Likewise.
2081 * tree-vect-loop-manip.c: Likewise.
2082 * tree-vect-loop.c: Likewise.
2083 * tree-vect-patterns.c: Likewise.
2084 * tree-vect-slp.c: Likewise.
2085 * tree-vect-stmts.c: Likewise.
2086 * tree-vectorizer.c: Likewise.
2087 * tree-vrp.c: Likewise.
2090 * ubsan.c: Likewise.
2091 * valtrack.c: Likewise.
2092 * value-prof.c: Likewise.
2093 * var-tracking.c: Likewise.
2094 * varasm.c: Likewise.
2095 * varpool.c: Likewise.
2096 * vmsdbgout.c: Likewise.
2097 * vtable-verify.c: Likewise.
2099 * wide-int.cc: Likewise.
2100 * xcoffout.c: Likewise.
2101 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
2102 * common/common-targhooks.c: Likewise.
2103 * config/aarch64/aarch64-builtins.c: Likewise.
2104 * config/aarch64/aarch64.c: Likewise.
2105 * config/alpha/alpha.c: Likewise.
2106 * config/arc/arc.c: Likewise.
2107 * config/arm/aarch-common.c: Likewise.
2108 * config/arm/arm-builtins.c: Likewise.
2109 * config/arm/arm-c.c: Likewise.
2110 * config/arm/arm.c: Likewise.
2111 * config/avr/avr-c.c: Likewise.
2112 * config/avr/avr-log.c: Likewise.
2113 * config/avr/avr.c: Likewise.
2114 * config/bfin/bfin.c: Likewise.
2115 * config/c6x/c6x.c: Likewise.
2116 * config/cr16/cr16.c: Likewise.
2117 * config/cris/cris.c: Likewise.
2118 * config/darwin-c.c: Likewise.
2119 * config/darwin.c: Likewise.
2120 * config/default-c.c: Likewise.
2121 * config/epiphany/epiphany.c: Likewise.
2122 * config/epiphany/mode-switch-use.c: Likewise.
2123 * config/epiphany/resolve-sw-modes.c: Likewise.
2124 * config/fr30/fr30.c: Likewise.
2125 * config/frv/frv.c: Likewise.
2126 * config/ft32/ft32.c: Likewise.
2127 * config/glibc-c.c: Likewise.
2128 * config/h8300/h8300.c: Likewise.
2129 * config/i386/i386-c.c: Likewise.
2130 * config/i386/i386.c: Likewise.
2131 * config/i386/msformat-c.c: Likewise.
2132 * config/i386/winnt-cxx.c: Likewise.
2133 * config/i386/winnt-stubs.c: Likewise.
2134 * config/i386/winnt.c: Likewise.
2135 * config/ia64/ia64-c.c: Likewise.
2136 * config/ia64/ia64.c: Likewise.
2137 * config/iq2000/iq2000.c: Likewise.
2138 * config/lm32/lm32.c: Likewise.
2139 * config/m32c/m32c-pragma.c: Likewise.
2140 * config/m32c/m32c.c: Likewise.
2141 * config/m32r/m32r.c: Likewise.
2142 * config/m68k/m68k.c: Likewise.
2143 * config/mcore/mcore.c: Likewise.
2144 * config/mep/mep-pragma.c: Likewise.
2145 * config/mep/mep.c: Likewise.
2146 * config/microblaze/microblaze-c.c: Likewise.
2147 * config/microblaze/microblaze.c: Likewise.
2148 * config/mips/mips.c: Likewise.
2149 * config/mmix/mmix.c: Likewise.
2150 * config/mn10300/mn10300.c: Likewise.
2151 * config/moxie/moxie.c: Likewise.
2152 * config/msp430/msp430-c.c: Likewise.
2153 * config/msp430/msp430.c: Likewise.
2154 * config/nds32/nds32-cost.c: Likewise.
2155 * config/nds32/nds32-fp-as-gp.c: Likewise.
2156 * config/nds32/nds32-intrinsic.c: Likewise.
2157 * config/nds32/nds32-isr.c: Likewise.
2158 * config/nds32/nds32-md-auxiliary.c: Likewise.
2159 * config/nds32/nds32-memory-manipulation.c: Likewise.
2160 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2161 * config/nds32/nds32-predicates.c: Likewise.
2162 * config/nds32/nds32.c: Likewise.
2163 * config/nios2/nios2.c: Likewise.
2164 * config/nvptx/nvptx.c: Likewise.
2165 * config/pa/pa.c: Likewise.
2166 * config/pdp11/pdp11.c: Likewise.
2167 * config/rl78/rl78-c.c: Likewise.
2168 * config/rl78/rl78.c: Likewise.
2169 * config/rs6000/rs6000-c.c: Likewise.
2170 * config/rs6000/rs6000.c: Likewise.
2171 * config/rx/rx.c: Likewise.
2172 * config/s390/s390-c.c: Likewise.
2173 * config/s390/s390.c: Likewise.
2174 * config/sh/sh-c.c: Likewise.
2175 * config/sh/sh-mem.cc: Likewise.
2176 * config/sh/sh.c: Likewise.
2177 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2178 * config/sh/sh_treg_combine.cc: Likewise.
2179 * config/sol2-c.c: Likewise.
2180 * config/sol2-cxx.c: Likewise.
2181 * config/sol2-stubs.c: Likewise.
2182 * config/sol2.c: Likewise.
2183 * config/sparc/sparc-c.c: Likewise.
2184 * config/sparc/sparc.c: Likewise.
2185 * config/spu/spu-c.c: Likewise.
2186 * config/spu/spu.c: Likewise.
2187 * config/stormy16/stormy16.c: Likewise.
2188 * config/tilegx/mul-tables.c: Likewise.
2189 * config/tilegx/tilegx-c.c: Likewise.
2190 * config/tilegx/tilegx.c: Likewise.
2191 * config/tilepro/mul-tables.c: Likewise.
2192 * config/tilepro/tilepro-c.c: Likewise.
2193 * config/tilepro/tilepro.c: Likewise.
2194 * config/v850/v850-c.c: Likewise.
2195 * config/v850/v850.c: Likewise.
2196 * config/vax/vax.c: Likewise.
2197 * config/visium/visium.c: Likewise.
2198 * config/vms/vms-c.c: Likewise.
2199 * config/vms/vms.c: Likewise.
2200 * config/vxworks.c: Likewise.
2201 * config/winnt-c.c: Likewise.
2202 * config/xtensa/xtensa.c: Likewise.
2204 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
2206 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
2208 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
2210 2015-06-17 Richard Biener <rguenther@suse.de>
2212 PR tree-optimization/66251
2213 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
2214 stmts for SLP strided stores.
2217 2015-05-22 Richard Biener <rguenther@suse.de>
2219 PR tree-optimization/66251
2220 * tree-vect-stmts.c (vectorizable_conversion): Properly
2221 set STMT_VINFO_VEC_STMT even for the SLP case.
2223 2015-05-26 Michael Matz <matz@suse.de>
2226 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2227 STMT_VINFO_VEC_STMT, also with SLP.
2229 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
2232 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
2233 (*avx_addsubv4df3_1s): Ditto.
2234 (*sse3_addsubv2df3_1): Ditto.
2235 (*sse3_addsubv2df3_1s): Ditto.
2236 (*avx_addsubv8sf3_1): Ditto.
2237 (*avx_addsubv8sf3_1s): Ditto.
2238 (*sse3_addsubv4sf3_1): Ditto.
2239 (*sse3_addsubv4sf3_1s): Ditto.
2241 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
2243 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
2244 (SYSROOT_SUFFIX_SPEC): Update.
2245 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
2246 (STARTFILE_PREFIX_SPEC): Update.
2247 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
2248 (MULTILIB_REQUIRED): New.
2249 (MULTILIB_OSDIRNAMES): New.
2250 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
2251 (MULTILIB_REQUIRED): New.
2252 (MULTILIB_OSDIRNAMES): New.
2254 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
2256 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
2257 * config/aarch64/aarch64-options-extensions.def: Update "fP",
2258 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
2259 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
2260 (AARCH64_FL_PAN): New.
2261 (AARCH64_FL_LOR): New.
2262 (AARCH64_FL_RDMA): New.
2263 (AARCH64_FL_FOR_ARCH8_1): New.
2264 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
2265 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
2267 2015-06-16 Martin Liska <mliska@suse.cz>
2269 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
2270 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
2273 2015-06-16 Richard Biener <rguenther@suse.de>
2275 * tree-vect-stmts.c (vectorizable_store): Adjust.
2276 (vectorizable_load): Likewise.
2277 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2279 (vect_create_data_ref_ptr): Likewise.
2280 (bump_vector_ptr): Adjust.
2282 2015-06-16 Richard Biener <rguenther@suse.de>
2284 * tree-vect-stmts.c (vectorizable_load): Properly start loads
2285 with the first element if this is grouped loads.
2287 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
2289 * config/arm/arm-protos.h (struct tune_params): Rename
2290 log_op_non_sc to log_op_non_short_circuit, and rename enum
2291 values to expand SC to SHORT_CIRCUIT.
2292 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
2293 to LOG_OP_NON_SHORT_CIRCUIT.
2294 (arm_fastmul_tune):Likewise
2295 (arm_strongarm_tune): Likewise.
2296 (arm_xscale_tune): Likewise.
2297 (arm_9e_tune): Likewise.
2298 (arm_marvell_pj4_tune): Likewise.
2299 (arm_v6t2_tune): Likewise.
2300 (arm_cortex_tune): Likewise.
2301 (arm_cortex_a8_tune): Likewise.
2302 (arm_cortex_a7_tune): Likewise.
2303 (arm_cortex_a15_tune): Likewise.
2304 (arm_cortex_a53_tune): Likewise.
2305 (arm_cortex_a57_tune): Likewise.
2306 (arm_xgene1_tune): Likewise.
2307 (arm_cortex_a5_tune): Likewise.
2308 (arm_cortex_a9_tune): Likewise.
2309 (arm_cortex_a12_tune): Likewise.
2310 (arm_v7m_tune): Likewise.
2311 (arm_cortex_m7_tune): Likewise.
2312 (arm_v6m_tune): Likewise.
2313 (arm_fa726te_tune): Likewise.
2315 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
2317 * altivec.md: Delete UNSPEC_VMLADDUHM.
2318 (mulv4si3_p8): New pattern.
2319 (mulv4si3): Use it for POWER8.
2320 (mulv8hi3): Use vmladduhm with zero addend.
2321 (altivec_vmladduhm): Descriptive RTL.
2323 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
2325 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
2326 to use neon_move instead of mov_imm.
2327 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
2328 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
2330 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
2331 aarch64_float_const_zero_rtx_p check before TFmode check.
2332 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
2334 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
2335 code and attributes to match. Change condition from register_operand
2336 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
2337 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
2340 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
2343 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
2346 2015-06-14 Shiva Chen <shiva0217@gmail.com>
2348 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
2349 HOST_WIDE_INT parameter.
2351 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
2354 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
2355 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
2357 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
2359 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
2361 * rtl.h (classify_insn): Declare.
2362 * emit-rtl.c (classify_insn): Move to...
2363 * rtl.c: ...here and add generator support.
2364 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
2365 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
2366 * genemit.c (gen_emit_seq): New function.
2367 (gen_expand, gen_split): Use it.
2369 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2371 * tree.c (make_vector_stat): Fix comment to state that the
2372 function returns a VECTOR_CST.
2374 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
2376 * gensupport.h (add_implicit_parallel): Declare.
2377 * genrecog.c (add_implicit_parallel): Move to...
2378 * gensupport.c (add_implicit_parallel): ...here.
2379 (process_one_cond_exec): Use it.
2380 * genemit.c (gen_insn): Likewise.
2382 2015-06-13 Iain Sandoe <iain@codesourcery.com>
2385 * passes.c (rest_of_decl_compilation): Do not register globals for
2386 early debug if they are declared in built-ins.
2388 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
2390 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
2392 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2394 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
2396 (noce_try_cmove_arith): Likewise.
2397 (noce_get_alt_condition): Likewise.
2399 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2401 * common/config/i386/i386-common.c
2402 (OPTION_MASK_ISA_MWAITX_SET): New.
2403 (ix86_handle_option): Handle mwaitx.
2404 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
2405 (x86_64-*-*): Likewise.
2406 * config/i386/mwaitxintrin.h: New header.
2407 * config/i386/cpuid.h (bit_MWAITX): Define.
2408 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2410 * config/i386/i386.opt (mwaitx): New.
2411 * config/i386/i386-builtin-types.def
2412 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
2413 * config/i386/i386-c.c: Define __MWAITX__ if needed.
2414 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
2416 (ix86_option_override_internal): Handle new option.
2417 (processor_alias_table): Added PTA_MWAITX.
2418 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
2419 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
2420 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
2421 IX86_BUILTIN_MONITORX built-ins.
2422 * config/i386/i386.h (TARGET_MWAITX): New.
2423 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
2425 (mwaitx): New pattern.
2426 (monitorx_<mode>): New pattern.
2427 * config/i386/x86intrin.h: Include mwaitxintrin.h.
2428 * doc/extend.texi: Document monitorx and mwaitx builtins.
2429 * doc/invoke.texi: Document -mmwaitx option.
2431 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
2433 * emit-rtl.c (need_atomic_barrier_p): Mask model with
2434 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
2436 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
2438 * dbxout.c (xcoff_debug_hooks): Provide a function for
2439 register_main_translation_unit hook.
2441 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
2443 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
2444 variants cases from switch.
2445 (rs6000_post_atomic_barrier): Same.
2446 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
2447 (rs6000_expand_atomic_exchange): Same.
2448 (rs6000_expand_atomic_op): Same.
2449 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
2450 SYNC variants cases from switch.
2451 (atomic_load): Same.
2452 (atomic_store): Same.
2454 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
2456 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
2459 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
2462 * dwarf2out.c (check_die): Check for common duplicate attributes.
2463 (add_location_or_const_value_attribute): Do not add duplicate
2465 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
2467 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
2468 (gen_type_die_with_usage): Call check_die.
2469 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
2471 2015-06-11 Jason Merrill <jason@redhat.com>
2473 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
2476 2015-06-11 Marek Polacek <polacek@redhat.com>
2478 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
2480 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
2483 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
2484 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
2485 (*addx_extend_sp32): Fix pasto.
2486 (*subx_extend): Rename into...
2487 (*subx_extend_sp32): ...this.
2488 (*adddi3_extend_sp32): Add earlyclobber.
2489 (*subdi3_insn_sp32): Likewise.
2490 (*subdi3_extend_sp32): Likewise.
2491 (*and_not_di_sp32): Likewise.
2492 (*or_not_di_sp32): Likewise.
2493 (*xor_not_di_sp32): Likewise.
2494 (*negdi2_sp32): Likewise.
2495 (*one_cmpldi2_sp32): Likewise.
2497 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2499 * debug.h (struct gcc_debug_hooks): Add a
2500 register_main_translation_unit hook.
2501 * debug.c (do_nothing_debug_hooks): Provide a function for this
2503 * dbxout.c (dbx_debug_hooks): Likewise.
2504 * sdbout.c (sdb_debug_hooks): Likewise.
2505 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2506 * dwarf2out.c (main_translation_unit): New global variable.
2507 (dwarf2out_register_main_translation_unit): New function
2508 implementing the new hook.
2509 (dwarf2_debug_hooks): Assign
2510 dwarf2out_register_main_translation_unit to this new hook.
2511 (dwarf2out_init): Associate any main translation unit to
2514 2015-06-11 Marek Polacek <polacek@redhat.com>
2516 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
2518 2015-06-11 Marek Polacek <polacek@redhat.com>
2520 * match.pd: Use single_use throughout.
2522 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2524 * config/arm/arm.c (arm_option_params_internal): When optimising
2525 for speed set max_insns_skipped when arm_restrict_it.
2527 2015-06-11 Christian Bruel <christian.bruel@st.com>
2530 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
2532 (arm_cpu_builtins): New function.
2533 (arm_pragma_target_parse): Call arm_cpu_builtins.
2534 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
2535 (arm_register_target_pragmas): Likewise.
2536 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
2537 Call arm_register_target_pragmas.
2538 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
2539 (arm_pragma_target_parse): Likewise.
2541 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
2543 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
2544 of the second operand.
2546 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
2549 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2550 to prepare mask operand for AVX512 modes.
2552 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2555 * doc/md.texi (Machine Constraints): Document that on the PowerPC
2556 if you use a constraint that targets a VSX register, you must use
2557 %x<n> in the template.
2559 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
2561 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
2562 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
2563 (define_insn "trap"): New definition.
2565 2015-06-10 Richard Biener <rguenther@suse.de>
2567 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
2569 (vect_supported_load_permutation_p): ... here. Handle
2570 supportable permutations in reductions.
2571 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
2572 for vectorizing strided group loads.
2574 2015-06-10 Jakub Jelinek <jakub@redhat.com>
2577 * config/i386/i386.c (ix86_split_long_move): For collisions
2578 involving direct tls segment refs, move the UNSPEC_TP possibly
2579 wrapped in ZERO_EXTEND out of the address for lea, to each of
2582 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2584 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
2585 dmb sy. Adjust tabs.
2587 2015-06-10 Tom de Vries <tom@codesourcery.com>
2589 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
2591 2015-06-10 Martin Liska <mliska@suse.cz>
2594 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
2595 all enum values in mem_alloc_origin.
2596 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
2598 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
2599 * bitmap.c (bitmap_register): Likewise.
2600 (dump_bitmap_statistics): Likewise.
2601 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2602 (ggc_record_overhead): Likewise.
2603 * hash-map.h: Likewise.
2604 * hash-set.h: Likewise.
2605 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
2606 * hash-table.h: Likewise.
2607 * vec.c (vec_prefix::register_overhead): Likewise.
2608 (vec_prefix::release_overhead): Likewise.
2609 (dump_vec_loc_statistics): Likewise.
2611 2015-06-09 Christian Bruel <christian.bruel@st.com>
2614 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
2615 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
2616 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
2617 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
2618 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
2619 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
2620 (arm_valid_target_attribute_p): Likewise.
2621 (arm_set_current_function, arm_can_inline_p): Likewise.
2622 (arm_valid_target_attribute_rec): Likewise.
2623 (arm_previous_fndecl): New variable.
2624 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2625 (TARGET_CAN_INLINE_P): Define.
2626 (arm_asm_trampoline_template): Emit mode.
2627 (arm_file_start): Don't set unified syntax.
2628 (arm_declare_function_name): Set unified syntax and mode.
2629 (arm_option_override): Init target_option_default_node.
2630 and target_option_current_node.
2631 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
2632 (*call_symbol): Likewise.
2633 * doc/extend.texi: Document ARM/Thumb target attribute.
2634 * doc/invoke.texi: Likewise.
2636 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2639 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2640 PR rtl-optimization/64164
2641 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2642 * tree-ssa-copyrename.c: Removed.
2643 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2644 -ftree-coalesce-vars.
2645 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2646 * common.opt (ftree-copyrename): Ignore.
2647 (ftree-coalesce-inlined-vars): Likewise.
2648 * doc/invoke.texi: Remove the ignored options above.
2649 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2650 * tree-ssa-coalesce.h: ... here.
2651 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2652 headers required by it.
2653 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2654 across variables when flag_tree_coalesce_vars. Check register
2655 use and promoted modes to allow coalescing. Moved to
2656 tree-ssa-coalesce.c.
2657 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2658 with its member functions to tree-ssa-coalesce.c.
2659 (var_map_base_init): Likewise. Renamed to
2660 compute_samebase_partition_bases.
2661 (partition_view_normal): Drop want_bases parameter.
2662 (partition_view_bitmap): Likewise.
2663 * tree-ssa-live.h: Adjust declarations.
2664 * tree-ssa-coalesce.c: Include explow.h.
2665 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2666 default defs at the entry point.
2667 (dump_part_var_map): New.
2668 (compute_optimized_partition_bases): New, called by...
2669 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2670 of compute_samebase_partition_bases. Adjust.
2671 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2672 * cfgexpand.c (leader_merge): New.
2673 (get_rtl_for_parm_ssa_default_def): New.
2674 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2675 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2676 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2677 redundant MEM attr setting.
2678 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2680 (expand_one_stack_var): ... this. New wrapper to check and
2681 skip already expanded SSA partitions.
2682 (record_alignment_for_reg_var): New, factored out of...
2683 (expand_one_var): ... this.
2684 (expand_one_ssa_partition): New.
2685 (adjust_one_expanded_partition_var): New.
2686 (expand_one_register_var): Check and skip already expanded SSA
2688 (expand_used_vars): Don't create DECLs for anonymous SSA
2689 names. Expand all SSA partitions, then adjust all SSA names.
2690 (pass::execute): Replace the loops that set
2691 SA.partition_to_pseudo from partition leaders and cleared
2692 DECL_RTL for multi-location variables, and that which used to
2693 rename vars and set attrs, with one that clears DECL_RTL and
2694 checks that PARMs and RESULTs default_defs match DECL_RTL.
2695 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2696 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2697 * explow.c (promote_ssa_mode): New.
2698 * explow.h (promote_ssa_mode): Declare.
2699 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2700 * function.c: Include cfgexpand.h.
2701 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2702 (use_register_for_parm_decl): Wrapper for the above to
2703 special-case the result_ptr.
2704 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2705 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2707 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2708 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2709 (assign_parm_setup_block): Prefer SSA-assigned location.
2710 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2711 if stack_parm is NULL.
2712 (assign_parm_setup_stack): Prefer SSA-assigned location.
2713 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2714 rtl before testing for pointer bounds. Special-case result_ptr.
2715 (expand_function_start): Maybe reset DECL_RTL of result.
2716 Prefer SSA-assigned location for result and static chain.
2717 Factor out DECL_RESULT and SET_DECL_RTL.
2718 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2719 anonymous SSA names. Use promote_ssa_mode.
2720 (get_temp_reg): Likewise.
2721 (remove_ssa_form): Adjust.
2722 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2723 and get its reg_usage for reg invalidation.
2724 (compute_bb_dataflow): Pass it insn.
2725 (emit_notes_in_bb): Likewise.
2726 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2727 fail assert on conversion between unsigned types.
2729 2015-06-09 Tom de Vries <tom@codesourcery.com>
2731 PR tree-optimization/65460
2732 * omp-low.c (expand_omp_target): Set parallelized_function on
2733 cgraph_node for child_fn.
2735 2015-06-09 Tom de Vries <tom@codesourcery.com>
2737 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
2738 parallelized_function before add_new_function.
2740 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
2742 * gcc-plugin.h: Move decls to plugin.h and include it.
2743 * plugin.h: Relocate decls from gcc-plugin.h
2744 * ggc-page.c: Include required header files.
2745 * passes.c: Likewise.
2746 * cgraphunit.c: Likewise.
2748 2015-06-09 Tom de Vries <tom@codesourcery.com>
2750 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
2752 2015-06-09 Jason Merrill <jason@redhat.com>
2755 * toplev.c (check_global_declaration): Don't warn about a clone.
2757 2015-06-09 Marek Polacek <polacek@redhat.com>
2759 PR tree-optimization/66299
2760 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
2761 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
2764 2015-06-09 Richard Biener <rguenther@suse.de>
2766 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
2767 (vect_analyze_slp_instance): Instead do not falsely drop
2770 2015-06-09 Richard Biener <rguenther@suse.de>
2773 * match.pd: Handle A % (unsigned)(1 << B).
2775 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
2777 * varasm.c (output_object_block_htab): Remove.
2778 (output_object_block_compare): New.
2779 (output_object_blocks): Sort named object_blocks before outputting
2782 2015-06-09 Richard Biener <rguenther@suse.de>
2784 PR tree-optimization/66419
2785 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
2786 consider GROUP_GAP when detecting a perfect subchain.
2788 2015-06-09 Nick Clifton <nickc@redhat.com>
2790 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
2791 place read only data in the .frodata section.
2793 2015-06-09 Shiva Chen <shiva0217@gmail.com>
2795 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
2796 (atomic_store<mode>): Likewise.
2798 2015-06-09 Richard Biener <rguenther@suse.de>
2800 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
2802 2015-06-09 Richard Biener <rguenther@suse.de>
2805 * tree-inline.c (insert_init_debug_bind): Unshare value.
2807 2015-06-09 Richard Biener <rguenther@suse.de>
2809 PR tree-optimization/66396
2810 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2811 Rename virtual operands.
2813 2015-06-09 Tom de Vries <tom@codesourcery.com>
2815 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
2816 always return false.
2818 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2820 PR rtl-optimization/64164
2821 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2822 * tree-ssa-copyrename.c: Removed.
2823 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2824 -ftree-coalesce-vars.
2825 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2826 * common.opt (ftree-copyrename): Ignore.
2827 (ftree-coalesce-inlined-vars): Likewise.
2828 * doc/invoke.texi: Remove the ignored options above.
2829 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2830 * tree-ssa-coalesce.h: ... here.
2831 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2832 headers required by it.
2833 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2834 across variables when flag_tree_coalesce_vars. Check register
2835 use and promoted modes to allow coalescing. Moved to
2836 tree-ssa-coalesce.c.
2837 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2838 with its member functions to tree-ssa-coalesce.c.
2839 (var_map_base_init): Likewise. Renamed to
2840 compute_samebase_partition_bases.
2841 (partition_view_normal): Drop want_bases parameter.
2842 (partition_view_bitmap): Likewise.
2843 * tree-ssa-live.h: Adjust declarations.
2844 * tree-ssa-coalesce.c: Include explow.h.
2845 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2846 default defs at the entry point.
2847 (dump_part_var_map): New.
2848 (compute_optimized_partition_bases): New, called by...
2849 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2850 of compute_samebase_partition_bases. Adjust.
2851 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2852 * cfgexpand.c (leader_merge): New.
2853 (get_rtl_for_parm_ssa_default_def): New.
2854 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2855 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2856 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2857 redundant MEM attr setting.
2858 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2860 (expand_one_stack_var): ... this. New wrapper to check and
2861 skip already expanded SSA partitions.
2862 (record_alignment_for_reg_var): New, factored out of...
2863 (expand_one_var): ... this.
2864 (expand_one_ssa_partition): New.
2865 (adjust_one_expanded_partition_var): New.
2866 (expand_one_register_var): Check and skip already expanded SSA
2868 (expand_used_vars): Don't create DECLs for anonymous SSA
2869 names. Expand all SSA partitions, then adjust all SSA names.
2870 (pass::execute): Replace the loops that set
2871 SA.partition_to_pseudo from partition leaders and cleared
2872 DECL_RTL for multi-location variables, and that which used to
2873 rename vars and set attrs, with one that clears DECL_RTL and
2874 checks that PARMs and RESULTs default_defs match DECL_RTL.
2875 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2876 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2877 * explow.c (promote_ssa_mode): New.
2878 * explow.h (promote_ssa_mode): Declare.
2879 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2880 * function.c: Include cfgexpand.h.
2881 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2882 (use_register_for_parm_decl): Wrapper for the above to
2883 special-case the result_ptr.
2884 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2885 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2887 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2888 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2889 (assign_parm_setup_block): Prefer SSA-assigned location.
2890 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2891 if stack_parm is NULL.
2892 (assign_parm_setup_stack): Prefer SSA-assigned location.
2893 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2894 rtl before testing for pointer bounds. Special-case result_ptr.
2895 (expand_function_start): Maybe reset DECL_RTL of result.
2896 Prefer SSA-assigned location for result and static chain.
2897 Factor out DECL_RESULT and SET_DECL_RTL.
2898 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2899 anonymous SSA names. Use promote_ssa_mode.
2900 (get_temp_reg): Likewise.
2901 (remove_ssa_form): Adjust.
2902 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2903 and get its reg_usage for reg invalidation.
2904 (compute_bb_dataflow): Pass it insn.
2905 (emit_notes_in_bb): Likewise.
2906 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2907 fail assert on conversion between unsigned types.
2909 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2912 * tree-inline.c (reset_debug_binding): New.
2913 (reset_debug_bindings): Likewise.
2914 (expand_call_inline): Call it.
2916 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2918 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2921 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2923 * lto-streamer-out.c (lto_output_location): Stream
2924 reserved locations correctly.
2925 * lto-streamer-in.c (lto_output_location): Likewise.
2927 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
2929 * coretypes.h: Include hash-table.h and hash-set.h for host files.
2930 * ggc.h: Don't include statistics.h>
2931 * hash-map.h: Remove all includes.
2932 * hash-set.h: Likewise.
2933 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2934 the include list. Remove <new>.
2935 * inchash.h: Remove all includes.
2936 * mem-stats.h: Likewise.
2937 * vec.h: No special processing for generators or ggc.
2938 * alias.c : Adjust include files.
2939 * alloc-pool.c : Likewise.
2940 * alloc-pool.h : Likewise.
2941 * asan.c : Likewise.
2942 * attribs.c : Likewise.
2943 * auto-inc-dec.c : Likewise.
2944 * auto-profile.c : Likewise.
2945 * bb-reorder.c : Likewise.
2946 * bitmap.c : Likewise.
2947 * bitmap.h : Likewise.
2948 * bt-load.c : Likewise.
2949 * builtins.c : Likewise.
2950 * caller-save.c : Likewise.
2951 * calls.c : Likewise.
2952 * ccmp.c : Likewise.
2954 * cfganal.c : Likewise.
2955 * cfgbuild.c : Likewise.
2956 * cfgcleanup.c : Likewise.
2957 * cfgexpand.c : Likewise.
2958 * cfghooks.c : Likewise.
2959 * cfgloop.c : Likewise.
2960 * cfgloop.h : Likewise.
2961 * cfgloopanal.c : Likewise.
2962 * cfgloopmanip.c : Likewise.
2963 * cfgrtl.c : Likewise.
2964 * cgraph.c : Likewise.
2965 * cgraphbuild.c : Likewise.
2966 * cgraphclones.c : Likewise.
2967 * cgraphunit.c : Likewise.
2968 * cilk-common.c : Likewise.
2969 * combine-stack-adj.c : Likewise.
2970 * combine.c : Likewise.
2971 * compare-elim.c : Likewise.
2972 * context.c : Likewise.
2973 * convert.c : Likewise.
2974 * coverage.c : Likewise.
2975 * cppbuiltin.c : Likewise.
2976 * cprop.c : Likewise.
2978 * cselib.c : Likewise.
2979 * data-streamer-in.c : Likewise.
2980 * data-streamer-out.c : Likewise.
2981 * data-streamer.c : Likewise.
2982 * data-streamer.h : Likewise.
2983 * dbxout.c : Likewise.
2986 * debug.c : Likewise.
2987 * df-core.c : Likewise.
2988 * df-problems.c : Likewise.
2989 * df-scan.c : Likewise.
2992 * dojump.c : Likewise.
2993 * dominance.c : Likewise.
2994 * domwalk.c : Likewise.
2995 * double-int.c : Likewise.
2997 * dumpfile.c : Likewise.
2998 * dwarf2asm.c : Likewise.
2999 * dwarf2cfi.c : Likewise.
3000 * dwarf2out.c : Likewise.
3001 * emit-rtl.c : Likewise.
3002 * et-forest.c : Likewise.
3003 * except.c : Likewise.
3004 * except.h : Likewise.
3005 * explow.c : Likewise.
3006 * expmed.c : Likewise.
3007 * expr.c : Likewise.
3008 * final.c : Likewise.
3009 * fixed-value.c : Likewise.
3010 * fold-const.c : Likewise.
3011 * function.c : Likewise.
3012 * fwprop.c : Likewise.
3013 * gcc-plugin.h : Likewise.
3015 * gcse-common.c : Likewise.
3016 * gcse.c : Likewise.
3017 * genattrtab.c : Likewise.
3018 * genautomata.c : Likewise.
3019 * genconditions.c : Likewise.
3020 * genemit.c : Likewise.
3021 * generic-match-head.c : Likewise.
3022 * genextract.c : Likewise.
3023 * gengtype-state.c : Likewise.
3024 * gengtype.c : Likewise.
3025 * genhooks.c : Likewise.
3026 * genmatch.c : Likewise.
3027 * genmodes.c : Likewise.
3028 * genrecog.c : Likewise.
3029 * gensupport.c : Likewise.
3030 * ggc-common.c : Likewise.
3031 * ggc-internal.h : Likewise.
3032 * ggc-none.c : Likewise.
3033 * ggc-page.c : Likewise.
3034 * gimple-builder.c : Likewise.
3035 * gimple-expr.c : Likewise.
3036 * gimple-fold.c : Likewise.
3037 * gimple-iterator.c : Likewise.
3038 * gimple-low.c : Likewise.
3039 * gimple-match-head.c : Likewise.
3040 * gimple-pretty-print.c : Likewise.
3041 * gimple-ssa-isolate-paths.c : Likewise.
3042 * gimple-ssa-strength-reduction.c : Likewise.
3043 * gimple-ssa.h : Likewise.
3044 * gimple-streamer-in.c : Likewise.
3045 * gimple-streamer-out.c : Likewise.
3046 * gimple-streamer.h : Likewise.
3047 * gimple-walk.c : Likewise.
3048 * gimple.c : Likewise.
3049 * gimplify-me.c : Likewise.
3050 * gimplify.c : Likewise.
3051 * godump.c : Likewise.
3052 * graph.c : Likewise.
3053 * graphds.c : Likewise.
3054 * graphite-blocking.c : Likewise.
3055 * graphite-dependences.c : Likewise.
3056 * graphite-interchange.c : Likewise.
3057 * graphite-isl-ast-to-gimple.c : Likewise.
3058 * graphite-optimize-isl.c : Likewise.
3059 * graphite-poly.c : Likewise.
3060 * graphite-scop-detection.c : Likewise.
3061 * graphite-sese-to-poly.c : Likewise.
3062 * graphite.c : Likewise.
3063 * haifa-sched.c : Likewise.
3064 * hard-reg-set.h : Likewise.
3065 * hw-doloop.c : Likewise.
3066 * ifcvt.c : Likewise.
3067 * inchash.c : Likewise.
3068 * incpath.c : Likewise.
3069 * init-regs.c : Likewise.
3070 * input.c : Likewise.
3071 * internal-fn.c : Likewise.
3072 * ipa-chkp.c : Likewise.
3073 * ipa-comdats.c : Likewise.
3074 * ipa-cp.c : Likewise.
3075 * ipa-devirt.c : Likewise.
3076 * ipa-icf-gimple.c : Likewise.
3077 * ipa-icf.c : Likewise.
3078 * ipa-inline-analysis.c : Likewise.
3079 * ipa-inline-transform.c : Likewise.
3080 * ipa-inline.c : Likewise.
3081 * ipa-polymorphic-call.c : Likewise.
3082 * ipa-profile.c : Likewise.
3083 * ipa-prop.c : Likewise.
3084 * ipa-pure-const.c : Likewise.
3085 * ipa-ref.c : Likewise.
3086 * ipa-reference.c : Likewise.
3087 * ipa-split.c : Likewise.
3088 * ipa-utils.c : Likewise.
3089 * ipa-visibility.c : Likewise.
3091 * ira-build.c : Likewise.
3092 * ira-color.c : Likewise.
3093 * ira-conflicts.c : Likewise.
3094 * ira-costs.c : Likewise.
3095 * ira-emit.c : Likewise.
3096 * ira-lives.c : Likewise.
3098 * jump.c : Likewise.
3099 * langhooks.c : Likewise.
3101 * libfuncs.h : Likewise.
3102 * lists.c : Likewise.
3103 * loop-doloop.c : Likewise.
3104 * loop-init.c : Likewise.
3105 * loop-invariant.c : Likewise.
3106 * loop-iv.c : Likewise.
3107 * loop-unroll.c : Likewise.
3108 * lower-subreg.c : Likewise.
3109 * lra-assigns.c : Likewise.
3110 * lra-coalesce.c : Likewise.
3111 * lra-constraints.c : Likewise.
3112 * lra-eliminations.c : Likewise.
3113 * lra-lives.c : Likewise.
3114 * lra-remat.c : Likewise.
3115 * lra-spills.c : Likewise.
3117 * lto-cgraph.c : Likewise.
3118 * lto-compress.c : Likewise.
3119 * lto-opts.c : Likewise.
3120 * lto-section-in.c : Likewise.
3121 * lto-section-out.c : Likewise.
3122 * lto-streamer-in.c : Likewise.
3123 * lto-streamer-out.c : Likewise.
3124 * lto-streamer.c : Likewise.
3125 * lto-streamer.h : Likewise.
3127 * mode-switching.c : Likewise.
3128 * modulo-sched.c : Likewise.
3129 * omega.c : Likewise.
3130 * omp-low.c : Likewise.
3131 * optabs.c : Likewise.
3132 * opts-global.c : Likewise.
3133 * opts.h : Likewise.
3134 * passes.c : Likewise.
3135 * plugin.c : Likewise.
3136 * postreload-gcse.c : Likewise.
3137 * postreload.c : Likewise.
3138 * predict.c : Likewise.
3139 * print-rtl.c : Likewise.
3140 * print-tree.c : Likewise.
3141 * profile.c : Likewise.
3142 * read-md.c : Likewise.
3143 * read-md.h : Likewise.
3144 * read-rtl.c : Likewise.
3145 * real.c : Likewise.
3146 * realmpfr.c : Likewise.
3147 * recog.c : Likewise.
3149 * reg-stack.c : Likewise.
3150 * regcprop.c : Likewise.
3151 * reginfo.c : Likewise.
3152 * regrename.c : Likewise.
3153 * regstat.c : Likewise.
3154 * reload.c : Likewise.
3155 * reload1.c : Likewise.
3156 * reorg.c : Likewise.
3157 * resource.c : Likewise.
3158 * rtl-chkp.c : Likewise.
3161 * rtlanal.c : Likewise.
3162 * rtlhash.c : Likewise.
3163 * rtlhash.h : Likewise.
3164 * rtlhooks.c : Likewise.
3165 * sanopt.c : Likewise.
3166 * sched-deps.c : Likewise.
3167 * sched-ebb.c : Likewise.
3168 * sched-rgn.c : Likewise.
3169 * sched-vis.c : Likewise.
3170 * sdbout.c : Likewise.
3171 * sel-sched-dump.c : Likewise.
3172 * sel-sched-ir.c : Likewise.
3173 * sel-sched-ir.h : Likewise.
3174 * sel-sched.c : Likewise.
3175 * sese.c : Likewise.
3176 * shrink-wrap.c : Likewise.
3177 * shrink-wrap.h : Likewise.
3178 * simplify-rtx.c : Likewise.
3179 * stack-ptr-mod.c : Likewise.
3180 * statistics.c : Likewise.
3181 * stmt.c : Likewise.
3182 * stor-layout.c : Likewise.
3183 * store-motion.c : Likewise.
3184 * stringpool.c : Likewise.
3185 * symtab.c : Likewise.
3186 * target-globals.c : Likewise.
3187 * targhooks.c : Likewise.
3188 * tlink.c : Likewise.
3189 * toplev.c : Likewise.
3190 * tracer.c : Likewise.
3191 * trans-mem.c : Likewise.
3192 * tree-affine.c : Likewise.
3193 * tree-affine.h : Likewise.
3194 * tree-browser.c : Likewise.
3195 * tree-call-cdce.c : Likewise.
3196 * tree-cfg.c : Likewise.
3197 * tree-cfgcleanup.c : Likewise.
3198 * tree-chkp-opt.c : Likewise.
3199 * tree-chkp.c : Likewise.
3200 * tree-chrec.c : Likewise.
3201 * tree-complex.c : Likewise.
3202 * tree-data-ref.c : Likewise.
3203 * tree-dfa.c : Likewise.
3204 * tree-diagnostic.c : Likewise.
3205 * tree-dump.c : Likewise.
3206 * tree-eh.c : Likewise.
3207 * tree-eh.h : Likewise.
3208 * tree-emutls.c : Likewise.
3209 * tree-hasher.h : Likewise.
3210 * tree-if-conv.c : Likewise.
3211 * tree-inline.c : Likewise.
3212 * tree-inline.h : Likewise.
3213 * tree-into-ssa.c : Likewise.
3214 * tree-iterator.c : Likewise.
3215 * tree-loop-distribution.c : Likewise.
3216 * tree-nested.c : Likewise.
3217 * tree-nrv.c : Likewise.
3218 * tree-object-size.c : Likewise.
3219 * tree-outof-ssa.c : Likewise.
3220 * tree-parloops.c : Likewise.
3221 * tree-phinodes.c : Likewise.
3222 * tree-predcom.c : Likewise.
3223 * tree-pretty-print.c : Likewise.
3224 * tree-profile.c : Likewise.
3225 * tree-scalar-evolution.c : Likewise.
3226 * tree-sra.c : Likewise.
3227 * tree-ssa-address.c : Likewise.
3228 * tree-ssa-alias.c : Likewise.
3229 * tree-ssa-ccp.c : Likewise.
3230 * tree-ssa-coalesce.c : Likewise.
3231 * tree-ssa-copy.c : Likewise.
3232 * tree-ssa-copyrename.c : Likewise.
3233 * tree-ssa-dce.c : Likewise.
3234 * tree-ssa-dom.c : Likewise.
3235 * tree-ssa-dse.c : Likewise.
3236 * tree-ssa-forwprop.c : Likewise.
3237 * tree-ssa-ifcombine.c : Likewise.
3238 * tree-ssa-live.c : Likewise.
3239 * tree-ssa-loop-ch.c : Likewise.
3240 * tree-ssa-loop-im.c : Likewise.
3241 * tree-ssa-loop-ivcanon.c : Likewise.
3242 * tree-ssa-loop-ivopts.c : Likewise.
3243 * tree-ssa-loop-manip.c : Likewise.
3244 * tree-ssa-loop-niter.c : Likewise.
3245 * tree-ssa-loop-prefetch.c : Likewise.
3246 * tree-ssa-loop-unswitch.c : Likewise.
3247 * tree-ssa-loop.c : Likewise.
3248 * tree-ssa-math-opts.c : Likewise.
3249 * tree-ssa-operands.c : Likewise.
3250 * tree-ssa-phiopt.c : Likewise.
3251 * tree-ssa-phiprop.c : Likewise.
3252 * tree-ssa-pre.c : Likewise.
3253 * tree-ssa-propagate.c : Likewise.
3254 * tree-ssa-reassoc.c : Likewise.
3255 * tree-ssa-sccvn.c : Likewise.
3256 * tree-ssa-scopedtables.c : Likewise.
3257 * tree-ssa-sink.c : Likewise.
3258 * tree-ssa-strlen.c : Likewise.
3259 * tree-ssa-structalias.c : Likewise.
3260 * tree-ssa-tail-merge.c : Likewise.
3261 * tree-ssa-ter.c : Likewise.
3262 * tree-ssa-threadedge.c : Likewise.
3263 * tree-ssa-threadupdate.c : Likewise.
3264 * tree-ssa-uncprop.c : Likewise.
3265 * tree-ssa-uninit.c : Likewise.
3266 * tree-ssa.c : Likewise.
3267 * tree-ssanames.c : Likewise.
3268 * tree-stdarg.c : Likewise.
3269 * tree-streamer-in.c : Likewise.
3270 * tree-streamer-out.c : Likewise.
3271 * tree-streamer.c : Likewise.
3272 * tree-streamer.h : Likewise.
3273 * tree-switch-conversion.c : Likewise.
3274 * tree-tailcall.c : Likewise.
3275 * tree-vect-data-refs.c : Likewise.
3276 * tree-vect-generic.c : Likewise.
3277 * tree-vect-loop-manip.c : Likewise.
3278 * tree-vect-loop.c : Likewise.
3279 * tree-vect-patterns.c : Likewise.
3280 * tree-vect-slp.c : Likewise.
3281 * tree-vect-stmts.c : Likewise.
3282 * tree-vectorizer.c : Likewise.
3283 * tree-vectorizer.h : Likewise.
3284 * tree-vrp.c : Likewise.
3285 * tree.c : Likewise.
3286 * tsan.c : Likewise.
3287 * ubsan.c : Likewise.
3288 * valtrack.c : Likewise.
3289 * valtrack.h : Likewise.
3290 * value-prof.c : Likewise.
3291 * var-tracking.c : Likewise.
3292 * varasm.c : Likewise.
3293 * varpool.c : Likewise.
3295 * vmsdbgout.c : Likewise.
3296 * vtable-verify.c : Likewise.
3297 * vtable-verify.h : Likewise.
3299 * wide-int.cc : Likewise.
3300 * xcoffout.c : Likewise.
3301 * config/aarch64/aarch64-builtins.c : Likewise.
3302 * config/aarch64/aarch64.c : Likewise.
3303 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
3304 * config/alpha/alpha.c : Likewise.
3305 * config/arc/arc.c : Likewise.
3306 * config/arm/aarch-common.c : Likewise.
3307 * config/arm/arm-builtins.c : Likewise.
3308 * config/arm/arm-c.c : Likewise.
3309 * config/arm/arm.c : Likewise.
3310 * config/avr/avr-c.c : Likewise.
3311 * config/avr/avr-log.c : Likewise.
3312 * config/avr/avr.c : Likewise.
3313 * config/bfin/bfin.c : Likewise.
3314 * config/c6x/c6x.c : Likewise.
3315 * config/cr16/cr16.c : Likewise.
3316 * config/cris/cris.c : Likewise.
3317 * config/darwin-c.c : Likewise.
3318 * config/darwin.c : Likewise.
3319 * config/default-c.c : Likewise.
3320 * config/epiphany/epiphany.c : Likewise.
3321 * config/epiphany/mode-switch-use.c : Likewise.
3322 * config/epiphany/resolve-sw-modes.c : Likewise.
3323 * config/fr30/fr30.c : Likewise.
3324 * config/frv/frv.c : Likewise.
3325 * config/ft32/ft32.c : Likewise.
3326 * config/glibc-c.c : Likewise.
3327 * config/h8300/h8300.c : Likewise.
3328 * config/i386/i386-c.c : Likewise.
3329 * config/i386/i386.c : Likewise.
3330 * config/i386/msformat-c.c : Likewise.
3331 * config/i386/winnt-cxx.c : Likewise.
3332 * config/i386/winnt-stubs.c : Likewise.
3333 * config/i386/winnt.c : Likewise.
3334 * config/ia64/ia64-c.c : Likewise.
3335 * config/ia64/ia64.c : Likewise.
3336 * config/iq2000/iq2000.c : Likewise.
3337 * config/lm32/lm32.c : Likewise.
3338 * config/m32c/m32c-pragma.c : Likewise.
3339 * config/m32c/m32c.c : Likewise.
3340 * config/m32r/m32r.c : Likewise.
3341 * config/m68k/m68k.c : Likewise.
3342 * config/mcore/mcore.c : Likewise.
3343 * config/mep/mep-pragma.c : Likewise.
3344 * config/mep/mep.c : Likewise.
3345 * config/microblaze/microblaze-c.c : Likewise.
3346 * config/microblaze/microblaze.c : Likewise.
3347 * config/mips/mips.c : Likewise.
3348 * config/mmix/mmix.c : Likewise.
3349 * config/mn10300/mn10300.c : Likewise.
3350 * config/moxie/moxie.c : Likewise.
3351 * config/msp430/msp430-c.c : Likewise.
3352 * config/msp430/msp430.c : Likewise.
3353 * config/nds32/nds32-cost.c : Likewise.
3354 * config/nds32/nds32-fp-as-gp.c : Likewise.
3355 * config/nds32/nds32-intrinsic.c : Likewise.
3356 * config/nds32/nds32-isr.c : Likewise.
3357 * config/nds32/nds32-md-auxiliary.c : Likewise.
3358 * config/nds32/nds32-memory-manipulation.c : Likewise.
3359 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
3360 * config/nds32/nds32-predicates.c : Likewise.
3361 * config/nds32/nds32.c : Likewise.
3362 * config/nios2/nios2.c : Likewise.
3363 * config/nvptx/nvptx.c : Likewise.
3364 * config/pa/pa.c : Likewise.
3365 * config/pdp11/pdp11.c : Likewise.
3366 * config/rl78/rl78-c.c : Likewise.
3367 * config/rl78/rl78.c : Likewise.
3368 * config/rs6000/rs6000-c.c : Likewise.
3369 * config/rs6000/rs6000.c : Likewise.
3370 * config/rx/rx.c : Likewise.
3371 * config/s390/s390-c.c : Likewise.
3372 * config/s390/s390.c : Likewise.
3373 * config/sh/sh-c.c : Likewise.
3374 * config/sh/sh-mem.cc : Likewise.
3375 * config/sh/sh.c : Likewise.
3376 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
3377 * config/sh/sh_treg_combine.cc : Likewise.
3378 * config/sol2-c.c : Likewise.
3379 * config/sol2-cxx.c : Likewise.
3380 * config/sol2-stubs.c : Likewise.
3381 * config/sol2.c : Likewise.
3382 * config/sparc/sparc-c.c : Likewise.
3383 * config/sparc/sparc.c : Likewise.
3384 * config/spu/spu-c.c : Likewise.
3385 * config/spu/spu.c : Likewise.
3386 * config/stormy16/stormy16.c : Likewise.
3387 * config/tilegx/mul-tables.c : Likewise.
3388 * config/tilegx/tilegx-c.c : Likewise.
3389 * config/tilegx/tilegx.c : Likewise.
3390 * config/tilepro/mul-tables.c : Likewise.
3391 * config/tilepro/tilepro-c.c : Likewise.
3392 * config/tilepro/tilepro.c : Likewise.
3393 * config/v850/v850-c.c : Likewise.
3394 * config/v850/v850.c : Likewise.
3395 * config/vax/vax.c : Likewise.
3396 * config/visium/visium.c : Likewise.
3397 * config/vms/vms-c.c : Likewise.
3398 * config/vms/vms.c : Likewise.
3399 * config/vxworks.c : Likewise.
3400 * config/winnt-c.c : Likewise.
3401 * config/xtensa/xtensa.c : Likewise.
3403 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
3406 * ipa-utils.h (warn_types_mismatch): Update prototype.
3407 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
3409 (type_mismatch_p): New function.
3410 (warn_types_mismatch): Reorg to work better on non-C++ types.
3411 (odr_types_equivalent_p): Add loc1/loc2 parameters.
3412 (add_type_duplicate): Update.
3414 2015-06-08 Tom de Vries <tom@codesourcery.com>
3416 PR rtl-optimization/66444
3417 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
3420 2015-06-08 Richard Biener <rguenther@suse.de>
3422 PR tree-optimization/66422
3423 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
3424 block after inserted gcc_unreachable.
3426 2015-06-08 Nick Clifton <nickc@redhat.com>
3428 * config/rx/rx.c (rx_function_value): Do not promote vector types.
3429 (rx_promote_function_mode): Likewise.
3430 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
3432 2015-06-08 Jakub Jelinek <jakub@redhat.com>
3434 * genattrtab.c (insn_alternatives): Change type from int *
3436 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
3437 (get_attr_value): Change type of num_alt to uint64_t.
3438 (compute_alternative_mask): Change return type from
3439 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
3440 (make_alternative_compare, mk_attr_alt): Change argument type
3441 from int to uint64_t.
3442 (simplify_test_exp): Change type of i from int to uint64_t.
3443 Shift ((uint64_t) 1) instead of 1 up.
3444 (main): Adjust oballocvec first argument from int to uint64_t.
3445 Shift ((uint64_t) 1) instead of 1 up.
3447 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3450 * gdbhooks.py: Import sys.
3451 (intptr): New function. Replace int(...) by intptr(...).
3453 2015-06-08 Richard Biener <rguenther@suse.de>
3455 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
3456 adjustment for gaps at the end of a SLP load group properly.
3457 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
3458 all permutations we can generate.
3459 (vect_transform_slp_perm_load): Use the correct group-size.
3461 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
3463 * genmatch.c (expr::gen_transform): For conditions, guess the type
3464 from the second operand.
3466 2015-06-08 Tom de Vries <tom@codesourcery.com>
3468 PR tree-optimization/66442
3469 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
3470 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
3471 if the loop latch is not a singleton. Use
3472 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
3474 2015-06-08 Marek Polacek <polacek@redhat.com>
3477 * toplev.c (check_global_declaration): Don't warn about artificial
3480 2015-06-08 Tom de Vries <tom@codesourcery.com>
3482 PR tree-optimization/66436
3483 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
3485 * gimplify.c: Add tree-dump.h include.
3486 (gimplify_function_tree): Dump function to gimple dump file.
3487 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
3490 2015-06-08 Tom de Vries <tom@codesourcery.com>
3492 PR tree-optimization/66435
3493 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
3496 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
3498 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
3499 of ptr_type_node to not be ptr_to_node.
3500 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
3501 TREE_TYPE of pointers.
3502 * gimple-expr.c (useless_type_conversion): Reorder the check for
3503 function pointers and TYPE_CANONICAL.
3505 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
3508 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
3509 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
3510 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
3512 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
3513 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
3514 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
3515 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
3516 and non iso if unix2003.
3518 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
3520 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
3522 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
3524 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
3525 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
3526 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
3527 except.c, final.c, function.c, gcse-common.c, genemit.c,
3528 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
3529 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
3530 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
3531 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
3534 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
3536 * combine.c (combine_split_insns): Remove cast.
3537 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
3538 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
3539 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
3540 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
3541 * genemit.c (gen_split): Change return type of generated functions to
3543 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
3544 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
3545 gen_peephole2_* functions.
3546 (print_subroutine, main): Likewise.
3547 * recog.c (peephole2_optimize): Remove cast.
3548 (peep2_next_insn): Promote return type to rtx_insn.
3549 * recog.h (peep2_next_insn): Fix prototype.
3550 * rtl.h (try_split, split_insns): Likewise.
3552 2015-06-06 DJ Delorie <dj@redhat.com>
3554 * config/msp430/msp430.c (msp430_asm_integer): Support addition
3555 and subtraction too.
3557 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
3560 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
3561 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
3562 instead of Snd. Disparage Sid/z alternative with '^'.
3564 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
3566 * dwarf2out.c: Remove deferred_locations*.
3567 (dwarf2_debug_hooks): Add early_finish hook.
3568 Remove global_decl hook.
3569 Add early_global_decl and late_global_decl hook.
3570 New global early_dwarf.
3571 New structure set_early_dwarf.
3572 (output_die): Indicate whether a DIE was generated early
3573 when generating assembly with -dA.
3574 (struct limbo_die_struct): Document created_for field.
3575 Remove file_table_last_lookup.
3576 (remove_AT): Return TRUE if successful.
3577 (remove_child_TAG): Clear die_parent.
3578 (reparent_child): New function abstracted from...
3579 (splice_child_die): ...here.
3580 (new_die): ICE if a DIE ends up in limbo too late.
3582 (defer_location): Remove.
3583 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
3584 (fill_variable_array_bounds): New.
3585 (decl_start_label): Call fill_variable_array_bounds.
3586 (gen_formal_parameter_die): Rewrite to reuse previously generated
3588 (gen_subprogram_die): Same.
3589 (gen_variable_die): Same.
3590 (gen_const_die): Same.
3591 (gen_label_die): Same.
3592 (gen_lexical_block_die): Same.
3593 (decl_will_get_specification_p): New.
3594 (local_function_static): New.
3595 (gen_struct_or_union_type_die): Fill in variable-length fields.
3596 (gen_typedef_die): Fill in variable-length typedefs.
3597 (gen_tagged_type_die): Gracefully return on error_mark_node.
3599 (gen_type_die_with_usage): Handle variable-length types.
3600 Remove duplicate code for ARRAY_TYPE case.
3601 (process_scope_var): Only process imported modules during early
3603 (dwarf2out_early_global_decl): New.
3604 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
3605 (dwarf2out_type_decl): Set early_dwarf while calling
3607 (dwarf2out_decl): Verify that we did not recreate a previously
3609 Do not return on DECL_EXTERNALs in VAR_DECLs.
3610 Abstract some code to local_function_static.
3611 (lookup_filename): Remove use of file_table_last_lookup.
3612 Gracefully exit on missing file_name.
3613 (dwarf2out_finish): Verify limbo list.
3614 Remove deferred_locations_list use.
3615 Move deferred_asm_name and limbo flushing to...
3616 (dwarf2out_early_finish): ...here. New.
3617 (dwarf2out_c_finalize): Remove set of deferred_location_list,
3618 deferred_asm_name, and file_table_last_lookup.
3619 * cgraph.h (referred_to_p): Add default argument.
3620 * cgraphunit.c (referred_to_p): Add and handle include_self
3622 (analyze_functions): Add first_time argument.
3623 Call check_global_declaration for all symbols.
3624 Call late_global_decl for nodes for moribund nodes.
3625 (finalize_compilation_unit): Add new argument to
3627 Call early_global_decl for functions.
3628 Call early_finish debug hook.
3629 * dbxout.c (dbxout_early_global_decl): New.
3630 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
3631 (dbx_debug_hooks): Add new hooks.
3632 (xcoff_debug_hooks): Same.
3633 * debug.c (do_nothing_debug_hooks): Add early_finish field.
3634 Add early and late debug hooks.
3635 Remove global_decl hook.
3636 * debug.h (struct gcc_debug_hooks): Add early_finish,
3637 early_global_decl, and late_global_decl fields.
3638 Remove global_decl field.
3639 Document gcc_debug_hooks.
3640 * gengtype.c (output_typename): Remove.
3641 * godump.c (go_early_global_decl): New.
3642 (go_late_global_decl): New.
3643 (go_global_decl): Remove.
3644 (dump_go_spec_init): Remove global_decl. Add
3645 {early,late}_global_decl.
3646 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
3647 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
3648 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
3649 (write_global_declarations): Remove.
3650 (global_decl_processing): New.
3651 * langhooks.h (struct lang_hooks_for_decls): Remove
3652 final_write_globals field.
3653 Add post_compilation_parsing_cleanups field.
3654 * passes.c (rest_of_decl_compilation): Call early_global_decl.
3655 * sdbout.c: Add early and late_global_decl hooks. Remove
3656 sdbout_global_decl hook.
3657 Add early_finish field for sdb_debug_hooks.
3658 (sdbout_global_decl): Remove.
3659 (sdbout_early_global_decl): New.
3660 (sdbout_late_global_decl): New.
3661 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
3662 * toplev.c (check_global_declaration): Rename from
3663 check_global_declaration_1.
3664 Adapt to use symtab infrastructure.
3665 (check_global_declarations): Remove.
3666 (emit_debug_global_declarations): Remove.
3667 (compile_file): Remove call to final_write_globals langhook.
3668 Run the actual compilation process.
3669 Perform any post compilation parser cleanups.
3670 Generate late debug info.
3671 * toplev.h (check_global_declaration): New.
3672 (check_global_declaration_1): Remove.
3673 (check_global_declarations): Remove.
3674 (write_global_declarations): Remove.
3675 (emit_debug_global_declarations): Remove.
3676 (global_decl_processing): New.
3677 * tree-core.h (struct tree_block): Add DIE field.
3678 * tree.h (BLOCK_DIE): New.
3679 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
3681 (vmsdbgout_early_global_decl): New.
3682 (vmsdbgout_late_global_decl): New.
3683 Add early_finish debug hook field to vmsdbg_debug_hooks.
3684 Remove vmsdbgout_decl to vmsdbgout_function_decl.
3685 Add early and late_global_decl debug hooks.
3687 2015-06-05 Julian Brown <julian@codesourcery.com>
3688 Sandra Loosemore <sandra@codesourcery.com>
3690 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
3691 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
3692 to print-sysroot-suffix.sh script.
3694 2015-06-05 Tom de Vries <tom@codesourcery.com>
3696 merge from gomp4 branch:
3697 2015-05-28 Tom de Vries <tom@codesourcery.com>
3699 PR tree-optimization/65443
3700 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
3701 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
3702 (try_transform_to_exit_first_loop_alt): New function.
3703 (transform_to_exit_first_loop): Use
3704 try_transform_to_exit_first_loop_alt.
3706 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
3708 * builtins.c (expand_builtin_atomic_compare_exchange): Call
3709 emit_cmp_and_jump_insns with the mode of target.
3711 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3713 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
3715 2015-06-04 DJ Delorie <dj@redhat.com>
3717 * config/msp430/msp430.md (movsi_s): New. Special case for
3718 storing a 20-bit symbol into a 32-bit register.
3719 * config/msp430/msp430.c (msp430_subreg): Add support for it.
3720 * config/msp430/predicates.md (msp430_symbol_operand): New.
3722 2015-06-04 Sriraman Tallam <tmsriram@google.com>
3724 * c-family/c-common.c (noplt): New attribute.
3725 (handle_noplt_attribute): New handler.
3726 * calls.c (prepare_call_address): Check for noplt
3728 * config/i386/i386.c (ix86_expand_call): Check
3729 for noplt attribute.
3730 (ix86_nopic_noplt_attribute_p): New function.
3731 (ix86_output_call_insn): Output indirect call for non-pic
3733 * doc/extend.texi (noplt): Document new attribute.
3734 * doc/invoke.texi: Document new attribute.
3736 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
3738 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
3739 real.h, and fixed-value.h when included in host source files.
3740 * double-int.h: Remove redundant #includes listed above.
3741 * fixed-value.h: Likewise.
3743 * wide-int.h: Likewise.
3744 * inchash.h: Likewise.
3745 * rtl.h: Add some include files When included from a generator file.
3746 * target.h: Remove wide-int.h and insn-modes.h from the include list.
3747 * internal-fn.h: Don't include coretypes.h.
3748 * alias.c: Adjust includes for restructured coretypes.h.
3750 * attribs.c: Likewise.
3751 * auto-inc-dec.c: Likewise.
3752 * auto-profile.c: Likewise.
3753 * bb-reorder.c: Likewise.
3754 * bt-load.c: Likewise.
3755 * builtins.c: Likewise.
3756 * caller-save.c: Likewise.
3757 * calls.c: Likewise.
3760 * cfganal.c: Likewise.
3761 * cfgbuild.c: Likewise.
3762 * cfgcleanup.c: Likewise.
3763 * cfgexpand.c: Likewise.
3764 * cfghooks.c: Likewise.
3765 * cfgloop.c: Likewise.
3766 * cfgloop.h: Likewise.
3767 * cfgloopanal.c: Likewise.
3768 * cfgloopmanip.c: Likewise.
3769 * cfgrtl.c: Likewise.
3770 * cgraph.c: Likewise.
3771 * cgraphbuild.c: Likewise.
3772 * cgraphclones.c: Likewise.
3773 * cgraphunit.c: Likewise.
3774 * cilk-common.c: Likewise.
3775 * combine-stack-adj.c: Likewise.
3776 * combine.c: Likewise.
3777 * compare-elim.c: Likewise.
3778 * convert.c: Likewise.
3779 * coverage.c: Likewise.
3780 * cppbuiltin.c: Likewise.
3781 * cprop.c: Likewise.
3783 * cselib.c: Likewise.
3784 * data-streamer-in.c: Likewise.
3785 * data-streamer-out.c: Likewise.
3786 * data-streamer.c: Likewise.
3787 * dbxout.c: Likewise.
3790 * debug.c: Likewise.
3791 * df-core.c: Likewise.
3792 * df-problems.c: Likewise.
3793 * df-scan.c: Likewise.
3796 * dojump.c: Likewise.
3797 * dominance.c: Likewise.
3798 * domwalk.c: Likewise.
3799 * double-int.c: Likewise.
3801 * dumpfile.c: Likewise.
3802 * dwarf2asm.c: Likewise.
3803 * dwarf2cfi.c: Likewise.
3804 * dwarf2out.c: Likewise.
3805 * dwarf2out.h: Likewise.
3806 * emit-rtl.c: Likewise.
3807 * et-forest.c: Likewise.
3808 * except.c: Likewise.
3809 * explow.c: Likewise.
3810 * expmed.c: Likewise.
3812 * final.c: Likewise.
3813 * fixed-value.c: Likewise.
3814 * fold-const.c: Likewise.
3815 * function.c: Likewise.
3816 * fwprop.c: Likewise.
3817 * gcc-plugin.h: Likewise.
3819 * generic-match-head.c: Likewise.
3820 * ggc-page.c: Likewise.
3821 * gimple-builder.c: Likewise.
3822 * gimple-expr.c: Likewise.
3823 * gimple-fold.c: Likewise.
3824 * gimple-iterator.c: Likewise.
3825 * gimple-low.c: Likewise.
3826 * gimple-match-head.c: Likewise.
3827 * gimple-pretty-print.c: Likewise.
3828 * gimple-ssa-isolate-paths.c: Likewise.
3829 * gimple-ssa-strength-reduction.c: Likewise.
3830 * gimple-streamer-in.c: Likewise.
3831 * gimple-streamer-out.c: Likewise.
3832 * gimple-streamer.h: Likewise.
3833 * gimple-walk.c: Likewise.
3834 * gimple.c: Likewise.
3835 * gimplify-me.c: Likewise.
3836 * gimplify.c: Likewise.
3837 * godump.c: Likewise.
3838 * graph.c: Likewise.
3839 * graphite-blocking.c: Likewise.
3840 * graphite-dependences.c: Likewise.
3841 * graphite-interchange.c: Likewise.
3842 * graphite-isl-ast-to-gimple.c: Likewise.
3843 * graphite-optimize-isl.c: Likewise.
3844 * graphite-poly.c: Likewise.
3845 * graphite-scop-detection.c: Likewise.
3846 * graphite-sese-to-poly.c: Likewise.
3847 * graphite.c: Likewise.
3848 * haifa-sched.c: Likewise.
3849 * hooks.h: Likewise.
3850 * hw-doloop.c: Likewise.
3851 * ifcvt.c: Likewise.
3852 * incpath.c: Likewise.
3853 * init-regs.c: Likewise.
3854 * internal-fn.c: Likewise.
3855 * ipa-chkp.c: Likewise.
3856 * ipa-comdats.c: Likewise.
3857 * ipa-cp.c: Likewise.
3858 * ipa-devirt.c: Likewise.
3859 * ipa-icf-gimple.c: Likewise.
3860 * ipa-icf.c: Likewise.
3861 * ipa-inline-analysis.c: Likewise.
3862 * ipa-inline-transform.c: Likewise.
3863 * ipa-inline.c: Likewise.
3864 * ipa-polymorphic-call.c: Likewise.
3865 * ipa-profile.c: Likewise.
3866 * ipa-prop.c: Likewise.
3867 * ipa-pure-const.c: Likewise.
3868 * ipa-ref.c: Likewise.
3869 * ipa-reference.c: Likewise.
3870 * ipa-split.c: Likewise.
3871 * ipa-utils.c: Likewise.
3872 * ipa-visibility.c: Likewise.
3874 * ira-build.c: Likewise.
3875 * ira-color.c: Likewise.
3876 * ira-conflicts.c: Likewise.
3877 * ira-costs.c: Likewise.
3878 * ira-emit.c: Likewise.
3879 * ira-lives.c: Likewise.
3882 * langhooks.c: Likewise.
3884 * loop-doloop.c: Likewise.
3885 * loop-init.c: Likewise.
3886 * loop-invariant.c: Likewise.
3887 * loop-iv.c: Likewise.
3888 * loop-unroll.c: Likewise.
3889 * lower-subreg.c: Likewise.
3890 * lra-assigns.c: Likewise.
3891 * lra-coalesce.c: Likewise.
3892 * lra-constraints.c: Likewise.
3893 * lra-eliminations.c: Likewise.
3894 * lra-lives.c: Likewise.
3895 * lra-remat.c: Likewise.
3896 * lra-spills.c: Likewise.
3898 * lto-cgraph.c: Likewise.
3899 * lto-compress.c: Likewise.
3900 * lto-opts.c: Likewise.
3901 * lto-section-in.c: Likewise.
3902 * lto-section-out.c: Likewise.
3903 * lto-streamer-in.c: Likewise.
3904 * lto-streamer-out.c: Likewise.
3905 * lto-streamer.c: Likewise.
3907 * mode-switching.c: Likewise.
3908 * modulo-sched.c: Likewise.
3909 * omega.c: Likewise.
3910 * omp-low.c: Likewise.
3911 * optabs.c: Likewise.
3912 * opts-global.c: Likewise.
3913 * passes.c: Likewise.
3914 * plugin.c: Likewise.
3915 * postreload-gcse.c: Likewise.
3916 * postreload.c: Likewise.
3917 * predict.c: Likewise.
3918 * print-rtl.c: Likewise.
3919 * print-tree.c: Likewise.
3920 * profile.c: Likewise.
3922 * realmpfr.c: Likewise.
3923 * realmpfr.h: Likewise.
3924 * recog.c: Likewise.
3926 * reg-stack.c: Likewise.
3927 * regcprop.c: Likewise.
3928 * reginfo.c: Likewise.
3929 * regrename.c: Likewise.
3931 * regstat.c: Likewise.
3932 * reload.c: Likewise.
3933 * reload1.c: Likewise.
3934 * reorg.c: Likewise.
3935 * resource.c: Likewise.
3936 * rtl-chkp.c: Likewise.
3937 * rtlanal.c: Likewise.
3938 * rtlhooks.c: Likewise.
3939 * sanopt.c: Likewise.
3940 * sched-deps.c: Likewise.
3941 * sched-ebb.c: Likewise.
3942 * sched-rgn.c: Likewise.
3943 * sched-vis.c: Likewise.
3944 * sdbout.c: Likewise.
3945 * sel-sched-dump.c: Likewise.
3946 * sel-sched-ir.c: Likewise.
3947 * sel-sched.c: Likewise.
3949 * shrink-wrap.c: Likewise.
3950 * shrink-wrap.h: Likewise.
3951 * simplify-rtx.c: Likewise.
3952 * stack-ptr-mod.c: Likewise.
3953 * statistics.c: Likewise.
3955 * stor-layout.c: Likewise.
3956 * store-motion.c: Likewise.
3957 * stringpool.c: Likewise.
3958 * symtab.c: Likewise.
3959 * target-globals.c: Likewise.
3960 * targhooks.c: Likewise.
3961 * toplev.c: Likewise.
3962 * tracer.c: Likewise.
3963 * trans-mem.c: Likewise.
3964 * tree-affine.c: Likewise.
3965 * tree-affine.h: Likewise.
3966 * tree-browser.c: Likewise.
3967 * tree-call-cdce.c: Likewise.
3968 * tree-cfg.c: Likewise.
3969 * tree-cfgcleanup.c: Likewise.
3970 * tree-chkp-opt.c: Likewise.
3971 * tree-chkp.c: Likewise.
3972 * tree-chrec.c: Likewise.
3973 * tree-complex.c: Likewise.
3974 * tree-data-ref.c: Likewise.
3975 * tree-dfa.c: Likewise.
3976 * tree-diagnostic.c: Likewise.
3977 * tree-dump.c: Likewise.
3978 * tree-eh.c: Likewise.
3979 * tree-emutls.c: Likewise.
3980 * tree-if-conv.c: Likewise.
3981 * tree-inline.c: Likewise.
3982 * tree-into-ssa.c: Likewise.
3983 * tree-iterator.c: Likewise.
3984 * tree-loop-distribution.c: Likewise.
3985 * tree-nested.c: Likewise.
3986 * tree-nrv.c: Likewise.
3987 * tree-object-size.c: Likewise.
3988 * tree-outof-ssa.c: Likewise.
3989 * tree-parloops.c: Likewise.
3990 * tree-phinodes.c: Likewise.
3991 * tree-predcom.c: Likewise.
3992 * tree-pretty-print.c: Likewise.
3993 * tree-pretty-print.h: Likewise.
3994 * tree-profile.c: Likewise.
3995 * tree-scalar-evolution.c: Likewise.
3996 * tree-sra.c: Likewise.
3997 * tree-ssa-address.c: Likewise.
3998 * tree-ssa-alias.c: Likewise.
3999 * tree-ssa-ccp.c: Likewise.
4000 * tree-ssa-coalesce.c: Likewise.
4001 * tree-ssa-copy.c: Likewise.
4002 * tree-ssa-copyrename.c: Likewise.
4003 * tree-ssa-dce.c: Likewise.
4004 * tree-ssa-dom.c: Likewise.
4005 * tree-ssa-dse.c: Likewise.
4006 * tree-ssa-forwprop.c: Likewise.
4007 * tree-ssa-ifcombine.c: Likewise.
4008 * tree-ssa-live.c: Likewise.
4009 * tree-ssa-loop-ch.c: Likewise.
4010 * tree-ssa-loop-im.c: Likewise.
4011 * tree-ssa-loop-ivcanon.c: Likewise.
4012 * tree-ssa-loop-ivopts.c: Likewise.
4013 * tree-ssa-loop-manip.c: Likewise.
4014 * tree-ssa-loop-niter.c: Likewise.
4015 * tree-ssa-loop-prefetch.c: Likewise.
4016 * tree-ssa-loop-unswitch.c: Likewise.
4017 * tree-ssa-loop.c: Likewise.
4018 * tree-ssa-loop.h: Likewise.
4019 * tree-ssa-math-opts.c: Likewise.
4020 * tree-ssa-operands.c: Likewise.
4021 * tree-ssa-phiopt.c: Likewise.
4022 * tree-ssa-phiprop.c: Likewise.
4023 * tree-ssa-pre.c: Likewise.
4024 * tree-ssa-propagate.c: Likewise.
4025 * tree-ssa-reassoc.c: Likewise.
4026 * tree-ssa-sccvn.c: Likewise.
4027 * tree-ssa-scopedtables.c: Likewise.
4028 * tree-ssa-sink.c: Likewise.
4029 * tree-ssa-strlen.c: Likewise.
4030 * tree-ssa-structalias.c: Likewise.
4031 * tree-ssa-tail-merge.c: Likewise.
4032 * tree-ssa-ter.c: Likewise.
4033 * tree-ssa-threadedge.c: Likewise.
4034 * tree-ssa-threadupdate.c: Likewise.
4035 * tree-ssa-uncprop.c: Likewise.
4036 * tree-ssa-uninit.c: Likewise.
4037 * tree-ssa.c: Likewise.
4038 * tree-ssanames.c: Likewise.
4039 * tree-stdarg.c: Likewise.
4040 * tree-streamer-in.c: Likewise.
4041 * tree-streamer-out.c: Likewise.
4042 * tree-streamer.c: Likewise.
4043 * tree-switch-conversion.c: Likewise.
4044 * tree-tailcall.c: Likewise.
4045 * tree-vect-data-refs.c: Likewise.
4046 * tree-vect-generic.c: Likewise.
4047 * tree-vect-loop-manip.c: Likewise.
4048 * tree-vect-loop.c: Likewise.
4049 * tree-vect-patterns.c: Likewise.
4050 * tree-vect-slp.c: Likewise.
4051 * tree-vect-stmts.c: Likewise.
4052 * tree-vectorizer.c: Likewise.
4053 * tree-vrp.c: Likewise.
4056 * ubsan.c: Likewise.
4057 * valtrack.c: Likewise.
4058 * value-prof.c: Likewise.
4059 * var-tracking.c: Likewise.
4060 * varasm.c: Likewise.
4061 * varpool.c: Likewise.
4062 * vmsdbgout.c: Likewise.
4063 * vtable-verify.c: Likewise.
4065 * wide-int-print.cc: Likewise.
4066 * wide-int-print.h: Likewise.
4067 * wide-int.cc: Likewise.
4068 * xcoffout.c: Likewise.
4069 * config/aarch64/aarch64-builtins.c: Likewise.
4070 * config/aarch64/aarch64.c: Likewise.
4071 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4072 * config/alpha/alpha.c: Likewise.
4073 * config/arc/arc.c: Likewise.
4074 * config/arm/aarch-common.c: Likewise.
4075 * config/arm/arm-builtins.c: Likewise.
4076 * config/arm/arm-c.c: Likewise.
4077 * config/arm/arm.c: Likewise.
4078 * config/avr/avr-c.c: Likewise.
4079 * config/avr/avr-log.c: Likewise.
4080 * config/avr/avr.c: Likewise.
4081 * config/bfin/bfin.c: Likewise.
4082 * config/c6x/c6x.c: Likewise.
4083 * config/cr16/cr16.c: Likewise.
4084 * config/cris/cris.c: Likewise.
4085 * config/darwin-c.c: Likewise.
4086 * config/darwin.c: Likewise.
4087 * config/default-c.c: Likewise.
4088 * config/epiphany/epiphany.c: Likewise.
4089 * config/epiphany/mode-switch-use.c: Likewise.
4090 * config/epiphany/resolve-sw-modes.c: Likewise.
4091 * config/fr30/fr30.c: Likewise.
4092 * config/frv/frv.c: Likewise.
4093 * config/ft32/ft32.c: Likewise.
4094 * config/glibc-c.c: Likewise.
4095 * config/h8300/h8300.c: Likewise.
4096 * config/i386/i386-c.c: Likewise.
4097 * config/i386/i386.c: Likewise.
4098 * config/i386/msformat-c.c: Likewise.
4099 * config/i386/winnt-cxx.c: Likewise.
4100 * config/i386/winnt-stubs.c: Likewise.
4101 * config/i386/winnt.c: Likewise.
4102 * config/ia64/ia64-c.c: Likewise.
4103 * config/ia64/ia64.c: Likewise.
4104 * config/iq2000/iq2000.c: Likewise.
4105 * config/lm32/lm32.c: Likewise.
4106 * config/m32c/m32c-pragma.c: Likewise.
4107 * config/m32c/m32c.c: Likewise.
4108 * config/m32r/m32r.c: Likewise.
4109 * config/m68k/m68k.c: Likewise.
4110 * config/mcore/mcore.c: Likewise.
4111 * config/mep/mep-pragma.c: Likewise.
4112 * config/mep/mep.c: Likewise.
4113 * config/microblaze/microblaze-c.c: Likewise.
4114 * config/microblaze/microblaze.c: Likewise.
4115 * config/mips/mips.c: Likewise.
4116 * config/mmix/mmix.c: Likewise.
4117 * config/mn10300/mn10300.c: Likewise.
4118 * config/moxie/moxie.c: Likewise.
4119 * config/msp430/msp430-c.c: Likewise.
4120 * config/msp430/msp430.c: Likewise.
4121 * config/nds32/nds32-cost.c: Likewise.
4122 * config/nds32/nds32-fp-as-gp.c: Likewise.
4123 * config/nds32/nds32-intrinsic.c: Likewise.
4124 * config/nds32/nds32-isr.c: Likewise.
4125 * config/nds32/nds32-md-auxiliary.c: Likewise.
4126 * config/nds32/nds32-memory-manipulation.c: Likewise.
4127 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4128 * config/nds32/nds32-predicates.c: Likewise.
4129 * config/nds32/nds32.c: Likewise.
4130 * config/nios2/nios2.c: Likewise.
4131 * config/nvptx/nvptx.c: Likewise.
4132 * config/pa/pa.c: Likewise.
4133 * config/pdp11/pdp11.c: Likewise.
4134 * config/rl78/rl78-c.c: Likewise.
4135 * config/rl78/rl78.c: Likewise.
4136 * config/rs6000/rs6000-c.c: Likewise.
4137 * config/rs6000/rs6000.c: Likewise.
4138 * config/rx/rx.c: Likewise.
4139 * config/s390/s390-c.c: Likewise.
4140 * config/s390/s390.c: Likewise.
4141 * config/sh/sh-c.c: Likewise.
4142 * config/sh/sh-mem.cc: Likewise.
4143 * config/sh/sh.c: Likewise.
4144 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4145 * config/sh/sh_treg_combine.cc: Likewise.
4146 * config/sol2-c.c: Likewise.
4147 * config/sol2-cxx.c: Likewise.
4148 * config/sol2-stubs.c: Likewise.
4149 * config/sol2.c: Likewise.
4150 * config/sparc/sparc-c.c: Likewise.
4151 * config/sparc/sparc.c: Likewise.
4152 * config/spu/spu-c.c: Likewise.
4153 * config/spu/spu.c: Likewise.
4154 * config/stormy16/stormy16.c: Likewise.
4155 * config/tilegx/mul-tables.c: Likewise.
4156 * config/tilegx/tilegx-c.c: Likewise.
4157 * config/tilegx/tilegx.c: Likewise.
4158 * config/tilepro/mul-tables.c: Likewise.
4159 * config/tilepro/tilepro-c.c: Likewise.
4160 * config/tilepro/tilepro.c: Likewise.
4161 * config/v850/v850-c.c: Likewise.
4162 * config/v850/v850.c: Likewise.
4163 * config/vax/vax.c: Likewise.
4164 * config/visium/visium.c: Likewise.
4165 * config/vms/vms-c.c: Likewise.
4166 * config/vms/vms.c: Likewise.
4167 * config/vxworks.c: Likewise.
4168 * config/winnt-c.c: Likewise.
4169 * config/xtensa/xtensa.c: Likewise.
4170 * common/config/bfin/bfin-common.c: Likewise.
4172 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
4174 * tree.h (tree_code_for_canonical_type_merging): New function.
4175 * tree.c (gimple_canonical_types_compatible_p): Use
4176 tree_code_for_canonical_type_merging..
4178 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4182 * doc/tm.texi: Regenerate.
4183 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
4184 * target.def (TARGET_RELAXED_ORDERING): Likewise.
4185 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
4186 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
4187 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
4188 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
4189 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
4190 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
4191 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
4193 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4195 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
4196 register fma steering pass.
4197 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
4198 AARCH64_TUNE_FMA_STEERING.
4200 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
4202 * tree.c (verify_type_variant): Verify that type and variant is
4204 (gimple_canonical_types_compatible_p): Look for main variants.
4206 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4208 * config.gcc (powerpc*-*-*): Add support for a new configure
4209 option --with-advance-toolchain=<xxx> which overrides using the
4210 default header files, libraries and dynamic linker.
4212 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
4213 specs to support the configure --with-advance-toolchain=<xxx>
4215 (INCLUDE_EXTRA_SPEC): Likewise.
4216 (LINK_OS_EXTRA_SPEC32): Likewise.
4217 (LINK_OK_EXTRA_SPEC64): Likewise.
4218 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
4219 (DYNAMIC_LINKER_PREFIX): Likewise.
4220 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
4222 (GLIBC_DYNAMIC_LINKER32): Likewise.
4223 (GLIBC_DYNAMIC_LINKER64): Likewise.
4224 (LINK_OS_LINUX_SPEC32): Likewise.
4225 (LINK_OS_LINUX_SPEC64): Likewise.
4227 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
4228 configuration option.
4230 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
4233 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
4234 to determine current function ABI.
4235 (ix86_function_value_regno_p): Ditto.
4237 2015-06-03 Martin Liska <mliska@suse.cz>
4239 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
4240 * bitmap.h (struct bitmap_usage): Likewise.
4241 * ggc-common.c (struct ggc_usage): Likewise.
4242 * mem-stats.h (struct mem_location): Likewise.
4243 (struct mem_usage): Likewise.
4244 * vec.c (struct vec_usage): Likewise.
4246 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
4248 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
4251 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
4253 * doc/plugins.texi (enum plugin_event): New event.
4254 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
4255 and PLUGIN_FINISH_FUNCTION.
4256 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
4257 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
4259 2015-06-03 Richard Biener <rguenther@suse.de>
4261 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4262 compute GROUP_GAP for the first element.
4263 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
4266 2015-06-03 Nick Clifton <nickc@redhat.com>
4268 * config/rl78/rl78-real.md: Add peepholes to avoid a register
4269 copy when calling a function.
4270 * config/rl78/rl78.c (need_to_save): Do not push the frame
4271 pointer in an interrupt handler prologue if it is never used.
4273 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4275 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
4277 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
4279 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
4280 reference when cloning alias node.
4282 2015-06-03 Martin Liska <mliska@suse.cz>
4284 * alloc-pool.h (struct pool_usage): Correct space padding.
4285 * ggc-page.c (ggc_print_statistics): Align columns in a report.
4286 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
4287 * tree.c (dump_tree_statistics): Align columns in a report.
4289 2015-06-03 Martin Liska <mliska@suse.cz>
4291 * alloc-pool.c (allocate_pool_descriptor): Remove.
4292 (struct pool_output_info): Likewise.
4293 (print_alloc_pool_statistics): Likewise.
4294 (dump_alloc_pool_statistics): Likewise.
4295 * alloc-pool.h (struct pool_usage): New struct.
4296 (pool_allocator::initialize): Change usage of memory statistics
4298 (pool_allocator::release): Likewise.
4299 (pool_allocator::allocate): Likewise.
4300 (pool_allocator::remove): Likewise.
4301 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
4302 for a pool allocator.
4303 * mem-stats.h (struct mem_location): Add new ctor.
4304 (struct mem_usage): Add counter for number of
4306 (mem_alloc_description::register_descriptor): New overload of
4307 * mem-stats.h (mem_location::to_string): New function.
4308 * bitmap.h (struct bitmap_usage): Use this new function.
4309 * ggc-common.c (struct ggc_usage): Likewise.
4312 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
4314 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
4315 of GCC_INSN_FLAGS_H block.
4317 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
4319 * explow.c (plus_constant): Update check after force_const_mem call
4320 to see if the value returned is not a NULL_RTX.
4322 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
4324 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
4325 remove instumentation thunks calling reachable functions.
4326 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
4327 * lto/lto-partition.c (privatize_symbol_name_1): New.
4328 (privatize_symbol_name): Privatize both decl and orig_decl
4329 names for instrumented functions.
4330 * cgraph.c (cgraph_node::verify_node): Add transparent
4331 alias chain check for instrumented node.
4333 2015-06-03 Marek Polacek <polacek@redhat.com>
4337 * tree.c (attribute_value_equal): Handle attribute format.
4338 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
4340 2015-06-03 Richard Biener <rguenther@suse.de>
4342 PR tree-optimization/63916
4343 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4344 Forward-propagate non-invariant addresses by splicing their
4345 reference ops if the result isn't going to be used by PRE.
4346 (vn_reference_lookup_3): Remove pointless assert.
4348 2015-06-03 Richard Biener <rguenther@suse.de>
4350 PR tree-optimization/66375
4351 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
4352 add to the evolution before following SSA edges.
4354 2015-06-03 Bin Cheng <bin.cheng@arm.com>
4356 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
4357 (dump_use, dump_cand, find_induction_variables): Pass new argument
4359 (record_use): Preserve the ssa name information in IV.
4361 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
4363 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
4365 (add_mode_tests): Don't add mode tests if the predicate only
4366 accepts scalar constant integers. Otherwise, allow the mode
4367 of "op" to be VOIDmode if the predicate does accept such integers.
4369 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
4372 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
4373 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
4374 (aarch64_secondary_reload): Likewise
4375 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
4377 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
4380 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
4381 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4384 * cprop.c (try_replace_reg): Check cost of constants before propagating.
4386 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4388 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
4389 provide access to the IBM extended double floating point mode if
4390 long double is IEEE 128-bit floating point.
4391 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
4392 point if long double is the IBM extended double type.
4394 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
4395 enable adding IEEE 128-bit floating point support.
4396 (-mfloat128-software): Likewise.
4397 (-mfloat128-sw): Likewise.
4399 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
4400 128-bit floating point types to occupy any register if
4401 -mlong-double-64. Do not allow use of IFmode/KFmode unless
4402 -mfloat128-software is enabled.
4403 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
4405 (rs6000_option_override_internal): Add -mfloat128-* support.
4406 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
4408 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
4409 and float128 type nodes.
4410 (ieee128_float_type_node): Likewise.
4411 (ibm128_float_type_node): Likewise.
4413 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
4416 * config/aarch64/geniterators.sh: Rewrite in awk.
4418 2015-06-02 Martin Liska <mliska@suse.cz>
4420 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
4421 values to avoid -Wmaybe-uninitialized errors.
4423 2015-06-02 Richard Biener <rguenther@suse.de>
4426 * dwarf2out.c (lookup_context_die): New function.
4427 (resolve_addr): Avoid forcing a full DIE for the
4428 target of a DW_TAG_GNU_call_site during late compilation.
4429 Instead create a stub DIE without a type if we have a
4430 context DIE present.
4432 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
4434 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
4436 2015-06-02 Bin Cheng <bin.cheng@arm.com>
4438 PR tree-optimization/48052
4439 * cfgloop.h (struct control_iv): New.
4440 (struct loop): New field control_ivs.
4441 * tree-ssa-loop-niter.c : Include "stor-layout.h".
4442 (number_of_iterations_lt): Set no_overflow information.
4443 (number_of_iterations_exit): Init control iv in niter struct.
4444 (record_control_iv): New.
4445 (estimate_numbers_of_iterations_loop): Call record_control_iv.
4446 (loop_exits_before_overflow): New. Interface factored out of
4447 scev_probably_wraps_p.
4448 (scev_probably_wraps_p): Factor loop niter related code into
4449 loop_exits_before_overflow.
4450 (free_numbers_of_iterations_estimates_loop): Free control ivs.
4451 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
4453 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
4455 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
4456 the target doesn't belong to the current function.
4458 2015-06-02 Marek Polacek <polacek@redhat.com>
4461 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
4462 get_maxval_strlen does not produce an INTEGER_CST.
4464 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
4466 * config/arc/constraints.md: Use lower-case names in match_code.
4467 * config/mmix/constraints.md: Likewise.
4469 2015-06-02 Richard Biener <rguenther@suse.de>
4471 PR tree-optimization/65961
4472 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
4473 check and clarify dump message.
4474 (vect_build_slp_tree): If all children are built up from scalars
4475 build up the parent from scalars instead.
4476 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
4478 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4481 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
4482 instead of print ... .
4484 2015-06-02 Alan Modra <amodra@gmail.com>
4486 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
4489 2015-06-02 Bin Cheng <bin.cheng@arm.com>
4491 PR tree-optimization/52563
4492 PR tree-optimization/62173
4493 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
4494 (alloc_iv, set_iv): New parameter.
4495 (determine_biv_step): Delete.
4496 (find_bivs): Inline original determine_biv_step. Pass new
4498 (idx_find_step): Use no_overflow information for conversion.
4499 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
4500 resolve_mixers handle folded_casts.
4501 (instantiate_scev_name): Change bool parameter to bool pointer.
4502 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
4503 (instantiate_array_ref, instantiate_scev_not): Ditto.
4504 (instantiate_scev_3, instantiate_scev_2): Ditto.
4505 (instantiate_scev_1, instantiate_scev_r): Ditto.
4506 (instantiate_scev_convert, ): Change parameter. Pass argument
4507 to chrec_convert_aggressive.
4508 (instantiate_scev): Change argument.
4509 (resolve_mixers): New parameter and set it.
4510 (scev_const_prop): New argument.
4511 * tree-scalar-evolution.h (resolve_mixers): New parameter.
4512 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
4514 (chrec_convert): New parameter. Move definition below.
4515 (chrec_convert_aggressive): New parameter and set it. Call
4516 convert_affine_scev.
4517 * tree-chrec.h (chrec_convert): New parameter.
4518 (chrec_convert_aggressive): Ditto.
4520 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
4522 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
4523 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
4524 the LHS of a no-return call if its type has variable size.
4525 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4526 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
4528 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
4530 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
4531 * config.in: Regenerate.
4533 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
4535 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4536 consecutive accesses within outer-loop with force_vectorize
4537 for references with zero step in inner-loop.
4539 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
4541 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
4542 rather than from gcc/build directory.
4544 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
4547 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
4548 for __sync memory models, emit initial loads and final barriers as
4551 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
4554 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
4555 (aarch64_split_atomic_op): Check for __sync memory models, emit
4556 appropriate initial loads and final barriers.
4558 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
4560 * Makefile.in: Fix gcov dependencies that should
4561 not point to a build folder.
4563 2015-06-01 Richard Biener <rguenther@suse.de>
4566 2015-05-29 Richard Biener <rguenther@suse.de>
4568 PR tree-optimization/66314
4569 * tree-ssa-threadupdate.c (create_block_for_threading): Add
4570 parameter that says which loop the new block belongs to.
4571 (ssa_create_duplicates): Blocks duplicated for the threaded
4572 path belong to the loop of the thread destination.
4574 2015-06-01 Martin Liska <mliska@suse.cz>
4576 * sched-deps.c: Include pool-alloc.h before
4577 cselib.h header file is included.
4579 2015-06-01 Richard Biener <rguenther@suse.de>
4581 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
4584 2015-06-01 Martin Liska <mliska@suse.cz>
4586 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
4587 a function local variable.
4589 2015-06-01 Martin Liska <mliska@suse.cz>
4591 * alloc-pool.c (create_alloc_pool): Remove.
4592 (empty_alloc_pool): Likewise.
4593 (free_alloc_pool): Likewise.
4594 (free_alloc_pool_if_empty): Likewise.
4595 (pool_alloc): Likewise.
4596 (pool_free): Likewise.
4597 * alloc-pool.h: Remove old declarations.
4599 2015-06-01 Martin Liska <mliska@suse.cz>
4601 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
4602 (ira_create_object): Likewise.
4603 (ira_create_allocno): Likewise.
4604 (ira_create_live_range): Likewise.
4605 (copy_live_range): Likewise.
4606 (ira_finish_live_range): Likewise.
4607 (ira_free_allocno_costs): Likewise.
4608 (finish_allocno): Likewise.
4609 (finish_allocnos): Likewise.
4610 (initiate_prefs): Likewise.
4611 (ira_create_pref): Likewise.
4612 (finish_pref): Likewise.
4613 (finish_prefs): Likewise.
4614 (initiate_copies): Likewise.
4615 (ira_create_copy): Likewise.
4616 (finish_copy): Likewise.
4617 (finish_copies): Likewise.
4618 (finish_prefs): Likewise.
4620 2015-06-01 Martin Liska <mliska@suse.cz>
4622 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
4623 (allocate_and_init_ipcp_value): Likewise.
4624 (ipcp_lattice::add_value): Likewise.
4625 (merge_agg_lats_step): Likewise.
4626 (ipcp_driver): Likewise.
4627 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
4628 (ipa_free_all_structures_after_iinln): Likewise.
4629 * ipa-prop.h: Likewise.
4631 2015-06-01 Martin Liska <mliska@suse.cz>
4633 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
4635 (set_hint_predicate): Likewise.
4636 (inline_summary_alloc): Likewise.
4637 (reset_inline_edge_summary): Likewise.
4638 (reset_inline_summary): Likewise.
4639 (set_cond_stmt_execution_predicate): Likewise.
4640 (set_switch_stmt_execution_predicate): Likewise.
4641 (compute_bb_predicates): Likewise.
4642 (estimate_function_body_sizes): Likewise.
4643 (inline_free_summary): Likewise.
4645 2015-06-01 Martin Liska <mliska@suse.cz>
4647 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
4648 (ipa_edge_duplication_hook): Likewise.
4649 (ipa_free_all_structures_after_ipa_cp): Likewise.
4650 (ipa_free_all_structures_after_iinln): Likewise.
4652 2015-06-01 Martin Liska <mliska@suse.cz>
4654 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
4655 (ipa_profile_generate_summary): Likewise.
4656 (ipa_profile_read_summary): Likewise.
4657 (ipa_profile): Likewise.
4659 2015-06-01 Martin Liska <mliska@suse.cz>
4661 * tree-ssa-structalias.c (new_var_info): Use new type-based
4663 (new_constraint): Likewise.
4664 (init_alias_vars): Likewise.
4665 (delete_points_to_sets): Likewise.
4667 2015-06-01 Martin Liska <mliska@suse.cz>
4669 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
4670 (free_strinfo): Likewise.
4671 (pass_strlen::execute): Likewise.
4673 2015-06-01 Martin Liska <mliska@suse.cz>
4675 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
4677 (vn_reference_insert_pieces): Likewise.
4678 (vn_phi_insert): Likewise.
4679 (visit_reference_op_call): Likewise.
4680 (copy_phi): Likewise.
4681 (copy_reference): Likewise.
4682 (process_scc): Likewise.
4683 (allocate_vn_table): Likewise.
4684 (free_vn_table): Likewise.
4686 2015-06-01 Martin Liska <mliska@suse.cz>
4688 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
4690 (add_repeat_to_ops_vec): Likewise.
4691 (get_ops): Likewise.
4692 (maybe_optimize_range_tests): Likewise.
4693 (init_reassoc): Likewise.
4694 (fini_reassoc): Likewise.
4696 2015-06-01 Martin Liska <mliska@suse.cz>
4698 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
4700 (bitmap_set_new): Likewise.
4701 (get_or_alloc_expr_for_constant): Likewise.
4702 (get_or_alloc_expr_for): Likewise.
4703 (phi_translate_1): Likewise.
4704 (compute_avail): Likewise.
4705 (init_pre): Likewise.
4706 (fini_pre): Likewise.
4708 2015-06-01 Martin Liska <mliska@suse.cz>
4710 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
4711 (delete_dep_node): Likewise.
4712 (create_deps_list): Likewise.
4713 (free_deps_list): Likewise.
4714 (sched_deps_init): Likewise.
4715 (sched_deps_finish): Likewise.
4717 2015-06-01 Martin Liska <mliska@suse.cz>
4719 * regcprop.c (free_debug_insn_changes): Use new type-based
4721 (replace_oldest_value_reg): Likewise.
4722 (pass_cprop_hardreg::execute): Likewise.
4724 2015-06-01 Martin Liska <mliska@suse.cz>
4726 * ira-build.c (initiate_cost_vectors): Use new type-based
4728 (ira_allocate_cost_vector): Likewise.
4729 (ira_free_cost_vector): Likewise.
4730 (finish_cost_vectors): Likewise.
4732 2015-06-01 Martin Liska <mliska@suse.cz>
4734 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
4736 (free_sched_pools): Likewise.
4737 * sel-sched-ir.h (_list_alloc): Likewise.
4738 (_list_remove): Likewise.
4740 2015-06-01 Martin Liska <mliska@suse.cz>
4742 * stmt.c (add_case_node): Use new type-based pool allocator.
4743 (expand_case): Likewise.
4744 (expand_sjlj_dispatch_table): Likewise.
4746 2015-06-01 Martin Liska <mliska@suse.cz>
4748 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
4749 (free_bb): Likewise.
4750 (pass_cse_reciprocals::execute): Likewise.
4752 2015-06-01 Martin Liska <mliska@suse.cz>
4754 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
4755 (sra_deinitialize) Likewise.
4756 (create_access_1) Likewise.
4757 (build_accesses_from_assign) Likewise.
4758 (create_artificial_child_access) Likewise.
4760 2015-06-01 Martin Liska <mliska@suse.cz>
4762 * dse.c (get_group_info):Use new type-based pool allocator.
4763 (dse_step0) Likewise.
4764 (free_store_info) Likewise.
4765 (delete_dead_store_insn) Likewise.
4766 (free_read_records) Likewise.
4767 (record_store) Likewise.
4768 (replace_read) Likewise.
4769 (check_mem_read_rtx) Likewise.
4770 (scan_insn) Likewise.
4771 (dse_step1) Likewise.
4772 (dse_step7) Likewise.
4774 2015-06-01 Martin Liska <mliska@suse.cz>
4776 * df-scan.c (struct df_scan_problem_data):Use new type-based
4778 (df_scan_free_internal) Likewise.
4779 (df_scan_alloc) Likewise.
4780 (df_grow_reg_info) Likewise.
4781 (df_free_ref) Likewise.
4782 (df_insn_create_insn_record) Likewise.
4783 (df_mw_hardreg_chain_delete) Likewise.
4784 (df_insn_info_delete) Likewise.
4785 (df_free_collection_rec) Likewise.
4786 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
4787 (df_sort_and_compress_mws) Likewise.
4788 (df_ref_create_structure) Likewise.
4789 (df_ref_record) Likewise.
4791 2015-06-01 Martin Liska <mliska@suse.cz>
4793 * df-problems.c (df_chain_create):Use new type-based pool allocator.
4794 (df_chain_unlink_1) Likewise.
4795 (df_chain_unlink) Likewise.
4796 (df_chain_remove_problem) Likewise.
4797 (df_chain_alloc) Likewise.
4798 (df_chain_free) Likewise.
4799 * df.h (struct dataflow) Likewise.
4801 2015-06-01 Martin Liska <mliska@suse.cz>
4803 * cselib.c (new_elt_list):Use new type-based pool allocator.
4804 (new_elt_loc_list) Likewise.
4805 (unchain_one_elt_list) Likewise.
4806 (unchain_one_elt_loc_list) Likewise.
4807 (unchain_one_value) Likewise.
4808 (new_cselib_val) Likewise.
4809 (cselib_init) Likewise.
4810 (cselib_finish) Likewise.
4812 2015-06-01 Martin Liska <mliska@suse.cz>
4814 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
4815 (sh_reorg) Likewise.
4817 2015-06-01 Martin Liska <mliska@suse.cz>
4819 * cfg.c (initialize_original_copy_tables):Use new type-based
4821 (free_original_copy_tables) Likewise.
4822 (copy_original_table_clear) Likewise.
4823 (copy_original_table_set) Likewise.
4825 2015-06-01 Martin Liska <mliska@suse.cz>
4827 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
4829 (asan_mem_ref_new) Likewise.
4830 (free_mem_ref_resources) Likewise.
4832 2015-06-01 Martin Liska <mliska@suse.cz>
4834 * var-tracking.c (variable_htab_free):Use new type-based
4836 (attrs_list_clear) Likewise.
4837 (attrs_list_insert) Likewise.
4838 (attrs_list_copy) Likewise.
4839 (shared_hash_unshare) Likewise.
4840 (shared_hash_destroy) Likewise.
4841 (unshare_variable) Likewise.
4842 (var_reg_delete_and_set) Likewise.
4843 (var_reg_delete) Likewise.
4844 (var_regno_delete) Likewise.
4845 (drop_overlapping_mem_locs) Likewise.
4846 (variable_union) Likewise.
4847 (insert_into_intersection) Likewise.
4848 (canonicalize_values_star) Likewise.
4849 (variable_merge_over_cur) Likewise.
4850 (dataflow_set_merge) Likewise.
4851 (remove_duplicate_values) Likewise.
4852 (variable_post_merge_new_vals) Likewise.
4853 (dataflow_set_preserve_mem_locs) Likewise.
4854 (dataflow_set_remove_mem_locs) Likewise.
4855 (variable_from_dropped) Likewise.
4856 (variable_was_changed) Likewise.
4857 (set_slot_part) Likewise.
4858 (clobber_slot_part) Likewise.
4859 (delete_slot_part) Likewise.
4860 (loc_exp_insert_dep) Likewise.
4861 (notify_dependents_of_changed_value) Likewise.
4862 (emit_notes_for_differences_1) Likewise.
4863 (vt_emit_notes) Likewise.
4864 (vt_initialize) Likewise.
4865 (vt_finalize) Likewise.
4867 2015-06-01 Martin Liska <mliska@suse.cz>
4869 * ira-color.c (init_update_cost_records):Use new type-based
4871 (get_update_cost_record) Likewise.
4872 (free_update_cost_record_list) Likewise.
4873 (finish_update_cost_records) Likewise.
4874 (initiate_cost_update) Likewise.
4876 2015-06-01 Martin Liska <mliska@suse.cz>
4878 * lra.c (init_insn_regs): Use new type-based pool allocator.
4879 (new_insn_reg) Likewise.
4880 (free_insn_reg) Likewise.
4881 (free_insn_regs) Likewise.
4882 (finish_insn_regs) Likewise.
4883 (init_insn_recog_data) Likewise.
4884 (init_reg_info) Likewise.
4885 (finish_reg_info) Likewise.
4886 (lra_free_copies) Likewise.
4887 (lra_create_copy) Likewise.
4888 (invalidate_insn_data_regno_info) Likewise.
4890 2015-06-01 Martin Liska <mliska@suse.cz>
4892 * lra-lives.c (free_live_range): Use new type-based pool allocator.
4893 (free_live_range_list) Likewise.
4894 (create_live_range) Likewise.
4895 (copy_live_range) Likewise.
4896 (lra_merge_live_ranges) Likewise.
4897 (remove_some_program_points_and_update_live_ranges) Likewise.
4898 (lra_live_ranges_init) Likewise.
4899 (lra_live_ranges_finish) Likewise.
4901 2015-06-01 Martin Liska <mliska@suse.cz>
4903 * et-forest.c (et_new_occ): Use new type-based pool allocator.
4904 (et_new_tree): Likewise.
4905 (et_free_tree): Likewise.
4906 (et_free_tree_force): Likewise.
4907 (et_free_pools): Likewise.
4908 (et_split): Likewise.
4910 2015-06-01 Martin Liska <mliska@suse.cz>
4912 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4914 * alloc-pool.h (pool_allocator::pool_allocator): New function.
4915 (pool_allocator::release): Likewise.
4916 (inline pool_allocator::release_if_empty): Likewise.
4917 (inline pool_allocator::~pool_allocator): Likewise.
4918 (pool_allocator::allocate): Likewise.
4919 (pool_allocator::remove): Likewise.
4921 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4923 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4926 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4928 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4930 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4931 (arm_macro_fusion_p): Likewise.
4932 (arm_macro_fusion_pair_p): Likewise.
4934 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4936 * config/aarch64/aarch64-protos.h (tune_params): Rename
4937 fuseable_ops to fusible_ops.
4938 * config/aarch64/aarch64.c (generic_tunings): Rename
4939 fuseable_ops to fusible_ops.
4940 (cortexa53_tunings): Likewise.
4941 (cortexa57_tunings): Likewise.
4942 (thunderx_tunings): Likewise.
4943 (xgene1_tunings): Likewise.
4944 (aarch64_macro_fusion_p): Likewise.
4945 (aarch64_macro_fusion_pair_p): Likewise.
4947 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
4949 * config/s390/driver-native.c: New file.
4950 * config/s390/x-native: New file.
4951 * config.host: Add new files for s390.
4952 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4954 * config.gcc: Likewise.
4955 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4956 * config/s390/s390-opts.h (enum processor_type): Ditto.
4957 * config/s390/s390.c (s390_option_override): Catch unhandled
4960 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
4963 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4964 redirection for instrumented calls.
4965 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4966 (append_compiler_options): Append -fcheck-pointer-bounds.
4967 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4968 (chkp_redirect_edge): New.
4969 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4970 (chkp_redirect_edge): New.
4972 2015-06-01 Richard Biener <rguenther@suse.de>
4974 PR tree-optimization/66280
4975 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4978 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4980 * config/aarch64/aarch64.md
4981 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4984 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
4986 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4987 Remove obsolete kludge.
4989 2015-06-01 Richard Biener <rguenther@suse.de>
4991 * tree-ssa-reassoc.c (get_rank): Simplify.
4993 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
4995 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4996 * configure: Regenerated.
4998 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
5000 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
5001 issue (add space between string literal and macro).
5002 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
5004 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
5006 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
5007 implict or explicit -fPIE or -fpie.
5009 2015-05-30 Mike Frysinger <vapier@gentoo.org>
5011 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
5013 2015-05-28 DJ Delorie <dj@redhat.com>
5015 * expmed.c (extract_bit_field_1): Avoid clobbering a
5016 yet-to-be-used base/index register.
5018 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
5020 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
5021 (alias_stats): Add num_universal.
5022 (alias_set_subset_of): Special case pointers; be ready for NULL
5024 (alias_sets_conflict_p): Special case pointers; be ready for NULL
5026 (init_alias_set_entry): Break out from ...
5027 (record_alias_subset): ... here; propagate new fields;
5028 allocate children only when really needed.
5029 (get_alias_set): Do less generous pointer globbing.
5030 (dump_alias_stats_in_alias_c): Update statistics.
5032 2015-05-30 Alan Modra <amodra@gmail.com>
5034 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
5035 correct block for use of r12.
5036 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
5038 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5041 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
5044 2015-05-29 Jakub Jelinek <jakub@redhat.com>
5046 PR tree-optimization/66142
5047 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
5048 virtual phis that feed themselves.
5050 2015-05-29 Richard Biener <rguenther@suse.de>
5052 PR tree-optimization/66314
5053 * tree-ssa-threadupdate.c (create_block_for_threading): Add
5054 parameter that says which loop the new block belongs to.
5055 (ssa_create_duplicates): Blocks duplicated for the threaded
5056 path belong to the loop of the thread destination.
5058 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5060 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
5061 to cleanup-saved-temps.
5062 * doc/sourcebuild.texi (Clean up generated test files): Expand
5064 (dg-keep-saved-temps): Document new proc.
5065 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
5066 cleanup-saved-temps): Remove.
5068 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
5070 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
5072 * configure: Regenerate.
5074 2015-05-28 Mike Frysinger <vapier@gentoo.org>
5076 * config/nios2/linux.h (CPP_SPEC): Define.
5078 2015-05-28 Mike Frysinger <vapier@gentoo.org>
5080 * config/microblaze/linux.h (CPP_SPEC): Define.
5082 2015-05-28 Mike Frysinger <vapier@gentoo.org>
5084 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
5085 -pthread is specified.
5087 2015-05-28 Richard Biener <rguenther@suse.de>
5089 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
5090 (vect_fixup_scalar_cycles_with_patterns): Likewise.
5091 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
5092 after pattern recog.
5093 (vect_create_epilog_for_reduction): Properly handle reductions
5095 (vectorizable_reduction): Likewise.
5096 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
5098 (vect_get_constant_vectors): Create the correct number of
5099 initial values for reductions.
5100 (vect_schedule_slp_instance): Handle reduction chains that are
5101 type changing properly.
5102 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
5104 2015-05-28 Richard Biener <rguenther@suse.de>
5106 PR tree-optimization/66142
5107 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
5108 values better in memcpy destination handling. Handle non-aliasing
5111 2015-05-28 Lawrence Velázquez <vq@larryv.me>
5114 * config/darwin-c.c (version_components): New global enum.
5115 (parse_version, version_as_legacy_macro)
5116 (version_as_modern_macro, macosx_version_as_macro): New functions.
5117 (version_as_macro): Remove.
5118 (darwin_cpp_builtins): Use new function.
5120 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
5122 * builtins.c (expand_builtin_acc_on_device): Mark parameters
5123 with ATTRIBUTE_UNUSED.
5125 2015-05-28 Julian Brown <julian@codesourcery.com>
5129 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
5130 sequence for !ACCEL_COMPILER.
5132 2015-05-28 Nick Clifton <nickc@redhat.com>
5134 * config/rx/rx.c (push_regs): New function. Extracts code from...
5135 (rx_expand_prologue): ... here. Use push_regs to push even small
5137 (pop_regs): New function.
5138 (rx_expand_epilogue): Use pop_regs to pop even small spans of
5141 2015-05-28 Richard Biener <rguenther@suse.de>
5143 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
5145 (SLP_INSTANCE_BODY_COST_VEC): Remove.
5146 (vect_update_slp_costs_according_to_vf): Likewise.
5147 (vect_slp_analyze_operations): Update prototype.
5148 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
5149 vect_update_slp_costs_according_to_vf, adjust.
5150 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
5151 (vect_analyze_slp_cost_1): Likewise.
5152 (vect_analyze_slp_cost): Likewise. Properly deal with
5153 widening reduction ops. Commit body costs.
5154 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
5155 cost for loops from here.
5156 (vect_slp_analyze_operations): But do it from here when
5157 the vectorization factor is known and stmts are analyzed.
5158 (vect_bb_vectorization_profitable_p): Simplify.
5159 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
5160 (vect_update_slp_costs_according_to_vf): Remove.
5162 2015-05-27 Magnus Granberg <zorry@gentoo.org>
5163 H.J. Lu <hongjiu.lu@intel.com>
5165 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
5166 (BUILD_CFLAGS): Likewise.
5167 (BUILD_CXXFLAGS): Likewise.
5168 (LINKER): Add @NO_PIE_FLAG@.
5169 (BUILD_LDFLAGS): Likewise.
5170 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
5171 --enable-default-pie.
5172 * common.opt (fPIE): Initialize to -1.
5174 (no-pie): New option.
5175 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
5176 * configure.ac: Add --enable-default-pie.
5177 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
5178 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
5179 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
5180 * gcc.c (NO_PIE_SPEC): New.
5181 (PIE_SPEC): Likewise.
5182 (NO_FPIE1_SPEC): Likewise.
5183 (FPIE1_SPEC): Likewise.
5184 (NO_FPIE2_SPEC): Likewise.
5185 (FPIE2_SPEC): Likewise.
5186 (NO_FPIE2_SPEC): Likewise.
5187 (FPIE_SPEC): Likewise.
5188 (NO_FPIE_SPEC): Likewise.
5189 (NO_FPIC1_SPEC): Likewise.
5190 (FPIC1_SPEC): Likewise.
5191 (NO_FPIC2_SPEC): Likewise.
5192 (FPIC2_SPEC): Likewise.
5193 (NO_FPIC2_SPEC): Likewise.
5194 (FPIC_SPEC): Likewise.
5195 (NO_FPIC_SPEC): Likewise.
5196 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
5197 (FPIE1_OR_FPIC1_SPEC): Likewise.
5198 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
5199 (FPIE2_OR_FPIC2_SPEC): Likewise.
5200 (NO_FPIE_AND_FPIC_SPEC): Likewise.
5201 (FPIE_OR_FPIC_SPEC): Likewise.
5202 (LD_PIE_SPEC): Likewise.
5203 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
5204 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
5205 * config/darwin.h (PIE_SPEC): Renamed to ...
5206 (DARWIN_PIE_SPEC): This.
5207 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
5208 * config/darwin9.h (PIE_SPEC): Renamed to ...
5209 (DARWIN_PIE_SPEC): This.
5210 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
5211 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5212 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
5213 FPIE2_OR_FPIC2_SPEC.
5214 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5215 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5216 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
5217 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5218 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5219 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5220 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5221 * config/m32r/m32r.h (ASM_SPEC): Likewise.
5222 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
5223 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5224 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
5225 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
5226 * config/sparc/linux.h (ASM_SPEC): Likewise.
5227 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5228 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5229 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5230 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5231 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5232 * config/sparc/sparc.h (ASM_SPEC): Likewise.
5233 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5234 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
5235 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
5236 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
5237 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
5238 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
5239 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
5240 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
5241 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
5242 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
5243 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
5244 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
5245 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5246 * config/vax/linux.h (ASM_SPEC): Likewise.
5247 * doc/install.texi: Document --enable-default-pie.
5248 * doc/invoke.texi: Document -no-pie.
5249 * config.in: Regenerated.
5250 * configure: Likewise.
5252 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5254 PR rtl-optimization/66168
5255 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
5256 can_move_invariant_reg.
5258 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
5261 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
5262 REG_EQUAL note when doing insert.
5264 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
5265 instead of "%d" for 'o' operand.
5267 2015-05-27 Nathan Sidwell <nathan@acm.org>
5270 * tree.c (build_pointer_type_for_mode): Canonical type does not
5271 inherit can_alias_all.
5272 (build_reference_type_for_mode): Likewise.
5274 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
5276 * expr.h (array_at_struct_end_p): Move to...
5277 (array_ref_element_size): Likewise.
5278 (component_ref_field_offset): Likewise.
5279 * tree.h (array_ref_element_size): ...here.
5280 (array_at_struct_end_p): Likewise.
5281 (component_ref_field_offset): Likewise.
5282 * expr.c (array_ref_element_size): Move to...
5283 (array_ref_low_bound): Likewise.
5284 (array_at_struct_end_p): Likewise.
5285 (array_ref_up_bound): Likewise.
5286 (component_ref_field_offset): Likewise.
5287 * tree.c (array_ref_element_size): ...here.
5288 (array_ref_low_bound): Likewise.
5289 (array_ref_up_bound): Likewise.
5290 (array_at_struct_end_p): Likewise.
5291 (component_ref_field_offset): Likewise.
5293 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
5294 Szabolcs Nagy <szabolcs.nagy@arm.com>
5296 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
5298 2015-05-27 Jason Merrill <jason@redhat.com>
5301 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
5302 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
5303 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
5305 2015-05-22 Aditya Kumar <hiraditya@msn.com>
5307 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
5310 * statistics.c (statistics_fini_pass): Print pass name.
5312 2015-05-27 Richard Biener <rguenther@suse.de>
5314 PR tree-optimization/66272
5316 2014-08-15 Richard Biener <rguenther@suse.de>
5318 PR tree-optimization/62031
5319 * tree-data-ref.c (dr_analyze_indices): Do not set
5320 DR_UNCONSTRAINED_BASE.
5321 (dr_may_alias_p): All indirect accesses have to go the
5322 formerly DR_UNCONSTRAINED_BASE path.
5323 * tree-data-ref.h (struct indices): Remove
5324 unconstrained_base member.
5325 (DR_UNCONSTRAINED_BASE): Remove.
5327 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
5329 * dwarf2out.c: Remove block_map.
5330 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
5331 (gen_lexical_block_die): Same.
5332 (dwarf2out_function_decl): Remove block_map use.
5333 (dwarf2out_c_finalize): Same.
5334 * tree-core.h (struct tree_block): Add die field.
5335 * tree.h (BLOCK_DIE): New.
5337 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5340 * expr.c (memory_load_overlap): New function.
5341 (emit_push_insn): When pushing partial args to the stack would
5342 clobber the register part load the overlapping part into a pseudo
5343 and put it into the hard reg after pushing. Change return type
5344 to bool. Add bool argument.
5345 * expr.h (emit_push_insn): Change return type to bool.
5347 * calls.c (expand_call): Cancel sibcall optimization when encountering
5348 partial argument on targets with ARGS_GROW_DOWNWARD and
5349 !STACK_GROWS_DOWNWARD.
5350 (emit_library_call_value_1): Update callsite of emit_push_insn.
5351 (store_one_arg): Likewise.
5353 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
5355 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
5357 2015-05-27 Martin Liska <mliska@suse.cz>
5359 * Makefile.in: Add additional dependencies related to memory report
5361 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
5362 * bitmap.c (struct bitmap_descriptor_d): Remove.
5363 (struct loc): Likewise.
5364 (struct bitmap_desc_hasher): Likewise.
5365 (bitmap_desc_hasher::hash): Likewise.
5366 (bitmap_desc_hasher::equal): Likewise.
5367 (get_bitmap_descriptor): Likewise.
5368 (bitmap_register): User new memory descriptor API.
5369 (register_overhead): Likewise.
5370 (bitmap_find_bit): Register nsearches and search_iter statistics.
5371 (struct bitmap_output_info): Remove.
5372 (print_statistics): Likewise.
5373 (dump_bitmap_statistics): Use new memory descriptor.
5374 * bitmap.h (struct bitmap_usage): New class.
5375 * genmatch.c: Extend header file inclusion.
5376 * genpreds.c: Likewise.
5377 * ggc-common.c (struct ggc_usage): New class.
5378 (struct ggc_loc_desc_hasher): Remove.
5379 (ggc_loc_desc_hasher::hash): Likewise.
5380 (ggc_loc_desc_hasher::equal): Likewise.
5381 (struct ggc_ptr_hash_entry): Likewise.
5382 (struct ptr_hash_hasher): Likewise.
5383 (ptr_hash_hasher::hash): Likewise.
5384 (ptr_hash_hasher::equal): Likewise.
5385 (make_loc_descriptor): Likewise.
5386 (ggc_prune_ptr): Likewise.
5387 (dump_ggc_loc_statistics): Use new memory descriptor.
5388 (ggc_record_overhead): Likewise.
5389 (ggc_free_overhead): Likewise.
5390 (final_cmp_statistic): Remove.
5391 (cmp_statistic): Likewise.
5392 (ggc_add_statistics): Liekwise.
5393 (ggc_prune_overhead_list): Likewise.
5394 * hash-map-traits.h: New file.
5395 * hash-map.h (struct default_hashmap_traits): Move the traits to a
5396 separate header file.
5397 * hash-set.h: Pass memory statistics info to ctor.
5398 * hash-table.c (void dump_hash_table_loc_statistics): New function.
5399 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
5400 (hash_table::~hash_table): Register memory release operation.
5401 (hash_table::alloc_entries): Handle memory allocation operation.
5402 (hash_table::expand): Likewise.
5403 * inchash.c (iterative_hash_hashval_t): Move implementation to header
5405 (iterative_hash_host_wide_int): Likewise.
5406 * inchash.h (class hash): Likewise.
5407 * mem-stats-traits.h: New file.
5408 * mem-stats.h: New file.
5409 (mem_location): Add new class.
5410 (mem_usage): Likewise.
5411 (mem_alloc_description): Likewise.
5412 * sese.c: Add new header file inclusision.
5413 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
5415 * tree-sra.c: Add new header file inclusision.
5416 * vec.c (struct vec_descriptor): Remove.
5417 (hash_descriptor): Likewise.
5418 (struct vec_usage): Likewise.
5419 (struct ptr_hash_entry): Likewise.
5420 (hash_ptr): Likewise.
5422 (vec_prefix::register_overhead): Use new memory descriptor API.
5423 (vec_prefix::release_overhead): Likewise.
5424 (add_statistics): Remove.
5425 (dump_vec_loc_statistics): Use new memory descriptor API.
5426 * vec.h (struct vec_prefix): Likewise.
5427 (va_heap::reserve): Likewise.
5428 (va_heap::release): Likewise.
5429 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
5431 2015-05-27 Richard Biener <rguenther@suse.de>
5433 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
5434 earlier and remove ??? comment.
5435 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
5436 and got called from loop analysis bail out. Always pass the SLP
5437 node to the vectorizable_* functions.
5438 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
5439 the premature SLP check here.
5440 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
5442 (vect_detect_hybrid_slp_1): Likewise.
5444 2015-05-26 Jeff Law <law@redhat.com>
5446 * combine.c (find_split_point): Verify that the shift count is a
5447 constant when choosing (plus (ashift ...)) as a split point.
5449 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
5450 No functional changes.
5452 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
5454 * ipa-polymorphic-call.c
5455 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
5456 case when call target is already known.
5458 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
5461 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
5462 take into account the case that operands[1] and operands[2]
5463 are the same register.
5465 2015-05-26 Michael Matz <matz@suse.de>
5469 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
5471 (vect_create_vectorized_demotion_stmts): Always set
5472 STMT_VINFO_VEC_STMT, also with SLP.
5473 (vectorizable_store): Handle strided group stores.
5475 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5478 * config/aarch64/aarch64.md
5479 (*adds_shift_imm_<mode>): New pattern.
5480 (*subs_shift_imm_<mode>): Likewise.
5481 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5482 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5483 (*add_uxt<mode>_shift2): Likewise.
5484 (*add_uxtsi_shift2_uxtw): Likewise.
5485 (*sub_uxt<mode>_shift2): Likewise.
5486 (*sub_uxtsi_shift2_uxtw): Likewise.
5488 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
5490 * config/rs6000/constraints.md (Y, U): Use match_test.
5492 2015-05-26 Christian Bruel <christian.bruel@st.com>
5495 * config/arm/arm.c (arm_option_check_internal)
5496 (arm_option_params_internal): Check opts->target_flags to set macros.
5497 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5498 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
5499 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5500 (builtin_define): Replaced with def_or_undef_macro.
5501 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5502 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
5503 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5504 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
5505 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
5506 (TARGET_ARM_FEATURE_LDREX_P)
5507 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
5508 * config/arm/arm-c.c (def_or_undef_macro): New function.
5509 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
5511 2015-05-26 Christian Bruel <christian.bruel@st.com>
5513 * c-common.h (builtin_define_with_int_value)
5514 (builtin_define_type_sizeof): Declare.
5515 * c-cppbuiltin.c (builtin_define_with_int_value)
5516 (builtin_define_type_sizeof): Externalize.
5517 (builtin_define_std): Cleanup declaration.
5518 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
5519 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
5520 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
5521 (builtin_define, builtin_assert): New macros.
5523 2015-05-26 Richard Biener <rguenther@suse.de>
5525 PR tree-optimization/66142
5526 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
5527 MEM_REFs for the same base address.
5529 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5532 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
5534 2015-05-26 Jason Merrill <jason@redhat.com>
5536 * configure.ac: Set CXXFLAGS for ISL test.
5537 * configure: Regenerate.
5539 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
5540 strstr and basename.
5541 * configure: Regenerate.
5543 2015-05-26 Richard Biener <rguenther@suse.de>
5545 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
5546 X % C -> X & (C - 1) for C being a power-of two to ...
5547 * match.pd: ... patterns.
5549 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
5551 * match.pd (swapped_tcc_comparison): New operator list.
5552 (-A CMP -B): New simplification.
5553 * fold-const.c (fold_comparison): Remove corresponding code.
5555 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
5557 * caller-save.c (init_caller_save): Base temporary register numbers
5558 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
5559 * cfgloopanal.c (init_set_costs): Likewise.
5560 * dojump.c (prefer_and_bit_test): Likewise.
5561 * expr.c (init_expr_target): Likewise.
5562 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5563 * lower-subreg.c (init_lower_subreg): Likewise.
5564 * postreload.c (reload_cse_regs_1): Likewise.
5566 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
5568 * gensupport.h (compute_test_codes): Declare.
5569 * gensupport.c (compute_predicate_codes): Rename to...
5570 (compute_test_codes): ...this. Generalize error message.
5571 (process_define_predicate): Update accordingly.
5572 * genpreds.c (compute_maybe_allows): Delete.
5573 (add_constraint): Use compute_test_codes to determine whether
5574 something can accept a SUBREG, REG or MEM.
5576 2015-05-26 Torvald Riegel <triegel@redhat.com>
5578 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
5579 'memory model' to align with C++11; fix description of memory orders;
5582 2015-05-26 Richard Biener <rguenther@suse.de>
5584 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
5585 (vect_analyze_loop_operations): ... here. Remove slp parameter,
5586 detect whether we apply SLP. Remove call to
5587 vect_update_slp_costs_according_to_vf.
5588 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
5589 vect_update_slp_costs_according_to_vf from here. Dispatch
5590 to vect_slp_analyze_operations to analyze SLP stmts.
5591 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
5592 unused bb_vec_info parameter, adjust assert.
5593 (vect_slp_analyze_operations): Pass in the slp instance tree
5594 instead of bb_vec_info.
5595 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
5596 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
5598 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
5600 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
5601 Q_REGS. Expand comment.
5602 (REG_CLASS_NAMES): Ditto.
5603 (REG_CLASS_CONTENTS): Ditto.
5605 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
5608 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
5609 when LEGACY_INT_REGNO_P is processed.
5611 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
5613 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
5615 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5617 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
5618 register if not marked dead/unused, before return.
5620 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
5623 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
5624 is set; check for assembler name at LTO time.
5625 (type_in_anonymous_namespace): Remove hacks, check that all
5626 anonymous types are called "<anon>"
5627 (odr_type_p): Simplify; add check for "<anon>"
5628 (odr_subtypes_equivalent): Add odr_type_p check.
5629 * tree.c (need_assembler_name_p): Even anonymous namespace needs
5632 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
5634 * ipa-utils.h (method_class_type): Remove.
5635 * cgraphunit.c (walk_polymorphic_call_targets): Use
5636 TYPE_METHOD_BASETYPE.
5637 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
5638 on main variants only.
5639 (method_class_type): Remove.
5640 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
5641 (build_type_inheritance_graph): Likewise.
5642 * ipa-icf.c (sem_function::equals_wpa): Likewise.
5643 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
5644 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
5646 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
5648 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
5649 is_typedef_decl, typedef_variant_p): Constify.
5650 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
5651 is_typedef_decl, typedef_variant_p): Constify.
5653 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5655 * defaults.h (gen_tablejump): New function.
5656 (HAVE_tablejump): Add default value.
5660 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5662 * defaults.h (gen_store_multiple): New function.
5663 (HAVE_store_multiple): Add default value.
5664 * expr.c (move_block_from_reg): Adjust.
5666 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5668 * defaults.h (gen_load_multiple): New function.
5669 (HAVE_load_multiple): Add default value.
5670 * expr.c (move_block_to_reg): Adjust.
5672 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5674 * defaults.h (gen_mem_signal_fence): New function.
5675 (HAVE_mem_signal_fence): Add default value.
5678 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5680 * defaults.h (gen_memory_barrier): New function.
5681 (HAVE_memory_barrier): Add default value.
5684 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5686 * defaults.h (gen_mem_thread_fence): New function.
5687 (HAVE_mem_thread_fence): Add default definition.
5690 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5692 * combine.c (find_split_point): Check the value of HAVE_lo_sum
5693 instead of if it is defined.
5694 (combine_simplify_rtx): Likewise.
5695 * lra-constraints.c (process_address_1): Likewise.
5696 * config/darwin.c: Adjust.
5697 * genconfig.c (main): Always define HAVE_lo_sum.
5699 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5701 * genmatch.c (parser::parse_operation): Reject expanding
5702 operator-list inside 'for'.
5704 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5706 * genmatch.c (parser::parse_for): Reject iterator if used as
5709 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5711 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
5712 after end of id-list.
5714 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
5716 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
5717 we do not try to compute canonical type for type that does not need
5719 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
5721 * tree.h (type_with_alias_set_p): New.
5723 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
5725 * tree.c (gimple_canonical_types_compatible_p): Do not compare
5726 function attributes.
5727 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
5729 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
5731 * Makefile.in (check_gcc_parallelize): Delete.
5732 (lang_checks_parallelized): Update comment.
5734 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
5736 PR rtl-optimization/66237
5737 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
5738 location of an "as_a" cast.
5740 2015-05-22 Jeff Law <law@redhat.com>
5742 * config/pa/pa.md (non-canonical shift-add insns): Remove.
5743 (peepholes with non-canonical RTL sources): Remove.
5744 (peepholes for indexed stores of FP regs in integer modes): Match and
5745 generate canonical RTL.
5747 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
5749 PR tree-optimization/63387
5750 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
5751 ((x ord x) & (y ord y) -> (x ord y),
5752 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
5753 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
5754 vectors like scalars.
5756 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
5758 * convert.c (convert_to_integer, convert_to_vector): Include the
5759 types in the error message.
5761 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
5763 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
5766 2015-05-22 Jeff Law <law@redhat.com>
5768 * config/pa/pa.md (integer_indexed_store splitters): Use
5769 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
5770 insns -- adjusting the constant 2nd operand accordingly.
5772 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
5773 (plus (ashift X log2) Y) if it is a split point.
5775 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
5776 out of hppa_legitimize_address to handle both forms of a multiply
5778 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
5779 Always generate the ASHIFT variant as the result is not directly
5780 used in a MEM. Update comments and refactor slightly to improve
5783 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5786 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
5787 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
5788 (aarch64_composite_type_p): Return false if given type and mode are
5791 2015-05-22 Richard Biener <rguenther@suse.de>
5793 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
5795 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
5796 patterns when determining whether SLP is pure.
5797 (vect_is_slp_reduction): Remove check for pattern stmts.
5798 (vect_is_simple_reduction_1): Remove dead code.
5799 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
5800 (vect_get_and_check_slp_defs): Pass in the stmt number.
5801 Allow the first def in a reduction to be not a pattern stmt when
5802 the rest of the stmts def are patterns.
5803 (vect_build_slp_tree_1): Allow tcc_expression codes like
5804 SAD_EXPR and DOT_PROD_EXPR.
5805 (vect_build_slp_tree): Adjust.
5806 (vect_analyze_slp): Refactor and move BB vect error message ...
5807 (vect_slp_analyze_bb_1): ... here.
5809 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
5811 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
5812 for CSWTCH temporary.
5814 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5816 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
5817 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
5820 2015-05-22 Richard Biener <rguenther@suse.de>
5822 PR tree-optimization/66251
5823 * tree-vect-stmts.c (vectorizable_conversion): Properly
5824 set STMT_VINFO_VEC_STMT even for the SLP case.
5826 2015-05-22 Marek Polacek <polacek@redhat.com>
5828 * doc/extend.texi: Use @pxref instead of @xref.
5830 2015-05-22 hiraditya <hiraditya@msn.com>
5832 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
5835 2015-05-22 Richard Biener <rguenther@suse.de>
5837 PR tree-optimization/65701
5838 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5839 Move peeling cost models into one place. Peel for alignment
5840 for single loads only if an aligned load is cheaper than
5843 2015-05-22 Marek Polacek <polacek@redhat.com>
5846 * doc/extend.texi (Enumerator Attributes): New section.
5847 Document syntax of enumerator attributes.
5849 2015-05-22 Richard Biener <rguenther@suse.de>
5851 * tree-vect-loop.c (get_reduction_op): New function.
5852 (vect_model_reduction_cost): Use it, add reduc_index parameter.
5853 Make ready for BB reductions.
5854 (vect_create_epilog_for_reduction): Use get_reduction_op.
5855 (vectorizable_reduction): Init reduc_index to a valid value.
5856 Adjust vect_model_reduction_cost call.
5857 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5858 operand for reduction defaults. Add SAD_EXPR support.
5859 Assert we have a neutral op for SLP reductions.
5860 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5861 walking pattern stmt ops only recurse to SSA names.
5863 2015-05-22 Richard Biener <rguenther@suse.de>
5865 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5866 assert with guard, remove check on detected reduction.
5867 (vect_recog_sad_pattern): Likewise.
5868 (vect_recog_widen_sum_pattern): Likewise.
5870 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5872 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5873 __always_inline__ attribute.
5874 (vaesdq_u8): Likewise.
5875 (vaesmcq_u8): Likewise.
5876 (vaesimcq_u8): Likewise.
5877 (vsha1cq_u32): Likewise.
5878 (vsha1mq_u32): Likewise.
5879 (vsha1pq_u32): Likewise.
5880 (vsha1h_u32): Likewise.
5881 (vsha1su0q_u32): Likewise.
5882 (vsha1su1q_u32): Likewise.
5883 (vsha256hq_u32): Likewise.
5884 (vsha256h2q_u32): Likewise.
5885 (vsha256su0q_u32): Likewise.
5886 (vsha256su1q_u32): Likewise.
5887 (vmull_p64): Likewise.
5888 (vmull_high_p64): Likewise.
5890 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5892 * final.c (final_scan_insn): Don't check HAVE_peephole with the
5894 * output.h: Likewise.
5895 * genconfig.c (main): Alwways define HAVE_peephole.
5896 * genpeep.c: Don't emit checks of HAVE_peephole.
5898 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5900 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5901 check HAVE_conditional_move with the preprocessor.
5903 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5905 * genconfig.c (main): Always define HAVE_conditional_move.
5906 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5907 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5910 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5912 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5913 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5914 and FRAME_POINTER_REGNUM with the preprocessor.
5916 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5918 * defaults.h: Add default for STACK_PUSH_CODE.
5919 * expr.c: Don't redefine STACK_PUSH_CODE.
5920 * recog.c: Likewise.
5922 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5924 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5925 sched-deps.c: Use if instead of preprocessor checks with
5926 STACK_GROWS_DOWNWARD.
5928 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5930 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5932 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5933 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5934 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5935 * doc/tm.texi: Regenerate.
5937 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
5940 * config/i386/constraints.md (Bg): New constraint for GOT memory
5942 * config/i386/i386.md (*call_got_x32): New pattern.
5943 (*call_value_got_x32): Likewise.
5944 * config/i386/predicates.md (GOT_memory_operand): New predicate.
5946 2015-05-21 Jakub Jelinek <jakub@redhat.com>
5948 PR tree-optimization/66233
5949 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5952 2015-05-21 Jeff Law <law@redhat.com>
5954 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5955 than MULT for shadd sequences.
5957 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
5959 * alias.c (alias_stats): New static var.
5960 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5961 (dump_alias_stats_in_alias_c): New function.
5962 * alias.h (dump_alias_stats_in_alias_c): Declare.
5963 * tree-ssa-alias.c (dump_alias_stats): Call it.
5965 2015-05-08 Michael Matz <matz@suse.de>
5967 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5969 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5970 (STMT_VINFO_STRIDED_P): ... this.
5971 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5972 (vect_verify_datarefs_alignment): Likewise.
5973 (vect_enhance_data_refs_alignment): Likewise.
5974 (vect_analyze_data_ref_access): Likewise.
5975 (vect_analyze_data_refs): Accept strided stores.
5976 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5977 (vect_model_load_cost): Adjust for macro rename.
5978 (vectorizable_mask_load_store): Likewise.
5979 (vectorizable_load): Likewise.
5980 (vectorizable_store): Open code strided stores.
5982 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5984 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5987 2015-05-21 Richard Biener <rguenther@suse.de>
5990 * match.pd: Guard pattern optimzing (int)(float)int
5991 conversions to apply only on GIMPLE.
5993 2015-05-21 Jeff Law <law@redhat.com>
5995 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5996 multiply-accumulate/shift-add insn generation.
5998 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
6001 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
6002 operands[1] are the same.
6004 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
6007 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
6008 build_distinct_type_copy to copy bounds.
6010 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
6012 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
6013 Change to unsigned int.
6015 2015-05-20 Jeff Law <law@redhat.com>
6017 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
6018 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
6019 (pa_shadd_constant_p): Allow constants for shadd insns rather
6020 than valid scaling constants for memory addresses.
6021 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
6022 * config/pa/predicates.md (mem_shadd_operand): New predicate.
6023 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
6024 (shift-add insns using ASHIFT): New patterns.
6026 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
6028 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
6030 (fix_up_fall_thru_edges): Likewise.
6031 (fix_crossing_conditional_branches): Likewise. Promote jump targets
6032 from to rtx_insn to rtx_code_label where feasible.
6033 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
6034 gen_move_insn (returned type changed to rtx_insn).
6035 * builtins.c (expand_errno_check): Fix arguments of
6036 do_compare_rtx_and_jump (now expects rtx_code_label).
6037 (expand_builtin_acc_on_device): Likewise.
6038 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
6039 invert_jump (now exprects rtx_jump_insn).
6040 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
6041 (construct_init_block): Use rtx_code_label.
6042 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
6043 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
6044 calling redirect_jump.
6045 (patch_jump_insn): Likewise.
6046 (redirect_branch_edge): Likewise.
6047 (force_nonfallthru_and_redirect): Likewise.
6048 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
6050 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
6051 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
6052 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
6053 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
6054 to store the value retured by gen_label_rtx.
6055 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
6057 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
6058 (split_branches): Fix calls of redirect_jump.
6059 * dojump.c (jumpifnot): Promote argument type from rtx to
6061 (jumpifnot_1): Likewise.
6063 (jumpif_1): Likewise.
6064 (do_jump_1): Likewise.
6065 (do_jump): Likewise. Use rtx_code_label when feasible.
6066 (do_jump_by_parts_greater_rtx): Likewise.
6067 (do_jump_by_parts_zero_rtx): Likewise.
6068 (do_jump_by_parts_equality_rtx): Likewise.
6069 (do_compare_rtx_and_jump): Likewise.
6070 * dojump.h: Update function prototypes.
6071 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
6073 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
6075 (emit_label_before): Likewise.
6076 (emit_jump_insn_after_noloc): Likewise.
6077 (emit_jump_insn_after_setloc): Likewise.
6078 (emit_jump_insn_after): Likewise
6079 (emit_jump_insn_before_setloc): Likewise.
6080 (emit_jump_insn_before): Likewise.
6081 (emit_label_before): Promote return type to rtx_code_label.
6082 (emit_label): Likewise.
6083 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
6084 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
6086 (emit_stack_restore): Likewise.
6087 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
6088 (do_cmp_and_jump): Likewise.
6089 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
6090 from rtx to rtx_code_label.
6091 (gen_move_insn_uncast): New function.
6092 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
6093 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
6094 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
6095 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
6096 invert_jump_1 and redirect_jump_1.
6097 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
6098 do_compare_rtx_and_jump.
6099 (expand_addsub_overflow): Likewise.
6100 (expand_neg_overflow): Likewise.
6101 (expand_mul_overflow): Likewise.
6102 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
6103 return value of gen_move_insn.
6104 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
6105 * loop-doloop.c (add_test): Use rtx_code_label.
6106 (doloop_modify): Likewise.
6107 (doloop_optimize): Likewise.
6108 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
6109 * lra-constraints.c (emit_spill_move): Remove cast of value returned
6111 (inherit_reload_reg): Add cast when calling dump_insn_slim.
6112 (split_reg): Likewise.
6113 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
6115 * optabs.c (expand_binop_directly): Remove casts of values returned by
6117 (expand_unop_direct): Likewise.
6118 (expand_abs): Likewise.
6119 (maybe_emit_unop_insn): Likewise.
6120 (maybe_gen_insn): Promote return type to rtx_insn.
6121 * optabs.h: Update prototype of maybe_gen_insn.
6122 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
6124 * recog.c (struct peep2_insn_data): Promote type of insn field to
6126 (peep2_reinit_state): Use NULL instead of NULL_RTX.
6127 (peep2_attempt): Remove casts of insn in peep2_insn_data.
6128 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
6129 * recog.h (struct insn_gen_fn): Promote return types of function
6130 pointers and operator ().from rtx to rtx_insn.
6131 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
6132 (fill_eager_delay_slots): Likewise.
6133 (relax_delay_slots): Likewise.
6134 (make_return_insns): Likewise.
6135 (dbr_schedule): Likewise.
6136 (optimize_skips): Likewise.
6137 (reorg_redirect_jump): Likewise.
6138 (fill_slots_from_thread): Likewise.
6139 * reorg.h: Update prototypes.
6140 * resource.c (find_dead_or_set_registers): Use dyn_cast to
6141 rtx_jump_insn instead of check. Use it's jump_target method.
6142 * rtl.h (rtx_jump_insn::jump_label): Define new method.
6143 (rtx_jump_insn::jump_target): Define new method.
6144 (rtx_jump_insn::set_jump_target): Define new method.
6145 * rtlanal.c (tablejump_p): Promote type of one local variable.
6146 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
6147 (sched_analyze_insn): Likewise.
6148 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
6149 (print_insn): Likewise.
6150 * stmt.c (label_rtx): Promote return type to rtx_insn.
6151 (force_label_rtx): Likewise.
6152 (jump_target_rtx): Define new function.
6153 (expand_label): Use it, get rid of one cast.
6154 (expand_naked_return): Promote rtx to rtx_code_label.
6155 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
6156 (expand_case): Use rtx_code_label instread of rtx where feasible.
6157 (expand_sjlj_dispatch_table): Likewise.
6158 (emit_case_nodes): Likewise.
6159 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
6160 * store-motion.c (insert_store): Make use of new return type of
6161 gen_move_insn and remove a cast.
6162 (replace_store_insn): Likewise.
6164 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
6166 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
6167 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
6169 2015-05-20 Jeff Law <law@redhat.com>
6171 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
6172 dispose of the jump thread path when the jump threading
6173 opportunity is cancelled.
6175 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6177 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
6178 when printing the caret character.
6180 2015-05-20 Marek Polacek <polacek@redhat.com>
6182 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
6184 2015-05-20 Marek Polacek <polacek@redhat.com>
6186 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
6187 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
6188 * gimple-fold.c (canonicalize_bool): Likewise.
6189 (same_bool_result_p): Likewise.
6190 * tree-if-conv.c (parse_predicate): Likewise.
6192 2015-05-20 Marek Polacek <polacek@redhat.com>
6194 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
6195 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
6197 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6199 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
6200 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
6203 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
6205 * config/mips/mips.h (micromips_globals): Declare.
6207 2015-05-20 David Malcolm <dmalcolm@redhat.com>
6209 * timevar.def (TV_INITIALIZE_RTL): New.
6210 * toplev.c (initialize_rtl): Use an auto_timevar to account this
6211 function's time to TV_INITIALIZE_RTL.
6213 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
6215 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
6216 gimple_build_nop calls.
6217 (chkp_find_bounds_for_elem): Likewise.
6218 (chkp_get_zero_bounds): Likewise.
6219 (chkp_get_none_bounds): Likewise.
6220 (chkp_get_bounds_by_definition): Likewise.
6221 (chkp_generate_extern_var_bounds): Likewise.
6222 (chkp_get_bounds_for_decl_addr): Likewise.
6223 (chkp_get_bounds_for_string_cst): Likewise.
6225 2015-05-20 Bin Cheng <bin.cheng@arm.com>
6227 PR tree-optimization/65447
6228 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
6229 (dump_use, dump_uses): Support to dump sub use.
6230 (record_use): New parameters to support sub use. Remove call to
6232 (record_sub_use, record_group_use): New functions.
6233 (compute_max_addr_offset, split_all_small_groups): New functions.
6234 (group_address_uses, rewrite_use_address): New functions.
6235 (strip_offset): New declaration.
6236 (find_interesting_uses_address): Call record_group_use.
6237 (add_candidate): New assertion.
6238 (infinite_cost_p): Move definition forward.
6239 (add_costs): Check INFTY cost and return immediately.
6240 (get_computation_cost_at): Clear setup cost and dependent bitmap
6242 (determine_use_iv_cost_address): Compute cost for sub uses.
6243 (rewrite_use_address_1): Rename from old rewrite_use_address.
6244 (free_loop_data): Free sub uses.
6245 (tree_ssa_iv_optimize_loop): Call group_address_uses.
6247 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6248 Jim Wilson <jim.wilson@linaro.org>
6250 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
6251 new fields loadv and storev.
6252 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
6253 Initialize loadv and storev.
6254 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
6255 (cortexa53_extra_costs): Likewise.
6256 (cortexa57_extra_costs): Likewise.
6257 (xgene1_extra_costs): Likewise.
6258 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
6261 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6263 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
6265 (cortexa8_extra_costs): Likewise.
6266 (cortexa5_extra_costs): Likewise.
6267 (cortexa7_extra_costs): Likewise.
6268 (cortexa12_extra_costs): Likewise.
6269 (cortexa15_extra_costs): Likewise.
6270 (v7m_extra_costs): Likewise.
6272 2015-05-20 Jeff Law <law@redhat.com>
6274 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
6275 instead of open-coded version. Also delete the jump thread created
6276 within this function.
6278 2015-05-20 Alan Modra <amodra@gmail.com>
6280 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
6281 stack adjusting insn. Formatting.
6282 (rs6000_emit_prologue): Track stack adjusting insn, and use of
6283 r12. If possible, emit first -fsplit-stack arg pointer insn
6284 before stack adjust. Don't use r12 to save cr if split-stack.
6286 2015-05-20 Alan Modra <amodra@gmail.com>
6288 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
6290 (rs6000_supports_split_stack): New function.
6291 * gcc/config/rs6000/rs6000.c (machine_function): Add
6292 split_stack_arg_pointer.
6293 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
6294 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
6295 rather than virtual_incoming_args_rtx.
6296 (rs6000_va_start): Likewise.
6297 (split_stack_arg_pointer_used_p): New function.
6298 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
6299 (morestack_ref): New var.
6300 (gen_add3_const, rs6000_expand_split_stack_prologue,
6301 rs6000_internal_arg_pointer, rs6000_live_on_entry,
6302 rs6000_split_stack_space_check): New functions.
6303 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
6304 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
6305 (UNSPECV_SPLIT_STACK_RETURN): Define.
6306 (split_stack_prologue, load_split_stack_limit,
6307 load_split_stack_limit_di, load_split_stack_limit_si,
6308 split_stack_return, split_stack_space_check): New expands and insns.
6309 * gcc/config/rs6000/rs6000-protos.h
6310 (rs6000_expand_split_stack_prologue): Declare.
6311 (rs6000_split_stack_space_check): Declare.
6313 2015-05-20 Alan Modra <amodra@gmail.com>
6315 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
6316 (rs6000_stack_info): Don't zero offsets when not saving registers.
6317 (debug_stack_info): Adjust to omit printing unused offsets,
6319 (direct_return): Test vrsave_size rather than vrsave_mask.
6320 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
6321 (rs6000_emit_epilogue): Likewise.
6323 2015-05-20 Alan Modra <amodra@gmail.com>
6325 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
6326 when not saving registers.
6327 (debug_stack_info): Adjust to omit printing unused offsets,
6329 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
6332 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6335 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
6336 value_type to const char *.
6338 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
6340 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
6341 to build a biarch toolchain again.
6343 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
6345 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
6346 or implicit declarations.
6347 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
6349 (get_odr_type): Check type has linkage before adding bases.
6350 (register_odr_type): Check that type has linkage before adding it.
6351 (type_known_to_have_no_deriavations_p): Rename to ..
6352 (type_known_to_have_no_derivations_p): This one.
6353 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
6354 (type_known_to_have_no_derivations_p): This one.
6355 * ipa-polymorphic-call.c
6356 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
6359 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
6361 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
6362 (layout_type): Use RECORD_OR_UNION_TYPE_P.
6364 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6366 * config/s390/s390.c (s390_vector_bool_type_p): New function.
6367 (s390_invalid_binary_op): New function.
6368 (TARGET_INVALID_BINARY_OP): Define macro.
6370 2015-05-19 David Sherwood <david.sherwood@arm.com>
6372 * loop-invariant.c (create_new_invariant): Don't calculate address cost
6373 if mode is not a scalar integer.
6374 (get_inv_cost): Increase computational cost for unused invariants.
6376 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6378 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
6379 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
6380 * config/s390/s390-builtin-types.def: New file.
6381 * config/s390/s390-builtins.def: New file.
6382 * config/s390/s390-builtins.h: New file.
6383 * config/s390/s390-c.c: New file.
6384 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
6385 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
6386 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
6387 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
6389 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
6391 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
6392 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
6393 variable definitions.
6394 (s390_const_operand_ok): New function.
6395 (s390_expand_builtin): Rewrite.
6396 (s390_init_builtins): New function.
6397 (s390_handle_vectorbool_attribute): New function.
6398 (s390_attribute_table): Add s390_vector_bool attribute.
6399 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
6400 (s390_branch_condition_mask): Generate masks for new modes.
6401 (s390_expand_vec_compare_cc): New function.
6402 (s390_mangle_type): Add mangling for vector bool types.
6403 (enum s390_builtin): Remove.
6404 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
6406 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
6407 s390_cpu_cpp_builtins.
6408 (REGISTER_TARGET_PRAGMAS): New macro.
6409 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
6410 (insn_cmp mode attribute): Add new CC modes.
6411 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
6412 (lcbb): New pattern definition.
6413 * config/s390/s390intrin.h: Include vecintrin.h.
6414 * config/s390/t-s390: New file.
6415 * config/s390/vecintrin.h: New file.
6416 * config/s390/vector.md: Include vx-builtins.md.
6417 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
6420 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6422 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
6424 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
6425 (s390_select_ccmode): Likewise.
6426 (s390_canonicalize_comparison): Swap operands if necessary.
6427 (s390_expand_vec_compare_scalar): Expand DFmode compare using
6428 single element vector instructions.
6429 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
6430 (s390_branch_condition_mask): Generate CC masks for the new modes.
6431 * config/s390/s390.md (v0, vf, vd): New mode attributes.
6432 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
6433 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
6434 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
6435 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
6436 (*extend<DSF:mode><BFP:mode>2): New insn definition.
6437 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
6438 (extend<DSF:mode><BFP:mode>2): Turn into expander.
6439 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
6440 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
6441 (sqrt<mode>2): Add vector instruction.
6443 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6445 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
6447 * config/s390/predicates.md (const0_operand, constm1_operand)
6448 (constable_operand): Accept vector operands.
6449 * config/s390/s390-modes.def: Add supported vector modes.
6450 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
6451 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
6452 (s390_bytemask_vector_p, s390_expand_vec_strlen)
6453 (s390_expand_vec_compare, s390_expand_vcond)
6454 (s390_expand_vec_init): Add prototypes.
6455 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
6456 (s390_vector_mode_supported_p): New function.
6457 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
6458 (s390_contiguous_bitmask_vector_p): New function.
6459 (s390_bytemask_vector_p): New function.
6460 (s390_split_ok_p): Vector regs don't work either.
6461 (regclass_map): Add VEC_REGS.
6462 (s390_legitimate_constant_p): Handle vector constants.
6463 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
6464 (legitimate_reload_vector_constant_p): New function.
6465 (s390_preferred_reload_class): Handle CONST_VECTOR.
6466 (s390_reload_symref_address): Likewise.
6467 (s390_secondary_reload): Vector memory instructions only support
6468 short displacements. Rename reload*_nonoffmem* to reload*_la*.
6469 (s390_emit_ccraw_jump): New function.
6470 (s390_expand_vec_strlen): New function.
6471 (s390_expand_vec_compare): New function.
6472 (s390_expand_vcond): New function.
6473 (s390_expand_vec_init): New function.
6474 (s390_dwarf_frame_reg_mode): New function.
6475 (print_operand): Handle addresses with 'O' and 'R' constraints.
6476 (NR_C_MODES, constant_modes): Add vector modes.
6477 (s390_output_pool_entry): Handle vector constants.
6478 (s390_hard_regno_mode_ok): Handle vector registers.
6479 (s390_class_max_nregs): Likewise.
6480 (s390_cannot_change_mode_class): New function.
6481 (s390_invalid_arg_for_unprototyped_fn): New function.
6482 (s390_function_arg_vector): New function.
6483 (s390_function_arg_float): Remove size variable.
6484 (s390_pass_by_reference): Handle vector arguments.
6485 (s390_function_arg_advance): Likewise.
6486 (s390_function_arg): Likewise.
6487 (s390_return_in_memory): Vector values are returned in a VR if
6489 (s390_function_and_libcall_value): Handle vector arguments.
6490 (s390_gimplify_va_arg): Likewise.
6491 (s390_call_saved_register_used): Consider the arguments named.
6492 (s390_conditional_register_usage): Disable v16-v31 for non-vec
6494 (s390_preferred_simd_mode): New function.
6495 (s390_support_vector_misalignment): New function.
6496 (s390_vector_alignment): New function.
6497 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
6498 (TARGET_VECTOR_MODE_SUPPORTED_P)
6499 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
6500 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6501 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
6502 (TARGET_VECTOR_ALIGNMENT): Define target macro.
6503 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
6504 (FIRST_PSEUDO_REGISTER): Increase value.
6505 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
6506 (VECTOR_REG_P): Define macros.
6507 (FIXED_REGISTERS, CALL_USED_REGISTERS)
6508 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
6509 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
6510 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
6511 Add vector registers.
6512 (CANNOT_CHANGE_MODE_CLASS): Call C function.
6513 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
6514 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
6516 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
6517 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
6518 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
6519 (VR*_REGNUM): New constants.
6520 (ALL): New mode iterator.
6521 (INTALL): Remove mode iterator.
6523 (movti): Implement TImode moves for VRs.
6524 Disable TImode splitter for VR targets.
6525 Implement splitting TImode GPR<->VR moves.
6526 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
6527 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
6528 reload<mode>_la_in, reload<mode>_la_out.
6529 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
6530 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
6531 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
6532 (mov<mode> SF SD): Prefer lder, lde for loading.
6533 Add lrl and strl instructions.
6534 Add vector instructions.
6535 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
6536 Call s390_expand_vec_strlen on z13.
6537 (*cc_to_int): Change predicate to nonimmediate_operand.
6538 (addti3): Rename to *addti3. New expander.
6539 (subti3): Rename to *subti3. New expander.
6540 * config/s390/vector.md: New file.
6542 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6544 * common/config/s390/s390-common.c (processor_flags_table): Add
6546 * config.gcc: Add z13.
6547 * config/s390/s390-opts.h (enum processor_type): Add
6549 * config/s390/s390.c (s390_adjust_priority): Check for
6551 (s390_reorg): Likewise.
6552 (s390_sched_reorder): Likewise.
6553 (s390_sched_variable_issue): Likewise.
6554 (s390_loop_unroll_adjust): Likewise.
6555 (s390_option_override): Likewise. Default to -mvx when available.
6556 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
6557 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
6558 (TARGET_VX_ABI): Define macros.
6560 (TARGET_DEFAULT): Add MASK_OPT_VX.
6561 * config/s390/s390.md ("cpu" attribute): Add z13.
6562 ("cpu_facility" attribute): Add vec.
6563 * config/s390/s390.opt (processor_type): Add z13.
6565 * doc/invoke.texi: Add z13 option for -march.
6567 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6569 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
6570 mode check to make sure that only scalar integer values are
6573 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
6575 * tree.c (verify_type_variant): Fix #undef.
6576 (gimple_canonical_types_compatible_p): Move here from lto.c
6577 (verify_type): Verify TYPE_CANONICAL compatibility.
6578 * tree.h (gimple_canonical_types_compatible_p): Declare.
6580 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6583 * tree.h (OMP_TEAMS_COMBINED): Define.
6584 * gimplify.c (enum gimplify_omp_var_data): Add
6585 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
6586 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
6587 (omp_notice_variable): Accept both ORT_TEAMS
6588 and ORT_COMBINED_TEAMS. Don't recurse if
6589 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
6590 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
6592 (omp_no_lastprivate): New function.
6593 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
6594 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
6595 notice_outer and set appropriate bits, otherwise make
6596 sure default(none) combined constructs won't complain.
6597 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
6598 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
6599 omp_no_lastprivate either remove the clause or turn it
6600 into OMP_CLAUSE_PRIVATE.
6601 (gimplify_omp_for): Fix up handling of implicit
6602 lastprivate or linear iterators.
6603 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
6605 * omp-low.c (lower_omp_for_lastprivate): For combined
6606 for simd use fd.loop.n2 from the for rather than simd.
6608 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6610 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
6611 instead of gen_rtx_raw_REG.
6612 (cris_expand_epilogue): Likewise.
6613 * config/microblaze/microblaze.c (microblaze_classify_address):
6615 * config/sparc/sparc.md: Likewise.
6617 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
6619 * config/alpha/alpha.c (alpha_legitimize_reload_address)
6620 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
6621 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
6622 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
6623 Use CASE_CONST_SCALAR_INT.
6624 (print_operand) <case 'M'>: Use mode_width_operand to check the
6625 value of the constant.
6626 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
6627 * config/alpha/predicates.md (input_operand): Use general_operand
6628 instead of match_code as operand check.
6629 (symbolic_operand): Use match_code with subexpression digits.
6630 * config/alpha/constraints.md (Q): Ditto.
6632 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6634 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
6636 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6638 * config/s390/s390.c (s390_secondary_reload): Fix check for
6639 load/store relative.
6641 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6643 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
6644 alternative_mask to uint64_t.
6646 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6648 PR tree-optimization/66187
6649 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6650 Pass TYPE_SIGN to tree_int_cst_min_precision. If
6651 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
6653 2015-05-19 David Malcolm <dmalcolm@redhat.com>
6655 * diagnostic.c (diagnostic_report_current_module): Strengthen
6656 local "new_map" from const line_map * to
6657 const line_map_ordinary *.
6658 * genmatch.c (error_cb): Likewise for local "map".
6659 (output_line_directive): Likewise for local "map".
6660 * input.c (expand_location_1): Likewise for local "map".
6661 Pass NULL rather than &map to
6662 linemap_unwind_to_first_non_reserved_loc, since the value is never
6663 read from there, and the value written back not read from here.
6664 (is_location_from_builtin_token): Strengthen local "map" from
6665 const line_map * to const line_map_ordinary *.
6666 (dump_location_info): Strengthen locals "map" from
6667 line_map *, one to const line_map_ordinary *, the other
6668 to const line_map_macro *.
6669 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
6670 const line_map * to const line_map_macro *.
6671 (maybe_unwind_expanded_macro_loc): Add a call to
6672 linemap_check_macro when writing to the "map" field of the
6674 Introduce local const line_map_ordinary * "ord_map", using it in
6675 place of "map" in the part of the function where we know we have
6676 an ordinary map. Strengthen local "m" from const line_map * to
6677 const line_map_ordinary *.
6679 2015-05-19 Nick Clifton <nickc@redhat.com>
6682 * config/msp430/msp430.md (zero_extendhisi2): Add support for
6683 separate source and destination registers.
6685 2015-05-19 Richard Biener <rguenther@suse.de>
6687 PR tree-optimization/66165
6688 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
6689 for no load permutation.
6691 PR tree-optimization/66185
6692 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
6693 when building the SLP node from scalars.
6695 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
6696 Tristan Gingold <gingold@adacore.com>
6698 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
6699 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
6700 (expand_stack_restore): Call record_new_stack_level.
6701 (expand_stack_save): Do not call do_pending_stack_adjust.
6702 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
6703 * calls.c (expand_call): Call record_new_stack_level for alloca.
6704 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
6705 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
6706 (update_sjlj_context): New global function.
6707 * except.h (update_sjlj_context): Declare.
6708 * explow.c (record_new_stack_level): New global function.
6709 (allocate_dynamic_stack_space): Call record_new_stack_level.
6710 * explow.h (record_new_stack_level): Declare.
6711 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
6712 * cfgrtl.c (duplicate_insn_chain): Likewise.
6714 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6716 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
6717 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
6718 STACK_GROWS_DOWNWARD as normal if.
6719 (expand_call): Likewise.
6721 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
6724 * config/sh/sh.md (*round_int_even): New insn_and_split and
6725 accompanying new unnamed split.
6727 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6729 * bitmap.c (bitmap_set_range): Handle count==1 specially.
6730 (bitmap_clear_range): Likewise.
6731 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
6732 bitmap_set_range unconditionally.
6733 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6734 * df-scan.c (df_mark_reg): Likewise.
6735 * haifa-sched.c (setup_ref_regs): Likewise.
6736 * sched-rgn.c (update_live_1): Likewise.
6738 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6740 * regs.h (END_HARD_REGNO): Delete.
6741 (END_REGNO): Move to...
6743 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
6744 * caller-save.c (mark_set_regs): Likewise.
6745 * combine.c (move_deaths, distribute_notes): Likewise.
6746 * cse.c (invalidate, invalidate_for_call): Likewise.
6747 * df-scan.c (df_ref_record): Likewise.
6748 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
6749 (record_last_reg_set_info): Likewise.
6750 * reg-stack.c (convert_regs_exit): Likewise.
6751 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
6752 * resource.c (update_live_status): Likewise.
6753 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
6755 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6757 * rtl.h (reg_info): Add an nregs field.
6758 (REG_NREGS): Use it.
6759 (SET_REGNO_RAW): Delete.
6760 (set_regno_raw): New function.
6761 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
6762 (END_REGNO): Redefine in terms of REG_NREGS.
6763 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
6765 * emit-rtl.c (set_mode_and_regno): Likewise.
6766 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
6767 instead of SET_REGNO_RAW.
6769 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6771 * rtl.h (PUT_MODE_RAW): New macro.
6772 (PUT_REG_NOTE_KIND): Use it.
6773 (set_mode_and_regno): Declare.
6774 (gen_raw_REG): Change regno to "unsigned int".
6775 (gen_rtx_REG): Change "unsigned" to "unsigned int".
6776 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
6777 use set_mode_and_regno to change the mode of registers.
6778 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
6779 * emit-rtl.c (set_mode_and_regno): New function.
6780 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
6781 * caller-save.c (reg_save_code): Use set_mode_and_regno.
6782 * expr.c (init_expr_target): Likewise.
6783 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6784 * postreload.c (reload_cse_simplify_operands): Likewise.
6786 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6788 * caller-save.c (init_caller_save): Use word_mode and
6789 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
6790 * expr.c (init_expr_target): Likewise.
6791 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6792 * postreload.c (reload_cse_regs_1): Likewise.
6794 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6796 * rtl.def (REG): Change format to "r".
6797 * rtl.h (rtunion): Remove rt_reg.
6798 (reg_info): New structure.
6799 (rtx_def): Add reg field to main union.
6800 (X0REGATTR): Delete.
6801 (REG_CHECK): New macro.
6802 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
6803 * rtl.c (rtx_format): Document "r".
6804 (rtx_code_size): Handle REG specially.
6805 * gengenrtl.c (special_format): Return true for formats
6807 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
6808 Deal with REG_ATTRS after the field loop.
6809 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
6810 * expmed.c (init_expmed): Call gen_raw_REG instead of
6812 * expr.c (init_expr_target): Likewise.
6813 * regcprop.c (maybe_mode_change): Likewise.
6814 * varasm.c (make_decl_rtl): Likewise.
6815 * final.c (leaf_renumber_regs_insn): Return early after
6817 * genemit.c (gen_exp): Handle 'r' fields.
6818 * genpeep.c (match_rtx): Likewise.
6819 * gensupport.c (subst_pattern_match): Likewise.
6820 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
6821 (alter_constraints, subst_dup): Likewise.
6822 * read-rtl.c (read_rtx_code): Likewise.
6823 * print-rtl.c (print_rtx): Likewise.
6824 * genrecog.c (find_operand, find_matching_operand): Likewise.
6825 (validate_pattern, match_pattern_2): Likewise.
6826 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
6827 (rtx_test::regno_field): New function.
6828 (operator ==, safe_to_hoist_p, transition_parameter_type)
6829 (parameter_type_string, print_parameter_value)
6830 (print_nonbool_test, print_test): Handle new enum values.
6831 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
6832 * lra-constraints.c (operands_match_p): Likewise.
6834 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6836 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
6837 Change type of new_regno to unsigned int.
6838 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6839 new_regno to unsigned int.
6840 (df_ref_change_reg_with_loc): Remove old_regno parameter.
6841 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
6842 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6843 (SET_REGNO_RAW): Add space after ",".
6845 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6847 * rtl.h (REG_NREGS): New macro
6848 * alias.c (record_set): Use it.
6849 * cfgcleanup.c (mark_effect): Likewise.
6850 * combine.c (likely_spilled_retval_1): Likewise.
6851 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6852 (move_deaths, distribute_notes): Likewise.
6853 * cselib.c (cselib_record_set): Likewise.
6854 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6855 * df-scan.c (df_mark_reg): Likewise.
6856 * dse.c (look_for_hardregs): Likewise.
6857 * dwarf2out.c (reg_loc_descriptor): Likewise.
6858 (multiple_reg_loc_descriptor): Likewise.
6859 * expr.c (write_complex_part, read_complex_part): Likewise.
6860 (emit_move_complex): Likewise.
6861 * haifa-sched.c (setup_ref_regs): Likewise.
6862 * ira-lives.c (mark_hard_reg_live): Likewise.
6863 * lra.c (lra_set_insn_recog_data): Likewise.
6864 * mode-switching.c (create_pre_exit): Likewise.
6865 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6866 (reload_combine_recognize_pattern): Likewise.
6867 (reload_combine_note_use, move2add_record_mode): Likewise.
6868 (reload_cse_move2add): Likewise.
6869 * reg-stack.c (subst_stack_regs_pat): Likewise.
6870 * regcprop.c (kill_value, copy_value): Likewise.
6871 (copyprop_hardreg_forward_1): Likewise.
6872 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6873 (build_def_use): Likewise.
6874 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6875 (deps_analyze_insn): Likewise.
6876 * sched-rgn.c (check_live_1, update_live_1): Likewise.
6877 * sel-sched.c (count_occurrences_equiv): Likewise.
6878 * valtrack.c (dead_debug_insert_temp): Likewise.
6880 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6882 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6883 * dse.c (note_add_store): Likewise.
6884 * ira-lives.c (mark_hard_reg_dead): Likewise.
6885 * loop-invariant.c (mark_reg_store): Likewise.
6886 (mark_reg_death): Likewise.
6887 * postreload.c (reload_combine): Likewise.
6888 (reload_combine_note_store): Likewise.
6889 (reload_combine_note_use): Likewise.
6890 * recog.c (peep2_reg_dead_p): Likewise.
6892 2015-05-19 Alan Modra <amodra@gmail.com>
6894 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6895 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6896 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6898 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6899 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
6900 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6901 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6903 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
6905 * config/mips/mips.md (JOIN_MODE): New mode iterator.
6906 (join2_load_Store<JOIN_MODE:mode>): New pattern.
6907 (join2_loadhi): Likewise.
6908 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6909 load-load and store-stores.
6910 * config/mips/mips.opt (mload-store-pairs): New option.
6911 (TARGET_LOAD_STORE_PAIRS): New macro.
6912 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6913 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6914 * config/mips/mips.c (mips_load_store_bonding_p): New function.
6916 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
6918 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6920 * dojump.c (do_compare_rtx_and_jump): Likewise.
6921 * expmed.c (emit_store_flag_1): Likewise.
6922 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6923 * final.c (sprint_ul): Use std::reverse for reversing a string.
6924 * fold-const.c (extract_muldiv_1): Use std::swap.
6925 * genmodes.c (emit_mode_int_n): Likewise.
6926 * ifcvt.c (dead_or_predicable): Likewise.
6927 * ira-build.c (ira_merge_live_ranges): Likewise.
6928 (swap_allocno_copy_ends_if_necessary): Likewise.
6929 * ira.c (ira_setup_alts): Likewise.
6930 * loop-iv.c (iv_analyze_expr): Likewise.
6931 (implies_p): Likewise.
6932 (canon_condition): Likewise.
6933 * lra-constraints.c (swap_operands): Likewise.
6934 * lra-lives.c (lra_merge_live_ranges): Likewise.
6935 * omega.c (swap): Remove.
6937 (omega_unprotect_1): Use std::swap.
6938 (omega_solve_geq): Likewise.
6939 * optabs.c (expand_binop_directly): Likewise.
6940 (expand_binop): Likewise.
6941 (emit_conditional_move): Likewise.
6942 (emit_conditional_add): Likewise.
6943 * postreload.c (reload_cse_simplify_operands): Likewise.
6944 * reg-stack.c (emit_swap_insn): Likewise.
6945 (swap_to_top): Likewise.
6946 (compare_for_stack_reg): Likewise.
6947 (subst_asm_stack_regs): Likewise.
6948 * reload.c (find_reloads): Likewise.
6949 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6950 * sel-sched.c (invoke_reorder_hooks): Likewise.
6951 (create_block_for_bookkeeping): Likewise.
6952 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6953 (lambda_matrix_right_hermite): Use std::swap.
6954 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6955 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6956 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6957 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6958 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6959 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6960 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6961 * tree-vrp.c (compare_ranges): Likewise.
6962 * var-tracking.c (add_with_sets): Likewise.
6963 (vt_find_locations): Likewise.
6965 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
6967 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6969 (FBSD_ENDFILE_SPEC): Likewise.
6970 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6971 config/freebsd-spec.h.
6972 (ENDFILE_SPEC): Likewise.
6974 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
6975 Richard Henderson <rth@redhat.com>
6978 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6979 Check for a memory location that is not a reference (using an AND)
6980 to an unaligned location here.
6981 * config/alpha/predicates.md (normal_memory_operand): Remove.
6983 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
6985 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6986 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6988 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
6990 * config/mips/mips.c (micromips_globals): New variable.
6991 (mips_set_compression_mode): Save and reinitialize target-dependent
6992 state for microMIPS.
6994 2015-05-18 Martin Liska <mliska@suse.cz>
6996 * dbgcnt.def: Add new counter.
6997 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6999 2015-05-18 Martin Liska <mliska@suse.cz>
7001 * dbgcnt.def: Sort counters.
7002 * opts.c (common_handle_option): Do not compile if
7003 -fdbg-cnt-list is enabled.
7005 2015-05-18 Tom de Vries <tom@codesourcery.com>
7007 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
7008 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
7009 address operator to va_list operand.
7010 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
7012 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
7014 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
7015 * config/s390/s390.c (s390_gimplify_va_arg): Same.
7016 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
7018 2015-05-18 Tom de Vries <tom@codesourcery.com>
7020 * tree-ssa-tail-merge.c: Fix whitespace.
7022 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
7024 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
7025 cortex-a17, and cortex-a17.cortex-a7.
7027 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
7030 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
7032 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
7035 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
7036 QImode inner modes for TARGET_AVX512BW. Force mask operand
7037 to a register for AVX512F modes.
7039 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
7041 * toplev.c (emit_debug_global_declarations): Do not output debug info
7042 when doing slim LTO objects.
7044 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
7046 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
7047 odr_types_equivalent_p): Declare.
7048 (odr_type_p): Use gcc_checking_assert.
7049 (type_in_anonymous_namespace_p) Declare.
7050 (type_with_linkage_p): Declare.
7051 * common.opt (Wlto-type-mismatch): New warning.
7052 * ipa-devirt.c (compound_type_base): New function.
7053 (odr_or_derived_type_p): New function.
7054 (odr_types_equivalent_p): New function.
7055 (add_type_duplicate): Simplify.
7056 (type_with_linkage_p): Add hack to prevent false positives on C types
7057 (type_in_anonymous_namespace_p): Likewise.
7058 * tree.c (need_assembler_name_p): Use type_with_linkage.
7059 * tree.h (type_in_anonymous_namespace_p): Remove.
7060 * doc/invoke.texi (-Wlto-type-mismatch): Document
7062 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
7064 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
7065 (verify_type): Verify STRING_FLAG.
7067 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7070 * tree-pretty-print.c (percent_K_format): Replace locus pointer
7071 with accessor function.
7072 * tree-diagnostic.c (diagnostic_report_current_function): Use
7073 diagnostic_location function.
7074 (maybe_unwind_expanded_macro_loc): Likewise.
7075 (virt_loc_aware_diagnostic_finalizer): Likewise.
7076 (default_tree_printer): Replace locus pointer with accessor function.
7077 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
7078 (diagnostic_set_info_translated): Initialize second location.
7079 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
7080 (diagnostic_show_locus): Handle two locations. Call
7081 diagnostic_print_caret_line.
7082 (diagnostic_print_caret_line): New.
7083 (default_diagnostic_starter): Use diagnostic_location function.
7084 (diagnostic_report_diagnostic): Use diagnostic_location function.
7085 (verbatim): Do not set text.locus.
7086 * diagnostic.h (struct diagnostic_info): Remove location field.
7087 (struct diagnostic_context): Make caret_chars an array of two.
7088 (diagnostic_location): New inline.
7089 (diagnostic_expand_location): Handle two locations.
7090 (diagnostic_same_line): New inline.
7091 (diagnostic_print_caret_line): Declare.
7092 (CARET_LINE_MARGIN): New constant.
7093 * pretty-print.c (pp_printf): Do not set text.locus.
7094 (pp_verbatim): Do not set text.locus.
7095 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
7096 (struct text_info): Replace locus pointer with locations
7097 array. Add accessor functions.
7099 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
7100 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7103 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
7104 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
7105 large constants in register instead of splitting them.
7107 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
7110 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
7111 replacements in memory addresses.
7112 (get_unaligned_address): Ditto.
7114 2015-05-16 James Bowman <james.bowman@ftdichip.com>
7116 * config/ft32/*: New files for FT32 port.
7117 * doc/install.texi: Add FT32 information.
7118 * doc/invoke.texi: Add FT32 information.
7119 * doc/md.texi: Add FT32 information.
7120 * doc/contrib.texi: Self added.
7122 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
7124 PR tree-optimization/64454
7125 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
7126 (-1 - A -> ~A): Remove unnecessary condition.
7128 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7130 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
7131 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7132 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
7134 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
7136 * ipa-chkp.h (chkp_wrap_function): New.
7137 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
7138 (chkp_wrap_function_name): New.
7139 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
7140 to get wrapper name.
7141 * lto-cgraph.c: Include ipa-chkp.h.
7142 (input_cgraph_1): Avoid alias chain for wrappers.
7144 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7147 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
7148 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
7150 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7152 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
7153 (AARCH64_FL_SLOWMUL): Delete.
7154 (AARCH64_FL_CRC): Redefine to 1<<3.
7155 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
7157 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7159 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
7162 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
7164 * config/alpha/alpha.md (extendqidi2): Use general_operand
7165 instead of some_operand for operand[1] predicate.
7166 (extendhidi2): Ditto.
7167 (cbranchdi4): Use general_operand instead of some_operand
7168 for operand[1] and operands[2] predicates.
7170 * config/alpha/predicates.md (some_operand): Remove unused predicate.
7171 (some_ni_operand): Ditto.
7173 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
7175 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
7176 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
7177 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
7178 low part of the constant using alpha_emit_set_const_1.
7179 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
7181 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
7183 * varasm.c (output_constant_pool_1): Pass down alignment from
7184 constant pool entry's descriptor to output_constant_pool_2.
7185 (output_object_block): Add comment prior to call to
7186 output_constant_pool_1.
7188 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
7190 PR rtl-optimization/65862
7191 * target.def (ira_change_pseudo_allocno_class): New hook.
7192 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
7194 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
7195 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
7197 * ira-costs.c (find_costs_and_classes): Call the hook and change
7198 classes when it is necessary.
7199 * doc/tm.texi: Update.
7201 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
7203 * config/i386/i386.md (sibcall_memory): Check that register with
7204 callee address is not also used as one of the arguments, instead
7205 of checking that it is not live after the sibcall.
7206 (sibcall_pop_memory): Ditto.
7207 (sibcall_value_memory): Ditto.
7208 (sibcall_value_pop_memory): Ditto.
7210 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
7212 * generic-match-head.c (types_match): Handle non-types.
7213 * gimple-match-head.c (types_match): Likewise.
7214 * match.pd: Remove unnecessary TREE_TYPE for types_match.
7216 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
7218 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
7219 (csneg3<mode>_insn): Enable expansion of pattern.
7221 2015-05-14 Nick Clifton <nickc@redhat.com>
7223 * config/rl78/rl78.c (rl78_select_section): Select the correct
7224 default section based upon the category of the decl.
7226 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7228 PR rtl-optimization/30967
7229 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
7230 destination mode for the cost of scc patterns.
7232 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
7234 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
7235 using SWIM248 mode iterator.
7236 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
7237 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
7238 for operand[2] constraint.
7239 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
7241 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7244 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
7245 make sure it is never noreturn, even when the task body does not
7247 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
7248 right before GIMPLE_OMP_RETURN.
7249 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
7250 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
7251 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
7253 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7255 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
7256 * tree-ssa-math-opts.c: Include params.h
7257 (pow_synth_sqrt_info): New struct.
7258 (representable_as_half_series_p): New function.
7259 (get_fn_chain): Likewise.
7260 (print_nested_fn): Likewise.
7261 (dump_fractional_sqrt_sequence): Likewise.
7262 (dump_integer_part): Likewise.
7263 (expand_pow_as_sqrts): Likewise.
7264 (gimple_expand_builtin_pow): Use above to attempt to expand
7265 pow as series of square roots. Removed now unused variables.
7267 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
7269 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
7270 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
7271 Remove *p0 and *p1 arguments. Rewrite function.
7272 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
7273 (alpha_split_const_mov): Update calls to alpha_extract_integer and
7274 alpha_emit_set_long_const.
7275 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
7276 (alpha_output_mi_thunk_osf): Ditto.
7277 * config/alpha/alpha.md (movti): Do not check operands[1]
7280 2015-05-13 Richard Biener <rguenther@suse.de>
7282 PR tree-optimization/66129
7283 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
7285 (vect_schedule_slp_instance): Fix typo.
7287 2015-05-13 David Malcolm <dmalcolm@redhat.com>
7289 * common.opt (fdump-internal-locations): New option.
7290 * input.c: Include diagnostic-core.h.
7291 (get_end_location): New function.
7292 (write_digit): New function.
7293 (write_digit_row): New function.
7294 (dump_location_range): New function.
7295 (dump_labelled_location_range): New function.
7296 (dump_location_info): New function.
7297 * input.h (dump_location_info): New prototype.
7298 * toplev.c (compile_file): Handle flag_dump_locations.
7300 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
7302 * gimple-expr.h (is_gimple_constant): Reorder.
7303 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
7305 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7307 * combine.c (simplify_set): When generating a CC set, if the
7308 source already is in the correct mode, do not wrap it in a
7309 compare. Simplify the rest of that code.
7311 2015-05-13 Richard Biener <rguenther@suse.de>
7313 PR tree-optimization/66123
7314 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
7317 2015-05-13 Richard Biener <rguenther@suse.de>
7320 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
7322 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
7324 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7326 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
7327 * aclocal.m4: Regenerated with automake-1.11.6.
7329 2015-05-13 Tom de Vries <tom@codesourcery.com>
7331 PR tree-optimization/66010
7332 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
7333 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
7334 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
7335 and rval based on do_deref.
7337 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7340 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
7341 link time constants into adress expressions and therefore set
7344 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7347 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
7348 Use SWI248 iterator instead of SWI.
7349 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
7350 Use eq_attr "alternative" "0" instead of match_test in
7351 length_immediate attribute computation.
7352 (*mulvhi4, *mulvhi4_1): New define_insns.
7355 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
7356 SIGNED to get precision of non-negative value.
7358 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7361 * function.c (diddle_return_value_1): Process bounds first.
7362 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
7365 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7367 PR rtl-optimization/64616
7368 * loop-invariant.c (can_move_invariant_reg): New.
7369 (move_invariant_reg): Call above new function to decide whether
7370 instruction can just be moved, skipping creation of temporary
7373 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
7376 * i386.c (ix86_function_sseregparm): Only return -1 if local function
7377 with implied regparm is called from -mno-sse function.
7378 (init_cumulative_args): Output error if ix86_function_sseregparm
7379 return -1 and SSE register would be needed.
7380 (function_arg_advance_32): Likewise.
7381 (function_arg_32): Likewise.
7382 * i386.h (ix86_args): Add decl field.
7384 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
7387 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
7388 inlines across optimization boundary.
7390 2015-05-12 Jason Merrill <jason@redhat.com>
7392 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
7393 string literal and macro name.
7395 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
7397 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
7398 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
7399 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
7401 2015-05-12 David Malcolm <dmalcolm@redhat.com>
7403 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
7404 (-Wmisleading-indentation): New option.
7405 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
7407 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
7409 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
7410 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
7411 (alpha_extract_integer): Ditto.
7412 (alpha_legitimate_constant_p): Ditto.
7413 (alpha_split_tmode_pair): Ditto.
7414 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
7415 (alpha_expand_mov): Ditto.
7416 (print_operand): Remove handling of 'H' modifier.
7417 <case 'm'>: Remove CONST_DOUBLE handling.
7418 (summarize_insn): Handle CONST_WIDE_INT.
7419 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
7421 (movti): Handle CONST_WIDE_INT.
7422 * config/alpha/constraints.md ('H'): Remove constraint definition.
7423 ('G'): Do not match MODE_FLOAT class.
7424 * config/alpha/predicates.md (const0_operand): Also match
7426 (non_add_const_operand): Ditto.
7427 (non_zero_const_operand): Ditto.
7428 (some_operand): Ditto.
7429 (input_operand): Ditto. Handle CONST_WIDE_INT.
7430 (and_operand): Do not match const_double.
7431 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
7433 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
7436 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
7437 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
7438 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7439 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
7440 is_mm_seq_cst, is_mm_sync): New accessor functions.
7441 * builtins.c (expand_builtin_sync_operation,
7442 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
7443 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
7444 (get_memmodel, expand_builtin_atomic_compare_exchange,
7445 expand_builtin_atomic_load, expand_builtin_atomic_store,
7446 expand_builtin_atomic_clear): Use new accessor routines.
7447 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
7448 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
7449 (maybe_emit_sync_lock_test_and_set): Use new accessors and
7450 MEMMODEL_SYNC_ACQUIRE.
7451 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
7452 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
7453 expand_atomic_store): Use new accessors.
7454 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
7455 * tsan.c (instrument_builtin_call): Update check for memory model beyond
7456 final enum to use MEMMODEL_LAST.
7457 * c-family/c-common.c: Use new accessor for memmodel_base.
7458 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
7460 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
7461 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
7462 mem_thread_fence, *dmb): Likewise.
7463 * config/alpha/alpha.c (alpha_split_compare_and_swap,
7464 alpha_split_compare_and_swap_12): Likewise.
7465 * config/arm/arm.c (arm_expand_compare_and_swap,
7466 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
7467 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
7468 atomic_loaddi): Likewise.
7469 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
7471 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
7472 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
7474 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
7475 atomic_store<mode>, atomic_compare_and_swap<mode>,
7476 atomic_exchange<mode>): Use new accessors.
7477 * config/mips/mips.c (mips_process_sync_loop): Likewise.
7478 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
7479 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
7480 rs6000_post_atomic_barrier): Add new cases.
7481 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
7482 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
7483 (atomic_load<mode>): Add new cases and use new accessors.
7484 (store_quadpti): Add new cases.
7485 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
7487 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
7488 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
7491 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
7493 * ipa-devirt.c (type_with_linkage_p): New function.
7494 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
7496 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
7497 (can_be_name_hashed_p): Simplify.
7498 (hash_odr_name): Check that type has linkage before checking if it is
7500 (types_same_for_odr): Likewise.
7501 (odr_name_hasher::equal): Likewise.
7502 (odr_subtypes_equivalent_p): Likewise.
7503 (warn_types_mismatch): Likewise.
7504 (get_odr_type): Likewise.
7505 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
7506 * ipa-utils.h (odr_type_p): Move offline.
7507 * tree.c (need_assembler_name_p): Fix handling of types
7509 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
7511 2015-05-12 David Malcolm <dmalcolm@redhat.com>
7513 * timevar.c (timevar_enable): Delete in favor of...
7514 (g_timer): New global.
7515 (struct timevar_def): Move to timevar.h inside class timer.
7516 (struct timevar_stack_def): Likewise.
7517 (timevars): Delete global in favor of field "m_timevars" within
7518 class timer in timevar.h
7519 (stack): Likewise, in favor of field "m_stack".
7520 (unused_stack_instances): Likewise, in favor of field
7521 "m_unused_stack_instances".
7522 (start_time): Likewise, in favor of field "m_start_time".
7523 (get_time): Eliminate check for timevar_enable.
7524 (timer::timer): New function, built from part of timevar_init.
7525 (timevar_init): Rewrite idempotency test from using
7526 "timevar_enable" bool to using dynamic allocation of "g_timer".
7527 Move rest of implementation into timer's constructor.
7528 (timevar_push_1): Rename to...
7529 (timer::push): ...this, adding "m_" prefixes to variables that
7530 are now fields of timer.
7531 (timevar_pop_1): Likewise, rename to...
7532 (timer::pop): ...this, and add "m_" prefixes.
7533 (timevar_start): Replace test for "timevar_enable" with one for
7534 "g_timer", and move bulk of implementation to...
7535 (timer::start): ...here, adding "m_" prefixes.
7536 (timevar_stop): Likewise, from here...
7537 (timer::stop): ...to here.
7538 (timevar_cond_start): Likewise, from here...
7539 (timer::cond_start): ...to here.
7540 (timevar_cond_stop): Likewise, from here...
7541 (timer::cond_stop): ...to here.
7542 (validate_phases): Rename to...
7543 (timer::validate_phases): ...this, and add "m_" prefixes. Make
7544 locals "total" and "tv" const.
7545 (timevar_print): Rename to...
7546 (timer::print): ...this, and add "m_" prefixes. Make locals
7547 "total" and "tv" const. Eliminate test for timevar_enable.
7548 * timevar.h (timevar_enable): Eliminate.
7549 (g_timer): New declaration.
7550 (timevar_push_1): Eliminate.
7551 (timevar_pop_1): Eliminate.
7552 (timevar_print): Eliminate.
7553 (class timer): New class.
7554 (timevar_push): Rewrite to use g_timer.
7555 (timevar_pop): Likewise.
7556 * toplev.c (toplev::~toplev): Likewise.
7558 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
7560 * arm-protos.h (arm_sched_autopref): Delete.
7561 (tune_params): Re-organize, use enums for flag values.
7562 (FUSE_OPS): New macro.
7563 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
7564 (ARM_PREFETCH_BENEFICIAL): Likewise.
7565 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
7566 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7567 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
7568 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
7569 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
7570 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
7571 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
7572 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
7574 (arm_option_override, thumb2_reorg, arm_print_tune_info)
7575 (aarch_macro_fusion_pair_p): Update uses of current_tune.
7576 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
7578 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
7580 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
7583 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
7584 Sandra Loosemore <sandra@codesourcery.com>
7586 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
7588 (REG_CLASS_NAMES): Add "IJMP_REGS".
7589 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
7590 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
7591 use new "c" register constraint.
7592 * config/nios2/constraint.md (c): New register constraint
7593 corresponding to IJMP_REGS.
7595 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7597 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
7598 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
7599 define_splits): Delete, revamp, transmogrify into ...
7600 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7601 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7602 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7605 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7607 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
7608 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
7610 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7612 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
7613 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
7614 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
7615 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
7616 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
7617 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
7618 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
7619 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
7620 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
7621 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7622 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
7623 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
7624 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
7625 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
7626 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
7627 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
7628 and 30 corresponding splitters): Delete.
7630 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7632 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
7635 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7637 * combine.c (recog_for_combine_1): New function, factored out
7638 from recog_for_combine.
7639 (change_zero_ext): New function.
7640 (recog_for_combine): If recog fails, try again with the pattern
7641 modified by change_zero_ext; if that still fails, restore the
7644 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7646 * combine.c (get_undo_marker): New function.
7647 (undo_to_marker): New function, largely factored out from ...
7648 (undo_all): ... this. Adjust.
7650 2015-05-12 Richard Biener <rguenther@suse.de>
7652 PR tree-optimization/66101
7653 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
7654 fixup if we turn a loop exit edge to a fallthru edge.
7656 2015-05-12 Richard Biener <rguenther@suse.de>
7658 PR tree-optimization/37021
7659 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
7660 (SLP_TREE_TWO_OPERATORS): New define.
7661 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
7662 SLP_TREE_TWO_OPERATORS.
7663 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
7665 (vect_build_slp_tree): Adjust.
7666 (vect_analyze_slp_cost_1): Likewise.
7667 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
7668 emitting two vector stmts and mixing the results.
7670 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
7672 * call.c (print_z_candidates): Remove dead code.
7674 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7676 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
7677 and zEC12_simple_fp.
7678 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
7681 2015-05-12 Tom de Vries <tom@codesourcery.com>
7683 PR tree-optimization/66010
7684 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
7686 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
7687 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
7688 va_lists are passed, and remove corresponding handling.
7689 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
7690 do_deref argument to ifn_va_arg.
7691 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
7694 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7697 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
7698 REG before taking its REGNO.
7700 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7702 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
7703 rsp->sign_bit_copies and rsp->nonzero_bits into ...
7704 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
7705 present to get more accurate information about the number of sign bit
7706 copies and non zero bits.
7708 2015-05-12 Richard Biener <rguenther@suse.de>
7710 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
7711 do not allow unrolling.
7713 2015-05-11 Richard Henderson <rth@redhat.com>
7715 * config/i386/i386-modes.def (CCP): New.
7716 * config/i386/i386.c (put_condition_code): Handle it.
7717 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
7719 2015-05-11 Richard Henderson <rth@redhat.com>
7721 * target.def (md_asm_clobbers): Replace with...
7722 (md_asm_adjust): this.
7723 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
7724 (TARGET_MD_ASM_ADJUST): New.
7726 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
7727 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
7728 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
7730 * cfgexpand.c (check_operand_nalternatives): Accept vector of
7731 constraints instead of lists of outputs and inputs.
7732 (expand_asm_stmt): Save and restore input_location around the
7733 body of the function. Move asm data into vectors instead of
7734 building tree lists. Generate cleanup sequences as needed,
7735 rather than waiting til the end. Use new md_asm_adjust hook.
7737 * config/vxworks.c: Include vec.h before target.h.
7738 * gimple.c: Likewise.
7739 * incpath.c: Likewise.
7740 * mode-switching.c: Likewise.
7742 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
7743 (cris_md_asm_adjust): this.
7744 (TARGET_MD_ASM_CLOBBERS): Remove.
7745 (TARGET_MD_ASM_ADJUST): New.
7746 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
7747 (ix86_md_asm_adjust): this.
7748 (TARGET_MD_ASM_CLOBBERS): Remove.
7749 (TARGET_MD_ASM_ADJUST): New.
7750 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
7751 (mn10300_md_asm_adjust): this.
7752 (TARGET_MD_ASM_CLOBBERS): Remove.
7753 (TARGET_MD_ASM_ADJUST): New.
7754 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
7755 (rs6000_md_asm_adjust): this.
7756 (TARGET_MD_ASM_CLOBBERS): Remove.
7757 (TARGET_MD_ASM_ADJUST): New.
7758 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
7759 (visium_md_asm_adjust): this.
7760 (TARGET_MD_ASM_CLOBBERS): Remove.
7761 (TARGET_MD_ASM_ADJUST): New.
7763 2015-05-11 Richard Henderson <rth@redhat.com>
7765 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
7766 if noutputs is zero.
7767 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
7769 * cfgexpand.c (expand_asm_operands): Merge into...
7770 (expand_asm_stmt): ... here.
7772 * cfgexpand.c (expand_asm_operands): Don't call
7773 resolve_asm_operand_names.
7774 * stmt.c (resolve_asm_operand_names): Clarify block comment.
7776 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
7778 * dwarf2out.c (gen_member_die): Sanity check that we access
7779 TYPE_MAIN_VARIANT for TYPE_METHODS.
7780 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
7781 checking TYPE_METHODS.
7782 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
7784 (build_distinct_type_copy): Clear TYPE_METHODS.
7785 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
7786 (verify_type): Allow TYPE_METHODS to be error_mark_node.
7787 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
7789 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
7791 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
7792 (emit_pattern_before_setloc): Likewise.
7794 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
7796 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
7797 for define_peephole2s.
7798 (get_peephole2_pattern): New function.
7799 (main): Use it. Call validate_pattern.
7801 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7803 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
7804 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
7805 (Last callee saved reg is different for AVR_TINY architecture)
7807 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
7809 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
7810 when looking for memory references.
7812 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
7815 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
7816 via function pointers.
7818 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
7820 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
7821 indirect call by forcing address into a pseudo with -fno-plt.
7822 * common.opt (flag_plt): New option.
7823 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
7824 ([-fno-plt]): Document.
7826 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
7829 * config/rs6000/option-defaults.h: Add space between string literal
7832 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7834 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
7835 accross ARM targets.
7837 2015-05-11 Christian Bruel <christian.bruel@st.com>
7839 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
7840 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
7842 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
7844 PR rtl-optimization/66076
7845 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7846 Don't grow the heap array if it is already big enough from a
7849 2015-05-11 Christian Bruel <christian.bruel@st.com>
7851 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7852 (is_called_in_ARM_mode): Remove.
7853 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7854 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7855 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7856 arm_declare_function_name.
7858 2015-05-11 Christian Bruel <christian.bruel@st.com>
7860 * config/arm/arm.c (arm_option_override): Reoganized and split into :
7861 (arm_option_params_internal); New function.
7862 (arm_option_check_internal): New function.
7863 (arm_option_override_internal): New function.
7864 (thumb_code, thumb1_code): Remove.
7865 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7866 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7867 (thumb_code, thumb1_code): Remove.
7868 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7870 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
7872 * config/alpha/alpha.c (alpha_emit_set_const_1)
7873 (alpha_emit_set_long_const, alpha_extract_integer)
7874 (alpha_legitimate_constant_p, alpha_split_const_mov)
7875 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7876 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7877 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7879 * config/alpha/predicates.md (mode_mask_operand): Do not match
7881 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7882 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7883 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7884 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7885 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7887 2015-05-11 Jakub Jelinek <jakub@redhat.com>
7890 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7891 default_binds_local_p_2.
7892 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7893 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7895 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7897 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7899 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7901 Patch by Richard Biener
7902 * coverage.c (coverage_obj_init): Delay building of type variant
7903 until the type is finished.
7905 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7907 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7908 mismatch between C and C++ type; compoare correctly ARG_TYPES
7909 for non-prototypes and output correctly parameter index for METHOD_TYPE.
7910 (odr_types_equivalent_p): Fix wording of warning about attributes;
7911 it is OK to match prototype and non-prototype.
7913 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7915 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7916 TYPE_ARG_TYPES list.
7917 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7918 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7920 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7922 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7923 * tree.h (is_lang_specific): Constify.
7925 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
7927 PR tree-optimization/64454
7928 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7931 2015-05-08 Jason Merrill <jason@redhat.com>
7933 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7934 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7935 config/darwin.h, config/darwin9.h, config/elfos.h,
7936 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7937 config/microblaze/microblaze.h, config/mips/mips.h,
7938 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7939 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7940 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7941 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7942 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7943 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7944 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7945 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7946 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7947 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7948 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7949 between string literal and macro name.
7951 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7953 * jump.c: Change argument types to rtx_insn *.
7956 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7958 * lra-constraints.c: Change argument type to rtx_insn *.
7960 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7962 * df-problems.c: Change argument type to rtx_insn *.
7964 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7966 * combine.c: Change argument type to rtx_insn *.
7968 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7971 * rtlanal.c: Change argument type to rtx_insn *.
7973 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7975 * sched-deps.c: Change argument types to rtx_insn *.
7976 * sched-int.h: Adjust.
7978 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7980 * dwarf2cfi.c: Change argument type to rtx_insn *.
7982 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7984 * ira.c (decrease_live_ranges_number): Changetype of local
7985 variable to rtx_insn *.
7986 * recog.c: Change argument types to rtx_insn *.
7989 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7991 * reorg.c: Change argument types to rtx_insn *.
7993 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7995 * ira-color.c: Change argument types to rtx_insn *.
7996 * lra-eliminations.c: Likewise.
7999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8001 * gcse.c: Change argument types to rtx_insn *.
8003 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8005 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
8007 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8009 * emit-rtl.c (emit_debug_insn_before): Change argument type to
8013 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8015 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
8018 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8020 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
8023 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8025 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
8028 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8030 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
8033 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8035 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
8039 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8041 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
8045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8047 * except.c (can_nonlocal_goto): Change type of argument to
8051 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8053 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
8056 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8058 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
8059 * cfgrtl.c (can_delete_label_p): Adjust.
8062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8064 * reorg.c (stop_search_p): Change argument to rtx_insn *.
8066 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8068 * except.c (make_reg_eh_region_note): Change argument to
8070 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
8073 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8075 * mode-switching.c (commit_mode_sets): Change type of local
8076 variable from rtx to rtx_insn *.
8078 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
8080 * doc/install.texi (--enable-languages): Add missing jit and lto info.
8081 Add ^ to grep command.
8082 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
8083 arg to last gimple_simplify declaration. Add missing gimple_build
8084 declaration for built-in function case with four tree args.
8086 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
8087 Szabolcs Nagy <szabolcs.nagy@arm.com>
8089 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
8090 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
8091 (GNU_USER_DYNAMIC_LINKERN32): Update.
8093 2015-05-08 Richard Biener <rguenther@suse.de>
8095 PR tree-optimization/66036
8096 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8097 Handle strided group loads.
8098 (vect_verify_datarefs_alignment): Likewise.
8099 (vect_enhance_data_refs_alignment): Likewise.
8100 (vect_analyze_group_access): Likewise.
8101 (vect_analyze_data_ref_access): Likewise.
8102 (vect_analyze_data_ref_accesses): Likewise.
8103 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
8104 (vectorizable_load): Likewise.
8106 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
8108 * config/rs6000/rs6000.md: Require operand inequality in one
8111 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
8112 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8114 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
8116 * config/rx/rx.md (movdi, movdf): Likewise.
8117 Likewise for define_peephole2s.
8119 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
8121 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
8122 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
8123 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
8124 vtst_u64): Rewrite using gcc vector extensions.
8126 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
8128 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
8129 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
8131 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
8133 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
8135 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
8137 * config/glibc-stdint.h (OPTION_MUSL): Define.
8138 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
8139 Change the definition based on OPTION_MUSL for 64 bit targets.
8140 * config/linux.h (OPTION_MUSL): Redefine.
8141 * config/alpha/linux.h (OPTION_MUSL): Redefine.
8142 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
8143 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
8145 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
8146 Szabolcs Nagy <szabolcs.nagy@arm.com>
8148 * config.gcc (LIBC_MUSL): New tm_defines macro.
8149 * config/linux.h (OPTION_MUSL): Define.
8150 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
8151 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
8152 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8153 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8154 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8155 * config/linux.opt (mmusl): New option.
8156 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
8157 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8158 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8159 * configure: Regenerate.
8161 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
8162 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8165 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
8166 * config/i386/knetbsd-gnu64.h: New file.
8168 2015-05-08 Marek Polacek <polacek@redhat.com>
8171 * doc/invoke.texi: Document -Woverride-init-side-effects.
8173 2015-05-07 Marek Polacek <polacek@redhat.com>
8176 * doc/invoke.texi: Document -Wshift-negative-value.
8178 2015-05-06 Aditya Kumar <hiraditya@msn.com>
8180 * gcov-tool.c (do_merge): Refactore to remove int ret.
8181 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
8182 !type == FUNC to type != FUNC.
8183 * reload.h (struct target_reload): Changee to type of
8184 x_spill_indirect_levels from bool to unsigned char.
8186 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
8188 * rtl.h (always_void_p): New function.
8189 * gengenrtl.c (always_void_p): Likewise.
8190 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
8191 with code foo are always VOIDmode.
8192 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
8193 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
8194 compare-elim.c, config/aarch64/aarch64.c,
8195 config/aarch64/aarch64.md, config/alpha/alpha.c,
8196 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
8197 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
8198 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
8199 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8200 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
8201 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
8202 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
8203 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
8204 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
8205 config/ia64/vect.md, config/iq2000/iq2000.c,
8206 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
8207 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
8208 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
8209 config/mep/mep.c, config/microblaze/microblaze.c,
8210 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
8211 config/mn10300/mn10300.c, config/msp430/msp430.c,
8212 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
8213 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
8214 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
8215 config/rs6000/altivec.md, config/rs6000/rs6000.c,
8216 config/rs6000/rs6000.md, config/rs6000/vector.md,
8217 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
8218 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
8219 config/sh/sh.md, config/sh/sh_treg_combine.cc,
8220 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
8221 config/spu/spu.md, config/stormy16/stormy16.c,
8222 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
8223 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
8224 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
8225 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
8226 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
8227 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
8228 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
8229 var-tracking.c: Update calls accordingly.
8231 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
8235 * varasm.c (function_mergeable_rodata_prefix): New function.
8236 (mergeable_string_section): Use it.
8237 (mergeable_constant_section): Use it.
8239 2015-05-07 Jeff Law <law@redhat.com>
8242 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8243 simplifier to narrow arithmetic.
8244 * generic-match-head.c: (types_match, single_use): New functions.
8245 * gimple-match-head.c: (types_match, single_use): New functions.
8247 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8249 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
8252 2015-05-07 Richard Biener <rguenther@suse.de>
8254 PR tree-optimization/66002
8255 * passes.def: Schedule another pass_merge_phi after ifcombine, right
8258 2015-05-07 Marek Polacek <polacek@redhat.com>
8259 Martin Uecker <uecker@eecs.berkeley.edu>
8261 * doc/invoke.texi: Document -fsanitize=bounds-strict.
8262 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
8263 into SANITIZE_NONDEFAULT.
8264 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
8266 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
8269 * config/alpha/alpha.c (alpha_override_options_after_change): New.
8270 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
8271 (alpha_override_options): Move align_loops, align_jumps and
8272 align_functions handling into alpha_override_options_after_change.
8274 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
8275 Chris Jones <chrisj@nvidia.com>
8276 Joshua Conner <jconner@nvidia.com>
8278 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
8279 linking of crtfastmath.o.
8280 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
8282 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8284 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
8285 (cstore<mode>4_unsigned_imm): New expander.
8286 (cstore<mode>4): Remove empty constraint strings. Use the new
8289 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
8292 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
8295 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8297 * config/aarch64/geniterators.sh: Use standard BRE in sed.
8299 2015-05-06 Alan Modra <amodra@gmail.com>
8302 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
8303 (UNSPEC_NOP): Define.
8304 (reload_vsx_from_gpr<mode>): Add missing DONE.
8305 (reload_gpr_from_vsx<mode>): Likewise.
8306 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
8307 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
8309 2015-05-06 Christian Bruel <christian.bruel@st.com>
8312 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
8313 align_jumps, align_functions into aarch64_override_options_after_change.
8315 2015-05-06 Richard Biener <rguenther@suse.de>
8317 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
8318 vect_transform_slp_perm_load to check if we support a permutation
8319 for basic-block vectorization.
8321 2015-05-06 Nick Clifton <nickc@redhat.com>
8323 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
8324 used, even if it is not being used as a frame pointer.
8326 2015-05-05 Jason Merrill <jason@redhat.com>
8328 * dwarf2out.c (gen_member_die): Don't emit anything for an
8329 anonymous class constructor.
8331 2015-05-05 David Malcolm <dmalcolm@redhat.com>
8333 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
8334 that it reflects the block structure.
8335 (afdo_propagate_edge): Likewise.
8336 (afdo_calculate_branch_prob): Likewise.
8337 (afdo_annotate_cfg): Likewise.
8338 * cfgcleanup.c (equal_different_set_p): Likewise.
8339 (try_crossjump_to_edge): Likewise.
8340 * cgraph.c (cgraph_node::verify_node): Likewise.
8341 * cgraphunit.c (expand_all_functions): Likewise.
8342 * config/i386/i386.c (ix86_expand_copysign): Likewise.
8343 (exact_dependency_1): Likewise.
8344 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
8345 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
8346 * gensupport.c (process_define_subst): Likewise.
8347 * lto-wrapper.c (merge_and_complain): Likewise.
8348 * tree-if-conv.c (if_convertible_bb_p): Likewise.
8349 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
8350 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
8351 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8352 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8353 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
8354 * tree-vect-stmts.c (vectorizable_shift): Likewise.
8355 * tree-vrp.c (vrp_finalize): Likewise.
8356 * tree.c (variably_modified_type_p): Likewise.
8358 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
8360 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
8361 on darwin12 and later.
8362 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
8363 file to pass -rdynamic on darwin12 and later.
8364 * config/darwin.opt (rdynamic): Add.
8366 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8368 * doc/extend.texi (C Extensions): Update menu for moved Variable
8369 Attributes and Type Attributes sections.
8371 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8374 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
8375 if rep_8byte stringop strategy was specified for 32-bit target.
8377 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
8380 * config/i386/i386.md (vector convert to float spltiter): Check for
8381 xmm16+, when splitting scalar float conversion.
8382 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
8384 2015-05-05 Nick Clifton <nickc@redhat.com>
8386 * config/msp430/msp430-opts.h (enum msp430_regions): New.
8387 * config/msp430/msp430.c (msp430_override_options): Complain if
8388 -mcode-region or -mdata-region is used on a non MSP430X.
8389 (msp430_section_attr): New function. Checks lower, upper and
8391 (msp430_attribute_table): Add lower, upper and either.
8392 (gen_prefix): New function. Generates a prefix for a section
8394 (msp430_select_section): New function - handles the choice of
8395 section for an object. Takes into account memory region
8396 attributes and options.
8397 (msp430_function_section): Use gen_prefix.
8398 (TARGET_SECTION_TYPE_FLAGS): Define.
8399 (msp430_section_type_flags): New function.
8400 (TARGET_ASM_UNIQUE_SECTION): Define.
8401 (msp430_unique_section): New function.
8402 (msp430_output_aligned_decl_common): New function.
8403 (msp430_do_not_relax_short_jumps): New function.
8404 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
8406 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8407 * config/msp430/msp430-protos.h
8408 (msp430_do_not_relax_short_jumps): New prototype.
8409 (msp430_output_aligned_decl_common): New prototype.
8410 * config/msp430/msp430.md (length): New attribute.
8411 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
8412 then use a long code sequence for short jumps.
8413 * config/msp430/msp430.opt (mcode-region): New.
8414 (mdata-region): New.
8415 * doc/invoke.texi: Document new options.
8416 * doc/extend.texi: Document new attributes.
8418 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
8420 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
8421 (tune_params): Add field branch_costs.
8422 (aarch64_branch_cost): Declare.
8423 * gcc/config/aarch64.c (generic_branch_cost): New.
8424 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
8425 (cortexa53_tunings): Likewise.
8426 (cortexa57_tunings): Likewise.
8427 (thunderx_tunings): Likewise.
8428 (xgene1_tunings): Likewise.
8429 (aarch64_branch_cost): Define.
8430 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
8432 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8434 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
8435 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
8436 * config/i386/i386.md: Ditto.
8437 * config/i386/winnt.c: Ditto.
8439 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
8441 * doc/extend.texi (__atomic Builtins): Move implementation details
8442 to the end of the description, rewrite opening paragraphs, state
8443 difference with __sync builtins, state C11/C++11 assumptions,
8444 weaken itemized descriptions, add explanation of memory model
8445 behaviour, expand description of compare-exchange, simplify text.
8447 2015-05-05 Renlin Li <renlin.li@arm.com>
8449 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
8451 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
8453 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
8454 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8455 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
8456 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8457 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
8458 * configure: Regenerate.
8459 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
8460 * doc/install.texi (aarch64*-*-*): Document new
8461 --enable-fix-cortex-a53-843419 option.
8462 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
8463 and -mno-fix-cortex-a53-843419 options.
8465 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8468 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
8470 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
8472 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
8473 fix overactive TYPE_MIN_VALUE check and add FIXME for type
8474 compatibility problems.
8476 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
8478 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
8480 (cbranchsi4_reg): New.
8481 * config/microblaze/microblaze.c
8482 (microblaze_expand_conditional_branch_reg): New.
8483 * config/microblaze/microblaze-protos.h
8484 (microblaze_expand_conditional_branch_reg): New prototype.
8486 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
8488 * config/microblaze/microblaze.md (peephole2): New.
8490 2015-05-04 Jeff Law <law@redhat.com>
8493 2015-05-04 Jeff Law <law@redhat.com>
8495 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8496 simplifier to narrow arithmetic.
8497 * generic-match-head.c: (types_match, single_use): New functions.
8498 * gimple-match-head.c: (types_match, single_use): New functions.
8500 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8503 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
8504 (split_branches): Likewise.
8506 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
8508 * common.opt (fdelete-null-pointer-checks): Init to -1.
8509 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
8510 override flag_delete_null_pointer_checks default.
8511 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
8512 behavior re address zero. Better document target-specific behavior.
8513 (-fisolate-errneous-paths-dereference): Mention relationship to
8514 -fdelete-null-pointer-checks.
8516 2015-05-04 Jakub Jelinek <jakub@redhat.com>
8518 PR tree-optimization/65984
8519 * ubsan.c: Include tree-cfg.h.
8520 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
8521 stmt_could_throw_p test, rename can_throw variable to ends_bb.
8523 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
8525 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
8526 to CONST_DOUBLE_P predicate.
8527 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
8528 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
8529 allow only operands that satisfy standard_sse_constant_p predicate.
8530 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
8531 to CONST_DOUBLE_P predicate.
8533 2015-05-04 Jeff Law <law@redhat.com>
8535 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8536 simplifier to narrow arithmetic.
8537 * generic-match-head.c: (types_match, single_use): New functions.
8538 * gimple-match-head.c: (types_match, single_use): New functions.
8540 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
8542 * config/arm/arm.c: Restore bootstrap.
8544 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
8546 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
8547 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
8548 as CONST_WIDE_INT, not CONST_DOUBLE.
8549 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
8550 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
8551 (ix86_find_base_term): Do not check for CONST_DOUBLE.
8552 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
8553 (ix86_build_signbit_mask): Rewrite using wide ints.
8554 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
8555 (ix86_rtx_costs): Handle CONST_WIDE_INT.
8556 (find_constant): Ditto.
8557 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
8559 * config/i386/predicates.md (x86_64_immediate_operand)
8560 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8561 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
8562 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8563 (const0_operand): Also match const_wide_int.
8564 (constm1_operand): Ditto.
8565 (const1_operand): Ditto.
8567 2015-05-04 Richard Biener <rguenther@suse.de>
8569 PR tree-optimization/65965
8570 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8571 store groups at gaps.
8573 2015-05-04 Richard Biener <rguenther@suse.de>
8575 PR tree-optimization/65935
8576 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
8577 then make sure to apply that swapping to the IL.
8579 2015-05-04 Jakub Jelinek <jakub@redhat.com>
8581 * Makefile.in (PATCHLEVEL_c): New variable.
8582 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
8583 expand the same way as if DEVPHASE_c was non-empty.
8585 2015-05-04 Kai Tietz <ktietz@redhat.com>
8588 * lto-wrapper.c (run_gcc): Open filename
8591 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
8593 * doc/extend.texi (Variable Attributes, Type Attributes): Move
8594 sections up in file, to immediately after the Function Attributes
8597 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
8599 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
8601 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8603 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
8604 (insert_partition_copy_on_edge): Adjust.
8605 (insert_rtx_to_part_on_edge): Likewise.
8606 (insert_part_to_rtx_on_edge): Likewise.
8608 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8610 * function.c (set_return_jump_label): Change type of argument to
8612 * function.h (set_return_jump_label): Adjust.
8614 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8616 * reload.h (struct reg_equivs_t): Change type of init to
8618 * ira.c (fix_reg_equiv_init): Adjust.
8619 * reload1.c (eliminate_regs_1): Likewise.
8620 (init_eliminable_invariants): Likewise.
8622 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8624 * cselib.c (fp_setter_insn): Take a rtx_insn *.
8625 * cselib.h (fp_setter_insn): Adjust.
8627 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8629 * recog.c (struct validate_replace_src_data): Change type of
8630 insn field to rtx_insn *.
8631 (validate_replace_src_group): Change type of argument to rtx_insn *.
8632 * recog.h (validate_replace_src_group): Adjust.
8634 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8636 * haifa-sched.c: Change the type of some variables to rtx_insn *.
8637 * sched-deps.c: Likewise.
8638 * sched-int.h: Likewise.
8639 * sched-rgn.c: Likewise.
8640 * sel-sched.c: Likewise.
8642 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8645 * config/i386/i386.c: Change the type of some arguments to
8647 * config/arm/arm.c: Likewise.
8649 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8651 * lra-constraints.c: Change type of some arguments to rtx_insn *.
8653 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8655 * regcprop.c (kill_autoinc_value): Change type of argument to
8658 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8660 * genrecog.c (print_subroutine): Adjust.
8661 * recog.c (get_bool_attr_mask_uncached): Likewise.
8662 * recog.h (struct recog_data_d): Change the type of insn to
8665 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8667 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
8669 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8671 * df-problems.c (df_set_note): Change type of argument to
8674 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8676 * builtins.c (expand_builtin_trap): Change type of local
8677 variable to rtx_insn *.
8678 (add_sched_insns_for_speculation): Likewise.
8679 (ix86_emit_save_regs): Likewise.
8680 (get_scratch_register_on_entry): Likewise.
8681 (ix86_emit_restore_reg_using_pop): Likewise.
8682 (ix86_emit_leave): Likewise.
8683 (ix86_emit_restore_regs_using_mov): Likewise.
8684 (ix86_expand_epilogue): Likewise.
8686 (rl78_alloc_physical_registers_umul): Likewise.
8687 * cselib.c (discard_useless_locs): Likewise.
8688 (cselib_invalidate_regno): Likewise.
8689 (cselib_invalidate_mem): Likewise.
8690 * function.c (expand_function_start): Likewise.
8691 (emit_use_return_register_into_block): Likewise.
8693 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
8694 * ifcvt.c (noce_get_alt_condition): Likewise.
8695 * loop-doloop.c (doloop_condition_get): Likewise.
8696 * lra-constraints.c (inherit_in_ebb): Likewise.
8697 * modulo-sched.c (sms_schedule_by_order): Likewise.
8698 * recog.c (next_insn_tests_no_inequality): Likewise.
8699 * reorg.c (emit_delay_sequence): Likewise.
8700 (update_reg_dead_notes): Likewise.
8701 (fix_reg_dead_note): Likewise.
8702 (fill_slots_from_thread): Likewise.
8703 (delete_computation): Likewise.
8705 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
8707 * doc/extend.texi (Variable Attributes): Add menu and proper
8708 @nodes to subsections. Move Microsoft Windows attributes to
8709 their own subsection.
8710 (Type Attributes): Reorganize introduction to remove duplicate
8711 list of attributes. Add menu and proper @nodes to subsections.
8712 Alphabetize the main table of common attributes.
8714 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
8716 * match.pd: New simplification patterns.
8717 (x + (x & 1)) -> ((x + 1) & ~1)
8718 (x & ~(x & y)) -> ((x & ~y))
8719 (x | ~(x | y)) -> ((x | ~y))
8721 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8723 * target.def (attribute_table): Mention that struct attribute_spec
8724 is defined in tree-core.h rather than tree.h
8725 * doc/tm.texi: Regenerate.
8727 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
8729 * genrecog.c (test): Rename to rtx_test. Update rest of file
8732 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
8734 PR translation/65959
8735 * params.h (DEFPARAM): Rename msgid to nocmsgid.
8737 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
8739 * gcc/config/aarch64/aarch64-protos.h (tune_params):
8740 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
8741 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
8742 Return value depending on target.
8743 (generic_tunings): Initialize new target settings.
8744 (cortexa53_tunings): Likewise.
8745 (cortexa57_tunings): Likewise.
8746 (thunderx_tunings): Likewise.
8747 (xgene1_tunings): Likewise.
8749 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
8751 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
8752 Make Cortex-A53 shift costs more accurate.
8754 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8756 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
8759 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
8761 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
8762 Calculate cost of op0 and op1 in PLUS and MINUS cases.
8764 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8766 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8767 Add cost of op0 in the compare-with-fpzero case.
8769 2015-04-30 David Malcolm <dmalcolm@redhat.com>
8771 * builtins.c (fold_builtin_1): Remove spurious second
8773 * cgraph.h (symtab_node::get_availability): Likewise.
8774 * opts.c (common_handle_option): Remove spurious second semicolon.
8775 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8776 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8778 2015-04-30 Caroline Tice <cmtice@google.com>
8780 PR gcov-profile/65929
8781 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
8782 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
8783 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
8784 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
8785 * doc/tm.texi: Regenerate.
8786 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
8787 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
8788 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
8789 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
8791 2015-04-30 Marek Polacek <polacek@redhat.com>
8793 * varasm.c (handle_cache_entry): Fix logic.
8795 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8797 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
8798 (*extrsi5_insn_uxtw_alt): Likewise.
8799 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
8800 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
8803 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8805 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
8808 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8810 * config/aarch64/aarch64.md
8811 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
8812 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
8813 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
8814 appropriately. Handle alternative EON form.
8816 2015-04-30 Renlin Li <renlin.li@arm.com>
8818 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
8819 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
8821 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
8824 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
8825 -fstrict-aliasing boundaries.
8827 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8829 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
8830 and [SU]MNEGL patterns.
8832 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8834 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
8835 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
8836 combined arithmetic-shift ops. Properly handle all shift and extend
8837 operations that can occur in combination with PLUS/MINUS.
8838 Rename maybe_fma to compound_p.
8839 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
8840 arithmetic and shift operations.
8842 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8844 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8845 rather than arith_shift cost when costing ADD/MINUS of an
8848 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
8851 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8854 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
8856 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8857 are for the same position.
8859 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
8861 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
8863 (vectorize_loops): Use it.
8865 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8867 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8868 for aggregate types.
8869 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8871 * tree.c (need_assembler_name_p): Compute mangled name for
8872 non-fundamental types and integer types.
8874 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
8876 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8878 * expr.c (expand_expr_real_2): Likewise.
8880 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8882 * tree.c (build_common_builtin_nodes): Do not build
8883 __builtin_alloca_with_align as equivalent of library alloca.
8885 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8887 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8888 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8890 * tree.c: Include print-tree.h and ipa-utils.h
8891 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8892 (free_lang_data_in_cgraph): Call verify_type.
8893 (verify_type_variant): New function.
8894 (verify_type): New function.
8895 * tree.h (verify_type): Declare.
8897 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
8899 * config/mips/mips-cpus.def: (mips4): Change default processor
8900 from PROCESSOR_R8000 to PROCESSOR_R10000.
8902 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
8904 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8905 la/jalr instead of jal.
8907 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
8910 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8911 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8912 (setcc+movzbl peephole2): Check also clobbered reg.
8913 (setcc+andl peephole2): Ditto.
8915 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8918 * config/nvptx/mkoffload.c (target_ilp32): New variable.
8919 (main): Set it depending on "-foffload-abi=[...]".
8920 (compile_native, main): Use it to pass "-m32" or "-m64" to the
8923 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8926 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8927 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8928 Flip lane index back at assembly time for bigendian.
8930 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8932 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8933 * gimplify.c (gimplify_omp_workshare): Use it.
8935 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8937 * Makefile.in (build/genrecog.o): Depend on inchash.h.
8938 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8940 * genrecog.c: Rewrite most of the code except for the third page.
8942 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8944 * inchash.h, inchash.c: Include bconfig.h for build objects.
8945 * Makefile.in (build/inchash.o): New rule.
8947 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
8950 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8951 number in type attribute expression.
8953 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8955 * loop-iv.c (canon_condition): Generalize to all types of integer
8958 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
8960 * gimple-walk.c: Prune duplicate or unneeded includes.
8961 (walk_gimple_asm): Only call parse_input_constraint or
8962 parse_output_constraint if their findings are used.
8963 Honour parse_input_constraint and parse_output_constraint
8966 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8968 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8970 2015-04-29 Tom de Vries <tom@codesourcery.com>
8972 PR tree-optimization/65893
8973 * passes.def (pass_all_optimizations): Move pass_stdarg to after
8976 2015-04-29 Richard Biener <rguenther@suse.de>
8978 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8979 compute GROUP_SIZE for basic-block SLP.
8980 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8981 take into account gaps.
8982 (vect_get_mask_element): Properly reject references to previous
8984 (vect_transform_slp_perm_load): Likewise.
8986 2015-04-29 Christian Bruel <christian.bruel@st.com>
8989 * config/i386/i386.c (ix86_default_align): New function.
8990 (ix86_override_options_after_change): Call ix86_default_align.
8991 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8992 (ix86_override_options_after_change): New function.
8994 2015-04-28 Jeff Law <law@redhat.com>
8996 * tree-ssa-dom.c (record_equality); Fix comment typos.
8998 2015-04-28 Tom de Vries <tom@codesourcery.com>
9000 PR tree-optimization/65887
9001 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
9003 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
9005 * doc/extend.texi (Declaring Attributes of Functions): Split into
9006 subsections by target. Alphabetize the table of common attributes.
9007 Rewrite some of the introductory text to reflect the new structure.
9008 Update some cross-references to point to the new subsections.
9009 (Attribute Syntax): Put paragraph about "__" naming here. Remove
9010 duplicate copies in the discussion of function, label, and type
9013 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
9016 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
9018 2015-04-28 Jason Merrill <jason@redhat.com>
9021 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
9022 (finalize_type_size): Respect TYPE_USER_ALIGN.
9023 (layout_type) [ARRAY_TYPE]: Likewise.
9025 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
9027 * config/arm/arm.md (*arm_movt): Fix type attribute.
9028 (*cmpsi_shiftsi): Likewise.
9029 (*cmpsi_shiftsi_swp): Likewise.
9030 (*movsicc_insn): Likewise.
9031 (*cond_move): Likewise.
9032 (*if_plus_move): Likewise.
9033 (*if_move_plus): Likewise.
9034 (*if_arith_move): Likewise.
9035 (*if_move_arith): Likewise.
9036 (*if_shift_move): Likewise.
9037 (*if_move_shift): Likewise.
9038 (*arm_movtas_ze): Likewise.
9039 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
9040 redundancy and type attribute.
9041 (*thumb2_movsi_insn): Fix type attribute.
9042 (*thumb2_addsi_short): Likewise.
9043 (thumb2_addsi3_compare0): Likewise.
9044 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
9045 attributes accordingly.
9047 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
9050 * function.c (pad_to_arg_alignment): Add parentheses.
9052 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
9054 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
9055 libgcc/config/frv/elf-lib.h.
9057 2015-04-28 Tom de Vries <tom@codesourcery.com>
9059 * tree-call-cdce.c: Fix example in header comment.
9061 2015-04-28 Richard Biener <rguenther@suse.de>
9063 PR tree-optimization/62283
9064 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
9065 fails fatally and we are vectorizing a basic-block simply
9066 cause the child to be constructed piecewise.
9067 (vect_analyze_slp_cost_1): Adjust.
9068 (vect_detect_hybrid_slp_stmts): Likewise.
9069 (vect_bb_slp_scalar_cost): Likewise.
9070 (vect_get_constant_vectors): For piecewise constructed
9071 constants place them after the last def.
9072 (vect_get_slp_defs): Adjust.
9073 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
9074 externals for basic-block vectorization.
9076 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9079 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
9081 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
9082 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
9083 (AARCH64_TUNE_FMA_STEERING): Likewise.
9084 * config/aarch64/aarch64-cores.def: Set
9085 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
9086 FMUL/FMADD instructions.
9087 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
9088 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
9089 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
9090 * config/aarch64/cortex-a57-fma-steering.h: New file.
9091 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9093 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
9095 * gensupport.c (std_preds): Add missing codes to address_operand entry.
9097 2015-04-28 Richard Biener <rguenther@suse.de>
9099 PR tree-optimization/65851
9100 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
9101 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
9102 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
9103 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
9104 (ccp_visit_phi_node): Adjust.
9105 (evaluate_stmt): For simplifications to SSA names return its
9106 lattice value if that isn't VARYING. Return immediately when
9107 simplified to a constant.
9108 (visit_assignment): Adjust.
9109 (ccp_visit_stmt): Likewise.
9111 2015-04-28 Tom de Vries <tom@codesourcery.com>
9113 PR tree-optimization/65818
9114 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
9117 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9119 * calls.c (save_fixed_argument_area): Don't check
9120 ARGS_GROW_DOWNWARD with the preprocessor.
9121 (restore_fixed_argument_area): Likewise.
9122 (mem_overlaps_already_clobbered_arg_p): Likewise.
9123 (check_sibcall_argument_overlap): Likewise.
9124 (expand_call): Likewise.
9125 (emit_library_call_value_1): Likewise.
9126 (store_one_arg): Likewise.
9127 * function.c (assign_parms): Likewise.
9128 (locate_and_pad_parm): Likewise.
9129 (pad_to_arg_alignment): Likewise.
9130 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9132 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9134 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
9135 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
9136 * calls.c (save_fixed_argument_area): Don't chekc if
9137 ARGS_GROW_DOWNWARD is defined.
9138 (restore_fixed_argument_area): Likewise.
9139 (mem_overlaps_already_clobbered_arg_p): Likewise.
9140 (check_sibcall_argument_overlap): Likewise.
9141 (expand_call): Likewise.
9142 (emit_library_call_value_1): Likewise.
9143 (store_one_arg): Likewise.
9144 * function.c (assign_parms): Likewise.
9145 (locate_and_pad_parm): Likewise.
9146 (pad_to_arg_alignment): Likewise.
9147 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9149 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9151 * defaults.h (gen_epilogue): New function.
9152 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
9154 * cfgrtl.c (cfg_layout_finalize): Likewise.
9155 * df-scan.c: Likewise.
9156 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9157 (reposition_prologue_and_epilogue_notes): Likewise.
9158 * reorg.c (find_end_label): Likewise.
9159 * toplev.c: Likewise.
9161 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9163 * bb-reorder.c (HAVE_return): Don't check if its undefined.
9164 * defaults.h (gen_simple_return): New function.
9165 (gen_simple_return): Likewise.
9166 (HAVE_return): Add default definition to false.
9167 (HAVE_simple_return): Likewise.
9168 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
9169 HAVE_return and HAVE_simple_return are defined.
9170 * function.c (gen_return_pattern): Likewise.
9171 (convert_jumps_to_returns): Likewise.
9172 (thread_prologue_and_epilogue_insns): Likewise.
9173 * reorg.c (find_end_label): Likewise.
9174 (dbr_schedule): Likewise.
9175 * shrink-wrap.c: Likewise.
9176 * shrink-wrap.h: Likewise.
9178 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9180 * defaults.h (EPILOGUE_USES): Add default definition of false.
9181 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
9182 * resource.c (init_resource_info): Likewise.
9184 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9186 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
9188 * dwarf2out.c (field_byte_offset): REmove check if
9189 PCC_BITFIELD_TYPE_MATTERS is defined.
9190 * stor-layout.c (layout_decl): Likewise.
9191 (update_alignment_for_field): Likewise.
9192 (place_field): Likewise.
9194 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9196 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
9198 * regrename.c (check_new_reg_p): Remove check if
9199 HARD_REGNO_RENAME_OK is defined.
9200 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
9202 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9204 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
9205 * cse.c (fold_rtx): Likewise.
9206 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
9207 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
9208 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
9209 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
9210 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
9211 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
9212 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
9213 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
9214 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
9215 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
9217 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
9218 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
9219 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
9220 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
9221 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
9222 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
9223 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
9224 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
9225 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
9226 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
9227 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
9228 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
9229 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
9230 * doc/tm.texi: Regenerate.
9231 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
9232 either true or false.
9234 2015-04-27 Jeff Law <law@redhat.com>
9236 PR tree-optimization/65217
9237 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
9238 of them has a single use, make sure it is the LHS of the implied
9241 2015-04-28 Alan Modra <amodra@gmail.com>
9244 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
9245 (offsettable_ok_by_alignment): Use minimum of decl and toc
9246 pointer alignment. Replace dead code with assertion.
9247 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
9248 case if size exceeds toc pointer alignment.
9249 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
9250 (rs6000_emit_move): Likewise.
9251 * configure.ac: Add linker toc pointer alignment check.
9252 * configure: Regenerate.
9253 * config.in: Regenerate.
9255 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
9257 * config.gcc: Add h8300-*-linux.
9258 * config/h8300/linux.h: New.
9259 * config/h8300/t-linux: New.
9260 * config/h8300/h8300.c (h8300_option_override): Normal mode
9261 is not supported for h8300-*-linux.
9262 (h8300_file_start): Target priority change.
9263 (get_shift_alg): Likewise.
9264 (h8300_shift_need_scratch_p): Likewise.
9265 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9266 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
9268 2015-04-27 Caroline Tice <cmtice@google.com>
9270 * final.c (final_scan_insn): Output cold_function_name as function
9272 * varasm.c (cold_function_name): Make global.
9273 (assemble_start_function): Re-set cold_function_name.
9274 (assemble_end_function): Output cold partition size.
9275 * varasm.h (cold_function_name): Declare global.
9277 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
9279 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
9280 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
9282 (*movxi_internal_avx512f): Ditto.
9283 (define_split): Check for xmm16+, when splitting scalar float_extend.
9284 (*extendsfdf2_mixed): Use "v" constraint.
9285 (define_split): Check for xmm16+, when splitting scalar float_truncate.
9286 (*truncdfsf_fast_sse): Use "v" constraint.
9287 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
9288 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
9289 (define_peephole2): Check for xmm16+, when converting scalar
9291 (define_peephole2): Check for xmm16+, when converting scalar
9293 (*fop_<mode>_comm_mixed): Use "v" constraint.
9294 (*fop_<mode>_comm_sse): Ditto.
9295 (*fop_<mode>_1_mixed): Ditto.
9296 (*sqrt<mode>2_sse): Ditto.
9297 (*ieee_s<ieee_maxmin><mode>3): Ditto.
9299 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9301 * combine.c (simplify_if_then_else): Use std::swap instead
9302 of manually swapping.
9303 (known_cond): Likewise.
9304 (simplify_comparison): Likewise.
9306 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
9309 * config/rs6000/htm.md: Remove all define_expands.
9310 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
9311 UNSPECV_HTM_TABORTWCI): Remove.
9312 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
9313 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
9314 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
9315 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
9316 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
9317 tabortwci_internal): Remove define_insns.
9318 (tabort<wd>c, tabort<wd>ci): New define_insns.
9319 (tabort): Use gpc_reg_operand.
9320 (tcheck): Remove operand.
9321 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
9322 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
9324 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
9325 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
9326 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
9327 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
9328 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
9329 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
9330 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
9331 (tcheck): Remove builtin argument.
9332 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
9334 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
9335 tabortdc and tabortdci builtins when not in 64-bit mode.
9336 Modify code to handle the loss of the HTM define_expands.
9337 Emit code to copy the CR register to TARGET.
9338 (htm_init_builtins): Modify code to handle the loss of the HTM
9340 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
9341 (RS6000_BTC_64BIT): Likewise.
9342 (RS6000_BTC_CR): New macro.
9343 * doc/extend.texi: Update documentation for htm builtins.
9345 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9347 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
9348 of manually swapping.
9349 (simplify_associative_operation): Likewise.
9350 (simplify_binary_operation): Likewise.
9351 (simplify_plus_minus): Likewise.
9352 (simplify_relational_operation): Likewise.
9353 (simplify_ternary_operation): Likewise.
9355 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
9357 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
9358 (xs_hi_nonmemory_operand): Remove error.
9359 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
9360 general_operand rather than xs_hi_general_operand.
9362 2015-04-27 Richard Biener <rguenther@suse.de>
9364 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
9365 (record_equivalences_from_stmt): Valueize rhs.
9366 (record_equality): Canonicalize x and y order via
9367 tree_swap_operands_p. Do not swap operands for same loop depth.
9369 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
9373 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
9374 Add hint how to use own spec file.
9376 2015-04-27 Jakub Jelinek <jakub@redhat.com>
9378 PR tree-optimization/65875
9379 * tree-vrp.c (update_value_range): If in is_new case setting
9380 old_vr to VR_VARYING, also set new_vr to it. Remove
9381 old_vr->type == VR_VARYING test.
9382 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
9383 SSA_PROP_INTERESTING if update_value_range returned true,
9384 but new range is VR_VARYING.
9386 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
9388 * combine.c (sign_extend_short_imm): New.
9389 (set_nonzero_bits_and_sign_copies): Use above new function for sign
9390 extension of src short immediate.
9391 (reg_nonzero_bits_for_combine): Likewise for tem.
9393 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
9395 * stor-layout.c (self_referential_component_ref_p): New predicate.
9396 (copy_self_referential_tree_r): Use it.
9397 (self_referential_size): Punt for simple operations directly involving
9398 self-referential component references.
9399 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
9401 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
9403 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
9405 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
9407 * vec.h (vec): Make splice arguments const. Update definitions
9410 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
9412 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
9415 2015-04-26 Tom de Vries <tom@codesourcery.com>
9417 PR tree-optimization/65826
9418 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
9420 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
9422 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
9423 (*madd3<mode>): Ditto.
9424 (*msub4<mode>): Ditto.
9425 (*msub3<mode>): Ditto.
9426 (*nmadd4<mode>): Ditto.
9427 (*nmadd3<mode>): Ditto.
9428 (*nmadd4<mode>_fastmath): Ditto.
9429 (*nmadd3<mode>_fastmath): Ditto.
9430 (*nmsub4<mode>): Ditto.
9431 (*nmsub3<mode>): Ditto.
9432 (*nmsub4<mode>_fastmath): Ditto.
9433 (*nmsub3<mode>_fastmath): Ditto.
9435 2015-04-24 Jason Merrill <jason@redhat.com>
9438 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
9439 down when building TYPE_CANONICAL.
9440 (build_pointer_type_for_mode): Likewise.
9442 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
9444 * genrecog.c (validate_pattern): Check matching constraint refers
9445 to a lower numbered operand.
9447 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9450 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
9451 save to independent variables use the Save attribute. This will
9452 allow these options to be modified with the #pragma/attribute
9454 (-mallow-movmisalign): Likewise.
9455 (-mallow-df-permute): Likewise.
9456 (-msched-groups): Likewise.
9457 (-malways-hint): Likewise.
9458 (-malign-branch-targets): Likewise.
9459 (-mvectorize-builtins): Likewise.
9460 (-msave-toc-indirect): Likewise.
9462 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
9463 can be set via the #pragma/attribute target support.
9464 (rs6000_opt_vars): Likewise.
9465 (rs6000_inner_target_options): If VSX was set, also set
9466 -mno-avoid-indexed-addresses.
9468 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9470 * config/arm/iterators.md (shiftable_ops): Rename to...
9471 (SHIFTABLE_OPS): ... This. Update use in comments.
9472 (ior_xor): Rename to...
9473 (IOR_XOR): ... This.
9474 (vqh_ops): Rename to...
9475 (VQH_OPS): ... This.
9476 (vqhs_ops): Rename to...
9477 (VQHS_OPS): ... This.
9478 (rshifts): Rename to...
9479 (RSHIFTS): ... This.
9480 (returns): Rename to...
9481 (RETURNS): ... This.
9482 * config/arm/arm.md: Update uses of the above.
9483 * config/arm/neon.md: Likewise.
9485 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9487 * config.host (case ${host}): Add aarch64*-*-linux case.
9488 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
9489 fields to all the cores.
9490 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
9491 Add MCPU_MTUNE_NATIVE_SPECS.
9492 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
9493 field to all extensions.
9494 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
9495 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
9496 Adjust definition of AARCH64_OPT_EXTENSION.
9497 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
9498 (MCPU_MTUNE_NATIVE_SPECS): Define.
9499 * config/aarch64/driver-aarch64.c: New file.
9500 * config/aarch64/x-arch64: New file.
9501 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
9504 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
9505 Wei Mi <wmi@google.com>
9507 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
9508 * config/i386/i386.c (extract_base_offset_in_addr): New function.
9509 (ix86_operands_ok_for_move_multiple): Ditto.
9510 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
9511 (movlpd/movhpd to movupd peephole2): Ditto.
9513 2015-04-24 Marek Polacek <polacek@redhat.com>
9516 * input.h (from_macro_expansion_at): Define.
9519 * doc/invoke.texi: Update description of -Wlogical-op.
9521 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9523 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
9524 ternary operator in fprintf and harmonize spacing.
9526 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
9528 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
9529 Mark operand1 commutative.
9531 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
9533 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
9534 input operands in memory.
9535 (*vec_concatv2si_sse4_1): Ditto.
9536 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
9537 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
9539 (vec_extract_hi_v32hi): Ditto.
9540 (vec_extract_hi_v64hi): Ditto.
9541 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9543 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9544 Steven Bosscher <steven@gcc.gnu.org>
9546 PR rtl-optimization/34503
9547 * cprop.c (cprop_reg_p): New.
9548 (hash_scan_set): Use above function to check if register can be
9550 (find_avail_set): Return up to two sets, one whose source is a
9551 register and one whose source is a constant. Sets are returned in an
9552 array passed as parameter rather than as a return value.
9553 (cprop_insn): Use a do while loop rather than a goto. Try each of the
9554 sets returned by find_avail_set, starting with the one whose source is
9555 a constant. Use cprop_reg_p to check if register can be propagated.
9556 (do_local_cprop): Use cprop_reg_p to check if register can be
9558 (implicit_set_cond_p): Likewise.
9560 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9562 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
9563 (sem_function::equals): IGNORED_NODES parameter is now unused;
9564 update call of equals_private.
9565 (sem_function::equals_private): Do not call equals_wpa; skip
9566 gimple body matching if there is no body.
9567 (sem_function::init): Add logic to hash tthunk info.
9568 (sem_function::parse): Also parse thunks.
9569 * ipa-icf.h (equals_private): Update declaration.
9571 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9573 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
9574 asterisk from name so this can be generated directly.
9575 (*altivec_stvx_<mode>_internal): Likewise.
9576 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
9577 that this is never called during or after reload/lra.
9578 (rs6000_frame_related): Remove split_reg
9579 argument and logic that references it.
9580 (emit_frame_save): Remove last parameter from call to
9581 rs6000_frame_related.
9582 (rs6000_emit_prologue): Remove last parameter from eight calls to
9583 rs6000_frame_related. Force generation of stvx instruction for
9584 Altivec register saves. Remove split_reg handling, which is no
9586 (rs6000_emit_epilogue): Force generation of lvx instruction for
9587 Altivec register restores.
9589 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9591 * config/rs6000/rs6000.opt (mcrypto): Change option description to
9592 match category changes in ISA 2.07B.
9594 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9596 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
9598 (cmp_op, cmp_type): New code attributes.
9599 (NEON_VCMP, NEON_VACMP): New int iterators.
9600 (cmp_op_unsp): New int attribute.
9601 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
9602 (neon_vceq<mode>): Delete.
9603 (neon_vc<cmp_op><mode>_insn): New pattern.
9604 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
9605 (neon_vcgeu<mode>): Delete.
9606 (neon_vcle<mode>): Likewise.
9607 (neon_vclt<mode>: Likewise.
9608 (neon_vcage<mode>): Likewise.
9609 (neon_vcagt<mode>): Likewise.
9610 (neon_vca<cmp_op><mode>): New define_expand.
9611 (neon_vca<cmp_op><mode>_insn): New pattern.
9612 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
9614 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9616 * tree.h (attribute_value_equal): Declare.
9617 * tree.c (attribute_value_equal): Export.
9619 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9621 * ipa-icf.c (sem_item::compare_attributes): New function.
9622 (sem_item::compare_referenced_symbol_properties): Compare variable
9624 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
9625 (sem_function::param_used_p): New function.
9626 (sem_function::equals_wpa): Fix attribute comparsion; match
9627 parameter type codes; do not compare paremter flags when
9628 they are not used; compare edge flags; compare indirect calls.
9629 (sem_item::update_hash_by_addr_refs): Hash reference type.
9630 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
9631 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
9633 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
9634 * ipa-icf.h (compare_attributes, param_used_p): Declare.
9636 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9638 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
9640 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
9641 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
9642 (sem_item::compare_referenced_symbol_properties): New.
9643 (sem_item::hash_referenced_symbol_properties): New.
9644 (sem_item::compare_cgraph_references): Rename to ...
9645 (sem_item::compare_symbol_references): ... this one; use
9646 compare_referenced_symbol_properties.
9647 (sem_function::equals_wpa): Do not compare
9648 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
9649 DECL_IS_OPERATOR_NEW; compare pointer sizes.
9650 (sem_item::update_hash_by_addr_refs): Call
9651 hash_referenced_symbol_properties.
9652 (sem_item::update_hash_by_local_refs): Cleanup.
9653 (sem_function::merge): Do not mix up symbol properties.
9654 (sem_variable::equals_wpa): Use compare_symbol_references.
9655 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
9656 (sem_item::hash_referenced_symbol_properties): New.
9657 (sem_item::compare_symbol_references): New.
9658 (sem_item::compare_cgraph_references): Remove.
9660 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
9663 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9666 2015-04-23 Nick Clifton <nickc@redhat.com>
9668 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
9669 ATTRIBUTE_UNUSED to x parameter.
9670 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
9672 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9674 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
9675 TARGET_CRYPTO to TARGET_P8_VECTOR>
9676 (crypto_vpermxor_<mode>): Likewise.
9677 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
9678 (BU_CRYPTO_3A): Likewise.
9679 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
9680 (BU_CRYPTO_OVERLOAD_3A): New #define.
9681 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
9682 (VPMSUMH): Likewise.
9683 (VPMSUMW): Likewise.
9684 (VPMSUMD): Likewise.
9685 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
9686 (VPERMXOR_V4SI): Likewise.
9687 (VPERMXOR_V8HI): Likewise.
9688 (VPERMXOR_V16QI): Likewise.
9689 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
9690 BU_CRYPTO_OVERLOAD_2A.
9691 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
9692 BU_CRYPTO_OVERLOAD_3A.
9693 * config/rs6000/rs6000.opt (mcrypto): Change description of
9696 2015-04-23 Richard Biener <rguenther@suse.de>
9698 * passes.def: Remove copy propagation passes run directly after CCP.
9699 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
9701 (ccp_visit_phi_node): Rework to handle first executable edge
9704 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
9706 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9707 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9708 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9709 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
9710 (thumb_legimitimize_reload_address): Remove.
9711 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
9713 (thumb_legimitimize_reload_address): Remove.
9715 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9717 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
9719 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9721 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
9723 (store_multiple): Likewise.
9725 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9727 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
9728 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
9729 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
9730 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
9731 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
9732 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
9733 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
9734 Specify issue_rate value.
9735 (arm_issue_rate): Look up issue rate from tuning structs. Remove
9736 large switch statement.
9737 (arm_marvell_pj4_tune): New struct.
9738 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
9741 2015-04-23 Richard Biener <rguenther@suse.de>
9743 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
9744 (vect_find_last_store_in_slp_instance): Rename to ...
9745 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
9746 (vect_analyze_slp_cost_1): Use vector_load for constant defs
9747 and vec_construct for external defs when estimating prologue cost.
9748 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
9749 Compute costs here only when vectorizing loops.
9750 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
9751 have been determined.
9752 (vect_schedule_slp_instance): Simplify vectorized code placement
9753 and prepare for in-BB external defs.
9754 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
9755 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
9756 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
9758 (vect_model_load_cost): Likewise.
9759 (vectorizable_store): Instead add it here.
9760 (vectorizable_load): Likewise.
9761 (vect_is_simple_use): Dump def type textually.
9763 2015-04-23 Richard Biener <rguenther@suse.de>
9765 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
9766 * cfgloop.c (verify_loop_structure): Verify the root loop node.
9767 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
9768 instead of get_eh_region_from_lp_number.
9769 * loop-init.c (fix_loop_structure): If we removed a loop, reset
9772 2015-04-23 Anton Blanchard <anton@samba.org>
9774 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
9775 need for -mprofile-kernel to save LR to stack.
9777 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9779 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
9781 (insn_is_swappable_p): Return 1 for a convert from double to
9782 single precision when all of its uses are splats of BE element
9785 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9787 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
9789 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9792 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
9793 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
9794 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
9796 (rs6000_builtin_mask_for_load): Return 0 for targets with
9797 efficient unaligned VSX accesses so that the vectorizer will use
9798 direct unaligned loads.
9799 (rs6000_builtin_support_vector_misalignment): Always return true
9800 for targets with efficient unaligned VSX accesses.
9801 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
9802 stores on targets with efficient unaligned VSX accesses is almost
9803 always the same as the cost of an aligned load or store, so model
9805 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
9806 unaligned vectors if we have efficient unaligned VSX accesses.
9807 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
9808 undocumented option.
9810 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9813 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
9815 * config.gcc (LIBC_MUSL): New tm_defines macro.
9816 * config/linux.h (OPTION_MUSL): Define.
9817 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9818 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9819 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9821 * config/linux.opt (mmusl): New option.
9822 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9823 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9825 * configure: Regenerate.
9827 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
9829 * config.gcc (LIBC_MUSL): New tm_defines macro.
9830 * config/linux.h (OPTION_MUSL): Define.
9831 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9832 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9833 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9835 * config/linux.opt (mmusl): New option.
9836 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9837 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9839 * configure: Regenerate.
9841 2015-04-22 Yury Gribov <y.gribov@samsung.com>
9843 * doc/invoke.texi (-fsanitize-sections): Update description.
9844 * asan.c (set_sanitized_sections): Parse incoming arg.
9845 (section_sanitized_p): Support wildcards.
9847 2015-04-22 Tom de Vries <tom@codesourcery.com>
9849 PR tree-optimization/65823
9850 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9851 equality between ap_copy and ap.
9853 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9856 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9858 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9861 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9863 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9866 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9867 remove already contained t-files.
9869 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9871 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9872 Remove unneeded forward declarations.
9873 (suitable_for_tail_call_opt_p): Commentary typo fix.
9875 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9877 * varasm.c (emit_bss): Remove redundant guard.
9879 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9881 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9883 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9885 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9887 2015-04-22 Hale Wang <hale.wang@arm.com>
9888 Terry Guo <terry.guo@arm.com>
9890 PR rtl-optimization/64818
9891 * combine.c (can_combine_p): Don't combine user-specified
9892 register if it is in an asm input.
9894 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
9897 * passes.def (early_optimizations): Add pass_dse.
9899 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9901 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9902 * reorg.c (redundant_insn): Remove ifdef
9903 INSN_REFERENCES_ARE_DELAYED.
9904 * resource.c (mark_referenced_resources): Likewise.
9906 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9908 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9909 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9910 * resource.c (mark_set_resources): Likewise.
9912 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9914 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9915 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9916 (flow_find_head_matching_sequence): Likewise.
9917 (try_head_merge_bb): Likewise.
9918 * combine.c (can_combine_p): Likewise.
9919 (try_combine): Likewise.
9920 (distribute_notes): Likewise.
9921 * df-problems.c (can_move_insns_across): Likewise.
9922 * final.c (final): Likewise.
9923 * gcse.c (insert_insn_end_basic_block): Likewise.
9924 * ira.c (find_moveable_pseudos): Likewise.
9925 * reorg.c (try_merge_delay_insns): Likewise.
9926 (fill_simple_delay_slots): Likewise.
9927 (fill_slots_from_thread): Likewise.
9928 * sched-deps.c (sched_analyze_2): Likewise.
9930 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9932 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9933 PIC_OFFSET_TABLE_REGNUM.
9935 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9937 * alias.c (init_alias_target): Remove ifdef
9938 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9939 * df-scan.c (df_insn_refs_collect): Likewise.
9940 (df_get_regular_block_artificial_uses): Likewise.
9941 (df_get_eh_block_artificial_uses): Likewise.
9942 (df_get_entry_block_def_set): Likewise.
9943 (df_get_exit_block_use_set): Likewise.
9944 * emit-rtl.c (gen_rtx_REG): Likewise.
9945 * ira.c (ira_setup_eliminable_regset): Likewise.
9946 * reginfo.c (init_reg_sets_1): Likewise.
9947 * regrename.c (rename_chains): Likewise.
9948 * reload1.c (reload): Likewise.
9949 (eliminate_regs_in_insn): Likewise.
9950 * resource.c (mark_referenced_resources): Likewise.
9951 (init_resource_info): Likewise.
9953 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9955 * defaults.h (MASK_RETURN_ADDR): New definition.
9956 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9959 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9961 * defaults.h (RETURN_ADDR_OFFSET): New definition.
9962 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9964 (expand_builtin_frob_return_addr): Likewise.
9966 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9968 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9969 (try_redirect_by_replacing_jump): Likewise.
9970 (rtl_tidy_fallthru_edge): Likewise.
9971 * combine.c (insn_a_feeds_b): Likewise.
9972 (find_split_point): Likewise.
9973 (simplify_set): Likewise.
9974 * cprop.c (cprop_jump): Likewise.
9975 * cse.c (cse_extended_basic_block): Likewise.
9976 * df-problems.c (can_move_insns_across): Likewise.
9977 * function.c (emit_use_return_register_into_block): Likewise.
9978 * haifa-sched.c (sched_init): Likewise.
9979 * ira.c (find_moveable_pseudos): Likewise.
9980 * loop-invariant.c (find_invariant_insn): Likewise.
9981 * lra-constraints.c (curr_insn_transform): Likewise.
9982 * postreload.c (reload_combine_recognize_const_pattern):
9984 * reload.c (find_reloads): Likewise.
9985 * reorg.c (delete_scheduled_jump): Likewise.
9986 (steal_delay_list_from_target): Likewise.
9987 (steal_delay_list_from_fallthrough): Likewise.
9988 (redundant_insn): Likewise.
9989 (fill_simple_delay_slots): Likewise.
9990 (fill_slots_from_thread): Likewise.
9991 (delete_computation): Likewise.
9992 * sched-rgn.c (add_branch_dependences): Likewise.
9994 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9996 * genconfig.c (main): Always define HAVE_cc0.
9997 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9999 * cfgcleanup.c (flow_find_cross_jump): Likewise.
10000 (flow_find_head_matching_sequence): Likewise.
10001 (try_head_merge_bb): Likewise.
10002 * cfgrtl.c (rtl_merge_blocks): Likewise.
10003 (try_redirect_by_replacing_jump): Likewise.
10004 (rtl_tidy_fallthru_edge): Likewise.
10005 * combine.c (do_SUBST_MODE): Likewise.
10006 (insn_a_feeds_b): Likewise.
10007 (combine_instructions): Likewise.
10008 (can_combine_p): Likewise.
10009 (try_combine): Likewise.
10010 (find_split_point): Likewise.
10012 (simplify_set): Likewise.
10013 (distribute_notes): Likewise.
10014 * cprop.c (cprop_jump): Likewise.
10015 * cse.c (cse_extended_basic_block): Likewise.
10016 * df-problems.c (can_move_insns_across): Likewise.
10017 * final.c (final): Likewise.
10018 (final_scan_insn): Likewise.
10019 * function.c (emit_use_return_register_into_block): Likewise.
10020 * gcse.c (insert_insn_end_basic_block): Likewise.
10021 * haifa-sched.c (sched_init): Likewise.
10022 * ira.c (find_moveable_pseudos): Likewise.
10023 * loop-invariant.c (find_invariant_insn): Likewise.
10024 * lra-constraints.c (curr_insn_transform): Likewise.
10025 * optabs.c (prepare_cmp_insn): Likewise.
10026 * postreload.c (reload_combine_recognize_const_pattern):
10028 * reload.c (find_reloads): Likewise.
10029 (find_reloads_address_1): Likewise.
10030 * reorg.c (delete_scheduled_jump): Likewise.
10031 (steal_delay_list_from_target): Likewise.
10032 (steal_delay_list_from_fallthrough): Likewise.
10033 (try_merge_delay_insns): Likewise.
10034 (redundant_insn): Likewise.
10035 (fill_simple_delay_slots): Likewise.
10036 (fill_slots_from_thread): Likewise.
10037 (delete_computation): Likewise.
10038 (relax_delay_slots): Likewise.
10039 * sched-deps.c (sched_analyze_2): Likewise.
10040 * sched-rgn.c (add_branch_dependences): Likewise.
10042 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10044 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
10045 that is trivially ded on non cc0 targets.
10046 (simplify_set): Likewise.
10047 (mark_used_regs_combine): Likewise.
10048 * cse.c (new_basic_block): Likewise.
10049 (fold_rtx): Likewise.
10050 (cse_insn): Likewise.
10051 (cse_extended_basic_block): Likewise.
10052 (set_live_p): Likewise.
10053 * rtlanal.c (canonicalize_condition): Likewise.
10054 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10056 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10058 * conditions.h: Define macros even if HAVE_cc0 is undefined.
10059 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
10060 * final.c: Likewise.
10061 * jump.c: Likewise.
10062 * recog.c: Likewise.
10063 * recog.h: Declare functions even when HAVE_cc0 is undefined.
10064 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
10066 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10068 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
10069 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
10070 * builtins.c (expand_builtin): Remove check if
10071 EH_RETURN_DATA_REGNO is defined.
10072 * df-scan.c (df_bb_refs_collect): Likewise.
10073 (df_get_exit_block_use_set): Likewise.
10074 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
10075 * ira-lives.c (process_bb_node_lives): Likewise.
10076 * lra-lives.c (process_bb_lives): Likewise.
10078 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
10080 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
10081 FIRST_PSEUDO_REG): New.
10082 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
10083 (ARG_POINTER_REGNUM): Define to ARGP_REG.
10084 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
10085 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
10086 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
10087 (FIRST_INT_REG): New.
10088 (LAST_INT_REG): New.
10089 (FIRST_*_REG): Define using *_REG.
10090 (LAST_*_REG): Ditto.
10091 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
10092 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
10093 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
10095 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10097 * expmed.c: (synth_mult): Only assume overlapping
10098 shift with previous steps in alg_sub_t_m2 case.
10100 2015-04-21 Richard Biener <rguenther@suse.de>
10102 PR tree-optimization/65650
10103 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
10104 transitions involving copies.
10105 (set_lattice_value): Adjust for copy lattice state.
10106 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
10107 if that doesn't dominate the merge point.
10108 (bit_value_unop): Adjust what we treat as varying mask.
10109 (bit_value_binop): Likewise.
10110 (bit_value_assume_aligned): Likewise.
10111 (evaluate_stmt): When we simplified to a SSA name record a copy
10112 instead of dropping to varying.
10113 (visit_assignment): Simplify.
10115 * gimple-match.h (gimple_simplify): Add another callback.
10116 * gimple-fold.c (fold_stmt_1): Adjust caller.
10117 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
10118 for the 2nd callback.
10119 * gimple-match-head.c (gimple_simplify): Add a callback that is
10120 used to valueize the stmt operands and use it that way.
10122 2015-04-21 Richard Biener <rguenther@suse.de>
10124 PR tree-optimization/65788
10125 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
10127 2015-04-21 Richard Biener <rguenther@suse.de>
10129 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
10130 vec_construct cost by vec_stmt_cost.
10132 2015-04-21 Richard Biener <rguenther@suse.de>
10134 * cfghooks.h (create_basic_block): Replace with two overloads
10135 for RTL and GIMPLE.
10136 (split_block): Likewise.
10137 * cfghooks.c (split_block): Rename to ...
10138 (split_block_1): ... this.
10139 (split_block): Add two type-safe overloads for RTL and GIMPLE.
10140 (split_block_after_labels): Call split_block_1.
10141 (create_basic_block): Rename to ...
10142 (create_basic_block_1): ... this.
10143 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
10144 (create_empty_bb): Call create_basic_block_1.
10145 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
10146 split_block_after_labels.
10147 * omp-low.c (expand_parallel_call): Likewise.
10148 (expand_omp_target): Likewise.
10149 (simd_clone_adjust): Likewise.
10150 * tree-chkp.c (chkp_get_entry_block): Likewise.
10151 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
10152 create_basic_block overload.
10153 (cgraph_node::expand_thunk): Likewise.
10154 * tree-cfg.c (make_blocks): Likewise.
10155 (handle_abnormal_edges): Likewise.
10156 * tree-inline.c (copy_bb): Likewise.
10158 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10160 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
10162 (*xor_one_cmplsidi3_ze): Likewise.
10164 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
10166 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
10167 use df_remove_problem rather than manually removing problems, leaving
10168 holes in df->problems_in_order[].
10170 2015-04-21 Tom de Vries <tom@codesourcery.com>
10172 PR tree-optimization/65802
10173 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
10175 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10177 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
10179 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
10180 at '.'. Assert that there's enough space for everything.
10182 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
10184 PR tree-optimization/64950
10186 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
10189 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10192 2015-04-20 Shiva Chen <shiva0217@gmail.com>
10194 PR rtl-optimization/64916
10195 * cfgcleanup.c (values_equal_p): New function.
10196 (can_replace_by): Use it.
10198 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
10201 * doc/invoke.texi ([-Wnarrowing]): Update.
10203 2015-04-20 Jeff Law <law@redhat.com>
10205 PR tree-optimization/65658
10206 * tree-ssa-threadupdate.c (redirection_block_p): Remove
10207 redundant test for GIMPLE_ASSIGN in last change.
10209 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
10211 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
10212 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
10213 (legitimize_tls_address): Ditto.
10214 (ix86_expand_move): Ditto.
10215 (ix86_expand_binary_operator): Remove reload_in_progress checks.
10216 (ix86_expand_unary_operator): Ditto.
10217 * config/i386/predicates.md (index_register_operand): Ditto.
10219 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
10221 * reorg.c (try_merge_delay_insns): Improve correctness checking
10222 for targets with multiple delay slots.
10224 2015-04-20 Jeff Law <law@redhat.com>
10226 PR tree-optimization/65658
10227 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
10230 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
10232 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
10233 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
10236 2015-04-20 Jakub Jelinek <jakub@redhat.com>
10239 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
10241 2015-04-20 Richard Biener <rguenther@suse.de>
10243 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
10244 * gimple-fold.c (gimple_build_valueize): New function.
10245 (gimple_build): Always use gimple_build_valueize as valueize hook.
10247 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
10250 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
10251 and overwrite variable parts if <= 1/2 the elements are variable.
10253 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
10255 PR rtl-optimization/65805
10256 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
10257 Don't use difference of offset and previous offset if
10258 update_sp_offset is non-zero.
10259 (eliminate_regs_in_insn): Ditto.
10260 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
10261 lra_eliminate_regs_1 call.
10262 * lra-constraints.c (get_equiv_with_elimination): Ditto.
10264 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
10266 * hash-table.h: Remove version of hash_table that stored value_type *.
10267 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
10268 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
10269 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
10270 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
10271 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
10272 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
10273 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10274 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
10275 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
10276 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
10277 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
10278 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
10279 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
10280 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10281 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
10282 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
10284 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10285 Jakub Jelinek <jakub@redhat.com>
10288 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
10289 subsequent SH_NONE operand does not overwrite an existing *special
10291 (adjust_extract): Handle case where a vec_extract operation is
10292 wrapped in a PARALLEL.
10294 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
10297 * config/i386/i386.c (ix86_binds_local_p): Define only if
10298 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
10300 2015-04-17 Jeff Law <law@redhat.com>
10302 PR tree-optimization/47679
10303 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
10304 * tree-ssa-scopedtables.c: New file.
10305 * tree-ssa-scopedtables.h: New file.
10306 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
10307 (const_and_copies): Change name/type.
10308 (record_const_or_copy): Move into tree-ssa-scopedtables.c
10309 (record_const_or_copy_1): Similarly.
10310 (restore_vars_to_original_value): Similarly.
10311 (pass_dominator::execute): Create and destroy const_and_copies table.
10312 (thread_across_edge): Update passing of const_and_copies.
10313 (record_temporary_equivalence): Use method calls rather than
10314 manipulating const_and_copies directly.
10315 (record_equality, cprop_into_successor_phis): Similarly.
10316 (dom_opt_dom_walker::before_dom_children): Similarly.
10317 (dom_opt_dom_walker::after_dom_children): Similarly.
10318 (eliminate_redundant_computations): Similarly.
10319 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
10320 (record_temporary_equivalence): Likewise.
10321 (invalidate_equivalences): Likewise.
10322 (record_temporary_equivalences_from_phis): Update due to type
10323 change of const_and_copies. Use method calls rather than
10324 manipulating the stack directly.
10325 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
10326 (thread_through_normal_block, thread_across_edge): Likewise.
10327 (thread_across_edge): Likewise.
10328 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10329 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
10331 (identify_jump_threads): Update due to type change of equiv_stack.
10332 (finalize_jump_threads): Delete the equiv_stack when complete.
10334 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
10336 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10337 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
10338 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
10340 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
10343 * config.gcc: Exit with a comment when we do not have a major version
10344 number for the FreeBSD target.
10346 2015-04-17 Jakub Jelinek <jakub@redhat.com>
10349 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
10350 maybe_allows_mem bitfields.
10351 (maybe_allows_none_start, maybe_allows_none_end,
10352 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
10353 maybe_allows_mem_end): New variables.
10354 (compute_maybe_allows): New function.
10355 (add_constraint): Use it to initialize maybe_allows_reg and
10356 maybe_allows_mem fields.
10357 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
10358 is_address constraints such that those that allow neither mem nor
10359 reg come first, then those that only allow reg but not mem, then
10360 those that only allow mem but not reg, then the rest.
10361 (write_allows_reg_mem_function): New function.
10362 (write_tm_preds_h): Call it.
10363 * stmt.c (parse_output_constraint, parse_input_constraint): Use
10364 the generated insn_extra_constraint_allows_reg_mem function
10365 instead of always setting *allows_reg = true; *allows_mem = true;
10366 for unknown extra constraints.
10368 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
10371 * output.h (default_binds_local_p_3): New.
10372 * varasm.c (default_binds_local_p_3): Make it public. Take an
10373 argument to indicate if common symbol may be local. If common
10374 symbol may be local, treat non-external variable as defined
10376 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
10377 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
10378 * config/i386/i386.c (ix86_binds_local_p): New.
10379 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
10380 ix86_binds_local_p.
10382 2015-04-17 Jakub Jelinek <jakub@redhat.com>
10385 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
10386 trying mem_loc_descriptor on XEXP (rtl, 0).
10388 2015-04-17 Martin Liska <mliska@suse.cz>
10390 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10391 Release symbol_compare_collection.
10392 * ipa-reference.c: Add TODO that a vector should be released.
10394 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
10397 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
10398 to new AVR-LibC file layout (bug #44574).
10399 (*avrlibc_devicelib): Same.
10400 * config/avr/avr-mcus.def: Adjust comments.
10401 * config/avr/avr.opt (nodevicelib): Adjust help.
10403 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
10405 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
10407 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
10410 * gimplify.c (gimplify_init_constructor): Always emit a
10411 side-effecting constructor.
10413 2015-04-17 Tom de Vries <tom@codesourcery.com>
10415 PR tree-optimization/64950
10416 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
10417 in cfun->curr_properties.
10418 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
10419 if we generate an IFN_VA_ARG.
10420 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
10421 function if PROP_gimple_lva is not set in src function.
10423 2015-04-17 Tom de Vries <tom@codesourcery.com>
10424 Michael Matz <matz@suse.de>
10426 PR tree-optimization/64950
10427 * gimple-iterator.c (update_modified_stmts): Remove static.
10428 * gimple-iterator.h (update_modified_stmts): Declare.
10429 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
10430 (gimplify_va_arg_internal): New function.
10431 (gimplify_va_arg_expr): Use IFN_VA_ARG.
10432 * gimplify.h (gimplify_va_arg_internal): Declare.
10433 * internal-fn.c (expand_VA_ARG): New unreachable function.
10434 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
10435 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
10436 (expand_ifn_va_arg): New function.
10437 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
10438 (pass_stdarg::execute): Call expand_ifn_va_arg.
10439 (pass_data_lower_vaarg): New pass_data.
10440 (pass_lower_vaarg): New gimple_opt_pass.
10441 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
10442 (make_pass_lower_vaarg): New function.
10443 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
10444 properties_required field.
10445 * passes.def (all_passes): Add pass_lower_vaarg.
10446 * tree-pass.h (PROP_gimple_lva): Add define.
10447 (make_pass_lower_vaarg): Declare.
10449 2015-04-17 Tom de Vries <tom@codesourcery.com>
10451 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
10452 * calls.c (call_expr_flags): Same.
10454 2015-04-17 Tom de Vries <tom@codesourcery.com>
10456 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
10457 (pass_stdarg::execute): ... here.
10459 2015-04-17 Tom de Vries <tom@codesourcery.com>
10460 Michael Matz <matz@suse.de>
10462 * tree-cfg.c (make_blocks_1): Factor out of ...
10463 (make_blocks): ... here.
10464 (make_edges_bb): Factor out of ...
10465 (make_edges): ... here.
10466 (gimple_find_sub_bbs): New function.
10467 * tree-cfg.h (gimple_find_sub_bbs): Declare.
10469 2015-04-17 Tom de Vries <tom@codesourcery.com>
10471 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
10473 2015-04-17 Yury Gribov <y.gribov@samsung.com>
10475 * asan.c (set_sanitized_sections): New function.
10476 (section_sanitized_p): Ditto.
10477 (asan_protect_global): Optionally sanitize user-defined
10479 * asan.h (set_sanitized_sections): Declare new function.
10480 * common.opt (fsanitize-sections): New option.
10481 * doc/invoke.texi (-fsanitize-sections): Document new option.
10482 * opts-global.c (handle_common_deferred_options): Handle new
10485 2015-04-17 Jakub Jelinek <jakub@redhat.com>
10488 * dwarf2out.c (loc_list_from_tree): Return NULL
10489 for DEBUG_EXPR_DECL.
10491 2015-04-17 Christian Bruel <christian.bruel@st.com>
10493 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
10496 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10498 * ira-color.c (setup_left_conflict_sizes_p): Do not process
10499 node itself when computing left conflict subnode size.
10501 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
10503 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
10504 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
10505 *fop_<mode>_1_sse using enabled attribute. Use
10506 register_mixssei387nonimm_operand operand 1 predicate. Change
10507 alternative 3 constraints from "x" to "v".
10509 2015-04-16 Richard Biener <rguenther@suse.de>
10511 PR tree-optimization/65774
10512 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
10513 bit-value tracking on.
10515 2015-04-16 Richard Biener <rguenther@suse.de>
10517 PR tree-optimization/64277
10518 * tree-vrp.c (check_array_ref): Fix anti-range handling,
10519 simplify upper bound handling.
10520 (search_for_addr_array): Simplify.
10521 (check_array_bounds): Handle ADDR_EXPRs here.
10522 (check_all_array_refs): Simplify.
10524 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
10526 * config/i386/i386.c (print_reg): Rewrite function.
10528 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10530 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
10531 Invert the condition.
10533 2015-04-16 Renlin Li <renlin.li@arm.com>
10535 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
10536 simplifications for UNSIGNED_FLOAT.
10538 2015-04-16 Nick Clifton <nickc@redhat.com>
10540 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
10542 (enum rl78_cpu_type): New.
10543 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
10544 (umulhi3_shift_virt): Remove m constraint from operand 1.
10545 (umulqihi3_virt): Likewise.
10546 * config/rl78/rl78.c (rl78_option_override): Add code to process
10547 -mcpu and -mmul options.
10548 (rl78_alloc_physical_registers): Add code to handle divhi and
10549 divsi valloc attributes.
10550 (set_origin): Likewise.
10551 * config/rl78/rl78.h (RL78_MUL_G14): Define.
10552 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
10553 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
10555 (ASM_SPEC): Pass -mcpu on to assembler.
10556 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
10557 (mulqi3_rl78): Likewise.
10558 (mulhi3_g13): Likewise.
10559 (mulhi3): Generate the G13 or G14 versions of the insn directly.
10560 (mulsi3): Likewise.
10561 (mulhi3_g14): Add clobbers of AX and BC.
10562 (mulsi3_g14): Likewise.
10563 (mulsi3_g13): Likewise.
10564 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
10565 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
10566 * config/rl78/rl78.opt (mmul): Initialise value to
10568 (mcpu): New option.
10569 (m13, m14, mrl78): New option aliases.
10570 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
10571 (MULTILIB_DIRNAMES): Add g13 and g14.
10572 * doc/invoke.texi: Document -mcpu and -mmul options.
10574 2015-04-16 Richard Biener <rguenther@suse.de>
10576 * tree-ssa-ccp.c (likely_value): See if we have operands that
10577 are marked as never simulate again and return CONSTANT in this
10579 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
10580 not have any operands that will be simulated again as
10581 not being simulated again.
10583 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
10585 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
10586 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
10587 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
10589 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
10591 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
10592 *float<SWI48:mode><MODEF:mode>2_sse.
10593 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
10595 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
10598 2015-04-15 Tom de Vries <tom@codesourcery.com>
10601 * function.c (push_dummy_function): New function.
10602 (init_dummy_function_start): Use push_dummy_function.
10603 (pop_dummy_function): New function. Factored out of ...
10604 (expand_dummy_function_end): ... here.
10605 * function.h (push_dummy_function, pop_dummy_function): Declare.
10606 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
10607 pop_dummy_function.
10608 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
10610 2015-04-15 Jeff Law <law@redhat.com>
10612 PR tree-optimization/47679
10613 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
10614 need for forward declaration in upcoming changes.
10615 (record_conditions, record_edge_info): Likewise.
10617 PR rtl-optimization/42522
10618 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
10619 SIGN_EXTRACT as a whole object rather than simplifying
10622 2015-04-15 Jakub Jelinek <jakub@redhat.com>
10625 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
10626 and GIMPLE_PREDICT use break instead of return true. For
10627 GIMPLE_EH_DISPATCH, compare dispatch region.
10629 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
10631 * doc/extend.texi (__sync Builtins): Simplify some text. Update
10632 details about the implementation. Make clear preference for
10633 __atomic builtins. Reduce possibility of future change.
10635 2015-04-15 Nick Clifton <nickc@redhat.com>
10637 * config/rx/rx.opt (mallow-string-insns): New option.
10638 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
10639 builtin if string instructions are denied.
10640 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
10641 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
10643 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
10644 * config/rx/rx.md (movstr): Enable pattern only if string
10645 instructions are allowed.
10646 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
10647 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
10648 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
10649 (MULTILIB_DIRNAMES): Add no-strings.
10650 * doc/invoke.texi: Document -mno-allow-string-insns.
10652 2015-04-15 Alan Modra <amodra@gmail.com>
10656 PR middle-end/36043
10657 * calls.c (load_register_parameters): Don't load past end of
10658 mem unless suitably aligned.
10660 2015-04-15 Nick Clifton <nickc@redhat.com>
10662 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
10663 decrement instruction as being frame related.
10664 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
10666 If zero extending a function address enclose the operation in
10668 (rl78_preferred_reload_class): New function.
10669 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10670 * config/rl78/rl78.md: Remove useless constraints in expanders.
10671 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
10672 (mulhi3_rl78): Likewise.
10673 (mulhi3_g13): Likewise.
10674 (mulsi3_rl78): Likewise.
10675 (es_addr): Move to before the multiply patterns.
10677 2015-04-15 Alan Modra <amodra@gmail.com>
10679 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
10680 and sequence_stack. Add seq.
10681 (seq_stack): Delete.
10682 * function.c (prepare_function_start): Don't access x_last_insn.
10683 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
10684 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
10685 * emit_rtl.c (start_sequence, push_topmost_sequence,
10686 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
10687 sequence accessors.
10688 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
10689 remove_insn): Likewise. Simplify.
10690 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
10691 and pop_topmost_sequence.
10692 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
10694 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
10696 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
10699 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
10702 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
10704 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
10705 (LEGACY_INT_REGNO_P): Ditto.
10706 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
10707 (ANY_MASK_REG_P): Remove.
10708 (BND_REG_P): Rename from ANY_BND_REG_P.
10709 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
10710 legacy integer registers. Do not handle MMX_REG_P in a special way.
10711 Merge 64byte and 32byte SSE handling.
10713 2015-04-14 Nick Clifton <nickc@redhat.com>
10715 * expr.c (expand_assignment): Force an address offset computation
10716 into a register before changing its mode.
10717 (expand_expr_real_1): Likewise.
10719 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
10721 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
10722 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
10723 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
10724 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
10725 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
10726 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
10727 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
10728 and __aarch64_vget_lane_any.
10730 2015-04-14 Jakub Jelinek <jakub@redhat.com>
10732 PR rtl-optimization/65761
10733 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
10734 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
10736 2015-04-14 Richard Biener <rguenther@suse.de>
10738 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
10739 (graphite_can_represent_scev): Use POINTER_TYPE_P.
10741 2015-04-14 Richard Biener <rguenther@suse.de>
10743 PR tree-optimization/65758
10744 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
10746 (ccp_lattice_meet): Likewise.
10747 (bit_value_unop): Likewise.
10748 (bit_value_binop): Likewise.
10749 (bit_value_assume_aligned): Likewise.
10751 2015-04-14 Christian Bruel <christian.bruel@st.com>
10753 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
10756 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
10758 PR tree-optimization/63387
10759 * match.pd ((x unord x) | (y unord y) -> (x unord y),
10760 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
10762 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
10764 * config/i386/predicates.md (any_QIreg_operand): Rename from
10765 q_regs_operand. Do not process subregs.
10766 (QIreg_operand): Use QI_REGNO_P predicate.
10767 (ext_QIreg_operand): Ditto.
10768 (ext_register_operand): Ditto.
10769 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
10770 (AND splitters): Ditto.
10771 (AND with -65536 splitter): Add SWI48 mode for operand 0.
10772 (AND with -256 splitter): Use any_QIreg_operand predicate and
10773 SWI248 mode for operand 0.
10774 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
10775 mode for operand 0.
10776 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
10778 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
10780 * doc/plugins.texi: Rewrite first introductory paragraph.
10782 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10784 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
10785 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
10787 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10789 * ipa-profie.c (ipa_profile): Check number of parameters
10790 and possible polymorphic call targets before
10793 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
10795 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
10796 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
10798 2015-04-13 Richard Biener <rguenther@suse.de>
10800 PR tree-optimization/65204
10801 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
10802 takens for bit-CCP.
10804 2015-04-13 Richard Biener <rguenther@suse.de>
10807 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
10808 and cond_not_taken_branch_cost to 4 and 2.
10809 (bdver2_cost): Likewise.
10810 (bdver3_cost): Likewise.
10811 (bdver4_cost): Likewise.
10813 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10815 * hash-table.h (hash_table constructor): Add mem stats.
10816 (alloc_entries): Likewise.
10818 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10820 * ipa-cp.c (ipcp_driver): Relase prev_edge.
10821 * passes.c (execute_one_pass): Only add transform if pass has one.
10823 2015-04-12 Joseph Myers <joseph@codesourcery.com>
10825 * config/i386/i386.c (ix86_option_override_internal): Don't set
10826 -fprefetch-loop-arrays if optimizing for size.
10828 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10829 Gerald Pfeifer <gerald@pfeifer.com>
10831 * doc/contrib.texi (Contributors): Add Martin Jambor and
10834 2015-04-12 Jakub Jelinek <jakub@redhat.com>
10836 * BASE-VER: Set to 6.0.0.
10838 PR tree-optimization/65747
10839 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
10840 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
10842 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
10844 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10845 sentence. Improve grammar.
10847 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
10849 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10851 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
10854 * ipa-inline-transform.c (speculation_removed): Remove static var.
10855 (check_speculations): New function.
10856 (clone_inlined_nodes): Do not check spculations.
10857 (inline_call): Call check_speculations.
10858 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10859 consider non-invariants.
10861 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
10862 Martin Liska <mliska@suse.cz>
10865 * ipa-icf.c (sem_item::compare_cgraph_references): function and
10866 variable can not match.
10867 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10868 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10870 2015-04-11 Jakub Jelinek <jakub@redhat.com>
10872 PR tree-optimization/65735
10873 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10874 Remove visited_phis argument, add visited_bbs, avoid recursing into the
10875 same bb rather than just into the same phi node.
10876 (thread_through_normal_block): Adjust caller.
10878 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10880 * doc/contrib.texi (Contributors): Add Ira Rosen.
10882 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
10884 * gcov.c (find_source): Fix miswording in error message.
10885 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10886 (ix86_expand_sse_comi_round): Fix typo in error message.
10888 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10890 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10892 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
10894 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10896 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10899 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10900 Print bad_spills_num and insn_pseudos_num.
10902 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10905 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10906 when creating +1 values for SImode.
10908 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10911 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10914 2015-04-10 Jakub Jelinek <jakub@redhat.com>
10915 Iain Sandoe <iain@codesourcery.com>
10918 * configure: Regenerate.
10920 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10923 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10925 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
10927 * doc/contrib.texi (Contributors): Add John Marino.
10929 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10931 PR tree-optimization/65709
10932 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10933 TREE_TYPE (TREE_TYPE (t)).
10935 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
10938 * lra-int.h (lra_bad_spill_regno_start): New.
10939 * lra.c (lra_bad_spill_regno_start): New.
10940 (lra): Set up lra_bad_spill_regno_start. Set up
10941 lra_constraint_new_regno_start unconditionally.
10942 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10945 2015-04-09 Marek Polacek <polacek@redhat.com>
10946 Jakub Jelinek <jakub@redhat.com>
10948 PR middle-end/65554
10949 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10950 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10953 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
10955 PR rtl-optimization/65693
10956 * combine.c (is_parallel_of_n_reg_sets): Move outside of
10959 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
10962 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10963 device specs file if "device-specs%s" didn't resolve to a path.
10965 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10968 * config/i386/i386.c (fixup_modeless_constant): New.
10969 (ix86_expand_args_builtin): Fixup modeless constant operand.
10970 (ix86_expand_round_builtin): Ditto.
10971 (ix86_expand_special_args_builtin): Ditto.
10972 (ix86_expand_builtin): Ditto.
10974 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10977 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10978 any pow2 integer in between 2 and 0x80000000U inclusive.
10980 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
10982 PR rtl-optimization/65693
10983 * combine.c (is_parallel_of_n_reg_sets): Change first argument
10984 from an rtx_insn * to an rtx.
10985 (try_combine): Adjust both callers. Use it once more.
10987 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10989 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10990 (chkp_make_static_const_bounds): Search existing
10991 symbol by assembler name. Use make_decl_one_only.
10992 (chkp_get_zero_bounds_var): Remove node search which
10993 is now performed in chkp_make_static_const_bounds.
10994 (chkp_get_none_bounds_var): Likewise.
10996 2015-04-08 Michael Witten <mfwitten@gmail.com>
10998 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
11001 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11003 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
11005 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
11007 * doc/extend.texi (__sync Builtins): Fix grammar.
11009 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11011 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
11013 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11015 * varasm.c (emit_local): Move definition of align.
11017 2015-04-08 Julian Brown <julian@codesourcery.com>
11019 * config/nvptx/mkoffload.c (process): Support variable mapping.
11021 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
11023 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
11025 (alpha_write_one_linkage): Correct typo.
11027 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
11029 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
11031 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
11033 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
11035 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
11037 * tree-chkp.h (chkp_insert_retbnd_call): New.
11038 * tree-chkp.c (chkp_insert_retbnd_call): New.
11039 * ipa-split.c (insert_bndret_call_after): Remove.
11040 (split_function): Use chkp_insert_retbnd_call.
11041 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
11042 bounds for instrumented functions.
11044 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
11047 * calls.c (initialize_argument_information): When producing tail
11048 call also turn SSA_NAMES passed by references to original PARM_DECLs
11050 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
11053 * lra-remat.c (do_remat): Process input and non-input insn
11054 registers separately.
11056 2015-04-07 Jakub Jelinek <jakub@redhat.com>
11059 * valtrack.c (debug_lowpart_subreg): New function.
11060 (dead_debug_insert_temp): Use it.
11062 PR middle-end/65680
11063 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
11064 into signed HOST_WIDE_INT the same as negative bit_offset.
11066 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
11068 * ipa-comdats.c (ipa_comdats): Visit all thunks
11069 to set proper comdat group.
11071 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11074 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
11075 on constants for NEON VSTRUCT modes.
11077 2015-04-07 Jakub Jelinek <jakub@redhat.com>
11078 Iain Sandoe <iain@codesourcery.com>
11081 * configure: Regenerate.
11083 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11086 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
11087 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
11088 that LFD is used to load double constants instead of LFS. Add
11089 defaults for all costs structures. Add comments for missing
11090 initialization fields.
11091 (size32_cost): Likewise.
11092 (size64_cost): Likewise.
11093 (rs64a_cost): Likewise.
11094 (mpccore_cost): Likewise.
11095 (ppc403_cost): Likewise.
11096 (ppc405_cost): Likewise.
11097 (ppc440_cost): Likewise.
11098 (ppc476_cost): Likewise.
11099 (ppc601_cost): Likewise.
11100 (ppc603_cost): Likewise.
11101 (ppc604_cost): Likewise.
11102 (ppc604e_cost): Likewise.
11103 (ppc620_cost): Likewise.
11104 (ppc630_cost): Likewise.
11105 (ppccell_cost): Likewise.
11106 (ppc750_cost): Likewise.
11107 (ppc7450_cost): Likewise.
11108 (ppc8540_cost): Likewise.
11109 (ppce300c2c3_cost): Likewise.
11110 (ppce500mc_cost): Likewise.
11111 (ppce500mc64_cost): Likewise.
11112 (ppce5500_cost): Likewise.
11113 (ppce6500_cost): Likewise.
11114 (titan_cost): Likewise.
11115 (power4_cost): Likewise.
11116 (power6_cost): Likewise.
11117 (power7_cost): Likewise.
11118 (power8_cost): Likewise.
11119 (ppca2_cost): Likewise.
11120 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
11122 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
11123 instead of XXLOR to copy SFmode to clear out dirty bits created
11124 when SFmode denormals are generated.
11125 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
11126 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
11128 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
11130 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
11131 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
11132 * config/aarch64/aarch64-tune.md: Regenerate.
11134 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
11136 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
11137 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
11138 * config/arm/arm-cores.def (exynos-m1): New core.
11139 * config/arm/arm-tune.md: Regenerate.
11140 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
11141 * config/arm/bpabi.h: Likewise.
11143 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
11145 * ipa-cp (set_single_call_flag): Remove too
11146 restrictive assert.
11148 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11150 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
11151 GOMP_offload_unregister from the destructor.
11153 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
11155 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
11156 flags for instrumentation thunk.
11157 (chkp_produce_thunks): Likewise.
11159 2015-04-05 Martin Liska <mliska@suse.cz>
11162 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
11163 has computed data structure.
11164 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11166 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
11168 * invoke.texi (inline-unit-growth): Increase growth to 20%
11169 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
11171 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
11174 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
11176 (lra_rematerialization_iter): New.
11177 * lra.c (lra): Initialize lra_rematerialization_iter.
11178 Stop updating lra_constraint_new_regno_start after switching of
11179 inheritance and rematerialization.
11180 * lra-remat.c (lra_rematerialization_iter): New.
11181 (lra_remat): Add printing pass iteration. Do rematerialization
11182 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
11184 2015-04-04 Richard Biener <rguenther@suse.de>
11186 PR tree-optimization/64909
11187 PR tree-optimization/65660
11188 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
11189 to take a cost vector for scalar iteration cost.
11190 (vect_get_single_scalar_iteration_cost): Likewise.
11191 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
11192 Compute the scalar iteration cost into a cost vector.
11193 (vect_get_known_peeling_cost): Use the scalar cost vector to
11194 account for the cost of the peeled iterations.
11195 (vect_estimate_min_profitable_iters): Likewise.
11196 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11199 2015-04-04 Alan Modra <amodra@gmail.com>
11203 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
11204 0.0 constant unless TARGET_VSX.
11205 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
11208 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
11211 * ipa-inline-transform.c (inline_call): Skip sanity check to work
11214 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
11217 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
11218 speculative indirect edges to avoid ordering issue.
11220 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
11223 * ipa-inline.c (edge_badness): Add combined size to the denominator.
11225 2015-04-03 Jakub Jelinek <jakub@redhat.com>
11227 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
11228 TYPE_ARTIFICIAL on the .omp_data* types.
11230 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11232 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
11233 instrumentation thunks.
11235 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11237 * config/i386/i386.c (ix86_expand_call): Avoid nested
11238 PARALLEL in returned call value.
11240 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11242 * lto-cgraph.c (input_cgraph_1): Always link instrumented
11243 assembler name with original one.
11245 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
11247 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
11249 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
11251 Revert parts of r216820.
11252 * config/i386/i386.md (movqi_internal): Correct type calculation
11253 for alternatives 3 and 5.
11255 2015-04-02 Jakub Jelinek <jakub@redhat.com>
11257 PR preprocessor/61977
11258 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
11259 predefine __vector/__bool/__pixel macros nor context sensitive
11260 macros for CLK_ASM.
11261 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
11263 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
11265 * config/pa/pa.c (pa_output_move_double): Directly handle register
11266 indexed memory operand. Simplify handling of scaled register indexed
11269 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11272 * config/i386/linux-common.h (MPX_SPEC): New.
11273 (CHKP_SPEC): Add MPX_SPEC.
11274 * doc/invoke.texi (-fcheck-pointer-boudns): Document
11275 possible issues with '-z bndplt' support in linker.
11277 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
11279 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
11280 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
11281 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
11282 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
11283 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
11285 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
11287 * config/i386/sync.md (UNSPEC_MOVA): Remove.
11288 (atomic_load<mode>): Change operand 0 predicate to
11289 nonimmediate_operand and fix up the destination when needed.
11291 (atomic_loaddi_fpu): Use UNSPEC_LDA.
11292 (atomic_store<mode>): Change operand 1 predicate to
11293 nonimmendate_operand and move the source to register when needed.
11295 (atomic_store<mode>_1): Use UNSPEC_STA.
11296 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
11297 Fix moves from memory operand. Use UNSPEC_STA.
11299 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11301 * expmed.c (strict_volatile_bitfield_p): Check that the access will
11302 not cross a MODESIZE boundary.
11303 (store_bit_field, extract_bit_field): Added assertions in the
11304 strict volatile bitfields code path.
11306 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
11309 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
11310 Increase args array size by one to avoid buffer overflow.
11312 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
11314 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11316 * ipa-inline.c (edge_badness): Add wrapper penalty.
11317 (sum_callers): Move up.
11318 (inline_small_functions): Set single_caller.
11319 * ipa-inline.h (inline_summary): Add single_caller.
11320 * ipa-split.c (split_function): Set split_part.
11321 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
11322 * cgraph.h (cgraph_node): Add split_part.
11324 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
11327 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11328 Do not split operands 0 and operands 2 to halfmode.
11329 (atomic_compare_and_swap<mode>): Update for
11330 atomic_compare_and_swap<dwi>_doubleword changes.
11332 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
11334 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
11335 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
11336 no caching is done.
11338 2015-03-31 Martin Liska <mliska@suse.cz>
11341 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
11342 has already filled up function summary.
11343 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11345 2015-03-31 Richard Biener <rguenther@suse.de>
11347 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
11350 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
11352 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
11354 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
11355 (s390_asm_output_function_label): Adapt to new signature of
11356 s390_function_num_hotpatch_hw
11357 Optimise the code generating assembler output.
11358 Add comments to assembler file.
11360 2015-03-31 Richard Biener <rguenther@suse.de>
11362 PR middle-end/65626
11363 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
11364 of the noreturn call so it is last and cleanup_control_flow_bb
11365 can do the CFG part.
11367 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
11370 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
11371 same_comdat_group for external symbols.
11372 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
11373 infinite same_comdat_group traversal loop.
11375 2015-03-31 Jakub Jelinek <jakub@redhat.com>
11378 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
11379 automatically to $headers.
11381 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11384 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
11385 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
11387 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
11389 * ipa-prop.c (param_type_may_change_p): Likewise.
11390 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
11391 (remove_unused_scope_block_p): Add in_ctor_dtor_block
11392 argument. Before inlining, preserve
11393 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
11394 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
11396 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
11398 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11401 * ipa-inline.c (edge_badness): Base denominator on callee's
11404 2015-03-27 Martin Jambor <mjambor@suse.cz>
11407 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
11408 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
11409 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
11410 node_calling_single_call.
11411 * ipa-cp.c (count_callers): New function.
11412 (set_single_call_flag): Likewise.
11413 (initialize_node_lattices): Count callers and set single_flag_call if
11415 (incorporate_penalties): New function.
11416 (good_cloning_opportunity_p): Use it, dump new flags.
11417 (propagate_constants_topo): Set node_within_scc flag if appropriate.
11418 * doc/invoke.texi (ipa-cp-recursion-penalty,
11419 ipa-cp-single-call-pentalty): Document.
11421 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11424 * symtab.c (symtab_node::get_partitioning_class): Register vars
11426 * varpool.c (symbol_table::output_variables) Do not assemble unefined
11427 decls for non-symbols.
11429 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
11432 * output.h (default_binds_local_p_2): New.
11433 * varasm.c (default_binds_local_p_2): Renamed to ...
11434 (default_binds_local_p_3): This. Don't return true on protected
11435 data symbol if protected data may be external.
11436 (default_binds_local_p): Use default_binds_local_p_3.
11437 (default_binds_local_p_1): Likewise.
11438 (default_binds_local_p_2): New.
11439 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
11440 default_binds_local_p_2 if TARGET_MACHO is undefined.
11442 2015-03-27 Jakub Jelinek <jakub@redhat.com>
11445 * config/i386/i386.c (legitimize_pic_address): If base
11446 is SYMBOL_REF or LABEL_REF using %rip addressing, force
11447 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
11449 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11452 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
11455 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11458 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
11459 of optimized out indirect call.
11460 (redirect_to_unreachable): Always build symbol table node for
11461 BUILT_IN_UNREACHABLE
11463 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
11466 * ira-costs.c (record_reg_classes): Process all constraint string
11469 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
11471 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
11475 * config/c6x/constraints.md (S3): New constraint.
11476 * config/c6x/c6x.md (real_jump): Use it.
11478 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11480 PR middle-end/65595
11481 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
11482 do redirection if the call is not optimized out.
11484 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
11487 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
11488 (fchkp-check-incomplete-type): Add LTO.
11489 (fchkp-zero-input-bounds-for-main): Likewise.
11490 (fchkp-first-field-has-own-bounds): Likewise.
11491 (fchkp-narrow-bounds): Likewise.
11492 (fchkp-narrow-to-innermost-array): Likewise.
11493 (fchkp-use-static-bounds): Likewise.
11494 (fchkp-use-static-const-bounds): Likewise.
11495 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11497 2015-03-27 Marek Polacek <polacek@redhat.com>
11499 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
11501 2015-03-27 Marek Polacek <polacek@redhat.com>
11504 * ubsan.c (ubsan_create_edge): New function.
11505 (instrument_bool_enum_load): Call it.
11506 (instrument_nonnull_arg): Likewise.
11507 (instrument_nonnull_return): Likewise.
11508 (instrument_object_size): Likewise.
11510 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11512 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
11515 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11518 * lto-streamer.h (class lto_location_cache): New.
11519 (struct data_in): Add location_cache.
11520 (lto_input_location): Update prototype.
11521 (stream_input_location_now): New.
11522 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
11523 pointer to location.
11524 (stream_input_location): Update.
11525 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
11526 (warn_odr): Apply location cache before warning.
11527 (lto_input_location): Update prototype.
11528 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
11529 Use stream_input_location_now.
11530 * lto-streamer-in.c (lto_location_cache::current_cache): New static
11532 (lto_location_cache::cmp_loc): New function.
11533 (lto_location_cache::apply_location_cache): New function.
11534 (lto_location_cache::accept_location_cache): New function.
11535 (lto_location_cache::revert_location_cache): New function.
11536 (lto_location_cache::input_location): New function.
11537 (lto_input_location): Do location caching.
11538 (stream_input_location_now): New function.
11539 (input_eh_region, input_struct_function_base): Use
11540 stream_input_location_now.
11541 (lto_data_in_create): use new.
11542 (lto_data_in_delete): Use delete.
11543 * tree-streamer-in.c (unpack_ts_block_value_fields,
11544 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
11545 lto_input_ts_exp_tree_pointers): Update for cached location api.
11547 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11550 * passes.def: Add pass_nothrow.
11551 * ipa-pure-const.c: (pass_data_nothrow): New.
11552 (pass_nothrow): New.
11553 (pass_nothrow::execute): New.
11554 (make_pass_nothrow): New.
11555 * tree-pass.h (make_pass_nothrow): Declare.
11557 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11559 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
11560 edge to change by speculation resolution or redirection.
11561 (edge_set_predicate): Likewise.
11562 (inline_summary_t::duplicate): Likewise.
11563 (remap_edge_summaries): Likewise.
11565 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11567 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
11569 (can_inline_edge_p): Relax option matching for always inline functions.
11571 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
11574 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
11575 Check operand 4 and operand 0 for equality.
11576 (avx512f_vextract<shuffletype>32x4_1_maskm):
11577 Check operand 6 and operand 0 for equality.
11578 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
11580 (vec_extract_hi_<mode>_maskm): Ditto.
11582 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11584 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
11585 dead calls back to live.
11586 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
11588 (cgraph_node::verify_node): ... here; verify only callee edges,
11590 * cif-code.def (CILK_SPAWN): New code.
11592 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11594 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
11595 (edge_set_predicate): Use it to mark unreachable edges.
11596 (inline_summary_t::duplicate): Remove unnecesary code.
11597 (remap_edge_summaries): Likewise.
11598 (dump_inline_summary): Report contains_cilk_spawn.
11599 (compute_inline_parameters): Compute contains_cilk_spawn.
11600 (inline_read_section, inline_write_summary): Stream
11601 contains_cilk_spawn.
11602 * ipa-inline.c (can_inline_edge_p): Do not touch
11603 DECL_STRUCT_FUNCTION that may not be available;
11604 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
11605 remove check for callee_fun->can_throw_non_call_exceptions and
11606 replace it by optimization attribute check; check for flag_exceptions.
11607 * ipa-inline-transform.c (inline_call): Maintain
11608 DECL_FUNCTION_PERSONALITY
11609 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
11611 2015-03-26 Jakub Jelinek <jakub@redhat.com>
11613 PR tree-optimization/65551
11614 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
11615 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
11617 2015-03-26 Richard Biener <rguenther@suse.de>
11619 PR middle-end/65555
11620 * tree-cfg.c (verify_gimple_call): Do not require a call to
11621 have no LHS if it wasn't recognized as control altering yet.
11623 2015-03-26 Jakub Jelinek <jakub@redhat.com>
11625 PR tree-optimization/64715
11626 * passes.def: Add another instance of pass_object_sizes before ccp1.
11627 * tree-object-size.c (pass_object_sizes::execute): In
11628 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
11629 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
11630 __bos result and the computed constant. Remove redundant
11631 checks, obsoleted by gimple_call_builtin_p test.
11633 * var-tracking.c (variable_tracking_main_1): Don't track
11634 variables for targetm.no_register_allocation targets.
11636 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
11638 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
11639 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
11641 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11644 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
11645 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
11646 0.0 is correctly setup.
11647 (extenddftf2_internal): Likewise.
11649 2015-03-25 Sebastian Pop <s.pop@samsung.com>
11651 PR tree-optimization/65177
11652 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
11654 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
11655 edges not adjacent on the path to the original code.
11657 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
11660 * doc/install.texi (Building a native compiler): Document new
11661 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
11662 configuration assumes that the host supports the linker plugin.
11664 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
11667 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
11668 chain for generated call.
11670 2015-03-25 Richard Biener <rguenther@suse.de>
11672 * passes.c (pass_manager::execute_early_local_passes): Guard
11673 execution of pass_chkp_instrumentation_passes with
11674 flag_check_pointer_bounds.
11675 (pass_chkp_instrumentation_passes::gate): Likewise.
11677 2015-03-25 Martin Liska <mliska@suse.cz>
11679 PR tree-optimization/65538
11680 * symbol-summary.h (function_summary::~function_summary):
11681 Relese memory for allocated summaries.
11682 (function_summary::release): New function.
11684 2015-03-25 Jakub Jelinek <jakub@redhat.com>
11687 * lto-streamer-out.c (DFS::worklist): New struct.
11688 (DFS::worklist_vec): New data member.
11689 (DFS::next_dfs_num): Remove.
11690 (DFS::DFS): Rewritten using worklist instead of recursion,
11691 using most of code from DFS::DFS_write_tree.
11692 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
11693 pass it to DFS_write_tree calls.
11694 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
11695 quick initial checks push it into worklist_vec and return.
11697 2015-03-25 Richard Biener <rguenther@suse.de>
11699 PR middle-end/65519
11700 * genmatch.c (expr::gen_transform): Re-write to avoid
11701 using gimple_build.
11703 2015-03-25 Bin Cheng <bin.cheng@arm.com>
11705 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
11707 2015-03-25 Bin Cheng <bin.cheng@arm.com>
11709 * config/arm/arm.opt (print_tune_info): New option.
11710 * config/arm/arm.c (arm_print_tune_info): New function.
11711 (arm_file_start): Call arm_print_tune_info.
11712 * config/arm/arm-protos.h (struct tune_params): Add comment.
11713 * doc/invoke.texi (@item -mprint-tune-info): New item.
11714 (-mtune): mention it in ARM Option Summary.
11716 2015-03-25 DJ Delorie <dj@redhat.com>
11718 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
11721 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
11722 Martin Liska <mliska@suse.cz>
11724 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
11725 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
11726 (sem_item::add_type): New function.
11727 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
11728 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
11729 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
11730 (sem_function::equals_wpa): Fix typo.
11731 * ipa-icf.h (sem_item::add_type): New function.
11732 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
11735 2015-03-24 Jakub Jelinek <jakub@redhat.com>
11737 PR tree-optimization/65533
11738 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
11739 with swapped operands, call vect_free_slp_tree on
11740 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
11743 2015-03-24 Richard Biener <rguenther@suse.de>
11745 PR middle-end/65517
11746 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
11747 for fixup if necessary.
11749 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
11751 * doc/extend.texi (Function Attributes): Add @cindex entries
11752 for all attributes and regularize their format. Delete text
11753 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
11754 information about "eightbit_data", "tiny_data", and "model"
11755 variable attributes to the Variable Attributes section. Fix
11756 some obvious typos and copy-editing issues.
11757 (Variable Attributes, Type Attributes): Likewise add/fix
11758 @cindex entries for all attributes.
11760 2015-03-23 Jakub Jelinek <jakub@redhat.com>
11763 * tree-chkp.c (chkp_build_returned_bound): Ignore
11764 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
11766 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
11769 * config/sh/predicates.md (simple_mem_operand,
11770 displacement_mem_operand): Add test for reg.
11771 (short_displacement_mem_operand): Test for displacement_mem_operand
11772 before invoking sh_disp_addr_displacement.
11773 * config/sh/constraints.md (Sdd, Sra): Simplify.
11774 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
11775 Remove redundant displacement_mem_operand tests.
11777 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
11780 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
11781 the same -mmcu=MCU more than once.
11783 2015-03-23 Jakub Jelinek <jakub@redhat.com>
11786 * ipa-devirt.c: Remove duplicate demangle.h include.
11789 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
11791 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
11792 REG_POINTER on *destptr after adjusting it for prologue size.
11795 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
11796 ultimate_alias_target ()->order ints instead of
11797 ultimate_alias_target () pointers.
11799 2015-03-23 Richard Biener <rguenther@suse.de>
11801 PR tree-optimization/65518
11802 * tree-vect-stmts.c (vectorizable_load): Reject single-element
11803 interleaving cases we generate absymal code for.
11805 2015-03-23 Richard Biener <rguenther@suse.de>
11807 PR tree-optimization/65494
11808 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
11810 (vect_analyze_slp_instance): But do that here, always and once.
11812 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11814 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
11815 adding T or multiplying by T+1 and subracting T.
11817 2015-03-22 Jeff Law <law@redhat.com>
11819 PR rtl-optimization/64317
11820 * Makefile.in (OBJS): Add gcse-common.c
11821 * gcse.c: Include gcse-common.h
11822 (struct modify_pair_s): Move structure definition to gcse-common.h
11823 (compute_transp): Move function to gcse-common.c.
11824 (canon_list_insert): Similarly.
11825 (record_last_mem_set_info): Break out some code and put it into
11826 gcse-common.c. Call into the new common code.
11827 (compute_local_properties): Pass additional arguments to compute_transp.
11828 * postreload-gcse.c: Include gcse-common.h and df.h
11829 (modify_mem_list_set, blocks_with_calls): New variables.
11830 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
11831 (get_bb_avail_insn): Pass in the expression index too.
11832 (alloc_mem): Allocate memory for the new bitmaps and lists.
11833 (free_mem): Free memory for the new bitmaps and lists.
11834 (insert_expr_in_table): Record a bitmap index for each entry we
11836 (record_last_mem_set_info): Call into common code in gcse-common.c.
11837 (get_bb_avail_insn): If no available insn was found in the requested
11838 BB. If BB has a single predecessor, see if the expression is
11839 transparent in BB and available in that single predecessor.
11840 (compute_expr_transp): New wrapper for compute_transp.
11841 (eliminate_partially_redundant_load): Pass expression's bitmap_index
11842 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
11843 (gcse_after_reload_main): If there are elements in the hash table,
11844 then compute transparency for all the elements in the hash table.
11845 * gcse-common.h: New file.
11846 * gcse-common.c: New file.
11848 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
11850 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11852 (System Headers): Likewise.
11854 (Traditional macros): Likewise.
11855 (Invocation): Likewise.
11856 (Option Index): Likewise.
11857 * doc/cppopts.texi (-M): Likewise.
11858 (-finput-charset): Likewise.
11859 (--help): Likewise.
11860 * doc.invoke.texi (AVR Options): Likewise.
11861 (V850 Options): Likewise.
11863 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
11866 * ipa-devirt.c: Include demangle.h
11867 (odr_type_d): Add field rtti_broken.
11868 (odr_subtypes_equivalent_p): Do not require name to match.
11869 (compare_virtual_tables): Fix typo; if type already has ODR violation,
11870 bypass the tests; be ready for function referneces in vtables that are
11871 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11872 (warn_odr): Give up for nameless types.
11873 (warn_types_mismatch): Report mismatch in mangled names;
11874 report mismatch in anonymous namespaces; look into component types to
11875 give useful error; report when mismatch is dragged in from other ODR
11877 (odr_types_equivalent_p): Match types for being polymorphic; avoid
11878 duplicated diagnostics.
11879 (add_type_duplicate): Reorder checks so more informative ones come
11880 first; fix typo; do not output "the extra base is defined here" when
11882 (BINFO_N_BASE_BINFOS): Relax sanity check.
11884 2015-03-22 Martin Liska <mliska@suse.cz>
11885 Jakub Jelinek <jakub@redhat.com>
11887 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11888 masks that can potentially include a builtin.
11889 (ix86_add_new_builtins): Introduce fast filter for isa values
11890 that cannot trigger builtin inclusion.
11892 2015-03-22 Martin Liska <mliska@suse.cz>
11894 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11895 (sem_item::update_hash_by_local_refs): Likewise.
11896 (sem_variable::get_hash): Empty line is fixed.
11897 (sem_item_optimizer::execute): Include adding of hash references.
11898 (sem_item_optimizer::update_hash_by_addr_refs): New function.
11899 (sem_item_optimizer::build_hash_based_classes): Use local hash.
11900 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11901 (sem_item::update_hash_by_local_refs): Likewise.
11903 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11906 * ipa-comdats.c (enqueue_references): Walk through thunks.
11907 (ipa_comdats): Likewise.
11908 (set_comdat_group_1): New function.
11910 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11913 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11916 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
11917 Gerald Pfeifer <gerald@pfeifer.com>
11919 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11921 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11922 Sandra Loosemore <sandra@codesourcery.com>
11924 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11925 function parameter declaration.
11926 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11927 Update arguments to nios2_adjust_call_address().
11928 (sibcall_internal): Rename from *sibcall.
11929 (sibcall_value_internal): Rename from *sibcall_value.
11930 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11931 (nios2_large_got_address): Add target temp reg parameter.
11932 (nios2_got_address): Adjust call to nios2_large_got_address, add
11933 force_reg around it.
11934 (nios2_load_pic_address): Add target temp reg parameter, replace call
11935 to nios2_got_address with corresponding code.
11936 (nios2_legitimize_constant_address): Update call to
11937 nios2_load_pic_address.
11938 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11939 to use temp reg for PIC loading purposes.
11940 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11941 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11942 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11944 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11946 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11947 usage of "the @option{...}".
11948 (-Wopenmp-simd): Likewise.
11949 (-fsanitize-recover): Likewise.
11950 (-fsanitize-undefined-trap-on-error): Likewise.
11952 (tracer-dynamic-coverage-feedback): Likewise.
11953 (reorder-block-duplicate-feedback): Likewise.
11954 (loop-unroll-jam-size): Likewise.
11957 (-mabs=legacy): Likewise.
11958 (-mupper-regs-df): Likewise.
11959 (-mupper-regs-sf): Likewise.
11960 (-mpointers-to-nested-functions): Likewise.
11962 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11964 * doc/extend.texi (Cilk Plus Builtins): Add markup.
11966 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11968 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11969 additional index entries and cross-references.
11970 (-fchkp-check-incomplete-type): Likewise.
11971 (-fchkp-first-field-has-own-bounds): Likewise.
11972 (-fchkp-narrow-to-innermost-array): Likewise.
11973 (-fchkp-use-fast-string-functions): Likewise.
11974 (-fchkp-use-nochk-string-functions): Likewise.
11975 (-fchkp-use-static-const-bounds): Likewise.
11976 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11977 (-fchkp-instrument-marked-only): Likewise.
11978 (-fchkp-use-wrappers): Likewise.
11979 (-static-libmpx): Likewise.
11980 (-static-libmpxwrappers): Likewise.
11981 * doc/extend.texi (bnd_legacy): Likewise.
11982 (bnd_instrument): Likewise.
11983 (bnd_variable_size): Likewise.
11984 (Pointer Bounds Checker builtins): Likewise.
11986 2015-03-21 Tom de Vries <tom@codesourcery.com>
11988 PR tree-optimization/65458
11989 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11990 * cgraph.h (cgraph_node): Add parallelized_function field.
11991 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11992 (input_overwrite_node): Read parallelized_function field.
11993 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11994 parallelized_function on cgraph_node for child_fn.
11995 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11996 Remove include of gt-tree-parloops.h.
11997 (parallelized_functions): Remove static variable.
11998 (parallelized_function_p): Rewrite using parallelized_function field of
12000 (create_loop_fn): Remove adding to parallelized_functions.
12001 * Makefile.in (GTFILES): Remove tree-parloops.c
12003 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
12005 PR rtl-optimization/64366
12006 * lra.c (lra_update_insn_regno_info): Consider regs in
12007 CALL_INSN_FUNCTION_USAGE memory.
12009 2015-03-20 Richard Biener <rguenther@suse.de>
12011 PR middle-end/64715
12012 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
12013 for type comparison and gcc_checking_assert.
12014 (chrec_fold_plus_poly_poly): Likewise.
12015 (chrec_fold_multiply_poly_poly): Likewise.
12016 (chrec_convert_1): Likewise.
12017 * gimplify.c (gimplify_expr): Remove premature folding of
12018 &X + CST to &MEM[&X, CST].
12020 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
12022 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
12024 (ipa_inline): Recompute inline_failed codes.
12025 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
12026 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
12029 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
12031 PR rtl-optimization/60851
12032 * recog.c (constrain_operands): Accept a pseudo register before reload
12033 for LRA enabled targets.
12035 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
12038 * config/rs6000/predicates.md (easy_fp_constant): Remove special
12039 -ffast-math handling that kept non-0 constants live in the RTL
12040 until reload. Remove logic testing the number of instructions it
12041 took to create a constant in a GPR that was never used, due to a
12042 test for soft-float earlier.
12043 (memory_fp_constant): Delete, no longer used.
12045 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
12046 alternatives for loading non-0 constants into GPRs for hard
12047 floating point that is no longer needed due to changes in
12048 easy_fp_constant. Add support for loading 0.0 into GPRs.
12049 (mov<mode>_hardfloat32): Likewise.
12050 (mov<mode>_hardfloat64): Likewise.
12051 (mov<mode>_64bit_dm): Likewise.
12052 (movtd_64bit_nodm): Likewise.
12053 (pre-reload move FP constant define_split): Delete define_split,
12054 since it is no longer used.
12055 (extenddftf2_internal): Remove GHF constraints that are not valid
12058 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
12060 PR rtl-optimization/63491
12061 * lra-constraints.c (check_and_process_move): Use src instead of
12062 sreg. Remove some dead code.
12064 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
12067 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
12068 (sem_variable::merge): Likewise.
12070 2015-03-19 Martin Liska <mliska@suse.cz>
12073 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
12074 all fields of cgraph_thunk_info.
12076 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
12078 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
12079 clone instrumented thunks.
12081 2015-03-19 Richard Biener <rguenther@suse.de>
12084 2015-03-10 Richard Biener <rguenther@suse.de>
12086 PR middle-end/63155
12087 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12088 * tree-ssa-coalesce.c: Include timevar.h.
12089 (attempt_coalesce): Handle graph being NULL.
12090 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12091 Split out abnormal coalescing to ...
12092 (perform_abnormal_coalescing): ... this function.
12093 (coalesce_ssa_name): Perform abnormal coalescing without computing
12095 (verify_ssa_coalescing_worker): New function.
12096 (verify_ssa_coalescing): Likewise.
12098 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12099 Jakub Jelinek <jakub@redhat.com>
12102 * tsan.c (instrument_gimple): Clear tail call flag on
12105 2015-03-19 Jakub Jelinek <jakub@redhat.com>
12108 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
12109 call in the return bb.
12110 (find_split_points): Add RETURN_BB argument, don't call
12112 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
12113 if true append TSAN_FUNC_EXIT internal call after the call to
12114 the split off function.
12115 (execute_split_functions): Call find_return_bb here.
12116 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
12117 Adjust find_split_points and split_function calls.
12119 2015-03-18 DJ Delorie <dj@redhat.com>
12121 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
12122 (iorqi3_virt): Likewise.
12124 2015-03-18 Tom de Vries <tom@codesourcery.com>
12126 * tree-parloops.c (parallelize_loops): Make static.
12127 * tree-parloops.h (parallelize_loops): Remove extern declaration.
12129 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
12131 PR middle-end/64491
12133 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
12135 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
12136 condition would be removed due to undefined behaviour.
12138 2015-03-18 Martin Liska <mliska@suse.cz>
12141 * cgraph.c (cgraph_node::get_create): Remove unnecessary
12142 xstrdup_for_dump wrapper.
12143 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
12145 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
12146 with xstrdup_for_dump.
12147 (sem_variable::equals): Likewise.
12148 (sem_item_optimizer::read_section): Use symtab_node::name instead of
12150 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
12151 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
12152 symtab_node::asm_name with xstrdup_for_dump.
12153 (congruence_class::dump): Use symtab_node::name instead of
12155 * ipa-icf.h (symtab_node::name): Remove.
12156 (symtab_node::asm_name): Likewise.
12158 2015-03-18 Jakub Jelinek <jakub@redhat.com>
12160 PR tree-optimization/65450
12161 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
12163 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
12164 it instead of duplicate_ssa_name_ptr_info.
12167 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
12169 2015-03-18 Richard Biener <rguenther@suse.de>
12171 * tree-data-ref.h (struct access_matrix): Remove.
12172 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12173 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12174 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
12175 (am_vector_index_for_loop): Likewise.
12176 (struct data_reference): Remove access_matrix member.
12177 (DR_ACCESS_MATRIX): Remove.
12178 (lambda_vector_new): Add comment.
12179 (lambda_matrix_new): Use XOBNEWVEC.
12181 2015-03-18 Richard Biener <rguenther@suse.de>
12183 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
12184 (pass_ch::execute): Cleanup the CFG only if we did sth.
12185 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
12187 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12189 * expmed.c (synth_mult): Use std::swap instead of manually
12190 swapping algorithms.
12192 2015-03-18 Jakub Jelinek <jakub@redhat.com>
12195 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
12197 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
12200 * config/avr/avr.opt (-nodevicelib): New option.
12201 * doc/invoke.texi (AVR Options): Document it.
12202 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
12203 libgcc.a, libc.a, libm.a.
12204 * config/avr/specs.h: Same.
12205 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
12206 which don't (directly) depend on the device. Print more help.
12207 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
12208 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
12209 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
12211 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
12212 for specs file name.
12213 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
12214 * config/avr/avr-mcus.def: Adjust initializers and comments.
12216 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
12218 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
12219 DECL_ONE_ONLY to check if decl is one only.
12220 * ipa-split.c (consider_split): Limit splitt of one only functions.
12222 2015-03-16 Jakub Jelinek <jakub@redhat.com>
12224 PR tree-optimization/65427
12225 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
12227 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
12229 2015-03-16 Marek Polacek <polacek@redhat.com>
12231 * cgraph.h (add_new_static_var): Remove declaration.
12232 * varpool.c (add_new_static_var): Remove function.
12234 2015-03-16 Jakub Jelinek <jakub@redhat.com>
12236 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
12237 instead of vec<tree> * with vec_alloc and release for args.
12240 PR middle-end/65431
12241 * omp-low.c (delete_omp_context): Only splay_tree_delete
12242 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
12243 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
12245 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
12248 * cfgexpand.c (align_base): New function.
12249 (alloc_stack_frame_space): Call it.
12250 (expand_stack_vars): Align prev_frame to be sure
12251 data->asan_vec elements aligned properly.
12253 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
12255 PR middle-end/65409
12256 * expr.c (store_field): Do not do a direct block copy if the source is
12257 a PARALLEL with BLKmode.
12259 2015-03-16 Tom de Vries <tom@codesourcery.com>
12261 PR middle-end/65414
12263 2015-03-12 Tom de Vries <tom@codesourcery.com>
12265 PR rtl-optimization/64895
12266 * lra-lives.c (check_pseudos_live_through_calls): Use
12267 actual_call_used_reg_set instead of call_used_reg_set, if available.
12269 2015-03-16 Alan Modra <amodra@gmail.com>
12272 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
12273 Modify Z->r bswapdi splitter to use dest in place of scratch.
12274 In r->Z and Z->r bswapdi splitter rename word_high, word_low
12275 to word1, word2 and rearrange logic to suit.
12276 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
12277 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
12278 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
12279 Add one '?' on r->r. Modify Z->r splitter to avoid need for
12282 2015-03-14 Jakub Jelinek <jakub@redhat.com>
12284 PR tree-optimization/65369
12285 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
12286 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
12287 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
12289 PR tree-optimization/65418
12290 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
12291 are casts in the first PLUS_EXPR operand, ensure tbias and
12292 *totallowp are in the inner type.
12294 PR rtl-optimization/65401
12295 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
12296 argument. If true, adjust_address_nv of x with big-endian
12297 correction for the mode widening to GET_MODE (y).
12298 (make_field_assignment): Don't do MEM mode widening here.
12299 Use MEM_P instead of GET_CODE == MEM.
12301 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
12303 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
12304 the external decls.
12306 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12309 * config/arm/arm.c (arm_gen_constant, AND case): Use
12310 ARM_SIGN_EXTEND when constructing AND mask.
12312 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12314 * graph.c (print_graph_cfg): Make function names visible and append
12315 parenthesis to it. Also make groups of basic blocks belonging to the
12316 same function visible.
12318 2015-03-12 Richard Biener <rguenther@suse.de>
12320 PR middle-end/44563
12321 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
12322 to avoid quadratic behavior with inline expansion splitting blocks.
12323 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
12324 with the successor if the predecessor will be merged with it.
12325 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
12326 entry block with its successor.
12328 2015-03-13 Richard Biener <rguenther@suse.de>
12330 PR middle-end/44563
12331 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
12332 (cleanup_tree_cfg_1): Do not call it.
12333 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
12334 (fixup_noreturn_call): Mark the stmt as control altering.
12335 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
12337 (pass_data_fixup_cfg): Produce a dump file.
12338 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
12339 (need_noreturn_fixup): New global.
12340 (pass_dominator::execute): Fixup queued noreturn calls.
12341 (optimize_stmt): Queue calls that became noreturn for fixup.
12342 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
12343 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
12344 (el_to_fixup): New global.
12345 (eliminate_dom_walker::before_dom_childre): Queue calls that
12346 became noreturn for fixup.
12347 (eliminate): Fixup queued noreturn calls.
12348 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
12349 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
12350 (substitute_and_fold_dom_walker::before_dom_children): Queue
12351 alls that became noreturn for fixup.
12352 (substitute_and_fold): Fixup queued noreturn calls.
12354 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
12356 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
12357 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
12358 are building; for methods check ODR type of class they belong to if
12359 they may lead to a polymorphic call.
12360 (sem_function::compare_polymorphic_p): Be bit smarter about testing
12361 when function may lead to a polymorphic call.
12362 (sem_function::compare_type_list): Remove.
12363 (sem_variable::equals): Update use of compatible_types_p.
12364 (sem_variable::parse_tree_refs): Remove.
12365 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
12367 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
12369 (func_checker::compatible_polymorphic_types_p): Break out from ...
12370 (unc_checker::compatible_types_p): ... here.
12371 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
12373 (unc_checker::compatible_types_p): Update.
12374 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
12377 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12379 PR rtl-optimization/65235
12380 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
12381 When first element of vec_concat is const_int, calculate its size
12382 using second element.
12384 2015-03-12 Richard Biener <rguenther@suse.de>
12386 PR middle-end/65270
12387 * fold-const.c (operand_equal_p): Fix ordering of resetting
12388 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
12390 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
12392 * config/s390/s390.c (s390_reorg): Move code to output nops after label
12394 (s390_asm_output_function_label): Likewise.
12395 * config/s390/s390.c (s390_asm_output_function_label):
12396 Fix function label alignment with -mhtopatch.
12397 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
12398 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
12399 ("nop_2_byte"): New define_insn.
12400 ("nop_4_byte"): Likewise.
12401 ("nop_6_byte"): Likewise.
12402 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
12403 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
12405 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
12408 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
12411 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
12414 * toplev.c (process_options): Restrict Pointer Bounds Checker
12415 usage with Address Sanitizer.
12417 2015-03-12 Richard Biener <rguenther@suse.de>
12419 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
12421 * omp-low.c (expand_omp_taskreg): Split block before removing
12423 (expand_omp_target): Likewise.
12424 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
12425 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
12426 stmt to split_block.
12428 2015-03-12 Tom de Vries <tom@codesourcery.com>
12430 PR rtl-optimization/64895
12431 * lra-lives.c (check_pseudos_live_through_calls): Use
12432 actual_call_used_reg_set instead of call_used_reg_set, if available.
12434 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
12436 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
12437 (cgraph_node::remove): Likewise.
12438 (cgraph_node::get_untransformed_body): Likewise.
12439 * varpool.c (varpool_node::remove): Likewise.
12440 (varpool_node::get_constructor): Add sanity check.
12442 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
12444 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
12446 (-fabi-compat-version): Likewise.
12447 (-ffriend-injection): Likewise.
12448 (-Wdeclaration-after-statement): Likewise.
12449 (-fomit-frame-pointer): Likewise.
12450 (-ftree-coalesce-inlined-vars): Likewise.
12451 (-fvisibility=): Likewise.
12452 * doc/extend.texi (Typeof): Likewise.
12453 (Zero Length): Likewise.
12454 (Escaped Newlines): Likewise.
12455 (Compound Literals): Likewise.
12456 (Function Attributes): Likewise.
12457 (Label Attributes): Likewise.
12458 (Type Attributes): Likewise.
12459 (Function Names): Likewise.
12460 (Other Builtins): Likewise.
12461 (Function Specific Option Pragmas): Likewise.
12462 (C++ Interface): Likewise.
12464 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
12466 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
12468 2015-03-11 Marek Polacek <polacek@redhat.com>
12470 PR tree-optimization/65388
12471 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
12473 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
12476 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
12477 * configure: Regenerate.
12478 * config.in: Regenerate.
12479 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
12480 [-mn-flash]: Document it.
12481 [__AVR_ARCH__]: Document avrtiny.
12483 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
12484 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
12485 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
12487 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12489 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
12491 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12494 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
12495 allow reloads of PLUS in floating point/VSX registers.
12497 2015-03-11 Junmo Park <junmoz.park@samsung.com>
12499 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
12500 crypto_sha256_fast.
12501 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
12503 2015-03-11 Richard Biener <rguenther@suse.de>
12505 PR tree-optimization/65310
12506 * tree-sra.c (build_ref_for_offset): Also preserve larger
12509 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
12511 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
12513 2015-03-10 Jakub Jelinek <jakub@redhat.com>
12516 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
12518 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
12520 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
12522 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
12523 (sem_function::equals_wpa): ... here.
12525 2015-03-10 Marek Polacek <polacek@redhat.com>
12526 Jakub Jelinek <jakub@redhat.com>
12529 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
12530 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
12533 2015-03-10 Jakub Jelinek <jakub@redhat.com>
12536 * config/rs6000/t-linux: For powerpc64* target set
12537 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
12539 2015-03-10 Richard Biener <rguenther@suse.de>
12541 PR middle-end/44563
12542 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
12543 for redirect_all_calls.
12545 2015-03-10 Marek Polacek <polacek@redhat.com>
12547 * gdbinit.in (pcfun): Define and document.
12549 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
12551 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
12552 of libgomp-plugin.h.
12553 (find_target_compiler): Support a case when the path to gcc is
12554 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
12555 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
12556 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
12558 (main): Use GCC_INSTALL_NAME as target_driver_name.
12559 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
12561 (mkoffload.o): Remove obsolete include path and defines.
12562 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
12564 2015-03-10 Richard Biener <rguenther@suse.de>
12566 PR middle-end/63155
12567 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12568 * tree-ssa-coalesce.c: Include timevar.h.
12569 (attempt_coalesce): Handle graph being NULL.
12570 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12571 Split out abnormal coalescing to ...
12572 (perform_abnormal_coalescing): ... this function.
12573 (coalesce_ssa_name): Perform abnormal coalescing without computing
12575 (verify_ssa_coalescing_worker): New function.
12576 (verify_ssa_coalescing): Likewise.
12578 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
12581 * config.gcc (extra_options) [avr]: Remove.
12582 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
12583 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
12584 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
12586 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
12587 (-mmcu=): Add Var and MissingArgError properties.
12589 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
12590 * config/avr/t-multilib: Regenerate.
12591 * config/avr/specs.h: New file.
12592 * config/avr/driver-avr.c: New file.
12593 * config/avr/genopt.sh: Remove file.
12594 * config/avr/avr-tables.opt: Remove file.
12595 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
12596 * config/avr/avr-c.c: Same.
12597 * avr-arch.h: Same.
12598 (avr_current_device): Remove proto.
12599 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
12600 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
12601 (EXTRA_SPEC_FUNCTIONS): Define.
12602 (avr_devicespecs_file): New specs function proto.
12603 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
12604 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
12605 (avr_current_device): Remove definition and usage.
12606 (avr_set_core_architecture): New static function.
12607 (avr_option_override): Use it.
12608 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
12609 (mcu_name): New static array.
12610 (comparator, avr_archs_str, avr_mcus_str): New static functions.
12611 (avr_inform_devices, avr_inform_core_architectures): New functions.
12612 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
12613 (avrlibc.h) [WITH_AVRLIBC]: Include.
12614 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
12615 (print_mcu): Rewrite from scratch.
12616 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
12617 Forward to avr-specific specs defined in device-specs file.
12618 * config/avr/t-avr (driver-avr.o): New rule.
12619 (avr-devices.o): Depend on avr-arch.h.
12620 (avr-mcus): No more depend on avr-tables.opt.
12621 (avr-tables.opt): Remove rule.
12622 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
12624 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
12626 * c-family/c.opt (fchkp-use-wrappers): New.
12627 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
12628 (chkp_wrap_function): New.
12629 (chkp_build_instrumented_fndecl): Support wrapped
12631 * doc/invoke.texi (-fcheck-pointer-bounds): New.
12632 (-fchkp-check-incomplete-type): New.
12633 (-fchkp-first-field-has-own-bounds): New.
12634 (-fchkp-narrow-bounds): New.
12635 (-fchkp-narrow-to-innermost-array): New.
12636 (-fchkp-optimize): New.
12637 (-fchkp-use-fast-string-functions): New.
12638 (-fchkp-use-nochk-string-functions): New.
12639 (-fchkp-use-static-bounds): New.
12640 (-fchkp-use-static-const-bounds): New.
12641 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
12642 (-fchkp-check-read): New.
12643 (-fchkp-check-write): New.
12644 (-fchkp-store-bounds): New.
12645 (-fchkp-instrument-calls): New.
12646 (-fchkp-instrument-marked-only): New.
12647 (-fchkp-use-wrappers): New.
12648 (-static-libmpx): New.
12649 (-static-libmpxwrappers): New.
12651 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
12653 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
12654 (CHKP_SPEC): Add wrappers library.
12655 * c-family/c.opt (static-libmpxwrappers): New.
12657 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
12659 * config/i386/linux-common.h (LIBMPX_LIBS): New.
12660 (LIBMPX_SPEC): New.
12662 * gcc.c (CHKP_SPEC): New.
12663 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
12664 * c-family/c.opt (static-libmpx): New.
12666 2015-03-10 Richard Biener <rguenther@suse.de>
12668 PR middle-end/44563
12669 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
12671 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
12672 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
12673 (cgraph_add_edge_to_call_site_hash): Likewise.
12674 (cgraph_node::get_edge): Likewise.
12675 (cgraph_edge::set_call_stmt): Likewise.
12676 (cgraph_edge::remove_caller): Likewise.
12678 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
12680 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
12681 (callee_saved_gpr_regs_size): ... this.
12682 (callee_saved_regs_first_regno): Rename to ...
12683 (callee_saved_first_gpr_regno): ... this.
12684 (callee_saved_regs_last_regno) Rename to ...
12685 (callee_saved_last_gpr_regno): ... this.
12686 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
12688 (nds32_initial_elimination_offset): Likewise.
12689 (nds32_expand_prologue): Likewise.
12690 (nds32_expand_epilogue): Likewise.
12691 (nds32_expand_prologue_v3push): Likewise.
12692 (nds32_expand_epilogue_v3pop): Likewise.
12693 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
12694 Adjust renamed variables.
12695 (nds32_output_stack_pop): Likewise.
12697 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
12699 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
12702 2015-03-10 Jakub Jelinek <jakub@redhat.com>
12704 PR rtl-optimization/65321
12705 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
12707 * var-tracking.c (use_narrower_mode): Likewise.
12709 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
12711 PR tree-optimization/65355
12712 * varasm.c (notice_global_symbol): Do not produce RTL.
12713 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
12715 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
12716 check for section anchors.
12718 2015-03-10 Alan Modra <amodra@gmail.com>
12721 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
12722 to be single-arch by default. Set cpu_is_64bit for powerpc64
12723 given --with-cpu=native.
12724 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
12725 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
12727 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
12728 rs6000_isa_flags rather than TARGET_64BIT.
12730 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
12731 Kaz Kojima <kkojima@gcc.gnu.org>
12733 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
12735 2015-03-09 Jakub Jelinek <jakub@redhat.com>
12738 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
12739 on a TREE_BINFO, instead use BINFO_TYPE.
12741 2015-03-09 Richard Biener <rguenther@suse.de>
12743 PR middle-end/65270
12744 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
12745 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
12746 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
12747 of that. When comparing dereferences compare alignment.
12748 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
12750 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
12752 * ipa-inline-analysis.c (check_callers): Check
12753 node->can_remove_if_no_direct_calls_and_refs_p.
12754 (growth_likely_positive): Reorganize to call
12755 can_remove_if_no_direct_calls_p later.
12756 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
12757 will_be_removed_from_program_if_no_direct_calls_p): Add
12758 will_inline parameter.
12759 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
12760 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12761 Handle inliner case correctly.
12763 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12765 PR tree-optimization/63743
12766 * cfgexpand.c (reorder_operands): Also reorder if only second operand
12767 had its definition forwarded by TER.
12769 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
12772 * ipa-utils.h (types_odr_comparable): Add strict argument.
12773 * ipa-devirt.c: Fix whitespace;
12774 (odr_hasher): Remove.
12775 (odr_name_hasher, odr_vtable_hasher): New hashers.
12776 (can_be_name_hashed_p): New predicate.
12777 (hash_type_name): remove.
12778 (hash_odr_name): New.
12779 (odr_name_hasher::hash): new.
12780 (can_be_vtable_hashed_p): New.
12781 (hash_odr_vtable): New.
12782 (odr_vtable_hasher::hash): New.
12783 (types_same_for_odr): Add strict parameter.
12784 (types_odr_comparable): Likewise.
12785 (odr_name_hasher::equal): New.
12786 (odr_vtable_hasher::equal): New.
12787 (odr_name_hasher::remove): New.
12788 (odr_hash_type): Change to hash_table<odr_name_hasher>.
12789 (odr_vtable_hash_type): New.
12790 (odr_vtable_hash): New.
12791 (odr_subtypes_equivalent_p): Do strict comparsion.
12792 (add_type_duplicate): Merge type names; cleanup; avoid type
12794 (register_odr_type): Initialize vtable hash.
12795 (build_type_inheritance_graph): Likewise
12796 (get_odr_type): Reorg to use two hashes.
12797 (dump_possible_polymorphic_call_targets): Move sanity check after debug
12799 (ipa_devirt): Dump type_inheritance_graph.
12800 (types_same_for_odr): Add strict mode.
12802 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12805 * cgraph.h (symtab_node): Add definition_alignment,
12806 can_increase_alignment_p and increase_alignment.
12807 * symtab.c (symtab_node::can_increase_alignment_p,
12808 increase_alignment_1, symtab_node::increase_alignment,
12809 symtab_node::definition_alignment): New.
12810 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
12811 can_increase_alignment_p.
12812 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
12813 * tree-vect-stmts.c (ensure_base_align): Likewise.
12814 * varasm.c (function_section_1): Use definition_alignment.
12815 (assemble_start_function): Likewise.
12816 (emit_local): likewise.
12817 (build_constant_desc): Likewsie.
12818 (output_constant_def_contents): Likewise.
12819 (place_block_symbol): Likewise.
12820 (output_object_block): Likewise.
12822 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12825 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
12826 when outputting debug.
12828 2015-03-07 Marek Polacek <polacek@redhat.com>
12829 Martin Uecker <uecker@eecs.berkeley.edu>
12832 * doc/invoke.texi: Update description of -fsanitize=bounds.
12834 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
12836 * tree-ssa-phiopt.c (neg_replacement): Remove.
12837 (tree_ssa_phiopt_worker): Remove negate optimization.
12839 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12842 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12844 2015-03-06 Richard Biener <rguenther@suse.de>
12846 PR middle-end/64928
12847 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12848 and liveout_obstack members.
12849 (calculate_live_on_exit): Remove.
12850 (calculate_live_ranges): Change declaration.
12851 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12852 (new_tree_live_info): Adjust.
12853 (calculate_live_ranges): Delete livein when not wanted.
12854 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12855 Deal with partly deleted live info.
12856 (loe_visit_block): Remove temporary bitmap by using
12857 bitmap_ior_and_compl_into.
12858 (live_worklist): Adjust accordingly.
12859 (calculate_live_on_exit): Make static.
12860 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12861 we do not need livein.
12863 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
12865 * real.c (real_from_string): Fix typo in assertion.
12867 2015-03-06 Alex Velenko <alex.velenko@arm.com>
12869 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12872 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12874 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12876 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
12879 * lra-assigns.c (find_hard_regno_for): Rename to
12880 find_hard_regno_for_1. Add a new parameter.
12881 (find_hard_regno_for): New function using find_hard_regno_for_1.
12883 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12885 PR rtl-optimization/65067
12886 * expmed.c (store_bit_field, extract_bit_field): Reworked the
12887 strict volatile bitfield handling.
12889 2015-03-05 Martin Liska <mliska@suse.cz>
12892 * ipa-icf.c (sem_variable::equals): Compare variables types.
12894 2015-03-05 Richard Henderson <rth@redhat.com>
12897 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12898 correctly check weak symbol binding.
12900 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
12902 PR middle-end/65315
12903 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12906 2015-03-05 Martin Liska <mliska@suse.cz>
12908 * ipa-inline.c (inline_small_functions): Set default value to
12909 prevent warning during bootstrap.
12910 * tree.h: Add pragma guard that ignores false positives during
12913 2015-03-05 Richard Biener <rguenther@suse.de>
12915 PR tree-optimization/65310
12916 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12917 Properly preserve alignment of the base of the access.
12919 2015-03-05 Richard Biener <rguenther@suse.de>
12922 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12923 Compare dependence info.
12925 2015-03-05 Richard Biener <rguenther@suse.de>
12927 PR middle-end/65233
12928 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12930 (walk_ssa_copies): Revert last chage. Instead do not walk
12931 SSA names registered for SSA update.
12933 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12936 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12937 vtable references for their containing type.
12938 (sem_function::equals_wpa): Compare TYPE_RESTRICT
12939 and type attributes.
12941 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
12943 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12944 before negating it.
12945 * stor-layout.c (finalize_record_size): Revert latest change.
12947 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
12949 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12951 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12953 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12954 for correct comdat handling.
12955 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12957 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12958 (used_from_object_file_p_worker): Remove.
12959 (cgraph_node::only_called_directly_or_alised): Add
12960 used_from_object_file_p.
12961 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12962 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12963 can_remove_if_no_direct_calls_and_refs_p.
12965 2015-03-04 Nick Clifton <nickc@redhat.com>
12967 * config/rl78/rl78.h (enum reg_class): Remove real registers from
12968 General register class.
12969 * config/rl78/rl78-real.md: Replace general register constraints
12970 with real+virtual register constraints.
12972 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12974 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12975 from checking for -mhtm option.
12977 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12979 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12980 (struct ipa_sra_check_caller_data): Add has_thunk field.
12981 (ipa_sra_check_caller): Check for thunk.
12982 (ipa_sra_preliminary_function_checks): Give up on function with
12984 (ipa_early_sra): Use call_for_symbol_and_aliases.
12986 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
12989 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12990 called for __stack_chk_guard symbol.
12992 2015-03-03 DJ Delorie <dj@redhat.com>
12994 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12996 (*addhi3_real): Likewise.
12997 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12998 pattern to match incrementing memory.
12999 * config/rl78/predicates.md (rl78_1_2_operand): New.
13000 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
13001 it's the same and only mem.
13002 (rl78_alloc_physical_registers_op2): If there's effectively only
13003 one MEM, transcode it into HL.
13004 (rl78_far_p): Reject addresses that aren't legitimate.
13006 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
13008 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
13011 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
13013 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
13015 Implement call0 ABI for xtensa
13016 * config/xtensa/constraints.md ("a" constraint): Include stack
13017 pointer in case of call0 ABI.
13018 ("q" constraint): Make empty in case of call0 ABI.
13019 ("D" constraint): Include stack pointer in case of call0 ABI.
13020 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
13021 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
13023 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
13025 (xtensa_regno_to_class): Make it a local variable in the
13026 function xtensa_regno_to_class.
13027 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
13028 macro, function prototype and implementation.
13029 (reg_nonleaf_alloc_order): Make it a local variable in the
13030 function order_regs_for_local_alloc.
13031 (xtensa_conditional_register_usage): New function.
13032 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
13033 (xtensa_valid_move): Allow direct moves to stack pointer
13034 register in call0 ABI.
13035 (xtensa_setup_frame_addresses): Only spill register windows in
13037 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
13038 call0 ABI respectively.
13039 (xtensa_function_arg_1): Only mark a7 register for copying in
13041 (xtensa_call_save_reg): New function.
13042 (compute_frame_size): Add space for callee saved register
13043 storage to the frame size in call0 ABI.
13044 (xtensa_expand_prologue): Generate code to set up stack frame
13045 and save callee-saved registers in call0 ABI.
13046 (xtensa_expand_epilogue): New function.
13047 (xtensa_set_return_address): New function.
13048 (xtensa_return_addr): Calculate return address in call0 ABI.
13049 (xtensa_builtin_saveregs): Only mark a7 register for copying and
13050 emit copying code in windowed ABI.
13051 (order_regs_for_local_alloc): Add preferred register allocation
13052 order for non-leaf function in call0 ABI.
13053 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
13054 (xtensa_asm_trampoline_template): Add trampoline generation for
13056 (xtensa_trampoline_init): Add trampoline initialization for
13058 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
13060 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
13061 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
13062 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
13063 ABI call-used registers.
13064 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
13065 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
13067 (REG_CLASS_CONTENTS): Include all registers into the preferred
13068 reload registers set, adjust the set in the
13069 xtensa_conditional_register_usage.
13070 (xtensa_regno_to_class): Drop variable declaration.
13071 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
13073 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
13075 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
13076 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
13077 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
13078 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
13079 location in call0 ABI.
13080 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
13081 stack adjustment size when handling exception.
13082 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
13083 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
13085 ("return" pattern): Generate ret.n/ret in call0 ABI.
13086 ("epilogue" pattern): Expand epilogue.
13087 ("nonlocal_goto" pattern): Use default in call0 ABI.
13088 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
13089 emit eh_set_a0_* depending on ABI.
13090 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
13091 ("eh_set_a0_call0", "blockage"): New patterns.
13093 2015-03-03 Martin Liska <mliska@suse.cz>
13096 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
13098 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13101 * config/rs6000/rs6000-tables.opt: Regenerate table.
13103 2015-03-03 Renlin Li <renlin.li@arm.com>
13105 * doc/md.texi (@item ^): Change ? into ^.
13107 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
13109 * doc/tm.texi: Regenerated.
13111 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
13113 * builtins.c (expand_builtin_return_addr): Add
13114 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
13115 surrounding #ifdef.
13116 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
13118 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
13120 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
13122 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
13125 2015-03-03 Martin Jambor <mjambor@suse.cz>
13126 Eric Botcazou <ebotcazou@adacore.com>
13128 * tree-sra.c (ipa_sra_check_caller_data): New type.
13129 (has_caller_p): Removed.
13130 (ipa_sra_check_caller): New function.
13131 (ipa_sra_preliminary_function_checks): Use it.
13133 2015-03-03 Martin Liska <mliska@suse.cz>
13135 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
13136 instead of if branch.
13138 2015-03-03 Martin Liska <mliska@suse.cz>
13141 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
13143 2015-03-23 Jeff Law <law@redhat.com>
13145 PR tree-optimization/65241
13146 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
13147 hash table if INSERT is true.
13149 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
13152 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
13154 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
13157 * config/avr/avr.c (context.h, tree-pass.h): Include them.
13158 (avr_pass_data_recompute_notes): New static variable.
13159 (avr_pass_recompute_notes): New class.
13160 (avr_register_passes): New static function.
13161 (avr_option_override): Call it.
13163 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
13165 Fix various problems with specs file generation.
13168 * config.gcc (extra_gcc_objs) [avr]: Remove.
13169 * config/avr/driver-avr.c: Remove file.
13170 * config/avr/t-avr (driver-avr.o): Remove rule.
13171 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
13172 INCLUDES to build. Depend on TM_H.
13173 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
13174 build warnings. Fix non-matching types and non-existing %-codes.
13176 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
13177 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
13178 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
13179 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
13180 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
13181 (LIBGCC_SPEC): Remove definitions.
13183 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
13185 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
13186 to create a register in testing mode.
13188 2015-03-03 Martin Liska <mliska@suse.cz>
13189 Jan Hubicka <hubicka@ucw.cz>
13192 * cgraph.c (cgraph_node::has_thunk_p): New function.
13193 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
13194 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
13195 (sem_function::merge): Assert is changed.
13197 2015-03-03 Martin Liska <mliska@suse.cz>
13198 Martin Jambor <mjambor@suse.cz>
13201 * ipa-icf.c (sem_item_optimizer::execute): Change function
13202 return value to boolean.
13203 (sem_item_optimizer::merge_classes): Likewise.
13204 (ipa_icf_driver): Return TODO_remove_functions in case there's
13205 a merge operation processed.
13206 * ipa-icf.h: Change function return value to boolean.
13208 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13211 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
13212 processor type for 64-bit little endian PowerPC.
13214 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13215 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
13216 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
13217 printing built-in mask so it does not pass NULL pointers.
13219 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
13222 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
13225 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
13226 !ISA_HAS_FP_CONDMOVE.
13228 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
13230 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
13233 2015-03-02 Ulrich Drepper <drepper@gmail.com>
13235 * doc/invoke.texi (Options for Code Generation Conventions):
13236 Fix URL of DSO paper.
13238 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
13241 * ipa-inline.c (check_callers): Looks for recursion.
13242 (inline_to_all_callers): Give up on uninlinable or recursive edges.
13243 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
13244 summary of inline clones.
13245 (do_estimate_growth_1): Fix recursion check.
13247 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
13250 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
13253 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
13254 Aldy Hernandez <aldyh@redhat.com>
13257 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
13258 when checking TYPE_BINFO.
13260 2015-03-02 Richard Biener <rguenther@suse.de>
13263 * ipa-icf-gimple.c: Include builtins.h.
13264 (func_checker::compare_memory_operand): Compare base alignment.
13266 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
13269 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
13270 are never passed by reference.
13272 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
13275 * tree-chkp.c (chkp_check_lower): Don't check against
13276 zero bounds for already instrumented functions.
13277 (chkp_check_upper): Likewise.
13278 (chkp_fini): Clean pass local data to avoid wrong reusage.
13280 2015-02-28 Martin Liska <mliska@suse.cz>
13281 Jan Hubicka <hubicka@ucw.cz>
13283 * ipa-icf.c (sem_variable::equals): Improve debug output;
13284 get variable constructor.
13285 (sem_variable::parse): Do not filter out too early; give up on
13286 volatile and register vars.
13287 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
13289 * ipa-icf.h (sem_variable::init): Do not set ctor.
13290 (sem_variable::ctor): Remove.
13292 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
13294 PR middle-end/65233
13295 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
13297 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13299 * ipa-icf.c: Include stor-layout.h
13300 (sem_function::compare_cgraph_references): Rename to ...
13301 (sem_item::compare_cgraph_references): ... this one.
13302 (sem_variable::equals_wpa): New function
13303 (sem_variable::equals): Do not check stuff already verified by
13305 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
13306 * ipa-icf.h (sem_item): Add compare_cgraph_references.
13307 (sem_function): Remove compare_cgraph_references.
13308 (sem_variable): Turns equals_wpa into non-inline.
13310 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13312 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
13313 (sem_item::add_expr): New function.
13314 (sem_function::hash_stmt): Handle operands of most statements.
13315 (sem_variable::get_hash): Hash the actual constructor.
13316 * ipa-icf.h (sem_item): Add add_expr.
13317 (sem_function): Update prototype of hash_stmt
13319 2015-02-28 Martin Liska <mliska@suse.cz>
13320 Jan Hubicka <hubicka@ucw.cz>
13323 * ipa-icf-gimple.c (func_checker::compare_function_decl):
13325 (func_checker::compare_variable_decl): Skip symtab vars.
13326 (func_checker::compare_cst_or_decl): Update.
13327 * ipa-icf.c (sem_function::parse): Do not consider aliases.
13328 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
13329 use correct symtab predicates.
13330 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
13331 (sem_variable::parse): Update comment.
13332 (sem_item_optimizer::build_graph): Consider ultimate aliases
13335 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13337 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
13340 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13342 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
13343 (sem_variable::merge) Likewise.
13345 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13347 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
13348 target; also match flag_ipa_devirt.
13350 2015-03-01 Martin Liska <mliska@suse.cz>
13351 Jan Hubicka <hubicka@ucw.cz>
13353 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
13354 Validate variable alignment.
13355 * ipa-icf.c (sem_function::equals_private): Be more precise
13356 about non-common function attributes.
13357 (sem_variable::equals): Likewise.
13359 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13362 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
13363 across COMDAT group boundary.
13365 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13368 * ipa-icf.c (clear_decl_rtl): New function.
13369 (sem_function::merge): Clear RTL before forming alias.
13370 (sem_variable::merge): Clear RTL before forming alias.
13372 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13375 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
13377 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
13379 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
13382 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
13384 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
13385 a typo in the description.
13387 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
13390 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13391 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13392 * lra-constraints.c: Include "params.h".
13393 (EBB_PROBABILITY_CUTOFF): Use
13394 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
13395 (lra_inheritance): Use '<' instead of '<=' for
13396 EBB_PROBABILITY_CUTOFF.
13397 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
13400 2015-02-27 Martin Liska <mliska@suse.cz>
13402 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
13403 vector length condition.
13405 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
13407 * doc/extend.texi (x86 transactional memory intrinsics):
13408 Reorganize discussion of _xbegin. Clarify that the return
13409 value is a bit mask. Expand example and move to end of section.
13411 2015-02-26 Jakub Jelinek <jakub@redhat.com>
13412 Aldy Hernandez <aldyh@redhat.com>
13414 PR rtl-optimization/65220
13415 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
13417 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
13420 * lra-remat.c (update_scratch_ops): New.
13421 (do_remat): Call it.
13422 * lra.c (lra_register_new_scratch_op): New. Take code from ...
13423 (remove_scratches): ... here.
13424 * lra-int.h (lra_register_new_scratch_op): New prototype.
13426 2015-02-27 Marek Polacek <polacek@redhat.com>
13429 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
13430 -Wformat-signedness anymore.
13432 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13434 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
13436 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
13438 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13440 * config/s390/s390.c (enum s390_builtin):
13441 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
13442 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
13443 (s390_init_builtins): Generate new builtin functions.
13444 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
13445 (s390_sfpc, s390_efpc): New pattern definitions.
13447 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13449 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
13450 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
13451 (s390_builtin_decls): New array.
13452 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
13453 (s390_builtin_decl): New function.
13454 (TARGET_BUILTIN_DECL): Define macro.
13456 2015-02-27 Richard Biener <rguenther@suse.de>
13458 PR middle-end/63175
13459 * builtins.c (get_object_alignment_2): Make sure to re-apply
13460 the ANDed mask after recursing to its operand gets us a new
13461 misalignment bit position.
13463 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
13464 Martin Liska <mliska@suse.cz>
13467 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
13468 Use address_matters_p.
13469 (redirect_all_callers, set_addressable): New functions.
13470 (sem_function::merge): Reorganize and fix merging issues.
13471 (sem_variable::merge): Likewise.
13472 (sem_variable::compare_sections): Remove.
13473 * common.opt (fmerge-all-constants, fmerge-constants): Remove
13475 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
13477 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
13479 (address_matters_1): New function.
13480 (symtab_node::address_matters_p): New function.
13481 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
13482 check for merged flag.
13483 * cgraph.h (address_matters_p): Declare.
13484 (symtab_node::address_taken_from_non_vtable_p): Remove.
13485 (symtab_node::address_can_be_compared_p): New method.
13486 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
13487 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
13489 (comdat_can_be_unshared_p_1) Use address_matters_p.
13490 (update_vtable_references): Fix formating.
13491 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
13492 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
13493 * cgraphclones.c: Preserve merged and icf_merged flags.
13495 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
13497 * doc/extend.texi (Function Attributes): Fix spelling and typos.
13498 (Label Attributes): Likewise.
13499 (Cilk Plus Builtins): Likewise.
13500 (ARC SIMD Built-in Functions): Likewise.
13501 (ARM C Language Extensions (ACLE)): Likewise.
13502 (PowerPC Built-in Functions): Likewise.
13503 (PowerPC Hardware Transactional Memory Built-in Functions):
13506 2015-02-26 Jakub Jelinek <jakub@redhat.com>
13508 PR tree-optimization/65216
13509 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
13510 new stmt and new SSA_NAME for lhs whenever the arguments have
13511 changed and weren't just swapped. Fix comment typo.
13513 PR tree-optimization/65215
13514 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
13515 for PDP endian targets.
13516 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
13517 Fix up formatting issues.
13518 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
13519 size is smaller than the original, adjust MEM_REF offset by the
13520 difference of sizes. Use is_gimple_mem_ref_addr instead of
13521 is_gimple_min_invariant test to avoid adding address temporaries.
13523 2015-02-26 Martin Liska <mliska@suse.cz>
13524 Jan Hubicka <hubicka@ucw.cz>
13527 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
13528 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
13529 (sem_item_optimizer::process_cong_reduction): Include division by
13530 sensitive references.
13531 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
13532 * ipa-ref.c (ipa_ref::address_matters_p): New function.
13533 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13535 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
13538 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
13540 * config/avr/avr.c: Same.
13541 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
13542 Refuse any constant address not in 0..0xbf.
13543 * config/avr/avr.md (*mov<mode>, *movsf): Remove
13544 tiny_valid_direct_memory_access_range from insn conditions.
13545 (mov<mode>): Don't special-case expansion of avrtiny addresses.
13547 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
13550 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
13551 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
13552 * config/sh/predicates.md (const_logical_operand): New predicate.
13553 * config/sh/sh.md: Add new peephole2 patterns.
13555 2015-02-26 Marek Polacek <polacek@redhat.com>
13558 * ipa-inline.c (early_inliner): Recompute inline parameters.
13560 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13563 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
13564 instructions with TImode operands are included in the analysis.
13566 2015-02-26 Sebastian Pop <s.pop@samsung.com>
13568 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
13569 of an EDGE_FSM_THREAD.
13571 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13573 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
13575 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
13578 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
13580 2015-02-26 Sebastian Pop <s.pop@samsung.com>
13582 PR tree-optimization/65048
13583 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
13584 (thread_through_all_blocks): Call valid_jump_thread_path.
13585 Remove invalid FSM jump-thread paths.
13587 2015-02-26 Jakub Jelinek <jakub@redhat.com>
13589 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
13590 (ipa_write_optimization_summaries): Likewise.
13591 * tree-streamer.h: Include data-streamer.h.
13592 (streamer_mode_table): Declare extern variable.
13593 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
13594 * lto-streamer-out.c (lto_output_init_mode_table,
13595 lto_write_mode_table): New functions.
13596 (produce_asm_for_decls): Call lto_write_mode_table when streaming
13598 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
13599 (lto_create_simple_input_block): Add mode_table argument to the
13600 lto_input_block constructors.
13601 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
13603 * data-streamer-in.c (string_for_index): Likewise.
13604 * ipa-inline-analysis.c (inline_read_section): Likewise.
13605 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
13606 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13607 * lto-streamer-in.c (lto_read_body_or_constructor,
13608 lto_input_toplevel_asms): Likewise.
13609 (lto_input_mode_table): New function.
13610 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
13611 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
13612 Use bp_pack_machine_mode.
13613 * real.h (struct real_format): Add name field.
13614 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
13615 (class lto_input_block): Add mode_table member.
13616 (lto_input_block::lto_input_block): Add mode_table_ argument,
13617 initialize mode_table.
13618 (struct lto_file_decl_data): Add mode_table field.
13619 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
13620 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
13621 unpack_ts_decl_common_value_fields,
13622 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
13623 * tree-streamer.c (streamer_mode_table): New variable.
13624 * real.c (ieee_single_format, mips_single_format,
13625 motorola_single_format, spu_single_format, ieee_double_format,
13626 mips_double_format, motorola_double_format,
13627 ieee_extended_motorola_format, ieee_extended_intel_96_format,
13628 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13629 ibm_extended_format, mips_extended_format, ieee_quad_format,
13630 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13631 decimal_single_format, decimal_double_format, decimal_quad_format,
13632 ieee_half_format, arm_half_format, real_internal_format): Add name
13634 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
13636 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
13639 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
13640 reordering for selective scheduling.
13642 2015-02-26 Terry Guo <terry.guo@arm.com>
13644 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
13645 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
13646 (arm_arch_no_volatile_ce): Declare new global variable.
13647 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
13648 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
13649 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
13650 (TARGET_NO_VOLATILE_CE): New macro.
13651 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
13652 volatile memory access in IT block
13654 2015-02-25 Kai Tietz <ktietz@redhat.com>
13656 PR tree-optimization/61917
13657 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
13658 that reduc_def_stmt is null.
13660 2015-02-25 Martin Liska <mliska@suse.cz>
13662 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
13663 hard register variables.
13665 2015-02-25 Kai Tietz <ktietz@redhat.com>
13668 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
13669 (symtab::noninterposable_alias): Likewise.
13671 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
13674 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
13676 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
13678 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
13681 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
13682 as split condition; force split via '#' in output pattern.
13684 2015-02-25 Richard Biener <rguenther@suse.de>
13685 Kai Tietz <ktietz@redhat.com>
13687 PR tree-optimization/61917
13688 * tree-vect-loop.c (vectorizable_reduction): Allow
13689 vect_internal_def without reduction to exit graceful.
13691 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
13694 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
13695 only with NONDEBUG_INSN_P.
13697 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
13699 Use variadic macros with avr-log.c.
13701 * config/avr/avr-protos.h (avr_vdump): New prototype.
13702 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
13703 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
13704 * config/avr/avr-log.c: Adjust comments.
13705 (avr_vdump): New function.
13706 (avr_vadump): Pass caller as 2nd argument instead of format string.
13707 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
13708 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
13710 2015-02-25 Jakub Jelinek <jakub@redhat.com>
13713 * target.def (target_option_stream_in): New target hook.
13714 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
13715 targetm.target_option.post_stream_in if non-NULL.
13716 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
13717 * doc/tm.texi: Updated.
13718 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
13720 (TARGET_OPTION_POST_STREAM_IN): Redefine.
13722 2015-02-24 Jeff Law <law@redhat.com>
13725 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
13726 of operand 0 and operand 2.
13727 (zero_cost_loop_end, loop_end): Similarly.
13729 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
13731 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
13734 2015-02-24 DJ Delorie <dj@redhat.com>
13736 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
13737 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
13738 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
13739 instead of hardcoding SImode.
13741 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
13743 * omp-low.c (create_omp_child_function): Tag entrypoint
13744 functions with a special attribute.
13746 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13749 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
13751 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
13753 PR rtl-optimization/65123
13754 * lra-remat.c (operand_to_remat): Check hard regs in insn
13757 2015-02-24 Nick Clifton <nickc@redhat.com>
13759 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
13762 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
13765 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
13766 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
13767 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
13768 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
13769 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
13770 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
13771 (BUILT_IN_GOACC_PARALLEL): Specify as
13772 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
13773 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
13774 * builtin-types.def
13775 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13776 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13777 Remove function types.
13778 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
13779 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13780 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13781 New function types.
13783 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
13785 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
13787 2015-02-24 Jakub Jelinek <jakub@redhat.com>
13789 PR tree-optimization/65170
13790 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
13791 if val[1] < 0, clear also val[2] and return 3.
13793 2015-02-24 Alan Modra <amodra@gmail.com>
13796 * config/rs6000/rs6000.c (get_memref_parts): Only return true
13797 when *base is a reg. Handle nested plus addresses. Simplify
13800 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
13802 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
13803 use natural alignment when optimizing for size.
13805 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
13808 * config/sh/sh.md (movsicc_true+3): Remove peephole.
13809 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
13810 * config/sh/sh.c (replace_n_hard_rtx): Remove.
13812 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
13815 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
13816 too big for a wide_int. Implement missing wrapping operation.
13818 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
13821 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
13822 instead of const_int 4294901760.
13824 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
13826 * config/avr/t-avr: Fix typo in comment.
13828 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
13830 * doc/rtl.texi (fma): Clarify documentation.
13832 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
13835 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
13836 over input_location.
13838 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13840 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
13841 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
13842 restrict alignments to absolute_biggest_alignment.
13843 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13845 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13846 * doc/tm.texi: Regenerate.
13847 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13849 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
13852 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13854 2015-02-20 Richard Biener <rguenther@suse.de>
13856 PR tree-optimization/65136
13857 * tree-ssa-propagate.c: Include cfgloop.h.
13858 (replace_phi_args_in): Avoid replacing loop latch edge PHI
13859 arguments with constants.
13861 2015-02-20 Jakub Jelinek <jakub@redhat.com>
13862 Martin Liska <mliska@suse.cz>
13865 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13866 don't try to create_thunk if stdarg_p. If
13867 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13868 redirect_callers if possible.
13869 (sem_item_optimizer::execute): Call unregister_hooks here...
13870 (ipa_icf_driver): ... instead of here.
13872 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13874 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13875 Mark operand 0 as earlyclobber in 2nd alternative.
13876 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13877 Write negated shift amount into QI lowpart operand 0 and use it
13879 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13881 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13883 * cgraph.h (clone_function_name_1): Declare.
13884 * cgraphclones.c (clone_function_name_1): New function.
13885 (clone_function_name): Use it.
13886 * lto-partition.c: Include "stringpool.h".
13887 (must_not_rename, maybe_rewrite_identifier)
13888 (validize_symbol_for_target): New static functions.
13889 (privatize_symbol_name): Use must_not_rename.
13890 (promote_symbol): Call validize_symbol_for_target.
13891 (lto_promote_cross_file_statics): Likewise.
13892 (lto_promote_statics_nonwpa): Likewise.
13894 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
13897 * config/avr/avr.md (pushhi_insn): New insn.
13898 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13900 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13901 Jakub Jelinek <jakub@redhat.com>
13903 * tree-streamer.c (preload_common_nodes): Don't preload
13904 TI_VA_LIST* for offloading.
13905 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13908 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
13910 * config/pa/pa.c (pa_emit_move_sequence): Always force
13911 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
13914 * config/pa/pa.c (pa_reloc_rw_mask): New function.
13915 (TARGET_ASM_RELOC_RW_MASK): Define.
13916 (pa_cannot_force_const_mem): Revert previous change.
13918 2015-02-19 Martin Jambor <mjmabor@suse.cz>
13919 Jan Hubicka <hubicka@ucw.cz>
13922 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13923 across jump functions.
13925 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
13927 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13929 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
13931 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13933 2015-02-19 Richard Henderson <rth@redhat.com>
13935 PR middle-end/65074
13936 * varasm.c (default_binds_local_p_2): Don't test node->definition;
13937 test DECL_EXTERNAL independent of symtab_node.
13939 2015-02-19 Jakub Jelinek <jakub@redhat.com>
13942 * varpool.c (varpool_node::get_constructor): Return early
13943 if this->lto_file_data is NULL.
13945 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13947 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13948 (rank_for_schedule_debug): Update.
13949 (ready_sort): Make static. Move sorting logic to ...
13950 (ready_sort_debug, ready_sort_real): New static functions.
13951 (schedule_block): Sort both debug insns and real insns in preparation
13952 for ready list trimming. Improve debug output.
13953 * sched-int.h (ready_sort): Remove global declaration.
13955 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
13957 * ipa-icf.c (sem_function::equals_private): Adjust.
13958 (sem_function::bb_dict_test): Take a vec<int> * instead of
13960 * ipa-icf.h (bb_dict_test): Likewise.
13962 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13964 PR gcov-profile/64634
13965 * tree-eh.c (frob_into_branch_around): Fix up typos
13966 in function comment.
13967 (lower_catch): Put eh_seq resulting from EH lowering of
13968 the cleanup sequence after the cleanup rather than before it.
13970 2015-02-18 Tom de Vries <tom@codesourcery.com>
13972 * common.opt (fstdarg-opt): New option.
13973 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13974 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13975 (@item -fstdarg-opt): New item.
13977 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
13980 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13981 for common symbols.
13983 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13985 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13987 (ALL_HOST_OBJS): Add mkoffload.o.
13988 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13990 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
13992 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13993 (compare_virtual_tables): Be smarter about skipping typeinfos;
13994 do sane output on virtual table table mismatch.
13995 (warn_odr): Be ready for forward declarations of enums;
13996 output sane info on base mismatch and virtual table mismatch.
13997 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13998 when only one type is polymorphic.
13999 (get_odr_type): Fix hashtable corruption.
14000 (dump_odr_type): Dump mangled names.
14002 2015-02-18 Richard Biener <rguenther@suse.de>
14004 PR tree-optimization/65063
14005 * tree-predcom.c (determine_unroll_factor): Return 1 if we
14006 have replaced looparound PHIs.
14008 2015-02-18 Martin Liska <mliska@suse.cz>
14010 * lto-streamer.c (lto_streamer_init): Encapsulate
14011 streamer_check_handled_ts_structures with checking macro.
14013 2015-02-18 Jakub Jelinek <jakub@redhat.com>
14016 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
14017 section if !implicit_section.
14018 (cgraph_node::create_version_clone_with_body): Likewise.
14019 * trans-mem.c (ipa_tm_create_version): Likewise.
14021 2015-02-18 Richard Biener <rguenther@suse.de>
14023 PR tree-optimization/62217
14024 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
14027 2015-02-18 Marek Polacek <polacek@redhat.com>
14030 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
14031 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
14032 is in range [-16K, -1]. Don't issue run-time error if
14033 (ptr > ptr + offset).
14035 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
14037 * doc/install.texi (nvptx-*-none): New section.
14038 * doc/invoke.texi (Nvidia PTX Options): Likewise.
14039 * config/nvptx/nvptx.opt: Update.
14041 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
14042 (access_check): New functions, copied from
14043 config/i386/intelmic-mkoffload.c.
14044 (main): For non-installed testing, look in all COMPILER_PATHs for
14047 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
14049 2015-02-18 Andrew Pinski <apinski@cavium.com>
14050 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14052 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
14053 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
14055 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
14057 * ipa-visibility.c (function_and_variable_visibility): Only
14058 check locality if node is not already local.
14059 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14060 call_for_symbol_and_aliases instead of
14061 call_for_symbol_thunks_and_aliases.
14062 (ipa_inline): Likewise.
14063 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14064 first walk aliases.
14065 * ipa.c (symbol_table::remove_unreachable_nodes): Use
14066 call_for_symbol_and_aliases.
14067 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14068 (ipa_propagate_frequency_1): Use it; use opt_for_fn
14069 (ipa_propagate_frequency): Update.
14070 (ipa_profile): Add opt_for_fn gueards.
14072 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
14074 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
14075 * doc/invoke.texi (SH options): Document it.
14076 * config/sh/sh.c (sh_insn_length_adjustment): Check
14077 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
14079 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
14081 * common.opt (fipa-cp-alignment): New.
14082 * ipa-cp.c (ipcp_store_alignment_results): Check
14083 flag_ipa_cp_alignment.
14084 * opts.c (default_options_table): Enable -fipa-cp-alignment for
14086 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
14087 * doc/invoke.texi: Document -fipa-cp-alignment.
14089 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
14092 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
14093 to nil. Adjust comments.
14095 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
14097 * ipa-visibility.c (function_and_variable_visibility): Only
14098 check locality if node is not already local.
14099 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14100 call_for_symbol_and_aliases instead of
14101 call_for_symbol_thunks_and_aliases.
14102 (ipa_inline): Likewise.
14103 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14104 first walk aliases.
14105 * ipa.c (symbol_table::remove_unreachable_nodes): Use
14106 call_for_symbol_and_aliases.
14107 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14108 (ipa_propagate_frequency_1): Use it; use opt_for_fn
14109 (ipa_propagate_frequency): Update.
14110 (ipa_profile): Add opt_for_fn guards.
14112 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14114 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
14115 skipping of "strange" tokens.
14117 2015-02-17 Jeff Law <law@redhat.com>
14119 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
14122 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
14124 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
14125 as forcing a HARD_DEP between instructions, thereby
14126 disallowing rewriting to break dependencies.
14128 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
14130 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
14131 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
14132 variables in boundary that have no inlitalizer encoded and are
14134 * varasm.c (default_binds_local_p_2): External definitions do not
14135 count as definitions here.
14137 2015-02-16 Jeff Law <law@redhat.com>
14139 PR tree-optimization/64823
14140 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
14142 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14143 threading through blocks with PHIs, but no statements.
14144 (thread_through_normal_block): Distinguish between blocks where
14145 we did not process all the statements and blocks with no statements.
14147 2015-02-16 Jakub Jelinek <jakub@redhat.com>
14148 James Greenhalgh <james.greenhalgh@arm.com>
14151 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
14152 section if not linkonce. Fix up formatting.
14153 (cgraph_node::create_version_clone_with_body): Copy section.
14154 * trans-mem.c (ipa_tm_create_version): Likewise.
14156 2015-02-16 Richard Biener <rguenther@suse.de>
14158 PR tree-optimization/65077
14159 * tree-ssa-structalias.c (get_constraint_for_1): Handle
14160 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
14161 (find_func_aliases): Allow float values to carry pointers again.
14163 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14165 * doc/install.texi (Specific): Reorder targets list to put
14166 aarch64 in alphabetical order. Add a link to aarch64*-*-*
14169 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14170 David Edelsohn <dje.gcc@gmail.com>
14173 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
14174 mapping class to external variable or function reference.
14175 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
14178 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
14181 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
14182 ASM_WEAKEN_DECL if defined.
14184 2015-02-16 Richard Biener <rguenther@suse.de>
14187 * varasm.c (default_file_start): For LTO produced units
14188 emit <artificial> as file directive.
14190 2015-02-16 Richard Biener <rguenther@suse.de>
14192 PR tree-optimization/63593
14193 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
14194 stmts and releasing SSA names until...
14195 (execute_pred_commoning): ... after processing all chains.
14197 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
14200 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
14201 external functions.
14203 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
14205 * doc/bugreport.texi: Adjust section titles throughout the file
14206 to use "Title Case".
14207 * doc/extend.texi: Likewise.
14208 * doc/gcov.texi: Likewise.
14209 * doc/implement-c.texi: Likewise.
14210 * doc/implement-cxx.texi: Likewise.
14211 * doc/invoke.texi: Likewise.
14212 * doc/objc.texi: Likewise.
14213 * doc/standards.texi: Likewise.
14214 * doc/trouble.texi: Likewise.
14216 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
14218 * cgraph.h (symtab_node::has_aliases_p): Simplify.
14219 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
14220 * tree.c (lookup_binfo_at_offset): Make static.
14221 (get_binfo_at_offset): Do not shadow offset; add explanatory
14224 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
14226 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
14227 for all floading point loads and stores except those using a register
14229 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
14232 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
14234 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
14235 (do_estimate_growth_1): Record if any uninlinable edge was seen.
14236 (estimate_growth): Handle uninlinable edges correctly.
14237 (check_callers): New.
14238 (growth_likely_positive): Handle aliases correctly.
14240 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
14242 * ipa-chkp.c: Use iterate_direct_aliases.
14243 * symtab.c (resolution_used_from_other_file_p): Move inline.
14244 (symtab_node::create_reference): Fix formating.
14245 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14246 (symtab_node::iterate_reference): Move inline.
14247 (symtab_node::iterate_referring): Move inline.
14248 (symtab_node::iterate_direct_aliases): Move inline.
14249 (symtab_node::used_from_object_file_p_worker): Inline into ...
14250 (symtab_node::used_from_object_file_p): ... this one; move inline.
14251 (symtab_node::call_for_symbol_and_aliases): Move inline;
14252 use iterate_direct_aliases.
14253 (symtab_node::call_for_symbol_and_aliases_1): New method.
14254 (cgraph_node::call_for_symbol_and_aliases): Move inline;
14255 use iterate_direct_aliases.
14256 (cgraph_node::call_for_symbol_and_aliases_1): New method.
14257 (varpool_node::call_for_node_and_aliases): Rename to ...
14258 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
14259 use iterate_direct_aliases.
14260 (varpool_node::call_for_symbol_and_aliases_1): New method.
14261 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
14262 (ipa_discover_readonly_nonaddressable_var): Update.
14263 * ipa-devirt.c: Fix formating.
14264 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
14266 (cgraph_node::call_for_symbol_and_aliases): Move inline.
14267 (cgraph_node::call_for_symbol_and_aliases_1): New function..
14268 * cgraph.h (used_from_object_file_p_worker): Remove.
14269 (resolution_used_from_other_file_p): Move inline.
14270 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14271 (symtab_node::iterate_reference): Move inline.
14272 (symtab_node::iterate_referring): Move inline.
14273 (symtab_node::iterate_direct_aliases): Move inline.
14274 (symtab_node::used_from_object_file_p_worker): Inline into ...
14275 (symtab_node::used_from_object_file_p): Move inline.
14276 * tree-emutls.c (ipa_lower_emutls): Update.
14277 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
14278 (varpool_node::call_for_node_and_aliases): Remove.
14280 2015-02-14 Jakub Jelinek <jakub@redhat.com>
14282 PR tree-optimization/62209
14283 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
14284 op == range->exp, insert seq and gimplified code after labels
14285 instead of after the phi.
14287 2015-02-13 Jeff Law <law@redhat.com>
14290 Revert my change for tree-optimization/64823.
14292 2015-02-13 Jakub Jelinek <jakub@redhat.com>
14294 PR tree-optimization/65053
14295 * tree-ssa-phiopt.c (value_replacement): When moving assign before
14296 cond, either reset VR on lhs or set it to phi result VR.
14298 2015-02-13 Jeff Law <law@redhat.com>
14300 PR tree-optimization/64823
14301 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
14302 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14303 threading through blocks with PHIs, but no statements.
14304 (thread_through_normal_block): Distinguish between blocks where
14305 we did not process all the statements and blocks with no statements.
14307 PR rtl-optimization/47477
14308 * match.pd (convert (plus/minus (convert @0) (convert @1): New
14309 simplifier to narrow arithmetic.
14311 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
14314 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
14315 polymorphic call info when type is not known to be preserved.
14317 2015-02-13 Maritn Jambor <mjambor@suse.cz>
14320 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
14321 (inline_call): Use it.
14323 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
14325 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
14326 GOMP_DEVICE_NVIDIA_PTX.
14328 2015-02-13 Jakub Jelinek <jakub@redhat.com>
14331 * stmt.c (emit_case_nodes): Use void_type_node instead of
14332 NULL_TREE as LABEL_DECL type.
14334 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
14336 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
14338 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
14339 symbolic references to data to be forced to constant memory on the
14342 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
14344 PR tree-optimization/65002
14345 * tree-cfg.c (pass_data_fixup_cfg): Don't update
14347 * tree-sra.c (some_callers_have_no_vuse_p): New.
14348 (ipa_early_sra): Reject functions whose callers
14349 assume function is read only.
14351 2015-02-13 Richard Biener <rguenther@suse.de>
14354 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
14355 for LTO produced CUs.
14357 2015-02-13 Bin Cheng <bin.cheng@arm.com>
14359 PR tree-optimization/64705
14360 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
14361 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
14362 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
14363 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
14364 expand_simple_operations.
14366 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
14367 Richard Henderson <rth@redhat.com>
14370 * cgraphunit.c (cgraph_node::finalize_function): Set definition
14371 before notice_global_symbol.
14372 (varpool_node::finalize_decl): Likewise.
14373 * varasm.c (default_binds_local_p_2): Rename from
14374 default_binds_local_p_1, add weak_dominate argument. Use direct
14375 returns instead of assigning to local variable. Unify varpool and
14376 cgraph paths via symtab_node. Reject undef weak variables before
14377 testing visibility. Reorder tests for simplicity.
14378 (default_binds_local_p): Use default_binds_local_p_2.
14379 (default_binds_local_p_1): Likewise.
14380 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
14382 (default_elf_asm_output_external): Emit visibility when specified.
14384 2015-02-13 Alan Modra <amodra@gmail.com>
14386 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
14387 code setting up r11 for out-of-line fp restore.
14389 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
14391 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
14392 (muser-mode): Likewise.
14394 2015-02-13 Alan Modra <amodra@gmail.com>
14396 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
14397 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
14399 2015-02-12 David Howells <dhowells@redhat.com>
14401 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
14403 * tree-ssa-uninit.c (dump_predicates): Likewise.
14404 * opts.c (print_filtered_help): Likewise.
14406 2015-02-12 Jakub Jelinek <jakub@redhat.com>
14408 * dwarf2out.c (output_die): Use "%s", name instead of name to
14409 avoid -Wformat-security warning.
14411 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
14412 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14413 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
14414 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14416 2015-02-12 Jason Merrill <jason@redhat.com>
14418 * common.opt (-flifetime-dse): New.
14420 2015-02-12 Jakub Jelinek <jakub@redhat.com>
14423 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
14425 PR tree-optimization/65014
14426 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
14427 use original second operand of arg0 or arg1 instead of
14428 that adjusted by STRIP_NOPS.
14430 2015-02-11 Jeff Law <law@redhat.com>
14433 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
14434 that needs to be queued, just queue it for a single cycle.
14436 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
14438 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
14439 bodies of thunks; comment on why.
14440 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
14441 symbols are extern.
14443 2015-02-11 Richard Henderson <rth@redhat.com>
14446 * tree-eh.c (mark_reachable_handlers): Mark source and destination
14447 regions of __builtin_eh_copy_values.
14449 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14451 PR middle-end/65003
14452 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
14453 ultimate alias is MEM with SYMBOL_REF satisfying
14454 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
14455 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
14457 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
14459 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
14460 "diagnostic-core.h".
14461 (main): Initialize progname, and call diagnostic_initialize.
14463 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
14464 instead of __OPENMP_TARGET__.
14466 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
14467 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
14468 hard-coding PTX_ID.
14470 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
14472 * doc/sourcebuild.texi (pie_enabled): Document.
14474 2015-02-11 Martin Liska <mliska@suse.cz>
14477 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
14478 a return value for call to a function that is noreturn.
14480 2015-02-11 Richard Biener <rguenther@suse.de>
14483 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
14486 2015-02-11 Andrew Pinski <apinski@cavium.com>
14489 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14490 Change the first argument type to size_type_node and add another
14492 (aarch64_simd_expand_builtin): Handle the new argument to
14493 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
14494 print an out when the first two arguments are not
14495 nonzero integer constants.
14496 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
14497 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
14499 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14502 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
14503 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
14504 (ix86_set_current_function): Rewritten.
14505 (ix86_add_new_builtins): Temporarily clear current_target_pragma
14506 when creating builtin fndecls.
14508 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
14511 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
14513 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
14514 have no comdat group.
14515 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
14516 (lto_output_varpool_node): Always output alias info.
14517 (output_refs): Output refs of boundary aliases, too.
14518 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
14519 (output_symtab): Output call eges in thunks in boundary.
14520 (get_alias_symbol): Remove.
14521 (input_node, input_varpool_node): Do not special case weakrefs.
14522 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
14523 alias and thunks targets in the boundary; do not take removed symbols
14524 from their comdat groups.
14525 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
14526 (cgraph_node::global_info): Remove.
14527 (cgraph_node::rtl_info): Look through aliases and thunks.
14528 * cgrpah.h (global_info): Remove.
14529 (non_local_p): Remove.
14531 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
14532 Sandra Loosemore <sandra@codesourcery.com>
14534 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
14535 to inline asm. List dialects in proper order.
14537 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
14538 Sandra Loosemore <sandra@codesourcery.com>
14540 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
14542 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
14544 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
14545 modified) reference to Solaris.
14547 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
14549 * doc/extend.texi (Extended Asm): Fix typos.
14551 2015-02-10 Jakub Jelinek <jakub@redhat.com>
14554 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
14556 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
14559 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
14560 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
14561 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
14562 * config/sh/constraints.md (Ara, Add): New constraints.
14563 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
14565 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
14566 atomic_mem_operand_0. Don't use force_reg on the memory address.
14567 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
14568 Sra constraint. Convert to insn_and_split. Add workaround for
14570 (atomic_compare_and_swap<mode>_hard): Copy to
14571 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
14572 Use atomic_mem_operand_0 predicate.
14573 (atomic_compare_and_swap<mode>_soft_gusa,
14574 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
14575 AraAdd constraints.
14576 (atomic_compare_and_swap<mode>_soft_tcb,
14577 atomic_compare_and_swap<mode>_soft_imask,
14578 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
14579 atomic_mem_operand_0 predicate and SraSdd constraints.
14580 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
14582 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
14583 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
14584 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
14585 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
14586 force_reg on the memory address.
14587 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
14588 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
14589 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
14590 atomic_mem_operand_1 predicate and Sra constraint.
14591 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
14592 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
14593 Use atomic_mem_operand_1 predicate.
14594 (atomic_<fetchop_name><mode>_hard): Copy to
14595 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
14596 Use atomic_mem_operand_1 predicate.
14597 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
14598 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
14599 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
14600 insn_and_split. Use atomic_mem_operand_1 predicate.
14601 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
14602 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
14603 Use atomic_mem_operand_1 predicate.
14604 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
14605 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
14606 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
14607 in generated insn with original mem operand before emitting the insn.
14608 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
14609 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
14610 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
14611 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
14612 Use atomic_mem_operand_1 predicate and AraAdd constraints.
14613 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
14614 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
14615 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
14616 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
14617 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
14618 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
14619 atomic_not_fetch<mode>_soft_tcb,
14620 atomic_<fetchop_name>_fetch<mode>_soft_imask,
14621 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
14622 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
14623 Use atomic_mem_operand_1 predicate and SraSdd constraints.
14625 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
14627 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
14628 and 3 earlyclobber operands.
14630 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
14632 * common.opt (fstack-reuse): Mark as optimization.
14634 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
14637 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
14639 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
14641 PR tree-optimization/64326
14642 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
14644 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
14646 PR gcov-profile/61889
14647 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
14649 2015-02-10 Richard Biener <rguenther@suse.de>
14651 PR tree-optimization/64995
14652 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
14653 value we use is final.
14654 (visit_reference_op_store): Always valueize op.
14655 (visit_use): Properly valueize vuses.
14657 2015-02-10 Richard Biener <rguenther@suse.de>
14659 PR tree-optimization/64909
14660 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
14661 pass a scalar-stmt count estimate to the cost model.
14662 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
14664 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
14666 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
14667 enabled by default together with var-tracking.
14669 2015-02-10 Nick Clifton <nickc@redhat.com>
14671 * config/rl78/rl78.c: Remove DIV attribute code accidentally
14672 included in previous rl78 commit.
14674 2015-02-10 Richard Biener <rguenther@suse.de>
14676 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
14677 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
14678 return the bitpack.
14680 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
14682 PR gcov-profile/61889
14683 * config.in: regenerate.
14684 * configure.in: Likewise.
14685 * configure.ac: Check for ftw.h.
14686 * gcov-tool.c: Check for ftw.h before using nftw.
14688 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
14691 * ipa-visibility.c (update_visibility_by_resolution_info): Only
14692 assert when not in lto mode.
14694 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14696 * ira-color.c (setup_left_conflict_sizes_p): Simplify
14697 initialization/assignment of conflict_size.
14699 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
14702 * ipa-cp.c (gather_caller_stats): Skip thunks.
14703 (propagate_constants_topo): Skip aliases.
14705 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
14708 * config/sh/sh.c (sh_option_override): Don't change
14709 -freorder-blocks-and-partition to -freorder-blocks even when
14710 unwinding is enabled.
14711 (sh_can_follow_jump): Return false if the followee jump is
14712 a crossing jump when -freorder-blocks-and-partition is specified.
14713 * config/sh/sh.md (*jump_compact_crossing): New insn.
14715 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
14716 Kaz Kojima <kkojima@gcc.gnu.org>
14719 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
14720 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
14721 (sh_can_redirect_branch): Rename to ...
14722 (sh_can_follow_jump): ... this. Constify argument types.
14723 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
14724 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
14725 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
14726 * doc/tm.texi: Regenerate.
14728 2015-02-09 Jakub Jelinek <jakub@redhat.com>
14731 * builtins.c (expand_builtin): Call targetm.expand_builtin
14732 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
14734 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14737 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
14739 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14742 * ipa-icf.c (set_local): New function.
14743 (sem_function::merge): Use it.
14745 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14747 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
14748 (add_type_duplicate): Fix comparison of BINFOs.
14750 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14752 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
14753 on getting VOID pointer.
14755 2015-02-09 Jakub Jelinek <jakub@redhat.com>
14758 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
14761 2015-02-09 Richard Biener <rguenther@suse.de>
14763 * genmatch.c (replace_id): Copy expr_type.
14765 2015-02-09 Richard Biener <rguenther@suse.de>
14767 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
14768 (streamer_write_tree_bitfields): Declare.
14769 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
14770 properly unpack padding.
14771 (unpack_value_fields): Inline ...
14772 (streamer_read_tree_bitfields): ... here.
14773 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
14774 and properly add padding bits.
14775 (streamer_pack_tree_bitfields): Fold into ...
14776 (streamer_write_tree_bitfields): ... this new function,
14777 exposing the bitpack object.
14778 * lto-streamer-out.c (lto_write_tree_1): Call
14779 streamer_write_tree_bitfields.
14781 2015-02-09 Richard Biener <rguenther@suse.de>
14783 PR tree-optimization/54000
14784 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
14785 (struct ivopts_data): Add loop_loc member.
14786 (tree_ssa_iv_optimize_loop): Dump loop location.
14787 (create_new_ivs): Likewise, also dump number of IVs generated.
14789 2015-02-09 Martin Liska <mliska@suse.cz>
14791 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
14792 just if not yet registered.
14793 (ipa_icf_generate_summary): Register callgraph hooks.
14795 2015-02-08 Andrew Pinski <apinski@cavium.com>
14797 * config/aarch64/aarch64.c (gty_dummy): Delete.
14799 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14802 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
14803 (cgraph_node::local_p): Remove thunk related FIXME.
14805 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14808 * i386.c (ix86_function_regparm): Look through aliases to see if callee
14809 is local and optimized.
14810 (ix86_function_sseregparm): Likewise; also use target's SSE math
14811 settings; error out instead of silently generating wrong code
14813 (init_cumulative_args): Look through aliases.
14815 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14818 * ipa-split.c (execute_split_functions): Split if function has aliases.
14820 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14823 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
14824 aliases before trying to expand it.
14825 (cgraph_node::expand_thunk): Fix formating.
14827 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
14829 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
14830 (Using Assembly Language with C): Expand introduction.
14831 (Basic Asm): Copy-edit. Add more information about uses of
14833 (Extended Asm): Copy-edit. Document new escape syntax and
14835 (Global Reg Vars): Copy-edit.
14836 (Local Reg Vars): Likewise.
14838 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
14842 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14843 (DBX_CONTIN_CHAR): Define.
14845 2015-02-06 Sebastian Pop <s.pop@samsung.com>
14846 Brian Rzycki <b.rzycki@samsung.com>
14848 PR tree-optimization/64878
14849 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14850 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14851 Stop recursion at loop phi nodes after having visited a loop phi node.
14853 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14855 * toplev.c (process_options): Change flag_ipa_ra before creating
14856 optimization_{default,current}_node.
14859 * cgraphunit.c (cgraph_node::expand_thunk): If
14860 restype is not is_gimple_reg_type nor the thunk_fndecl
14861 returns aggregate_value_p, set restmp to a temporary variable
14862 instead of resdecl.
14864 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
14866 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14868 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14871 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14872 add a general secondary reload handler for SDmode, unless we have
14873 both read/write support for SDmode.
14875 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14877 PR middle-end/64937
14878 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14879 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14880 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14881 1 before, push it to abstract_vec.
14882 (dwarf2out_abstract_function): Adjust caller. Don't call
14883 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14884 DECL_ABSTRACT_P flags for all abstract_vec elts.
14886 2015-02-06 Renlin Li <renlin.li@arm.com>
14888 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14890 * tree-ssa.c (execute_update_addresses_taken): Likewise.
14892 2015-02-06 Jeff Law <law@redhat.com>
14895 * config/h8300/h8300.c (push): New argument "in_prologue".
14896 Pass "in_prologue" along to "F".
14897 (h8300_push_pop): Corresponding changes.
14898 (h8300_expand_prologue): Likewise.
14899 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
14901 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14903 PR rtl-optimization/64957
14905 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14906 IOR rather than for AND.
14908 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
14911 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14912 of shift-add and (add + shift) operations. Rename local variable.
14914 2015-02-05 Jeff Law <law@redhat.com>
14917 * config/h8300/constraints.md (U): Correctly dectect
14918 "eightbit_data" memory addresses.
14919 * config/h8300/h8300.c (eightbit_constant_address_p): Also
14920 handle (const (plus (symbol_ref (x)))) where x is declared
14921 as an 8-bit data memory address.
14922 * config/h8300/h8300.md (call, call_value): Correctly detect
14923 "funcvec" functions.
14926 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14927 24 to 28 bits for the H8/300.
14929 2015-02-06 Alan Modra <amodra@gmail.com>
14932 * config/rs6000/rs6000.c (chain_already_loaded): New function.
14933 (rs6000_call_aix): Use it.
14935 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
14937 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14940 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
14942 * config/h8300/constraints.md ("U" constraint): Use strict
14943 variant of REG_OK_FOR_BASE_P after reload has started.
14945 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
14947 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14948 define to zero if !TARGET_NEON.
14949 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14951 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14952 Trevor Saunders <tsaunders@mozilla.com>
14955 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14957 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14960 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14961 when removing varpool nodes.
14963 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14966 * varpool.c (varpool_node::remove): Fix order of variables.
14968 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14971 * ipa-inline.c (inline_small_functions): Fix ordering issue between
14972 speculation resolution and key updates.
14974 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14976 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14977 about not letting any speculative edges unupdated.
14979 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14982 * gcov-io.c (gcov_var): Export.
14984 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14986 PR middle-end/64922
14987 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14988 edges that become speculative.
14990 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14992 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14993 or DW_LANG_Fortran08.
14994 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14996 (gen_compile_unit_die): Handle "GNU Fortran2003" and
14997 "GNU Fortran2008" language strings.
14998 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14999 * langhooks.h (lang_GNU_Fortran): New prototype.
15000 * langhooks.c (lang_GNU_Fortran): New function.
15001 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
15004 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
15006 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
15007 (RTX_OK_FOR_OLO10_P): Likewise.
15009 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
15011 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
15013 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
15015 PR middle-end/64922
15016 * gimple.c: Include gimple-ssa.h.
15017 (maybe_remove_unused_call_args): New function.
15018 * gimple.h (maybe_remove_unused_call_args): Declare.
15019 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
15020 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15021 * gimple-fold.c (gimple_fold_call): Likewise.
15023 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
15025 PR rtl-optimization/64905
15026 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
15027 pointer alignment if it isn't needed.
15029 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
15031 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
15032 cortex-a72.cortex-a53.
15033 * config/aarch64/aarch64-tune.md: Regenerate.
15034 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
15036 2015-02-04 Nick Clifton <nickc@redhat.com>
15038 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
15041 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15043 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
15044 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
15045 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
15047 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
15048 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
15049 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
15050 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
15051 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
15052 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
15053 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
15054 * tree-core.h (enum built_in_function): In between
15055 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
15056 for builtins that use DEF_BUILTIN_CHKP macro.
15058 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
15061 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
15062 operands for tcc_comparison exprs. Fix typos.
15065 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
15066 of two XORs that have an intervening AND or IOR.
15069 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
15070 simplification of XOR of AND to not allocate new rtx before
15071 committing to a simplification.
15073 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15075 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
15076 manual swaps in all peepholes.
15078 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15080 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
15081 of manual swapping implementation.
15082 (aarch64_expand_vec_perm_const_1): Likewise.
15084 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
15086 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
15087 (generic_addrcost_table): Remove NAMED_PARAM.
15088 (cortexa57_addrcost_table): Likewise.
15089 (xgene1_addrcost_table): Likewise.
15090 (generic_regmove_table): Likewise.
15091 (cortexa53_regmove_table): Likewise.
15092 (xgene1_regmove_table): Likewise.
15093 (generic_vector_table): Likewise.
15094 (cortexa57_vector_table): Likewise.
15095 (xgene1_vector_table): Likewise.
15096 (generic_tunings): Likewise.
15097 (cortexa53_tunings): Likewise.
15098 (cortexa57_tunings): Likewise.
15099 (xgene1_tunings): Likewise.
15101 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
15103 * config/arm/arm-cores.def: Add cortex-a72 and
15104 cortex-a72.cortex-a53.
15105 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
15106 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
15107 * config/arm/arm-tune.md: Regenerate.
15108 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
15109 "cortex-a72.cortex-a53".
15110 * doc/invoke.texi (ARM Options/-mtune): Likewise.
15112 2015-02-04 Nick Clifton <nickc@redhat.com>
15115 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
15117 (nonimmediate_di_operand): Likewise.
15119 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
15120 prefixes of known F5 using MSP430 MCUs.
15122 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15124 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
15125 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
15126 instead of __builtin_sqrt.
15128 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
15130 * varasm.c (do_assemble_alias): Follow transparent alias
15132 (default_assemble_visibility): Follow transparent alias
15133 chain for decl name.
15135 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15137 PR middle-end/62103
15138 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
15139 to compute size of referenced value in the constant case.
15141 2015-02-03 Jakub Jelinek <jakub@redhat.com>
15143 PR rtl-optimization/64756
15144 * cse.c (invalidate_dest): New function.
15145 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
15146 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
15147 invalidate and do not record it.
15149 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
15152 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
15153 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
15154 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
15155 atomic_nand<mode>_soft_tcb): New insns.
15156 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
15157 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
15158 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
15159 Split into atomic_not_fetchsi_hard if operands[0] is unused.
15160 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
15161 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15162 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
15163 atomic_not<mode>_hard if operands[0] is unused.
15164 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
15165 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
15166 if operands[0] is unused.
15167 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
15168 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
15169 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
15170 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15172 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
15173 into atomic_not<mode>_soft_tcb if operands[0] is unused.
15174 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
15175 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
15176 if operands[0] is unused.
15177 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
15178 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
15179 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
15180 atomic_nand_fetchsi_hard if operands[0] is unused.
15181 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
15182 atomic_nand<mode>_hard if operands[0] is unused.
15183 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
15184 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
15185 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
15186 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15187 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
15188 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
15189 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
15190 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15191 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
15192 atomic_not<mode>_hard if operands[0] is unused.
15193 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
15194 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15196 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
15197 into atomic_not<mode>_soft_tcb if operands[0] is unused.
15198 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
15199 atomic_nand<mode>_hard if operands[0] is unused.
15200 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
15201 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15203 2015-02-03 David Malcolm <dmalcolm@redhat.com>
15206 * Makefile.in (GCC_OBJS): Add gcc-main.o.
15207 * gcc-main.c: New file, containing "main" taken from gcc.c.
15208 * gcc.c (do_self_spec): Free decoded_options.
15209 (class driver): Move declaration to gcc.h.
15210 (main): Move declaration and implementation to new file
15212 (driver_get_configure_time_options): New function.
15213 * gcc.h (class driver): Move this declaration here, from
15215 (driver_get_configure_time_options): New declaration.
15217 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
15219 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
15220 cross-module inlining.
15221 * cgraph.h (cgraph_node): Add flag merged.
15222 * ipa-icf.c (sem_function::merge): Maintain it.
15224 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
15226 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
15227 instead of OBJECT_P.
15229 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
15232 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
15233 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
15234 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
15235 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
15237 2015-02-03 Jakub Jelinek <jakub@redhat.com>
15240 * combine.c (reg_n_sets_max): New variable.
15241 (can_change_dest_mode, reg_nonzero_bits_for_combine,
15242 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
15243 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
15244 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
15245 (rest_of_handle_combine): Initialize reg_n_sets_max.
15247 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
15249 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
15250 if some always_inline was inlined, apply changes before inlining
15253 2015-02-02 David Malcolm <dmalcolm@redhat.com>
15256 * config/arm/arm.c (arm_option_override): Set
15257 arm_selected_arch/cpu/tune to NULL on entry.
15259 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
15260 Andrew Pinski <pinskia@gcc.gnu.org>
15261 Jakub Jelinek <jakub@gcc.gnu.org>
15264 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
15265 integer typing for small model. Use IN_RANGE.
15267 2015-02-02 Richard Biener <rguenther@suse.de>
15269 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
15270 * tree-vrp.c (vrp_valueize_1): Likewise.
15272 2015-02-02 Alan Modra <amodra@gmail.com>
15274 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
15275 than mem for toc_restore.
15276 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
15277 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
15278 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
15280 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15283 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
15284 explicit default options.
15286 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
15289 * ipa-utils.c (ipa_merge_profiles): Add release argument.
15290 * ipa-icf.c (sem_function::merge): Do not release body when merging.
15291 * ipa-utils.h (ipa_merge_profiles): Update prototype.
15293 2015-02-01 Jakub Jelinek <jakub@redhat.com>
15296 * cfgexpand.c (deep_ter_debug_map): New variable.
15297 (avoid_deep_ter_for_debug): New function.
15298 (expand_debug_expr): If TERed SSA_NAME is in
15299 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
15300 instead of trying to expand SSA_NAME's def stmt.
15301 (expand_debug_locations): When expanding debug bind
15302 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
15303 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
15305 (pass_expand::execute): Call avoid_deep_ter_for_debug on
15306 all debug bind stmts. Delete deep_ter_debug_map after
15307 expand_debug_location if non-NULL and clear it.
15309 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
15312 * config/sh/sync.md (atomic_fetch_notsi_hard,
15313 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
15314 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
15315 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
15316 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
15317 atomic_not_fetch<mode>_soft_imask): New insns.
15319 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15321 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
15322 (rank_for_schedule_debug): Split from ...
15323 (rank_for_schedule): ... this.
15324 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
15325 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
15327 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
15329 * doc/md.texi (Machine Constraints): Alphabetize table by target.
15330 * doc/extend.texi (x86 Variable Attributes): Move section to
15331 correct alphabetization after renaming.
15332 (x86 Type Attributes): Likewise.
15333 (Target Builtins): Re-alphabetize menu.
15334 (x86 Built-in Functions): Move section to correct alphabetization
15336 (x86 transactional memory intrinsics): Likewise.
15337 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
15338 and x86 Windows Options in table and menu.
15339 (x86 Options): Move section to correct alphabetization after
15341 (x86 Windows Options): Likewise.
15343 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
15345 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
15346 preferred names of the architecture and its 32- and 64-bit
15348 * doc/invoke.texi: Likewise.
15349 * doc/md.texi: Likewise.
15351 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
15354 * config/i386/predicates.md (address_no_seg_operand): Reject
15355 non-CONST_INT_P operands in invalid mode.
15357 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
15359 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
15360 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
15361 * config/i386/predicates.md (address_no_seg_operand): Call
15362 address_operand with VOIDmode.
15363 (vsib_address_operand): Ditto.
15364 (address_mpx_no_base_operand): Ditto.
15365 (address_mpx_no_index_operand): Ditto.
15367 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
15370 * lra-constraints.c (original_subreg_reg_mode): New.
15371 (simplify_operand_subreg): Try to simplify subreg of const. Use
15372 original_subreg_reg_mode for it.
15373 (swap_operands): Update original_subreg_reg_mode.
15374 (curr_insn_transform): Set up original_subreg_reg_mode.
15376 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
15379 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
15381 (process_alt_operands): Use it.
15382 (curr_insn_transform): Check the optional reload pseudo class is
15385 2015-01-30 Joseph Myers <joseph@codesourcery.com>
15387 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
15388 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
15390 * toplev.h (init_asm_output): Update comment on use of
15391 UNKNOWN_LOCATION with fatal_error.
15392 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
15393 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
15394 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
15395 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
15396 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
15397 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
15398 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
15399 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
15400 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
15401 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
15402 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
15403 fatal_error changed to pass input_location as first argument.
15405 2015-01-30 Martin Liska <mliska@suse.cz>
15407 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
15408 in #pragma GCC diagnostic guards.
15410 2015-01-30 Richard Biener <rguenther@suse.de>
15412 PR tree-optimization/64829
15413 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
15414 not add a widening conversion pattern but hand off extra
15415 widenings to callers.
15416 (vect_recog_widen_mult_pattern): Handle extra widening produced
15417 by vect_handle_widen_op_by_const.
15418 (vect_recog_widen_shift_pattern): Likewise.
15419 (vect_pattern_recog_1): Remove excess vertical space in dumping.
15420 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15421 (vect_init_vector_1): Likewise.
15422 (vect_get_vec_def_for_operand): Likewise.
15423 (vect_finish_stmt_generation): Likewise.
15424 (vectorizable_load): Likewise.
15425 (vect_analyze_stmt): Likewise.
15426 (vect_is_simple_use): Likewise.
15428 2015-01-29 Jeff Law <law@redhat.com>
15430 * combine.c (try_combine): Fix typo in comment.
15432 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
15435 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
15436 (rs6000_stack_info): Add assert.
15437 (rs6000_output_savres_externs): New function, split off from...
15438 (rs6000_output_function_prologue): ... here. Do not call it for
15441 2015-01-29 Jeff Law <law@redhat.com>
15444 * combine.c (try_combine): If I0 is a memory load and I3 a store
15445 to a related address, increase the "goodness" of doing a 4-insn
15446 combination with I0-I3.
15447 (make_field_assignment): Handle SUBREGs in the ior+and case.
15449 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15451 PR tree-optimization/64746
15452 * tree-if-conv.c (mask_exists): New function.
15453 (predicate_mem_writes): Save created mask with given size for further
15455 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
15456 (ifcvt_repair_bool_pattern): Collect all statements that are root
15457 of bool pattern and use iterative algorithm to remove multiple uses
15458 of predicates, display number of required iterations.
15460 2015-01-29 Richard Biener <rguenther@suse.de>
15462 PR tree-optimization/64853
15463 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
15464 stmt will get simulated again.
15465 * tree-ssa-ccp.c (valueize_op_1): Likewise.
15467 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15469 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
15470 return_in_pc. Remove redundant assignments.
15471 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
15472 (arm_expand_epilogue): Don't compare boolean with true in if condition.
15474 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
15476 * config/i386/i386.c (ix86_mode_after): Make static.
15478 2015-01-29 Richard Biener <rguenther@suse.de>
15480 PR tree-optimization/64844
15481 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
15482 dump cost model analysis.
15483 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15484 Do not register adjusted load/store costs here.
15486 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
15487 Uros Bizjak <ubizjak@gmail.com>
15489 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
15490 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
15491 using x86_use_pseudo_pic_reg.
15492 * config/i386/i386.c (ix86_conditional_register_usage): Remove
15493 support for fixed PIC register.
15494 (ix86_use_pseudo_pic_reg): Not static any more.
15496 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
15498 PR middle-end/64805
15499 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
15500 to avoid error in cgraph node verification.
15502 2015-01-29 Marek Polacek <polacek@redhat.com>
15504 * doc/standards.texi: Reflect that the default for C is gnu11.
15506 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
15509 * reorg.c (switch_text_sections_between_p): New function.
15510 (relax_delay_slots): Call it when testing if the jump insn
15511 is removable. Use targetm.can_follow_jump when testing if
15512 the conditional branch can follow an unconditional jump.
15514 2015-01-27 Caroline Tice <cmtice@google.com>
15516 Committing VTV Cywin/Ming patch for Patrick Wollgast
15517 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
15518 if -fvtable-verify=preinit/std is used.
15519 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
15520 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
15521 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
15522 if -fvtable-verify=preinit/std is used.
15523 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15524 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
15525 if -fvtable-verify=preinit/std is used.
15526 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
15527 * config/i386/mingw32.h (LIB_SPEC): Likewise.
15528 * varasm.c (assemble_variable): Add code to properly set the comdat
15529 section and name for the .vtable_map_vars section in case the
15530 target is PE or COFF.
15532 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
15535 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
15536 make sane BB profile.
15537 (cgraph_node::expand_thunk): Make sane BB profile.
15538 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
15539 * cgraph.h (init_lowered_empty_function): Update prototype.
15540 * config/i386/i386.c (make_resolver_func): Update call.
15541 * predict.c (gate): Disable branch prediction pass if
15542 profile is already there.
15544 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
15546 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
15547 * opth-gen.awk: Likewise.
15548 * common.opt: Mark flag_fp_contract_mode as Optimization.
15550 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
15552 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
15553 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
15555 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
15558 * config/sh/predicates.md (atomic_arith_operand,
15559 atomic_logical_operand): Remove.
15560 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
15561 (atomic_arith_operand_0): New predicate.
15562 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
15563 Use atomic_arith_operand_0 for input values.
15564 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
15565 atomic_compare_and_swap<mode>_soft_gusa,
15566 atomic_compare_and_swap<mode>_soft_tcb,
15567 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
15568 arith_reg_operand instead of register_operand.
15569 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
15570 atomic_arith_operand_0 for newval input.
15571 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15572 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
15573 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
15574 arith_reg_operand instead of register_operand.
15575 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
15576 fetchop_predicate_1, fetchop_constraint_1_llcs,
15577 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
15578 fetchop_constraint_1_imask): New code iterator attributes.
15579 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
15580 register_operand. Use fetchop_predicate_1.
15581 (atomic_fetch_<fetchop_name>si_hard,
15582 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
15583 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
15584 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
15585 and arith_reg_operand instead of register_operand. Use
15586 fetchop_predicate_1, fetchop_constraint_1_gusa.
15587 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
15588 and arith_reg_operand instead of register_operand. Use
15589 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
15591 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
15592 and arith_reg_operand instead of register_operand. Use
15593 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
15595 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
15596 register_operand. Use atomic_logical_operand_1.
15597 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
15598 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
15599 arith_reg_operand instead of register_operand.
15600 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
15601 Use arith_reg_dest and arith_reg_operand instead of register_operand.
15602 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
15603 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
15604 register_operand. Use fetchop_predicate_1.
15605 (atomic_<fetchop_name>_fetchsi_hard,
15606 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
15607 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15608 fetchop_constraint_1_llcs.
15609 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
15610 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15611 fetchop_constraint_1_gusa.
15612 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
15613 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15614 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
15615 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
15616 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15617 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
15618 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
15619 register_operand. Use atomic_logical_operand_1.
15620 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
15621 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
15622 arith_reg_operand instead of register_operand.
15623 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
15624 arith_reg_operand instead of register_operand. Use logical_operand
15625 and K08. Adjust asm sequence to allow R0 usage.
15626 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
15627 arith_reg_operand instead of register_operand. Use logical_operand
15630 2015-01-28 Jakub Jelinek <jakub@redhat.com>
15633 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
15634 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
15635 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
15636 only get_full_len HOST_WIDE_INTs from get_val () array rather than
15637 all bits in *val_wide.
15639 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
15641 * varpool.c (tls_model_names): Fix names.
15642 (varpool_node::dump): Dump tls- prefix for tls models.
15644 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
15645 Bernd Schmidt <bernds@codesourcery.com>
15646 Nathan Sidwell <nathan@codesourcery.com>
15648 * config/nvptx/mkoffload.c: New file.
15649 * config/nvptx/t-nvptx: Add build rules for it.
15650 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
15651 (extra_programs): Add mkoffload.
15652 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
15654 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
15656 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15658 PR middle-end/64809
15659 * cfgexpand.c (reorder_operands): Skip debug gimples.
15661 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
15663 PR tree-optimization/64277
15664 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
15665 range info when possible to refine estimation.
15667 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15669 PR tree-optimization/64718
15670 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
15671 be a 16bit unsigned integer when n->range is 16.
15672 (bswap_replace): Convert src to that type if necessary for all bswap
15673 sizes. Fix rotation right notation in nearby comment. Use bswap_type
15674 set in pass_optimize_bswap::execute ().
15676 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
15678 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
15679 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
15680 integer and floating point variants.
15681 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
15683 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
15685 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
15686 for all vector modes.
15688 2015-01-28 Jakub Jelinek <jakub@redhat.com>
15691 * doc/sourcebuild.texi (comdat_group): Document.
15693 2015-01-28 Terry Guo <terry.guo@arm.com>
15695 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
15697 2015-01-27 David Malcolm <dmalcolm@redhat.com>
15699 * toplev.c (print_version): Add param "show_global_state", and
15700 only print GGC and plugin information if it is true.
15701 (init_asm_output): Pass in "true" for the new param when calling
15703 (process_options): Likewise.
15704 (toplev::main): Likewise.
15705 * toplev.h (print_version): Add new param to decl.
15707 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
15711 * tree.c (lookup_binfo_at_offset): New function.
15712 (get_binfo_at_offset): Use it.
15714 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
15717 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
15718 on vtable being vtable.
15720 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15722 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
15723 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
15724 -mhotpatch= option.
15725 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
15726 -mno-hotpatch options. Change syntax of -mhotpatch= option.
15727 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
15729 (s390_hotpatch_trampoline_halfwords_max): Renamed.
15730 (s390_hotpatch_hw_max): New name.
15731 (s390_hotpatch_trampoline_halfwords): Renamed.
15732 (s390_hotpatch_hw_before_label): New name.
15733 (get_hotpatch_attribute): Removed.
15734 (s390_hotpatch_hw_after_label): New name.
15735 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
15737 (s390_attribute_table): Ditto.
15738 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
15739 (s390_function_num_hotpatch_hw): New name.
15740 Remove special handling of inline functions and hotpatching.
15741 Return number of nops before and after the function label.
15742 (s390_can_inline_p): Removed.
15743 (s390_asm_output_function_label): Emit a configurable number of nops
15744 after the function label.
15745 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
15746 (TARGET_CAN_INLINE_P) Removed.
15747 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
15749 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15750 Jiong Wang <jiong.wang@arm.com>
15752 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
15754 (cb<optab><mode>1): Likewise.
15755 * config/aarch64/iterators.md (bcond): New define_code_attr.
15757 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15759 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
15762 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15764 * config/s390/s390.c (s390_register_move_cost): Increase costs for
15767 2015-01-27 Richard Biener <rguenther@suse.de>
15769 * tree-vrp.c (update_value_range): Intersect the range with
15770 old recorded SSA name range information.
15772 2015-01-27 Nick Clifton <nickc@redhat.com>
15774 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
15775 BC, DE and HL registers directly, not via AX.
15776 When decrementing the stack pointer by a large amount, transfer SP
15777 into AX and perform the subtraction there.
15778 (rl78_expand_epilogue): Perform the inverse of the above
15781 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15783 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
15785 2015-01-27 Jakub Jelinek <jakub@redhat.com>
15786 Yury Gribov <y.gribov@samsung.com>
15789 * ubsan.c (ubsan_source_location): Refactor code.
15790 (ubsan_type_descriptor): Update type size. Refactor code.
15792 2015-01-27 Richard Biener <rguenther@suse.de>
15794 PR tree-optimization/56273
15795 PR tree-optimization/59124
15796 PR tree-optimization/64277
15797 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
15798 from the first VRP pass.
15800 2015-01-27 Jakub Jelinek <jakub@redhat.com>
15803 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
15804 handle the first argument in the same loop as all the other arguments.
15806 PR rtl-optimization/61058
15807 * jump.c (cleanup_barriers): Update basic block boundaries
15808 if BLOCK_FOR_INSN is non-NULL on PREV.
15810 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
15812 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
15813 bounds narrowing, already instrumented calls and calls to
15814 not instrumentable functions.
15816 2015-01-27 Jakub Jelinek <jakub@redhat.com>
15818 PR tree-optimization/64807
15819 * wide-int.cc (wi::divmod_internal): Clear
15820 b_dividend[dividend_blocks_needed].
15822 2015-01-26 DJ Delorie <dj@redhat.com>
15824 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
15825 volatile memory references.
15827 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
15830 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
15832 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
15833 shifts if it already fits into K08.
15835 2015-01-26 Jakub Jelinek <jakub@redhat.com>
15838 * ipa-inline.c (inline_small_functions): Print "unknown" even
15839 if edge->call_stmt is non-NULL, but has builtins or unknown
15842 PR middle-end/64421
15843 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15844 with asterisk, skip the first character.
15846 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
15849 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15852 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
15855 * config/i386/i386.md (*movdi_internal): Also check operand 0
15856 to determine TYPE_LEA operand.
15857 (*movsi_internal): Ditto.
15859 2015-01-26 Jakub Jelinek <jakub@redhat.com>
15861 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15862 OPTION_MASK_QUAD_MEMORY_ATOMIC.
15864 2015-01-26 Renlin Li <renlin.li@arm.com>
15866 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15868 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15871 2015-01-26 Richard Biener <rguenther@suse.de>
15873 PR middle-end/64764
15874 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15875 combining two BIT_AND_EXPR predicates.
15877 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
15880 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15882 2015-01-26 Terry Guo <terry.guo@arm.com>
15884 * config/arm/arm.c (arm_file_start): Update the assignment of
15885 Tag_ABI_HardFP_use.
15887 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
15889 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15891 config/arm/arm.md: Include the new Cortex-A57 model.
15892 (generic_sched): Don't use generic_sched when tuning for
15895 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
15896 Uros Bizjak <ubizjak@gmail.com>
15898 * config/i386/i386.c (get_builtin_code_for_version): Add
15899 support for BMI and BMI2 multiversion functions.
15901 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15903 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15904 (extract_bit_field): Likewise.
15905 (extract_low_bits): Likewise.
15906 (expand_mult): Likewise.
15907 (expand_mult_highpart_adjust): Likewise.
15909 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
15911 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15912 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15913 * config/i386/i386.c (processor_model): Add
15914 M_INTEL_COREI7_BROADWELL.
15915 (arch_names_table): Add "broadwell".
15917 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
15926 * config/sh/sh-protos.h
15927 (sh_extending_set_of_reg::can_use_as_unextended_reg,
15928 sh_extending_set_of_reg::use_as_unextended_reg,
15929 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15930 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15931 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15932 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15933 (sh_treg_insns): New class.
15934 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15935 (scope_counter): New class.
15936 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15937 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15938 sh_extending_set_of_reg::can_use_as_unextended_reg,
15939 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15940 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15941 sh_split_treg_set_expr): New functions.
15942 (addsubcosts): Handle treg_set_expr.
15943 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15944 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15945 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15946 (sh_insn_operands_modified_between_p): Make non-static.
15947 * config/sh/predicates.md (zero_extend_movu_operand): Allow
15948 simple_mem_operand in addition to displacement_mem_operand.
15949 (zero_extend_operand): Don't allow zero_extend_movu_operand.
15950 (treg_set_expr, treg_set_expr_not_const01,
15951 arith_reg_or_treg_set_expr): New predicates.
15952 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15953 arith_or_int_operand instead of logical_operand. Convert to
15954 insn_and_split. Try to optimize constant operand in splitter.
15955 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
15956 (*tstqi_t_zero): Delete.
15957 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15958 (tstsi_t_and_not): Delete.
15959 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15960 Convert to insn_and_split.
15961 (unnamed split, tstsi_t_zero_extract_xor,
15962 tstsi_t_zero_extract_subreg_xor_little,
15963 tstsi_t_zero_extract_subreg_xor_big): Delete.
15964 (*tstsi_t_shift_mask): New insn_and_split.
15965 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15966 to recombine with surrounding insns when splitting.
15967 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15968 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15969 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15970 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15971 (*cbranch_div0s: Delete.
15972 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15973 Try to recombine with surrounding insns when splitting. Add operand
15975 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15976 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15977 *addc_r_r_msb, *addc_2r_msb): Delete.
15978 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
15980 (*addc_negreg_t): New insn_and_split.
15981 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15982 Try to recombine with surrounding insns when splitting.
15983 Add operand order variants.
15984 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15985 insn_and_split patterns.
15986 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
15987 surrounding insns when splitting.
15988 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15989 (*rotcl): Likewise. Add zero_extract variant.
15990 (*ashrsi2_31): New insn_and_split.
15991 (*negc): Convert to insn_and_split. Use treg_set_expr.
15992 (*zero_extend<mode>si2_disp_mem): Update comment.
15993 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15995 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
15996 with surrounding insns when splitting.
15997 (any_treg_expr_to_reg): New insn_and_split.
15998 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15999 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
16000 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
16001 *zero_extract_2): New single bit zero extract patterns.
16002 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
16003 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
16004 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
16005 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
16007 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
16008 register_operand for set source.
16010 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
16012 * i386.opt (prefetch_sse): New targetsave.
16013 * i386.c (ix86_function_specific_save): Save prefetch_sse.
16014 (ix86_function_specific_restore): Restore prefetch_sse and initialize
16015 ix86_cost/ix86_tune_cost.
16017 2015-01-23 David Malcolm <dmalcolm@redhat.com>
16019 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
16020 Support the JIT by using 0 as the language type.
16022 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
16025 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
16026 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
16027 (mark_regno_live, process_bb_lives): Pass new parameter value to
16028 make_hard_regno_born.
16030 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16032 PR rtl-optimization/63637
16033 PR rtl-optimization/60663
16034 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
16035 if elt->cost is MAX_COST for ASM_OPERANDS.
16036 (find_sets_in_insn): Fix up comment typo.
16037 (cse_insn): Don't set src_volatile for all non-volatile
16038 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
16039 or with "memory" clobber. Set elt->cost to MAX_COST
16040 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
16041 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
16043 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
16045 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
16048 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
16050 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
16051 libgcc/config/i386/elf-lib.h.
16053 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16056 * gcc.c (print_configuration): Don't print a blank line at the end
16058 (run_attempt): ... but here unstead.
16060 PR middle-end/64734
16061 * omp-low.c (scan_sharing_clauses): Don't ignore
16062 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
16063 on target data/update constructs.
16065 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
16068 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
16069 (DEBUG_RELOAD): Removed define.
16070 (m32c_limit_reload_class): Enable traces with if DEBUG0.
16071 (m32c_function_arg): Added a type cast.
16072 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
16073 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
16074 * config/m32c/bitops.md (andqi3_16): Likewise.
16075 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
16076 (push_a01_l): Likewise.
16078 2015-01-23 David Malcolm <dmalcolm@redhat.com>
16081 * main.c (main): Construct toplev instances with init_signals=true.
16082 * toplev.c (general_init): Add param "init_signals", and use it to
16083 conditionalize the calls to signal and host_hooks.extra_signals.
16084 (toplev::toplev): Add param "init_signals".
16085 (toplev::main): When invoking general_init, pass m_init_signals
16086 to control whether signal-handlers are installed.
16087 * toplev.h (toplev::toplev): Add param "init_signals".
16088 (toplev::m_init_signals): New field.
16090 2015-01-23 David Malcolm <dmalcolm@redhat.com>
16093 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
16094 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
16095 latter may be affected by the former (e.g. on i686).
16097 2015-01-23 Martin Liska <mliska@suse.cz>
16099 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
16100 false positive during profiledbootstrap.
16102 2015-01-23 Tom de Vries <tom@codesourcery.com>
16105 * lto-opts.c (lto_write_options): Output non-explicit conservative
16107 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
16108 (append_compiler_options): Pass -fopenacc through.
16110 2015-01-23 Tom de Vries <tom@codesourcery.com>
16113 * lto-opts.c (lto_write_options): Output non-explicit conservative
16115 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
16116 (append_compiler_options): Pass -fopenmp through.
16118 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16121 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
16124 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
16125 * diagnostic.def (DK_ICE_NOBT): New kind.
16126 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
16127 like DK_ICE, but never print backtrace.
16128 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
16129 (internal_error_no_backtrace): New function.
16130 * gcc.c (execute): Use internal_error_no_backtrace instead of
16133 2015-01-22 Jeff Law <law@redhat.com>
16136 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
16137 improve code density for small immediate to memory case.
16138 (insv): Better handle bitfield assignments when the field is
16139 being set to all ones.
16140 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
16143 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16144 Jakub Jelinek <jakub@redhat.com>
16146 PR middle-end/64729
16147 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
16148 for !TARGET_LIBC_PROVIDES_SSP version and
16149 -fstack-protector-{all,strong,explicit} otherwise.
16150 * config/freebsd.h (LINK_SSP_SPEC): Handle
16151 -fstack-protector-{strong,explicit}.
16153 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
16154 H.J. Lu <hongjiu.lu@intel.com>
16157 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
16160 2015-01-22 Wei Mi <wmi@google.com>
16162 PR rtl-optimization/64557
16163 * dse.c (record_store): Call get_addr for mem_addr.
16164 (check_mem_read_rtx): Likewise.
16166 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
16168 * fold-const.c (const_binop): Add early return for non-tcc_binary.
16170 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
16172 * toplev.c (init_local_tick): Process the failure when read
16173 fails for random_seed.
16175 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
16176 'pretty_name' to avoid memory overflow.
16178 2015-01-22 Richard Biener <rguenther@suse.de>
16180 PR middle-end/64728
16181 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
16182 abnormal coalescing on undefined SSA names.
16184 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
16188 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
16190 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
16192 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
16194 PR middle-end/63325
16195 * fold-const.c (fold_checksum_tree): Don't include value of
16196 expr->decl_with_vis.symtab_node in the checksum.
16198 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16200 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
16202 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
16205 * gcc.c (insert_comments): New function.
16206 (try_generate_repro): Call it.
16207 (append_text): Removed.
16209 2015-01-22 Richard Biener <rguenther@suse.de>
16211 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
16212 with IL incompatible options. Properly honor user optimize
16215 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
16217 PR rtl-optimization/64682
16218 * combine.c (distribute_notes): When moving a death note for
16219 a register that is set in the new I2, make sure to put it
16220 before that new I2.
16222 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
16224 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
16225 not TARGET_DEFAULT.
16227 2015-01-21 Jakub Jelinek <jakub@redhat.com>
16230 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
16231 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
16232 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
16235 * doc/invoke.texi (-fsanitize=vptr): Document.
16237 PR rtl-optimization/62078
16238 * dse.c: Include cfgcleanup.h.
16239 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
16240 anything call purge_all_dead_edges and cleanup_cfg at the end
16243 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
16245 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
16248 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16250 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
16253 2015-01-21 David Sherwood <david.sherwood@arm.com>
16254 Tejas Belagod <Tejas.Belagod@arm.com>
16256 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
16257 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
16258 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
16261 2015-01-21 David Sherwood <david.sherwood@arm.com>
16262 Tejas Belagod <Tejas.Belagod@arm.com>
16264 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
16265 (aarch64_reverse_mask): New decls.
16266 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
16267 (insn_count): New mode_attr.
16268 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
16269 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
16270 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
16271 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
16272 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
16273 (aarch64_simd_st4): New patterns.
16274 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
16275 (aarch64_reverse_mask): New functions.
16277 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
16279 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
16281 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
16282 addressing modes for BE.
16283 (aarch64_print_operand): Add 'R' specifier.
16284 (aarch64_simd_disambiguate_copy): Delete.
16285 (aarch64_simd_emit_reg_reg_move): New function.
16286 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
16287 in define_splits for structural moves.
16288 (mov<mode>): Use less restrictive predicates.
16289 (*aarch64_mov<mode>): Simplify and only allow for LE.
16290 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
16292 2015-01-21 Alan Hayward <alan.hayward@arm.com>
16294 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
16296 2015-01-21 Richard Henderson <rth@redhat.com>
16299 * ccmp.c (used_in_cond_stmt_p): Remove.
16300 (expand_ccmp_expr): Don't use it.
16302 2015-01-21 Nick Clifton <nickc@redhat.com>
16304 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
16307 2015-01-21 Richard Biener <rguenther@suse.de>
16309 PR middle-end/64313
16310 * tree-core.h (builtin_info, builtin_info_type): Turn from
16311 an object with two arrays into an array of an object with
16312 decl and two flags, implicit_p and declared_p.
16313 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
16314 set_builtin_decl, set_builtin_decl_implicit_p,
16315 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
16316 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
16317 * builtins.c (builtin_info): Adjust.
16318 * gimplify.c (gimplify_addr_expr): References to builtins
16319 that have been declared by the user makes them eligible for
16320 use by the compiler. Call set_builtin_decl_implicit_p on them.
16322 2015-01-20 Jeff Law <law@redhat.com>
16325 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
16326 allow pc-relative addresses in operand predicates or constraints.
16328 2015-01-21 Bin Cheng <bin.cheng@arm.com>
16330 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
16331 neon on aarch32 processors for stringops.
16333 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16336 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
16338 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16341 * ipa-inline.c: Include lto-streamer.h
16342 (report_inline_failed_reason): Output source file differences and
16343 flags on optimization/target node mismatch.
16344 (can_inline_edge_p): Consider caller to be the outer inline function;
16345 be less restrictive about matching opimize and optimize_size attributes.
16346 (inline_account_function_p): Break out from ...
16347 (inline_small_functions): ... here.
16348 * ipa-inline-transform.c (clone_inlined_nodes): Use
16349 inline_account_function_p.
16350 (inline_call): Use optimize attribution; use inline_account_function_p.
16351 (inline_transform): Use opt_for_fn.
16352 * ipa-inline.h (inline_account_function_p): Declare.
16354 2015-01-20 Jakub Jelinek <jakub@redhat.com>
16357 * dwarf2out.c (decl_piece_node): Don't put bitsize into
16358 mode if bitsize <= 0.
16359 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
16360 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
16361 sizes and positions.
16363 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
16365 * config/nios2/nios2.c (nios2_asm_file_end): Implement
16366 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
16368 (TARGET_ASM_FILE_END): Define.
16370 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16372 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
16373 (struct tune_params): Use the enum.
16374 * arm.c (arm_*_tune): Update.
16375 (arm_option_override): Update.
16377 2015-01-20 Richard Biener <rguenther@suse.de>
16380 * ipa-reference.c (add_static_var): Inline ...
16381 (analyze_function): ... here after splitting out from ...
16382 (is_proper_for_analysis): ... this.
16384 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
16387 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
16388 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
16389 replace the conditional with it's true branch.
16390 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
16391 (arm_lra_p): Remove.
16393 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
16395 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
16397 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16399 * config/tilegx/mul-tables.c: Move symtab.h include after
16400 coretypes.h include.
16401 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
16402 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
16403 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
16404 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
16405 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16407 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
16411 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
16413 PR rtl-optimization/64081
16414 * loop-iv.c (def_pred_latch_p): New function.
16415 (latch_dominating_def): Allow specific cases with non-single
16417 (iv_get_reaching_def): Likewise.
16418 (check_complex_exit_p): New function.
16419 (check_simple_exit): Use check_complex_exit_p to allow certain cases
16420 with exits not executing on any iteration.
16422 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16425 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
16426 to set branch cost.
16428 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16431 * i386.c (gate): Check flag_expensive_optimizations and
16433 (ix86_option_override_internal): Drop optimize_size condition
16434 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
16435 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
16436 MASK_PREFER_AVX128.
16437 (ix86_avx256_split_vector_move_misalign,
16438 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
16439 * sse.md (all uses of TARGET_PREFER_AVX128): Add
16440 optimize_insn_for_speed_p check.
16442 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
16444 * config/mips/mips.h (FP_ASM_SPEC): New define.
16445 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
16448 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
16451 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
16452 nullptr for insn when reaching the first insn.
16453 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
16454 (sh_insn_operands_modified_between_p): Add nullptr check.
16455 (sh_find_extending_set_of_reg): Fix log message. Don't accept
16456 sign extending mem load if the insn contains any UNSPEC or
16459 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16461 * params.def (inline-unit-growth): Drop to 15%.
16462 * invoke.texi (inline-unit-growth): Document change.
16464 2015-01-19 Martin Liska <mliska@suse.cz>
16467 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
16468 function for second argument of OBJ_TYPE_REF.
16470 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16473 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
16474 whether function is an alias.
16476 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16478 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
16481 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
16483 PR rtl-optimization/64671
16484 * lra-remat.c (operand_to_remat): Don't consider jump and call
16487 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
16490 * config/rs6000/default64.h: Include rs6000-cpus.def.
16491 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
16492 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
16493 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
16495 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
16497 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
16498 pseudo-op to specify assembler dialect.
16500 2015-01-19 Martin Liska <mliska@suse.cz>
16503 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
16504 Handle safe potentially removed nodes during filtering.
16506 2015-01-19 Martin Liska <mliska@suse.cz>
16508 * doc/extend.texi (no_icf): Add new attribute description.
16509 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
16510 where the pass attempts to merge a function with no_icf attribute.
16512 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16515 * doc/md.texi (ARM Options): Document register constraints.
16517 2015-01-19 Jiong Wang <jiong.wang@arm.com>
16518 Andrew Pinski <apinski@cavium.com>
16521 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
16522 (ashl<mode>3): Don't expand if operands[2] is not constant.
16524 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16527 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
16528 Match xor-and-xor RTL pattern.
16530 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
16532 PR rtl-optimization/64081
16533 * loop-iv.c (def_pred_latch_p): New function.
16534 (latch_dominating_def): Allow specific cases with non-single
16536 (iv_get_reaching_def): Likewise.
16537 (check_complex_exit_p): New function.
16538 (check_simple_exit): Use check_complex_exit_p to allow certain cases
16539 with exits not executing on any iteration.
16541 2015-01-19 Jakub Jelinek <jakub@redhat.com>
16543 * common.opt (fgraphite): Fix a typo.
16545 2015-01-19 Felix Yang <felix.yang@huawei.com>
16547 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
16549 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
16550 uminp, smax_nanp, smin_nanp): New builtins.
16551 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
16552 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
16553 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
16554 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
16555 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
16556 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
16557 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
16558 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
16559 vpminnms_f32): Rewrite using builtin functions.
16561 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16564 * omp-low.c (offload_symbol_decl): Remove variable.
16565 (get_offload_symbol_decl): Remove function.
16566 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
16567 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
16568 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
16569 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
16570 BUILT_IN_GOACC_UPDATE don't pass it at all.
16572 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
16574 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
16577 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
16579 * ipa-chkp.c (chkp_produce_thunks): Add early param
16580 to split thunks production into two passes. Keep
16581 'always_inline' function bodies after the first pass.
16582 (pass_data_ipa_chkp_early_produce_thunks): New.
16583 (pass_ipa_chkp_early_produce_thunks): New.
16584 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
16585 chkp_produce_thunks signature.
16586 (make_pass_ipa_chkp_early_produce_thunks): New.
16587 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
16588 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
16589 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
16591 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
16593 * cgraph.c (cgraph_node::dump): Dump profile flags.
16595 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
16598 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
16599 reg appear first in the parallel.
16601 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
16603 * ipa-reference.c (set_reference_optimization_summary,
16604 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
16606 (ignore_module_statics): New static var.
16607 (propagate_bits): If ipa-reference is disabled, do not look into local
16609 (analyze_function): Disable analysis when ipa_reference is disabled.
16610 (generate_summary): Do not dump when reference is disabled;
16611 collect vars accessed from functions with ipa-reference disabled.
16612 (get_read_write_all_from_node): When ipa-reference is disabled, use the
16614 (gate): Enable for LTO.
16615 (ignore_edge_p): New function.
16616 (propagate): Skip functions w/o ipa-reference analysis.
16617 * optc-save-gen.awk: Handle optimize_debug correctly.
16618 * opth-gen.awk: Likewise.
16619 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
16620 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
16621 fira-share-save-slots, fira-share-spill-slots,
16622 fmodulo-sched-allow-regmoves, fpartial-inlining,
16623 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
16624 ftracer, ftree-parallelize-loops, fassociative-math,
16625 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
16627 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
16628 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
16630 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
16633 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
16636 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
16638 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
16640 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
16642 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
16643 Remove duplicate option listings.
16645 2015-01-18 Felix Yang <felix.yang@huawei.com>
16647 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
16648 (autofdo_source_profile::get_callsite_total_count,
16649 function_instance::get_function_instance_by_decl,
16650 string_table::get_index, string_table::get_index_by_decl,
16651 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
16652 Fix comment typos. Reformatting and minor code rearrangement.
16654 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
16656 * config/rs6000/rs6000.md (probe_stack): Delete.
16657 (probe_stack_address): New.
16659 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
16661 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
16662 to test for 32-bit ABIs, not !TARGET_POWERPC64.
16664 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
16666 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
16667 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
16668 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
16670 (rs6000_libcall_value): Use the new function.
16672 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
16674 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
16676 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
16678 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
16679 implement a more precise life analysis for it during backward scan.
16681 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
16683 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
16685 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
16687 PR rtl-optimization/52773
16688 * calls.c (emit_library_call_value): When pushing arguments use
16689 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
16690 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
16691 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
16693 2015-01-17 Jeff Law <law@redhat.com>
16695 PR rtl-optimization/32790
16696 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
16697 not ZERO_EXTEND in SET_DESTs.
16699 2015-01-17 Alan Modra <amodra@gmail.com>
16701 * cprop.c (do_local_cprop): Revert last change.
16703 2015-01-16 DJ Delorie <dj@redhat.com>
16704 Nick Clifton <nickc@redhat.com>
16706 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
16707 (addhi3_real): Likewise. Fix [HL+0] syntax.
16708 (subqi3_real): Likewise.
16709 (subhi3_real): Likewise.
16710 (cbranchqi4_real): Likewise. Allow saddr,#imm.
16711 (cbranchhi4_real): Likewise.
16712 (cbranchhi4_real_inverted): Likewise.
16713 (cbranchsi4_real_lt): Likewise.
16714 (cbranchsi4_real_ge): Likewise.
16715 (cbranchsi4_real_ge): Likewise.
16716 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
16717 (sub<mode>3_virt): Likewise.
16718 (cbranchqi4_virt): Likewise.
16719 (cbranchhi4_virt): Likewise.
16720 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
16721 always use '[reg+imm]' even when imm is zero.
16722 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
16723 (rl78_general_operand): New.
16724 (rl78_nonimmediate_operand): New.
16725 (rl78_nonfar_operand): Use them.
16726 (rl78_nonfar_nonimm_operand): Likewise.
16727 (rl78_stack_based_mem): Fix.
16728 * config/rl78/constraints.md (Ibqi): New.
16733 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
16734 (iorqi3): Likewise.
16735 (xorqi3): Likewise.
16736 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
16738 * config/rl78/constrains (Qs8): New constraint.
16739 * config/rl78/rl78.c (rl78_flags_already_set): New function.
16740 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
16741 * config/rl78/rl78-real.md (update_Z): New attribute.
16742 Update patterns to set it.
16743 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
16744 shorter compare and branch sequence can be used.
16745 (cbranchhi4_real): Likewise.
16746 (cbranchhi4_real_inverted): Likewise.
16748 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
16749 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
16751 * config/rl78/rl78.c (rl78_get_name_encoding): New.
16752 (rl78_option_override): Allow -mes0 only if C.
16753 (characterize_address): Support subregs of symbol_refs.
16754 (rl78_addr_space_address_mode): Move. Add __near.
16755 (rl78_far_p): Likewise.
16756 (rl78_addr_space_pointer_mode): Likewise.
16757 (rl78_as_legitimate_address): Likewise.
16758 (rl78_addr_space_subset_p): Likewise.
16759 (rl78_addr_space_convert): Likewise.
16760 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
16761 symbols with -mes0.
16762 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
16764 (rl78_alloc_physical_registers_op1): Change logic to prefer
16765 symbol[BC] addressing.
16766 (frodata_section): New.
16767 (rl78_asm_init_sections): Initialize it.
16768 (rl78_select_section): Put __far readonly symbols in .frodata.
16769 (rl78_make_type_far): New.
16770 (rl78_insert_attributes): Force all readonly symbols to be
16772 (rl78_asm_out_integer): New.
16773 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
16774 * config/rl78/rl78.opt (-mes0): New.
16776 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
16777 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16778 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16779 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
16780 (rl78_saddr_p): New.
16781 (rl78_output_aligned_common): New.
16782 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
16783 (rl78_handle_saddr_attribute): New.
16784 (rl78_handle_naked_attribute): New.
16785 (rl78_attribute_table): Add saddr.
16786 (rl78_print_operand_1): Don't print '!' on saddr operands.
16787 (rl78_print_operand_1): Strip encodings.
16789 (rl78_strip_name_encoding): New.
16790 (rl78_attrlist_to_encoding): New.
16791 (rl78_encode_section_info): New.
16792 (rl78_asm_init_sections): New.
16793 (rl78_select_section): New.
16794 (rl78_output_labelref): New.
16795 (rl78_output_aligned_common): New.
16796 (rl78_asm_out_integer): New.
16797 (rl78_asm_ctor_dtor): New.
16798 (rl78_asm_constructor): New.
16799 (rl78_asm_destructor): New.
16801 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
16802 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
16803 (transcode_memory_rtx): Update.
16804 (rl78_expand_epilogue): Use A_REG instead of 0.
16806 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16808 * config/arm/arm-protos.h (struct tune_params): New field
16809 sched_autopref_queue_depth.
16810 * config/arm/arm.c (sched-int.h): Include header.
16811 (arm_first_cycle_multipass_dfa_lookahead_guard,)
16812 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
16813 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
16814 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
16815 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
16816 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
16817 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
16818 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
16819 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
16820 * config/arm/t-arm (arm.o): Update.
16821 * haifa-sched.c (update_insn_after_change): Update.
16822 (rank_for_schedule): Use auto-prefetcher model, if requested.
16823 (autopref_multipass_init): New static function.
16824 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
16825 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
16826 variable for debug dumps.
16827 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
16828 (autopref_multipass_dfa_lookahead_guard): New global function that
16829 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
16830 (init_h_i_d): Update.
16831 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
16832 * sched-int.h (enum autopref_multipass_data_status): New const enum.
16833 (autopref_multipass_data_): Structure for auto-prefetcher data.
16834 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
16835 (struct _haifa_insn_data:autopref_multipass_data): New field.
16836 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
16837 (autopref_multipass_dfa_lookahead_guard): Declare.
16839 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16841 * rtlanal.c (get_base_term): Handle SCRATCH.
16843 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16845 * config/aarch64/aarch64.c
16846 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16847 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16849 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16850 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16852 2015-01-17 Alan Modra <amodra@gmail.com>
16854 * cprop.c (do_local_cprop): Disallow replacement of fixed
16857 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16860 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16863 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16865 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16866 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16868 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16870 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16871 * config/arm/thumb1.md: ... Here.
16873 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16875 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16876 TImode for TARGET_32BIT.
16878 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16880 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16881 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16883 (rs6000_abi_word_mode): New function.
16885 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16887 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16888 instead of UNITS_PER_WORD to describe the size of stack slots.
16890 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16892 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16893 as rs6000_promote_function_mode. Move comment to there.
16894 (rs6000_promote_function_mode): New function.
16896 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16898 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16899 -mpowerpc64 is active.
16901 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16903 PR middle-end/64353
16904 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16907 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16909 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16910 introduced in revision 219724.
16912 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16913 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16916 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16917 destination is not a GP reg.
16918 (*movdi_aarch64): Likewise.
16920 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
16923 * config/rs6000/default64.h: Revert ISA change.
16925 2015-01-16 Richard Biener <rguenther@suse.de>
16927 PR middle-end/64614
16928 * tree-ssa-uninit.c: Include tree-cfg.h.
16929 (MAX_SWITCH_CASES): New define.
16930 (convert_control_dep_chain_into_preds): Handle switch statements.
16931 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16932 (normalize_one_pred_1): Do not split bit-manipulations.
16935 2015-01-16 Richard Biener <rguenther@suse.de>
16937 PR tree-optimization/64568
16938 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16939 complex load rewriting for TARGET_MEM_REFs.
16941 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
16943 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16945 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
16948 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16950 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16951 (aarch64_lra_p): Remove.
16953 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16956 * ipa-chkp.h (chkp_instrumentable_p): New.
16957 * ipa-chkp.c: Include tree-inline.h.
16958 (chkp_instrumentable_p): New.
16959 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16960 Fix processing of not instrumentable functions.
16961 (chkp_versioning): Use chkp_instrumentable_p. Warn about
16962 not instrumentable functions.
16963 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16964 chkp_instrumentable_p.
16965 * tree-inline.h (copy_forbidden): New.
16966 * tree-inline.c (copy_forbidden): Not static anymore.
16968 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16970 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16973 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16975 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16976 type OP_OUT to OP_INOUT.
16978 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16980 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16981 (high x) y) to y if x and y have the same base.
16983 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16985 * config/arm/cortex-a57.md: New.
16986 * config/aarch64/aarch64.md: Include it.
16987 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16988 * config/aarch64/aarch64-tune.md: Regenerate.
16990 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
16993 * ccmp.c (expand_ccmp_next): New function.
16994 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16995 and compare insn sequence.
16996 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16997 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16998 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16999 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
17000 (*ccmp_ior): Changed to ccmp_ior<mode>.
17001 (cmp<mode>): New pattern.
17002 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
17004 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
17006 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
17008 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
17009 _mm256_bsrli_epi128): New.
17010 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
17012 2015-01-15 Jiong Wang <jiong.wang@arm.com>
17014 * expmed.c (store_bit_field_using_insv): Improve warning message.
17015 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
17017 2015-01-15 Jiong Wang <jiong.wang@arm.com>
17019 PR rtl-optimization/64011
17020 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
17021 there is partial overflow.
17023 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17025 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
17027 (nds32_expand_epilogue_v3pop): Likewise.
17028 * config/nds32/nds32.md (sibcall): Define this for sibling call
17030 (sibcall_register): Likewise.
17031 (sibcall_immediate): Likewise.
17032 (sibcall_value): Likewise.
17033 (sibcall_value_register): Likewise.
17034 (sibcall_value_immediate): Likewise.
17035 (sibcall_epilogue): Likewise.
17036 (epilogue): Pass false to indicate this is not a sibcall epilogue.
17037 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
17038 (nds32_expand_epilogue_v3pop): Likewise.
17040 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17042 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
17043 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
17044 (return_internal): New.
17045 (return): Define this named pattern.
17046 (simple_return): Define this named pattern.
17047 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
17048 pattern instead of unspec_volatile_func_return.
17049 (nds32_expand_epilogue_v3pop): Likewise.
17050 (nds32_can_use_return_insn): New function.
17052 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17054 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
17055 * config/nds32/nds32.md (pop25return): New.
17056 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
17057 pop25return pattern.
17059 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17061 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
17062 -mforbid-fp-as-gp, and -mex9 options.
17064 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17066 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
17067 remove -mgp-direct option.
17069 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17071 * doc/invoke.texi (--param early-inlining-insns): Update default value.
17072 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
17074 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17076 * ipa-inline.c (inline_small_functions): Work around hints
17079 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
17082 * doc/invoke.texi (Option Summary): Document new Nios II
17084 (Nios II Options): Likewise.
17085 * config/nios2/nios2.opt: Add -mgpopt= option support.
17086 Modify existing -mgpopt and -mno-gpopt options to be aliases.
17087 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
17088 * config/nios2/nios2.c (nios2_option_override): Adjust
17089 -mgpopt defaulting.
17090 (nios2_in_small_data_p): Return true for explicit small data
17091 sections even with -G0.
17092 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
17095 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17098 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
17100 (inline_call): Fix removal of aliases.
17102 2015-01-15 Jakub Jelinek <jakub@redhat.com>
17104 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
17105 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
17106 * opts.c (common_handle_option): Add -fsanitize=vptr.
17107 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
17108 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
17109 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
17110 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
17111 (ubsan_expand_vptr_ifn): New prototype.
17112 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
17113 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
17114 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
17115 expand_LOOP_VECTORIZED): Make argument nameless, remove
17117 (expand_UBSAN_VPTR): New function.
17118 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
17120 (UBSAN_VPTR): New internal function.
17121 * sanopt.c (tree_map_traits): Renamed to ...
17122 (sanopt_tree_map_traits): ... this.
17123 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
17124 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
17125 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
17126 (maybe_optimize_ubsan_vptr_ifn): New function.
17127 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
17128 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
17130 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
17131 internal calls like pure functions for aliasing, even when they
17132 have other side-effects that prevent making them ECF_PURE.
17133 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
17134 (ubsan_expand_vptr_ifn): New function.
17136 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
17138 PR rtl-optimization/64110
17139 * stmt.c (parse_output_constraint): Process '^' and '$'.
17140 (parse_input_constraint): Ditto.
17141 * lra-constraints.c (process_alt_operands): Process the new
17143 * ira-costs.c (record_reg_classes): Process the new constraint
17145 * genoutput.c (indep_constraints): Add '^' and '$'.
17146 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
17147 * doc/md.texi: Add description of the new constraints.
17149 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
17150 Bernd Schmidt <bernds@codesourcery.com>
17151 Cesar Philippidis <cesar@codesourcery.com>
17152 James Norris <jnorris@codesourcery.com>
17153 Tom de Vries <tom@codesourcery.com>
17154 Ilmir Usmanov <i.usmanov@samsung.com>
17155 Dmitry Bocharnikov <dmitry.b@samsung.com>
17156 Evgeny Gavrin <e.gavrin@samsung.com>
17157 Jakub Jelinek <jakub@redhat.com>
17159 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
17160 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17161 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17162 New function types.
17163 * builtins.c: Include "gomp-constants.h".
17164 (expand_builtin_acc_on_device): New function.
17165 (expand_builtin, is_inexpensive_builtin): Handle
17166 BUILT_IN_ACC_ON_DEVICE.
17167 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
17169 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
17171 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
17172 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
17173 i386/intelmic-offload.h.
17174 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
17175 to libgomp and its dependencies.
17176 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
17177 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17178 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17179 * config/ia64/hpux.h (LIB_SPEC): Likewise.
17180 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17181 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17182 * doc/generic.texi: Update for OpenACC changes.
17183 * doc/gimple.texi: Likewise.
17184 * doc/invoke.texi: Likewise.
17185 * doc/sourcebuild.texi: Likewise.
17186 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
17187 GF_OMP_FOR_KIND_OACC_LOOP.
17188 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
17189 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
17190 GF_OMP_TARGET_KIND_OACC_UPDATE,
17191 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17193 * gimple.c: Update comments for OpenACC changes.
17194 * gimple.def: Likewise.
17195 * gimple.h: Likewise.
17196 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
17197 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17198 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
17199 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17200 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
17202 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
17203 * gimplify.c: Include "gomp-constants.h".
17204 Update comments for OpenACC changes.
17205 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
17206 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
17207 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17208 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
17209 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17210 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17211 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
17212 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17213 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17215 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
17216 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
17217 OMP_CLAUSE_SET_MAP_KIND.
17218 (gimplify_oacc_cache): New function.
17219 (gimplify_omp_for): Handle OACC_LOOP.
17220 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
17222 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
17223 OACC_EXIT_DATA, OACC_UPDATE.
17224 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
17225 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
17226 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
17227 (gimplify_body): Consider flag_openacc next to flag_openmp.
17228 * lto-streamer-out.c: Include "gomp-constants.h".
17229 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
17230 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
17231 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
17232 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
17233 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
17234 (BUILT_IN_ACC_ON_DEVICE): New builtins.
17235 * omp-low.c: Include "gomp-constants.h".
17236 Update comments for OpenACC changes.
17237 (struct omp_context): Add reduction_map, gwv_below, gwv_this
17239 (extract_omp_for_data, use_pointer_for_field, install_var_field)
17240 (new_omp_context, delete_omp_context, scan_sharing_clauses)
17241 (create_omp_child_function, scan_omp_for, scan_omp_target)
17242 (check_omp_nesting_restrictions, lower_reduction_clauses)
17243 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
17244 Update for OpenACC changes.
17245 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
17246 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
17247 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
17248 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17249 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
17250 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
17252 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
17253 Handle GF_OMP_FOR_KIND_OACC_LOOP.
17254 (expand_omp_target, lower_omp_target): Handle
17255 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17256 GF_OMP_TARGET_KIND_OACC_UPDATE,
17257 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
17258 GF_OMP_TARGET_KIND_OACC_DATA.
17259 (pass_expand_omp::execute, execute_lower_omp)
17260 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
17262 (offload_symbol_decl): New variable.
17263 (oacc_get_reduction_array_id, oacc_max_threads)
17264 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
17265 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
17266 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
17267 (oacc_gimple_assign, oacc_initialize_reduction_data)
17268 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
17270 (is_targetreg_ctx): Remove function.
17271 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
17272 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
17273 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17274 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
17275 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
17276 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
17277 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
17278 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
17279 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
17280 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
17281 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
17282 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
17283 * tree-core.h: Update comments for OpenACC changes.
17284 (enum omp_clause_map_kind): Remove.
17285 (struct tree_omp_clause): Change type of map_kind member from enum
17286 omp_clause_map_kind to unsigned char.
17287 * tree-inline.c: Update comments for OpenACC changes.
17288 * tree-nested.c: Likewise. Include "gomp-constants.h".
17289 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
17290 (convert_tramp_reference_stmt, convert_gimple_call): Update for
17291 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
17292 OMP_CLAUSE_SET_MAP_KIND.
17293 * tree-pretty-print.c: Include "gomp-constants.h".
17294 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
17295 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
17296 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
17297 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
17298 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17299 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
17300 instead of OMP_CLAUSE_MAP_*.
17301 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
17302 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
17303 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17304 * tree-streamer-in.c: Include "gomp-constants.h".
17305 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
17306 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
17307 * tree-streamer-out.c: Include "gomp-constants.h".
17308 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
17310 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
17311 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
17312 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
17313 * tree.c (omp_clause_num_ops): Update accordingly.
17314 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
17316 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
17317 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
17318 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
17319 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
17320 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
17321 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
17322 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
17323 (OMP_CLAUSE_SET_MAP_KIND): New macro.
17324 * varpool.c (varpool_node::get_create): Consider flag_openacc next
17326 * config/i386/intelmic-offload.h: New file.
17327 * config/nvptx/offload.h: Likewise.
17329 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17331 * explow.h: Remove duplicate contents.
17332 * dojump.h: Likewise.
17334 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
17336 * arm.c (arm_xgene_tune): Add default initializer for instruction
17339 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17343 * ipa.c (symbol_table::remove_unreachable_nodes):
17344 Do not put abstract origins into boundary.
17346 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
17348 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
17349 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
17351 2015-01-15 Steve Ellcey <sellcey@mips.com>
17353 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
17354 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
17355 builtins.def, and chkp-builtins.def.
17357 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
17359 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
17362 2015-01-15 Richard Biener <rguenther@suse.de>
17364 PR tree-optimization/61743
17365 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
17366 information on PHIs for some simple cases.
17368 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17370 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
17372 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
17373 * config/arm/arm-cores.def (xgene1): New entry.
17374 * config/arm/arm-tables.opt: Regenerate.
17375 * config/arm/arm-tune.md: Regenerate.
17376 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
17378 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
17380 * tree-if-conv.c: Include hash-map.h.
17381 (aggressive_if_conv): New variable.
17382 (fold_build_cond_expr): Add simplification of non-zero condition.
17383 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
17384 destination block is not always executed.
17385 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
17386 than two predecessors if AGGRESSIVE_IF_CONV is true.
17387 (if_convertible_stmt_p): Fix commentary.
17388 (all_preds_critical_p): New function.
17389 (has_pred_critical_p): New function.
17390 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
17391 BB can have more than two predecessors and all incoming edges can be
17393 (predicate_bbs): Skip predication for loop exit block, use build2_loc
17394 to compute predicate for true edge.
17395 (find_phi_replacement_condition): Delete this function.
17396 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
17397 Allow interchange PHI arguments if EXTENDED is false.
17398 Change check that block containing reduction statement candidate
17399 is predecessor of phi-block since phi may have more than two arguments.
17400 (phi_args_hash_traits): New helper structure.
17401 (struct phi_args_hash_traits): New type.
17402 (phi_args_hash_traits::hash): New function.
17403 (phi_args_hash_traits::equal_keys): New function.
17404 (gen_phi_arg_condition): New function.
17405 (predicate_scalar_phi): Add handling of phi nodes with more than two
17406 arguments, delete COND and TRUE_BB arguments, insert body of
17407 find_phi_replacement_condition to predicate ordinary phi nodes.
17408 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
17409 delete call of find_phi_replacement_condition and invoke
17410 predicate_scalar_phi with two arguments.
17411 (insert_gimplified_predicates): Add assert that non-predicated block
17412 don't have statements to insert.
17413 (ifcvt_split_critical_edges): New function.
17414 (ifcvt_split_def_stmt): Likewise.
17415 (ifcvt_walk_pattern_tree): Likewise.
17416 (stmt_is_root_of_bool_pattern): Likewise.
17417 (ifcvt_repair_bool_pattern): Likewise.
17418 (ifcvt_local_dce): Likewise.
17419 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
17420 is copy of inner or outer loop force_vectorize field, invoke
17421 ifcvt_split_critical_edges, ifcvt_local_dce and
17422 ifcvt_repair_bool_pattern for aggressive if-conversion.
17424 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
17426 * config/aarch64/aarch64.md: Include xgene1.md.
17427 * config/aarch64/xgene1.md: New file.
17429 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17431 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
17432 xgene1 (APM XGene-1) core definition.
17433 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
17434 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
17435 * doc/invoke.texi: Document -mcpu=xgene1.
17437 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17439 * dojump.h: New header file.
17440 * explow.h: Likewise.
17441 * expr.h: Remove includes.
17442 Move expmed.c prototypes to expmed.h.
17443 Move dojump.c prototypes to dojump.h.
17444 Move alias.c prototypes to alias.h.
17445 Move explow.c prototypes to explow.h.
17446 Move calls.c prototypes to calls.h.
17447 Move emit-rtl.c prototypes to emit-rtl.h.
17448 Move varasm.c prototypes to varasm.h.
17449 Move stmt.c prototypes to stmt.h.
17450 (saved_pending_stack_adjust): Move to dojump.h.
17451 (adjust_address): Move to explow.h.
17452 (adjust_address_nv): Move to emit-rtl.h.
17453 (adjust_bitfield_address): Likewise.
17454 (adjust_bitfield_address_size): Likewise.
17455 (adjust_bitfield_address_nv): Likewise.
17456 (adjust_automodify_address_nv): Likewise.
17457 * explow.c (expr_size): Move to expr.c.
17458 (int_expr_size): Likewise.
17459 (tree_expr_size): Likewise.
17460 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17461 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17462 * genemit.c (main): Generate includes statistics.h, real.h,
17463 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
17465 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
17466 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
17467 explow.h, emit-rtl.h, stmt.h.
17468 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
17469 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
17470 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
17471 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
17472 emit-rtl.h, varasm.h, stmt.h.
17473 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
17474 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
17475 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
17476 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
17477 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17478 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
17479 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
17480 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
17481 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
17482 tm.h tree.h varasm.h vec.h wide-int.h.
17483 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17484 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17485 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
17486 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
17487 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
17488 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
17489 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
17490 * loop-iv.c: Likewise.
17491 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
17492 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
17493 statistics.h stmt.h tree.h varasm.h wide-int.h.
17494 * lra-constraints.c: Likewise.
17495 * lra-eliminations.c: Likewise.
17496 * lra-lives.c: Likewise.
17497 * lra-remat.c: Likewise.
17498 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17499 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
17500 statistics.h stmt.h tree.h varasm.h wide-int.h.
17501 * hw-doloop.c: Likewise.
17502 * ira-color.c: Likewise.
17503 * ira-emit.c: Likewise.
17504 * loop-doloop.c: Likewise.
17505 * loop-invariant.c: Likewise.
17506 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17507 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
17508 statistics.h stmt.h tree.h varasm.h wide-int.h.
17509 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
17510 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
17511 statistics.h stmt.h tree.h varasm.h wide-int.h.
17512 * combine-stack-adj.c: Likewise.
17515 * ifcvt.c: Likewise.
17516 * ira-costs.c: Likewise.
17517 * jump.c: Likewise.
17518 * lra-coalesce.c: Likewise.
17519 * lra-spills.c: Likewise.
17520 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17521 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
17522 stmt.h varasm.h wide-int.h.
17523 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17524 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17526 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
17527 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
17528 statistics.h stmt.h varasm.h wide-int.h.
17529 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
17530 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
17531 varasm.h wide-int.h.
17532 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
17533 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17534 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
17535 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
17536 statistics.h stmt.h.
17537 * config/tilepro/tilepro.c: Likewise.
17538 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
17539 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
17540 * config/pdp11/pdp11.c: Likewise.
17541 * config/xtensa/xtensa.c: Likewise.
17542 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
17543 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17545 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17546 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17547 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
17548 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17549 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17550 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
17551 * rtl-chkp.c: Likewise.
17552 * tree-chkp-opt.c: Likewise.
17553 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
17554 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17555 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
17556 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17557 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17558 statistics.h stmt.h.
17559 * tree-vect-data-refs.c: Likewise.
17560 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
17561 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17562 rtl.h statistics.h stmt.h varasm.h.
17563 * internal-fn.c: Likewise.
17564 * ipa-icf-gimple.c: Likewise.
17565 * lto-section-out.c: Likewise.
17566 * tree-data-ref.c: Likewise.
17567 * tree-nested.c: Likewise.
17568 * tree-outof-ssa.c: Likewise.
17569 * tree-predcom.c: Likewise.
17570 * tree-pretty-print.c: Likewise.
17571 * tree-scalar-evolution.c: Likewise.
17572 * tree-ssa-strlen.c: Likewise.
17573 * tree-vect-loop.c: Likewise.
17574 * tree-vect-patterns.c: Likewise.
17575 * tree-vect-slp.c: Likewise.
17576 * tree-vect-stmts.c: Likewise.
17577 * tsan.c: Likewise.
17578 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17579 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
17581 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
17582 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17583 statistics.h stmt.h varasm.h.
17584 * loop-unroll.c: Likewise.
17585 * ubsan.c: Likewise.
17586 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
17587 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
17589 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17590 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
17591 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
17592 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17593 statistics.h stmt.h.
17594 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
17595 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17596 statistics.h stmt.h varasm.h.
17597 * gimple-match-head.c: Likewise.
17598 * lto-cgraph.c: Likewise.
17599 * lto-section-in.c: Likewise.
17600 * lto-streamer-in.c: Likewise.
17601 * lto-streamer-out.c: Likewise.
17602 * tree-affine.c: Likewise.
17603 * tree-cfg.c: Likewise.
17604 * tree-cfgcleanup.c: Likewise.
17605 * tree-if-conv.c: Likewise.
17606 * tree-into-ssa.c: Likewise.
17607 * tree-ssa-alias.c: Likewise.
17608 * tree-ssa-copyrename.c: Likewise.
17609 * tree-ssa-dse.c: Likewise.
17610 * tree-ssa-forwprop.c: Likewise.
17611 * tree-ssa-live.c: Likewise.
17612 * tree-ssa-math-opts.c: Likewise.
17613 * tree-ssa-pre.c: Likewise.
17614 * tree-ssa-sccvn.c: Likewise.
17615 * tree-tailcall.c: Likewise.
17616 * tree-vect-generic.c: Likewise.
17617 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17618 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
17619 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17620 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
17621 * varasm.c: Likewise.
17622 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17623 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
17625 * init-regs.c: Likewise.
17627 * omp-low.c: Likewise.
17628 * stack-ptr-mod.c: Likewise.
17629 * tree-ssa-reassoc.c: Likewise.
17630 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17631 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
17633 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17634 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
17635 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17636 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
17637 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17638 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
17639 * tree-ssa-phiopt.c: Likewise.
17640 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17641 fixed-value.h hashtab.h real.h statistics.h stmt.h.
17642 * config/fr30/fr30.c: Likewise.
17643 * config/frv/frv.c: Likewise.
17644 * expr.c: Likewise.
17645 * final.c: Likewise.
17646 * optabs.c: Likewise.
17647 * passes.c: Likewise.
17648 * simplify-rtx.c: Likewise.
17649 * stmt.c: Likewise.
17650 * toplev.c: Likewise.
17651 * var-tracking.c: Likewise.
17652 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17653 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17654 * lower-subreg.c: Likewise.
17655 * postreload-gcse.c: Likewise.
17657 * reginfo.c: Likewise.
17658 * store-motion.c: Likewise.
17659 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17660 fixed-value.h hashtab.h real.h stmt.h varasm.h.
17661 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17662 fixed-value.h hashtab.h statistics.h stmt.h.
17663 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17664 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17665 * except.c: Likewise.
17666 * explow.c: Likewise.
17667 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17668 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
17670 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17671 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
17672 * tree-ssa-structalias.c: Likewise.
17673 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17674 fixed-value.h insn-config.h real.h statistics.h.
17675 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17676 fixed-value.h insn-config.h real.h statistics.h stmt.h.
17677 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17678 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17679 * cfgbuild.c: Likewise.
17680 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17681 fixed-value.h real.h rtl.h statistics.h stmt.h.
17682 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17683 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17684 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17685 fixed-value.h real.h statistics.h stmt.h.
17686 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17687 fixed-value.h real.h statistics.h stmt.h varasm.h.
17688 * cprop.c: Likewise.
17689 * modulo-sched.c: Likewise.
17690 * postreload.c: Likewise.
17691 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17692 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
17693 statistics.h stmt.h varasm.h.
17694 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
17695 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17696 rtl.h statistics.h stmt.h varasm.h.
17697 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
17698 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
17700 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17701 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
17703 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
17704 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
17706 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
17707 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17708 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17709 function.h real.h statistics.h stmt.h varasm.h.
17710 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17711 insn-config.h real.h statistics.h stmt.h.
17712 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17713 statistics.h stmt.h.
17714 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
17715 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
17716 statistics.h stmt.h varasm.h.
17717 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
17718 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
17719 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17720 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
17721 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
17722 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17723 statistics.h stmt.h varasm.h.
17724 * ipa-polymorphic-call.c: Likewise.
17725 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
17726 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17727 statistics.h stmt.h.
17728 * config/c6x/c6x.c: Likewise.
17729 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
17730 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17731 statistics.h stmt.h varasm.h.
17732 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
17733 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
17735 * ipa-split.c: Likewise.
17736 * tree-eh.c: Likewise.
17737 * tree-ssa-dce.c: Likewise.
17738 * tree-ssa-loop-niter.c: Likewise.
17739 * tree-vrp.c: Likewise.
17740 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
17741 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
17743 * config/nds32/nds32-fp-as-gp.c: Likewise.
17744 * config/nds32/nds32-intrinsic.c: Likewise.
17745 * config/nds32/nds32-isr.c: Likewise.
17746 * config/nds32/nds32-md-auxiliary.c: Likewise.
17747 * config/nds32/nds32-memory-manipulation.c: Likewise.
17748 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17749 * config/nds32/nds32-predicates.c: Likewise.
17750 * config/nds32/nds32.c: Likewise.
17751 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
17752 fixed-value.h hashtab.h real.h statistics.h.
17753 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
17754 fixed-value.h hashtab.h real.h statistics.h stmt.h.
17755 * config/arm/arm.c: Likewise.
17756 * config/avr/avr.c: Likewise.
17757 * config/bfin/bfin.c: Likewise.
17758 * config/h8300/h8300.c: Likewise.
17759 * config/i386/i386.c: Likewise.
17760 * config/ia64/ia64.c: Likewise.
17761 * config/iq2000/iq2000.c: Likewise.
17762 * config/m32c/m32c.c: Likewise.
17763 * config/m32r/m32r.c: Likewise.
17764 * config/m68k/m68k.c: Likewise.
17765 * config/mcore/mcore.c: Likewise.
17766 * config/mep/mep.c: Likewise.
17767 * config/mips/mips.c: Likewise.
17768 * config/mn10300/mn10300.c: Likewise.
17769 * config/moxie/moxie.c: Likewise.
17770 * config/pa/pa.c: Likewise.
17771 * config/rl78/rl78.c: Likewise.
17772 * config/rx/rx.c: Likewise.
17773 * config/s390/s390.c: Likewise.
17774 * config/sh/sh.c: Likewise.
17775 * config/sparc/sparc.c: Likewise.
17776 * config/spu/spu.c: Likewise.
17777 * config/stormy16/stormy16.c: Likewise.
17778 * config/v850/v850.c: Likewise.
17779 * config/vax/vax.c: Likewise.
17780 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
17781 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17782 * config/msp430/msp430.c: Likewise.
17783 * predict.c: Likewise.
17784 * value-prof.c: Likewise.
17785 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
17786 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
17787 * config/microblaze/microblaze.c: Likewise.
17788 * config/nios2/nios2.c: Likewise.
17789 * config/rs6000/rs6000.c: Likewise.
17790 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17791 insn-config.h real.h rtl.h statistics.h stmt.h.
17792 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17793 insn-config.h real.h statistics.h stmt.h.
17794 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
17795 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17796 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
17797 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17798 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
17799 fixed-value.h real.h statistics.h stmt.h.
17800 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
17801 fixed-value.h statistics.h stmt.h.
17802 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
17805 2015-01-15 Jakub Jelinek <jakub@redhat.com>
17807 * gengtype.c (create_user_defined_type): Workaround
17808 -Wmaybe-uninitialized false positives.
17809 * cse.c (fold_rtx): Likewise.
17810 * loop-invariant.c (gain_for_invariant): Likewise.
17812 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
17814 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
17815 set the memory attributes in all cases but clear MEM_EXPR if need be.
17817 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
17819 PR tree-optimization/64434
17820 * cfgexpand.c (reorder_operands): New function.
17821 (expand_gimple_basic_block): Insert call of reorder_operands if
17824 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
17826 * config/mips/micromips.md (*swp): Remove explicit parallel.
17827 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
17828 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
17829 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
17830 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
17831 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
17832 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
17833 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
17834 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
17835 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
17836 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
17837 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
17838 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
17839 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
17840 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
17841 (mips_wrdsp): Likewise.
17842 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17844 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17845 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17846 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17847 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17848 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17849 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17850 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17851 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17852 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17854 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17856 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17857 (mips_print_operand): Support 'y' to print exact log2 in decimal
17859 * config/mips/mips.h (ISA_HAS_LSA): New define.
17860 (ISA_HAS_DLSA): Likewise.
17861 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17862 * config/mips/predicates.md (const_immlsa_operand): New predicate.
17864 2015-01-15 Martin Liska <mliska@suse.cz>
17867 * optc-save-gen.awk: Add support for array types.
17869 2015-01-15 Richard Biener <rguenther@suse.de>
17871 PR middle-end/64365
17872 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17873 for MEM_REF access functions with the same base can never partially
17876 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
17878 * common.opt: New option -fstack-protector-explicit.
17879 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17880 (stack_protect_decl_phase): Handle stack_protect attribute for
17881 explicit stack protection requests.
17882 (expand_used_vars): Similarly.
17883 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17884 * doc/extend.texi: Add documentation for "stack_protect" attribute.
17885 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17887 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
17890 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17892 (sh_extending_set_of_reg): New struct.
17893 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17894 sh_remove_reg_dead_or_unused_notes): New Declarations.
17895 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17896 sh_find_extending_set_of_reg, sh_split_tst_subregs,
17897 sh_extending_set_of_reg::use_as_extended_reg): New functions.
17898 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17899 convert to insn_and_split and use new function sh_split_tst_subregs.
17901 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
17903 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17905 (Optimization Options): Move -fuse-ld documentation to...
17906 (Link Options): ...here.
17908 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17910 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17912 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17913 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17914 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17915 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17916 instead of ZR for the memory operand of LL/SC.
17917 (compare_and_swap_12, sync_add<mode>): Likewise.
17918 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17919 (sync_new_<optab>_12, sync_nand_12): Likewise.
17920 (sync_old_nand_12, sync_new_nand_12): Likewise.
17921 (sync_sub<mode>, sync_old_add<mode>): Likewise.
17922 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17923 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17924 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17925 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17926 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17927 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17928 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17929 * doc/md.texi (ZC): Update description.
17931 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17933 * builtins.c (expand_builtin_atomic_exchange): Remove error when
17934 memory model is CONSUME.
17935 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17936 expand_builtin_atomic_store): Change invalid memory model errors to
17938 (expand_builtin_atomic_clear): Change invalid model errors to warnings
17939 and issue warning for CONSUME.
17941 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
17943 * lto-cgraph: Update function comments for
17944 lto_symtab_encoder_encode_*.
17946 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17948 * Makefile.in (site.exp): Do not set ENABLE_LTO.
17950 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17952 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17953 * lto-cgraph.c (select_what_to_stream): Remove argument, use
17954 lto_stream_offload_p instead.
17955 * lto-streamer.h (select_what_to_stream): Remove argument.
17956 * passes.c (ipa_write_summaries): Likewise.
17957 * tree-pass.h (ipa_write_summaries): Likewise.
17959 2015-01-14 Richard Biener <rguenther@suse.de>
17961 PR tree-optimization/59354
17962 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17963 groups larger than the slp group size as having gaps.
17965 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17967 PR middle-end/59448
17968 * builtins.c (get_memmodel): Promote consume to acquire always.
17970 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17973 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17976 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17979 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17981 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17982 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17983 AVX512VBMI, as it implies AVX512BW.
17985 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17988 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17989 (vec_unpacks_hi_v16sf): Ditto.
17991 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17993 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17996 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17998 * doc/invoke.texi (mapcs): Mention deprecation.
17999 (mapcs-frame): Likewise.
18001 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
18004 * config/arm/arm.c (callee_saved_reg_p): Define.
18005 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
18006 register is callee saved instead of !call_used_regs[reg].
18007 (thumb1_compute_save_reg_mask): Likewise.
18009 2015-01-14 Hale Wang <hale.wang@arm.com>
18011 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
18014 2015-01-14 Richard Biener <rguenther@suse.de>
18017 * tree-inline.c (insert_debug_decl_map): Check destination
18018 function MAY_HAVE_DEBUG_STMTS.
18019 (insert_init_debug_bind): Likewise.
18020 (insert_init_stmt): Remove redundant check.
18021 (remap_gimple_stmt): Drop debug stmts if the destination
18022 function has var-tracking assignments disabled.
18024 2015-01-14 Martin Liska <mliska@suse.cz>
18026 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
18027 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
18029 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18032 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
18033 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
18035 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
18037 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
18038 level from an ARCH; do not inject the default.
18039 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
18040 MIPS_ISA_LEVEL_SPEC.
18041 (MIPS_ISA_NAN2008_SPEC): Update comment.
18042 (BASE_DRIVER_SELF_SPECS): Likewise.
18043 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
18044 MIPS_DEFAULT_ISA_LEVEL_SPEC.
18045 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
18046 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
18047 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
18049 2015-01-14 Richard Biener <rguenther@suse.de>
18051 PR tree-optimization/64493
18052 PR tree-optimization/64495
18053 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
18054 assign the proper vectorized PHI to the inner loop exit PHIs.
18056 2015-01-14 Joey Ye <joey.ye@arm.com>
18058 * config/arm/arm.c (arm_compute_save_reg_mask):
18059 Do not save lr in case of tail call.
18060 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
18062 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
18064 * tree-vrp.c (check_array_ref): Emit more warnings
18065 for warn_array_bounds >= 2.
18066 * common.opt: New option -Warray-bounds=.
18067 * doc/invoke.texi: Document -Warray-bounds=.
18069 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
18071 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
18072 (mforbid-fp-as-gp): Remove.
18074 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
18075 (nds32_symbol_load_store_p): Remove.
18076 (nds32_fp_as_gp_check_available): Clean up implementation.
18077 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
18079 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
18080 fp-as-gp and ex9 cases.
18082 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
18084 * tree-profile.c (init_ic_make_global_vars): Drop workaround
18085 for bintuils bug 14342.
18086 (init_ic_make_global_vars): Likewise.
18087 (gimple_init_edge_profiler): Likewise.
18088 (gimple_gen_ic_func_profiler): Likewise.
18090 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18092 * ipa-inline.c (inline_small_functions): Swap the operands in
18095 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
18098 * ipa-inline-analysis.c (node_growth_cache): Remove.
18099 (initialize_growth_caches): Do not initialize it.
18100 (free_growth_caches): Do not free it.
18101 (do_estimate_growth): Rename to ...
18102 (estimate_growth): ... this one; drop growth cache code.
18103 (growth_likely_positive): Always go the heuristics way.
18104 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
18105 (reset_edge_caches): Do not reset node growth.
18106 (heap_edge_removal_hook): Do not maintain cache.
18107 (inline_small_functions): Likewise; strenghten sanity check.
18108 (ipa_inline): Do not maintain caches.
18109 * ipa-inline.h (node_growth_cache): Remove.
18110 (do_estimate_growth): Remove to ...
18111 (estimate_growth): this one; remove inline version.
18112 (reset_node_growth_cache): Remove.
18114 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
18117 * ipa-inline.c (inline_small_functions): Update callee keys after
18118 resolving speculation
18119 (inline_small_functions): Always check monotonicity of the queue.
18121 2015-01-13 Marek Polacek <polacek@redhat.com>
18123 PR middle-end/64391
18124 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
18126 2015-01-13 Jakub Jelinek <jakub@redhat.com>
18128 PR rtl-optimization/64286
18129 * ree.c (combine_reaching_defs): Move part of comment earlier,
18130 remove !SCALAR_INT_MODE_P check.
18131 (add_removable_extension): Don't add vector mode
18132 extensions if all uses of the source register aren't the same
18135 2015-01-13 Renlin Li <renlin.li@arm.com>
18137 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
18138 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
18140 2015-01-13 Martin Liska <mliska@suse.cz>
18142 * ipa-icf.c (sem_function::equals_private): Call new functions
18143 cl_target_option_print_diff and cl_optimization_print_diff.
18144 * optc-save-gen.awk (cl_target_option_print_diff): New function.
18145 (cl_optimization_print_diff): Likewise.
18146 * opth-gen.awk: Likewise.
18148 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
18150 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
18151 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
18152 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
18153 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
18154 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
18155 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
18157 2015-01-13 Andrew Pinski <apinski@cavium.com>
18159 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
18160 instead of src mode.
18162 2015-01-13 Richard Biener <rguenther@suse.de>
18165 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
18168 2015-01-13 Andrew Pinski <apinski@cavium.com>
18170 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
18172 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
18174 2015-01-13 Jakub Jelinek <jakub@redhat.com>
18176 PR middle-end/63974
18177 * cfgexpand.c (expand_computed_goto): Don't call
18178 convert_memory_address here.
18180 2015-01-13 Richard Biener <rguenther@suse.de>
18182 PR tree-optimization/64406
18183 * tree-loop-distibution.c (pass_loop_distribution::execute):
18184 Reset the SCEV hashtable if we distributed anything.
18186 2015-01-13 Richard Biener <rguenther@suse.de>
18188 PR tree-optimization/64404
18189 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
18190 SLP types for CSEd loads.
18192 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18194 PR tree-optimization/64436
18195 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
18196 merge of two symbolic numbers for a bitwise OR to ...
18197 (perform_symbolic_merge): This. Also fix computation of the range and
18198 end of the symbolic number corresponding to the result of a bitwise OR.
18200 2015-01-13 Richard Biener <rguenther@suse.de>
18202 PR tree-optimization/64568
18203 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
18204 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
18206 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18208 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
18209 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
18211 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18213 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
18214 target-specific symbol_ref flag.
18215 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
18216 resides in rodata section.
18217 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
18218 (nds32_encode_section_info): New function.
18220 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18222 * config/nds32/nds32.md (call): Use pseudo instruction bal which
18223 clobbers TA_REGNUM if large code model is specified.
18224 (call_register): Likewise.
18225 (call_immediate): Likewise.
18226 (call_value): Likewise.
18227 (call_value_register): Likewise.
18228 (call_value_immediate): Likewise.
18230 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18232 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
18233 (TARGET_CMODEL_MEDIUM): New macro.
18234 (TARGET_CMODEL_LARGE): New macro.
18235 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
18236 code model setting in assembly code.
18238 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18240 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18241 Remove MASK_GP_DIRECT flag.
18242 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
18243 one of the multilib default options.
18244 * config/nds32/nds32.opt (mgp-direct): Remove.
18245 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
18246 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
18248 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18250 * config/nds32/nds32.opt (mcmodel): Add new option.
18251 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
18252 to describe code model.
18254 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
18257 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
18259 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
18261 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
18262 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
18263 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
18264 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
18265 __builtin_sh_set_fpscr.
18267 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
18269 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
18270 after a funtion name just to indicate it is a function.
18271 ([-fsanitize-undefined-trap-on-error]): Likewise.
18272 ([-fdbg-cnt=]): Likewise.
18273 ([-mmemcpy]): Likewise.
18274 ([-mflush-func]): Likewise.
18275 ([-msynci]): Likewise.
18277 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
18279 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
18282 2015-01-12 Jakub Jelinek <jakub@redhat.com>
18284 PR tree-optimization/64563
18285 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
18286 instead of != VR_VARYING.
18289 * config/i386/i386.c (ix86_expand_prologue): Add
18290 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
18292 PR tree-optimization/64454
18293 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
18294 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
18295 for signed or [0, op1 - 1] for unsigned modulo.
18296 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18297 even if op1 does not satisfy integer_pow2p.
18300 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
18302 2015-01-12 Jeff Law <law@redhat.com>
18305 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
18306 (trunchiqi2, truncsihi2): Similarly.
18308 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
18309 rather than calling F.
18311 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
18313 * tsan.c (instrument_expr): Use force_gimple_operand.
18314 Use may_be_nonaddressable_p instead of is_gimple_addressable.
18316 2015-01-12 Richard Biener <rguenther@suse.de>
18318 PR tree-optimization/64530
18319 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
18322 2015-01-12 Richard Biener <rguenther@suse.de>
18324 PR middle-end/64357
18325 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
18328 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18330 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
18331 Cortex-A17 tuning parameters.
18332 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
18334 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18336 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
18337 * config/arm/arm.c (arm_macro_fusion_p): New function.
18338 (arm_macro_fusion_pair_p): Likewise.
18339 (TARGET_SCHED_MACRO_FUSION_P): Define.
18340 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
18341 (ARM_FUSE_NOTHING): Likewise.
18342 (ARM_FUSE_MOVW_MOVT): Likewise.
18343 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
18344 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
18345 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
18346 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
18347 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
18348 arm_cortex_a5_tune): Specify fuseable_ops value.
18350 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
18353 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
18354 test for PIE with copy reloc.
18355 * configure: Regenerated.
18357 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18359 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
18361 (arm_tls_descseq_addr): Likewise.
18362 (arm_gen_movmemqi): Likewise.
18363 (arm_expand_epilogue_apcs_frame): Likewise.
18364 (arm_expand_epilogue): Likewise.
18365 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
18368 2015-01-12 Martin Liska <mliska@suse.cz>
18371 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
18372 volatility for correct operands.
18374 2015-01-12 Martin Liska <mliska@suse.cz>
18376 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
18377 indication that a function is not leaf.
18378 (sem_function::compare_polymorphic_p): Likewise.
18380 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18382 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
18383 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
18384 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
18385 fold-const.h, tree-check.h.
18387 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
18391 * ipa-inline.c (compute_uninlined_call_time,
18392 compute_inlined_call_time): Use counts for extra precision when
18394 (big_speedup_p): Fix formating.
18395 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
18396 (relative_time_benefit): Remove.
18397 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
18398 merge guessed and read profile paths.
18399 (inline_small_functions): Count only !optimize_size functions into
18400 initial size; be more lax about sanity check when profile is used;
18401 be sure to update inlined function profile when profile is read.
18403 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
18406 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
18407 cost when edge becomes direct.
18408 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
18409 is resolved or when introducing new speculation.
18411 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
18415 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
18416 '||' to fix typo issue.
18418 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
18419 accept and return NULL.
18421 2015-01-12 Martin Liska <mliska@suse.cz>
18423 * cgraph.c (cgraph_edge::remove_callee): Move function to header
18424 file for being inlined.
18425 (cgraph_set_edge_callee): Delete.
18426 (cgraph_edge::redirect_callee): Move function to header file
18428 (cgraph_edge::make_direct): Use new function.
18429 (cgraph_edge::dump_edge_flags): New function created from
18430 static dump_edge_flags function.
18431 (cgraph_node::dump): Use new function.
18432 (cgraph_edge::verify_count_and_frequency): New function created
18433 from verify_edge_count_and_frequency.
18434 (cgraph_edge::verify_corresponds_to_fndecl): New function created
18435 from verify_edge_corresponds_to_fndecl.
18436 (verify_edge_corresponds_to_fndecl): Delete.
18437 (cgraph_node::verify_node): Use new function.
18438 * cgraph.h (cgraph_edge::set_callee): New function.
18439 (cgraph_edge::dump_edge_flags): Likewise.
18440 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
18442 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
18444 * ipa-utils.c (estimate_function_body_sizes): Do not
18445 free node params when called late with early=true.
18447 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
18449 * doc/md.texi (Instruction Patterns): Rewrite text for
18451 (Example): Likewise.
18453 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
18455 * doc/invoke.texi (Option Summary): Break long lines.
18456 [(-fdiagnostics-color)]: Put long literal in @smallexample
18458 [(-fsanitize-recover)]: Likewise.
18459 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
18460 [(-ffast-math)]: Likewise.
18461 [(--param max-inline-insns-recursive)]: Likewise.
18462 [(--param max-inline-recursive-depth)]: Likewise.
18463 [(-mno-text-section-literals)]: Likewise.
18465 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
18467 * doc/install.texi: Update for libgomp being renamed from "GNU
18468 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
18470 * doc/sourcebuild.texi: Likewise.
18472 2015-01-10 Anthony Green <green@moxielogic.com>
18474 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
18475 mul.x availability for moxiebox configuration.
18477 2015-01-09 Anthony Green <green@moxielogic.com>
18479 * config/moxie/moxie.md: Tabify assembly output.
18481 2015-01-09 Anthony Green <green@moxielogic.com>
18483 * config/moxie/moxie.md (CC_REG): Correct register definition.
18485 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
18487 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
18488 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
18491 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
18493 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
18495 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
18496 Jakub Jelinek <jakub@redhat.com>
18498 PR middle-end/64412
18499 * lto-streamer.h (lto_stream_offload_p): New declaration.
18500 * lto-streamer.c (lto_stream_offload_p): New variable.
18501 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
18502 at the same time as section_name_prefix.
18503 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
18504 if lto_stream_offload_p.
18505 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
18506 stream TREE_TARGET_OPTION if lto_stream_offload_p.
18507 (write_ts_function_decl_tree_pointers): Don't
18508 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
18509 * tree-streamer-in.c (unpack_value_fields): Don't stream
18510 TREE_TARGET_OPTION in if ACCEL_COMPILER.
18511 (lto_input_ts_function_decl_tree_pointers): Don't stream
18512 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
18513 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
18514 instead of section_name_prefix string comparisons.
18516 2015-01-09 Jakub Jelinek <jakub@redhat.com>
18518 PR rtl-optimization/64536
18519 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
18522 2015-01-09 Michael Collison <michael.collison@linaro.org>
18524 PR tree-optimization/64322
18525 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
18526 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
18528 2015-01-09 Tom de Vries <tom@codesourcery.com>
18530 PR rtl-optimization/64539
18531 * regcprop.c (kill_clobbered_values): Factor out of ...
18532 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
18533 instead of note_stores with kill_clobbered_value.
18535 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
18537 * ginclude/unwind-arm-common.h: Revert previous commit.
18539 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
18541 * config.gcc (arm*-*-freebsd*): New configuration.
18542 * config/arm/freebsd.h: New file.
18543 * config.host: Add extra components for arm*-*-freebsd*.
18544 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
18545 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
18547 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18549 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
18551 * config/rs6000/t-rtems: Add e6500 multilibs.
18553 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18555 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
18558 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18560 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
18561 MULTILIB_EXCEPTIONS.
18563 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18565 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
18566 MULTILIB_EXCEPTIONS.
18568 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18570 * config/arm/t-rtems-eabi: Rename to...
18571 * config/arm/t-rtems: ...this.
18572 * config/arm/rtems-eabi.h: Rename to...
18573 * config/arm/rtems.h: ...this.
18574 * config.gcc (arm*-*-rtems*): Reflect changes above.
18576 2015-01-09 Richard Biener <rguenther@suse.de>
18578 PR tree-optimization/64410
18579 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
18581 (execute_update_addresses_taken): Deal with that.
18582 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
18583 loads/stores for complex variables.
18585 2015-01-09 Martin Liska <mliska@suse.cz>
18587 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
18589 (func_checker::compare_memory_operand): New function.
18590 (func_checker::compare_operand): Split case to newly
18592 (func_checker::compare_cst_or_decl): New function.
18593 (func_checker::compare_gimple_call): Identify
18595 (func_checker::compare_gimple_assign): Likewise.
18596 * ipa-icf-gimple.h: New function.
18598 2015-01-09 Martin Liska <mliska@suse.cz>
18601 * sreal.c (sreal::dump): Change unsigned format to signed for
18603 (sreal::to_double): Replace exp2 with scalbln.
18605 2015-01-09 Martin Liska <mliska@suse.cz>
18607 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
18608 * ipa-icf.c (sem_function::equals_private): Add support for target and
18609 (sem_item_optimizer::merge_classes): Remove redundant function
18610 optimization flags comparison.
18611 * tree.h (target_opts_for_fn): New function.
18613 2015-01-09 Tom de Vries <tom@codesourcery.com>
18615 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
18617 2015-01-09 Kito Cheng <kito@0xlab.org>
18619 PR rtl-optimization/64348
18620 * lra-constraints.c (split_reg): Fix caller-save store/restore
18621 instruction generation.
18623 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
18625 PR gcov-profile/61790
18626 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
18627 long long. Fallback to int64_t if host doesn't have long long and
18628 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
18630 2015-01-08 Jakub Jelinek <jakub@redhat.com>
18632 PR tree-optimization/63989
18633 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
18634 from 1000 to 10000.
18635 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
18636 (get_stridx): If we don't have a record for certain SSA_NAME,
18637 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
18638 constant offset, call get_stridx_plus_constant.
18639 (get_stridx_plus_constant): New function.
18640 (zero_length_string): Don't use get_stridx here.
18643 PR middle-end/64388
18644 * dse.c (struct insn_info): Mention frame_read set also
18645 before reload for tail calls on some targets.
18646 (scan_insn): Revert 2014-12-22 change. Set frame_read
18647 also before reload for tail calls if
18648 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
18649 instead of add_non_frame_wild_read for non-const/memset
18650 tail calls after reload.
18652 2015-01-08 Jason Merrill <jason@redhat.com>
18654 * ubsan.c (do_ubsan_in_current_function): New.
18655 (pass_ubsan::gate): Use it.
18656 * ubsan.h: Declare it.
18657 * convert.c (convert_to_integer): Use it.
18659 2015-01-08 Jakub Jelinek <jakub@redhat.com>
18662 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
18663 compare_code when it is unconditionally overwritten afterwards.
18664 Use ix86_reverse_condition instead of reverse_condition. Don't
18665 change code if *reverse_condition* returned UNKNOWN and don't
18666 swap ct/cf and negate diff in that case.
18668 2015-01-08 Mike Stump <mikestump@comcast.net>
18670 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
18671 (pass_tsan_O0::gate): Likewise.
18672 * extend.texi (Function Attributes): Add no_sanitize_thread
18675 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
18677 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
18678 for registering builtins.
18679 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
18680 add -fopenmp to the argv_obstack used when invoking
18681 compile_for_target.
18683 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
18684 add "-m32" or "-m64" to argv_obstack.
18685 (generate_host_descr_file): Likewise, when invoking host_compiler.
18686 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
18689 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
18691 * config/sh/sh-mem.cc: Use constant as second operand when emitting
18694 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
18697 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
18698 constant load if constant operand fits into I08.
18700 2015-01-08 Jakub Jelinek <jakub@redhat.com>
18703 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
18704 and TREE_THIS_VOLATILE for MEM_REFs.
18705 (build5_stat): Fix up initialization of TREE_READONLY and
18706 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
18708 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
18711 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
18712 of r for the second alternative of the destination operand.
18714 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
18717 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
18719 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
18721 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
18723 ([-fivar-visibility], [-fvisibility]): Likewise.
18725 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
18727 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
18728 the file where @code, @command, etc is more appropriate.
18730 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
18732 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
18733 of -mrecip= documentation.
18735 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18738 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
18739 correct reload handler if -m32 -mpowerpc64 is used.
18741 2015-01-06 Tom de Vries <tom@codesourcery.com>
18743 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
18745 2015-01-08 Christian Bruel <christian.bruel@st.com>
18748 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
18750 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
18752 PR tree-optimization/63259
18753 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
18754 if optab exists for 16bit byteswap.
18756 2015-01-06 Jakub Jelinek <jakub@redhat.com>
18758 * opts.c (common_handle_option): Add support for
18759 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
18760 * doc/invoke.texi: Document -fno-sanitize=all,
18761 -f{,no-}sanitize-recover=all. Document that
18762 -fsanitize=float-cast-overflow is not enabled
18763 by -fsanitize=undefined. Fix up documentation
18764 of -f{,no-}sanitize-recover.
18766 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
18768 * config.gcc: Add Visium support.
18769 * configure.ac: Likewise.
18770 * configure: Regenerate.
18771 * doc/extend.texi (interrupt attribute): Add Visium.
18772 * doc/invoke.texi: Document Visium options.
18773 * doc/install.texi: Document Visium target.
18774 * doc/md.texi: Document Visium constraints.
18775 * common/config/visium: New directory.
18776 * config/visium: Likewise.
18778 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
18780 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
18781 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
18783 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
18785 * combine.c (combine_validate_cost): Do not count the cost of a
18786 split I2 twice. Do not display it twice in the dump, either.
18788 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
18790 Revert parts of r219199.
18791 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
18793 ([-Wtraditional]): Restore markup on <limits.h>.
18795 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
18798 * doc/invoke.texi: Document -Wsuggest-override.
18800 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
18802 PR rtl-optimization/64287
18803 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
18804 (process_options): Disable flag_ipa_ra if profiling.
18806 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
18808 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
18810 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
18812 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
18813 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
18814 put under #if TARGET_LOOPS guard.
18816 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
18818 * config/i386/i386.c (output_387_binary_op): Use std::swap.
18820 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
18822 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
18823 * rtl.h (refers_to_regno_p): Add overload.
18825 * bt-load.c: Likewise.
18826 * combine.c: Likewise.
18827 * df-scan.c: Likewise.
18828 * sched-deps.c: Likewise.
18829 * config/s390/s390.c: Likewise.
18830 * config/m32r/m32r.c: Likewise.
18831 * config/rs6000/spe.md: Likewise.
18832 * config/rs6000/rs6000.c: Likewise.
18833 * config/pa/pa.c: Likewise.
18834 * config/stormy16/stormy16.c: Likewise.
18835 * config/cris/cris.c: Likewise.
18836 * config/arc/arc.md: Likewise.
18837 * config/arc/arc.c: Likewise.
18838 * config/sh/sh.md: Likewise.
18839 * config/sh/sh.c: Likewise.
18840 * config/frv/frv.c: Likewise.
18842 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18845 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18846 call as cleanup of the whole body.
18847 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18848 * tsan.c (replace_func_exit): New function.
18849 (instrument_func_exit): Moved earlier.
18850 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18851 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18853 (tsan_pass): Don't call instrument_func_exit.
18854 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18855 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18859 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18860 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18861 it to libubsan handler instead of EXPR. Fold comparisons earlier,
18862 if the result is integer_zerop, return NULL_TREE.
18863 * convert.c (convert_to_integer): Pass expr as ARG.
18865 PR tree-optimization/64465
18866 * tree-inline.c (redirect_all_calls): During inlining
18867 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18868 changed the stmt to a non-throwing call.
18870 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
18872 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18873 etc markup throughout the file.
18875 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
18877 Enable experimental TSAN support for Ada.
18878 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18880 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18882 PR tree-optimization/64494
18883 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18884 clear SSA_NAME_ANTI_RANGE_P flag.
18886 2015-01-05 Marek Polacek <polacek@redhat.com>
18888 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18890 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18892 Update copyright years.
18894 * gcc.c (process_command): Update copyright notice dates.
18895 * gcov-dump.c: Ditto.
18897 * doc/cpp.texi: Bump @copying's copyright year.
18898 * doc/cppinternals.texi: Ditto.
18899 * doc/gcc.texi: Ditto.
18900 * doc/gccint.texi: Ditto.
18901 * doc/gcov.texi: Ditto.
18902 * doc/install.texi: Ditto.
18903 * doc/invoke.texi: Ditto.
18905 * auto-profile.c, auto-profile.h: Fix up Copyright line.
18907 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
18909 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18911 ([-fvtable-verify], [-fvtv-debug]): Likewise.
18912 ([-Wabi]): Likewise.
18913 ([-fmessage-length]): Likewise.
18914 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18915 ([-Wno-discarded-qualifiers]): Likewise.
18916 ([-Wnodiscarded-array-qualifiers]): Likewise.
18917 ([-Wno-virtual-move-assign]): Likewise.
18918 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18919 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18920 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18921 ([-fsanitize-undefined-trap-on-error]): Likewise.
18922 ([-floop-interchange]): Likewise.
18923 ([-ftree-coalesce-inlined-vars]): Likewise.
18924 ([-fvect-cost-model]): Likewise.
18925 ([-flto]): Likewise.
18926 ([--param]): Likewise.
18927 (Spec Files): Likewise.
18928 ([-mstrict-align]): Likewise.
18929 ([-mfix-cortex-a53-835769]): Likewise.
18930 ([-march], [-mtune]): Likewise.
18931 ([-mpic-register]): Likewise.
18932 ([-munaligned-access]): Likewise.
18933 ([-msp8]): Likewise.
18934 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18935 (AVR Built-in Macros): Likewise.
18936 ([-mpreferred-stack-boundary]): Likewise.
18937 ([-mtune-crtl]): Likewise.
18938 ([-mashf]): Likewise.
18939 ([-mmcu=]): Likewise.
18940 ([-minrt]): Likewise.
18941 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18942 ([-mupper-regs]): Likewise.
18943 ([-matomic-model]): Likewise.
18944 ([-mdiv]): Likewise.
18945 ([-mzdcbranch]): Likewise.
18946 ([-mdisable-callt]): Likewise.
18947 ([-msoft-float]): Likewise.
18948 ([-m8byte-align]): Likewise.
18949 ([-fstack-reuse]): Likewise.
18951 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18953 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18954 Fix markup, light copy-editing.
18955 ([-fauto-profile]): Rewrite to fix formatting and content
18958 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18960 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18961 Copy-edit description.
18962 ([-fisolate-erroneous-paths-attribute]): Likewise.
18963 * common.opt (fisolate-erroneous-paths-dereference):
18964 Copy-edit description.
18965 (fisolate-erroneous-paths-attribute): Likewise.
18967 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18969 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18972 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18974 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18975 ([-fvtv-debug]): Likewise.
18976 ([-Wc++-compat]): Likewise.
18977 ([-Wc++11-compat]): Likewise.
18978 ([-Wc++14-compat]): Likewise.
18979 ([-Wno-sized-deallocation]): Likewise.
18980 ([-femit-class-debug-always]): Likewise.
18981 ([-femit-struct-debug-detailed]): Likewise.
18982 ([-fno-keep-inline-dllexport]): Likewise.
18983 ([-fira-algorithm]): Likewise.
18984 ([-fira-region]): Likewise.
18985 ([-flra-remat]): Likewise.
18986 ([-fipa-ra]): Likewise.
18987 ([-fhoist-adjacent-loads]): Likewise.
18988 ([-fisolate-erroneous-paths-dereference]): Likewise.
18989 ([-fisolate-erroneous-paths-attribute]): Likewise.
18990 ([-ftree-switch-conversion]): Likewise.
18991 ([-ftree-tail-merge]): Likewise.
18992 ([-ftree-loop-if-convert]): Likewise.
18993 ([-ftree-loop-if-convert-stores]): Likewise.
18994 ([-ftree-loop-distribution]): Likewise.
18995 ([-ftree-loop-distribute-patterns]): Likewise.
18996 ([-flto-compression-level]): Likewise.
18997 ([-flto-report]): Likewise.
18998 ([-flto-report-wpa]): Likewise.
18999 ([-fuse-linker-plugin]): Likewise.
19000 ([-mfix-cortex-a53-835769]): Likewise.
19001 ([-mno-fix-cortex-a53-835769]): Likewise.
19002 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
19003 explicit listing; add a note to the discussion indicating they
19004 exist. Reorder table to group similar options. Add missing
19005 @opindex entries. Add @need commands throughout the table to
19006 allow it to be split across multiple pages.
19007 ([-m8bit-idiv]): Fix @opindex.
19008 ([-mavx256-split-unaligned-load]): Likewise.
19009 ([-mavx256-split-unaligned-store]): Likewise.
19010 ([-mstack-protector-guard]): Likewise.
19011 ([-mcpu=]): Likewise.
19012 ([-mcpu]): Likewise.
19013 ([-mpointer-size=]): Likewise.
19015 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
19017 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
19018 instead of `m' constraint. Likewise for unnamed movb comparison
19019 patterns using reg_before_reload_operand predicate.
19020 * config/pa/predicates.md (reg_before_reload_operand): Tighten
19021 predicate to reject register index and LO_SUM DLT memory forms
19024 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
19026 * doc/invoke.texi (Option Summary): Fix spelling of
19027 -fdevirtualize-at-ltrans.
19028 ([-fdevirtualize]): Fix markup.
19029 ([-fdevirtualize-speculatively]): Fix typo.
19030 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
19031 implementor-speaky.
19032 * common.opt (fdevirtualize-at-ltrans): Likewise.
19033 * ipa-devirt.c: Fix typos in comments throughout the file.
19034 (ipa_devirt): Fix typos in format strings for dump output.
19036 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
19038 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
19039 discussion of defaults, light copy-editing.
19041 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19043 * tsan.c (instrument_expr): corrected previous checkin.
19045 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19047 Instrument bit field and unaligned accesses for TSAN.
19048 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
19049 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
19050 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
19051 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
19052 unaligned memory regions.
19054 2015-01-01 Anthony Green <green@moxielogic.com>
19056 * config/moxie/predicates.md (moxie_general_movsrc_operand):
19057 Restrict move source register offsets to 16 bits.
19059 Copyright (C) 2015 Free Software Foundation, Inc.
19061 Copying and distribution of this file, with or without modification,
19062 are permitted in any medium without royalty provided the copyright
19063 notice and this notice are preserved.