1 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
4 * target-insns.def (epilogue, prologue, sibcall_prologue): New
5 targetm instruction patterns.
6 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8 * calls.c (expand_call): Likewise.
9 * cfgrtl.c (cfg_layout_finalize): Likewise.
10 * df-scan.c (df_get_entry_block_def_set): Likewise.
11 (df_get_exit_block_use_set): Likewise.
12 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
13 * final.c (final_start_function): Likewise.
14 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15 (reposition_prologue_and_epilogue_notes): Likewise.
16 * reorg.c (find_end_label): Likewise.
17 * toplev.c (process_options): Likewise.
19 2015-06-30 David Malcolm <dmalcolm@redhat.com>
21 * typed-splay-tree.h: New file.
23 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
26 * lra-int.h (lra_substitute_pseudo): Add a parameter.
27 (lra_substitute_pseudo_within_insn): Ditto.
28 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
30 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
31 to lra_substitute_pseudo.
32 * lra-lives.c (process_bb_lives): Add an argument to
33 lra_substitute_pseudo_within_insn call.
34 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
35 argument to lra_substitute_pseudo and
36 lra_substitute_pseudo_within_insn calls.
37 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
39 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
41 * configure: Regenerated.
43 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
45 * config.gcc: Support i[34567]86-*-elfiamcu target.
46 * config/i386/iamcu.h: New.
47 * config/i386/i386.opt: Add -miamcu.
48 * doc/invoke.texi: Document -miamcu.
49 * common/config/i386/i386-common.c (ix86_handle_option): Turn
50 off x87/MMX/SSE/AVX codegen for -miamcu.
51 * config/i386/i386-c.c (ix86_target_macros_internal): Define
52 __iamcu/__iamcu__ for -miamcu.
53 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
54 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
55 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
56 * config/i386/i386.c (ix86_option_override_internal): Ignore and
57 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
58 MCU by default. Default long double to 64-bit for Intel MCU.
59 Turn on -freg-struct-return for Intel MCU. Issue an error when
60 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
62 (function_arg_advance_32): Pass value whose size is no larger
63 than 8 bytes in registers for Intel MCU.
64 (function_arg_32): Likewise.
65 (ix86_return_in_memory): Return value whose size is no larger
66 than 8 bytes in registers for Intel MCU.
67 (iamcu_alignment): New function.
68 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
70 (ix86_local_alignment): Don't increase alignment for Intel MCU.
71 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
74 2015-06-30 Marek Polacek <polacek@redhat.com>
76 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
77 both operands of the resulting expression.
79 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
80 the final expression with the operand's type and then convert
81 it to the type of the expression.
83 2015-06-30 Richard Biener <rguenther@suse.de>
85 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
86 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
87 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
88 * match.pd: ... to patterns here.
90 2015-06-30 Richard Biener <rguenther@suse.de>
92 PR tree-optimization/66704
93 * tree-vect-data-refs.c (vect_setup_realignment): Use
94 make_ssa_name for non-SSA name source.
96 2015-06-30 Jakub Jelinek <jakub@redhat.com>
99 * omp-low.c (simd_clone_adjust): Handle addressable linear
100 or uniform parameters or non-gimple type uniform parameters.
102 2015-06-30 Richard Biener <rguenther@suse.de>
104 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
105 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
106 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
107 * match.pd: ... here.
108 Add a few cases of A - B -> A + (-B) when B "easily" negates.
109 Move (x & y) | x -> x and friends before
110 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
112 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
114 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
115 -mfix-ut699 is not specified.
116 (leon3_load): Rename into...
117 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
120 2015-06-30 Marek Polacek <polacek@redhat.com>
122 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
123 * match.pd: ... here.
125 2015-06-30 Richard Biener <rguenther@suse.de>
127 * target-insns.def (canonicalize_funcptr_for_compare): Add.
128 * fold-const.c (build_range_check): Replace uses of
129 HAVE_canonicalize_funcptr_for_compare.
130 (fold_widened_comparison): Likewise.
131 (fold_sign_changed_comparison): Likewise.
132 * dojump.c: Include "target.h".
133 (do_compare_and_jump): Replace uses of
134 HAVE_canonicalize_funcptr_for_compare and
135 gen_canonicalize_funcptr_for_compare.
136 * expr.c (do_store_flag): Likewise.
138 2015-06-30 Tom de Vries <tom@codesourcery.com>
140 PR tree-optimization/66652
141 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
142 max_loop_iterations to determine if nit + 1 overflows.
144 2015-06-30 Richard Biener <rguenther@suse.de>
146 * tree-vrp.c (register_edge_assert_for_2): Also register
147 asserts for dominating conversion results.
149 2015-06-30 Bin Cheng <bin.cheng@arm.com>
151 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
154 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
157 * configure.ac: Fix filds and fildq test for 64-bit.
158 * configure: Regenerated.
160 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
162 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
163 (nvptx_reorg): Here. Keep the non-subreg pieces.
165 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
167 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
168 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
170 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
172 * config/i386/i386.md (*jcc_1): Use %! in asm template.
173 Set attribute "length_nobnd" instead of "length".
176 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
178 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
180 * config/nios2/nios2.c (nios2_delegitimize_address): Make
181 assert less restrictive.
183 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
186 * cgraphunit.c (cgraph_node::finalize_function): Do not call
187 do_warn_unused_parameter.
188 * function.c (do_warn_unused_parameter): Move from here.
189 * function.h (do_warn_unused_parameter): Do not declare.
191 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
194 * gcc.target/arm/armv-sync-comp-swap.c: New.
195 * gcc.target/arm/armv-sync-op-acquire.c: New.
196 * gcc.target/arm/armv-sync-op-full.c: New.
197 * gcc.target/arm/armv-sync-op-release.c: New.
199 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
202 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
203 initial acquire barrier with final barrier.
205 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
208 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
209 initial acquire barrier with final barrier.
211 2015-06-29 Richard Henderson <rth@redhat.com>
213 * config/i386/constraints.md (Bf): New constraint.
214 * config/i386/i386-c.c (ix86_target_macros): Define
215 __GCC_ASM_FLAG_OUTPUTS__.
216 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
218 * doc/extend.texi (FlagOutputOperands): Document them.
220 2015-06-29 Jiong Wang <jiong.wang@arm.com>
222 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
223 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
225 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
226 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
227 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
228 (aarch64_symbol_context): Ditto.
229 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
230 and use new pattern name.
231 (aarch64_expand_mov_immediate): Ditto.
232 (aarch64_print_operand): Ditto.
233 (aarch64_classify_tls_symbol): Ditto.
235 2015-06-29 Marek Polacek <polacek@redhat.com>
236 Marc Glisse <marc.glisse@inria.fr>
238 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
239 * match.pd: ... pattern here.
241 2015-06-29 Tom de Vries <tom@codesourcery.com>
243 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
246 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
248 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
249 feature description, split out the native option, add a link to
250 the feature documentation, rearrange and slightly rewrite text.
251 (Aarch64 options, -mcpu): Likewise.
252 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
253 +rdma implies Adv. SIMD.
255 2015-06-29 Marek Polacek <polacek@redhat.com>
258 * function.c (stack_protect_epilogue): Remove a cast to int.
259 * doc/invoke.texi: Update -Wswitch-bool description.
261 2015-06-29 Richard Biener <rguenther@suse.de>
263 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
264 * fold-const.c (fold_binary_loc): Move &A - &B simplification
265 via ptr_difference_const ...
266 * match.pd: ... here.
267 When matching (X ^ Y) == Y also match with swapped operands.
269 2015-06-29 Richard Biener <rguenther@suse.de>
271 * lto-streamer.h (LTO_major_version): Bump to 5.
273 2015-06-29 Richard Biener <rguenther@suse.de>
275 PR tree-optimization/66677
276 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
277 STMT_VINFO_VEC_STMT clobbering less strict.
279 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
282 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
283 division, compute max and min when value ranges for dividend and
284 divisor are available.
286 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
287 Sandra Loosemore <sandra@codesourcery.com>
289 * regrename.h (regrename_do_replace): Change to return bool.
290 * regrename.c (rename_chains): Check return value of
292 (regrename_do_replace): Re-validate the modified insns and
294 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
295 Update to match rename_chains changes.
296 * config/c6x/c6x.c (try_rename_operands): Assert that
297 regrename_do_replace returns true.
299 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
301 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
302 operand 2 here. Use copy_addr_to_reg to copy non-index
303 register operand 2 to a temporary.
304 (<mode>_stx): Ditto for operand 1.
305 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
306 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
307 (ix86_store_bounds): Ditto.
309 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
311 * print-tree.c (print_node) [TREE_VEC]: Print its length.
313 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
315 * gimple.c (gimple_call_set_fndecl): Remove.
316 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
317 build1_loc directly instead of build_fold_addr_expr_loc.
319 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
321 * hash-map.h (hash_map::traverse): Use the definition of the
322 Key typedef rather than the typedef itself.
324 2015-06-26 Martin Jambor <mjambor@suse.cz>
327 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
328 NULL instead of calling dump_enabled_p.
330 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
332 * config/aarch64/aarch64.opt: (override): New.
333 * doc/invoke.texi (override): Document.
334 * config/aarch64/aarch64.c (aarch64_flag_desc): New
335 (aarch64_fusible_pairs): Likewise.
336 (aarch64_tuning_flags): Likewise.
337 (aarch64_tuning_override_function): Likewise.
338 (aarch64_tuning_override_functions): Likewise.
339 (aarch64_parse_one_option_token): Likewise.
340 (aarch64_parse_boolean_options): Likewise.
341 (aarch64_parse_fuse_string): Likewise.
342 (aarch64_parse_tune_string): Likewise.
343 (aarch64_parse_one_override_token): Likewise.
344 (aarch64_parse_override_string): Likewise.
345 (aarch64_override_options): Parse the -override string if it
348 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
350 * config/aarch64/aarch64-protos.h (tune_params): Remove
352 (aarch64_tune_params): Remove const, change to no longer be
354 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
355 change to no longer be a pointer, initialize to generic_tunings.
356 (aarch64_min_divisions_for_recip_mul): Change dereference of
357 aarch64_tune_params to member access.
358 (aarch64_reassociation_width): Likewise.
359 (aarch64_rtx_mult_cost): Likewise.
360 (aarch64_address_cost): Likewise.
361 (aarch64_branch_cost): Likewise.
362 (aarch64_rtx_costs): Likewise.
363 (aarch64_register_move_cost): Likewise.
364 (aarch64_memory_move_cost): Likewise.
365 (aarch64_sched_issue_rate): Likewise.
366 (aarch64_builtin_vectorization_cost): Likewise.
367 (aarch64_override_options): Take a copy of the selected tuning
368 struct in to aarch64_tune_params, rather than just setting
369 a pointer, change dereferences of aarch64_tune_params to member
371 (aarch64_override_options_after_change): Change dereferences of
372 aarch64_tune_params to member access.
373 (aarch64_macro_fusion_p): Likewise.
374 (aarch_macro_fusion_pair_p): Likewise.
375 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
377 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
379 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
380 (aarch64_tune_flags): Likewise.
381 (AARCH64_TUNE_FMA_STEERING): Likewise.
382 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
383 to AARCH64_FL_USE_FMA_STEERING_PASS.
384 (cortex-a57.cortex-a53): Likewise.
385 (cortex-a72): Use cortexa72_tunings.
386 (cortex-a72.cortex-a53): Likewise.
387 (exynos-m1): Likewise.
388 * config/aarch64/aarch64-protos.h (tune_params): Add
389 a field: extra_tuning_flags.
390 * config/aarch64/aarch64-tuning-flags.def: New.
391 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
392 (aarch64_extra_tuning_flags): Likewise.
393 (aarch64_tune_params): Declare here.
394 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
395 (cortexa53_tunings): Likewise.
396 (cortexa57_tunings): Likewise.
397 (thunderx_tunings): Likewise.
398 (xgene1_tunings): Likewise.
399 (cortexa72_tunings): New.
400 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
401 (gate): Check against aarch64_tune_params.
402 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
405 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
407 * config/aarch64/aarch64-fusion-pairs.def: New.
408 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
409 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
410 aarch64_fusion_pairs.
411 (AARCH64_FUSE_MOV_MOVK): Likewise.
412 (AARCH64_FUSE_ADRP_ADD): Likewise.
413 (AARCH64_FUSE_MOVK_MOVK): Likewise.
414 (AARCH64_FUSE_ADRP_LDR): Likewise.
415 (AARCH64_FUSE_CMP_BRANCH): Likewise.
417 2015-06-26 Jiong Wang <jiong.wang@arm.com>
419 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
420 SYMBOL_SMALL_GOT_28K.
421 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
422 relocation modifiers.
423 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
424 (ldr_got_small_28k_<mode>): New.
425 (ldr_got_small_28k_sidi): New.
426 * config/aarch64/iterators.md (got_modifier): New mode iterator.
427 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
428 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
429 SYMBOL_SMALL_GOT_28K.
430 (aarch64_rtx_costs): Add costs for new instruction sequences.
431 (initialize_aarch64_code_model): Initialize new model.
432 (aarch64_classify_symbol): Recognize new model and new symbol classification.
433 (aarch64_asm_preferred_eh_data_format): Support new model.
434 (aarch64_load_symref_appropriately): Generate new instruction
436 (TARGET_USE_PSEUDO_PIC_REG): New definition.
437 (aarch64_use_pseudo_pic_reg): New function.
439 2015-06-26 Jiong Wang <jiong.wang@arm.com>
441 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
442 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
443 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
444 (aarch64_expand_mov_immediate): Ditto.
445 (aarch64_print_operand): Ditto.
446 (aarch64_classify_symbol): Ditto.
448 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
450 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
452 2015-06-26 Bin Cheng <bin.cheng@arm.com>
455 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
456 assertion failed. Remove assertion itself.
458 2015-06-26 Richard Biener <rguenther@suse.de>
460 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
461 and -A CMP CST -> A CMP -CST which is redundant with a pattern
463 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
464 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
465 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
466 * match.pd: ... patterns here.
468 2015-06-26 Marek Polacek <polacek@redhat.com>
470 * match.pd ((x | y) & ~(x & y) -> x ^ y,
471 (x | y) & (~x ^ y) -> x & y): New patterns.
473 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
475 * rtl.h (emit): Add an optional boolean parameter to control
476 whether barriers are emitted.
477 * emit-rtl.c (emit): Likewise.
478 * gensupport.c (get_emit_function): Return null rather than "emit".
479 * genemit.c (gen_emit_seq): Handle the null return value.
480 Don't emit barriers after the final instruction in the sequence.
481 * gentarget-def.c (main): Don't emit barriers after the instruction.
483 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
485 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
488 2015-06-26 Richard Biener <rguenther@suse.de>
490 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
492 2015-06-26 Richard Biener <rguenther@suse.de>
494 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
495 irrespective on whether the inner operation has a single use
496 of both off are constant.
498 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
499 Segher Boessenkool <segher@kernel.crashing.org>
502 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
503 before doing PUT_MODE or PUT_CODE on operands to avoid
504 in-place RTX modification.
506 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
508 * gentarget-def.c (def_target_insn): Cast return of strtol to
511 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
513 * gimple.h (gimple_call_set_fn): Move inline function.
514 * gimple.c (gimple_call_set_fn): Relocate here.
516 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
520 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
521 the replacement insn will work.
523 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
525 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
528 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
530 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
531 * cgraph.h: Include ipa-ref.h and plugin-api.h.
532 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
533 (symtab_node::address_can_be_compared_p): Move function.
534 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
536 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
537 * auto-profile.c: Likewise.
538 * bb-reorder.c: Likewise.
539 * builtins.c: Likewise.
541 * cfgexpand.c: Likewise.
542 * cgraphbuild.c: Likewise.
543 * cgraphclones.c: Likewise.
544 * cgraphunit.c: Likewise.
545 * combine.c: Likewise.
546 * coverage.c: Likewise.
547 * data-streamer-in.c: Likewise.
548 * data-streamer-out.c: Likewise.
549 * data-streamer.c: Likewise.
550 * dbxout.c: Likewise.
551 * dwarf2out.c: Likewise.
552 * except.c: Likewise.
555 * fold-const.c: Likewise.
556 * ggc-page.c: Likewise.
557 * gimple-fold.c: Likewise.
558 * gimple-iterator.c: Likewise.
559 * gimple-pretty-print.c: Likewise.
560 * gimple-streamer-in.c: Likewise.
561 * gimple-streamer-out.c: Likewise.
562 * gimple.c: Likewise.
563 * gimplify.c: Likewise.
564 * ipa-chkp.c: Likewise.
565 * ipa-comdats.c: Likewise.
566 * ipa-cp.c: Likewise.
567 * ipa-devirt.c: Likewise.
568 * ipa-icf-gimple.c: Likewise.
569 * ipa-icf.c: Likewise.
570 * ipa-inline-analysis.c: Likewise.
571 * ipa-inline-transform.c: Likewise.
572 * ipa-inline.c: Likewise.
573 * ipa-polymorphic-call.c: Likewise.
574 * ipa-profile.c: Likewise.
575 * ipa-prop.c: Likewise.
576 * ipa-pure-const.c: Likewise.
577 * ipa-ref.c: Likewise.
578 * ipa-reference.c: Likewise.
579 * ipa-split.c: Likewise.
580 * ipa-utils.c: Likewise.
581 * ipa-visibility.c: Likewise.
583 * langhooks.c: Likewise.
584 * lto-cgraph.c: Likewise.
585 * lto-compress.c: Likewise.
586 * lto-opts.c: Likewise.
587 * lto-section-in.c: Likewise.
588 * lto-section-out.c: Likewise.
589 * lto-streamer-in.c: Likewise.
590 * lto-streamer-out.c: Likewise.
591 * lto-streamer.c: Likewise.
592 * omp-low.c: Likewise.
593 * opts-global.c: Likewise.
594 * passes.c: Likewise.
595 * predict.c: Likewise.
596 * print-tree.c: Likewise.
597 * profile.c: Likewise.
599 * sanopt.c: Likewise.
600 * stor-layout.c: Likewise.
601 * symtab.c: Likewise.
602 * toplev.c: Likewise.
603 * trans-mem.c: Likewise.
604 * tree-cfg.c: Likewise.
605 * tree-chkp.c: Likewise.
606 * tree-eh.c: Likewise.
607 * tree-emutls.c: Likewise.
608 * tree-inline.c: Likewise.
609 * tree-nested.c: Likewise.
610 * tree-parloops.c: Likewise.
611 * tree-pretty-print.c: Likewise.
612 * tree-profile.c: Likewise.
613 * tree-sra.c: Likewise.
614 * tree-ssa-alias.c: Likewise.
615 * tree-ssa-live.c: Likewise.
616 * tree-ssa-loop-ivcanon.c: Likewise.
617 * tree-ssa-loop-ivopts.c: Likewise.
618 * tree-ssa-pre.c: Likewise.
619 * tree-ssa-sccvn.c: Likewise.
620 * tree-ssa-strlen.c: Likewise.
621 * tree-ssa-structalias.c: Likewise.
622 * tree-streamer-in.c: Likewise.
623 * tree-streamer-out.c: Likewise.
624 * tree-streamer.c: Likewise.
625 * tree-switch-conversion.c: Likewise.
626 * tree-tailcall.c: Likewise.
627 * tree-vect-data-refs.c: Likewise.
628 * tree-vect-stmts.c: Likewise.
629 * tree-vectorizer.c: Likewise.
633 * value-prof.c: Likewise.
634 * varasm.c: Likewise.
635 * varpool.c: Likewise.
636 * config/arm/arm.c: Likewise.
637 * config/bfin/bfin.c: Likewise.
638 * config/c6x/c6x.c: Likewise.
639 * config/cris/cris.c: Likewise.
640 * config/darwin-c.c: Likewise.
641 * config/darwin.c: Likewise.
642 * config/i386/i386.c: Likewise.
643 * config/i386/winnt.c: Likewise.
644 * config/microblaze/microblaze.c: Likewise.
645 * config/mips/mips.c: Likewise.
646 * config/rs6000/rs6000.c: Likewise.
647 * config/rx/rx.c: Likewise.
648 * config/s390/s390.c: Likewise.
649 * config/tilegx/mul-tables.c: Likewise.
651 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
653 * config/aarch64/aarch64.c, config/alpha/alpha.c,
654 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
655 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
656 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
657 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
658 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
659 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
660 config/microblaze/microblaze.c, config/mips/mips.c,
661 config/mmix/mmix.c, config/mn10300/mn10300.c,
662 config/moxie/moxie.c, config/msp430/msp430.c,
663 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
664 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
665 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
666 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
667 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
668 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
669 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
670 target-def.h include.
671 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
673 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
675 * Makefile.in (TARGET_DEF): Add target-insns.def.
676 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
677 (build/gentarget-def.o): New rule.
678 (genprogrtl): Add target-def.
679 * target-insns.def, gentarget-def.c: New files.
680 * target.def: Add targetm.have_* and targetm.gen_* hooks,
681 based on the contents of target-insns.def.
682 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
683 (HAVE_return, gen_return): Delete.
684 * target-def.h: Include insn-target-def.h.
685 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
686 instead of direct calls. Rely on them to do the appropriate assertions.
687 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
688 (convert_jumps_to_returns): Use targetm interface instead of
690 (thread_prologue_and_epilogue_insns): Likewise.
691 * reorg.c (find_end_label, dbr_schedule): Likewise.
692 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
693 * shrink-wrap.c (convert_to_simple_return): Likewise.
694 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
696 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
698 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
699 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
700 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
701 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
702 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
703 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
704 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
705 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
706 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
707 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
708 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
709 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
710 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
711 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
712 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
713 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
716 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
718 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
719 (unbounded_int_hashmap_traits::key_type): Likewise.
720 * hash-map.h (hash_map): Get the key type from the traits.
721 * hash-traits.h (default_hash_traits): By default, inherit from the
723 * alias.c (alias_set_traits): Delete.
724 (alias_set_entry_d::children): Use alias_set_hash as the first
726 (record_alias_subset): Update accordingly.
727 * except.c (tree_hash_traits): Delete.
728 (type_to_runtime_map): Use tree_hash as the first template parameter.
729 (init_eh): Update accordingly.
730 * genmatch.c (capture_id_map_hasher): Delete.
731 (cid_map_t): Use nofree_string_hash as first template parameter.
732 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
733 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
734 Use symbol_compare_hash as the first template parameter in
736 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
737 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
739 * passes.c (pass_registry_hasher): Delete.
740 (name_to_pass_map): Use nofree_string_hash as the first template
742 (register_pass_name): Update accordingly.
743 * sanopt.c (sanopt_tree_map_traits): Delete.
744 (sanopt_tree_triplet_map_traits): Delete.
745 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
747 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
748 the first template parameter.
749 * sese.c (rename_map_hasher): Delete.
750 (rename_map_type): Use tree_ssa_name_hash as the first template
752 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
753 (function_summary::m_map): Use map_hash as the first template
755 (function_summary::release): Update accordingly.
756 * tree-if-conv.c (phi_args_hash_traits): Delete.
757 (predicate_scalar_phi): Use tree_operand_hash as the first template
758 parameter to phi_arg_map.
759 * tree-inline.h (dependence_hasher): Delete.
760 (copy_body_data::dependence_map): Use dependence_hash as the first
762 * tree-inline.c (remap_dependence_clique): Update accordingly.
763 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
764 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
766 (addr_stridxptr): Update accordingly.
767 * value-prof.c (profile_id_traits): Delete.
768 (cgraph_node_map): Use profile_id_hash as the first template
770 (init_node_map): Update accordingly.
771 * config/alpha/alpha.c (string_traits): Delete.
772 (machine_function::links): Use nofree_string_hash as the first
774 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
775 * config/m32c/m32c.c (pragma_traits): Delete.
776 (pragma_htab): Use nofree_string_hash as the first template parameter.
777 (m32c_note_pragma_address): Update accordingly.
778 * config/mep/mep.c (pragma_traits): Delete.
779 (pragma_htab): Use nofree_string_hash as the first template parameter.
780 (mep_note_pragma_flag): Update accordingly.
781 * config/mips/mips.c (mips16_flip_traits): Delete.
782 (mflip_mips16_htab): Use nofree_string_hash as the first template
784 (mflip_mips16_use_mips16_p): Update accordingly.
785 (local_alias_traits): Delete.
786 (mips16_local_aliases): Use nofree_string_hash as the first template
788 (mips16_local_alias): Update accordingly.
790 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
792 * hash-map-traits.h (default_hashmap_traits): Delete.
794 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
796 * hash-map-traits.h (unbounded_hashmap_traits): New class.
797 (unbounded_int_hashmap_traits): Likewise.
798 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
800 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
802 * ipa-icf.h (symbol_compare_hash): New class.
803 (symbol_compare_hashmap_traits): Use it.
804 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
805 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
806 (mem_alloc_description::reverse_mem_map_t): Remove redundant
807 default_hashmap_traits.
808 * sanopt.c (sanopt_tree_triplet_hash): New class.
809 (sanopt_tree_triplet_map_traits): Use it.
811 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
813 * gengtype-parse.c (require_template_declaration): Allow '+' in
814 template parameters. Consolidate cases.
815 * hash-traits.h (int_hash): New class.
816 * alias.c (alias_set_hash): New structure.
817 (alias_set_traits): Use it.
818 * symbol-summary.h (function_summary::map_hash): New class.
819 (function_summary::summary_hashmap_traits): Use it.
820 * tree-inline.h (dependence_hash): New class.
821 (dependence_hasher): Use it.
822 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
823 * value-prof.c (profile_id_hash): New class.
824 (profile_id_traits): Use it.
826 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
828 * config/mips/mips.c (mips16_flip_traits): Use it.
829 (local_alias_traits, mips16_local_aliases): Convert from a map of
830 rtxes to a map of symbol names.
831 (mips16_local_alias): Update accordingly.
833 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
835 * hash-traits.h (string_hash, nofree_string_hash): New classes.
836 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
837 * passes.c (pass_registry_hasher): Likewise.
838 * config/alpha/alpha.c (string_traits): Likewise.
839 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
840 * config/m32c/m32c.c (pragma_traits): Likewise.
841 * config/mep/mep.c (pragma_traits): Likewise.
843 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
845 * tree-hash-traits.h (tree_hash): New class.
846 * except.c: Include tree-hash-traits.h.
847 (tree_hash_traits): Use tree_hash.
849 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
851 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
852 * sese.c: Include tree-hash-traits.h.
853 (rename_map_hasher): Use tree_ssa_name_hasher.
855 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
857 * tree-hash-traits.h (tree_decl_hash): New class.
858 * tree-ssa-strlen.c: Include tree-hash-traits.h.
859 (stridxlist_hash_traits): Use tree_decl_hash.
861 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
863 * tree-hash-traits.h: New file.
864 (tree_operand_hash): New class.
865 * sanopt.c: Include tree-hash-traits.h.
866 (sanopt_tree_map_traits): Use tree_operand_hash.
867 * tree-if-conv.c: Include tree-hash-traits.h.
868 (phi_args_hash_traits): Use tree_operand_hash.
869 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
870 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
872 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
874 * hash-map-traits.h: Include hash-traits.h.
875 (simple_hashmap_traits): New class.
876 * mem-stats.h (hash_map): Change the default traits to
877 simple_hashmap_traits<default_hash_traits<Key> >.
879 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
881 * hash-table.h: Update comments.
883 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
885 * hash-traits.h (default_hash_traits): New structure.
886 * hash-set.h (default_hashset_traits): Delete.
887 (hash_set): Use default_hash_traits<Key> instead of
888 default_hashset_traits. Delete hash_entry type and use Key directly.
889 * ipa-devirt.c (pair_traits): Delete.
890 (default_hash_traits <type_pair>): Override.
891 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
892 (odr_types_equivalent_p, add_type_duplicate): Likewise.
894 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
896 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
898 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
900 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
901 (has_is_empty, is_empty_helper): Delete.
902 (has_mark_deleted, mark_deleted_helper): Delete.
903 (has_mark_empty, mark_empty_helper): Delete.
904 (hash_table::is_deleted): Call the Descriptor unconditionally.
905 (hash_table::is_empty): Likewise.
906 (hash_table::mark_deleted): Likewise.
907 (hash_table::mark_empty): Likewise.
909 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
911 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
912 redundant typedefs and members.
913 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
915 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
916 * ipa-devirt.c (odr_name_hasher): Likewise.
917 (polymorphic_call_target_hasher): Likewise.
918 * ira-costs.c (cost_classes_hasher): Likewise.
919 * statistics.c (stats_counter_hasher): Likewise.
920 * trans-mem.c (log_entry_hasher): Likewise.
921 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
922 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
923 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
924 * var-tracking.c (variable_hasher): Likewise.
925 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
926 Remove redundant typedefs and members.
928 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
930 * hash-traits.h (ggc_cache_hasher): Rename to...
931 (ggc_cache_remove): ...this and remove typedefs.
932 (ggc_cache_ptr_hash): New class.
933 * hash-table.h: Update commentary.
934 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
935 rather than ggc_cache_hasher.
936 (const_wide_int_hasher, reg_attr_hasher): Likewise.
937 (const_double_hasher, const_fixed_hasher): Likewise.
938 * function.c (insn_cache_hasher): Likewise.
939 * trans-mem.c (tm_wrapper_hasher): Likewise.
940 * tree.h (tree_decl_map_cache_hasher): Likewise.
941 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
942 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
943 * ubsan.c (tree_type_map_cache_hasher): Likewise.
944 * varasm.c (tm_clone_hasher): Likewise.
945 * config/i386/i386.c (dllimport_hasher): Likewise.
946 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
947 (tree_hasher): Likewise.
949 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
951 * hash-traits.h (ggc_hasher): Rename to...
952 (ggc_remover): ...this and remove typedefs.
953 (ggc_cache_hasher): Update accordingly. Add typedefs.
954 (ggc_ptr_hash): New class.
955 * hash-table.h: Update comment.
956 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
958 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
959 (tree_descriptor_hasher): Likewise.
960 * cgraph.c (function_version_hasher): Likewise.
961 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
962 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
963 (dw_loc_list_hasher, addr_hasher): Likewise.
964 * function.h (used_type_hasher): Likewise.
965 * function.c (temp_address_hasher): Likewise.
966 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
967 * libfuncs.h (libfunc_hasher): Likewise.
968 * lto-streamer.h (decl_state_hasher): Likewise.
969 * optabs.c (libfunc_decl_hasher): Likewise.
970 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
971 * varasm.c (section_hasher, object_block_hasher): Likewise.
972 (const_rtx_desc_hasher): Likewise.
973 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
974 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
976 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
978 * hash-traits.h (free_ptr_hash): New class.
979 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
980 rather than typed_free_remove. Remove redudant typedefs.
981 (external_ref_hasher): Likewise.
982 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
983 (ehspec_hasher): Likewise.
984 * ggc-common.c (saving_hasher): Likewise.
985 * gimplify.c (gimplify_hasher): Likewise.
986 * haifa-sched.c (delay_i2_hasher): Likewise.
987 * loop-invariant.c (invariant_expr_hasher): Likewise.
988 * loop-iv.c (biv_entry_hasher): Likewise.
989 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
990 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
991 * tree-cfg.c (locus_discrim_hasher): Likewise.
992 * tree-eh.c (finally_tree_hasher): Likewise.
993 * tree-into-ssa.c (var_info_hasher): Likewise.
994 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
995 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
996 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
997 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
998 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
999 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
1000 (shared_bitmap_hasher): Likewise.
1001 * tree-ssa-threadupdate.c (redirection_data): Likewise.
1002 * tree-vectorizer.h (peel_info_hasher): Likewise.
1003 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
1004 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
1006 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1008 * hash-table.h: Update comments.
1009 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
1010 (nofree_ptr_hash): New class.
1011 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
1012 than typed_noop_remove. Remove redudant typedefs.
1013 * attribs.c (attribute_hasher): Likewise.
1014 * cfg.c (bb_copy_hasher): Likewise.
1015 * cselib.c (cselib_hasher): Likewise.
1016 * dse.c (invariant_group_base_hasher): Likewise.
1017 * dwarf2cfi.c (trace_info_hasher): Likewise.
1018 * dwarf2out.c (macinfo_entry_hasher): Likewise.
1019 (comdat_type_hasher, loc_list_hasher): Likewise.
1020 * gcse.c (pre_ldst_expr_hasher): Likewise.
1021 * genmatch.c (id_base): Likewise.
1022 * genrecog.c (test_pattern_hasher): Likewise.
1023 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
1024 * haifa-sched.c (delay_i1_hasher): Likewise.
1025 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
1026 * ipa-icf.h (congruence_class_group_hash): Likewise.
1027 * ipa-profile.c (histogram_hash): Likewise.
1028 * ira-color.c (allocno_hard_regs_hasher): Likewise.
1029 * lto-streamer.h (string_slot_hasher): Likewise.
1030 * lto-streamer.c (tree_entry_hasher): Likewise.
1031 * plugin.c (event_hasher): Likewise.
1032 * postreload-gcse.c (expr_hasher): Likewise.
1033 * store-motion.c (st_expr_hasher): Likewise.
1034 * tree-sra.c (uid_decl_hasher): Likewise.
1035 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
1036 (ssa_name_var_hash): Likewise.
1037 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
1038 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
1039 * tree-ssa-pre.c (pre_expr_d): Likewise.
1040 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
1041 * vtable-verify.h (registration_hasher): Likewise.
1042 * vtable-verify.c (vtbl_map_hasher): Likewise.
1043 * config/arm/arm.c (libcall_hasher): Likewise.
1044 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
1045 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
1046 * config/sol2.c (comdat_entry_hasher): Likewise.
1047 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
1048 (print_fold_checksum, fold_checksum_tree): Likewise.
1049 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
1050 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
1051 (fold_build_call_array_loc): Likewise.
1052 * tree-ssa-ccp.c (gimple_htab): Likewise.
1053 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
1054 rather than pointer_type.
1056 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1058 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
1059 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
1061 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1063 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
1064 (ggc_hasher::ggc_mx): Likewise.
1065 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
1066 that duplicate ggc_hasher ones.
1068 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1070 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
1071 (gt_cleare_cache): Check here for deleted and empty entries.
1072 Replace handle_cache_entry with a call to keep_cache_entry.
1073 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
1074 (ggc_cache_hasher::keep_cache_entry): New function.
1075 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
1076 (tm_wrapper_hasher::keep_cache_entry): New function.
1077 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
1078 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1079 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
1080 (type_cache_hasher::keep_cache_entry): New function.
1081 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
1082 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1083 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
1084 (tree_type_map_cache_hasher::keep_cache_entry): New function.
1085 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
1086 (tm_clone_hasher::keep_cache_entry): New function.
1087 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
1088 (dllimport_hasher::keep_cache_entry): New function.
1090 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1092 * hash-table.h: Include hash-traits.h.
1093 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
1094 (ggc_cache_hasher): Move to...
1095 * hash-traits.h: ...this new file.
1097 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1099 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
1100 struct cl_optimization.
1101 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
1102 * tree.c (make_node_stat): Allocate cl_optimization struct.
1103 (copy_node_stat): Allocate and copy cl_optimization struct.
1105 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1107 * function.h (struct incoming_args): Move struct.
1108 (pass_by_reference, reference_callee_copied): Remove prototypes.
1109 * emit-rtl.h (struct incoming_args): Relocate struct here.
1110 * calls.h (pass_by_reference, reference_callee_copied): Relocate
1112 * function.c (pass_by_reference, reference_callee_copied): Move.
1113 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
1114 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
1115 * ipa-chkp.c: Include calls.h.
1117 2015-06-25 Andrew Macleod <amacleod@redhat.com>
1119 * alias.h (alias_set_type): Move typedef.
1120 * coretypes.h (alias_set_type): Relocate typedef here.
1121 * rtl.h: Don't include alias.h.
1123 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1125 * cgraph.h (cgraph_rtl_info): Move to rtl.h
1126 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
1128 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
1129 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
1131 * calls.c: Include hard-reg-set.h before rtl.h.
1134 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1135 Vladimir Makarov <vmakarov@redhat.com>
1137 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
1140 2015-06-25 Richard Biener <rguenther@suse.de>
1142 * fold-const.c (fold_binary_loc): Move simplification of
1143 (X <<>> C1) & C2 ...
1144 * match.pd: ... here.
1146 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
1148 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
1150 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1152 * match.pd: Add patterns for vec_conds between 1 and 0.
1154 2015-06-25 Richard Biener <rguenther@suse.de>
1156 * tree-vect-stmts.c (vectorizable_conversion): Do not set
1157 STMT_VINFO_VEC_STMT for SLP.
1158 (vectorizable_store): Likewise.
1159 (vectorizable_load): Likewise.
1160 (vect_transform_stmt): Catch SLP vectorization clobbering
1161 STMT_VINFO_VEC_STMT.
1163 2015-06-25 Richard Biener <rguenther@suse.de>
1165 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
1167 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
1168 cleanup resulting dead code and parameters.
1169 (vect_transform_slp_perm_load): Adjust.
1171 2015-06-25 Nick Clifton <nickc@redhat.com>
1173 * config/bfin/bfin.c (bfin_expand_prologue): Set
1174 current_function_static_stack_size if flag_stack_usage_info is
1176 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
1177 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
1178 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1179 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
1181 2015-06-25 Tom de Vries <tom@codesourcery.com>
1183 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
1184 comment that the generated IV is unsigned.
1186 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1189 * config/arm/arm.c (arm_dbx_register_number): Return
1190 DWARF_FRAME_REGISTERS by default.
1192 2015-06-25 Tom de Vries <tom@codesourcery.com>
1194 * dominance.c (calculate_dominance_info): Fix verify_dominators call
1195 argument. Call verify_dominator when reusing dominator info.
1197 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
1200 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
1201 an additional element of the unspec vector. Modify indices
1203 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
1204 * config/sh/sh.c (prepare_move_operands): Pass incremented
1205 const_int to gen_GOTaddr2picreg.
1206 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
1208 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
1210 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
1211 Condition on TARGET_FLOAT.
1213 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
1215 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
1218 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
1220 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
1222 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
1223 aarch64_err_no_fpadvsimd.
1225 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
1226 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
1227 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
1228 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
1229 Turn error into assert, test TARGET_FLOAT.
1230 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
1233 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
1236 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
1238 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1240 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
1242 2015-06-24 Renlin Li <renlin.li@arm.com>
1244 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
1245 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
1247 2015-06-24 Richard Biener <rguenther@suse.de>
1249 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
1251 (lower_opt_convert): Support lowering of conditional view_convert.
1252 (parser::parse_operation): Likewise.
1253 (parser::parse_for): Likewise.
1255 2015-06-24 Renlin Li <renlin.li@arm.com>
1257 * varasm.c (emit_local): Use unsigned int for align variable.
1259 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1262 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
1263 for negative numbers.
1265 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1267 PR rtl-optimization/66306
1268 * reload.c (find_reloads): Swap the match_dup info for
1269 commutative operands.
1271 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1273 * config/s390/vx-builtins.md
1274 ("vec_scatter_element<mode>_<non_vec_int>")
1275 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
1276 attribute with bhfgq.
1278 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1280 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
1282 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1284 * config/s390/s390-builtin-types.def: Add flag to indicate the
1285 options under which the function type is needed.
1286 * config/s390/s390-builtins.def: Add flag to indicate the options
1287 under which the builtin is enabled.
1288 * config/s390/s390-builtins.h: Add flags parameter to macro
1290 (bflags_for_builtin): New function.
1291 (flags_for_builtin): Renamed to ...
1292 (opflags_for_builtin): ... this.
1293 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
1294 flags_for_builtin to bflags_for_builtin and
1295 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
1296 * config/s390/s390.c: Add initialization of bflags_builtin and
1297 opflags_builtin arrays.
1298 Remove code for flags_builtin.
1299 (s390_init_builtins): Only create builtin function types if one of
1300 their flags is active.
1301 Only create builtins if all of their flags are active.
1302 (s390_expand_builtin): Rename flags_for_builtin to
1303 opflags_for_builtin.
1305 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1307 * config/s390/vecintrin.h: Remove internal builtins.
1309 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1311 * config/s390/s390.c (s390_secondary_reload): Fix check for
1312 GENERAL_REGS register class.
1314 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1316 * config/s390/s390.c (s390_support_vector_misalignment): Call
1317 default implementation for !TARGET_VX.
1319 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1321 * config/s390/s390.c (s390_legitimate_constant_p): Add
1324 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1326 * config/s390/s390.c (s390_vector_abi): New variable definition.
1327 (s390_check_type_for_vector_abi): New function.
1328 (TARGET_ASM_FILE_END): New macro definition.
1329 (s390_asm_file_end): New function.
1330 (s390_function_arg): Call s390_check_type_for_vector_abi.
1331 (s390_gimplify_va_arg): Likewise.
1332 * configure: Regenerate.
1333 * configure.ac: Check for .gnu_attribute Binutils feature.
1335 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
1338 * config/bfin/bfin.c (hwloop_optimize): Initialize
1339 JUMP_LABEL for newly created jump.
1341 2015-06-23 Tristan Gingold <gingold@adacore.com>
1343 * collect-utils.c (collect_wait): Unlink the response file here
1346 (utils_cleanup): ...and here.
1348 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1350 * df-scan.c: Don't include target-def.h.
1351 * targhooks.c: Likewise.
1352 * config/arm/arm-c.c: Likewise.
1353 * config/i386/i386-c.c: Likewise.
1354 * config/nds32/nds32-cost.c: Likewise.
1355 * config/nds32/nds32-fp-as-gp.c: Likewise.
1356 * config/nds32/nds32-intrinsic.c: Likewise.
1357 * config/nds32/nds32-isr.c: Likewise.
1358 * config/nds32/nds32-md-auxiliary.c: Likewise.
1359 * config/nds32/nds32-memory-manipulation.c: Likewise.
1360 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1361 * config/nds32/nds32-predicates.c: Likewise.
1363 2015-06-23 Richard Biener <rguenther@suse.de>
1365 PR tree-optimization/66636
1366 * tree-vect-stmts.c (vectorizable_store): Properly compute the
1367 def type for further defs for strided stores.
1369 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
1371 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
1372 conditional selects.
1373 (setcc_int<mode>, setcc_float<mode>): Reformat.
1375 2015-06-23 Marek Polacek <polacek@redhat.com>
1377 * match.pd ((x + y) - (x | y) -> x & y,
1378 (x + y) - (x & y) -> x | y): New patterns.
1380 2015-06-23 Ludovic Courtès <ludo@gnu.org>
1383 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
1384 '-dynamic-linker' within %{!shared: ...}.
1386 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
1389 * config/i386/predicates.md (addsub_vm_operator): New predicate.
1390 (addsub_vs_operator): Ditto.
1391 (addsub_vs_parallel): Ditto.
1392 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
1393 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
1394 Put minus RTX before plus and adjust vec_merge selector.
1395 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
1396 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
1397 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
1398 (addsub vec_merge splitters): New combiner splitters.
1399 (addsub vec_select/vec_concat splitters): Ditto.
1401 2015-06-23 Bin Cheng <bin.cheng@arm.com>
1403 PR tree-optimization/66449
1404 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
1405 POINTER_PLUS_EXPR for pointers.
1407 2015-06-23 Alan Modra <amodra@gmail.com>
1409 * rtlanal.c (commutative_operand_precedence): Correct comments.
1410 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
1411 declaration. Return an int. Distinguish REG,REG return from
1413 (struct simplify_plus_minus_op_data): Make local to function.
1414 (simplify_plus_minus): Don't set canonicalized if merely sorting
1415 registers. Avoid packing ops if nothing changes. White space fixes.
1417 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1419 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
1420 -fdump-ada-spec is passed but not if -fsyntax-only is.
1422 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
1425 * lra-lives.c (process_bb_lives): Check insn copying the same
1426 reload pseudo and don't create a copy for it.
1428 2015-06-22 Tom de Vries <tom@codesourcery.com>
1430 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
1433 2015-06-22 Tom de Vries <tom@codesourcery.com>
1435 * builtins.def (DEF_GOMP_BUILTIN): Test
1436 'flag_tree_parallelize_loops > 1' instead of
1437 'flag_tree_parallelize_loops'. Test flag_cilkplus.
1439 2015-06-22 Tom de Vries <tom@codesourcery.com>
1441 * dominance.c (calculate_dominance_info): Verify dominators if
1444 2015-06-22 Marek Polacek <polacek@redhat.com>
1446 * match.pd ((x ^ y) ^ (x | y) -> x & y,
1447 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
1448 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
1449 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
1451 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
1454 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
1455 cost of embedded comparison.
1457 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1460 * config/rs6000/predicates.md (altivec_register_operand): Permit
1461 virtual stack registers.
1462 (vsx_register_operand): Likewise.
1463 (vfloat_operand): Likewise.
1464 (vint_operand): Likewise.
1465 (vlogical_operand): Likewise.
1467 2015-06-22 Richard Biener <rguenther@suse.de>
1469 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
1470 and single_scalar_iteration_cost members.
1471 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
1472 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
1473 (vect_get_single_scalar_iteration_cost): Remove.
1474 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
1475 Use LOOP_VINFO_SCALAR_ITERATION_COST.
1476 * tree-vect-loop.c (destroy_loop_vec_info): Free
1478 (vect_get_single_scalar_iteration_cost): Compute result into
1479 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
1480 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
1481 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
1482 (vect_estimate_min_profitable_iters): Use them.
1484 2015-06-22 Christian Bruel <christian.bruel@st.com>
1487 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
1488 (TARGET_INSERT_ATTRIBUTES): Define.
1489 (thumb_flipper): New var.
1490 * config/arm/arm.opt (-mflip-thumb): New switch.
1492 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
1493 Martin Liska <mliska@suse.cz>
1496 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
1497 construction of arg_types.
1498 (sem_function::sem_function): Likewise.
1499 (sem_function::~sem_function): Remove destruction of arg_types.
1500 (sem_function::compatible_parm_types_p): New function.
1501 (sem_function::equals_wpa): Reorg matching of return values
1502 and parameter types.
1503 (sem_function::equals_private): Reorg mathcing of argument types.
1504 (sem_function::parse_tree_args): Remove.
1505 * ipa-icf.h (init_wpa): Do not call it.
1506 (parse_tree_args): Remove.
1507 (compatible_parm_types_p): Declare.
1508 (result_type): Remove.
1509 (arg_types): Remove.
1511 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
1514 * ipa-polymorphic-call.c
1515 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
1516 initializing alias oracle; fix formating; set base_alias_set if it
1519 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1521 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
1522 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
1523 (find_inc): Likewise.
1524 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
1526 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1527 * df-scan.c (df_swap_refs): Remove.
1528 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
1529 * dominance.c (link_roots): Use std::swap instead of manually swapping.
1530 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
1531 * fold-const.c (fold_relational_const): Likewise.
1532 * genattrtab.c (simplify_test_exp): Likewise.
1533 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
1534 gimple_simplify): Likewise.
1535 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
1536 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
1537 * ipa-devirt.c (add_type_duplicate): Likewise.
1538 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
1539 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
1540 * lra.c (lra_create_copy): Likewise.
1541 * lto-streamer-out.c (DFS::DFS): Likewise.
1542 * modulo-sched.c (get_sched_window): Likewise.
1543 * omega.c (omega_pretty_print_problem): Likewise.
1544 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
1545 * reload1.c (reloads_unique_chain_p): Likewise.
1546 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
1547 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
1549 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
1551 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
1552 predicate_mem_writes): Likewise.
1553 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
1554 * tree-predcom.c (combine_chains): Likewise.
1555 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
1556 refs_may_alias_p_1): Likewise.
1557 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
1558 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1559 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
1560 number_of_iterations_cond): Likewise.
1561 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1562 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1563 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1564 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1565 * tree-vrp.c (extract_range_from_binary_expr_1,
1566 extract_range_from_unary_expr_1): Likewise.
1568 2015-06-20 Marek Polacek <polacek@redhat.com>
1570 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
1572 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
1575 * config/sh/sh.c (prepare_move_operands): Replace subreg
1576 index term with R0 for base and index addressing.
1578 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
1580 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
1582 (movsf_aarch64): Change condition from register_operand to
1583 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
1584 load1. Change type for alternative 7 to store1.
1585 (movdf_aarch64): Likewise.
1587 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
1589 * config/vax/vax.md: Adjust sign/zero extend patterns to
1590 handle SUBREGs in operands[1].
1592 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1594 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
1595 of manually swapping.
1596 (expand_vec_perm_interleave2): Likewise.
1598 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
1600 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
1601 reuse bounds created for abnormal ssa names.
1603 2015-06-19 Jakub Jelinek <jakub@redhat.com>
1605 * config/nvptx/nvptx.md (allocate_stack): Rename to...
1606 (allocate_stack_<mode>): ... this, and add :P on both
1607 match_operand and unspec.
1608 (allocate_stack): New expander.
1610 2015-06-19 Christian Bruel <christian.bruel@st.com>
1614 * config/arm/arm.c (arm_set_current_function): Handle
1615 explicit default options.
1617 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
1619 * config/i386/i386.md (*movsicc_noc_zext): New insn.
1620 (zero-extended cmove with mem peephole2): New pattern.
1621 (cmove with mem peephole2): Merge patterns.
1623 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
1625 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
1627 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
1629 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
1630 * config/mips/mips.md (*madd4<mode>): Ditto.
1631 (*nmadd3<mode>) Ditto.
1632 (*nmadd4<mode>_fastmath): Ditto.
1633 (*nmadd3<mode>_fastmath): Ditto.
1634 (*nmsub4<mode>): Ditto.
1635 (*nmsub3<mode>): Ditto.
1636 (*nmsub4<mode>_fastmath): Ditto.
1637 (*nmsub3<mode>_fastmath): Ditto.
1639 2015-06-18 Michael Matz <matz@suse.de>
1642 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
1643 grouped strided stores.
1644 (vectorizable_load): Don't use the DR from first_stmt in
1645 the non-SLP grouped strided case.
1647 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1650 * function.c (assign_bounds): Add arguments assign_regs,
1651 assign_special, assign_bt.
1652 (assign_parms): For vararg functions handle bounds in BT
1653 and special slots after incoming vararg bounds.
1655 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1658 * cfgexpand.c (expand_return): Handle missing bounds.
1659 (expand_gimple_stmt_1): Likewise.
1660 * tree-chkp.c (chkp_expand_zero_bounds): New.
1661 * tree-chkp.h (chkp_expand_zero_bounds): New.
1663 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1666 * ipa-chkp.c (chkp_maybe_create_clone): Require
1667 functions to be instrumentable.
1668 * tree-chkp.c (chkp_replace_function_pointer): Use
1669 chkp_instrumentable_p instead of attribute check.
1671 2015-06-18 Richard Biener <rguenther@suse.de>
1673 PR tree-optimization/66510
1674 * tree-vect-stmts.c (vectorizable_load): Properly compute the
1675 number of vector loads for SLP permuted loads.
1676 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
1677 check the stride for loop vectorization.
1678 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
1679 vectorization factor.
1680 (vect_analyze_group_access): If the group size is not a power
1681 of two require a epilogue loop.
1682 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
1683 compute and optimizing and alias test pruning after final
1684 vectorization factor computation.
1685 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
1687 (vect_transform_slp_perm_load): Properly compute the original
1688 number of vector load stmts.
1690 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
1692 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
1693 "unlikely character , in @var" warning.
1695 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
1697 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
1698 (ix86_function_arg_advance): Ditto.
1699 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
1701 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1703 * function.h (struct rtl_data): Remove struct and accessor macros.
1704 * emit-rtl.h (struct rtl_data): Relocate to here.
1705 * Makefile.in (GTFILES): Add emit-rtl.h.
1706 * df-core.c: Include emit-rtl.h.
1707 * genattrtab.c: Likewise.
1708 * genconditions.c: Likewise.
1709 * genpreds.c: Likewise.
1710 * genrecog.c: Likewise.
1711 * regcprop.c: Likewise.
1712 * resource.c: Likewise.
1713 * sched-rgn.c: Likewise.
1714 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1715 * config/i386/winnt.c: Likewise.
1717 2015-06-17 Jakub Jelinek <jakub@redhat.com>
1720 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
1721 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
1722 and has_force_vectorize_loops flags from cfun into
1724 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
1725 if simduid is non-NULL.
1726 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
1727 * passes.def (pass_simduid_cleanup): Add new pass after loop
1729 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
1730 indirection from htab argument's type.
1731 (shrink_simd_arrays): New function.
1732 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
1733 Don't call adjust_simduid_builtins if there are no loops.
1734 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
1735 (pass_simduid_cleanup::execute): New method.
1736 (make_pass_simduid_cleanup): New function.
1738 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
1740 * tree-core.h (tree_target_option): Make opts field a pointer to a
1741 cl_target_option instead of an instance of the struct.
1742 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
1744 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
1746 (copy_node_stat): Allocate and copy struct cl_target_option.
1748 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1750 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
1751 Remove conditional exposure of prototypes.
1752 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
1753 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
1754 definitions in tree.h with functions.
1755 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
1757 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
1759 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
1761 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
1762 (*cmp<mode>_signed): ... this.
1763 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
1764 (*cmp<mode>_unsigned): ... this. Remove %b.
1766 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1768 * coretypes.h: Include input.h and as-a.h.
1769 * rtl.h: Include input.h and as-a.h for generator files.
1770 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
1771 * vec.c: Don't include diagnostic-core.h.
1772 * alias.c: Do not include input.h, line-map.h or is-a.h.
1774 * attribs.c: Likewise.
1775 * auto-inc-dec.c: Likewise.
1776 * auto-profile.c: Likewise.
1777 * bb-reorder.c: Likewise.
1778 * bt-load.c: Likewise.
1779 * builtins.c: Likewise.
1780 * caller-save.c: Likewise.
1781 * calls.c: Likewise.
1784 * cfganal.c: Likewise.
1785 * cfgbuild.c: Likewise.
1786 * cfgcleanup.c: Likewise.
1787 * cfgexpand.c: Likewise.
1788 * cfghooks.c: Likewise.
1789 * cfgloop.c: Likewise.
1790 * cfgloop.h: Likewise.
1791 * cfgloopanal.c: Likewise.
1792 * cfgloopmanip.c: Likewise.
1793 * cfgrtl.c: Likewise.
1794 * cgraph.c: Likewise.
1795 * cgraphbuild.c: Likewise.
1796 * cgraphclones.c: Likewise.
1797 * cgraphunit.c: Likewise.
1798 * cilk-common.c: Likewise.
1799 * combine-stack-adj.c: Likewise.
1800 * combine.c: Likewise.
1801 * compare-elim.c: Likewise.
1802 * convert.c: Likewise.
1803 * coverage.c: Likewise.
1804 * cppbuiltin.c: Likewise.
1805 * cprop.c: Likewise.
1807 * cselib.c: Likewise.
1808 * data-streamer-in.c: Likewise.
1809 * data-streamer-out.c: Likewise.
1810 * data-streamer.c: Likewise.
1811 * dbxout.c: Likewise.
1814 * debug.c: Likewise.
1815 * df-core.c: Likewise.
1816 * df-problems.c: Likewise.
1817 * df-scan.c: Likewise.
1820 * diagnostic-core.h: Likewise.
1821 * diagnostic.c: Likewise.
1822 * dojump.c: Likewise.
1823 * dominance.c: Likewise.
1824 * domwalk.c: Likewise.
1825 * double-int.c: Likewise.
1827 * dumpfile.c: Likewise.
1828 * dumpfile.h: Likewise.
1829 * dwarf2asm.c: Likewise.
1830 * dwarf2cfi.c: Likewise.
1831 * dwarf2out.c: Likewise.
1832 * emit-rtl.c: Likewise.
1833 * et-forest.c: Likewise.
1834 * except.c: Likewise.
1835 * explow.c: Likewise.
1836 * expmed.c: Likewise.
1838 * final.c: Likewise.
1839 * fixed-value.c: Likewise.
1840 * fold-const.c: Likewise.
1841 * function.c: Likewise.
1842 * fwprop.c: Likewise.
1843 * gcc-plugin.h: Likewise.
1845 * generic-match-head.c: Likewise.
1846 * ggc-page.c: Likewise.
1847 * gimple-builder.c: Likewise.
1848 * gimple-expr.c: Likewise.
1849 * gimple-fold.c: Likewise.
1850 * gimple-iterator.c: Likewise.
1851 * gimple-low.c: Likewise.
1852 * gimple-match-head.c: Likewise.
1853 * gimple-pretty-print.c: Likewise.
1854 * gimple-ssa-isolate-paths.c: Likewise.
1855 * gimple-ssa-strength-reduction.c: Likewise.
1856 * gimple-streamer-in.c: Likewise.
1857 * gimple-streamer-out.c: Likewise.
1858 * gimple-streamer.h: Likewise.
1859 * gimple-walk.c: Likewise.
1860 * gimple.c: Likewise.
1861 * gimplify-me.c: Likewise.
1862 * gimplify.c: Likewise.
1863 * godump.c: Likewise.
1864 * graph.c: Likewise.
1865 * graphite-blocking.c: Likewise.
1866 * graphite-dependences.c: Likewise.
1867 * graphite-interchange.c: Likewise.
1868 * graphite-isl-ast-to-gimple.c: Likewise.
1869 * graphite-optimize-isl.c: Likewise.
1870 * graphite-poly.c: Likewise.
1871 * graphite-scop-detection.c: Likewise.
1872 * graphite-sese-to-poly.c: Likewise.
1873 * graphite.c: Likewise.
1874 * haifa-sched.c: Likewise.
1875 * hw-doloop.c: Likewise.
1876 * ifcvt.c: Likewise.
1877 * init-regs.c: Likewise.
1878 * input.c: Likewise.
1879 * internal-fn.c: Likewise.
1880 * ipa-chkp.c: Likewise.
1881 * ipa-comdats.c: Likewise.
1882 * ipa-cp.c: Likewise.
1883 * ipa-devirt.c: Likewise.
1884 * ipa-icf-gimple.c: Likewise.
1885 * ipa-icf.c: Likewise.
1886 * ipa-inline-analysis.c: Likewise.
1887 * ipa-inline-transform.c: Likewise.
1888 * ipa-inline.c: Likewise.
1889 * ipa-polymorphic-call.c: Likewise.
1890 * ipa-profile.c: Likewise.
1891 * ipa-prop.c: Likewise.
1892 * ipa-pure-const.c: Likewise.
1893 * ipa-ref.c: Likewise.
1894 * ipa-reference.c: Likewise.
1895 * ipa-split.c: Likewise.
1896 * ipa-utils.c: Likewise.
1897 * ipa-visibility.c: Likewise.
1899 * ira-build.c: Likewise.
1900 * ira-color.c: Likewise.
1901 * ira-conflicts.c: Likewise.
1902 * ira-costs.c: Likewise.
1903 * ira-emit.c: Likewise.
1904 * ira-lives.c: Likewise.
1907 * langhooks.c: Likewise.
1909 * loop-doloop.c: Likewise.
1910 * loop-init.c: Likewise.
1911 * loop-invariant.c: Likewise.
1912 * loop-iv.c: Likewise.
1913 * loop-unroll.c: Likewise.
1914 * lower-subreg.c: Likewise.
1915 * lra-assigns.c: Likewise.
1916 * lra-coalesce.c: Likewise.
1917 * lra-constraints.c: Likewise.
1918 * lra-eliminations.c: Likewise.
1919 * lra-lives.c: Likewise.
1920 * lra-remat.c: Likewise.
1921 * lra-spills.c: Likewise.
1923 * lto-cgraph.c: Likewise.
1924 * lto-compress.c: Likewise.
1925 * lto-opts.c: Likewise.
1926 * lto-section-in.c: Likewise.
1927 * lto-section-out.c: Likewise.
1928 * lto-streamer-in.c: Likewise.
1929 * lto-streamer-out.c: Likewise.
1930 * lto-streamer.c: Likewise.
1932 * mode-switching.c: Likewise.
1933 * modulo-sched.c: Likewise.
1934 * omega.c: Likewise.
1935 * omp-low.c: Likewise.
1936 * optabs.c: Likewise.
1937 * opts-global.c: Likewise.
1939 * passes.c: Likewise.
1940 * plugin.c: Likewise.
1941 * postreload-gcse.c: Likewise.
1942 * postreload.c: Likewise.
1943 * predict.c: Likewise.
1944 * pretty-print.h: Likewise.
1945 * print-rtl.c: Likewise.
1946 * print-tree.c: Likewise.
1947 * profile.c: Likewise.
1949 * realmpfr.c: Likewise.
1950 * recog.c: Likewise.
1952 * reg-stack.c: Likewise.
1953 * regcprop.c: Likewise.
1954 * reginfo.c: Likewise.
1955 * regrename.c: Likewise.
1956 * regstat.c: Likewise.
1957 * reload.c: Likewise.
1958 * reload1.c: Likewise.
1959 * reorg.c: Likewise.
1960 * resource.c: Likewise.
1961 * rtl-chkp.c: Likewise.
1962 * rtl-error.c: Likewise.
1963 * rtlanal.c: Likewise.
1964 * rtlhooks.c: Likewise.
1965 * sanopt.c: Likewise.
1966 * sched-deps.c: Likewise.
1967 * sched-ebb.c: Likewise.
1968 * sched-rgn.c: Likewise.
1969 * sched-vis.c: Likewise.
1970 * sdbout.c: Likewise.
1971 * sel-sched-dump.c: Likewise.
1972 * sel-sched-ir.c: Likewise.
1973 * sel-sched.c: Likewise.
1975 * shrink-wrap.c: Likewise.
1976 * simplify-rtx.c: Likewise.
1977 * stack-ptr-mod.c: Likewise.
1978 * statistics.c: Likewise.
1980 * stor-layout.c: Likewise.
1981 * store-motion.c: Likewise.
1982 * streamer-hooks.c: Likewise.
1983 * stringpool.c: Likewise.
1984 * symtab.c: Likewise.
1985 * target-globals.c: Likewise.
1986 * targhooks.c: Likewise.
1987 * toplev.c: Likewise.
1988 * tracer.c: Likewise.
1989 * trans-mem.c: Likewise.
1990 * tree-affine.c: Likewise.
1991 * tree-browser.c: Likewise.
1992 * tree-call-cdce.c: Likewise.
1993 * tree-cfg.c: Likewise.
1994 * tree-cfgcleanup.c: Likewise.
1995 * tree-chkp-opt.c: Likewise.
1996 * tree-chkp.c: Likewise.
1997 * tree-chrec.c: Likewise.
1998 * tree-complex.c: Likewise.
1999 * tree-data-ref.c: Likewise.
2000 * tree-dfa.c: Likewise.
2001 * tree-diagnostic.c: Likewise.
2002 * tree-dump.c: Likewise.
2003 * tree-eh.c: Likewise.
2004 * tree-emutls.c: Likewise.
2005 * tree-if-conv.c: Likewise.
2006 * tree-inline.c: Likewise.
2007 * tree-into-ssa.c: Likewise.
2008 * tree-iterator.c: Likewise.
2009 * tree-loop-distribution.c: Likewise.
2010 * tree-nested.c: Likewise.
2011 * tree-nrv.c: Likewise.
2012 * tree-object-size.c: Likewise.
2013 * tree-outof-ssa.c: Likewise.
2014 * tree-parloops.c: Likewise.
2015 * tree-phinodes.c: Likewise.
2016 * tree-predcom.c: Likewise.
2017 * tree-pretty-print.c: Likewise.
2018 * tree-profile.c: Likewise.
2019 * tree-scalar-evolution.c: Likewise.
2020 * tree-sra.c: Likewise.
2021 * tree-ssa-address.c: Likewise.
2022 * tree-ssa-alias.c: Likewise.
2023 * tree-ssa-ccp.c: Likewise.
2024 * tree-ssa-coalesce.c: Likewise.
2025 * tree-ssa-copy.c: Likewise.
2026 * tree-ssa-copyrename.c: Likewise.
2027 * tree-ssa-dce.c: Likewise.
2028 * tree-ssa-dom.c: Likewise.
2029 * tree-ssa-dse.c: Likewise.
2030 * tree-ssa-forwprop.c: Likewise.
2031 * tree-ssa-ifcombine.c: Likewise.
2032 * tree-ssa-live.c: Likewise.
2033 * tree-ssa-loop-ch.c: Likewise.
2034 * tree-ssa-loop-im.c: Likewise.
2035 * tree-ssa-loop-ivcanon.c: Likewise.
2036 * tree-ssa-loop-ivopts.c: Likewise.
2037 * tree-ssa-loop-manip.c: Likewise.
2038 * tree-ssa-loop-niter.c: Likewise.
2039 * tree-ssa-loop-prefetch.c: Likewise.
2040 * tree-ssa-loop-unswitch.c: Likewise.
2041 * tree-ssa-loop.c: Likewise.
2042 * tree-ssa-math-opts.c: Likewise.
2043 * tree-ssa-operands.c: Likewise.
2044 * tree-ssa-phiopt.c: Likewise.
2045 * tree-ssa-phiprop.c: Likewise.
2046 * tree-ssa-pre.c: Likewise.
2047 * tree-ssa-propagate.c: Likewise.
2048 * tree-ssa-reassoc.c: Likewise.
2049 * tree-ssa-sccvn.c: Likewise.
2050 * tree-ssa-scopedtables.c: Likewise.
2051 * tree-ssa-sink.c: Likewise.
2052 * tree-ssa-strlen.c: Likewise.
2053 * tree-ssa-structalias.c: Likewise.
2054 * tree-ssa-tail-merge.c: Likewise.
2055 * tree-ssa-ter.c: Likewise.
2056 * tree-ssa-threadedge.c: Likewise.
2057 * tree-ssa-threadupdate.c: Likewise.
2058 * tree-ssa-uncprop.c: Likewise.
2059 * tree-ssa-uninit.c: Likewise.
2060 * tree-ssa.c: Likewise.
2061 * tree-ssanames.c: Likewise.
2062 * tree-stdarg.c: Likewise.
2063 * tree-streamer-in.c: Likewise.
2064 * tree-streamer-out.c: Likewise.
2065 * tree-streamer.c: Likewise.
2066 * tree-switch-conversion.c: Likewise.
2067 * tree-tailcall.c: Likewise.
2068 * tree-vect-data-refs.c: Likewise.
2069 * tree-vect-generic.c: Likewise.
2070 * tree-vect-loop-manip.c: Likewise.
2071 * tree-vect-loop.c: Likewise.
2072 * tree-vect-patterns.c: Likewise.
2073 * tree-vect-slp.c: Likewise.
2074 * tree-vect-stmts.c: Likewise.
2075 * tree-vectorizer.c: Likewise.
2076 * tree-vrp.c: Likewise.
2079 * ubsan.c: Likewise.
2080 * valtrack.c: Likewise.
2081 * value-prof.c: Likewise.
2082 * var-tracking.c: Likewise.
2083 * varasm.c: Likewise.
2084 * varpool.c: Likewise.
2085 * vmsdbgout.c: Likewise.
2086 * vtable-verify.c: Likewise.
2088 * wide-int.cc: Likewise.
2089 * xcoffout.c: Likewise.
2090 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
2091 * common/common-targhooks.c: Likewise.
2092 * config/aarch64/aarch64-builtins.c: Likewise.
2093 * config/aarch64/aarch64.c: Likewise.
2094 * config/alpha/alpha.c: Likewise.
2095 * config/arc/arc.c: Likewise.
2096 * config/arm/aarch-common.c: Likewise.
2097 * config/arm/arm-builtins.c: Likewise.
2098 * config/arm/arm-c.c: Likewise.
2099 * config/arm/arm.c: Likewise.
2100 * config/avr/avr-c.c: Likewise.
2101 * config/avr/avr-log.c: Likewise.
2102 * config/avr/avr.c: Likewise.
2103 * config/bfin/bfin.c: Likewise.
2104 * config/c6x/c6x.c: Likewise.
2105 * config/cr16/cr16.c: Likewise.
2106 * config/cris/cris.c: Likewise.
2107 * config/darwin-c.c: Likewise.
2108 * config/darwin.c: Likewise.
2109 * config/default-c.c: Likewise.
2110 * config/epiphany/epiphany.c: Likewise.
2111 * config/epiphany/mode-switch-use.c: Likewise.
2112 * config/epiphany/resolve-sw-modes.c: Likewise.
2113 * config/fr30/fr30.c: Likewise.
2114 * config/frv/frv.c: Likewise.
2115 * config/ft32/ft32.c: Likewise.
2116 * config/glibc-c.c: Likewise.
2117 * config/h8300/h8300.c: Likewise.
2118 * config/i386/i386-c.c: Likewise.
2119 * config/i386/i386.c: Likewise.
2120 * config/i386/msformat-c.c: Likewise.
2121 * config/i386/winnt-cxx.c: Likewise.
2122 * config/i386/winnt-stubs.c: Likewise.
2123 * config/i386/winnt.c: Likewise.
2124 * config/ia64/ia64-c.c: Likewise.
2125 * config/ia64/ia64.c: Likewise.
2126 * config/iq2000/iq2000.c: Likewise.
2127 * config/lm32/lm32.c: Likewise.
2128 * config/m32c/m32c-pragma.c: Likewise.
2129 * config/m32c/m32c.c: Likewise.
2130 * config/m32r/m32r.c: Likewise.
2131 * config/m68k/m68k.c: Likewise.
2132 * config/mcore/mcore.c: Likewise.
2133 * config/mep/mep-pragma.c: Likewise.
2134 * config/mep/mep.c: Likewise.
2135 * config/microblaze/microblaze-c.c: Likewise.
2136 * config/microblaze/microblaze.c: Likewise.
2137 * config/mips/mips.c: Likewise.
2138 * config/mmix/mmix.c: Likewise.
2139 * config/mn10300/mn10300.c: Likewise.
2140 * config/moxie/moxie.c: Likewise.
2141 * config/msp430/msp430-c.c: Likewise.
2142 * config/msp430/msp430.c: Likewise.
2143 * config/nds32/nds32-cost.c: Likewise.
2144 * config/nds32/nds32-fp-as-gp.c: Likewise.
2145 * config/nds32/nds32-intrinsic.c: Likewise.
2146 * config/nds32/nds32-isr.c: Likewise.
2147 * config/nds32/nds32-md-auxiliary.c: Likewise.
2148 * config/nds32/nds32-memory-manipulation.c: Likewise.
2149 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2150 * config/nds32/nds32-predicates.c: Likewise.
2151 * config/nds32/nds32.c: Likewise.
2152 * config/nios2/nios2.c: Likewise.
2153 * config/nvptx/nvptx.c: Likewise.
2154 * config/pa/pa.c: Likewise.
2155 * config/pdp11/pdp11.c: Likewise.
2156 * config/rl78/rl78-c.c: Likewise.
2157 * config/rl78/rl78.c: Likewise.
2158 * config/rs6000/rs6000-c.c: Likewise.
2159 * config/rs6000/rs6000.c: Likewise.
2160 * config/rx/rx.c: Likewise.
2161 * config/s390/s390-c.c: Likewise.
2162 * config/s390/s390.c: Likewise.
2163 * config/sh/sh-c.c: Likewise.
2164 * config/sh/sh-mem.cc: Likewise.
2165 * config/sh/sh.c: Likewise.
2166 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2167 * config/sh/sh_treg_combine.cc: Likewise.
2168 * config/sol2-c.c: Likewise.
2169 * config/sol2-cxx.c: Likewise.
2170 * config/sol2-stubs.c: Likewise.
2171 * config/sol2.c: Likewise.
2172 * config/sparc/sparc-c.c: Likewise.
2173 * config/sparc/sparc.c: Likewise.
2174 * config/spu/spu-c.c: Likewise.
2175 * config/spu/spu.c: Likewise.
2176 * config/stormy16/stormy16.c: Likewise.
2177 * config/tilegx/mul-tables.c: Likewise.
2178 * config/tilegx/tilegx-c.c: Likewise.
2179 * config/tilegx/tilegx.c: Likewise.
2180 * config/tilepro/mul-tables.c: Likewise.
2181 * config/tilepro/tilepro-c.c: Likewise.
2182 * config/tilepro/tilepro.c: Likewise.
2183 * config/v850/v850-c.c: Likewise.
2184 * config/v850/v850.c: Likewise.
2185 * config/vax/vax.c: Likewise.
2186 * config/visium/visium.c: Likewise.
2187 * config/vms/vms-c.c: Likewise.
2188 * config/vms/vms.c: Likewise.
2189 * config/vxworks.c: Likewise.
2190 * config/winnt-c.c: Likewise.
2191 * config/xtensa/xtensa.c: Likewise.
2193 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
2195 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
2197 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
2199 2015-06-17 Richard Biener <rguenther@suse.de>
2201 PR tree-optimization/66251
2202 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
2203 stmts for SLP strided stores.
2206 2015-05-22 Richard Biener <rguenther@suse.de>
2208 PR tree-optimization/66251
2209 * tree-vect-stmts.c (vectorizable_conversion): Properly
2210 set STMT_VINFO_VEC_STMT even for the SLP case.
2212 2015-05-26 Michael Matz <matz@suse.de>
2215 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2216 STMT_VINFO_VEC_STMT, also with SLP.
2218 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
2221 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
2222 (*avx_addsubv4df3_1s): Ditto.
2223 (*sse3_addsubv2df3_1): Ditto.
2224 (*sse3_addsubv2df3_1s): Ditto.
2225 (*avx_addsubv8sf3_1): Ditto.
2226 (*avx_addsubv8sf3_1s): Ditto.
2227 (*sse3_addsubv4sf3_1): Ditto.
2228 (*sse3_addsubv4sf3_1s): Ditto.
2230 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
2232 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
2233 (SYSROOT_SUFFIX_SPEC): Update.
2234 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
2235 (STARTFILE_PREFIX_SPEC): Update.
2236 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
2237 (MULTILIB_REQUIRED): New.
2238 (MULTILIB_OSDIRNAMES): New.
2239 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
2240 (MULTILIB_REQUIRED): New.
2241 (MULTILIB_OSDIRNAMES): New.
2243 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
2245 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
2246 * config/aarch64/aarch64-options-extensions.def: Update "fP",
2247 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
2248 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
2249 (AARCH64_FL_PAN): New.
2250 (AARCH64_FL_LOR): New.
2251 (AARCH64_FL_RDMA): New.
2252 (AARCH64_FL_FOR_ARCH8_1): New.
2253 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
2254 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
2256 2015-06-16 Martin Liska <mliska@suse.cz>
2258 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
2259 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
2262 2015-06-16 Richard Biener <rguenther@suse.de>
2264 * tree-vect-stmts.c (vectorizable_store): Adjust.
2265 (vectorizable_load): Likewise.
2266 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2268 (vect_create_data_ref_ptr): Likewise.
2269 (bump_vector_ptr): Adjust.
2271 2015-06-16 Richard Biener <rguenther@suse.de>
2273 * tree-vect-stmts.c (vectorizable_load): Properly start loads
2274 with the first element if this is grouped loads.
2276 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
2278 * config/arm/arm-protos.h (struct tune_params): Rename
2279 log_op_non_sc to log_op_non_short_circuit, and rename enum
2280 values to expand SC to SHORT_CIRCUIT.
2281 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
2282 to LOG_OP_NON_SHORT_CIRCUIT.
2283 (arm_fastmul_tune):Likewise
2284 (arm_strongarm_tune): Likewise.
2285 (arm_xscale_tune): Likewise.
2286 (arm_9e_tune): Likewise.
2287 (arm_marvell_pj4_tune): Likewise.
2288 (arm_v6t2_tune): Likewise.
2289 (arm_cortex_tune): Likewise.
2290 (arm_cortex_a8_tune): Likewise.
2291 (arm_cortex_a7_tune): Likewise.
2292 (arm_cortex_a15_tune): Likewise.
2293 (arm_cortex_a53_tune): Likewise.
2294 (arm_cortex_a57_tune): Likewise.
2295 (arm_xgene1_tune): Likewise.
2296 (arm_cortex_a5_tune): Likewise.
2297 (arm_cortex_a9_tune): Likewise.
2298 (arm_cortex_a12_tune): Likewise.
2299 (arm_v7m_tune): Likewise.
2300 (arm_cortex_m7_tune): Likewise.
2301 (arm_v6m_tune): Likewise.
2302 (arm_fa726te_tune): Likewise.
2304 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
2306 * altivec.md: Delete UNSPEC_VMLADDUHM.
2307 (mulv4si3_p8): New pattern.
2308 (mulv4si3): Use it for POWER8.
2309 (mulv8hi3): Use vmladduhm with zero addend.
2310 (altivec_vmladduhm): Descriptive RTL.
2312 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
2314 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
2315 to use neon_move instead of mov_imm.
2316 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
2317 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
2319 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
2320 aarch64_float_const_zero_rtx_p check before TFmode check.
2321 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
2323 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
2324 code and attributes to match. Change condition from register_operand
2325 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
2326 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
2329 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
2332 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
2335 2015-06-14 Shiva Chen <shiva0217@gmail.com>
2337 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
2338 HOST_WIDE_INT parameter.
2340 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
2343 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
2344 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
2346 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
2348 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
2350 * rtl.h (classify_insn): Declare.
2351 * emit-rtl.c (classify_insn): Move to...
2352 * rtl.c: ...here and add generator support.
2353 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
2354 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
2355 * genemit.c (gen_emit_seq): New function.
2356 (gen_expand, gen_split): Use it.
2358 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
2360 * tree.c (make_vector_stat): Fix comment to state that the
2361 function returns a VECTOR_CST.
2363 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
2365 * gensupport.h (add_implicit_parallel): Declare.
2366 * genrecog.c (add_implicit_parallel): Move to...
2367 * gensupport.c (add_implicit_parallel): ...here.
2368 (process_one_cond_exec): Use it.
2369 * genemit.c (gen_insn): Likewise.
2371 2015-06-13 Iain Sandoe <iain@codesourcery.com>
2374 * passes.c (rest_of_decl_compilation): Do not register globals for
2375 early debug if they are declared in built-ins.
2377 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
2379 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
2381 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2383 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
2385 (noce_try_cmove_arith): Likewise.
2386 (noce_get_alt_condition): Likewise.
2388 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2390 * common/config/i386/i386-common.c
2391 (OPTION_MASK_ISA_MWAITX_SET): New.
2392 (ix86_handle_option): Handle mwaitx.
2393 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
2394 (x86_64-*-*): Likewise.
2395 * config/i386/mwaitxintrin.h: New header.
2396 * config/i386/cpuid.h (bit_MWAITX): Define.
2397 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2399 * config/i386/i386.opt (mwaitx): New.
2400 * config/i386/i386-builtin-types.def
2401 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
2402 * config/i386/i386-c.c: Define __MWAITX__ if needed.
2403 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
2405 (ix86_option_override_internal): Handle new option.
2406 (processor_alias_table): Added PTA_MWAITX.
2407 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
2408 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
2409 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
2410 IX86_BUILTIN_MONITORX built-ins.
2411 * config/i386/i386.h (TARGET_MWAITX): New.
2412 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
2414 (mwaitx): New pattern.
2415 (monitorx_<mode>): New pattern.
2416 * config/i386/x86intrin.h: Include mwaitxintrin.h.
2417 * doc/extend.texi: Document monitorx and mwaitx builtins.
2418 * doc/invoke.texi: Document -mmwaitx option.
2420 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
2422 * emit-rtl.c (need_atomic_barrier_p): Mask model with
2423 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
2425 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
2427 * dbxout.c (xcoff_debug_hooks): Provide a function for
2428 register_main_translation_unit hook.
2430 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
2432 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
2433 variants cases from switch.
2434 (rs6000_post_atomic_barrier): Same.
2435 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
2436 (rs6000_expand_atomic_exchange): Same.
2437 (rs6000_expand_atomic_op): Same.
2438 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
2439 SYNC variants cases from switch.
2440 (atomic_load): Same.
2441 (atomic_store): Same.
2443 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
2445 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
2448 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
2451 * dwarf2out.c (check_die): Check for common duplicate attributes.
2452 (add_location_or_const_value_attribute): Do not add duplicate
2454 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
2456 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
2457 (gen_type_die_with_usage): Call check_die.
2458 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
2460 2015-06-11 Jason Merrill <jason@redhat.com>
2462 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
2465 2015-06-11 Marek Polacek <polacek@redhat.com>
2467 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
2469 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
2472 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
2473 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
2474 (*addx_extend_sp32): Fix pasto.
2475 (*subx_extend): Rename into...
2476 (*subx_extend_sp32): ...this.
2477 (*adddi3_extend_sp32): Add earlyclobber.
2478 (*subdi3_insn_sp32): Likewise.
2479 (*subdi3_extend_sp32): Likewise.
2480 (*and_not_di_sp32): Likewise.
2481 (*or_not_di_sp32): Likewise.
2482 (*xor_not_di_sp32): Likewise.
2483 (*negdi2_sp32): Likewise.
2484 (*one_cmpldi2_sp32): Likewise.
2486 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2488 * debug.h (struct gcc_debug_hooks): Add a
2489 register_main_translation_unit hook.
2490 * debug.c (do_nothing_debug_hooks): Provide a function for this
2492 * dbxout.c (dbx_debug_hooks): Likewise.
2493 * sdbout.c (sdb_debug_hooks): Likewise.
2494 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2495 * dwarf2out.c (main_translation_unit): New global variable.
2496 (dwarf2out_register_main_translation_unit): New function
2497 implementing the new hook.
2498 (dwarf2_debug_hooks): Assign
2499 dwarf2out_register_main_translation_unit to this new hook.
2500 (dwarf2out_init): Associate any main translation unit to
2503 2015-06-11 Marek Polacek <polacek@redhat.com>
2505 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
2507 2015-06-11 Marek Polacek <polacek@redhat.com>
2509 * match.pd: Use single_use throughout.
2511 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2513 * config/arm/arm.c (arm_option_params_internal): When optimising
2514 for speed set max_insns_skipped when arm_restrict_it.
2516 2015-06-11 Christian Bruel <christian.bruel@st.com>
2519 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
2521 (arm_cpu_builtins): New function.
2522 (arm_pragma_target_parse): Call arm_cpu_builtins.
2523 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
2524 (arm_register_target_pragmas): Likewise.
2525 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
2526 Call arm_register_target_pragmas.
2527 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
2528 (arm_pragma_target_parse): Likewise.
2530 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
2532 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
2533 of the second operand.
2535 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
2538 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2539 to prepare mask operand for AVX512 modes.
2541 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2544 * doc/md.texi (Machine Constraints): Document that on the PowerPC
2545 if you use a constraint that targets a VSX register, you must use
2546 %x<n> in the template.
2548 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
2550 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
2551 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
2552 (define_insn "trap"): New definition.
2554 2015-06-10 Richard Biener <rguenther@suse.de>
2556 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
2558 (vect_supported_load_permutation_p): ... here. Handle
2559 supportable permutations in reductions.
2560 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
2561 for vectorizing strided group loads.
2563 2015-06-10 Jakub Jelinek <jakub@redhat.com>
2566 * config/i386/i386.c (ix86_split_long_move): For collisions
2567 involving direct tls segment refs, move the UNSPEC_TP possibly
2568 wrapped in ZERO_EXTEND out of the address for lea, to each of
2571 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2573 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
2574 dmb sy. Adjust tabs.
2576 2015-06-10 Tom de Vries <tom@codesourcery.com>
2578 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
2580 2015-06-10 Martin Liska <mliska@suse.cz>
2583 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
2584 all enum values in mem_alloc_origin.
2585 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
2587 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
2588 * bitmap.c (bitmap_register): Likewise.
2589 (dump_bitmap_statistics): Likewise.
2590 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2591 (ggc_record_overhead): Likewise.
2592 * hash-map.h: Likewise.
2593 * hash-set.h: Likewise.
2594 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
2595 * hash-table.h: Likewise.
2596 * vec.c (vec_prefix::register_overhead): Likewise.
2597 (vec_prefix::release_overhead): Likewise.
2598 (dump_vec_loc_statistics): Likewise.
2600 2015-06-09 Christian Bruel <christian.bruel@st.com>
2603 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
2604 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
2605 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
2606 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
2607 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
2608 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
2609 (arm_valid_target_attribute_p): Likewise.
2610 (arm_set_current_function, arm_can_inline_p): Likewise.
2611 (arm_valid_target_attribute_rec): Likewise.
2612 (arm_previous_fndecl): New variable.
2613 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2614 (TARGET_CAN_INLINE_P): Define.
2615 (arm_asm_trampoline_template): Emit mode.
2616 (arm_file_start): Don't set unified syntax.
2617 (arm_declare_function_name): Set unified syntax and mode.
2618 (arm_option_override): Init target_option_default_node.
2619 and target_option_current_node.
2620 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
2621 (*call_symbol): Likewise.
2622 * doc/extend.texi: Document ARM/Thumb target attribute.
2623 * doc/invoke.texi: Likewise.
2625 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2628 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2629 PR rtl-optimization/64164
2630 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2631 * tree-ssa-copyrename.c: Removed.
2632 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2633 -ftree-coalesce-vars.
2634 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2635 * common.opt (ftree-copyrename): Ignore.
2636 (ftree-coalesce-inlined-vars): Likewise.
2637 * doc/invoke.texi: Remove the ignored options above.
2638 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2639 * tree-ssa-coalesce.h: ... here.
2640 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2641 headers required by it.
2642 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2643 across variables when flag_tree_coalesce_vars. Check register
2644 use and promoted modes to allow coalescing. Moved to
2645 tree-ssa-coalesce.c.
2646 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2647 with its member functions to tree-ssa-coalesce.c.
2648 (var_map_base_init): Likewise. Renamed to
2649 compute_samebase_partition_bases.
2650 (partition_view_normal): Drop want_bases parameter.
2651 (partition_view_bitmap): Likewise.
2652 * tree-ssa-live.h: Adjust declarations.
2653 * tree-ssa-coalesce.c: Include explow.h.
2654 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2655 default defs at the entry point.
2656 (dump_part_var_map): New.
2657 (compute_optimized_partition_bases): New, called by...
2658 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2659 of compute_samebase_partition_bases. Adjust.
2660 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2661 * cfgexpand.c (leader_merge): New.
2662 (get_rtl_for_parm_ssa_default_def): New.
2663 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2664 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2665 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2666 redundant MEM attr setting.
2667 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2669 (expand_one_stack_var): ... this. New wrapper to check and
2670 skip already expanded SSA partitions.
2671 (record_alignment_for_reg_var): New, factored out of...
2672 (expand_one_var): ... this.
2673 (expand_one_ssa_partition): New.
2674 (adjust_one_expanded_partition_var): New.
2675 (expand_one_register_var): Check and skip already expanded SSA
2677 (expand_used_vars): Don't create DECLs for anonymous SSA
2678 names. Expand all SSA partitions, then adjust all SSA names.
2679 (pass::execute): Replace the loops that set
2680 SA.partition_to_pseudo from partition leaders and cleared
2681 DECL_RTL for multi-location variables, and that which used to
2682 rename vars and set attrs, with one that clears DECL_RTL and
2683 checks that PARMs and RESULTs default_defs match DECL_RTL.
2684 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2685 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2686 * explow.c (promote_ssa_mode): New.
2687 * explow.h (promote_ssa_mode): Declare.
2688 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2689 * function.c: Include cfgexpand.h.
2690 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2691 (use_register_for_parm_decl): Wrapper for the above to
2692 special-case the result_ptr.
2693 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2694 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2696 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2697 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2698 (assign_parm_setup_block): Prefer SSA-assigned location.
2699 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2700 if stack_parm is NULL.
2701 (assign_parm_setup_stack): Prefer SSA-assigned location.
2702 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2703 rtl before testing for pointer bounds. Special-case result_ptr.
2704 (expand_function_start): Maybe reset DECL_RTL of result.
2705 Prefer SSA-assigned location for result and static chain.
2706 Factor out DECL_RESULT and SET_DECL_RTL.
2707 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2708 anonymous SSA names. Use promote_ssa_mode.
2709 (get_temp_reg): Likewise.
2710 (remove_ssa_form): Adjust.
2711 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2712 and get its reg_usage for reg invalidation.
2713 (compute_bb_dataflow): Pass it insn.
2714 (emit_notes_in_bb): Likewise.
2715 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2716 fail assert on conversion between unsigned types.
2718 2015-06-09 Tom de Vries <tom@codesourcery.com>
2720 PR tree-optimization/65460
2721 * omp-low.c (expand_omp_target): Set parallelized_function on
2722 cgraph_node for child_fn.
2724 2015-06-09 Tom de Vries <tom@codesourcery.com>
2726 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
2727 parallelized_function before add_new_function.
2729 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
2731 * gcc-plugin.h: Move decls to plugin.h and include it.
2732 * plugin.h: Relocate decls from gcc-plugin.h
2733 * ggc-page.c: Include required header files.
2734 * passes.c: Likewise.
2735 * cgraphunit.c: Likewise.
2737 2015-06-09 Tom de Vries <tom@codesourcery.com>
2739 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
2741 2015-06-09 Jason Merrill <jason@redhat.com>
2744 * toplev.c (check_global_declaration): Don't warn about a clone.
2746 2015-06-09 Marek Polacek <polacek@redhat.com>
2748 PR tree-optimization/66299
2749 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
2750 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
2753 2015-06-09 Richard Biener <rguenther@suse.de>
2755 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
2756 (vect_analyze_slp_instance): Instead do not falsely drop
2759 2015-06-09 Richard Biener <rguenther@suse.de>
2762 * match.pd: Handle A % (unsigned)(1 << B).
2764 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
2766 * varasm.c (output_object_block_htab): Remove.
2767 (output_object_block_compare): New.
2768 (output_object_blocks): Sort named object_blocks before outputting
2771 2015-06-09 Richard Biener <rguenther@suse.de>
2773 PR tree-optimization/66419
2774 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
2775 consider GROUP_GAP when detecting a perfect subchain.
2777 2015-06-09 Nick Clifton <nickc@redhat.com>
2779 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
2780 place read only data in the .frodata section.
2782 2015-06-09 Shiva Chen <shiva0217@gmail.com>
2784 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
2785 (atomic_store<mode>): Likewise.
2787 2015-06-09 Richard Biener <rguenther@suse.de>
2789 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
2791 2015-06-09 Richard Biener <rguenther@suse.de>
2794 * tree-inline.c (insert_init_debug_bind): Unshare value.
2796 2015-06-09 Richard Biener <rguenther@suse.de>
2798 PR tree-optimization/66396
2799 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2800 Rename virtual operands.
2802 2015-06-09 Tom de Vries <tom@codesourcery.com>
2804 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
2805 always return false.
2807 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2809 PR rtl-optimization/64164
2810 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2811 * tree-ssa-copyrename.c: Removed.
2812 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2813 -ftree-coalesce-vars.
2814 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2815 * common.opt (ftree-copyrename): Ignore.
2816 (ftree-coalesce-inlined-vars): Likewise.
2817 * doc/invoke.texi: Remove the ignored options above.
2818 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2819 * tree-ssa-coalesce.h: ... here.
2820 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2821 headers required by it.
2822 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2823 across variables when flag_tree_coalesce_vars. Check register
2824 use and promoted modes to allow coalescing. Moved to
2825 tree-ssa-coalesce.c.
2826 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2827 with its member functions to tree-ssa-coalesce.c.
2828 (var_map_base_init): Likewise. Renamed to
2829 compute_samebase_partition_bases.
2830 (partition_view_normal): Drop want_bases parameter.
2831 (partition_view_bitmap): Likewise.
2832 * tree-ssa-live.h: Adjust declarations.
2833 * tree-ssa-coalesce.c: Include explow.h.
2834 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2835 default defs at the entry point.
2836 (dump_part_var_map): New.
2837 (compute_optimized_partition_bases): New, called by...
2838 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2839 of compute_samebase_partition_bases. Adjust.
2840 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2841 * cfgexpand.c (leader_merge): New.
2842 (get_rtl_for_parm_ssa_default_def): New.
2843 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2844 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2845 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2846 redundant MEM attr setting.
2847 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2849 (expand_one_stack_var): ... this. New wrapper to check and
2850 skip already expanded SSA partitions.
2851 (record_alignment_for_reg_var): New, factored out of...
2852 (expand_one_var): ... this.
2853 (expand_one_ssa_partition): New.
2854 (adjust_one_expanded_partition_var): New.
2855 (expand_one_register_var): Check and skip already expanded SSA
2857 (expand_used_vars): Don't create DECLs for anonymous SSA
2858 names. Expand all SSA partitions, then adjust all SSA names.
2859 (pass::execute): Replace the loops that set
2860 SA.partition_to_pseudo from partition leaders and cleared
2861 DECL_RTL for multi-location variables, and that which used to
2862 rename vars and set attrs, with one that clears DECL_RTL and
2863 checks that PARMs and RESULTs default_defs match DECL_RTL.
2864 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2865 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2866 * explow.c (promote_ssa_mode): New.
2867 * explow.h (promote_ssa_mode): Declare.
2868 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2869 * function.c: Include cfgexpand.h.
2870 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2871 (use_register_for_parm_decl): Wrapper for the above to
2872 special-case the result_ptr.
2873 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2874 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2876 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2877 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2878 (assign_parm_setup_block): Prefer SSA-assigned location.
2879 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2880 if stack_parm is NULL.
2881 (assign_parm_setup_stack): Prefer SSA-assigned location.
2882 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2883 rtl before testing for pointer bounds. Special-case result_ptr.
2884 (expand_function_start): Maybe reset DECL_RTL of result.
2885 Prefer SSA-assigned location for result and static chain.
2886 Factor out DECL_RESULT and SET_DECL_RTL.
2887 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2888 anonymous SSA names. Use promote_ssa_mode.
2889 (get_temp_reg): Likewise.
2890 (remove_ssa_form): Adjust.
2891 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2892 and get its reg_usage for reg invalidation.
2893 (compute_bb_dataflow): Pass it insn.
2894 (emit_notes_in_bb): Likewise.
2895 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2896 fail assert on conversion between unsigned types.
2898 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2901 * tree-inline.c (reset_debug_binding): New.
2902 (reset_debug_bindings): Likewise.
2903 (expand_call_inline): Call it.
2905 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2907 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2910 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2912 * lto-streamer-out.c (lto_output_location): Stream
2913 reserved locations correctly.
2914 * lto-streamer-in.c (lto_output_location): Likewise.
2916 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
2918 * coretypes.h: Include hash-table.h and hash-set.h for host files.
2919 * ggc.h: Don't include statistics.h>
2920 * hash-map.h: Remove all includes.
2921 * hash-set.h: Likewise.
2922 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2923 the include list. Remove <new>.
2924 * inchash.h: Remove all includes.
2925 * mem-stats.h: Likewise.
2926 * vec.h: No special processing for generators or ggc.
2927 * alias.c : Adjust include files.
2928 * alloc-pool.c : Likewise.
2929 * alloc-pool.h : Likewise.
2930 * asan.c : Likewise.
2931 * attribs.c : Likewise.
2932 * auto-inc-dec.c : Likewise.
2933 * auto-profile.c : Likewise.
2934 * bb-reorder.c : Likewise.
2935 * bitmap.c : Likewise.
2936 * bitmap.h : Likewise.
2937 * bt-load.c : Likewise.
2938 * builtins.c : Likewise.
2939 * caller-save.c : Likewise.
2940 * calls.c : Likewise.
2941 * ccmp.c : Likewise.
2943 * cfganal.c : Likewise.
2944 * cfgbuild.c : Likewise.
2945 * cfgcleanup.c : Likewise.
2946 * cfgexpand.c : Likewise.
2947 * cfghooks.c : Likewise.
2948 * cfgloop.c : Likewise.
2949 * cfgloop.h : Likewise.
2950 * cfgloopanal.c : Likewise.
2951 * cfgloopmanip.c : Likewise.
2952 * cfgrtl.c : Likewise.
2953 * cgraph.c : Likewise.
2954 * cgraphbuild.c : Likewise.
2955 * cgraphclones.c : Likewise.
2956 * cgraphunit.c : Likewise.
2957 * cilk-common.c : Likewise.
2958 * combine-stack-adj.c : Likewise.
2959 * combine.c : Likewise.
2960 * compare-elim.c : Likewise.
2961 * context.c : Likewise.
2962 * convert.c : Likewise.
2963 * coverage.c : Likewise.
2964 * cppbuiltin.c : Likewise.
2965 * cprop.c : Likewise.
2967 * cselib.c : Likewise.
2968 * data-streamer-in.c : Likewise.
2969 * data-streamer-out.c : Likewise.
2970 * data-streamer.c : Likewise.
2971 * data-streamer.h : Likewise.
2972 * dbxout.c : Likewise.
2975 * debug.c : Likewise.
2976 * df-core.c : Likewise.
2977 * df-problems.c : Likewise.
2978 * df-scan.c : Likewise.
2981 * dojump.c : Likewise.
2982 * dominance.c : Likewise.
2983 * domwalk.c : Likewise.
2984 * double-int.c : Likewise.
2986 * dumpfile.c : Likewise.
2987 * dwarf2asm.c : Likewise.
2988 * dwarf2cfi.c : Likewise.
2989 * dwarf2out.c : Likewise.
2990 * emit-rtl.c : Likewise.
2991 * et-forest.c : Likewise.
2992 * except.c : Likewise.
2993 * except.h : Likewise.
2994 * explow.c : Likewise.
2995 * expmed.c : Likewise.
2996 * expr.c : Likewise.
2997 * final.c : Likewise.
2998 * fixed-value.c : Likewise.
2999 * fold-const.c : Likewise.
3000 * function.c : Likewise.
3001 * fwprop.c : Likewise.
3002 * gcc-plugin.h : Likewise.
3004 * gcse-common.c : Likewise.
3005 * gcse.c : Likewise.
3006 * genattrtab.c : Likewise.
3007 * genautomata.c : Likewise.
3008 * genconditions.c : Likewise.
3009 * genemit.c : Likewise.
3010 * generic-match-head.c : Likewise.
3011 * genextract.c : Likewise.
3012 * gengtype-state.c : Likewise.
3013 * gengtype.c : Likewise.
3014 * genhooks.c : Likewise.
3015 * genmatch.c : Likewise.
3016 * genmodes.c : Likewise.
3017 * genrecog.c : Likewise.
3018 * gensupport.c : Likewise.
3019 * ggc-common.c : Likewise.
3020 * ggc-internal.h : Likewise.
3021 * ggc-none.c : Likewise.
3022 * ggc-page.c : Likewise.
3023 * gimple-builder.c : Likewise.
3024 * gimple-expr.c : Likewise.
3025 * gimple-fold.c : Likewise.
3026 * gimple-iterator.c : Likewise.
3027 * gimple-low.c : Likewise.
3028 * gimple-match-head.c : Likewise.
3029 * gimple-pretty-print.c : Likewise.
3030 * gimple-ssa-isolate-paths.c : Likewise.
3031 * gimple-ssa-strength-reduction.c : Likewise.
3032 * gimple-ssa.h : Likewise.
3033 * gimple-streamer-in.c : Likewise.
3034 * gimple-streamer-out.c : Likewise.
3035 * gimple-streamer.h : Likewise.
3036 * gimple-walk.c : Likewise.
3037 * gimple.c : Likewise.
3038 * gimplify-me.c : Likewise.
3039 * gimplify.c : Likewise.
3040 * godump.c : Likewise.
3041 * graph.c : Likewise.
3042 * graphds.c : Likewise.
3043 * graphite-blocking.c : Likewise.
3044 * graphite-dependences.c : Likewise.
3045 * graphite-interchange.c : Likewise.
3046 * graphite-isl-ast-to-gimple.c : Likewise.
3047 * graphite-optimize-isl.c : Likewise.
3048 * graphite-poly.c : Likewise.
3049 * graphite-scop-detection.c : Likewise.
3050 * graphite-sese-to-poly.c : Likewise.
3051 * graphite.c : Likewise.
3052 * haifa-sched.c : Likewise.
3053 * hard-reg-set.h : Likewise.
3054 * hw-doloop.c : Likewise.
3055 * ifcvt.c : Likewise.
3056 * inchash.c : Likewise.
3057 * incpath.c : Likewise.
3058 * init-regs.c : Likewise.
3059 * input.c : Likewise.
3060 * internal-fn.c : Likewise.
3061 * ipa-chkp.c : Likewise.
3062 * ipa-comdats.c : Likewise.
3063 * ipa-cp.c : Likewise.
3064 * ipa-devirt.c : Likewise.
3065 * ipa-icf-gimple.c : Likewise.
3066 * ipa-icf.c : Likewise.
3067 * ipa-inline-analysis.c : Likewise.
3068 * ipa-inline-transform.c : Likewise.
3069 * ipa-inline.c : Likewise.
3070 * ipa-polymorphic-call.c : Likewise.
3071 * ipa-profile.c : Likewise.
3072 * ipa-prop.c : Likewise.
3073 * ipa-pure-const.c : Likewise.
3074 * ipa-ref.c : Likewise.
3075 * ipa-reference.c : Likewise.
3076 * ipa-split.c : Likewise.
3077 * ipa-utils.c : Likewise.
3078 * ipa-visibility.c : Likewise.
3080 * ira-build.c : Likewise.
3081 * ira-color.c : Likewise.
3082 * ira-conflicts.c : Likewise.
3083 * ira-costs.c : Likewise.
3084 * ira-emit.c : Likewise.
3085 * ira-lives.c : Likewise.
3087 * jump.c : Likewise.
3088 * langhooks.c : Likewise.
3090 * libfuncs.h : Likewise.
3091 * lists.c : Likewise.
3092 * loop-doloop.c : Likewise.
3093 * loop-init.c : Likewise.
3094 * loop-invariant.c : Likewise.
3095 * loop-iv.c : Likewise.
3096 * loop-unroll.c : Likewise.
3097 * lower-subreg.c : Likewise.
3098 * lra-assigns.c : Likewise.
3099 * lra-coalesce.c : Likewise.
3100 * lra-constraints.c : Likewise.
3101 * lra-eliminations.c : Likewise.
3102 * lra-lives.c : Likewise.
3103 * lra-remat.c : Likewise.
3104 * lra-spills.c : Likewise.
3106 * lto-cgraph.c : Likewise.
3107 * lto-compress.c : Likewise.
3108 * lto-opts.c : Likewise.
3109 * lto-section-in.c : Likewise.
3110 * lto-section-out.c : Likewise.
3111 * lto-streamer-in.c : Likewise.
3112 * lto-streamer-out.c : Likewise.
3113 * lto-streamer.c : Likewise.
3114 * lto-streamer.h : Likewise.
3116 * mode-switching.c : Likewise.
3117 * modulo-sched.c : Likewise.
3118 * omega.c : Likewise.
3119 * omp-low.c : Likewise.
3120 * optabs.c : Likewise.
3121 * opts-global.c : Likewise.
3122 * opts.h : Likewise.
3123 * passes.c : Likewise.
3124 * plugin.c : Likewise.
3125 * postreload-gcse.c : Likewise.
3126 * postreload.c : Likewise.
3127 * predict.c : Likewise.
3128 * print-rtl.c : Likewise.
3129 * print-tree.c : Likewise.
3130 * profile.c : Likewise.
3131 * read-md.c : Likewise.
3132 * read-md.h : Likewise.
3133 * read-rtl.c : Likewise.
3134 * real.c : Likewise.
3135 * realmpfr.c : Likewise.
3136 * recog.c : Likewise.
3138 * reg-stack.c : Likewise.
3139 * regcprop.c : Likewise.
3140 * reginfo.c : Likewise.
3141 * regrename.c : Likewise.
3142 * regstat.c : Likewise.
3143 * reload.c : Likewise.
3144 * reload1.c : Likewise.
3145 * reorg.c : Likewise.
3146 * resource.c : Likewise.
3147 * rtl-chkp.c : Likewise.
3150 * rtlanal.c : Likewise.
3151 * rtlhash.c : Likewise.
3152 * rtlhash.h : Likewise.
3153 * rtlhooks.c : Likewise.
3154 * sanopt.c : Likewise.
3155 * sched-deps.c : Likewise.
3156 * sched-ebb.c : Likewise.
3157 * sched-rgn.c : Likewise.
3158 * sched-vis.c : Likewise.
3159 * sdbout.c : Likewise.
3160 * sel-sched-dump.c : Likewise.
3161 * sel-sched-ir.c : Likewise.
3162 * sel-sched-ir.h : Likewise.
3163 * sel-sched.c : Likewise.
3164 * sese.c : Likewise.
3165 * shrink-wrap.c : Likewise.
3166 * shrink-wrap.h : Likewise.
3167 * simplify-rtx.c : Likewise.
3168 * stack-ptr-mod.c : Likewise.
3169 * statistics.c : Likewise.
3170 * stmt.c : Likewise.
3171 * stor-layout.c : Likewise.
3172 * store-motion.c : Likewise.
3173 * stringpool.c : Likewise.
3174 * symtab.c : Likewise.
3175 * target-globals.c : Likewise.
3176 * targhooks.c : Likewise.
3177 * tlink.c : Likewise.
3178 * toplev.c : Likewise.
3179 * tracer.c : Likewise.
3180 * trans-mem.c : Likewise.
3181 * tree-affine.c : Likewise.
3182 * tree-affine.h : Likewise.
3183 * tree-browser.c : Likewise.
3184 * tree-call-cdce.c : Likewise.
3185 * tree-cfg.c : Likewise.
3186 * tree-cfgcleanup.c : Likewise.
3187 * tree-chkp-opt.c : Likewise.
3188 * tree-chkp.c : Likewise.
3189 * tree-chrec.c : Likewise.
3190 * tree-complex.c : Likewise.
3191 * tree-data-ref.c : Likewise.
3192 * tree-dfa.c : Likewise.
3193 * tree-diagnostic.c : Likewise.
3194 * tree-dump.c : Likewise.
3195 * tree-eh.c : Likewise.
3196 * tree-eh.h : Likewise.
3197 * tree-emutls.c : Likewise.
3198 * tree-hasher.h : Likewise.
3199 * tree-if-conv.c : Likewise.
3200 * tree-inline.c : Likewise.
3201 * tree-inline.h : Likewise.
3202 * tree-into-ssa.c : Likewise.
3203 * tree-iterator.c : Likewise.
3204 * tree-loop-distribution.c : Likewise.
3205 * tree-nested.c : Likewise.
3206 * tree-nrv.c : Likewise.
3207 * tree-object-size.c : Likewise.
3208 * tree-outof-ssa.c : Likewise.
3209 * tree-parloops.c : Likewise.
3210 * tree-phinodes.c : Likewise.
3211 * tree-predcom.c : Likewise.
3212 * tree-pretty-print.c : Likewise.
3213 * tree-profile.c : Likewise.
3214 * tree-scalar-evolution.c : Likewise.
3215 * tree-sra.c : Likewise.
3216 * tree-ssa-address.c : Likewise.
3217 * tree-ssa-alias.c : Likewise.
3218 * tree-ssa-ccp.c : Likewise.
3219 * tree-ssa-coalesce.c : Likewise.
3220 * tree-ssa-copy.c : Likewise.
3221 * tree-ssa-copyrename.c : Likewise.
3222 * tree-ssa-dce.c : Likewise.
3223 * tree-ssa-dom.c : Likewise.
3224 * tree-ssa-dse.c : Likewise.
3225 * tree-ssa-forwprop.c : Likewise.
3226 * tree-ssa-ifcombine.c : Likewise.
3227 * tree-ssa-live.c : Likewise.
3228 * tree-ssa-loop-ch.c : Likewise.
3229 * tree-ssa-loop-im.c : Likewise.
3230 * tree-ssa-loop-ivcanon.c : Likewise.
3231 * tree-ssa-loop-ivopts.c : Likewise.
3232 * tree-ssa-loop-manip.c : Likewise.
3233 * tree-ssa-loop-niter.c : Likewise.
3234 * tree-ssa-loop-prefetch.c : Likewise.
3235 * tree-ssa-loop-unswitch.c : Likewise.
3236 * tree-ssa-loop.c : Likewise.
3237 * tree-ssa-math-opts.c : Likewise.
3238 * tree-ssa-operands.c : Likewise.
3239 * tree-ssa-phiopt.c : Likewise.
3240 * tree-ssa-phiprop.c : Likewise.
3241 * tree-ssa-pre.c : Likewise.
3242 * tree-ssa-propagate.c : Likewise.
3243 * tree-ssa-reassoc.c : Likewise.
3244 * tree-ssa-sccvn.c : Likewise.
3245 * tree-ssa-scopedtables.c : Likewise.
3246 * tree-ssa-sink.c : Likewise.
3247 * tree-ssa-strlen.c : Likewise.
3248 * tree-ssa-structalias.c : Likewise.
3249 * tree-ssa-tail-merge.c : Likewise.
3250 * tree-ssa-ter.c : Likewise.
3251 * tree-ssa-threadedge.c : Likewise.
3252 * tree-ssa-threadupdate.c : Likewise.
3253 * tree-ssa-uncprop.c : Likewise.
3254 * tree-ssa-uninit.c : Likewise.
3255 * tree-ssa.c : Likewise.
3256 * tree-ssanames.c : Likewise.
3257 * tree-stdarg.c : Likewise.
3258 * tree-streamer-in.c : Likewise.
3259 * tree-streamer-out.c : Likewise.
3260 * tree-streamer.c : Likewise.
3261 * tree-streamer.h : Likewise.
3262 * tree-switch-conversion.c : Likewise.
3263 * tree-tailcall.c : Likewise.
3264 * tree-vect-data-refs.c : Likewise.
3265 * tree-vect-generic.c : Likewise.
3266 * tree-vect-loop-manip.c : Likewise.
3267 * tree-vect-loop.c : Likewise.
3268 * tree-vect-patterns.c : Likewise.
3269 * tree-vect-slp.c : Likewise.
3270 * tree-vect-stmts.c : Likewise.
3271 * tree-vectorizer.c : Likewise.
3272 * tree-vectorizer.h : Likewise.
3273 * tree-vrp.c : Likewise.
3274 * tree.c : Likewise.
3275 * tsan.c : Likewise.
3276 * ubsan.c : Likewise.
3277 * valtrack.c : Likewise.
3278 * valtrack.h : Likewise.
3279 * value-prof.c : Likewise.
3280 * var-tracking.c : Likewise.
3281 * varasm.c : Likewise.
3282 * varpool.c : Likewise.
3284 * vmsdbgout.c : Likewise.
3285 * vtable-verify.c : Likewise.
3286 * vtable-verify.h : Likewise.
3288 * wide-int.cc : Likewise.
3289 * xcoffout.c : Likewise.
3290 * config/aarch64/aarch64-builtins.c : Likewise.
3291 * config/aarch64/aarch64.c : Likewise.
3292 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
3293 * config/alpha/alpha.c : Likewise.
3294 * config/arc/arc.c : Likewise.
3295 * config/arm/aarch-common.c : Likewise.
3296 * config/arm/arm-builtins.c : Likewise.
3297 * config/arm/arm-c.c : Likewise.
3298 * config/arm/arm.c : Likewise.
3299 * config/avr/avr-c.c : Likewise.
3300 * config/avr/avr-log.c : Likewise.
3301 * config/avr/avr.c : Likewise.
3302 * config/bfin/bfin.c : Likewise.
3303 * config/c6x/c6x.c : Likewise.
3304 * config/cr16/cr16.c : Likewise.
3305 * config/cris/cris.c : Likewise.
3306 * config/darwin-c.c : Likewise.
3307 * config/darwin.c : Likewise.
3308 * config/default-c.c : Likewise.
3309 * config/epiphany/epiphany.c : Likewise.
3310 * config/epiphany/mode-switch-use.c : Likewise.
3311 * config/epiphany/resolve-sw-modes.c : Likewise.
3312 * config/fr30/fr30.c : Likewise.
3313 * config/frv/frv.c : Likewise.
3314 * config/ft32/ft32.c : Likewise.
3315 * config/glibc-c.c : Likewise.
3316 * config/h8300/h8300.c : Likewise.
3317 * config/i386/i386-c.c : Likewise.
3318 * config/i386/i386.c : Likewise.
3319 * config/i386/msformat-c.c : Likewise.
3320 * config/i386/winnt-cxx.c : Likewise.
3321 * config/i386/winnt-stubs.c : Likewise.
3322 * config/i386/winnt.c : Likewise.
3323 * config/ia64/ia64-c.c : Likewise.
3324 * config/ia64/ia64.c : Likewise.
3325 * config/iq2000/iq2000.c : Likewise.
3326 * config/lm32/lm32.c : Likewise.
3327 * config/m32c/m32c-pragma.c : Likewise.
3328 * config/m32c/m32c.c : Likewise.
3329 * config/m32r/m32r.c : Likewise.
3330 * config/m68k/m68k.c : Likewise.
3331 * config/mcore/mcore.c : Likewise.
3332 * config/mep/mep-pragma.c : Likewise.
3333 * config/mep/mep.c : Likewise.
3334 * config/microblaze/microblaze-c.c : Likewise.
3335 * config/microblaze/microblaze.c : Likewise.
3336 * config/mips/mips.c : Likewise.
3337 * config/mmix/mmix.c : Likewise.
3338 * config/mn10300/mn10300.c : Likewise.
3339 * config/moxie/moxie.c : Likewise.
3340 * config/msp430/msp430-c.c : Likewise.
3341 * config/msp430/msp430.c : Likewise.
3342 * config/nds32/nds32-cost.c : Likewise.
3343 * config/nds32/nds32-fp-as-gp.c : Likewise.
3344 * config/nds32/nds32-intrinsic.c : Likewise.
3345 * config/nds32/nds32-isr.c : Likewise.
3346 * config/nds32/nds32-md-auxiliary.c : Likewise.
3347 * config/nds32/nds32-memory-manipulation.c : Likewise.
3348 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
3349 * config/nds32/nds32-predicates.c : Likewise.
3350 * config/nds32/nds32.c : Likewise.
3351 * config/nios2/nios2.c : Likewise.
3352 * config/nvptx/nvptx.c : Likewise.
3353 * config/pa/pa.c : Likewise.
3354 * config/pdp11/pdp11.c : Likewise.
3355 * config/rl78/rl78-c.c : Likewise.
3356 * config/rl78/rl78.c : Likewise.
3357 * config/rs6000/rs6000-c.c : Likewise.
3358 * config/rs6000/rs6000.c : Likewise.
3359 * config/rx/rx.c : Likewise.
3360 * config/s390/s390-c.c : Likewise.
3361 * config/s390/s390.c : Likewise.
3362 * config/sh/sh-c.c : Likewise.
3363 * config/sh/sh-mem.cc : Likewise.
3364 * config/sh/sh.c : Likewise.
3365 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
3366 * config/sh/sh_treg_combine.cc : Likewise.
3367 * config/sol2-c.c : Likewise.
3368 * config/sol2-cxx.c : Likewise.
3369 * config/sol2-stubs.c : Likewise.
3370 * config/sol2.c : Likewise.
3371 * config/sparc/sparc-c.c : Likewise.
3372 * config/sparc/sparc.c : Likewise.
3373 * config/spu/spu-c.c : Likewise.
3374 * config/spu/spu.c : Likewise.
3375 * config/stormy16/stormy16.c : Likewise.
3376 * config/tilegx/mul-tables.c : Likewise.
3377 * config/tilegx/tilegx-c.c : Likewise.
3378 * config/tilegx/tilegx.c : Likewise.
3379 * config/tilepro/mul-tables.c : Likewise.
3380 * config/tilepro/tilepro-c.c : Likewise.
3381 * config/tilepro/tilepro.c : Likewise.
3382 * config/v850/v850-c.c : Likewise.
3383 * config/v850/v850.c : Likewise.
3384 * config/vax/vax.c : Likewise.
3385 * config/visium/visium.c : Likewise.
3386 * config/vms/vms-c.c : Likewise.
3387 * config/vms/vms.c : Likewise.
3388 * config/vxworks.c : Likewise.
3389 * config/winnt-c.c : Likewise.
3390 * config/xtensa/xtensa.c : Likewise.
3392 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
3395 * ipa-utils.h (warn_types_mismatch): Update prototype.
3396 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
3398 (type_mismatch_p): New function.
3399 (warn_types_mismatch): Reorg to work better on non-C++ types.
3400 (odr_types_equivalent_p): Add loc1/loc2 parameters.
3401 (add_type_duplicate): Update.
3403 2015-06-08 Tom de Vries <tom@codesourcery.com>
3405 PR rtl-optimization/66444
3406 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
3409 2015-06-08 Richard Biener <rguenther@suse.de>
3411 PR tree-optimization/66422
3412 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
3413 block after inserted gcc_unreachable.
3415 2015-06-08 Nick Clifton <nickc@redhat.com>
3417 * config/rx/rx.c (rx_function_value): Do not promote vector types.
3418 (rx_promote_function_mode): Likewise.
3419 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
3421 2015-06-08 Jakub Jelinek <jakub@redhat.com>
3423 * genattrtab.c (insn_alternatives): Change type from int *
3425 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
3426 (get_attr_value): Change type of num_alt to uint64_t.
3427 (compute_alternative_mask): Change return type from
3428 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
3429 (make_alternative_compare, mk_attr_alt): Change argument type
3430 from int to uint64_t.
3431 (simplify_test_exp): Change type of i from int to uint64_t.
3432 Shift ((uint64_t) 1) instead of 1 up.
3433 (main): Adjust oballocvec first argument from int to uint64_t.
3434 Shift ((uint64_t) 1) instead of 1 up.
3436 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3439 * gdbhooks.py: Import sys.
3440 (intptr): New function. Replace int(...) by intptr(...).
3442 2015-06-08 Richard Biener <rguenther@suse.de>
3444 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
3445 adjustment for gaps at the end of a SLP load group properly.
3446 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
3447 all permutations we can generate.
3448 (vect_transform_slp_perm_load): Use the correct group-size.
3450 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
3452 * genmatch.c (expr::gen_transform): For conditions, guess the type
3453 from the second operand.
3455 2015-06-08 Tom de Vries <tom@codesourcery.com>
3457 PR tree-optimization/66442
3458 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
3459 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
3460 if the loop latch is not a singleton. Use
3461 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
3463 2015-06-08 Marek Polacek <polacek@redhat.com>
3466 * toplev.c (check_global_declaration): Don't warn about artificial
3469 2015-06-08 Tom de Vries <tom@codesourcery.com>
3471 PR tree-optimization/66436
3472 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
3474 * gimplify.c: Add tree-dump.h include.
3475 (gimplify_function_tree): Dump function to gimple dump file.
3476 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
3479 2015-06-08 Tom de Vries <tom@codesourcery.com>
3481 PR tree-optimization/66435
3482 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
3485 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
3487 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
3488 of ptr_type_node to not be ptr_to_node.
3489 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
3490 TREE_TYPE of pointers.
3491 * gimple-expr.c (useless_type_conversion): Reorder the check for
3492 function pointers and TYPE_CANONICAL.
3494 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
3497 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
3498 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
3499 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
3501 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
3502 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
3503 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
3504 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
3505 and non iso if unix2003.
3507 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
3509 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
3511 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
3513 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
3514 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
3515 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
3516 except.c, final.c, function.c, gcse-common.c, genemit.c,
3517 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
3518 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
3519 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
3520 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
3523 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
3525 * combine.c (combine_split_insns): Remove cast.
3526 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
3527 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
3528 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
3529 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
3530 * genemit.c (gen_split): Change return type of generated functions to
3532 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
3533 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
3534 gen_peephole2_* functions.
3535 (print_subroutine, main): Likewise.
3536 * recog.c (peephole2_optimize): Remove cast.
3537 (peep2_next_insn): Promote return type to rtx_insn.
3538 * recog.h (peep2_next_insn): Fix prototype.
3539 * rtl.h (try_split, split_insns): Likewise.
3541 2015-06-06 DJ Delorie <dj@redhat.com>
3543 * config/msp430/msp430.c (msp430_asm_integer): Support addition
3544 and subtraction too.
3546 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
3549 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
3550 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
3551 instead of Snd. Disparage Sid/z alternative with '^'.
3553 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
3555 * dwarf2out.c: Remove deferred_locations*.
3556 (dwarf2_debug_hooks): Add early_finish hook.
3557 Remove global_decl hook.
3558 Add early_global_decl and late_global_decl hook.
3559 New global early_dwarf.
3560 New structure set_early_dwarf.
3561 (output_die): Indicate whether a DIE was generated early
3562 when generating assembly with -dA.
3563 (struct limbo_die_struct): Document created_for field.
3564 Remove file_table_last_lookup.
3565 (remove_AT): Return TRUE if successful.
3566 (remove_child_TAG): Clear die_parent.
3567 (reparent_child): New function abstracted from...
3568 (splice_child_die): ...here.
3569 (new_die): ICE if a DIE ends up in limbo too late.
3571 (defer_location): Remove.
3572 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
3573 (fill_variable_array_bounds): New.
3574 (decl_start_label): Call fill_variable_array_bounds.
3575 (gen_formal_parameter_die): Rewrite to reuse previously generated
3577 (gen_subprogram_die): Same.
3578 (gen_variable_die): Same.
3579 (gen_const_die): Same.
3580 (gen_label_die): Same.
3581 (gen_lexical_block_die): Same.
3582 (decl_will_get_specification_p): New.
3583 (local_function_static): New.
3584 (gen_struct_or_union_type_die): Fill in variable-length fields.
3585 (gen_typedef_die): Fill in variable-length typedefs.
3586 (gen_tagged_type_die): Gracefully return on error_mark_node.
3588 (gen_type_die_with_usage): Handle variable-length types.
3589 Remove duplicate code for ARRAY_TYPE case.
3590 (process_scope_var): Only process imported modules during early
3592 (dwarf2out_early_global_decl): New.
3593 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
3594 (dwarf2out_type_decl): Set early_dwarf while calling
3596 (dwarf2out_decl): Verify that we did not recreate a previously
3598 Do not return on DECL_EXTERNALs in VAR_DECLs.
3599 Abstract some code to local_function_static.
3600 (lookup_filename): Remove use of file_table_last_lookup.
3601 Gracefully exit on missing file_name.
3602 (dwarf2out_finish): Verify limbo list.
3603 Remove deferred_locations_list use.
3604 Move deferred_asm_name and limbo flushing to...
3605 (dwarf2out_early_finish): ...here. New.
3606 (dwarf2out_c_finalize): Remove set of deferred_location_list,
3607 deferred_asm_name, and file_table_last_lookup.
3608 * cgraph.h (referred_to_p): Add default argument.
3609 * cgraphunit.c (referred_to_p): Add and handle include_self
3611 (analyze_functions): Add first_time argument.
3612 Call check_global_declaration for all symbols.
3613 Call late_global_decl for nodes for moribund nodes.
3614 (finalize_compilation_unit): Add new argument to
3616 Call early_global_decl for functions.
3617 Call early_finish debug hook.
3618 * dbxout.c (dbxout_early_global_decl): New.
3619 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
3620 (dbx_debug_hooks): Add new hooks.
3621 (xcoff_debug_hooks): Same.
3622 * debug.c (do_nothing_debug_hooks): Add early_finish field.
3623 Add early and late debug hooks.
3624 Remove global_decl hook.
3625 * debug.h (struct gcc_debug_hooks): Add early_finish,
3626 early_global_decl, and late_global_decl fields.
3627 Remove global_decl field.
3628 Document gcc_debug_hooks.
3629 * gengtype.c (output_typename): Remove.
3630 * godump.c (go_early_global_decl): New.
3631 (go_late_global_decl): New.
3632 (go_global_decl): Remove.
3633 (dump_go_spec_init): Remove global_decl. Add
3634 {early,late}_global_decl.
3635 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
3636 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
3637 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
3638 (write_global_declarations): Remove.
3639 (global_decl_processing): New.
3640 * langhooks.h (struct lang_hooks_for_decls): Remove
3641 final_write_globals field.
3642 Add post_compilation_parsing_cleanups field.
3643 * passes.c (rest_of_decl_compilation): Call early_global_decl.
3644 * sdbout.c: Add early and late_global_decl hooks. Remove
3645 sdbout_global_decl hook.
3646 Add early_finish field for sdb_debug_hooks.
3647 (sdbout_global_decl): Remove.
3648 (sdbout_early_global_decl): New.
3649 (sdbout_late_global_decl): New.
3650 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
3651 * toplev.c (check_global_declaration): Rename from
3652 check_global_declaration_1.
3653 Adapt to use symtab infrastructure.
3654 (check_global_declarations): Remove.
3655 (emit_debug_global_declarations): Remove.
3656 (compile_file): Remove call to final_write_globals langhook.
3657 Run the actual compilation process.
3658 Perform any post compilation parser cleanups.
3659 Generate late debug info.
3660 * toplev.h (check_global_declaration): New.
3661 (check_global_declaration_1): Remove.
3662 (check_global_declarations): Remove.
3663 (write_global_declarations): Remove.
3664 (emit_debug_global_declarations): Remove.
3665 (global_decl_processing): New.
3666 * tree-core.h (struct tree_block): Add DIE field.
3667 * tree.h (BLOCK_DIE): New.
3668 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
3670 (vmsdbgout_early_global_decl): New.
3671 (vmsdbgout_late_global_decl): New.
3672 Add early_finish debug hook field to vmsdbg_debug_hooks.
3673 Remove vmsdbgout_decl to vmsdbgout_function_decl.
3674 Add early and late_global_decl debug hooks.
3676 2015-06-05 Julian Brown <julian@codesourcery.com>
3677 Sandra Loosemore <sandra@codesourcery.com>
3679 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
3680 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
3681 to print-sysroot-suffix.sh script.
3683 2015-06-05 Tom de Vries <tom@codesourcery.com>
3685 merge from gomp4 branch:
3686 2015-05-28 Tom de Vries <tom@codesourcery.com>
3688 PR tree-optimization/65443
3689 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
3690 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
3691 (try_transform_to_exit_first_loop_alt): New function.
3692 (transform_to_exit_first_loop): Use
3693 try_transform_to_exit_first_loop_alt.
3695 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
3697 * builtins.c (expand_builtin_atomic_compare_exchange): Call
3698 emit_cmp_and_jump_insns with the mode of target.
3700 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3702 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
3704 2015-06-04 DJ Delorie <dj@redhat.com>
3706 * config/msp430/msp430.md (movsi_s): New. Special case for
3707 storing a 20-bit symbol into a 32-bit register.
3708 * config/msp430/msp430.c (msp430_subreg): Add support for it.
3709 * config/msp430/predicates.md (msp430_symbol_operand): New.
3711 2015-06-04 Sriraman Tallam <tmsriram@google.com>
3713 * c-family/c-common.c (noplt): New attribute.
3714 (handle_noplt_attribute): New handler.
3715 * calls.c (prepare_call_address): Check for noplt
3717 * config/i386/i386.c (ix86_expand_call): Check
3718 for noplt attribute.
3719 (ix86_nopic_noplt_attribute_p): New function.
3720 (ix86_output_call_insn): Output indirect call for non-pic
3722 * doc/extend.texi (noplt): Document new attribute.
3723 * doc/invoke.texi: Document new attribute.
3725 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
3727 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
3728 real.h, and fixed-value.h when included in host source files.
3729 * double-int.h: Remove redundant #includes listed above.
3730 * fixed-value.h: Likewise.
3732 * wide-int.h: Likewise.
3733 * inchash.h: Likewise.
3734 * rtl.h: Add some include files When included from a generator file.
3735 * target.h: Remove wide-int.h and insn-modes.h from the include list.
3736 * internal-fn.h: Don't include coretypes.h.
3737 * alias.c: Adjust includes for restructured coretypes.h.
3739 * attribs.c: Likewise.
3740 * auto-inc-dec.c: Likewise.
3741 * auto-profile.c: Likewise.
3742 * bb-reorder.c: Likewise.
3743 * bt-load.c: Likewise.
3744 * builtins.c: Likewise.
3745 * caller-save.c: Likewise.
3746 * calls.c: Likewise.
3749 * cfganal.c: Likewise.
3750 * cfgbuild.c: Likewise.
3751 * cfgcleanup.c: Likewise.
3752 * cfgexpand.c: Likewise.
3753 * cfghooks.c: Likewise.
3754 * cfgloop.c: Likewise.
3755 * cfgloop.h: Likewise.
3756 * cfgloopanal.c: Likewise.
3757 * cfgloopmanip.c: Likewise.
3758 * cfgrtl.c: Likewise.
3759 * cgraph.c: Likewise.
3760 * cgraphbuild.c: Likewise.
3761 * cgraphclones.c: Likewise.
3762 * cgraphunit.c: Likewise.
3763 * cilk-common.c: Likewise.
3764 * combine-stack-adj.c: Likewise.
3765 * combine.c: Likewise.
3766 * compare-elim.c: Likewise.
3767 * convert.c: Likewise.
3768 * coverage.c: Likewise.
3769 * cppbuiltin.c: Likewise.
3770 * cprop.c: Likewise.
3772 * cselib.c: Likewise.
3773 * data-streamer-in.c: Likewise.
3774 * data-streamer-out.c: Likewise.
3775 * data-streamer.c: Likewise.
3776 * dbxout.c: Likewise.
3779 * debug.c: Likewise.
3780 * df-core.c: Likewise.
3781 * df-problems.c: Likewise.
3782 * df-scan.c: Likewise.
3785 * dojump.c: Likewise.
3786 * dominance.c: Likewise.
3787 * domwalk.c: Likewise.
3788 * double-int.c: Likewise.
3790 * dumpfile.c: Likewise.
3791 * dwarf2asm.c: Likewise.
3792 * dwarf2cfi.c: Likewise.
3793 * dwarf2out.c: Likewise.
3794 * dwarf2out.h: Likewise.
3795 * emit-rtl.c: Likewise.
3796 * et-forest.c: Likewise.
3797 * except.c: Likewise.
3798 * explow.c: Likewise.
3799 * expmed.c: Likewise.
3801 * final.c: Likewise.
3802 * fixed-value.c: Likewise.
3803 * fold-const.c: Likewise.
3804 * function.c: Likewise.
3805 * fwprop.c: Likewise.
3806 * gcc-plugin.h: Likewise.
3808 * generic-match-head.c: Likewise.
3809 * ggc-page.c: Likewise.
3810 * gimple-builder.c: Likewise.
3811 * gimple-expr.c: Likewise.
3812 * gimple-fold.c: Likewise.
3813 * gimple-iterator.c: Likewise.
3814 * gimple-low.c: Likewise.
3815 * gimple-match-head.c: Likewise.
3816 * gimple-pretty-print.c: Likewise.
3817 * gimple-ssa-isolate-paths.c: Likewise.
3818 * gimple-ssa-strength-reduction.c: Likewise.
3819 * gimple-streamer-in.c: Likewise.
3820 * gimple-streamer-out.c: Likewise.
3821 * gimple-streamer.h: Likewise.
3822 * gimple-walk.c: Likewise.
3823 * gimple.c: Likewise.
3824 * gimplify-me.c: Likewise.
3825 * gimplify.c: Likewise.
3826 * godump.c: Likewise.
3827 * graph.c: Likewise.
3828 * graphite-blocking.c: Likewise.
3829 * graphite-dependences.c: Likewise.
3830 * graphite-interchange.c: Likewise.
3831 * graphite-isl-ast-to-gimple.c: Likewise.
3832 * graphite-optimize-isl.c: Likewise.
3833 * graphite-poly.c: Likewise.
3834 * graphite-scop-detection.c: Likewise.
3835 * graphite-sese-to-poly.c: Likewise.
3836 * graphite.c: Likewise.
3837 * haifa-sched.c: Likewise.
3838 * hooks.h: Likewise.
3839 * hw-doloop.c: Likewise.
3840 * ifcvt.c: Likewise.
3841 * incpath.c: Likewise.
3842 * init-regs.c: Likewise.
3843 * internal-fn.c: Likewise.
3844 * ipa-chkp.c: Likewise.
3845 * ipa-comdats.c: Likewise.
3846 * ipa-cp.c: Likewise.
3847 * ipa-devirt.c: Likewise.
3848 * ipa-icf-gimple.c: Likewise.
3849 * ipa-icf.c: Likewise.
3850 * ipa-inline-analysis.c: Likewise.
3851 * ipa-inline-transform.c: Likewise.
3852 * ipa-inline.c: Likewise.
3853 * ipa-polymorphic-call.c: Likewise.
3854 * ipa-profile.c: Likewise.
3855 * ipa-prop.c: Likewise.
3856 * ipa-pure-const.c: Likewise.
3857 * ipa-ref.c: Likewise.
3858 * ipa-reference.c: Likewise.
3859 * ipa-split.c: Likewise.
3860 * ipa-utils.c: Likewise.
3861 * ipa-visibility.c: Likewise.
3863 * ira-build.c: Likewise.
3864 * ira-color.c: Likewise.
3865 * ira-conflicts.c: Likewise.
3866 * ira-costs.c: Likewise.
3867 * ira-emit.c: Likewise.
3868 * ira-lives.c: Likewise.
3871 * langhooks.c: Likewise.
3873 * loop-doloop.c: Likewise.
3874 * loop-init.c: Likewise.
3875 * loop-invariant.c: Likewise.
3876 * loop-iv.c: Likewise.
3877 * loop-unroll.c: Likewise.
3878 * lower-subreg.c: Likewise.
3879 * lra-assigns.c: Likewise.
3880 * lra-coalesce.c: Likewise.
3881 * lra-constraints.c: Likewise.
3882 * lra-eliminations.c: Likewise.
3883 * lra-lives.c: Likewise.
3884 * lra-remat.c: Likewise.
3885 * lra-spills.c: Likewise.
3887 * lto-cgraph.c: Likewise.
3888 * lto-compress.c: Likewise.
3889 * lto-opts.c: Likewise.
3890 * lto-section-in.c: Likewise.
3891 * lto-section-out.c: Likewise.
3892 * lto-streamer-in.c: Likewise.
3893 * lto-streamer-out.c: Likewise.
3894 * lto-streamer.c: Likewise.
3896 * mode-switching.c: Likewise.
3897 * modulo-sched.c: Likewise.
3898 * omega.c: Likewise.
3899 * omp-low.c: Likewise.
3900 * optabs.c: Likewise.
3901 * opts-global.c: Likewise.
3902 * passes.c: Likewise.
3903 * plugin.c: Likewise.
3904 * postreload-gcse.c: Likewise.
3905 * postreload.c: Likewise.
3906 * predict.c: Likewise.
3907 * print-rtl.c: Likewise.
3908 * print-tree.c: Likewise.
3909 * profile.c: Likewise.
3911 * realmpfr.c: Likewise.
3912 * realmpfr.h: Likewise.
3913 * recog.c: Likewise.
3915 * reg-stack.c: Likewise.
3916 * regcprop.c: Likewise.
3917 * reginfo.c: Likewise.
3918 * regrename.c: Likewise.
3920 * regstat.c: Likewise.
3921 * reload.c: Likewise.
3922 * reload1.c: Likewise.
3923 * reorg.c: Likewise.
3924 * resource.c: Likewise.
3925 * rtl-chkp.c: Likewise.
3926 * rtlanal.c: Likewise.
3927 * rtlhooks.c: Likewise.
3928 * sanopt.c: Likewise.
3929 * sched-deps.c: Likewise.
3930 * sched-ebb.c: Likewise.
3931 * sched-rgn.c: Likewise.
3932 * sched-vis.c: Likewise.
3933 * sdbout.c: Likewise.
3934 * sel-sched-dump.c: Likewise.
3935 * sel-sched-ir.c: Likewise.
3936 * sel-sched.c: Likewise.
3938 * shrink-wrap.c: Likewise.
3939 * shrink-wrap.h: Likewise.
3940 * simplify-rtx.c: Likewise.
3941 * stack-ptr-mod.c: Likewise.
3942 * statistics.c: Likewise.
3944 * stor-layout.c: Likewise.
3945 * store-motion.c: Likewise.
3946 * stringpool.c: Likewise.
3947 * symtab.c: Likewise.
3948 * target-globals.c: Likewise.
3949 * targhooks.c: Likewise.
3950 * toplev.c: Likewise.
3951 * tracer.c: Likewise.
3952 * trans-mem.c: Likewise.
3953 * tree-affine.c: Likewise.
3954 * tree-affine.h: Likewise.
3955 * tree-browser.c: Likewise.
3956 * tree-call-cdce.c: Likewise.
3957 * tree-cfg.c: Likewise.
3958 * tree-cfgcleanup.c: Likewise.
3959 * tree-chkp-opt.c: Likewise.
3960 * tree-chkp.c: Likewise.
3961 * tree-chrec.c: Likewise.
3962 * tree-complex.c: Likewise.
3963 * tree-data-ref.c: Likewise.
3964 * tree-dfa.c: Likewise.
3965 * tree-diagnostic.c: Likewise.
3966 * tree-dump.c: Likewise.
3967 * tree-eh.c: Likewise.
3968 * tree-emutls.c: Likewise.
3969 * tree-if-conv.c: Likewise.
3970 * tree-inline.c: Likewise.
3971 * tree-into-ssa.c: Likewise.
3972 * tree-iterator.c: Likewise.
3973 * tree-loop-distribution.c: Likewise.
3974 * tree-nested.c: Likewise.
3975 * tree-nrv.c: Likewise.
3976 * tree-object-size.c: Likewise.
3977 * tree-outof-ssa.c: Likewise.
3978 * tree-parloops.c: Likewise.
3979 * tree-phinodes.c: Likewise.
3980 * tree-predcom.c: Likewise.
3981 * tree-pretty-print.c: Likewise.
3982 * tree-pretty-print.h: Likewise.
3983 * tree-profile.c: Likewise.
3984 * tree-scalar-evolution.c: Likewise.
3985 * tree-sra.c: Likewise.
3986 * tree-ssa-address.c: Likewise.
3987 * tree-ssa-alias.c: Likewise.
3988 * tree-ssa-ccp.c: Likewise.
3989 * tree-ssa-coalesce.c: Likewise.
3990 * tree-ssa-copy.c: Likewise.
3991 * tree-ssa-copyrename.c: Likewise.
3992 * tree-ssa-dce.c: Likewise.
3993 * tree-ssa-dom.c: Likewise.
3994 * tree-ssa-dse.c: Likewise.
3995 * tree-ssa-forwprop.c: Likewise.
3996 * tree-ssa-ifcombine.c: Likewise.
3997 * tree-ssa-live.c: Likewise.
3998 * tree-ssa-loop-ch.c: Likewise.
3999 * tree-ssa-loop-im.c: Likewise.
4000 * tree-ssa-loop-ivcanon.c: Likewise.
4001 * tree-ssa-loop-ivopts.c: Likewise.
4002 * tree-ssa-loop-manip.c: Likewise.
4003 * tree-ssa-loop-niter.c: Likewise.
4004 * tree-ssa-loop-prefetch.c: Likewise.
4005 * tree-ssa-loop-unswitch.c: Likewise.
4006 * tree-ssa-loop.c: Likewise.
4007 * tree-ssa-loop.h: Likewise.
4008 * tree-ssa-math-opts.c: Likewise.
4009 * tree-ssa-operands.c: Likewise.
4010 * tree-ssa-phiopt.c: Likewise.
4011 * tree-ssa-phiprop.c: Likewise.
4012 * tree-ssa-pre.c: Likewise.
4013 * tree-ssa-propagate.c: Likewise.
4014 * tree-ssa-reassoc.c: Likewise.
4015 * tree-ssa-sccvn.c: Likewise.
4016 * tree-ssa-scopedtables.c: Likewise.
4017 * tree-ssa-sink.c: Likewise.
4018 * tree-ssa-strlen.c: Likewise.
4019 * tree-ssa-structalias.c: Likewise.
4020 * tree-ssa-tail-merge.c: Likewise.
4021 * tree-ssa-ter.c: Likewise.
4022 * tree-ssa-threadedge.c: Likewise.
4023 * tree-ssa-threadupdate.c: Likewise.
4024 * tree-ssa-uncprop.c: Likewise.
4025 * tree-ssa-uninit.c: Likewise.
4026 * tree-ssa.c: Likewise.
4027 * tree-ssanames.c: Likewise.
4028 * tree-stdarg.c: Likewise.
4029 * tree-streamer-in.c: Likewise.
4030 * tree-streamer-out.c: Likewise.
4031 * tree-streamer.c: Likewise.
4032 * tree-switch-conversion.c: Likewise.
4033 * tree-tailcall.c: Likewise.
4034 * tree-vect-data-refs.c: Likewise.
4035 * tree-vect-generic.c: Likewise.
4036 * tree-vect-loop-manip.c: Likewise.
4037 * tree-vect-loop.c: Likewise.
4038 * tree-vect-patterns.c: Likewise.
4039 * tree-vect-slp.c: Likewise.
4040 * tree-vect-stmts.c: Likewise.
4041 * tree-vectorizer.c: Likewise.
4042 * tree-vrp.c: Likewise.
4045 * ubsan.c: Likewise.
4046 * valtrack.c: Likewise.
4047 * value-prof.c: Likewise.
4048 * var-tracking.c: Likewise.
4049 * varasm.c: Likewise.
4050 * varpool.c: Likewise.
4051 * vmsdbgout.c: Likewise.
4052 * vtable-verify.c: Likewise.
4054 * wide-int-print.cc: Likewise.
4055 * wide-int-print.h: Likewise.
4056 * wide-int.cc: Likewise.
4057 * xcoffout.c: Likewise.
4058 * config/aarch64/aarch64-builtins.c: Likewise.
4059 * config/aarch64/aarch64.c: Likewise.
4060 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4061 * config/alpha/alpha.c: Likewise.
4062 * config/arc/arc.c: Likewise.
4063 * config/arm/aarch-common.c: Likewise.
4064 * config/arm/arm-builtins.c: Likewise.
4065 * config/arm/arm-c.c: Likewise.
4066 * config/arm/arm.c: Likewise.
4067 * config/avr/avr-c.c: Likewise.
4068 * config/avr/avr-log.c: Likewise.
4069 * config/avr/avr.c: Likewise.
4070 * config/bfin/bfin.c: Likewise.
4071 * config/c6x/c6x.c: Likewise.
4072 * config/cr16/cr16.c: Likewise.
4073 * config/cris/cris.c: Likewise.
4074 * config/darwin-c.c: Likewise.
4075 * config/darwin.c: Likewise.
4076 * config/default-c.c: Likewise.
4077 * config/epiphany/epiphany.c: Likewise.
4078 * config/epiphany/mode-switch-use.c: Likewise.
4079 * config/epiphany/resolve-sw-modes.c: Likewise.
4080 * config/fr30/fr30.c: Likewise.
4081 * config/frv/frv.c: Likewise.
4082 * config/ft32/ft32.c: Likewise.
4083 * config/glibc-c.c: Likewise.
4084 * config/h8300/h8300.c: Likewise.
4085 * config/i386/i386-c.c: Likewise.
4086 * config/i386/i386.c: Likewise.
4087 * config/i386/msformat-c.c: Likewise.
4088 * config/i386/winnt-cxx.c: Likewise.
4089 * config/i386/winnt-stubs.c: Likewise.
4090 * config/i386/winnt.c: Likewise.
4091 * config/ia64/ia64-c.c: Likewise.
4092 * config/ia64/ia64.c: Likewise.
4093 * config/iq2000/iq2000.c: Likewise.
4094 * config/lm32/lm32.c: Likewise.
4095 * config/m32c/m32c-pragma.c: Likewise.
4096 * config/m32c/m32c.c: Likewise.
4097 * config/m32r/m32r.c: Likewise.
4098 * config/m68k/m68k.c: Likewise.
4099 * config/mcore/mcore.c: Likewise.
4100 * config/mep/mep-pragma.c: Likewise.
4101 * config/mep/mep.c: Likewise.
4102 * config/microblaze/microblaze-c.c: Likewise.
4103 * config/microblaze/microblaze.c: Likewise.
4104 * config/mips/mips.c: Likewise.
4105 * config/mmix/mmix.c: Likewise.
4106 * config/mn10300/mn10300.c: Likewise.
4107 * config/moxie/moxie.c: Likewise.
4108 * config/msp430/msp430-c.c: Likewise.
4109 * config/msp430/msp430.c: Likewise.
4110 * config/nds32/nds32-cost.c: Likewise.
4111 * config/nds32/nds32-fp-as-gp.c: Likewise.
4112 * config/nds32/nds32-intrinsic.c: Likewise.
4113 * config/nds32/nds32-isr.c: Likewise.
4114 * config/nds32/nds32-md-auxiliary.c: Likewise.
4115 * config/nds32/nds32-memory-manipulation.c: Likewise.
4116 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4117 * config/nds32/nds32-predicates.c: Likewise.
4118 * config/nds32/nds32.c: Likewise.
4119 * config/nios2/nios2.c: Likewise.
4120 * config/nvptx/nvptx.c: Likewise.
4121 * config/pa/pa.c: Likewise.
4122 * config/pdp11/pdp11.c: Likewise.
4123 * config/rl78/rl78-c.c: Likewise.
4124 * config/rl78/rl78.c: Likewise.
4125 * config/rs6000/rs6000-c.c: Likewise.
4126 * config/rs6000/rs6000.c: Likewise.
4127 * config/rx/rx.c: Likewise.
4128 * config/s390/s390-c.c: Likewise.
4129 * config/s390/s390.c: Likewise.
4130 * config/sh/sh-c.c: Likewise.
4131 * config/sh/sh-mem.cc: Likewise.
4132 * config/sh/sh.c: Likewise.
4133 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4134 * config/sh/sh_treg_combine.cc: Likewise.
4135 * config/sol2-c.c: Likewise.
4136 * config/sol2-cxx.c: Likewise.
4137 * config/sol2-stubs.c: Likewise.
4138 * config/sol2.c: Likewise.
4139 * config/sparc/sparc-c.c: Likewise.
4140 * config/sparc/sparc.c: Likewise.
4141 * config/spu/spu-c.c: Likewise.
4142 * config/spu/spu.c: Likewise.
4143 * config/stormy16/stormy16.c: Likewise.
4144 * config/tilegx/mul-tables.c: Likewise.
4145 * config/tilegx/tilegx-c.c: Likewise.
4146 * config/tilegx/tilegx.c: Likewise.
4147 * config/tilepro/mul-tables.c: Likewise.
4148 * config/tilepro/tilepro-c.c: Likewise.
4149 * config/tilepro/tilepro.c: Likewise.
4150 * config/v850/v850-c.c: Likewise.
4151 * config/v850/v850.c: Likewise.
4152 * config/vax/vax.c: Likewise.
4153 * config/visium/visium.c: Likewise.
4154 * config/vms/vms-c.c: Likewise.
4155 * config/vms/vms.c: Likewise.
4156 * config/vxworks.c: Likewise.
4157 * config/winnt-c.c: Likewise.
4158 * config/xtensa/xtensa.c: Likewise.
4159 * common/config/bfin/bfin-common.c: Likewise.
4161 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
4163 * tree.h (tree_code_for_canonical_type_merging): New function.
4164 * tree.c (gimple_canonical_types_compatible_p): Use
4165 tree_code_for_canonical_type_merging..
4167 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4171 * doc/tm.texi: Regenerate.
4172 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
4173 * target.def (TARGET_RELAXED_ORDERING): Likewise.
4174 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
4175 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
4176 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
4177 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
4178 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
4179 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
4180 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
4182 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4184 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
4185 register fma steering pass.
4186 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
4187 AARCH64_TUNE_FMA_STEERING.
4189 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
4191 * tree.c (verify_type_variant): Verify that type and variant is
4193 (gimple_canonical_types_compatible_p): Look for main variants.
4195 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4197 * config.gcc (powerpc*-*-*): Add support for a new configure
4198 option --with-advance-toolchain=<xxx> which overrides using the
4199 default header files, libraries and dynamic linker.
4201 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
4202 specs to support the configure --with-advance-toolchain=<xxx>
4204 (INCLUDE_EXTRA_SPEC): Likewise.
4205 (LINK_OS_EXTRA_SPEC32): Likewise.
4206 (LINK_OK_EXTRA_SPEC64): Likewise.
4207 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
4208 (DYNAMIC_LINKER_PREFIX): Likewise.
4209 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
4211 (GLIBC_DYNAMIC_LINKER32): Likewise.
4212 (GLIBC_DYNAMIC_LINKER64): Likewise.
4213 (LINK_OS_LINUX_SPEC32): Likewise.
4214 (LINK_OS_LINUX_SPEC64): Likewise.
4216 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
4217 configuration option.
4219 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
4222 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
4223 to determine current function ABI.
4224 (ix86_function_value_regno_p): Ditto.
4226 2015-06-03 Martin Liska <mliska@suse.cz>
4228 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
4229 * bitmap.h (struct bitmap_usage): Likewise.
4230 * ggc-common.c (struct ggc_usage): Likewise.
4231 * mem-stats.h (struct mem_location): Likewise.
4232 (struct mem_usage): Likewise.
4233 * vec.c (struct vec_usage): Likewise.
4235 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
4237 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
4240 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
4242 * doc/plugins.texi (enum plugin_event): New event.
4243 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
4244 and PLUGIN_FINISH_FUNCTION.
4245 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
4246 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
4248 2015-06-03 Richard Biener <rguenther@suse.de>
4250 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4251 compute GROUP_GAP for the first element.
4252 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
4255 2015-06-03 Nick Clifton <nickc@redhat.com>
4257 * config/rl78/rl78-real.md: Add peepholes to avoid a register
4258 copy when calling a function.
4259 * config/rl78/rl78.c (need_to_save): Do not push the frame
4260 pointer in an interrupt handler prologue if it is never used.
4262 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4264 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
4266 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
4268 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
4269 reference when cloning alias node.
4271 2015-06-03 Martin Liska <mliska@suse.cz>
4273 * alloc-pool.h (struct pool_usage): Correct space padding.
4274 * ggc-page.c (ggc_print_statistics): Align columns in a report.
4275 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
4276 * tree.c (dump_tree_statistics): Align columns in a report.
4278 2015-06-03 Martin Liska <mliska@suse.cz>
4280 * alloc-pool.c (allocate_pool_descriptor): Remove.
4281 (struct pool_output_info): Likewise.
4282 (print_alloc_pool_statistics): Likewise.
4283 (dump_alloc_pool_statistics): Likewise.
4284 * alloc-pool.h (struct pool_usage): New struct.
4285 (pool_allocator::initialize): Change usage of memory statistics
4287 (pool_allocator::release): Likewise.
4288 (pool_allocator::allocate): Likewise.
4289 (pool_allocator::remove): Likewise.
4290 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
4291 for a pool allocator.
4292 * mem-stats.h (struct mem_location): Add new ctor.
4293 (struct mem_usage): Add counter for number of
4295 (mem_alloc_description::register_descriptor): New overload of
4296 * mem-stats.h (mem_location::to_string): New function.
4297 * bitmap.h (struct bitmap_usage): Use this new function.
4298 * ggc-common.c (struct ggc_usage): Likewise.
4301 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
4303 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
4304 of GCC_INSN_FLAGS_H block.
4306 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
4308 * explow.c (plus_constant): Update check after force_const_mem call
4309 to see if the value returned is not a NULL_RTX.
4311 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
4313 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
4314 remove instumentation thunks calling reachable functions.
4315 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
4316 * lto/lto-partition.c (privatize_symbol_name_1): New.
4317 (privatize_symbol_name): Privatize both decl and orig_decl
4318 names for instrumented functions.
4319 * cgraph.c (cgraph_node::verify_node): Add transparent
4320 alias chain check for instrumented node.
4322 2015-06-03 Marek Polacek <polacek@redhat.com>
4326 * tree.c (attribute_value_equal): Handle attribute format.
4327 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
4329 2015-06-03 Richard Biener <rguenther@suse.de>
4331 PR tree-optimization/63916
4332 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4333 Forward-propagate non-invariant addresses by splicing their
4334 reference ops if the result isn't going to be used by PRE.
4335 (vn_reference_lookup_3): Remove pointless assert.
4337 2015-06-03 Richard Biener <rguenther@suse.de>
4339 PR tree-optimization/66375
4340 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
4341 add to the evolution before following SSA edges.
4343 2015-06-03 Bin Cheng <bin.cheng@arm.com>
4345 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
4346 (dump_use, dump_cand, find_induction_variables): Pass new argument
4348 (record_use): Preserve the ssa name information in IV.
4350 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
4352 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
4354 (add_mode_tests): Don't add mode tests if the predicate only
4355 accepts scalar constant integers. Otherwise, allow the mode
4356 of "op" to be VOIDmode if the predicate does accept such integers.
4358 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
4361 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
4362 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
4363 (aarch64_secondary_reload): Likewise
4364 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
4366 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
4369 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
4370 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4373 * cprop.c (try_replace_reg): Check cost of constants before propagating.
4375 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4377 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
4378 provide access to the IBM extended double floating point mode if
4379 long double is IEEE 128-bit floating point.
4380 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
4381 point if long double is the IBM extended double type.
4383 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
4384 enable adding IEEE 128-bit floating point support.
4385 (-mfloat128-software): Likewise.
4386 (-mfloat128-sw): Likewise.
4388 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
4389 128-bit floating point types to occupy any register if
4390 -mlong-double-64. Do not allow use of IFmode/KFmode unless
4391 -mfloat128-software is enabled.
4392 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
4394 (rs6000_option_override_internal): Add -mfloat128-* support.
4395 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
4397 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
4398 and float128 type nodes.
4399 (ieee128_float_type_node): Likewise.
4400 (ibm128_float_type_node): Likewise.
4402 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
4405 * config/aarch64/geniterators.sh: Rewrite in awk.
4407 2015-06-02 Martin Liska <mliska@suse.cz>
4409 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
4410 values to avoid -Wmaybe-uninitialized errors.
4412 2015-06-02 Richard Biener <rguenther@suse.de>
4415 * dwarf2out.c (lookup_context_die): New function.
4416 (resolve_addr): Avoid forcing a full DIE for the
4417 target of a DW_TAG_GNU_call_site during late compilation.
4418 Instead create a stub DIE without a type if we have a
4419 context DIE present.
4421 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
4423 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
4425 2015-06-02 Bin Cheng <bin.cheng@arm.com>
4427 PR tree-optimization/48052
4428 * cfgloop.h (struct control_iv): New.
4429 (struct loop): New field control_ivs.
4430 * tree-ssa-loop-niter.c : Include "stor-layout.h".
4431 (number_of_iterations_lt): Set no_overflow information.
4432 (number_of_iterations_exit): Init control iv in niter struct.
4433 (record_control_iv): New.
4434 (estimate_numbers_of_iterations_loop): Call record_control_iv.
4435 (loop_exits_before_overflow): New. Interface factored out of
4436 scev_probably_wraps_p.
4437 (scev_probably_wraps_p): Factor loop niter related code into
4438 loop_exits_before_overflow.
4439 (free_numbers_of_iterations_estimates_loop): Free control ivs.
4440 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
4442 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
4444 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
4445 the target doesn't belong to the current function.
4447 2015-06-02 Marek Polacek <polacek@redhat.com>
4450 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
4451 get_maxval_strlen does not produce an INTEGER_CST.
4453 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
4455 * config/arc/constraints.md: Use lower-case names in match_code.
4456 * config/mmix/constraints.md: Likewise.
4458 2015-06-02 Richard Biener <rguenther@suse.de>
4460 PR tree-optimization/65961
4461 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
4462 check and clarify dump message.
4463 (vect_build_slp_tree): If all children are built up from scalars
4464 build up the parent from scalars instead.
4465 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
4467 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4470 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
4471 instead of print ... .
4473 2015-06-02 Alan Modra <amodra@gmail.com>
4475 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
4478 2015-06-02 Bin Cheng <bin.cheng@arm.com>
4480 PR tree-optimization/52563
4481 PR tree-optimization/62173
4482 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
4483 (alloc_iv, set_iv): New parameter.
4484 (determine_biv_step): Delete.
4485 (find_bivs): Inline original determine_biv_step. Pass new
4487 (idx_find_step): Use no_overflow information for conversion.
4488 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
4489 resolve_mixers handle folded_casts.
4490 (instantiate_scev_name): Change bool parameter to bool pointer.
4491 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
4492 (instantiate_array_ref, instantiate_scev_not): Ditto.
4493 (instantiate_scev_3, instantiate_scev_2): Ditto.
4494 (instantiate_scev_1, instantiate_scev_r): Ditto.
4495 (instantiate_scev_convert, ): Change parameter. Pass argument
4496 to chrec_convert_aggressive.
4497 (instantiate_scev): Change argument.
4498 (resolve_mixers): New parameter and set it.
4499 (scev_const_prop): New argument.
4500 * tree-scalar-evolution.h (resolve_mixers): New parameter.
4501 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
4503 (chrec_convert): New parameter. Move definition below.
4504 (chrec_convert_aggressive): New parameter and set it. Call
4505 convert_affine_scev.
4506 * tree-chrec.h (chrec_convert): New parameter.
4507 (chrec_convert_aggressive): Ditto.
4509 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
4511 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
4512 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
4513 the LHS of a no-return call if its type has variable size.
4514 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4515 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
4517 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
4519 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
4520 * config.in: Regenerate.
4522 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
4524 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4525 consecutive accesses within outer-loop with force_vectorize
4526 for references with zero step in inner-loop.
4528 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
4530 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
4531 rather than from gcc/build directory.
4533 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
4536 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
4537 for __sync memory models, emit initial loads and final barriers as
4540 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
4543 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
4544 (aarch64_split_atomic_op): Check for __sync memory models, emit
4545 appropriate initial loads and final barriers.
4547 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
4549 * Makefile.in: Fix gcov dependencies that should
4550 not point to a build folder.
4552 2015-06-01 Richard Biener <rguenther@suse.de>
4555 2015-05-29 Richard Biener <rguenther@suse.de>
4557 PR tree-optimization/66314
4558 * tree-ssa-threadupdate.c (create_block_for_threading): Add
4559 parameter that says which loop the new block belongs to.
4560 (ssa_create_duplicates): Blocks duplicated for the threaded
4561 path belong to the loop of the thread destination.
4563 2015-06-01 Martin Liska <mliska@suse.cz>
4565 * sched-deps.c: Include pool-alloc.h before
4566 cselib.h header file is included.
4568 2015-06-01 Richard Biener <rguenther@suse.de>
4570 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
4573 2015-06-01 Martin Liska <mliska@suse.cz>
4575 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
4576 a function local variable.
4578 2015-06-01 Martin Liska <mliska@suse.cz>
4580 * alloc-pool.c (create_alloc_pool): Remove.
4581 (empty_alloc_pool): Likewise.
4582 (free_alloc_pool): Likewise.
4583 (free_alloc_pool_if_empty): Likewise.
4584 (pool_alloc): Likewise.
4585 (pool_free): Likewise.
4586 * alloc-pool.h: Remove old declarations.
4588 2015-06-01 Martin Liska <mliska@suse.cz>
4590 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
4591 (ira_create_object): Likewise.
4592 (ira_create_allocno): Likewise.
4593 (ira_create_live_range): Likewise.
4594 (copy_live_range): Likewise.
4595 (ira_finish_live_range): Likewise.
4596 (ira_free_allocno_costs): Likewise.
4597 (finish_allocno): Likewise.
4598 (finish_allocnos): Likewise.
4599 (initiate_prefs): Likewise.
4600 (ira_create_pref): Likewise.
4601 (finish_pref): Likewise.
4602 (finish_prefs): Likewise.
4603 (initiate_copies): Likewise.
4604 (ira_create_copy): Likewise.
4605 (finish_copy): Likewise.
4606 (finish_copies): Likewise.
4607 (finish_prefs): Likewise.
4609 2015-06-01 Martin Liska <mliska@suse.cz>
4611 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
4612 (allocate_and_init_ipcp_value): Likewise.
4613 (ipcp_lattice::add_value): Likewise.
4614 (merge_agg_lats_step): Likewise.
4615 (ipcp_driver): Likewise.
4616 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
4617 (ipa_free_all_structures_after_iinln): Likewise.
4618 * ipa-prop.h: Likewise.
4620 2015-06-01 Martin Liska <mliska@suse.cz>
4622 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
4624 (set_hint_predicate): Likewise.
4625 (inline_summary_alloc): Likewise.
4626 (reset_inline_edge_summary): Likewise.
4627 (reset_inline_summary): Likewise.
4628 (set_cond_stmt_execution_predicate): Likewise.
4629 (set_switch_stmt_execution_predicate): Likewise.
4630 (compute_bb_predicates): Likewise.
4631 (estimate_function_body_sizes): Likewise.
4632 (inline_free_summary): Likewise.
4634 2015-06-01 Martin Liska <mliska@suse.cz>
4636 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
4637 (ipa_edge_duplication_hook): Likewise.
4638 (ipa_free_all_structures_after_ipa_cp): Likewise.
4639 (ipa_free_all_structures_after_iinln): Likewise.
4641 2015-06-01 Martin Liska <mliska@suse.cz>
4643 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
4644 (ipa_profile_generate_summary): Likewise.
4645 (ipa_profile_read_summary): Likewise.
4646 (ipa_profile): Likewise.
4648 2015-06-01 Martin Liska <mliska@suse.cz>
4650 * tree-ssa-structalias.c (new_var_info): Use new type-based
4652 (new_constraint): Likewise.
4653 (init_alias_vars): Likewise.
4654 (delete_points_to_sets): Likewise.
4656 2015-06-01 Martin Liska <mliska@suse.cz>
4658 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
4659 (free_strinfo): Likewise.
4660 (pass_strlen::execute): Likewise.
4662 2015-06-01 Martin Liska <mliska@suse.cz>
4664 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
4666 (vn_reference_insert_pieces): Likewise.
4667 (vn_phi_insert): Likewise.
4668 (visit_reference_op_call): Likewise.
4669 (copy_phi): Likewise.
4670 (copy_reference): Likewise.
4671 (process_scc): Likewise.
4672 (allocate_vn_table): Likewise.
4673 (free_vn_table): Likewise.
4675 2015-06-01 Martin Liska <mliska@suse.cz>
4677 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
4679 (add_repeat_to_ops_vec): Likewise.
4680 (get_ops): Likewise.
4681 (maybe_optimize_range_tests): Likewise.
4682 (init_reassoc): Likewise.
4683 (fini_reassoc): Likewise.
4685 2015-06-01 Martin Liska <mliska@suse.cz>
4687 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
4689 (bitmap_set_new): Likewise.
4690 (get_or_alloc_expr_for_constant): Likewise.
4691 (get_or_alloc_expr_for): Likewise.
4692 (phi_translate_1): Likewise.
4693 (compute_avail): Likewise.
4694 (init_pre): Likewise.
4695 (fini_pre): Likewise.
4697 2015-06-01 Martin Liska <mliska@suse.cz>
4699 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
4700 (delete_dep_node): Likewise.
4701 (create_deps_list): Likewise.
4702 (free_deps_list): Likewise.
4703 (sched_deps_init): Likewise.
4704 (sched_deps_finish): Likewise.
4706 2015-06-01 Martin Liska <mliska@suse.cz>
4708 * regcprop.c (free_debug_insn_changes): Use new type-based
4710 (replace_oldest_value_reg): Likewise.
4711 (pass_cprop_hardreg::execute): Likewise.
4713 2015-06-01 Martin Liska <mliska@suse.cz>
4715 * ira-build.c (initiate_cost_vectors): Use new type-based
4717 (ira_allocate_cost_vector): Likewise.
4718 (ira_free_cost_vector): Likewise.
4719 (finish_cost_vectors): Likewise.
4721 2015-06-01 Martin Liska <mliska@suse.cz>
4723 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
4725 (free_sched_pools): Likewise.
4726 * sel-sched-ir.h (_list_alloc): Likewise.
4727 (_list_remove): Likewise.
4729 2015-06-01 Martin Liska <mliska@suse.cz>
4731 * stmt.c (add_case_node): Use new type-based pool allocator.
4732 (expand_case): Likewise.
4733 (expand_sjlj_dispatch_table): Likewise.
4735 2015-06-01 Martin Liska <mliska@suse.cz>
4737 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
4738 (free_bb): Likewise.
4739 (pass_cse_reciprocals::execute): Likewise.
4741 2015-06-01 Martin Liska <mliska@suse.cz>
4743 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
4744 (sra_deinitialize) Likewise.
4745 (create_access_1) Likewise.
4746 (build_accesses_from_assign) Likewise.
4747 (create_artificial_child_access) Likewise.
4749 2015-06-01 Martin Liska <mliska@suse.cz>
4751 * dse.c (get_group_info):Use new type-based pool allocator.
4752 (dse_step0) Likewise.
4753 (free_store_info) Likewise.
4754 (delete_dead_store_insn) Likewise.
4755 (free_read_records) Likewise.
4756 (record_store) Likewise.
4757 (replace_read) Likewise.
4758 (check_mem_read_rtx) Likewise.
4759 (scan_insn) Likewise.
4760 (dse_step1) Likewise.
4761 (dse_step7) Likewise.
4763 2015-06-01 Martin Liska <mliska@suse.cz>
4765 * df-scan.c (struct df_scan_problem_data):Use new type-based
4767 (df_scan_free_internal) Likewise.
4768 (df_scan_alloc) Likewise.
4769 (df_grow_reg_info) Likewise.
4770 (df_free_ref) Likewise.
4771 (df_insn_create_insn_record) Likewise.
4772 (df_mw_hardreg_chain_delete) Likewise.
4773 (df_insn_info_delete) Likewise.
4774 (df_free_collection_rec) Likewise.
4775 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
4776 (df_sort_and_compress_mws) Likewise.
4777 (df_ref_create_structure) Likewise.
4778 (df_ref_record) Likewise.
4780 2015-06-01 Martin Liska <mliska@suse.cz>
4782 * df-problems.c (df_chain_create):Use new type-based pool allocator.
4783 (df_chain_unlink_1) Likewise.
4784 (df_chain_unlink) Likewise.
4785 (df_chain_remove_problem) Likewise.
4786 (df_chain_alloc) Likewise.
4787 (df_chain_free) Likewise.
4788 * df.h (struct dataflow) Likewise.
4790 2015-06-01 Martin Liska <mliska@suse.cz>
4792 * cselib.c (new_elt_list):Use new type-based pool allocator.
4793 (new_elt_loc_list) Likewise.
4794 (unchain_one_elt_list) Likewise.
4795 (unchain_one_elt_loc_list) Likewise.
4796 (unchain_one_value) Likewise.
4797 (new_cselib_val) Likewise.
4798 (cselib_init) Likewise.
4799 (cselib_finish) Likewise.
4801 2015-06-01 Martin Liska <mliska@suse.cz>
4803 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
4804 (sh_reorg) Likewise.
4806 2015-06-01 Martin Liska <mliska@suse.cz>
4808 * cfg.c (initialize_original_copy_tables):Use new type-based
4810 (free_original_copy_tables) Likewise.
4811 (copy_original_table_clear) Likewise.
4812 (copy_original_table_set) Likewise.
4814 2015-06-01 Martin Liska <mliska@suse.cz>
4816 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
4818 (asan_mem_ref_new) Likewise.
4819 (free_mem_ref_resources) Likewise.
4821 2015-06-01 Martin Liska <mliska@suse.cz>
4823 * var-tracking.c (variable_htab_free):Use new type-based
4825 (attrs_list_clear) Likewise.
4826 (attrs_list_insert) Likewise.
4827 (attrs_list_copy) Likewise.
4828 (shared_hash_unshare) Likewise.
4829 (shared_hash_destroy) Likewise.
4830 (unshare_variable) Likewise.
4831 (var_reg_delete_and_set) Likewise.
4832 (var_reg_delete) Likewise.
4833 (var_regno_delete) Likewise.
4834 (drop_overlapping_mem_locs) Likewise.
4835 (variable_union) Likewise.
4836 (insert_into_intersection) Likewise.
4837 (canonicalize_values_star) Likewise.
4838 (variable_merge_over_cur) Likewise.
4839 (dataflow_set_merge) Likewise.
4840 (remove_duplicate_values) Likewise.
4841 (variable_post_merge_new_vals) Likewise.
4842 (dataflow_set_preserve_mem_locs) Likewise.
4843 (dataflow_set_remove_mem_locs) Likewise.
4844 (variable_from_dropped) Likewise.
4845 (variable_was_changed) Likewise.
4846 (set_slot_part) Likewise.
4847 (clobber_slot_part) Likewise.
4848 (delete_slot_part) Likewise.
4849 (loc_exp_insert_dep) Likewise.
4850 (notify_dependents_of_changed_value) Likewise.
4851 (emit_notes_for_differences_1) Likewise.
4852 (vt_emit_notes) Likewise.
4853 (vt_initialize) Likewise.
4854 (vt_finalize) Likewise.
4856 2015-06-01 Martin Liska <mliska@suse.cz>
4858 * ira-color.c (init_update_cost_records):Use new type-based
4860 (get_update_cost_record) Likewise.
4861 (free_update_cost_record_list) Likewise.
4862 (finish_update_cost_records) Likewise.
4863 (initiate_cost_update) Likewise.
4865 2015-06-01 Martin Liska <mliska@suse.cz>
4867 * lra.c (init_insn_regs): Use new type-based pool allocator.
4868 (new_insn_reg) Likewise.
4869 (free_insn_reg) Likewise.
4870 (free_insn_regs) Likewise.
4871 (finish_insn_regs) Likewise.
4872 (init_insn_recog_data) Likewise.
4873 (init_reg_info) Likewise.
4874 (finish_reg_info) Likewise.
4875 (lra_free_copies) Likewise.
4876 (lra_create_copy) Likewise.
4877 (invalidate_insn_data_regno_info) Likewise.
4879 2015-06-01 Martin Liska <mliska@suse.cz>
4881 * lra-lives.c (free_live_range): Use new type-based pool allocator.
4882 (free_live_range_list) Likewise.
4883 (create_live_range) Likewise.
4884 (copy_live_range) Likewise.
4885 (lra_merge_live_ranges) Likewise.
4886 (remove_some_program_points_and_update_live_ranges) Likewise.
4887 (lra_live_ranges_init) Likewise.
4888 (lra_live_ranges_finish) Likewise.
4890 2015-06-01 Martin Liska <mliska@suse.cz>
4892 * et-forest.c (et_new_occ): Use new type-based pool allocator.
4893 (et_new_tree): Likewise.
4894 (et_free_tree): Likewise.
4895 (et_free_tree_force): Likewise.
4896 (et_free_pools): Likewise.
4897 (et_split): Likewise.
4899 2015-06-01 Martin Liska <mliska@suse.cz>
4901 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4903 * alloc-pool.h (pool_allocator::pool_allocator): New function.
4904 (pool_allocator::release): Likewise.
4905 (inline pool_allocator::release_if_empty): Likewise.
4906 (inline pool_allocator::~pool_allocator): Likewise.
4907 (pool_allocator::allocate): Likewise.
4908 (pool_allocator::remove): Likewise.
4910 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4912 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4915 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4917 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4919 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4920 (arm_macro_fusion_p): Likewise.
4921 (arm_macro_fusion_pair_p): Likewise.
4923 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4925 * config/aarch64/aarch64-protos.h (tune_params): Rename
4926 fuseable_ops to fusible_ops.
4927 * config/aarch64/aarch64.c (generic_tunings): Rename
4928 fuseable_ops to fusible_ops.
4929 (cortexa53_tunings): Likewise.
4930 (cortexa57_tunings): Likewise.
4931 (thunderx_tunings): Likewise.
4932 (xgene1_tunings): Likewise.
4933 (aarch64_macro_fusion_p): Likewise.
4934 (aarch64_macro_fusion_pair_p): Likewise.
4936 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
4938 * config/s390/driver-native.c: New file.
4939 * config/s390/x-native: New file.
4940 * config.host: Add new files for s390.
4941 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4943 * config.gcc: Likewise.
4944 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4945 * config/s390/s390-opts.h (enum processor_type): Ditto.
4946 * config/s390/s390.c (s390_option_override): Catch unhandled
4949 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
4952 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4953 redirection for instrumented calls.
4954 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4955 (append_compiler_options): Append -fcheck-pointer-bounds.
4956 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4957 (chkp_redirect_edge): New.
4958 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4959 (chkp_redirect_edge): New.
4961 2015-06-01 Richard Biener <rguenther@suse.de>
4963 PR tree-optimization/66280
4964 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4967 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4969 * config/aarch64/aarch64.md
4970 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4973 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
4975 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4976 Remove obsolete kludge.
4978 2015-06-01 Richard Biener <rguenther@suse.de>
4980 * tree-ssa-reassoc.c (get_rank): Simplify.
4982 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
4984 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4985 * configure: Regenerated.
4987 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
4989 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
4990 issue (add space between string literal and macro).
4991 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
4993 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
4995 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
4996 implict or explicit -fPIE or -fpie.
4998 2015-05-30 Mike Frysinger <vapier@gentoo.org>
5000 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
5002 2015-05-28 DJ Delorie <dj@redhat.com>
5004 * expmed.c (extract_bit_field_1): Avoid clobbering a
5005 yet-to-be-used base/index register.
5007 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
5009 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
5010 (alias_stats): Add num_universal.
5011 (alias_set_subset_of): Special case pointers; be ready for NULL
5013 (alias_sets_conflict_p): Special case pointers; be ready for NULL
5015 (init_alias_set_entry): Break out from ...
5016 (record_alias_subset): ... here; propagate new fields;
5017 allocate children only when really needed.
5018 (get_alias_set): Do less generous pointer globbing.
5019 (dump_alias_stats_in_alias_c): Update statistics.
5021 2015-05-30 Alan Modra <amodra@gmail.com>
5023 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
5024 correct block for use of r12.
5025 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
5027 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5030 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
5033 2015-05-29 Jakub Jelinek <jakub@redhat.com>
5035 PR tree-optimization/66142
5036 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
5037 virtual phis that feed themselves.
5039 2015-05-29 Richard Biener <rguenther@suse.de>
5041 PR tree-optimization/66314
5042 * tree-ssa-threadupdate.c (create_block_for_threading): Add
5043 parameter that says which loop the new block belongs to.
5044 (ssa_create_duplicates): Blocks duplicated for the threaded
5045 path belong to the loop of the thread destination.
5047 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5049 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
5050 to cleanup-saved-temps.
5051 * doc/sourcebuild.texi (Clean up generated test files): Expand
5053 (dg-keep-saved-temps): Document new proc.
5054 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
5055 cleanup-saved-temps): Remove.
5057 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
5059 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
5061 * configure: Regenerate.
5063 2015-05-28 Mike Frysinger <vapier@gentoo.org>
5065 * config/nios2/linux.h (CPP_SPEC): Define.
5067 2015-05-28 Mike Frysinger <vapier@gentoo.org>
5069 * config/microblaze/linux.h (CPP_SPEC): Define.
5071 2015-05-28 Mike Frysinger <vapier@gentoo.org>
5073 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
5074 -pthread is specified.
5076 2015-05-28 Richard Biener <rguenther@suse.de>
5078 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
5079 (vect_fixup_scalar_cycles_with_patterns): Likewise.
5080 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
5081 after pattern recog.
5082 (vect_create_epilog_for_reduction): Properly handle reductions
5084 (vectorizable_reduction): Likewise.
5085 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
5087 (vect_get_constant_vectors): Create the correct number of
5088 initial values for reductions.
5089 (vect_schedule_slp_instance): Handle reduction chains that are
5090 type changing properly.
5091 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
5093 2015-05-28 Richard Biener <rguenther@suse.de>
5095 PR tree-optimization/66142
5096 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
5097 values better in memcpy destination handling. Handle non-aliasing
5100 2015-05-28 Lawrence Velázquez <vq@larryv.me>
5103 * config/darwin-c.c (version_components): New global enum.
5104 (parse_version, version_as_legacy_macro)
5105 (version_as_modern_macro, macosx_version_as_macro): New functions.
5106 (version_as_macro): Remove.
5107 (darwin_cpp_builtins): Use new function.
5109 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
5111 * builtins.c (expand_builtin_acc_on_device): Mark parameters
5112 with ATTRIBUTE_UNUSED.
5114 2015-05-28 Julian Brown <julian@codesourcery.com>
5118 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
5119 sequence for !ACCEL_COMPILER.
5121 2015-05-28 Nick Clifton <nickc@redhat.com>
5123 * config/rx/rx.c (push_regs): New function. Extracts code from...
5124 (rx_expand_prologue): ... here. Use push_regs to push even small
5126 (pop_regs): New function.
5127 (rx_expand_epilogue): Use pop_regs to pop even small spans of
5130 2015-05-28 Richard Biener <rguenther@suse.de>
5132 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
5134 (SLP_INSTANCE_BODY_COST_VEC): Remove.
5135 (vect_update_slp_costs_according_to_vf): Likewise.
5136 (vect_slp_analyze_operations): Update prototype.
5137 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
5138 vect_update_slp_costs_according_to_vf, adjust.
5139 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
5140 (vect_analyze_slp_cost_1): Likewise.
5141 (vect_analyze_slp_cost): Likewise. Properly deal with
5142 widening reduction ops. Commit body costs.
5143 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
5144 cost for loops from here.
5145 (vect_slp_analyze_operations): But do it from here when
5146 the vectorization factor is known and stmts are analyzed.
5147 (vect_bb_vectorization_profitable_p): Simplify.
5148 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
5149 (vect_update_slp_costs_according_to_vf): Remove.
5151 2015-05-27 Magnus Granberg <zorry@gentoo.org>
5152 H.J. Lu <hongjiu.lu@intel.com>
5154 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
5155 (BUILD_CFLAGS): Likewise.
5156 (BUILD_CXXFLAGS): Likewise.
5157 (LINKER): Add @NO_PIE_FLAG@.
5158 (BUILD_LDFLAGS): Likewise.
5159 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
5160 --enable-default-pie.
5161 * common.opt (fPIE): Initialize to -1.
5163 (no-pie): New option.
5164 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
5165 * configure.ac: Add --enable-default-pie.
5166 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
5167 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
5168 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
5169 * gcc.c (NO_PIE_SPEC): New.
5170 (PIE_SPEC): Likewise.
5171 (NO_FPIE1_SPEC): Likewise.
5172 (FPIE1_SPEC): Likewise.
5173 (NO_FPIE2_SPEC): Likewise.
5174 (FPIE2_SPEC): Likewise.
5175 (NO_FPIE2_SPEC): Likewise.
5176 (FPIE_SPEC): Likewise.
5177 (NO_FPIE_SPEC): Likewise.
5178 (NO_FPIC1_SPEC): Likewise.
5179 (FPIC1_SPEC): Likewise.
5180 (NO_FPIC2_SPEC): Likewise.
5181 (FPIC2_SPEC): Likewise.
5182 (NO_FPIC2_SPEC): Likewise.
5183 (FPIC_SPEC): Likewise.
5184 (NO_FPIC_SPEC): Likewise.
5185 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
5186 (FPIE1_OR_FPIC1_SPEC): Likewise.
5187 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
5188 (FPIE2_OR_FPIC2_SPEC): Likewise.
5189 (NO_FPIE_AND_FPIC_SPEC): Likewise.
5190 (FPIE_OR_FPIC_SPEC): Likewise.
5191 (LD_PIE_SPEC): Likewise.
5192 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
5193 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
5194 * config/darwin.h (PIE_SPEC): Renamed to ...
5195 (DARWIN_PIE_SPEC): This.
5196 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
5197 * config/darwin9.h (PIE_SPEC): Renamed to ...
5198 (DARWIN_PIE_SPEC): This.
5199 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
5200 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5201 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
5202 FPIE2_OR_FPIC2_SPEC.
5203 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5204 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5205 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
5206 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5207 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5208 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5209 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5210 * config/m32r/m32r.h (ASM_SPEC): Likewise.
5211 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
5212 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5213 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
5214 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
5215 * config/sparc/linux.h (ASM_SPEC): Likewise.
5216 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5217 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5218 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5219 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5220 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5221 * config/sparc/sparc.h (ASM_SPEC): Likewise.
5222 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5223 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
5224 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
5225 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
5226 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
5227 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
5228 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
5229 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
5230 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
5231 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
5232 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
5233 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
5234 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5235 * config/vax/linux.h (ASM_SPEC): Likewise.
5236 * doc/install.texi: Document --enable-default-pie.
5237 * doc/invoke.texi: Document -no-pie.
5238 * config.in: Regenerated.
5239 * configure: Likewise.
5241 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
5243 PR rtl-optimization/66168
5244 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
5245 can_move_invariant_reg.
5247 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
5250 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
5251 REG_EQUAL note when doing insert.
5253 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
5254 instead of "%d" for 'o' operand.
5256 2015-05-27 Nathan Sidwell <nathan@acm.org>
5259 * tree.c (build_pointer_type_for_mode): Canonical type does not
5260 inherit can_alias_all.
5261 (build_reference_type_for_mode): Likewise.
5263 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
5265 * expr.h (array_at_struct_end_p): Move to...
5266 (array_ref_element_size): Likewise.
5267 (component_ref_field_offset): Likewise.
5268 * tree.h (array_ref_element_size): ...here.
5269 (array_at_struct_end_p): Likewise.
5270 (component_ref_field_offset): Likewise.
5271 * expr.c (array_ref_element_size): Move to...
5272 (array_ref_low_bound): Likewise.
5273 (array_at_struct_end_p): Likewise.
5274 (array_ref_up_bound): Likewise.
5275 (component_ref_field_offset): Likewise.
5276 * tree.c (array_ref_element_size): ...here.
5277 (array_ref_low_bound): Likewise.
5278 (array_ref_up_bound): Likewise.
5279 (array_at_struct_end_p): Likewise.
5280 (component_ref_field_offset): Likewise.
5282 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
5283 Szabolcs Nagy <szabolcs.nagy@arm.com>
5285 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
5287 2015-05-27 Jason Merrill <jason@redhat.com>
5290 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
5291 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
5292 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
5294 2015-05-22 Aditya Kumar <hiraditya@msn.com>
5296 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
5299 * statistics.c (statistics_fini_pass): Print pass name.
5301 2015-05-27 Richard Biener <rguenther@suse.de>
5303 PR tree-optimization/66272
5305 2014-08-15 Richard Biener <rguenther@suse.de>
5307 PR tree-optimization/62031
5308 * tree-data-ref.c (dr_analyze_indices): Do not set
5309 DR_UNCONSTRAINED_BASE.
5310 (dr_may_alias_p): All indirect accesses have to go the
5311 formerly DR_UNCONSTRAINED_BASE path.
5312 * tree-data-ref.h (struct indices): Remove
5313 unconstrained_base member.
5314 (DR_UNCONSTRAINED_BASE): Remove.
5316 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
5318 * dwarf2out.c: Remove block_map.
5319 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
5320 (gen_lexical_block_die): Same.
5321 (dwarf2out_function_decl): Remove block_map use.
5322 (dwarf2out_c_finalize): Same.
5323 * tree-core.h (struct tree_block): Add die field.
5324 * tree.h (BLOCK_DIE): New.
5326 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5329 * expr.c (memory_load_overlap): New function.
5330 (emit_push_insn): When pushing partial args to the stack would
5331 clobber the register part load the overlapping part into a pseudo
5332 and put it into the hard reg after pushing. Change return type
5333 to bool. Add bool argument.
5334 * expr.h (emit_push_insn): Change return type to bool.
5336 * calls.c (expand_call): Cancel sibcall optimization when encountering
5337 partial argument on targets with ARGS_GROW_DOWNWARD and
5338 !STACK_GROWS_DOWNWARD.
5339 (emit_library_call_value_1): Update callsite of emit_push_insn.
5340 (store_one_arg): Likewise.
5342 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
5344 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
5346 2015-05-27 Martin Liska <mliska@suse.cz>
5348 * Makefile.in: Add additional dependencies related to memory report
5350 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
5351 * bitmap.c (struct bitmap_descriptor_d): Remove.
5352 (struct loc): Likewise.
5353 (struct bitmap_desc_hasher): Likewise.
5354 (bitmap_desc_hasher::hash): Likewise.
5355 (bitmap_desc_hasher::equal): Likewise.
5356 (get_bitmap_descriptor): Likewise.
5357 (bitmap_register): User new memory descriptor API.
5358 (register_overhead): Likewise.
5359 (bitmap_find_bit): Register nsearches and search_iter statistics.
5360 (struct bitmap_output_info): Remove.
5361 (print_statistics): Likewise.
5362 (dump_bitmap_statistics): Use new memory descriptor.
5363 * bitmap.h (struct bitmap_usage): New class.
5364 * genmatch.c: Extend header file inclusion.
5365 * genpreds.c: Likewise.
5366 * ggc-common.c (struct ggc_usage): New class.
5367 (struct ggc_loc_desc_hasher): Remove.
5368 (ggc_loc_desc_hasher::hash): Likewise.
5369 (ggc_loc_desc_hasher::equal): Likewise.
5370 (struct ggc_ptr_hash_entry): Likewise.
5371 (struct ptr_hash_hasher): Likewise.
5372 (ptr_hash_hasher::hash): Likewise.
5373 (ptr_hash_hasher::equal): Likewise.
5374 (make_loc_descriptor): Likewise.
5375 (ggc_prune_ptr): Likewise.
5376 (dump_ggc_loc_statistics): Use new memory descriptor.
5377 (ggc_record_overhead): Likewise.
5378 (ggc_free_overhead): Likewise.
5379 (final_cmp_statistic): Remove.
5380 (cmp_statistic): Likewise.
5381 (ggc_add_statistics): Liekwise.
5382 (ggc_prune_overhead_list): Likewise.
5383 * hash-map-traits.h: New file.
5384 * hash-map.h (struct default_hashmap_traits): Move the traits to a
5385 separate header file.
5386 * hash-set.h: Pass memory statistics info to ctor.
5387 * hash-table.c (void dump_hash_table_loc_statistics): New function.
5388 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
5389 (hash_table::~hash_table): Register memory release operation.
5390 (hash_table::alloc_entries): Handle memory allocation operation.
5391 (hash_table::expand): Likewise.
5392 * inchash.c (iterative_hash_hashval_t): Move implementation to header
5394 (iterative_hash_host_wide_int): Likewise.
5395 * inchash.h (class hash): Likewise.
5396 * mem-stats-traits.h: New file.
5397 * mem-stats.h: New file.
5398 (mem_location): Add new class.
5399 (mem_usage): Likewise.
5400 (mem_alloc_description): Likewise.
5401 * sese.c: Add new header file inclusision.
5402 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
5404 * tree-sra.c: Add new header file inclusision.
5405 * vec.c (struct vec_descriptor): Remove.
5406 (hash_descriptor): Likewise.
5407 (struct vec_usage): Likewise.
5408 (struct ptr_hash_entry): Likewise.
5409 (hash_ptr): Likewise.
5411 (vec_prefix::register_overhead): Use new memory descriptor API.
5412 (vec_prefix::release_overhead): Likewise.
5413 (add_statistics): Remove.
5414 (dump_vec_loc_statistics): Use new memory descriptor API.
5415 * vec.h (struct vec_prefix): Likewise.
5416 (va_heap::reserve): Likewise.
5417 (va_heap::release): Likewise.
5418 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
5420 2015-05-27 Richard Biener <rguenther@suse.de>
5422 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
5423 earlier and remove ??? comment.
5424 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
5425 and got called from loop analysis bail out. Always pass the SLP
5426 node to the vectorizable_* functions.
5427 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
5428 the premature SLP check here.
5429 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
5431 (vect_detect_hybrid_slp_1): Likewise.
5433 2015-05-26 Jeff Law <law@redhat.com>
5435 * combine.c (find_split_point): Verify that the shift count is a
5436 constant when choosing (plus (ashift ...)) as a split point.
5438 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
5439 No functional changes.
5441 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
5443 * ipa-polymorphic-call.c
5444 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
5445 case when call target is already known.
5447 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
5450 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
5451 take into account the case that operands[1] and operands[2]
5452 are the same register.
5454 2015-05-26 Michael Matz <matz@suse.de>
5458 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
5460 (vect_create_vectorized_demotion_stmts): Always set
5461 STMT_VINFO_VEC_STMT, also with SLP.
5462 (vectorizable_store): Handle strided group stores.
5464 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5467 * config/aarch64/aarch64.md
5468 (*adds_shift_imm_<mode>): New pattern.
5469 (*subs_shift_imm_<mode>): Likewise.
5470 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5471 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5472 (*add_uxt<mode>_shift2): Likewise.
5473 (*add_uxtsi_shift2_uxtw): Likewise.
5474 (*sub_uxt<mode>_shift2): Likewise.
5475 (*sub_uxtsi_shift2_uxtw): Likewise.
5477 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
5479 * config/rs6000/constraints.md (Y, U): Use match_test.
5481 2015-05-26 Christian Bruel <christian.bruel@st.com>
5484 * config/arm/arm.c (arm_option_check_internal)
5485 (arm_option_params_internal): Check opts->target_flags to set macros.
5486 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5487 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
5488 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5489 (builtin_define): Replaced with def_or_undef_macro.
5490 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5491 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
5492 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5493 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
5494 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
5495 (TARGET_ARM_FEATURE_LDREX_P)
5496 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
5497 * config/arm/arm-c.c (def_or_undef_macro): New function.
5498 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
5500 2015-05-26 Christian Bruel <christian.bruel@st.com>
5502 * c-common.h (builtin_define_with_int_value)
5503 (builtin_define_type_sizeof): Declare.
5504 * c-cppbuiltin.c (builtin_define_with_int_value)
5505 (builtin_define_type_sizeof): Externalize.
5506 (builtin_define_std): Cleanup declaration.
5507 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
5508 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
5509 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
5510 (builtin_define, builtin_assert): New macros.
5512 2015-05-26 Richard Biener <rguenther@suse.de>
5514 PR tree-optimization/66142
5515 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
5516 MEM_REFs for the same base address.
5518 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5521 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
5523 2015-05-26 Jason Merrill <jason@redhat.com>
5525 * configure.ac: Set CXXFLAGS for ISL test.
5526 * configure: Regenerate.
5528 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
5529 strstr and basename.
5530 * configure: Regenerate.
5532 2015-05-26 Richard Biener <rguenther@suse.de>
5534 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
5535 X % C -> X & (C - 1) for C being a power-of two to ...
5536 * match.pd: ... patterns.
5538 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
5540 * match.pd (swapped_tcc_comparison): New operator list.
5541 (-A CMP -B): New simplification.
5542 * fold-const.c (fold_comparison): Remove corresponding code.
5544 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
5546 * caller-save.c (init_caller_save): Base temporary register numbers
5547 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
5548 * cfgloopanal.c (init_set_costs): Likewise.
5549 * dojump.c (prefer_and_bit_test): Likewise.
5550 * expr.c (init_expr_target): Likewise.
5551 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5552 * lower-subreg.c (init_lower_subreg): Likewise.
5553 * postreload.c (reload_cse_regs_1): Likewise.
5555 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
5557 * gensupport.h (compute_test_codes): Declare.
5558 * gensupport.c (compute_predicate_codes): Rename to...
5559 (compute_test_codes): ...this. Generalize error message.
5560 (process_define_predicate): Update accordingly.
5561 * genpreds.c (compute_maybe_allows): Delete.
5562 (add_constraint): Use compute_test_codes to determine whether
5563 something can accept a SUBREG, REG or MEM.
5565 2015-05-26 Torvald Riegel <triegel@redhat.com>
5567 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
5568 'memory model' to align with C++11; fix description of memory orders;
5571 2015-05-26 Richard Biener <rguenther@suse.de>
5573 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
5574 (vect_analyze_loop_operations): ... here. Remove slp parameter,
5575 detect whether we apply SLP. Remove call to
5576 vect_update_slp_costs_according_to_vf.
5577 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
5578 vect_update_slp_costs_according_to_vf from here. Dispatch
5579 to vect_slp_analyze_operations to analyze SLP stmts.
5580 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
5581 unused bb_vec_info parameter, adjust assert.
5582 (vect_slp_analyze_operations): Pass in the slp instance tree
5583 instead of bb_vec_info.
5584 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
5585 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
5587 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
5589 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
5590 Q_REGS. Expand comment.
5591 (REG_CLASS_NAMES): Ditto.
5592 (REG_CLASS_CONTENTS): Ditto.
5594 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
5597 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
5598 when LEGACY_INT_REGNO_P is processed.
5600 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
5602 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
5604 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5606 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
5607 register if not marked dead/unused, before return.
5609 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
5612 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
5613 is set; check for assembler name at LTO time.
5614 (type_in_anonymous_namespace): Remove hacks, check that all
5615 anonymous types are called "<anon>"
5616 (odr_type_p): Simplify; add check for "<anon>"
5617 (odr_subtypes_equivalent): Add odr_type_p check.
5618 * tree.c (need_assembler_name_p): Even anonymous namespace needs
5621 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
5623 * ipa-utils.h (method_class_type): Remove.
5624 * cgraphunit.c (walk_polymorphic_call_targets): Use
5625 TYPE_METHOD_BASETYPE.
5626 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
5627 on main variants only.
5628 (method_class_type): Remove.
5629 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
5630 (build_type_inheritance_graph): Likewise.
5631 * ipa-icf.c (sem_function::equals_wpa): Likewise.
5632 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
5633 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
5635 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
5637 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
5638 is_typedef_decl, typedef_variant_p): Constify.
5639 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
5640 is_typedef_decl, typedef_variant_p): Constify.
5642 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5644 * defaults.h (gen_tablejump): New function.
5645 (HAVE_tablejump): Add default value.
5649 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5651 * defaults.h (gen_store_multiple): New function.
5652 (HAVE_store_multiple): Add default value.
5653 * expr.c (move_block_from_reg): Adjust.
5655 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5657 * defaults.h (gen_load_multiple): New function.
5658 (HAVE_load_multiple): Add default value.
5659 * expr.c (move_block_to_reg): Adjust.
5661 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5663 * defaults.h (gen_mem_signal_fence): New function.
5664 (HAVE_mem_signal_fence): Add default value.
5667 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5669 * defaults.h (gen_memory_barrier): New function.
5670 (HAVE_memory_barrier): Add default value.
5673 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5675 * defaults.h (gen_mem_thread_fence): New function.
5676 (HAVE_mem_thread_fence): Add default definition.
5679 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5681 * combine.c (find_split_point): Check the value of HAVE_lo_sum
5682 instead of if it is defined.
5683 (combine_simplify_rtx): Likewise.
5684 * lra-constraints.c (process_address_1): Likewise.
5685 * config/darwin.c: Adjust.
5686 * genconfig.c (main): Always define HAVE_lo_sum.
5688 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5690 * genmatch.c (parser::parse_operation): Reject expanding
5691 operator-list inside 'for'.
5693 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5695 * genmatch.c (parser::parse_for): Reject iterator if used as
5698 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5700 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
5701 after end of id-list.
5703 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
5705 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
5706 we do not try to compute canonical type for type that does not need
5708 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
5710 * tree.h (type_with_alias_set_p): New.
5712 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
5714 * tree.c (gimple_canonical_types_compatible_p): Do not compare
5715 function attributes.
5716 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
5718 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
5720 * Makefile.in (check_gcc_parallelize): Delete.
5721 (lang_checks_parallelized): Update comment.
5723 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
5725 PR rtl-optimization/66237
5726 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
5727 location of an "as_a" cast.
5729 2015-05-22 Jeff Law <law@redhat.com>
5731 * config/pa/pa.md (non-canonical shift-add insns): Remove.
5732 (peepholes with non-canonical RTL sources): Remove.
5733 (peepholes for indexed stores of FP regs in integer modes): Match and
5734 generate canonical RTL.
5736 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
5738 PR tree-optimization/63387
5739 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
5740 ((x ord x) & (y ord y) -> (x ord y),
5741 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
5742 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
5743 vectors like scalars.
5745 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
5747 * convert.c (convert_to_integer, convert_to_vector): Include the
5748 types in the error message.
5750 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
5752 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
5755 2015-05-22 Jeff Law <law@redhat.com>
5757 * config/pa/pa.md (integer_indexed_store splitters): Use
5758 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
5759 insns -- adjusting the constant 2nd operand accordingly.
5761 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
5762 (plus (ashift X log2) Y) if it is a split point.
5764 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
5765 out of hppa_legitimize_address to handle both forms of a multiply
5767 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
5768 Always generate the ASHIFT variant as the result is not directly
5769 used in a MEM. Update comments and refactor slightly to improve
5772 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5775 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
5776 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
5777 (aarch64_composite_type_p): Return false if given type and mode are
5780 2015-05-22 Richard Biener <rguenther@suse.de>
5782 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
5784 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
5785 patterns when determining whether SLP is pure.
5786 (vect_is_slp_reduction): Remove check for pattern stmts.
5787 (vect_is_simple_reduction_1): Remove dead code.
5788 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
5789 (vect_get_and_check_slp_defs): Pass in the stmt number.
5790 Allow the first def in a reduction to be not a pattern stmt when
5791 the rest of the stmts def are patterns.
5792 (vect_build_slp_tree_1): Allow tcc_expression codes like
5793 SAD_EXPR and DOT_PROD_EXPR.
5794 (vect_build_slp_tree): Adjust.
5795 (vect_analyze_slp): Refactor and move BB vect error message ...
5796 (vect_slp_analyze_bb_1): ... here.
5798 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
5800 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
5801 for CSWTCH temporary.
5803 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5805 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
5806 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
5809 2015-05-22 Richard Biener <rguenther@suse.de>
5811 PR tree-optimization/66251
5812 * tree-vect-stmts.c (vectorizable_conversion): Properly
5813 set STMT_VINFO_VEC_STMT even for the SLP case.
5815 2015-05-22 Marek Polacek <polacek@redhat.com>
5817 * doc/extend.texi: Use @pxref instead of @xref.
5819 2015-05-22 hiraditya <hiraditya@msn.com>
5821 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
5824 2015-05-22 Richard Biener <rguenther@suse.de>
5826 PR tree-optimization/65701
5827 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5828 Move peeling cost models into one place. Peel for alignment
5829 for single loads only if an aligned load is cheaper than
5832 2015-05-22 Marek Polacek <polacek@redhat.com>
5835 * doc/extend.texi (Enumerator Attributes): New section.
5836 Document syntax of enumerator attributes.
5838 2015-05-22 Richard Biener <rguenther@suse.de>
5840 * tree-vect-loop.c (get_reduction_op): New function.
5841 (vect_model_reduction_cost): Use it, add reduc_index parameter.
5842 Make ready for BB reductions.
5843 (vect_create_epilog_for_reduction): Use get_reduction_op.
5844 (vectorizable_reduction): Init reduc_index to a valid value.
5845 Adjust vect_model_reduction_cost call.
5846 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5847 operand for reduction defaults. Add SAD_EXPR support.
5848 Assert we have a neutral op for SLP reductions.
5849 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5850 walking pattern stmt ops only recurse to SSA names.
5852 2015-05-22 Richard Biener <rguenther@suse.de>
5854 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5855 assert with guard, remove check on detected reduction.
5856 (vect_recog_sad_pattern): Likewise.
5857 (vect_recog_widen_sum_pattern): Likewise.
5859 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5861 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5862 __always_inline__ attribute.
5863 (vaesdq_u8): Likewise.
5864 (vaesmcq_u8): Likewise.
5865 (vaesimcq_u8): Likewise.
5866 (vsha1cq_u32): Likewise.
5867 (vsha1mq_u32): Likewise.
5868 (vsha1pq_u32): Likewise.
5869 (vsha1h_u32): Likewise.
5870 (vsha1su0q_u32): Likewise.
5871 (vsha1su1q_u32): Likewise.
5872 (vsha256hq_u32): Likewise.
5873 (vsha256h2q_u32): Likewise.
5874 (vsha256su0q_u32): Likewise.
5875 (vsha256su1q_u32): Likewise.
5876 (vmull_p64): Likewise.
5877 (vmull_high_p64): Likewise.
5879 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5881 * final.c (final_scan_insn): Don't check HAVE_peephole with the
5883 * output.h: Likewise.
5884 * genconfig.c (main): Alwways define HAVE_peephole.
5885 * genpeep.c: Don't emit checks of HAVE_peephole.
5887 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5889 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5890 check HAVE_conditional_move with the preprocessor.
5892 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5894 * genconfig.c (main): Always define HAVE_conditional_move.
5895 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5896 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5899 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5901 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5902 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5903 and FRAME_POINTER_REGNUM with the preprocessor.
5905 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5907 * defaults.h: Add default for STACK_PUSH_CODE.
5908 * expr.c: Don't redefine STACK_PUSH_CODE.
5909 * recog.c: Likewise.
5911 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5913 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5914 sched-deps.c: Use if instead of preprocessor checks with
5915 STACK_GROWS_DOWNWARD.
5917 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5919 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5921 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5922 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5923 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5924 * doc/tm.texi: Regenerate.
5926 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
5929 * config/i386/constraints.md (Bg): New constraint for GOT memory
5931 * config/i386/i386.md (*call_got_x32): New pattern.
5932 (*call_value_got_x32): Likewise.
5933 * config/i386/predicates.md (GOT_memory_operand): New predicate.
5935 2015-05-21 Jakub Jelinek <jakub@redhat.com>
5937 PR tree-optimization/66233
5938 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5941 2015-05-21 Jeff Law <law@redhat.com>
5943 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5944 than MULT for shadd sequences.
5946 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
5948 * alias.c (alias_stats): New static var.
5949 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5950 (dump_alias_stats_in_alias_c): New function.
5951 * alias.h (dump_alias_stats_in_alias_c): Declare.
5952 * tree-ssa-alias.c (dump_alias_stats): Call it.
5954 2015-05-08 Michael Matz <matz@suse.de>
5956 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5958 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5959 (STMT_VINFO_STRIDED_P): ... this.
5960 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5961 (vect_verify_datarefs_alignment): Likewise.
5962 (vect_enhance_data_refs_alignment): Likewise.
5963 (vect_analyze_data_ref_access): Likewise.
5964 (vect_analyze_data_refs): Accept strided stores.
5965 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5966 (vect_model_load_cost): Adjust for macro rename.
5967 (vectorizable_mask_load_store): Likewise.
5968 (vectorizable_load): Likewise.
5969 (vectorizable_store): Open code strided stores.
5971 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5973 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5976 2015-05-21 Richard Biener <rguenther@suse.de>
5979 * match.pd: Guard pattern optimzing (int)(float)int
5980 conversions to apply only on GIMPLE.
5982 2015-05-21 Jeff Law <law@redhat.com>
5984 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5985 multiply-accumulate/shift-add insn generation.
5987 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
5990 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
5991 operands[1] are the same.
5993 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5996 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
5997 build_distinct_type_copy to copy bounds.
5999 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
6001 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
6002 Change to unsigned int.
6004 2015-05-20 Jeff Law <law@redhat.com>
6006 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
6007 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
6008 (pa_shadd_constant_p): Allow constants for shadd insns rather
6009 than valid scaling constants for memory addresses.
6010 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
6011 * config/pa/predicates.md (mem_shadd_operand): New predicate.
6012 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
6013 (shift-add insns using ASHIFT): New patterns.
6015 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
6017 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
6019 (fix_up_fall_thru_edges): Likewise.
6020 (fix_crossing_conditional_branches): Likewise. Promote jump targets
6021 from to rtx_insn to rtx_code_label where feasible.
6022 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
6023 gen_move_insn (returned type changed to rtx_insn).
6024 * builtins.c (expand_errno_check): Fix arguments of
6025 do_compare_rtx_and_jump (now expects rtx_code_label).
6026 (expand_builtin_acc_on_device): Likewise.
6027 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
6028 invert_jump (now exprects rtx_jump_insn).
6029 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
6030 (construct_init_block): Use rtx_code_label.
6031 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
6032 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
6033 calling redirect_jump.
6034 (patch_jump_insn): Likewise.
6035 (redirect_branch_edge): Likewise.
6036 (force_nonfallthru_and_redirect): Likewise.
6037 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
6039 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
6040 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
6041 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
6042 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
6043 to store the value retured by gen_label_rtx.
6044 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
6046 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
6047 (split_branches): Fix calls of redirect_jump.
6048 * dojump.c (jumpifnot): Promote argument type from rtx to
6050 (jumpifnot_1): Likewise.
6052 (jumpif_1): Likewise.
6053 (do_jump_1): Likewise.
6054 (do_jump): Likewise. Use rtx_code_label when feasible.
6055 (do_jump_by_parts_greater_rtx): Likewise.
6056 (do_jump_by_parts_zero_rtx): Likewise.
6057 (do_jump_by_parts_equality_rtx): Likewise.
6058 (do_compare_rtx_and_jump): Likewise.
6059 * dojump.h: Update function prototypes.
6060 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
6062 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
6064 (emit_label_before): Likewise.
6065 (emit_jump_insn_after_noloc): Likewise.
6066 (emit_jump_insn_after_setloc): Likewise.
6067 (emit_jump_insn_after): Likewise
6068 (emit_jump_insn_before_setloc): Likewise.
6069 (emit_jump_insn_before): Likewise.
6070 (emit_label_before): Promote return type to rtx_code_label.
6071 (emit_label): Likewise.
6072 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
6073 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
6075 (emit_stack_restore): Likewise.
6076 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
6077 (do_cmp_and_jump): Likewise.
6078 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
6079 from rtx to rtx_code_label.
6080 (gen_move_insn_uncast): New function.
6081 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
6082 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
6083 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
6084 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
6085 invert_jump_1 and redirect_jump_1.
6086 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
6087 do_compare_rtx_and_jump.
6088 (expand_addsub_overflow): Likewise.
6089 (expand_neg_overflow): Likewise.
6090 (expand_mul_overflow): Likewise.
6091 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
6092 return value of gen_move_insn.
6093 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
6094 * loop-doloop.c (add_test): Use rtx_code_label.
6095 (doloop_modify): Likewise.
6096 (doloop_optimize): Likewise.
6097 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
6098 * lra-constraints.c (emit_spill_move): Remove cast of value returned
6100 (inherit_reload_reg): Add cast when calling dump_insn_slim.
6101 (split_reg): Likewise.
6102 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
6104 * optabs.c (expand_binop_directly): Remove casts of values returned by
6106 (expand_unop_direct): Likewise.
6107 (expand_abs): Likewise.
6108 (maybe_emit_unop_insn): Likewise.
6109 (maybe_gen_insn): Promote return type to rtx_insn.
6110 * optabs.h: Update prototype of maybe_gen_insn.
6111 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
6113 * recog.c (struct peep2_insn_data): Promote type of insn field to
6115 (peep2_reinit_state): Use NULL instead of NULL_RTX.
6116 (peep2_attempt): Remove casts of insn in peep2_insn_data.
6117 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
6118 * recog.h (struct insn_gen_fn): Promote return types of function
6119 pointers and operator ().from rtx to rtx_insn.
6120 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
6121 (fill_eager_delay_slots): Likewise.
6122 (relax_delay_slots): Likewise.
6123 (make_return_insns): Likewise.
6124 (dbr_schedule): Likewise.
6125 (optimize_skips): Likewise.
6126 (reorg_redirect_jump): Likewise.
6127 (fill_slots_from_thread): Likewise.
6128 * reorg.h: Update prototypes.
6129 * resource.c (find_dead_or_set_registers): Use dyn_cast to
6130 rtx_jump_insn instead of check. Use it's jump_target method.
6131 * rtl.h (rtx_jump_insn::jump_label): Define new method.
6132 (rtx_jump_insn::jump_target): Define new method.
6133 (rtx_jump_insn::set_jump_target): Define new method.
6134 * rtlanal.c (tablejump_p): Promote type of one local variable.
6135 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
6136 (sched_analyze_insn): Likewise.
6137 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
6138 (print_insn): Likewise.
6139 * stmt.c (label_rtx): Promote return type to rtx_insn.
6140 (force_label_rtx): Likewise.
6141 (jump_target_rtx): Define new function.
6142 (expand_label): Use it, get rid of one cast.
6143 (expand_naked_return): Promote rtx to rtx_code_label.
6144 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
6145 (expand_case): Use rtx_code_label instread of rtx where feasible.
6146 (expand_sjlj_dispatch_table): Likewise.
6147 (emit_case_nodes): Likewise.
6148 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
6149 * store-motion.c (insert_store): Make use of new return type of
6150 gen_move_insn and remove a cast.
6151 (replace_store_insn): Likewise.
6153 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
6155 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
6156 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
6158 2015-05-20 Jeff Law <law@redhat.com>
6160 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
6161 dispose of the jump thread path when the jump threading
6162 opportunity is cancelled.
6164 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6166 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
6167 when printing the caret character.
6169 2015-05-20 Marek Polacek <polacek@redhat.com>
6171 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
6173 2015-05-20 Marek Polacek <polacek@redhat.com>
6175 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
6176 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
6177 * gimple-fold.c (canonicalize_bool): Likewise.
6178 (same_bool_result_p): Likewise.
6179 * tree-if-conv.c (parse_predicate): Likewise.
6181 2015-05-20 Marek Polacek <polacek@redhat.com>
6183 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
6184 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
6186 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6188 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
6189 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
6192 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
6194 * config/mips/mips.h (micromips_globals): Declare.
6196 2015-05-20 David Malcolm <dmalcolm@redhat.com>
6198 * timevar.def (TV_INITIALIZE_RTL): New.
6199 * toplev.c (initialize_rtl): Use an auto_timevar to account this
6200 function's time to TV_INITIALIZE_RTL.
6202 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
6204 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
6205 gimple_build_nop calls.
6206 (chkp_find_bounds_for_elem): Likewise.
6207 (chkp_get_zero_bounds): Likewise.
6208 (chkp_get_none_bounds): Likewise.
6209 (chkp_get_bounds_by_definition): Likewise.
6210 (chkp_generate_extern_var_bounds): Likewise.
6211 (chkp_get_bounds_for_decl_addr): Likewise.
6212 (chkp_get_bounds_for_string_cst): Likewise.
6214 2015-05-20 Bin Cheng <bin.cheng@arm.com>
6216 PR tree-optimization/65447
6217 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
6218 (dump_use, dump_uses): Support to dump sub use.
6219 (record_use): New parameters to support sub use. Remove call to
6221 (record_sub_use, record_group_use): New functions.
6222 (compute_max_addr_offset, split_all_small_groups): New functions.
6223 (group_address_uses, rewrite_use_address): New functions.
6224 (strip_offset): New declaration.
6225 (find_interesting_uses_address): Call record_group_use.
6226 (add_candidate): New assertion.
6227 (infinite_cost_p): Move definition forward.
6228 (add_costs): Check INFTY cost and return immediately.
6229 (get_computation_cost_at): Clear setup cost and dependent bitmap
6231 (determine_use_iv_cost_address): Compute cost for sub uses.
6232 (rewrite_use_address_1): Rename from old rewrite_use_address.
6233 (free_loop_data): Free sub uses.
6234 (tree_ssa_iv_optimize_loop): Call group_address_uses.
6236 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6237 Jim Wilson <jim.wilson@linaro.org>
6239 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
6240 new fields loadv and storev.
6241 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
6242 Initialize loadv and storev.
6243 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
6244 (cortexa53_extra_costs): Likewise.
6245 (cortexa57_extra_costs): Likewise.
6246 (xgene1_extra_costs): Likewise.
6247 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
6250 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6252 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
6254 (cortexa8_extra_costs): Likewise.
6255 (cortexa5_extra_costs): Likewise.
6256 (cortexa7_extra_costs): Likewise.
6257 (cortexa12_extra_costs): Likewise.
6258 (cortexa15_extra_costs): Likewise.
6259 (v7m_extra_costs): Likewise.
6261 2015-05-20 Jeff Law <law@redhat.com>
6263 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
6264 instead of open-coded version. Also delete the jump thread created
6265 within this function.
6267 2015-05-20 Alan Modra <amodra@gmail.com>
6269 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
6270 stack adjusting insn. Formatting.
6271 (rs6000_emit_prologue): Track stack adjusting insn, and use of
6272 r12. If possible, emit first -fsplit-stack arg pointer insn
6273 before stack adjust. Don't use r12 to save cr if split-stack.
6275 2015-05-20 Alan Modra <amodra@gmail.com>
6277 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
6279 (rs6000_supports_split_stack): New function.
6280 * gcc/config/rs6000/rs6000.c (machine_function): Add
6281 split_stack_arg_pointer.
6282 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
6283 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
6284 rather than virtual_incoming_args_rtx.
6285 (rs6000_va_start): Likewise.
6286 (split_stack_arg_pointer_used_p): New function.
6287 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
6288 (morestack_ref): New var.
6289 (gen_add3_const, rs6000_expand_split_stack_prologue,
6290 rs6000_internal_arg_pointer, rs6000_live_on_entry,
6291 rs6000_split_stack_space_check): New functions.
6292 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
6293 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
6294 (UNSPECV_SPLIT_STACK_RETURN): Define.
6295 (split_stack_prologue, load_split_stack_limit,
6296 load_split_stack_limit_di, load_split_stack_limit_si,
6297 split_stack_return, split_stack_space_check): New expands and insns.
6298 * gcc/config/rs6000/rs6000-protos.h
6299 (rs6000_expand_split_stack_prologue): Declare.
6300 (rs6000_split_stack_space_check): Declare.
6302 2015-05-20 Alan Modra <amodra@gmail.com>
6304 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
6305 (rs6000_stack_info): Don't zero offsets when not saving registers.
6306 (debug_stack_info): Adjust to omit printing unused offsets,
6308 (direct_return): Test vrsave_size rather than vrsave_mask.
6309 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
6310 (rs6000_emit_epilogue): Likewise.
6312 2015-05-20 Alan Modra <amodra@gmail.com>
6314 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
6315 when not saving registers.
6316 (debug_stack_info): Adjust to omit printing unused offsets,
6318 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
6321 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6324 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
6325 value_type to const char *.
6327 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
6329 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
6330 to build a biarch toolchain again.
6332 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
6334 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
6335 or implicit declarations.
6336 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
6338 (get_odr_type): Check type has linkage before adding bases.
6339 (register_odr_type): Check that type has linkage before adding it.
6340 (type_known_to_have_no_deriavations_p): Rename to ..
6341 (type_known_to_have_no_derivations_p): This one.
6342 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
6343 (type_known_to_have_no_derivations_p): This one.
6344 * ipa-polymorphic-call.c
6345 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
6348 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
6350 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
6351 (layout_type): Use RECORD_OR_UNION_TYPE_P.
6353 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6355 * config/s390/s390.c (s390_vector_bool_type_p): New function.
6356 (s390_invalid_binary_op): New function.
6357 (TARGET_INVALID_BINARY_OP): Define macro.
6359 2015-05-19 David Sherwood <david.sherwood@arm.com>
6361 * loop-invariant.c (create_new_invariant): Don't calculate address cost
6362 if mode is not a scalar integer.
6363 (get_inv_cost): Increase computational cost for unused invariants.
6365 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6367 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
6368 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
6369 * config/s390/s390-builtin-types.def: New file.
6370 * config/s390/s390-builtins.def: New file.
6371 * config/s390/s390-builtins.h: New file.
6372 * config/s390/s390-c.c: New file.
6373 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
6374 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
6375 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
6376 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
6378 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
6380 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
6381 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
6382 variable definitions.
6383 (s390_const_operand_ok): New function.
6384 (s390_expand_builtin): Rewrite.
6385 (s390_init_builtins): New function.
6386 (s390_handle_vectorbool_attribute): New function.
6387 (s390_attribute_table): Add s390_vector_bool attribute.
6388 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
6389 (s390_branch_condition_mask): Generate masks for new modes.
6390 (s390_expand_vec_compare_cc): New function.
6391 (s390_mangle_type): Add mangling for vector bool types.
6392 (enum s390_builtin): Remove.
6393 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
6395 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
6396 s390_cpu_cpp_builtins.
6397 (REGISTER_TARGET_PRAGMAS): New macro.
6398 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
6399 (insn_cmp mode attribute): Add new CC modes.
6400 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
6401 (lcbb): New pattern definition.
6402 * config/s390/s390intrin.h: Include vecintrin.h.
6403 * config/s390/t-s390: New file.
6404 * config/s390/vecintrin.h: New file.
6405 * config/s390/vector.md: Include vx-builtins.md.
6406 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
6409 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6411 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
6413 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
6414 (s390_select_ccmode): Likewise.
6415 (s390_canonicalize_comparison): Swap operands if necessary.
6416 (s390_expand_vec_compare_scalar): Expand DFmode compare using
6417 single element vector instructions.
6418 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
6419 (s390_branch_condition_mask): Generate CC masks for the new modes.
6420 * config/s390/s390.md (v0, vf, vd): New mode attributes.
6421 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
6422 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
6423 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
6424 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
6425 (*extend<DSF:mode><BFP:mode>2): New insn definition.
6426 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
6427 (extend<DSF:mode><BFP:mode>2): Turn into expander.
6428 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
6429 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
6430 (sqrt<mode>2): Add vector instruction.
6432 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6434 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
6436 * config/s390/predicates.md (const0_operand, constm1_operand)
6437 (constable_operand): Accept vector operands.
6438 * config/s390/s390-modes.def: Add supported vector modes.
6439 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
6440 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
6441 (s390_bytemask_vector_p, s390_expand_vec_strlen)
6442 (s390_expand_vec_compare, s390_expand_vcond)
6443 (s390_expand_vec_init): Add prototypes.
6444 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
6445 (s390_vector_mode_supported_p): New function.
6446 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
6447 (s390_contiguous_bitmask_vector_p): New function.
6448 (s390_bytemask_vector_p): New function.
6449 (s390_split_ok_p): Vector regs don't work either.
6450 (regclass_map): Add VEC_REGS.
6451 (s390_legitimate_constant_p): Handle vector constants.
6452 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
6453 (legitimate_reload_vector_constant_p): New function.
6454 (s390_preferred_reload_class): Handle CONST_VECTOR.
6455 (s390_reload_symref_address): Likewise.
6456 (s390_secondary_reload): Vector memory instructions only support
6457 short displacements. Rename reload*_nonoffmem* to reload*_la*.
6458 (s390_emit_ccraw_jump): New function.
6459 (s390_expand_vec_strlen): New function.
6460 (s390_expand_vec_compare): New function.
6461 (s390_expand_vcond): New function.
6462 (s390_expand_vec_init): New function.
6463 (s390_dwarf_frame_reg_mode): New function.
6464 (print_operand): Handle addresses with 'O' and 'R' constraints.
6465 (NR_C_MODES, constant_modes): Add vector modes.
6466 (s390_output_pool_entry): Handle vector constants.
6467 (s390_hard_regno_mode_ok): Handle vector registers.
6468 (s390_class_max_nregs): Likewise.
6469 (s390_cannot_change_mode_class): New function.
6470 (s390_invalid_arg_for_unprototyped_fn): New function.
6471 (s390_function_arg_vector): New function.
6472 (s390_function_arg_float): Remove size variable.
6473 (s390_pass_by_reference): Handle vector arguments.
6474 (s390_function_arg_advance): Likewise.
6475 (s390_function_arg): Likewise.
6476 (s390_return_in_memory): Vector values are returned in a VR if
6478 (s390_function_and_libcall_value): Handle vector arguments.
6479 (s390_gimplify_va_arg): Likewise.
6480 (s390_call_saved_register_used): Consider the arguments named.
6481 (s390_conditional_register_usage): Disable v16-v31 for non-vec
6483 (s390_preferred_simd_mode): New function.
6484 (s390_support_vector_misalignment): New function.
6485 (s390_vector_alignment): New function.
6486 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
6487 (TARGET_VECTOR_MODE_SUPPORTED_P)
6488 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
6489 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6490 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
6491 (TARGET_VECTOR_ALIGNMENT): Define target macro.
6492 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
6493 (FIRST_PSEUDO_REGISTER): Increase value.
6494 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
6495 (VECTOR_REG_P): Define macros.
6496 (FIXED_REGISTERS, CALL_USED_REGISTERS)
6497 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
6498 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
6499 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
6500 Add vector registers.
6501 (CANNOT_CHANGE_MODE_CLASS): Call C function.
6502 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
6503 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
6505 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
6506 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
6507 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
6508 (VR*_REGNUM): New constants.
6509 (ALL): New mode iterator.
6510 (INTALL): Remove mode iterator.
6512 (movti): Implement TImode moves for VRs.
6513 Disable TImode splitter for VR targets.
6514 Implement splitting TImode GPR<->VR moves.
6515 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
6516 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
6517 reload<mode>_la_in, reload<mode>_la_out.
6518 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
6519 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
6520 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
6521 (mov<mode> SF SD): Prefer lder, lde for loading.
6522 Add lrl and strl instructions.
6523 Add vector instructions.
6524 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
6525 Call s390_expand_vec_strlen on z13.
6526 (*cc_to_int): Change predicate to nonimmediate_operand.
6527 (addti3): Rename to *addti3. New expander.
6528 (subti3): Rename to *subti3. New expander.
6529 * config/s390/vector.md: New file.
6531 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6533 * common/config/s390/s390-common.c (processor_flags_table): Add
6535 * config.gcc: Add z13.
6536 * config/s390/s390-opts.h (enum processor_type): Add
6538 * config/s390/s390.c (s390_adjust_priority): Check for
6540 (s390_reorg): Likewise.
6541 (s390_sched_reorder): Likewise.
6542 (s390_sched_variable_issue): Likewise.
6543 (s390_loop_unroll_adjust): Likewise.
6544 (s390_option_override): Likewise. Default to -mvx when available.
6545 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
6546 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
6547 (TARGET_VX_ABI): Define macros.
6549 (TARGET_DEFAULT): Add MASK_OPT_VX.
6550 * config/s390/s390.md ("cpu" attribute): Add z13.
6551 ("cpu_facility" attribute): Add vec.
6552 * config/s390/s390.opt (processor_type): Add z13.
6554 * doc/invoke.texi: Add z13 option for -march.
6556 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6558 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
6559 mode check to make sure that only scalar integer values are
6562 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
6564 * tree.c (verify_type_variant): Fix #undef.
6565 (gimple_canonical_types_compatible_p): Move here from lto.c
6566 (verify_type): Verify TYPE_CANONICAL compatibility.
6567 * tree.h (gimple_canonical_types_compatible_p): Declare.
6569 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6572 * tree.h (OMP_TEAMS_COMBINED): Define.
6573 * gimplify.c (enum gimplify_omp_var_data): Add
6574 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
6575 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
6576 (omp_notice_variable): Accept both ORT_TEAMS
6577 and ORT_COMBINED_TEAMS. Don't recurse if
6578 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
6579 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
6581 (omp_no_lastprivate): New function.
6582 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
6583 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
6584 notice_outer and set appropriate bits, otherwise make
6585 sure default(none) combined constructs won't complain.
6586 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
6587 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
6588 omp_no_lastprivate either remove the clause or turn it
6589 into OMP_CLAUSE_PRIVATE.
6590 (gimplify_omp_for): Fix up handling of implicit
6591 lastprivate or linear iterators.
6592 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
6594 * omp-low.c (lower_omp_for_lastprivate): For combined
6595 for simd use fd.loop.n2 from the for rather than simd.
6597 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6599 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
6600 instead of gen_rtx_raw_REG.
6601 (cris_expand_epilogue): Likewise.
6602 * config/microblaze/microblaze.c (microblaze_classify_address):
6604 * config/sparc/sparc.md: Likewise.
6606 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
6608 * config/alpha/alpha.c (alpha_legitimize_reload_address)
6609 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
6610 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
6611 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
6612 Use CASE_CONST_SCALAR_INT.
6613 (print_operand) <case 'M'>: Use mode_width_operand to check the
6614 value of the constant.
6615 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
6616 * config/alpha/predicates.md (input_operand): Use general_operand
6617 instead of match_code as operand check.
6618 (symbolic_operand): Use match_code with subexpression digits.
6619 * config/alpha/constraints.md (Q): Ditto.
6621 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6623 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
6625 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6627 * config/s390/s390.c (s390_secondary_reload): Fix check for
6628 load/store relative.
6630 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6632 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
6633 alternative_mask to uint64_t.
6635 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6637 PR tree-optimization/66187
6638 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6639 Pass TYPE_SIGN to tree_int_cst_min_precision. If
6640 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
6642 2015-05-19 David Malcolm <dmalcolm@redhat.com>
6644 * diagnostic.c (diagnostic_report_current_module): Strengthen
6645 local "new_map" from const line_map * to
6646 const line_map_ordinary *.
6647 * genmatch.c (error_cb): Likewise for local "map".
6648 (output_line_directive): Likewise for local "map".
6649 * input.c (expand_location_1): Likewise for local "map".
6650 Pass NULL rather than &map to
6651 linemap_unwind_to_first_non_reserved_loc, since the value is never
6652 read from there, and the value written back not read from here.
6653 (is_location_from_builtin_token): Strengthen local "map" from
6654 const line_map * to const line_map_ordinary *.
6655 (dump_location_info): Strengthen locals "map" from
6656 line_map *, one to const line_map_ordinary *, the other
6657 to const line_map_macro *.
6658 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
6659 const line_map * to const line_map_macro *.
6660 (maybe_unwind_expanded_macro_loc): Add a call to
6661 linemap_check_macro when writing to the "map" field of the
6663 Introduce local const line_map_ordinary * "ord_map", using it in
6664 place of "map" in the part of the function where we know we have
6665 an ordinary map. Strengthen local "m" from const line_map * to
6666 const line_map_ordinary *.
6668 2015-05-19 Nick Clifton <nickc@redhat.com>
6671 * config/msp430/msp430.md (zero_extendhisi2): Add support for
6672 separate source and destination registers.
6674 2015-05-19 Richard Biener <rguenther@suse.de>
6676 PR tree-optimization/66165
6677 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
6678 for no load permutation.
6680 PR tree-optimization/66185
6681 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
6682 when building the SLP node from scalars.
6684 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
6685 Tristan Gingold <gingold@adacore.com>
6687 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
6688 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
6689 (expand_stack_restore): Call record_new_stack_level.
6690 (expand_stack_save): Do not call do_pending_stack_adjust.
6691 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
6692 * calls.c (expand_call): Call record_new_stack_level for alloca.
6693 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
6694 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
6695 (update_sjlj_context): New global function.
6696 * except.h (update_sjlj_context): Declare.
6697 * explow.c (record_new_stack_level): New global function.
6698 (allocate_dynamic_stack_space): Call record_new_stack_level.
6699 * explow.h (record_new_stack_level): Declare.
6700 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
6701 * cfgrtl.c (duplicate_insn_chain): Likewise.
6703 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6705 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
6706 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
6707 STACK_GROWS_DOWNWARD as normal if.
6708 (expand_call): Likewise.
6710 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
6713 * config/sh/sh.md (*round_int_even): New insn_and_split and
6714 accompanying new unnamed split.
6716 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6718 * bitmap.c (bitmap_set_range): Handle count==1 specially.
6719 (bitmap_clear_range): Likewise.
6720 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
6721 bitmap_set_range unconditionally.
6722 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6723 * df-scan.c (df_mark_reg): Likewise.
6724 * haifa-sched.c (setup_ref_regs): Likewise.
6725 * sched-rgn.c (update_live_1): Likewise.
6727 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6729 * regs.h (END_HARD_REGNO): Delete.
6730 (END_REGNO): Move to...
6732 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
6733 * caller-save.c (mark_set_regs): Likewise.
6734 * combine.c (move_deaths, distribute_notes): Likewise.
6735 * cse.c (invalidate, invalidate_for_call): Likewise.
6736 * df-scan.c (df_ref_record): Likewise.
6737 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
6738 (record_last_reg_set_info): Likewise.
6739 * reg-stack.c (convert_regs_exit): Likewise.
6740 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
6741 * resource.c (update_live_status): Likewise.
6742 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
6744 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6746 * rtl.h (reg_info): Add an nregs field.
6747 (REG_NREGS): Use it.
6748 (SET_REGNO_RAW): Delete.
6749 (set_regno_raw): New function.
6750 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
6751 (END_REGNO): Redefine in terms of REG_NREGS.
6752 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
6754 * emit-rtl.c (set_mode_and_regno): Likewise.
6755 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
6756 instead of SET_REGNO_RAW.
6758 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6760 * rtl.h (PUT_MODE_RAW): New macro.
6761 (PUT_REG_NOTE_KIND): Use it.
6762 (set_mode_and_regno): Declare.
6763 (gen_raw_REG): Change regno to "unsigned int".
6764 (gen_rtx_REG): Change "unsigned" to "unsigned int".
6765 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
6766 use set_mode_and_regno to change the mode of registers.
6767 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
6768 * emit-rtl.c (set_mode_and_regno): New function.
6769 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
6770 * caller-save.c (reg_save_code): Use set_mode_and_regno.
6771 * expr.c (init_expr_target): Likewise.
6772 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6773 * postreload.c (reload_cse_simplify_operands): Likewise.
6775 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6777 * caller-save.c (init_caller_save): Use word_mode and
6778 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
6779 * expr.c (init_expr_target): Likewise.
6780 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6781 * postreload.c (reload_cse_regs_1): Likewise.
6783 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6785 * rtl.def (REG): Change format to "r".
6786 * rtl.h (rtunion): Remove rt_reg.
6787 (reg_info): New structure.
6788 (rtx_def): Add reg field to main union.
6789 (X0REGATTR): Delete.
6790 (REG_CHECK): New macro.
6791 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
6792 * rtl.c (rtx_format): Document "r".
6793 (rtx_code_size): Handle REG specially.
6794 * gengenrtl.c (special_format): Return true for formats
6796 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
6797 Deal with REG_ATTRS after the field loop.
6798 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
6799 * expmed.c (init_expmed): Call gen_raw_REG instead of
6801 * expr.c (init_expr_target): Likewise.
6802 * regcprop.c (maybe_mode_change): Likewise.
6803 * varasm.c (make_decl_rtl): Likewise.
6804 * final.c (leaf_renumber_regs_insn): Return early after
6806 * genemit.c (gen_exp): Handle 'r' fields.
6807 * genpeep.c (match_rtx): Likewise.
6808 * gensupport.c (subst_pattern_match): Likewise.
6809 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
6810 (alter_constraints, subst_dup): Likewise.
6811 * read-rtl.c (read_rtx_code): Likewise.
6812 * print-rtl.c (print_rtx): Likewise.
6813 * genrecog.c (find_operand, find_matching_operand): Likewise.
6814 (validate_pattern, match_pattern_2): Likewise.
6815 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
6816 (rtx_test::regno_field): New function.
6817 (operator ==, safe_to_hoist_p, transition_parameter_type)
6818 (parameter_type_string, print_parameter_value)
6819 (print_nonbool_test, print_test): Handle new enum values.
6820 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
6821 * lra-constraints.c (operands_match_p): Likewise.
6823 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6825 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
6826 Change type of new_regno to unsigned int.
6827 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6828 new_regno to unsigned int.
6829 (df_ref_change_reg_with_loc): Remove old_regno parameter.
6830 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
6831 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6832 (SET_REGNO_RAW): Add space after ",".
6834 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6836 * rtl.h (REG_NREGS): New macro
6837 * alias.c (record_set): Use it.
6838 * cfgcleanup.c (mark_effect): Likewise.
6839 * combine.c (likely_spilled_retval_1): Likewise.
6840 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6841 (move_deaths, distribute_notes): Likewise.
6842 * cselib.c (cselib_record_set): Likewise.
6843 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6844 * df-scan.c (df_mark_reg): Likewise.
6845 * dse.c (look_for_hardregs): Likewise.
6846 * dwarf2out.c (reg_loc_descriptor): Likewise.
6847 (multiple_reg_loc_descriptor): Likewise.
6848 * expr.c (write_complex_part, read_complex_part): Likewise.
6849 (emit_move_complex): Likewise.
6850 * haifa-sched.c (setup_ref_regs): Likewise.
6851 * ira-lives.c (mark_hard_reg_live): Likewise.
6852 * lra.c (lra_set_insn_recog_data): Likewise.
6853 * mode-switching.c (create_pre_exit): Likewise.
6854 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6855 (reload_combine_recognize_pattern): Likewise.
6856 (reload_combine_note_use, move2add_record_mode): Likewise.
6857 (reload_cse_move2add): Likewise.
6858 * reg-stack.c (subst_stack_regs_pat): Likewise.
6859 * regcprop.c (kill_value, copy_value): Likewise.
6860 (copyprop_hardreg_forward_1): Likewise.
6861 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6862 (build_def_use): Likewise.
6863 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6864 (deps_analyze_insn): Likewise.
6865 * sched-rgn.c (check_live_1, update_live_1): Likewise.
6866 * sel-sched.c (count_occurrences_equiv): Likewise.
6867 * valtrack.c (dead_debug_insert_temp): Likewise.
6869 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6871 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6872 * dse.c (note_add_store): Likewise.
6873 * ira-lives.c (mark_hard_reg_dead): Likewise.
6874 * loop-invariant.c (mark_reg_store): Likewise.
6875 (mark_reg_death): Likewise.
6876 * postreload.c (reload_combine): Likewise.
6877 (reload_combine_note_store): Likewise.
6878 (reload_combine_note_use): Likewise.
6879 * recog.c (peep2_reg_dead_p): Likewise.
6881 2015-05-19 Alan Modra <amodra@gmail.com>
6883 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6884 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6885 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6887 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6888 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
6889 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6890 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6892 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
6894 * config/mips/mips.md (JOIN_MODE): New mode iterator.
6895 (join2_load_Store<JOIN_MODE:mode>): New pattern.
6896 (join2_loadhi): Likewise.
6897 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6898 load-load and store-stores.
6899 * config/mips/mips.opt (mload-store-pairs): New option.
6900 (TARGET_LOAD_STORE_PAIRS): New macro.
6901 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6902 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6903 * config/mips/mips.c (mips_load_store_bonding_p): New function.
6905 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
6907 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6909 * dojump.c (do_compare_rtx_and_jump): Likewise.
6910 * expmed.c (emit_store_flag_1): Likewise.
6911 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6912 * final.c (sprint_ul): Use std::reverse for reversing a string.
6913 * fold-const.c (extract_muldiv_1): Use std::swap.
6914 * genmodes.c (emit_mode_int_n): Likewise.
6915 * ifcvt.c (dead_or_predicable): Likewise.
6916 * ira-build.c (ira_merge_live_ranges): Likewise.
6917 (swap_allocno_copy_ends_if_necessary): Likewise.
6918 * ira.c (ira_setup_alts): Likewise.
6919 * loop-iv.c (iv_analyze_expr): Likewise.
6920 (implies_p): Likewise.
6921 (canon_condition): Likewise.
6922 * lra-constraints.c (swap_operands): Likewise.
6923 * lra-lives.c (lra_merge_live_ranges): Likewise.
6924 * omega.c (swap): Remove.
6926 (omega_unprotect_1): Use std::swap.
6927 (omega_solve_geq): Likewise.
6928 * optabs.c (expand_binop_directly): Likewise.
6929 (expand_binop): Likewise.
6930 (emit_conditional_move): Likewise.
6931 (emit_conditional_add): Likewise.
6932 * postreload.c (reload_cse_simplify_operands): Likewise.
6933 * reg-stack.c (emit_swap_insn): Likewise.
6934 (swap_to_top): Likewise.
6935 (compare_for_stack_reg): Likewise.
6936 (subst_asm_stack_regs): Likewise.
6937 * reload.c (find_reloads): Likewise.
6938 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6939 * sel-sched.c (invoke_reorder_hooks): Likewise.
6940 (create_block_for_bookkeeping): Likewise.
6941 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6942 (lambda_matrix_right_hermite): Use std::swap.
6943 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6944 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6945 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6946 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6947 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6948 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6949 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6950 * tree-vrp.c (compare_ranges): Likewise.
6951 * var-tracking.c (add_with_sets): Likewise.
6952 (vt_find_locations): Likewise.
6954 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
6956 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6958 (FBSD_ENDFILE_SPEC): Likewise.
6959 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6960 config/freebsd-spec.h.
6961 (ENDFILE_SPEC): Likewise.
6963 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
6964 Richard Henderson <rth@redhat.com>
6967 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6968 Check for a memory location that is not a reference (using an AND)
6969 to an unaligned location here.
6970 * config/alpha/predicates.md (normal_memory_operand): Remove.
6972 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
6974 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6975 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6977 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
6979 * config/mips/mips.c (micromips_globals): New variable.
6980 (mips_set_compression_mode): Save and reinitialize target-dependent
6981 state for microMIPS.
6983 2015-05-18 Martin Liska <mliska@suse.cz>
6985 * dbgcnt.def: Add new counter.
6986 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6988 2015-05-18 Martin Liska <mliska@suse.cz>
6990 * dbgcnt.def: Sort counters.
6991 * opts.c (common_handle_option): Do not compile if
6992 -fdbg-cnt-list is enabled.
6994 2015-05-18 Tom de Vries <tom@codesourcery.com>
6996 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
6997 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
6998 address operator to va_list operand.
6999 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
7001 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
7003 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
7004 * config/s390/s390.c (s390_gimplify_va_arg): Same.
7005 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
7007 2015-05-18 Tom de Vries <tom@codesourcery.com>
7009 * tree-ssa-tail-merge.c: Fix whitespace.
7011 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
7013 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
7014 cortex-a17, and cortex-a17.cortex-a7.
7016 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
7019 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
7021 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
7024 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
7025 QImode inner modes for TARGET_AVX512BW. Force mask operand
7026 to a register for AVX512F modes.
7028 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
7030 * toplev.c (emit_debug_global_declarations): Do not output debug info
7031 when doing slim LTO objects.
7033 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
7035 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
7036 odr_types_equivalent_p): Declare.
7037 (odr_type_p): Use gcc_checking_assert.
7038 (type_in_anonymous_namespace_p) Declare.
7039 (type_with_linkage_p): Declare.
7040 * common.opt (Wlto-type-mismatch): New warning.
7041 * ipa-devirt.c (compound_type_base): New function.
7042 (odr_or_derived_type_p): New function.
7043 (odr_types_equivalent_p): New function.
7044 (add_type_duplicate): Simplify.
7045 (type_with_linkage_p): Add hack to prevent false positives on C types
7046 (type_in_anonymous_namespace_p): Likewise.
7047 * tree.c (need_assembler_name_p): Use type_with_linkage.
7048 * tree.h (type_in_anonymous_namespace_p): Remove.
7049 * doc/invoke.texi (-Wlto-type-mismatch): Document
7051 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
7053 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
7054 (verify_type): Verify STRING_FLAG.
7056 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7059 * tree-pretty-print.c (percent_K_format): Replace locus pointer
7060 with accessor function.
7061 * tree-diagnostic.c (diagnostic_report_current_function): Use
7062 diagnostic_location function.
7063 (maybe_unwind_expanded_macro_loc): Likewise.
7064 (virt_loc_aware_diagnostic_finalizer): Likewise.
7065 (default_tree_printer): Replace locus pointer with accessor function.
7066 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
7067 (diagnostic_set_info_translated): Initialize second location.
7068 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
7069 (diagnostic_show_locus): Handle two locations. Call
7070 diagnostic_print_caret_line.
7071 (diagnostic_print_caret_line): New.
7072 (default_diagnostic_starter): Use diagnostic_location function.
7073 (diagnostic_report_diagnostic): Use diagnostic_location function.
7074 (verbatim): Do not set text.locus.
7075 * diagnostic.h (struct diagnostic_info): Remove location field.
7076 (struct diagnostic_context): Make caret_chars an array of two.
7077 (diagnostic_location): New inline.
7078 (diagnostic_expand_location): Handle two locations.
7079 (diagnostic_same_line): New inline.
7080 (diagnostic_print_caret_line): Declare.
7081 (CARET_LINE_MARGIN): New constant.
7082 * pretty-print.c (pp_printf): Do not set text.locus.
7083 (pp_verbatim): Do not set text.locus.
7084 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
7085 (struct text_info): Replace locus pointer with locations
7086 array. Add accessor functions.
7088 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
7089 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7092 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
7093 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
7094 large constants in register instead of splitting them.
7096 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
7099 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
7100 replacements in memory addresses.
7101 (get_unaligned_address): Ditto.
7103 2015-05-16 James Bowman <james.bowman@ftdichip.com>
7105 * config/ft32/*: New files for FT32 port.
7106 * doc/install.texi: Add FT32 information.
7107 * doc/invoke.texi: Add FT32 information.
7108 * doc/md.texi: Add FT32 information.
7109 * doc/contrib.texi: Self added.
7111 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
7113 PR tree-optimization/64454
7114 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
7115 (-1 - A -> ~A): Remove unnecessary condition.
7117 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
7119 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
7120 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7121 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
7123 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
7125 * ipa-chkp.h (chkp_wrap_function): New.
7126 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
7127 (chkp_wrap_function_name): New.
7128 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
7129 to get wrapper name.
7130 * lto-cgraph.c: Include ipa-chkp.h.
7131 (input_cgraph_1): Avoid alias chain for wrappers.
7133 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
7136 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
7137 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
7139 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7141 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
7142 (AARCH64_FL_SLOWMUL): Delete.
7143 (AARCH64_FL_CRC): Redefine to 1<<3.
7144 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
7146 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7148 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
7151 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
7153 * config/alpha/alpha.md (extendqidi2): Use general_operand
7154 instead of some_operand for operand[1] predicate.
7155 (extendhidi2): Ditto.
7156 (cbranchdi4): Use general_operand instead of some_operand
7157 for operand[1] and operands[2] predicates.
7159 * config/alpha/predicates.md (some_operand): Remove unused predicate.
7160 (some_ni_operand): Ditto.
7162 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
7164 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
7165 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
7166 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
7167 low part of the constant using alpha_emit_set_const_1.
7168 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
7170 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
7172 * varasm.c (output_constant_pool_1): Pass down alignment from
7173 constant pool entry's descriptor to output_constant_pool_2.
7174 (output_object_block): Add comment prior to call to
7175 output_constant_pool_1.
7177 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
7179 PR rtl-optimization/65862
7180 * target.def (ira_change_pseudo_allocno_class): New hook.
7181 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
7183 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
7184 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
7186 * ira-costs.c (find_costs_and_classes): Call the hook and change
7187 classes when it is necessary.
7188 * doc/tm.texi: Update.
7190 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
7192 * config/i386/i386.md (sibcall_memory): Check that register with
7193 callee address is not also used as one of the arguments, instead
7194 of checking that it is not live after the sibcall.
7195 (sibcall_pop_memory): Ditto.
7196 (sibcall_value_memory): Ditto.
7197 (sibcall_value_pop_memory): Ditto.
7199 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
7201 * generic-match-head.c (types_match): Handle non-types.
7202 * gimple-match-head.c (types_match): Likewise.
7203 * match.pd: Remove unnecessary TREE_TYPE for types_match.
7205 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
7207 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
7208 (csneg3<mode>_insn): Enable expansion of pattern.
7210 2015-05-14 Nick Clifton <nickc@redhat.com>
7212 * config/rl78/rl78.c (rl78_select_section): Select the correct
7213 default section based upon the category of the decl.
7215 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7217 PR rtl-optimization/30967
7218 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
7219 destination mode for the cost of scc patterns.
7221 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
7223 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
7224 using SWIM248 mode iterator.
7225 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
7226 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
7227 for operand[2] constraint.
7228 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
7230 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7233 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
7234 make sure it is never noreturn, even when the task body does not
7236 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
7237 right before GIMPLE_OMP_RETURN.
7238 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
7239 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
7240 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
7242 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7244 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
7245 * tree-ssa-math-opts.c: Include params.h
7246 (pow_synth_sqrt_info): New struct.
7247 (representable_as_half_series_p): New function.
7248 (get_fn_chain): Likewise.
7249 (print_nested_fn): Likewise.
7250 (dump_fractional_sqrt_sequence): Likewise.
7251 (dump_integer_part): Likewise.
7252 (expand_pow_as_sqrts): Likewise.
7253 (gimple_expand_builtin_pow): Use above to attempt to expand
7254 pow as series of square roots. Removed now unused variables.
7256 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
7258 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
7259 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
7260 Remove *p0 and *p1 arguments. Rewrite function.
7261 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
7262 (alpha_split_const_mov): Update calls to alpha_extract_integer and
7263 alpha_emit_set_long_const.
7264 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
7265 (alpha_output_mi_thunk_osf): Ditto.
7266 * config/alpha/alpha.md (movti): Do not check operands[1]
7269 2015-05-13 Richard Biener <rguenther@suse.de>
7271 PR tree-optimization/66129
7272 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
7274 (vect_schedule_slp_instance): Fix typo.
7276 2015-05-13 David Malcolm <dmalcolm@redhat.com>
7278 * common.opt (fdump-internal-locations): New option.
7279 * input.c: Include diagnostic-core.h.
7280 (get_end_location): New function.
7281 (write_digit): New function.
7282 (write_digit_row): New function.
7283 (dump_location_range): New function.
7284 (dump_labelled_location_range): New function.
7285 (dump_location_info): New function.
7286 * input.h (dump_location_info): New prototype.
7287 * toplev.c (compile_file): Handle flag_dump_locations.
7289 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
7291 * gimple-expr.h (is_gimple_constant): Reorder.
7292 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
7294 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7296 * combine.c (simplify_set): When generating a CC set, if the
7297 source already is in the correct mode, do not wrap it in a
7298 compare. Simplify the rest of that code.
7300 2015-05-13 Richard Biener <rguenther@suse.de>
7302 PR tree-optimization/66123
7303 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
7306 2015-05-13 Richard Biener <rguenther@suse.de>
7309 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
7311 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
7313 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7315 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
7316 * aclocal.m4: Regenerated with automake-1.11.6.
7318 2015-05-13 Tom de Vries <tom@codesourcery.com>
7320 PR tree-optimization/66010
7321 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
7322 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
7323 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
7324 and rval based on do_deref.
7326 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7329 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
7330 link time constants into adress expressions and therefore set
7333 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7336 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
7337 Use SWI248 iterator instead of SWI.
7338 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
7339 Use eq_attr "alternative" "0" instead of match_test in
7340 length_immediate attribute computation.
7341 (*mulvhi4, *mulvhi4_1): New define_insns.
7344 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
7345 SIGNED to get precision of non-negative value.
7347 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7350 * function.c (diddle_return_value_1): Process bounds first.
7351 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
7354 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7356 PR rtl-optimization/64616
7357 * loop-invariant.c (can_move_invariant_reg): New.
7358 (move_invariant_reg): Call above new function to decide whether
7359 instruction can just be moved, skipping creation of temporary
7362 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
7365 * i386.c (ix86_function_sseregparm): Only return -1 if local function
7366 with implied regparm is called from -mno-sse function.
7367 (init_cumulative_args): Output error if ix86_function_sseregparm
7368 return -1 and SSE register would be needed.
7369 (function_arg_advance_32): Likewise.
7370 (function_arg_32): Likewise.
7371 * i386.h (ix86_args): Add decl field.
7373 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
7376 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
7377 inlines across optimization boundary.
7379 2015-05-12 Jason Merrill <jason@redhat.com>
7381 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
7382 string literal and macro name.
7384 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
7386 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
7387 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
7388 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
7390 2015-05-12 David Malcolm <dmalcolm@redhat.com>
7392 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
7393 (-Wmisleading-indentation): New option.
7394 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
7396 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
7398 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
7399 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
7400 (alpha_extract_integer): Ditto.
7401 (alpha_legitimate_constant_p): Ditto.
7402 (alpha_split_tmode_pair): Ditto.
7403 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
7404 (alpha_expand_mov): Ditto.
7405 (print_operand): Remove handling of 'H' modifier.
7406 <case 'm'>: Remove CONST_DOUBLE handling.
7407 (summarize_insn): Handle CONST_WIDE_INT.
7408 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
7410 (movti): Handle CONST_WIDE_INT.
7411 * config/alpha/constraints.md ('H'): Remove constraint definition.
7412 ('G'): Do not match MODE_FLOAT class.
7413 * config/alpha/predicates.md (const0_operand): Also match
7415 (non_add_const_operand): Ditto.
7416 (non_zero_const_operand): Ditto.
7417 (some_operand): Ditto.
7418 (input_operand): Ditto. Handle CONST_WIDE_INT.
7419 (and_operand): Do not match const_double.
7420 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
7422 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
7425 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
7426 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
7427 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7428 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
7429 is_mm_seq_cst, is_mm_sync): New accessor functions.
7430 * builtins.c (expand_builtin_sync_operation,
7431 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
7432 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
7433 (get_memmodel, expand_builtin_atomic_compare_exchange,
7434 expand_builtin_atomic_load, expand_builtin_atomic_store,
7435 expand_builtin_atomic_clear): Use new accessor routines.
7436 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
7437 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
7438 (maybe_emit_sync_lock_test_and_set): Use new accessors and
7439 MEMMODEL_SYNC_ACQUIRE.
7440 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
7441 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
7442 expand_atomic_store): Use new accessors.
7443 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
7444 * tsan.c (instrument_builtin_call): Update check for memory model beyond
7445 final enum to use MEMMODEL_LAST.
7446 * c-family/c-common.c: Use new accessor for memmodel_base.
7447 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
7449 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
7450 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
7451 mem_thread_fence, *dmb): Likewise.
7452 * config/alpha/alpha.c (alpha_split_compare_and_swap,
7453 alpha_split_compare_and_swap_12): Likewise.
7454 * config/arm/arm.c (arm_expand_compare_and_swap,
7455 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
7456 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
7457 atomic_loaddi): Likewise.
7458 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
7460 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
7461 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
7463 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
7464 atomic_store<mode>, atomic_compare_and_swap<mode>,
7465 atomic_exchange<mode>): Use new accessors.
7466 * config/mips/mips.c (mips_process_sync_loop): Likewise.
7467 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
7468 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
7469 rs6000_post_atomic_barrier): Add new cases.
7470 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
7471 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
7472 (atomic_load<mode>): Add new cases and use new accessors.
7473 (store_quadpti): Add new cases.
7474 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
7476 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
7477 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
7480 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
7482 * ipa-devirt.c (type_with_linkage_p): New function.
7483 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
7485 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
7486 (can_be_name_hashed_p): Simplify.
7487 (hash_odr_name): Check that type has linkage before checking if it is
7489 (types_same_for_odr): Likewise.
7490 (odr_name_hasher::equal): Likewise.
7491 (odr_subtypes_equivalent_p): Likewise.
7492 (warn_types_mismatch): Likewise.
7493 (get_odr_type): Likewise.
7494 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
7495 * ipa-utils.h (odr_type_p): Move offline.
7496 * tree.c (need_assembler_name_p): Fix handling of types
7498 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
7500 2015-05-12 David Malcolm <dmalcolm@redhat.com>
7502 * timevar.c (timevar_enable): Delete in favor of...
7503 (g_timer): New global.
7504 (struct timevar_def): Move to timevar.h inside class timer.
7505 (struct timevar_stack_def): Likewise.
7506 (timevars): Delete global in favor of field "m_timevars" within
7507 class timer in timevar.h
7508 (stack): Likewise, in favor of field "m_stack".
7509 (unused_stack_instances): Likewise, in favor of field
7510 "m_unused_stack_instances".
7511 (start_time): Likewise, in favor of field "m_start_time".
7512 (get_time): Eliminate check for timevar_enable.
7513 (timer::timer): New function, built from part of timevar_init.
7514 (timevar_init): Rewrite idempotency test from using
7515 "timevar_enable" bool to using dynamic allocation of "g_timer".
7516 Move rest of implementation into timer's constructor.
7517 (timevar_push_1): Rename to...
7518 (timer::push): ...this, adding "m_" prefixes to variables that
7519 are now fields of timer.
7520 (timevar_pop_1): Likewise, rename to...
7521 (timer::pop): ...this, and add "m_" prefixes.
7522 (timevar_start): Replace test for "timevar_enable" with one for
7523 "g_timer", and move bulk of implementation to...
7524 (timer::start): ...here, adding "m_" prefixes.
7525 (timevar_stop): Likewise, from here...
7526 (timer::stop): ...to here.
7527 (timevar_cond_start): Likewise, from here...
7528 (timer::cond_start): ...to here.
7529 (timevar_cond_stop): Likewise, from here...
7530 (timer::cond_stop): ...to here.
7531 (validate_phases): Rename to...
7532 (timer::validate_phases): ...this, and add "m_" prefixes. Make
7533 locals "total" and "tv" const.
7534 (timevar_print): Rename to...
7535 (timer::print): ...this, and add "m_" prefixes. Make locals
7536 "total" and "tv" const. Eliminate test for timevar_enable.
7537 * timevar.h (timevar_enable): Eliminate.
7538 (g_timer): New declaration.
7539 (timevar_push_1): Eliminate.
7540 (timevar_pop_1): Eliminate.
7541 (timevar_print): Eliminate.
7542 (class timer): New class.
7543 (timevar_push): Rewrite to use g_timer.
7544 (timevar_pop): Likewise.
7545 * toplev.c (toplev::~toplev): Likewise.
7547 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
7549 * arm-protos.h (arm_sched_autopref): Delete.
7550 (tune_params): Re-organize, use enums for flag values.
7551 (FUSE_OPS): New macro.
7552 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
7553 (ARM_PREFETCH_BENEFICIAL): Likewise.
7554 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
7555 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7556 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
7557 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
7558 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
7559 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
7560 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
7561 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
7563 (arm_option_override, thumb2_reorg, arm_print_tune_info)
7564 (aarch_macro_fusion_pair_p): Update uses of current_tune.
7565 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
7567 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
7569 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
7572 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
7573 Sandra Loosemore <sandra@codesourcery.com>
7575 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
7577 (REG_CLASS_NAMES): Add "IJMP_REGS".
7578 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
7579 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
7580 use new "c" register constraint.
7581 * config/nios2/constraint.md (c): New register constraint
7582 corresponding to IJMP_REGS.
7584 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7586 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
7587 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
7588 define_splits): Delete, revamp, transmogrify into ...
7589 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7590 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7591 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7594 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7596 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
7597 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
7599 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7601 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
7602 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
7603 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
7604 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
7605 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
7606 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
7607 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
7608 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
7609 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
7610 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7611 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
7612 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
7613 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
7614 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
7615 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
7616 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
7617 and 30 corresponding splitters): Delete.
7619 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7621 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
7624 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7626 * combine.c (recog_for_combine_1): New function, factored out
7627 from recog_for_combine.
7628 (change_zero_ext): New function.
7629 (recog_for_combine): If recog fails, try again with the pattern
7630 modified by change_zero_ext; if that still fails, restore the
7633 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
7635 * combine.c (get_undo_marker): New function.
7636 (undo_to_marker): New function, largely factored out from ...
7637 (undo_all): ... this. Adjust.
7639 2015-05-12 Richard Biener <rguenther@suse.de>
7641 PR tree-optimization/66101
7642 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
7643 fixup if we turn a loop exit edge to a fallthru edge.
7645 2015-05-12 Richard Biener <rguenther@suse.de>
7647 PR tree-optimization/37021
7648 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
7649 (SLP_TREE_TWO_OPERATORS): New define.
7650 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
7651 SLP_TREE_TWO_OPERATORS.
7652 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
7654 (vect_build_slp_tree): Adjust.
7655 (vect_analyze_slp_cost_1): Likewise.
7656 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
7657 emitting two vector stmts and mixing the results.
7659 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
7661 * call.c (print_z_candidates): Remove dead code.
7663 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7665 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
7666 and zEC12_simple_fp.
7667 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
7670 2015-05-12 Tom de Vries <tom@codesourcery.com>
7672 PR tree-optimization/66010
7673 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
7675 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
7676 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
7677 va_lists are passed, and remove corresponding handling.
7678 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
7679 do_deref argument to ifn_va_arg.
7680 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
7683 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7686 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
7687 REG before taking its REGNO.
7689 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7691 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
7692 rsp->sign_bit_copies and rsp->nonzero_bits into ...
7693 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
7694 present to get more accurate information about the number of sign bit
7695 copies and non zero bits.
7697 2015-05-12 Richard Biener <rguenther@suse.de>
7699 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
7700 do not allow unrolling.
7702 2015-05-11 Richard Henderson <rth@redhat.com>
7704 * config/i386/i386-modes.def (CCP): New.
7705 * config/i386/i386.c (put_condition_code): Handle it.
7706 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
7708 2015-05-11 Richard Henderson <rth@redhat.com>
7710 * target.def (md_asm_clobbers): Replace with...
7711 (md_asm_adjust): this.
7712 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
7713 (TARGET_MD_ASM_ADJUST): New.
7715 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
7716 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
7717 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
7719 * cfgexpand.c (check_operand_nalternatives): Accept vector of
7720 constraints instead of lists of outputs and inputs.
7721 (expand_asm_stmt): Save and restore input_location around the
7722 body of the function. Move asm data into vectors instead of
7723 building tree lists. Generate cleanup sequences as needed,
7724 rather than waiting til the end. Use new md_asm_adjust hook.
7726 * config/vxworks.c: Include vec.h before target.h.
7727 * gimple.c: Likewise.
7728 * incpath.c: Likewise.
7729 * mode-switching.c: Likewise.
7731 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
7732 (cris_md_asm_adjust): this.
7733 (TARGET_MD_ASM_CLOBBERS): Remove.
7734 (TARGET_MD_ASM_ADJUST): New.
7735 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
7736 (ix86_md_asm_adjust): this.
7737 (TARGET_MD_ASM_CLOBBERS): Remove.
7738 (TARGET_MD_ASM_ADJUST): New.
7739 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
7740 (mn10300_md_asm_adjust): this.
7741 (TARGET_MD_ASM_CLOBBERS): Remove.
7742 (TARGET_MD_ASM_ADJUST): New.
7743 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
7744 (rs6000_md_asm_adjust): this.
7745 (TARGET_MD_ASM_CLOBBERS): Remove.
7746 (TARGET_MD_ASM_ADJUST): New.
7747 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
7748 (visium_md_asm_adjust): this.
7749 (TARGET_MD_ASM_CLOBBERS): Remove.
7750 (TARGET_MD_ASM_ADJUST): New.
7752 2015-05-11 Richard Henderson <rth@redhat.com>
7754 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
7755 if noutputs is zero.
7756 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
7758 * cfgexpand.c (expand_asm_operands): Merge into...
7759 (expand_asm_stmt): ... here.
7761 * cfgexpand.c (expand_asm_operands): Don't call
7762 resolve_asm_operand_names.
7763 * stmt.c (resolve_asm_operand_names): Clarify block comment.
7765 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
7767 * dwarf2out.c (gen_member_die): Sanity check that we access
7768 TYPE_MAIN_VARIANT for TYPE_METHODS.
7769 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
7770 checking TYPE_METHODS.
7771 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
7773 (build_distinct_type_copy): Clear TYPE_METHODS.
7774 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
7775 (verify_type): Allow TYPE_METHODS to be error_mark_node.
7776 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
7778 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
7780 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
7781 (emit_pattern_before_setloc): Likewise.
7783 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
7785 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
7786 for define_peephole2s.
7787 (get_peephole2_pattern): New function.
7788 (main): Use it. Call validate_pattern.
7790 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7792 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
7793 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
7794 (Last callee saved reg is different for AVR_TINY architecture)
7796 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
7798 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
7799 when looking for memory references.
7801 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
7804 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
7805 via function pointers.
7807 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
7809 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
7810 indirect call by forcing address into a pseudo with -fno-plt.
7811 * common.opt (flag_plt): New option.
7812 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
7813 ([-fno-plt]): Document.
7815 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
7818 * config/rs6000/option-defaults.h: Add space between string literal
7821 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7823 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
7824 accross ARM targets.
7826 2015-05-11 Christian Bruel <christian.bruel@st.com>
7828 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
7829 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
7831 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
7833 PR rtl-optimization/66076
7834 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7835 Don't grow the heap array if it is already big enough from a
7838 2015-05-11 Christian Bruel <christian.bruel@st.com>
7840 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7841 (is_called_in_ARM_mode): Remove.
7842 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7843 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7844 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7845 arm_declare_function_name.
7847 2015-05-11 Christian Bruel <christian.bruel@st.com>
7849 * config/arm/arm.c (arm_option_override): Reoganized and split into :
7850 (arm_option_params_internal); New function.
7851 (arm_option_check_internal): New function.
7852 (arm_option_override_internal): New function.
7853 (thumb_code, thumb1_code): Remove.
7854 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7855 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7856 (thumb_code, thumb1_code): Remove.
7857 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7859 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
7861 * config/alpha/alpha.c (alpha_emit_set_const_1)
7862 (alpha_emit_set_long_const, alpha_extract_integer)
7863 (alpha_legitimate_constant_p, alpha_split_const_mov)
7864 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7865 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7866 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7868 * config/alpha/predicates.md (mode_mask_operand): Do not match
7870 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7871 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7872 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7873 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7874 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7876 2015-05-11 Jakub Jelinek <jakub@redhat.com>
7879 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7880 default_binds_local_p_2.
7881 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7882 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7884 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7886 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7888 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7890 Patch by Richard Biener
7891 * coverage.c (coverage_obj_init): Delay building of type variant
7892 until the type is finished.
7894 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7896 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7897 mismatch between C and C++ type; compoare correctly ARG_TYPES
7898 for non-prototypes and output correctly parameter index for METHOD_TYPE.
7899 (odr_types_equivalent_p): Fix wording of warning about attributes;
7900 it is OK to match prototype and non-prototype.
7902 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7904 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7905 TYPE_ARG_TYPES list.
7906 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7907 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7909 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7911 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7912 * tree.h (is_lang_specific): Constify.
7914 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
7916 PR tree-optimization/64454
7917 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7920 2015-05-08 Jason Merrill <jason@redhat.com>
7922 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7923 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7924 config/darwin.h, config/darwin9.h, config/elfos.h,
7925 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7926 config/microblaze/microblaze.h, config/mips/mips.h,
7927 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7928 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7929 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7930 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7931 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7932 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7933 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7934 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7935 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7936 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7937 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7938 between string literal and macro name.
7940 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7942 * jump.c: Change argument types to rtx_insn *.
7945 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7947 * lra-constraints.c: Change argument type to rtx_insn *.
7949 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7951 * df-problems.c: Change argument type to rtx_insn *.
7953 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7955 * combine.c: Change argument type to rtx_insn *.
7957 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7960 * rtlanal.c: Change argument type to rtx_insn *.
7962 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7964 * sched-deps.c: Change argument types to rtx_insn *.
7965 * sched-int.h: Adjust.
7967 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7969 * dwarf2cfi.c: Change argument type to rtx_insn *.
7971 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7973 * ira.c (decrease_live_ranges_number): Changetype of local
7974 variable to rtx_insn *.
7975 * recog.c: Change argument types to rtx_insn *.
7978 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7980 * reorg.c: Change argument types to rtx_insn *.
7982 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7984 * ira-color.c: Change argument types to rtx_insn *.
7985 * lra-eliminations.c: Likewise.
7988 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7990 * gcse.c: Change argument types to rtx_insn *.
7992 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7994 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
7996 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7998 * emit-rtl.c (emit_debug_insn_before): Change argument type to
8002 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8004 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
8007 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8009 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
8012 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8014 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
8017 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8019 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
8022 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8024 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
8028 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8030 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
8034 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8036 * except.c (can_nonlocal_goto): Change type of argument to
8040 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8042 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
8045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8047 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
8048 * cfgrtl.c (can_delete_label_p): Adjust.
8051 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8053 * reorg.c (stop_search_p): Change argument to rtx_insn *.
8055 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8057 * except.c (make_reg_eh_region_note): Change argument to
8059 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
8062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8064 * mode-switching.c (commit_mode_sets): Change type of local
8065 variable from rtx to rtx_insn *.
8067 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
8069 * doc/install.texi (--enable-languages): Add missing jit and lto info.
8070 Add ^ to grep command.
8071 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
8072 arg to last gimple_simplify declaration. Add missing gimple_build
8073 declaration for built-in function case with four tree args.
8075 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
8076 Szabolcs Nagy <szabolcs.nagy@arm.com>
8078 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
8079 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
8080 (GNU_USER_DYNAMIC_LINKERN32): Update.
8082 2015-05-08 Richard Biener <rguenther@suse.de>
8084 PR tree-optimization/66036
8085 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8086 Handle strided group loads.
8087 (vect_verify_datarefs_alignment): Likewise.
8088 (vect_enhance_data_refs_alignment): Likewise.
8089 (vect_analyze_group_access): Likewise.
8090 (vect_analyze_data_ref_access): Likewise.
8091 (vect_analyze_data_ref_accesses): Likewise.
8092 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
8093 (vectorizable_load): Likewise.
8095 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
8097 * config/rs6000/rs6000.md: Require operand inequality in one
8100 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
8101 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8103 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
8105 * config/rx/rx.md (movdi, movdf): Likewise.
8106 Likewise for define_peephole2s.
8108 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
8110 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
8111 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
8112 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
8113 vtst_u64): Rewrite using gcc vector extensions.
8115 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
8117 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
8118 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
8120 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
8122 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
8124 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
8126 * config/glibc-stdint.h (OPTION_MUSL): Define.
8127 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
8128 Change the definition based on OPTION_MUSL for 64 bit targets.
8129 * config/linux.h (OPTION_MUSL): Redefine.
8130 * config/alpha/linux.h (OPTION_MUSL): Redefine.
8131 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
8132 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
8134 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
8135 Szabolcs Nagy <szabolcs.nagy@arm.com>
8137 * config.gcc (LIBC_MUSL): New tm_defines macro.
8138 * config/linux.h (OPTION_MUSL): Define.
8139 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
8140 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
8141 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8142 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8143 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8144 * config/linux.opt (mmusl): New option.
8145 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
8146 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8147 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8148 * configure: Regenerate.
8150 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
8151 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8154 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
8155 * config/i386/knetbsd-gnu64.h: New file.
8157 2015-05-08 Marek Polacek <polacek@redhat.com>
8160 * doc/invoke.texi: Document -Woverride-init-side-effects.
8162 2015-05-07 Marek Polacek <polacek@redhat.com>
8165 * doc/invoke.texi: Document -Wshift-negative-value.
8167 2015-05-06 Aditya Kumar <hiraditya@msn.com>
8169 * gcov-tool.c (do_merge): Refactore to remove int ret.
8170 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
8171 !type == FUNC to type != FUNC.
8172 * reload.h (struct target_reload): Changee to type of
8173 x_spill_indirect_levels from bool to unsigned char.
8175 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
8177 * rtl.h (always_void_p): New function.
8178 * gengenrtl.c (always_void_p): Likewise.
8179 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
8180 with code foo are always VOIDmode.
8181 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
8182 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
8183 compare-elim.c, config/aarch64/aarch64.c,
8184 config/aarch64/aarch64.md, config/alpha/alpha.c,
8185 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
8186 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
8187 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
8188 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8189 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
8190 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
8191 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
8192 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
8193 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
8194 config/ia64/vect.md, config/iq2000/iq2000.c,
8195 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
8196 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
8197 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
8198 config/mep/mep.c, config/microblaze/microblaze.c,
8199 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
8200 config/mn10300/mn10300.c, config/msp430/msp430.c,
8201 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
8202 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
8203 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
8204 config/rs6000/altivec.md, config/rs6000/rs6000.c,
8205 config/rs6000/rs6000.md, config/rs6000/vector.md,
8206 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
8207 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
8208 config/sh/sh.md, config/sh/sh_treg_combine.cc,
8209 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
8210 config/spu/spu.md, config/stormy16/stormy16.c,
8211 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
8212 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
8213 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
8214 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
8215 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
8216 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
8217 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
8218 var-tracking.c: Update calls accordingly.
8220 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
8224 * varasm.c (function_mergeable_rodata_prefix): New function.
8225 (mergeable_string_section): Use it.
8226 (mergeable_constant_section): Use it.
8228 2015-05-07 Jeff Law <law@redhat.com>
8231 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8232 simplifier to narrow arithmetic.
8233 * generic-match-head.c: (types_match, single_use): New functions.
8234 * gimple-match-head.c: (types_match, single_use): New functions.
8236 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8238 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
8241 2015-05-07 Richard Biener <rguenther@suse.de>
8243 PR tree-optimization/66002
8244 * passes.def: Schedule another pass_merge_phi after ifcombine, right
8247 2015-05-07 Marek Polacek <polacek@redhat.com>
8248 Martin Uecker <uecker@eecs.berkeley.edu>
8250 * doc/invoke.texi: Document -fsanitize=bounds-strict.
8251 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
8252 into SANITIZE_NONDEFAULT.
8253 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
8255 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
8258 * config/alpha/alpha.c (alpha_override_options_after_change): New.
8259 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
8260 (alpha_override_options): Move align_loops, align_jumps and
8261 align_functions handling into alpha_override_options_after_change.
8263 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
8264 Chris Jones <chrisj@nvidia.com>
8265 Joshua Conner <jconner@nvidia.com>
8267 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
8268 linking of crtfastmath.o.
8269 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
8271 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8273 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
8274 (cstore<mode>4_unsigned_imm): New expander.
8275 (cstore<mode>4): Remove empty constraint strings. Use the new
8278 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
8281 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
8284 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8286 * config/aarch64/geniterators.sh: Use standard BRE in sed.
8288 2015-05-06 Alan Modra <amodra@gmail.com>
8291 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
8292 (UNSPEC_NOP): Define.
8293 (reload_vsx_from_gpr<mode>): Add missing DONE.
8294 (reload_gpr_from_vsx<mode>): Likewise.
8295 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
8296 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
8298 2015-05-06 Christian Bruel <christian.bruel@st.com>
8301 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
8302 align_jumps, align_functions into aarch64_override_options_after_change.
8304 2015-05-06 Richard Biener <rguenther@suse.de>
8306 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
8307 vect_transform_slp_perm_load to check if we support a permutation
8308 for basic-block vectorization.
8310 2015-05-06 Nick Clifton <nickc@redhat.com>
8312 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
8313 used, even if it is not being used as a frame pointer.
8315 2015-05-05 Jason Merrill <jason@redhat.com>
8317 * dwarf2out.c (gen_member_die): Don't emit anything for an
8318 anonymous class constructor.
8320 2015-05-05 David Malcolm <dmalcolm@redhat.com>
8322 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
8323 that it reflects the block structure.
8324 (afdo_propagate_edge): Likewise.
8325 (afdo_calculate_branch_prob): Likewise.
8326 (afdo_annotate_cfg): Likewise.
8327 * cfgcleanup.c (equal_different_set_p): Likewise.
8328 (try_crossjump_to_edge): Likewise.
8329 * cgraph.c (cgraph_node::verify_node): Likewise.
8330 * cgraphunit.c (expand_all_functions): Likewise.
8331 * config/i386/i386.c (ix86_expand_copysign): Likewise.
8332 (exact_dependency_1): Likewise.
8333 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
8334 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
8335 * gensupport.c (process_define_subst): Likewise.
8336 * lto-wrapper.c (merge_and_complain): Likewise.
8337 * tree-if-conv.c (if_convertible_bb_p): Likewise.
8338 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
8339 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
8340 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8341 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8342 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
8343 * tree-vect-stmts.c (vectorizable_shift): Likewise.
8344 * tree-vrp.c (vrp_finalize): Likewise.
8345 * tree.c (variably_modified_type_p): Likewise.
8347 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
8349 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
8350 on darwin12 and later.
8351 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
8352 file to pass -rdynamic on darwin12 and later.
8353 * config/darwin.opt (rdynamic): Add.
8355 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8357 * doc/extend.texi (C Extensions): Update menu for moved Variable
8358 Attributes and Type Attributes sections.
8360 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8363 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
8364 if rep_8byte stringop strategy was specified for 32-bit target.
8366 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
8369 * config/i386/i386.md (vector convert to float spltiter): Check for
8370 xmm16+, when splitting scalar float conversion.
8371 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
8373 2015-05-05 Nick Clifton <nickc@redhat.com>
8375 * config/msp430/msp430-opts.h (enum msp430_regions): New.
8376 * config/msp430/msp430.c (msp430_override_options): Complain if
8377 -mcode-region or -mdata-region is used on a non MSP430X.
8378 (msp430_section_attr): New function. Checks lower, upper and
8380 (msp430_attribute_table): Add lower, upper and either.
8381 (gen_prefix): New function. Generates a prefix for a section
8383 (msp430_select_section): New function - handles the choice of
8384 section for an object. Takes into account memory region
8385 attributes and options.
8386 (msp430_function_section): Use gen_prefix.
8387 (TARGET_SECTION_TYPE_FLAGS): Define.
8388 (msp430_section_type_flags): New function.
8389 (TARGET_ASM_UNIQUE_SECTION): Define.
8390 (msp430_unique_section): New function.
8391 (msp430_output_aligned_decl_common): New function.
8392 (msp430_do_not_relax_short_jumps): New function.
8393 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
8395 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8396 * config/msp430/msp430-protos.h
8397 (msp430_do_not_relax_short_jumps): New prototype.
8398 (msp430_output_aligned_decl_common): New prototype.
8399 * config/msp430/msp430.md (length): New attribute.
8400 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
8401 then use a long code sequence for short jumps.
8402 * config/msp430/msp430.opt (mcode-region): New.
8403 (mdata-region): New.
8404 * doc/invoke.texi: Document new options.
8405 * doc/extend.texi: Document new attributes.
8407 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
8409 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
8410 (tune_params): Add field branch_costs.
8411 (aarch64_branch_cost): Declare.
8412 * gcc/config/aarch64.c (generic_branch_cost): New.
8413 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
8414 (cortexa53_tunings): Likewise.
8415 (cortexa57_tunings): Likewise.
8416 (thunderx_tunings): Likewise.
8417 (xgene1_tunings): Likewise.
8418 (aarch64_branch_cost): Define.
8419 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
8421 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8423 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
8424 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
8425 * config/i386/i386.md: Ditto.
8426 * config/i386/winnt.c: Ditto.
8428 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
8430 * doc/extend.texi (__atomic Builtins): Move implementation details
8431 to the end of the description, rewrite opening paragraphs, state
8432 difference with __sync builtins, state C11/C++11 assumptions,
8433 weaken itemized descriptions, add explanation of memory model
8434 behaviour, expand description of compare-exchange, simplify text.
8436 2015-05-05 Renlin Li <renlin.li@arm.com>
8438 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
8440 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
8442 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
8443 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8444 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
8445 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8446 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
8447 * configure: Regenerate.
8448 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
8449 * doc/install.texi (aarch64*-*-*): Document new
8450 --enable-fix-cortex-a53-843419 option.
8451 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
8452 and -mno-fix-cortex-a53-843419 options.
8454 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
8457 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
8459 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
8461 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
8462 fix overactive TYPE_MIN_VALUE check and add FIXME for type
8463 compatibility problems.
8465 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
8467 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
8469 (cbranchsi4_reg): New.
8470 * config/microblaze/microblaze.c
8471 (microblaze_expand_conditional_branch_reg): New.
8472 * config/microblaze/microblaze-protos.h
8473 (microblaze_expand_conditional_branch_reg): New prototype.
8475 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
8477 * config/microblaze/microblaze.md (peephole2): New.
8479 2015-05-04 Jeff Law <law@redhat.com>
8482 2015-05-04 Jeff Law <law@redhat.com>
8484 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8485 simplifier to narrow arithmetic.
8486 * generic-match-head.c: (types_match, single_use): New functions.
8487 * gimple-match-head.c: (types_match, single_use): New functions.
8489 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8492 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
8493 (split_branches): Likewise.
8495 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
8497 * common.opt (fdelete-null-pointer-checks): Init to -1.
8498 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
8499 override flag_delete_null_pointer_checks default.
8500 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
8501 behavior re address zero. Better document target-specific behavior.
8502 (-fisolate-errneous-paths-dereference): Mention relationship to
8503 -fdelete-null-pointer-checks.
8505 2015-05-04 Jakub Jelinek <jakub@redhat.com>
8507 PR tree-optimization/65984
8508 * ubsan.c: Include tree-cfg.h.
8509 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
8510 stmt_could_throw_p test, rename can_throw variable to ends_bb.
8512 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
8514 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
8515 to CONST_DOUBLE_P predicate.
8516 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
8517 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
8518 allow only operands that satisfy standard_sse_constant_p predicate.
8519 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
8520 to CONST_DOUBLE_P predicate.
8522 2015-05-04 Jeff Law <law@redhat.com>
8524 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8525 simplifier to narrow arithmetic.
8526 * generic-match-head.c: (types_match, single_use): New functions.
8527 * gimple-match-head.c: (types_match, single_use): New functions.
8529 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
8531 * config/arm/arm.c: Restore bootstrap.
8533 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
8535 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
8536 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
8537 as CONST_WIDE_INT, not CONST_DOUBLE.
8538 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
8539 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
8540 (ix86_find_base_term): Do not check for CONST_DOUBLE.
8541 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
8542 (ix86_build_signbit_mask): Rewrite using wide ints.
8543 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
8544 (ix86_rtx_costs): Handle CONST_WIDE_INT.
8545 (find_constant): Ditto.
8546 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
8548 * config/i386/predicates.md (x86_64_immediate_operand)
8549 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8550 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
8551 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8552 (const0_operand): Also match const_wide_int.
8553 (constm1_operand): Ditto.
8554 (const1_operand): Ditto.
8556 2015-05-04 Richard Biener <rguenther@suse.de>
8558 PR tree-optimization/65965
8559 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8560 store groups at gaps.
8562 2015-05-04 Richard Biener <rguenther@suse.de>
8564 PR tree-optimization/65935
8565 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
8566 then make sure to apply that swapping to the IL.
8568 2015-05-04 Jakub Jelinek <jakub@redhat.com>
8570 * Makefile.in (PATCHLEVEL_c): New variable.
8571 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
8572 expand the same way as if DEVPHASE_c was non-empty.
8574 2015-05-04 Kai Tietz <ktietz@redhat.com>
8577 * lto-wrapper.c (run_gcc): Open filename
8580 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
8582 * doc/extend.texi (Variable Attributes, Type Attributes): Move
8583 sections up in file, to immediately after the Function Attributes
8586 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
8588 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
8590 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8592 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
8593 (insert_partition_copy_on_edge): Adjust.
8594 (insert_rtx_to_part_on_edge): Likewise.
8595 (insert_part_to_rtx_on_edge): Likewise.
8597 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8599 * function.c (set_return_jump_label): Change type of argument to
8601 * function.h (set_return_jump_label): Adjust.
8603 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8605 * reload.h (struct reg_equivs_t): Change type of init to
8607 * ira.c (fix_reg_equiv_init): Adjust.
8608 * reload1.c (eliminate_regs_1): Likewise.
8609 (init_eliminable_invariants): Likewise.
8611 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8613 * cselib.c (fp_setter_insn): Take a rtx_insn *.
8614 * cselib.h (fp_setter_insn): Adjust.
8616 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8618 * recog.c (struct validate_replace_src_data): Change type of
8619 insn field to rtx_insn *.
8620 (validate_replace_src_group): Change type of argument to rtx_insn *.
8621 * recog.h (validate_replace_src_group): Adjust.
8623 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8625 * haifa-sched.c: Change the type of some variables to rtx_insn *.
8626 * sched-deps.c: Likewise.
8627 * sched-int.h: Likewise.
8628 * sched-rgn.c: Likewise.
8629 * sel-sched.c: Likewise.
8631 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8634 * config/i386/i386.c: Change the type of some arguments to
8636 * config/arm/arm.c: Likewise.
8638 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8640 * lra-constraints.c: Change type of some arguments to rtx_insn *.
8642 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8644 * regcprop.c (kill_autoinc_value): Change type of argument to
8647 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8649 * genrecog.c (print_subroutine): Adjust.
8650 * recog.c (get_bool_attr_mask_uncached): Likewise.
8651 * recog.h (struct recog_data_d): Change the type of insn to
8654 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8656 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
8658 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8660 * df-problems.c (df_set_note): Change type of argument to
8663 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8665 * builtins.c (expand_builtin_trap): Change type of local
8666 variable to rtx_insn *.
8667 (add_sched_insns_for_speculation): Likewise.
8668 (ix86_emit_save_regs): Likewise.
8669 (get_scratch_register_on_entry): Likewise.
8670 (ix86_emit_restore_reg_using_pop): Likewise.
8671 (ix86_emit_leave): Likewise.
8672 (ix86_emit_restore_regs_using_mov): Likewise.
8673 (ix86_expand_epilogue): Likewise.
8675 (rl78_alloc_physical_registers_umul): Likewise.
8676 * cselib.c (discard_useless_locs): Likewise.
8677 (cselib_invalidate_regno): Likewise.
8678 (cselib_invalidate_mem): Likewise.
8679 * function.c (expand_function_start): Likewise.
8680 (emit_use_return_register_into_block): Likewise.
8682 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
8683 * ifcvt.c (noce_get_alt_condition): Likewise.
8684 * loop-doloop.c (doloop_condition_get): Likewise.
8685 * lra-constraints.c (inherit_in_ebb): Likewise.
8686 * modulo-sched.c (sms_schedule_by_order): Likewise.
8687 * recog.c (next_insn_tests_no_inequality): Likewise.
8688 * reorg.c (emit_delay_sequence): Likewise.
8689 (update_reg_dead_notes): Likewise.
8690 (fix_reg_dead_note): Likewise.
8691 (fill_slots_from_thread): Likewise.
8692 (delete_computation): Likewise.
8694 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
8696 * doc/extend.texi (Variable Attributes): Add menu and proper
8697 @nodes to subsections. Move Microsoft Windows attributes to
8698 their own subsection.
8699 (Type Attributes): Reorganize introduction to remove duplicate
8700 list of attributes. Add menu and proper @nodes to subsections.
8701 Alphabetize the main table of common attributes.
8703 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
8705 * match.pd: New simplification patterns.
8706 (x + (x & 1)) -> ((x + 1) & ~1)
8707 (x & ~(x & y)) -> ((x & ~y))
8708 (x | ~(x | y)) -> ((x | ~y))
8710 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8712 * target.def (attribute_table): Mention that struct attribute_spec
8713 is defined in tree-core.h rather than tree.h
8714 * doc/tm.texi: Regenerate.
8716 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
8718 * genrecog.c (test): Rename to rtx_test. Update rest of file
8721 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
8723 PR translation/65959
8724 * params.h (DEFPARAM): Rename msgid to nocmsgid.
8726 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
8728 * gcc/config/aarch64/aarch64-protos.h (tune_params):
8729 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
8730 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
8731 Return value depending on target.
8732 (generic_tunings): Initialize new target settings.
8733 (cortexa53_tunings): Likewise.
8734 (cortexa57_tunings): Likewise.
8735 (thunderx_tunings): Likewise.
8736 (xgene1_tunings): Likewise.
8738 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
8740 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
8741 Make Cortex-A53 shift costs more accurate.
8743 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8745 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
8748 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
8750 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
8751 Calculate cost of op0 and op1 in PLUS and MINUS cases.
8753 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8755 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8756 Add cost of op0 in the compare-with-fpzero case.
8758 2015-04-30 David Malcolm <dmalcolm@redhat.com>
8760 * builtins.c (fold_builtin_1): Remove spurious second
8762 * cgraph.h (symtab_node::get_availability): Likewise.
8763 * opts.c (common_handle_option): Remove spurious second semicolon.
8764 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8765 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8767 2015-04-30 Caroline Tice <cmtice@google.com>
8769 PR gcov-profile/65929
8770 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
8771 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
8772 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
8773 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
8774 * doc/tm.texi: Regenerate.
8775 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
8776 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
8777 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
8778 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
8780 2015-04-30 Marek Polacek <polacek@redhat.com>
8782 * varasm.c (handle_cache_entry): Fix logic.
8784 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8786 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
8787 (*extrsi5_insn_uxtw_alt): Likewise.
8788 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
8789 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
8792 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8794 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
8797 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8799 * config/aarch64/aarch64.md
8800 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
8801 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
8802 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
8803 appropriately. Handle alternative EON form.
8805 2015-04-30 Renlin Li <renlin.li@arm.com>
8807 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
8808 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
8810 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
8813 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
8814 -fstrict-aliasing boundaries.
8816 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8818 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
8819 and [SU]MNEGL patterns.
8821 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8823 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
8824 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
8825 combined arithmetic-shift ops. Properly handle all shift and extend
8826 operations that can occur in combination with PLUS/MINUS.
8827 Rename maybe_fma to compound_p.
8828 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
8829 arithmetic and shift operations.
8831 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8833 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8834 rather than arith_shift cost when costing ADD/MINUS of an
8837 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
8840 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8843 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
8845 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8846 are for the same position.
8848 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
8850 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
8852 (vectorize_loops): Use it.
8854 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8856 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8857 for aggregate types.
8858 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8860 * tree.c (need_assembler_name_p): Compute mangled name for
8861 non-fundamental types and integer types.
8863 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
8865 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8867 * expr.c (expand_expr_real_2): Likewise.
8869 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8871 * tree.c (build_common_builtin_nodes): Do not build
8872 __builtin_alloca_with_align as equivalent of library alloca.
8874 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8876 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8877 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8879 * tree.c: Include print-tree.h and ipa-utils.h
8880 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8881 (free_lang_data_in_cgraph): Call verify_type.
8882 (verify_type_variant): New function.
8883 (verify_type): New function.
8884 * tree.h (verify_type): Declare.
8886 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
8888 * config/mips/mips-cpus.def: (mips4): Change default processor
8889 from PROCESSOR_R8000 to PROCESSOR_R10000.
8891 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
8893 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8894 la/jalr instead of jal.
8896 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
8899 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8900 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8901 (setcc+movzbl peephole2): Check also clobbered reg.
8902 (setcc+andl peephole2): Ditto.
8904 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8907 * config/nvptx/mkoffload.c (target_ilp32): New variable.
8908 (main): Set it depending on "-foffload-abi=[...]".
8909 (compile_native, main): Use it to pass "-m32" or "-m64" to the
8912 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8915 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8916 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8917 Flip lane index back at assembly time for bigendian.
8919 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8921 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8922 * gimplify.c (gimplify_omp_workshare): Use it.
8924 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8926 * Makefile.in (build/genrecog.o): Depend on inchash.h.
8927 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8929 * genrecog.c: Rewrite most of the code except for the third page.
8931 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8933 * inchash.h, inchash.c: Include bconfig.h for build objects.
8934 * Makefile.in (build/inchash.o): New rule.
8936 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
8939 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8940 number in type attribute expression.
8942 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8944 * loop-iv.c (canon_condition): Generalize to all types of integer
8947 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
8949 * gimple-walk.c: Prune duplicate or unneeded includes.
8950 (walk_gimple_asm): Only call parse_input_constraint or
8951 parse_output_constraint if their findings are used.
8952 Honour parse_input_constraint and parse_output_constraint
8955 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8957 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8959 2015-04-29 Tom de Vries <tom@codesourcery.com>
8961 PR tree-optimization/65893
8962 * passes.def (pass_all_optimizations): Move pass_stdarg to after
8965 2015-04-29 Richard Biener <rguenther@suse.de>
8967 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8968 compute GROUP_SIZE for basic-block SLP.
8969 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8970 take into account gaps.
8971 (vect_get_mask_element): Properly reject references to previous
8973 (vect_transform_slp_perm_load): Likewise.
8975 2015-04-29 Christian Bruel <christian.bruel@st.com>
8978 * config/i386/i386.c (ix86_default_align): New function.
8979 (ix86_override_options_after_change): Call ix86_default_align.
8980 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8981 (ix86_override_options_after_change): New function.
8983 2015-04-28 Jeff Law <law@redhat.com>
8985 * tree-ssa-dom.c (record_equality); Fix comment typos.
8987 2015-04-28 Tom de Vries <tom@codesourcery.com>
8989 PR tree-optimization/65887
8990 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
8992 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
8994 * doc/extend.texi (Declaring Attributes of Functions): Split into
8995 subsections by target. Alphabetize the table of common attributes.
8996 Rewrite some of the introductory text to reflect the new structure.
8997 Update some cross-references to point to the new subsections.
8998 (Attribute Syntax): Put paragraph about "__" naming here. Remove
8999 duplicate copies in the discussion of function, label, and type
9002 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
9005 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
9007 2015-04-28 Jason Merrill <jason@redhat.com>
9010 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
9011 (finalize_type_size): Respect TYPE_USER_ALIGN.
9012 (layout_type) [ARRAY_TYPE]: Likewise.
9014 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
9016 * config/arm/arm.md (*arm_movt): Fix type attribute.
9017 (*cmpsi_shiftsi): Likewise.
9018 (*cmpsi_shiftsi_swp): Likewise.
9019 (*movsicc_insn): Likewise.
9020 (*cond_move): Likewise.
9021 (*if_plus_move): Likewise.
9022 (*if_move_plus): Likewise.
9023 (*if_arith_move): Likewise.
9024 (*if_move_arith): Likewise.
9025 (*if_shift_move): Likewise.
9026 (*if_move_shift): Likewise.
9027 (*arm_movtas_ze): Likewise.
9028 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
9029 redundancy and type attribute.
9030 (*thumb2_movsi_insn): Fix type attribute.
9031 (*thumb2_addsi_short): Likewise.
9032 (thumb2_addsi3_compare0): Likewise.
9033 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
9034 attributes accordingly.
9036 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
9039 * function.c (pad_to_arg_alignment): Add parentheses.
9041 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
9043 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
9044 libgcc/config/frv/elf-lib.h.
9046 2015-04-28 Tom de Vries <tom@codesourcery.com>
9048 * tree-call-cdce.c: Fix example in header comment.
9050 2015-04-28 Richard Biener <rguenther@suse.de>
9052 PR tree-optimization/62283
9053 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
9054 fails fatally and we are vectorizing a basic-block simply
9055 cause the child to be constructed piecewise.
9056 (vect_analyze_slp_cost_1): Adjust.
9057 (vect_detect_hybrid_slp_stmts): Likewise.
9058 (vect_bb_slp_scalar_cost): Likewise.
9059 (vect_get_constant_vectors): For piecewise constructed
9060 constants place them after the last def.
9061 (vect_get_slp_defs): Adjust.
9062 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
9063 externals for basic-block vectorization.
9065 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9068 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
9070 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
9071 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
9072 (AARCH64_TUNE_FMA_STEERING): Likewise.
9073 * config/aarch64/aarch64-cores.def: Set
9074 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
9075 FMUL/FMADD instructions.
9076 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
9077 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
9078 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
9079 * config/aarch64/cortex-a57-fma-steering.h: New file.
9080 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9082 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
9084 * gensupport.c (std_preds): Add missing codes to address_operand entry.
9086 2015-04-28 Richard Biener <rguenther@suse.de>
9088 PR tree-optimization/65851
9089 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
9090 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
9091 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
9092 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
9093 (ccp_visit_phi_node): Adjust.
9094 (evaluate_stmt): For simplifications to SSA names return its
9095 lattice value if that isn't VARYING. Return immediately when
9096 simplified to a constant.
9097 (visit_assignment): Adjust.
9098 (ccp_visit_stmt): Likewise.
9100 2015-04-28 Tom de Vries <tom@codesourcery.com>
9102 PR tree-optimization/65818
9103 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
9106 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9108 * calls.c (save_fixed_argument_area): Don't check
9109 ARGS_GROW_DOWNWARD with the preprocessor.
9110 (restore_fixed_argument_area): Likewise.
9111 (mem_overlaps_already_clobbered_arg_p): Likewise.
9112 (check_sibcall_argument_overlap): Likewise.
9113 (expand_call): Likewise.
9114 (emit_library_call_value_1): Likewise.
9115 (store_one_arg): Likewise.
9116 * function.c (assign_parms): Likewise.
9117 (locate_and_pad_parm): Likewise.
9118 (pad_to_arg_alignment): Likewise.
9119 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9121 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9123 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
9124 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
9125 * calls.c (save_fixed_argument_area): Don't chekc if
9126 ARGS_GROW_DOWNWARD is defined.
9127 (restore_fixed_argument_area): Likewise.
9128 (mem_overlaps_already_clobbered_arg_p): Likewise.
9129 (check_sibcall_argument_overlap): Likewise.
9130 (expand_call): Likewise.
9131 (emit_library_call_value_1): Likewise.
9132 (store_one_arg): Likewise.
9133 * function.c (assign_parms): Likewise.
9134 (locate_and_pad_parm): Likewise.
9135 (pad_to_arg_alignment): Likewise.
9136 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9138 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9140 * defaults.h (gen_epilogue): New function.
9141 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
9143 * cfgrtl.c (cfg_layout_finalize): Likewise.
9144 * df-scan.c: Likewise.
9145 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9146 (reposition_prologue_and_epilogue_notes): Likewise.
9147 * reorg.c (find_end_label): Likewise.
9148 * toplev.c: Likewise.
9150 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9152 * bb-reorder.c (HAVE_return): Don't check if its undefined.
9153 * defaults.h (gen_simple_return): New function.
9154 (gen_simple_return): Likewise.
9155 (HAVE_return): Add default definition to false.
9156 (HAVE_simple_return): Likewise.
9157 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
9158 HAVE_return and HAVE_simple_return are defined.
9159 * function.c (gen_return_pattern): Likewise.
9160 (convert_jumps_to_returns): Likewise.
9161 (thread_prologue_and_epilogue_insns): Likewise.
9162 * reorg.c (find_end_label): Likewise.
9163 (dbr_schedule): Likewise.
9164 * shrink-wrap.c: Likewise.
9165 * shrink-wrap.h: Likewise.
9167 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9169 * defaults.h (EPILOGUE_USES): Add default definition of false.
9170 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
9171 * resource.c (init_resource_info): Likewise.
9173 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9175 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
9177 * dwarf2out.c (field_byte_offset): REmove check if
9178 PCC_BITFIELD_TYPE_MATTERS is defined.
9179 * stor-layout.c (layout_decl): Likewise.
9180 (update_alignment_for_field): Likewise.
9181 (place_field): Likewise.
9183 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9185 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
9187 * regrename.c (check_new_reg_p): Remove check if
9188 HARD_REGNO_RENAME_OK is defined.
9189 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
9191 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9193 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
9194 * cse.c (fold_rtx): Likewise.
9195 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
9196 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
9197 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
9198 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
9199 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
9200 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
9201 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
9202 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
9203 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
9204 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
9206 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
9207 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
9208 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
9209 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
9210 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
9211 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
9212 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
9213 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
9214 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
9215 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
9216 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
9217 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
9218 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
9219 * doc/tm.texi: Regenerate.
9220 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
9221 either true or false.
9223 2015-04-27 Jeff Law <law@redhat.com>
9225 PR tree-optimization/65217
9226 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
9227 of them has a single use, make sure it is the LHS of the implied
9230 2015-04-28 Alan Modra <amodra@gmail.com>
9233 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
9234 (offsettable_ok_by_alignment): Use minimum of decl and toc
9235 pointer alignment. Replace dead code with assertion.
9236 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
9237 case if size exceeds toc pointer alignment.
9238 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
9239 (rs6000_emit_move): Likewise.
9240 * configure.ac: Add linker toc pointer alignment check.
9241 * configure: Regenerate.
9242 * config.in: Regenerate.
9244 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
9246 * config.gcc: Add h8300-*-linux.
9247 * config/h8300/linux.h: New.
9248 * config/h8300/t-linux: New.
9249 * config/h8300/h8300.c (h8300_option_override): Normal mode
9250 is not supported for h8300-*-linux.
9251 (h8300_file_start): Target priority change.
9252 (get_shift_alg): Likewise.
9253 (h8300_shift_need_scratch_p): Likewise.
9254 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9255 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
9257 2015-04-27 Caroline Tice <cmtice@google.com>
9259 * final.c (final_scan_insn): Output cold_function_name as function
9261 * varasm.c (cold_function_name): Make global.
9262 (assemble_start_function): Re-set cold_function_name.
9263 (assemble_end_function): Output cold partition size.
9264 * varasm.h (cold_function_name): Declare global.
9266 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
9268 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
9269 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
9271 (*movxi_internal_avx512f): Ditto.
9272 (define_split): Check for xmm16+, when splitting scalar float_extend.
9273 (*extendsfdf2_mixed): Use "v" constraint.
9274 (define_split): Check for xmm16+, when splitting scalar float_truncate.
9275 (*truncdfsf_fast_sse): Use "v" constraint.
9276 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
9277 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
9278 (define_peephole2): Check for xmm16+, when converting scalar
9280 (define_peephole2): Check for xmm16+, when converting scalar
9282 (*fop_<mode>_comm_mixed): Use "v" constraint.
9283 (*fop_<mode>_comm_sse): Ditto.
9284 (*fop_<mode>_1_mixed): Ditto.
9285 (*sqrt<mode>2_sse): Ditto.
9286 (*ieee_s<ieee_maxmin><mode>3): Ditto.
9288 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9290 * combine.c (simplify_if_then_else): Use std::swap instead
9291 of manually swapping.
9292 (known_cond): Likewise.
9293 (simplify_comparison): Likewise.
9295 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
9298 * config/rs6000/htm.md: Remove all define_expands.
9299 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
9300 UNSPECV_HTM_TABORTWCI): Remove.
9301 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
9302 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
9303 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
9304 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
9305 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
9306 tabortwci_internal): Remove define_insns.
9307 (tabort<wd>c, tabort<wd>ci): New define_insns.
9308 (tabort): Use gpc_reg_operand.
9309 (tcheck): Remove operand.
9310 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
9311 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
9313 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
9314 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
9315 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
9316 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
9317 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
9318 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
9319 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
9320 (tcheck): Remove builtin argument.
9321 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
9323 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
9324 tabortdc and tabortdci builtins when not in 64-bit mode.
9325 Modify code to handle the loss of the HTM define_expands.
9326 Emit code to copy the CR register to TARGET.
9327 (htm_init_builtins): Modify code to handle the loss of the HTM
9329 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
9330 (RS6000_BTC_64BIT): Likewise.
9331 (RS6000_BTC_CR): New macro.
9332 * doc/extend.texi: Update documentation for htm builtins.
9334 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9336 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
9337 of manually swapping.
9338 (simplify_associative_operation): Likewise.
9339 (simplify_binary_operation): Likewise.
9340 (simplify_plus_minus): Likewise.
9341 (simplify_relational_operation): Likewise.
9342 (simplify_ternary_operation): Likewise.
9344 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
9346 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
9347 (xs_hi_nonmemory_operand): Remove error.
9348 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
9349 general_operand rather than xs_hi_general_operand.
9351 2015-04-27 Richard Biener <rguenther@suse.de>
9353 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
9354 (record_equivalences_from_stmt): Valueize rhs.
9355 (record_equality): Canonicalize x and y order via
9356 tree_swap_operands_p. Do not swap operands for same loop depth.
9358 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
9362 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
9363 Add hint how to use own spec file.
9365 2015-04-27 Jakub Jelinek <jakub@redhat.com>
9367 PR tree-optimization/65875
9368 * tree-vrp.c (update_value_range): If in is_new case setting
9369 old_vr to VR_VARYING, also set new_vr to it. Remove
9370 old_vr->type == VR_VARYING test.
9371 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
9372 SSA_PROP_INTERESTING if update_value_range returned true,
9373 but new range is VR_VARYING.
9375 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
9377 * combine.c (sign_extend_short_imm): New.
9378 (set_nonzero_bits_and_sign_copies): Use above new function for sign
9379 extension of src short immediate.
9380 (reg_nonzero_bits_for_combine): Likewise for tem.
9382 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
9384 * stor-layout.c (self_referential_component_ref_p): New predicate.
9385 (copy_self_referential_tree_r): Use it.
9386 (self_referential_size): Punt for simple operations directly involving
9387 self-referential component references.
9388 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
9390 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
9392 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
9394 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
9396 * vec.h (vec): Make splice arguments const. Update definitions
9399 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
9401 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
9404 2015-04-26 Tom de Vries <tom@codesourcery.com>
9406 PR tree-optimization/65826
9407 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
9409 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
9411 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
9412 (*madd3<mode>): Ditto.
9413 (*msub4<mode>): Ditto.
9414 (*msub3<mode>): Ditto.
9415 (*nmadd4<mode>): Ditto.
9416 (*nmadd3<mode>): Ditto.
9417 (*nmadd4<mode>_fastmath): Ditto.
9418 (*nmadd3<mode>_fastmath): Ditto.
9419 (*nmsub4<mode>): Ditto.
9420 (*nmsub3<mode>): Ditto.
9421 (*nmsub4<mode>_fastmath): Ditto.
9422 (*nmsub3<mode>_fastmath): Ditto.
9424 2015-04-24 Jason Merrill <jason@redhat.com>
9427 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
9428 down when building TYPE_CANONICAL.
9429 (build_pointer_type_for_mode): Likewise.
9431 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
9433 * genrecog.c (validate_pattern): Check matching constraint refers
9434 to a lower numbered operand.
9436 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9439 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
9440 save to independent variables use the Save attribute. This will
9441 allow these options to be modified with the #pragma/attribute
9443 (-mallow-movmisalign): Likewise.
9444 (-mallow-df-permute): Likewise.
9445 (-msched-groups): Likewise.
9446 (-malways-hint): Likewise.
9447 (-malign-branch-targets): Likewise.
9448 (-mvectorize-builtins): Likewise.
9449 (-msave-toc-indirect): Likewise.
9451 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
9452 can be set via the #pragma/attribute target support.
9453 (rs6000_opt_vars): Likewise.
9454 (rs6000_inner_target_options): If VSX was set, also set
9455 -mno-avoid-indexed-addresses.
9457 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9459 * config/arm/iterators.md (shiftable_ops): Rename to...
9460 (SHIFTABLE_OPS): ... This. Update use in comments.
9461 (ior_xor): Rename to...
9462 (IOR_XOR): ... This.
9463 (vqh_ops): Rename to...
9464 (VQH_OPS): ... This.
9465 (vqhs_ops): Rename to...
9466 (VQHS_OPS): ... This.
9467 (rshifts): Rename to...
9468 (RSHIFTS): ... This.
9469 (returns): Rename to...
9470 (RETURNS): ... This.
9471 * config/arm/arm.md: Update uses of the above.
9472 * config/arm/neon.md: Likewise.
9474 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9476 * config.host (case ${host}): Add aarch64*-*-linux case.
9477 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
9478 fields to all the cores.
9479 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
9480 Add MCPU_MTUNE_NATIVE_SPECS.
9481 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
9482 field to all extensions.
9483 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
9484 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
9485 Adjust definition of AARCH64_OPT_EXTENSION.
9486 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
9487 (MCPU_MTUNE_NATIVE_SPECS): Define.
9488 * config/aarch64/driver-aarch64.c: New file.
9489 * config/aarch64/x-arch64: New file.
9490 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
9493 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
9494 Wei Mi <wmi@google.com>
9496 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
9497 * config/i386/i386.c (extract_base_offset_in_addr): New function.
9498 (ix86_operands_ok_for_move_multiple): Ditto.
9499 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
9500 (movlpd/movhpd to movupd peephole2): Ditto.
9502 2015-04-24 Marek Polacek <polacek@redhat.com>
9505 * input.h (from_macro_expansion_at): Define.
9508 * doc/invoke.texi: Update description of -Wlogical-op.
9510 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9512 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
9513 ternary operator in fprintf and harmonize spacing.
9515 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
9517 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
9518 Mark operand1 commutative.
9520 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
9522 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
9523 input operands in memory.
9524 (*vec_concatv2si_sse4_1): Ditto.
9525 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
9526 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
9528 (vec_extract_hi_v32hi): Ditto.
9529 (vec_extract_hi_v64hi): Ditto.
9530 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9532 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9533 Steven Bosscher <steven@gcc.gnu.org>
9535 PR rtl-optimization/34503
9536 * cprop.c (cprop_reg_p): New.
9537 (hash_scan_set): Use above function to check if register can be
9539 (find_avail_set): Return up to two sets, one whose source is a
9540 register and one whose source is a constant. Sets are returned in an
9541 array passed as parameter rather than as a return value.
9542 (cprop_insn): Use a do while loop rather than a goto. Try each of the
9543 sets returned by find_avail_set, starting with the one whose source is
9544 a constant. Use cprop_reg_p to check if register can be propagated.
9545 (do_local_cprop): Use cprop_reg_p to check if register can be
9547 (implicit_set_cond_p): Likewise.
9549 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9551 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
9552 (sem_function::equals): IGNORED_NODES parameter is now unused;
9553 update call of equals_private.
9554 (sem_function::equals_private): Do not call equals_wpa; skip
9555 gimple body matching if there is no body.
9556 (sem_function::init): Add logic to hash tthunk info.
9557 (sem_function::parse): Also parse thunks.
9558 * ipa-icf.h (equals_private): Update declaration.
9560 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9562 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
9563 asterisk from name so this can be generated directly.
9564 (*altivec_stvx_<mode>_internal): Likewise.
9565 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
9566 that this is never called during or after reload/lra.
9567 (rs6000_frame_related): Remove split_reg
9568 argument and logic that references it.
9569 (emit_frame_save): Remove last parameter from call to
9570 rs6000_frame_related.
9571 (rs6000_emit_prologue): Remove last parameter from eight calls to
9572 rs6000_frame_related. Force generation of stvx instruction for
9573 Altivec register saves. Remove split_reg handling, which is no
9575 (rs6000_emit_epilogue): Force generation of lvx instruction for
9576 Altivec register restores.
9578 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9580 * config/rs6000/rs6000.opt (mcrypto): Change option description to
9581 match category changes in ISA 2.07B.
9583 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9585 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
9587 (cmp_op, cmp_type): New code attributes.
9588 (NEON_VCMP, NEON_VACMP): New int iterators.
9589 (cmp_op_unsp): New int attribute.
9590 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
9591 (neon_vceq<mode>): Delete.
9592 (neon_vc<cmp_op><mode>_insn): New pattern.
9593 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
9594 (neon_vcgeu<mode>): Delete.
9595 (neon_vcle<mode>): Likewise.
9596 (neon_vclt<mode>: Likewise.
9597 (neon_vcage<mode>): Likewise.
9598 (neon_vcagt<mode>): Likewise.
9599 (neon_vca<cmp_op><mode>): New define_expand.
9600 (neon_vca<cmp_op><mode>_insn): New pattern.
9601 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
9603 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9605 * tree.h (attribute_value_equal): Declare.
9606 * tree.c (attribute_value_equal): Export.
9608 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9610 * ipa-icf.c (sem_item::compare_attributes): New function.
9611 (sem_item::compare_referenced_symbol_properties): Compare variable
9613 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
9614 (sem_function::param_used_p): New function.
9615 (sem_function::equals_wpa): Fix attribute comparsion; match
9616 parameter type codes; do not compare paremter flags when
9617 they are not used; compare edge flags; compare indirect calls.
9618 (sem_item::update_hash_by_addr_refs): Hash reference type.
9619 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
9620 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
9622 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
9623 * ipa-icf.h (compare_attributes, param_used_p): Declare.
9625 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
9627 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
9629 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
9630 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
9631 (sem_item::compare_referenced_symbol_properties): New.
9632 (sem_item::hash_referenced_symbol_properties): New.
9633 (sem_item::compare_cgraph_references): Rename to ...
9634 (sem_item::compare_symbol_references): ... this one; use
9635 compare_referenced_symbol_properties.
9636 (sem_function::equals_wpa): Do not compare
9637 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
9638 DECL_IS_OPERATOR_NEW; compare pointer sizes.
9639 (sem_item::update_hash_by_addr_refs): Call
9640 hash_referenced_symbol_properties.
9641 (sem_item::update_hash_by_local_refs): Cleanup.
9642 (sem_function::merge): Do not mix up symbol properties.
9643 (sem_variable::equals_wpa): Use compare_symbol_references.
9644 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
9645 (sem_item::hash_referenced_symbol_properties): New.
9646 (sem_item::compare_symbol_references): New.
9647 (sem_item::compare_cgraph_references): Remove.
9649 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
9652 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9655 2015-04-23 Nick Clifton <nickc@redhat.com>
9657 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
9658 ATTRIBUTE_UNUSED to x parameter.
9659 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
9661 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9663 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
9664 TARGET_CRYPTO to TARGET_P8_VECTOR>
9665 (crypto_vpermxor_<mode>): Likewise.
9666 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
9667 (BU_CRYPTO_3A): Likewise.
9668 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
9669 (BU_CRYPTO_OVERLOAD_3A): New #define.
9670 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
9671 (VPMSUMH): Likewise.
9672 (VPMSUMW): Likewise.
9673 (VPMSUMD): Likewise.
9674 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
9675 (VPERMXOR_V4SI): Likewise.
9676 (VPERMXOR_V8HI): Likewise.
9677 (VPERMXOR_V16QI): Likewise.
9678 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
9679 BU_CRYPTO_OVERLOAD_2A.
9680 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
9681 BU_CRYPTO_OVERLOAD_3A.
9682 * config/rs6000/rs6000.opt (mcrypto): Change description of
9685 2015-04-23 Richard Biener <rguenther@suse.de>
9687 * passes.def: Remove copy propagation passes run directly after CCP.
9688 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
9690 (ccp_visit_phi_node): Rework to handle first executable edge
9693 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
9695 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9696 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9697 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9698 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
9699 (thumb_legimitimize_reload_address): Remove.
9700 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
9702 (thumb_legimitimize_reload_address): Remove.
9704 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9706 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
9708 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9710 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
9712 (store_multiple): Likewise.
9714 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9716 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
9717 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
9718 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
9719 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
9720 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
9721 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
9722 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
9723 Specify issue_rate value.
9724 (arm_issue_rate): Look up issue rate from tuning structs. Remove
9725 large switch statement.
9726 (arm_marvell_pj4_tune): New struct.
9727 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
9730 2015-04-23 Richard Biener <rguenther@suse.de>
9732 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
9733 (vect_find_last_store_in_slp_instance): Rename to ...
9734 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
9735 (vect_analyze_slp_cost_1): Use vector_load for constant defs
9736 and vec_construct for external defs when estimating prologue cost.
9737 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
9738 Compute costs here only when vectorizing loops.
9739 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
9740 have been determined.
9741 (vect_schedule_slp_instance): Simplify vectorized code placement
9742 and prepare for in-BB external defs.
9743 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
9744 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
9745 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
9747 (vect_model_load_cost): Likewise.
9748 (vectorizable_store): Instead add it here.
9749 (vectorizable_load): Likewise.
9750 (vect_is_simple_use): Dump def type textually.
9752 2015-04-23 Richard Biener <rguenther@suse.de>
9754 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
9755 * cfgloop.c (verify_loop_structure): Verify the root loop node.
9756 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
9757 instead of get_eh_region_from_lp_number.
9758 * loop-init.c (fix_loop_structure): If we removed a loop, reset
9761 2015-04-23 Anton Blanchard <anton@samba.org>
9763 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
9764 need for -mprofile-kernel to save LR to stack.
9766 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9768 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
9770 (insn_is_swappable_p): Return 1 for a convert from double to
9771 single precision when all of its uses are splats of BE element
9774 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9776 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
9778 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9781 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
9782 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
9783 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
9785 (rs6000_builtin_mask_for_load): Return 0 for targets with
9786 efficient unaligned VSX accesses so that the vectorizer will use
9787 direct unaligned loads.
9788 (rs6000_builtin_support_vector_misalignment): Always return true
9789 for targets with efficient unaligned VSX accesses.
9790 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
9791 stores on targets with efficient unaligned VSX accesses is almost
9792 always the same as the cost of an aligned load or store, so model
9794 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
9795 unaligned vectors if we have efficient unaligned VSX accesses.
9796 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
9797 undocumented option.
9799 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9802 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
9804 * config.gcc (LIBC_MUSL): New tm_defines macro.
9805 * config/linux.h (OPTION_MUSL): Define.
9806 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9807 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9808 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9810 * config/linux.opt (mmusl): New option.
9811 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9812 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9814 * configure: Regenerate.
9816 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
9818 * config.gcc (LIBC_MUSL): New tm_defines macro.
9819 * config/linux.h (OPTION_MUSL): Define.
9820 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9821 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9822 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9824 * config/linux.opt (mmusl): New option.
9825 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9826 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9828 * configure: Regenerate.
9830 2015-04-22 Yury Gribov <y.gribov@samsung.com>
9832 * doc/invoke.texi (-fsanitize-sections): Update description.
9833 * asan.c (set_sanitized_sections): Parse incoming arg.
9834 (section_sanitized_p): Support wildcards.
9836 2015-04-22 Tom de Vries <tom@codesourcery.com>
9838 PR tree-optimization/65823
9839 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9840 equality between ap_copy and ap.
9842 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9845 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9847 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9850 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9852 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9855 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9856 remove already contained t-files.
9858 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9860 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9861 Remove unneeded forward declarations.
9862 (suitable_for_tail_call_opt_p): Commentary typo fix.
9864 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9866 * varasm.c (emit_bss): Remove redundant guard.
9868 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9870 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9872 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9874 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9876 2015-04-22 Hale Wang <hale.wang@arm.com>
9877 Terry Guo <terry.guo@arm.com>
9879 PR rtl-optimization/64818
9880 * combine.c (can_combine_p): Don't combine user-specified
9881 register if it is in an asm input.
9883 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
9886 * passes.def (early_optimizations): Add pass_dse.
9888 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9890 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9891 * reorg.c (redundant_insn): Remove ifdef
9892 INSN_REFERENCES_ARE_DELAYED.
9893 * resource.c (mark_referenced_resources): Likewise.
9895 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9897 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9898 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9899 * resource.c (mark_set_resources): Likewise.
9901 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9903 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9904 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9905 (flow_find_head_matching_sequence): Likewise.
9906 (try_head_merge_bb): Likewise.
9907 * combine.c (can_combine_p): Likewise.
9908 (try_combine): Likewise.
9909 (distribute_notes): Likewise.
9910 * df-problems.c (can_move_insns_across): Likewise.
9911 * final.c (final): Likewise.
9912 * gcse.c (insert_insn_end_basic_block): Likewise.
9913 * ira.c (find_moveable_pseudos): Likewise.
9914 * reorg.c (try_merge_delay_insns): Likewise.
9915 (fill_simple_delay_slots): Likewise.
9916 (fill_slots_from_thread): Likewise.
9917 * sched-deps.c (sched_analyze_2): Likewise.
9919 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9921 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9922 PIC_OFFSET_TABLE_REGNUM.
9924 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9926 * alias.c (init_alias_target): Remove ifdef
9927 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9928 * df-scan.c (df_insn_refs_collect): Likewise.
9929 (df_get_regular_block_artificial_uses): Likewise.
9930 (df_get_eh_block_artificial_uses): Likewise.
9931 (df_get_entry_block_def_set): Likewise.
9932 (df_get_exit_block_use_set): Likewise.
9933 * emit-rtl.c (gen_rtx_REG): Likewise.
9934 * ira.c (ira_setup_eliminable_regset): Likewise.
9935 * reginfo.c (init_reg_sets_1): Likewise.
9936 * regrename.c (rename_chains): Likewise.
9937 * reload1.c (reload): Likewise.
9938 (eliminate_regs_in_insn): Likewise.
9939 * resource.c (mark_referenced_resources): Likewise.
9940 (init_resource_info): Likewise.
9942 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9944 * defaults.h (MASK_RETURN_ADDR): New definition.
9945 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9948 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9950 * defaults.h (RETURN_ADDR_OFFSET): New definition.
9951 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9953 (expand_builtin_frob_return_addr): Likewise.
9955 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9957 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9958 (try_redirect_by_replacing_jump): Likewise.
9959 (rtl_tidy_fallthru_edge): Likewise.
9960 * combine.c (insn_a_feeds_b): Likewise.
9961 (find_split_point): Likewise.
9962 (simplify_set): Likewise.
9963 * cprop.c (cprop_jump): Likewise.
9964 * cse.c (cse_extended_basic_block): Likewise.
9965 * df-problems.c (can_move_insns_across): Likewise.
9966 * function.c (emit_use_return_register_into_block): Likewise.
9967 * haifa-sched.c (sched_init): Likewise.
9968 * ira.c (find_moveable_pseudos): Likewise.
9969 * loop-invariant.c (find_invariant_insn): Likewise.
9970 * lra-constraints.c (curr_insn_transform): Likewise.
9971 * postreload.c (reload_combine_recognize_const_pattern):
9973 * reload.c (find_reloads): Likewise.
9974 * reorg.c (delete_scheduled_jump): Likewise.
9975 (steal_delay_list_from_target): Likewise.
9976 (steal_delay_list_from_fallthrough): Likewise.
9977 (redundant_insn): Likewise.
9978 (fill_simple_delay_slots): Likewise.
9979 (fill_slots_from_thread): Likewise.
9980 (delete_computation): Likewise.
9981 * sched-rgn.c (add_branch_dependences): Likewise.
9983 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9985 * genconfig.c (main): Always define HAVE_cc0.
9986 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9988 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9989 (flow_find_head_matching_sequence): Likewise.
9990 (try_head_merge_bb): Likewise.
9991 * cfgrtl.c (rtl_merge_blocks): Likewise.
9992 (try_redirect_by_replacing_jump): Likewise.
9993 (rtl_tidy_fallthru_edge): Likewise.
9994 * combine.c (do_SUBST_MODE): Likewise.
9995 (insn_a_feeds_b): Likewise.
9996 (combine_instructions): Likewise.
9997 (can_combine_p): Likewise.
9998 (try_combine): Likewise.
9999 (find_split_point): Likewise.
10001 (simplify_set): Likewise.
10002 (distribute_notes): Likewise.
10003 * cprop.c (cprop_jump): Likewise.
10004 * cse.c (cse_extended_basic_block): Likewise.
10005 * df-problems.c (can_move_insns_across): Likewise.
10006 * final.c (final): Likewise.
10007 (final_scan_insn): Likewise.
10008 * function.c (emit_use_return_register_into_block): Likewise.
10009 * gcse.c (insert_insn_end_basic_block): Likewise.
10010 * haifa-sched.c (sched_init): Likewise.
10011 * ira.c (find_moveable_pseudos): Likewise.
10012 * loop-invariant.c (find_invariant_insn): Likewise.
10013 * lra-constraints.c (curr_insn_transform): Likewise.
10014 * optabs.c (prepare_cmp_insn): Likewise.
10015 * postreload.c (reload_combine_recognize_const_pattern):
10017 * reload.c (find_reloads): Likewise.
10018 (find_reloads_address_1): Likewise.
10019 * reorg.c (delete_scheduled_jump): Likewise.
10020 (steal_delay_list_from_target): Likewise.
10021 (steal_delay_list_from_fallthrough): Likewise.
10022 (try_merge_delay_insns): Likewise.
10023 (redundant_insn): Likewise.
10024 (fill_simple_delay_slots): Likewise.
10025 (fill_slots_from_thread): Likewise.
10026 (delete_computation): Likewise.
10027 (relax_delay_slots): Likewise.
10028 * sched-deps.c (sched_analyze_2): Likewise.
10029 * sched-rgn.c (add_branch_dependences): Likewise.
10031 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10033 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
10034 that is trivially ded on non cc0 targets.
10035 (simplify_set): Likewise.
10036 (mark_used_regs_combine): Likewise.
10037 * cse.c (new_basic_block): Likewise.
10038 (fold_rtx): Likewise.
10039 (cse_insn): Likewise.
10040 (cse_extended_basic_block): Likewise.
10041 (set_live_p): Likewise.
10042 * rtlanal.c (canonicalize_condition): Likewise.
10043 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10045 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10047 * conditions.h: Define macros even if HAVE_cc0 is undefined.
10048 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
10049 * final.c: Likewise.
10050 * jump.c: Likewise.
10051 * recog.c: Likewise.
10052 * recog.h: Declare functions even when HAVE_cc0 is undefined.
10053 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
10055 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10057 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
10058 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
10059 * builtins.c (expand_builtin): Remove check if
10060 EH_RETURN_DATA_REGNO is defined.
10061 * df-scan.c (df_bb_refs_collect): Likewise.
10062 (df_get_exit_block_use_set): Likewise.
10063 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
10064 * ira-lives.c (process_bb_node_lives): Likewise.
10065 * lra-lives.c (process_bb_lives): Likewise.
10067 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
10069 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
10070 FIRST_PSEUDO_REG): New.
10071 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
10072 (ARG_POINTER_REGNUM): Define to ARGP_REG.
10073 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
10074 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
10075 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
10076 (FIRST_INT_REG): New.
10077 (LAST_INT_REG): New.
10078 (FIRST_*_REG): Define using *_REG.
10079 (LAST_*_REG): Ditto.
10080 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
10081 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
10082 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
10084 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10086 * expmed.c: (synth_mult): Only assume overlapping
10087 shift with previous steps in alg_sub_t_m2 case.
10089 2015-04-21 Richard Biener <rguenther@suse.de>
10091 PR tree-optimization/65650
10092 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
10093 transitions involving copies.
10094 (set_lattice_value): Adjust for copy lattice state.
10095 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
10096 if that doesn't dominate the merge point.
10097 (bit_value_unop): Adjust what we treat as varying mask.
10098 (bit_value_binop): Likewise.
10099 (bit_value_assume_aligned): Likewise.
10100 (evaluate_stmt): When we simplified to a SSA name record a copy
10101 instead of dropping to varying.
10102 (visit_assignment): Simplify.
10104 * gimple-match.h (gimple_simplify): Add another callback.
10105 * gimple-fold.c (fold_stmt_1): Adjust caller.
10106 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
10107 for the 2nd callback.
10108 * gimple-match-head.c (gimple_simplify): Add a callback that is
10109 used to valueize the stmt operands and use it that way.
10111 2015-04-21 Richard Biener <rguenther@suse.de>
10113 PR tree-optimization/65788
10114 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
10116 2015-04-21 Richard Biener <rguenther@suse.de>
10118 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
10119 vec_construct cost by vec_stmt_cost.
10121 2015-04-21 Richard Biener <rguenther@suse.de>
10123 * cfghooks.h (create_basic_block): Replace with two overloads
10124 for RTL and GIMPLE.
10125 (split_block): Likewise.
10126 * cfghooks.c (split_block): Rename to ...
10127 (split_block_1): ... this.
10128 (split_block): Add two type-safe overloads for RTL and GIMPLE.
10129 (split_block_after_labels): Call split_block_1.
10130 (create_basic_block): Rename to ...
10131 (create_basic_block_1): ... this.
10132 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
10133 (create_empty_bb): Call create_basic_block_1.
10134 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
10135 split_block_after_labels.
10136 * omp-low.c (expand_parallel_call): Likewise.
10137 (expand_omp_target): Likewise.
10138 (simd_clone_adjust): Likewise.
10139 * tree-chkp.c (chkp_get_entry_block): Likewise.
10140 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
10141 create_basic_block overload.
10142 (cgraph_node::expand_thunk): Likewise.
10143 * tree-cfg.c (make_blocks): Likewise.
10144 (handle_abnormal_edges): Likewise.
10145 * tree-inline.c (copy_bb): Likewise.
10147 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10149 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
10151 (*xor_one_cmplsidi3_ze): Likewise.
10153 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
10155 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
10156 use df_remove_problem rather than manually removing problems, leaving
10157 holes in df->problems_in_order[].
10159 2015-04-21 Tom de Vries <tom@codesourcery.com>
10161 PR tree-optimization/65802
10162 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
10164 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10166 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
10168 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
10169 at '.'. Assert that there's enough space for everything.
10171 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
10173 PR tree-optimization/64950
10175 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
10178 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10181 2015-04-20 Shiva Chen <shiva0217@gmail.com>
10183 PR rtl-optimization/64916
10184 * cfgcleanup.c (values_equal_p): New function.
10185 (can_replace_by): Use it.
10187 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
10190 * doc/invoke.texi ([-Wnarrowing]): Update.
10192 2015-04-20 Jeff Law <law@redhat.com>
10194 PR tree-optimization/65658
10195 * tree-ssa-threadupdate.c (redirection_block_p): Remove
10196 redundant test for GIMPLE_ASSIGN in last change.
10198 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
10200 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
10201 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
10202 (legitimize_tls_address): Ditto.
10203 (ix86_expand_move): Ditto.
10204 (ix86_expand_binary_operator): Remove reload_in_progress checks.
10205 (ix86_expand_unary_operator): Ditto.
10206 * config/i386/predicates.md (index_register_operand): Ditto.
10208 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
10210 * reorg.c (try_merge_delay_insns): Improve correctness checking
10211 for targets with multiple delay slots.
10213 2015-04-20 Jeff Law <law@redhat.com>
10215 PR tree-optimization/65658
10216 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
10219 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
10221 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
10222 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
10225 2015-04-20 Jakub Jelinek <jakub@redhat.com>
10228 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
10230 2015-04-20 Richard Biener <rguenther@suse.de>
10232 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
10233 * gimple-fold.c (gimple_build_valueize): New function.
10234 (gimple_build): Always use gimple_build_valueize as valueize hook.
10236 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
10239 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
10240 and overwrite variable parts if <= 1/2 the elements are variable.
10242 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
10244 PR rtl-optimization/65805
10245 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
10246 Don't use difference of offset and previous offset if
10247 update_sp_offset is non-zero.
10248 (eliminate_regs_in_insn): Ditto.
10249 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
10250 lra_eliminate_regs_1 call.
10251 * lra-constraints.c (get_equiv_with_elimination): Ditto.
10253 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
10255 * hash-table.h: Remove version of hash_table that stored value_type *.
10256 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
10257 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
10258 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
10259 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
10260 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
10261 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
10262 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10263 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
10264 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
10265 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
10266 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
10267 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
10268 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
10269 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10270 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
10271 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
10273 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10274 Jakub Jelinek <jakub@redhat.com>
10277 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
10278 subsequent SH_NONE operand does not overwrite an existing *special
10280 (adjust_extract): Handle case where a vec_extract operation is
10281 wrapped in a PARALLEL.
10283 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
10286 * config/i386/i386.c (ix86_binds_local_p): Define only if
10287 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
10289 2015-04-17 Jeff Law <law@redhat.com>
10291 PR tree-optimization/47679
10292 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
10293 * tree-ssa-scopedtables.c: New file.
10294 * tree-ssa-scopedtables.h: New file.
10295 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
10296 (const_and_copies): Change name/type.
10297 (record_const_or_copy): Move into tree-ssa-scopedtables.c
10298 (record_const_or_copy_1): Similarly.
10299 (restore_vars_to_original_value): Similarly.
10300 (pass_dominator::execute): Create and destroy const_and_copies table.
10301 (thread_across_edge): Update passing of const_and_copies.
10302 (record_temporary_equivalence): Use method calls rather than
10303 manipulating const_and_copies directly.
10304 (record_equality, cprop_into_successor_phis): Similarly.
10305 (dom_opt_dom_walker::before_dom_children): Similarly.
10306 (dom_opt_dom_walker::after_dom_children): Similarly.
10307 (eliminate_redundant_computations): Similarly.
10308 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
10309 (record_temporary_equivalence): Likewise.
10310 (invalidate_equivalences): Likewise.
10311 (record_temporary_equivalences_from_phis): Update due to type
10312 change of const_and_copies. Use method calls rather than
10313 manipulating the stack directly.
10314 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
10315 (thread_through_normal_block, thread_across_edge): Likewise.
10316 (thread_across_edge): Likewise.
10317 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10318 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
10320 (identify_jump_threads): Update due to type change of equiv_stack.
10321 (finalize_jump_threads): Delete the equiv_stack when complete.
10323 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
10325 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10326 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
10327 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
10329 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
10332 * config.gcc: Exit with a comment when we do not have a major version
10333 number for the FreeBSD target.
10335 2015-04-17 Jakub Jelinek <jakub@redhat.com>
10338 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
10339 maybe_allows_mem bitfields.
10340 (maybe_allows_none_start, maybe_allows_none_end,
10341 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
10342 maybe_allows_mem_end): New variables.
10343 (compute_maybe_allows): New function.
10344 (add_constraint): Use it to initialize maybe_allows_reg and
10345 maybe_allows_mem fields.
10346 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
10347 is_address constraints such that those that allow neither mem nor
10348 reg come first, then those that only allow reg but not mem, then
10349 those that only allow mem but not reg, then the rest.
10350 (write_allows_reg_mem_function): New function.
10351 (write_tm_preds_h): Call it.
10352 * stmt.c (parse_output_constraint, parse_input_constraint): Use
10353 the generated insn_extra_constraint_allows_reg_mem function
10354 instead of always setting *allows_reg = true; *allows_mem = true;
10355 for unknown extra constraints.
10357 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
10360 * output.h (default_binds_local_p_3): New.
10361 * varasm.c (default_binds_local_p_3): Make it public. Take an
10362 argument to indicate if common symbol may be local. If common
10363 symbol may be local, treat non-external variable as defined
10365 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
10366 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
10367 * config/i386/i386.c (ix86_binds_local_p): New.
10368 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
10369 ix86_binds_local_p.
10371 2015-04-17 Jakub Jelinek <jakub@redhat.com>
10374 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
10375 trying mem_loc_descriptor on XEXP (rtl, 0).
10377 2015-04-17 Martin Liska <mliska@suse.cz>
10379 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10380 Release symbol_compare_collection.
10381 * ipa-reference.c: Add TODO that a vector should be released.
10383 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
10386 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
10387 to new AVR-LibC file layout (bug #44574).
10388 (*avrlibc_devicelib): Same.
10389 * config/avr/avr-mcus.def: Adjust comments.
10390 * config/avr/avr.opt (nodevicelib): Adjust help.
10392 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
10394 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
10396 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
10399 * gimplify.c (gimplify_init_constructor): Always emit a
10400 side-effecting constructor.
10402 2015-04-17 Tom de Vries <tom@codesourcery.com>
10404 PR tree-optimization/64950
10405 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
10406 in cfun->curr_properties.
10407 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
10408 if we generate an IFN_VA_ARG.
10409 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
10410 function if PROP_gimple_lva is not set in src function.
10412 2015-04-17 Tom de Vries <tom@codesourcery.com>
10413 Michael Matz <matz@suse.de>
10415 PR tree-optimization/64950
10416 * gimple-iterator.c (update_modified_stmts): Remove static.
10417 * gimple-iterator.h (update_modified_stmts): Declare.
10418 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
10419 (gimplify_va_arg_internal): New function.
10420 (gimplify_va_arg_expr): Use IFN_VA_ARG.
10421 * gimplify.h (gimplify_va_arg_internal): Declare.
10422 * internal-fn.c (expand_VA_ARG): New unreachable function.
10423 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
10424 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
10425 (expand_ifn_va_arg): New function.
10426 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
10427 (pass_stdarg::execute): Call expand_ifn_va_arg.
10428 (pass_data_lower_vaarg): New pass_data.
10429 (pass_lower_vaarg): New gimple_opt_pass.
10430 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
10431 (make_pass_lower_vaarg): New function.
10432 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
10433 properties_required field.
10434 * passes.def (all_passes): Add pass_lower_vaarg.
10435 * tree-pass.h (PROP_gimple_lva): Add define.
10436 (make_pass_lower_vaarg): Declare.
10438 2015-04-17 Tom de Vries <tom@codesourcery.com>
10440 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
10441 * calls.c (call_expr_flags): Same.
10443 2015-04-17 Tom de Vries <tom@codesourcery.com>
10445 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
10446 (pass_stdarg::execute): ... here.
10448 2015-04-17 Tom de Vries <tom@codesourcery.com>
10449 Michael Matz <matz@suse.de>
10451 * tree-cfg.c (make_blocks_1): Factor out of ...
10452 (make_blocks): ... here.
10453 (make_edges_bb): Factor out of ...
10454 (make_edges): ... here.
10455 (gimple_find_sub_bbs): New function.
10456 * tree-cfg.h (gimple_find_sub_bbs): Declare.
10458 2015-04-17 Tom de Vries <tom@codesourcery.com>
10460 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
10462 2015-04-17 Yury Gribov <y.gribov@samsung.com>
10464 * asan.c (set_sanitized_sections): New function.
10465 (section_sanitized_p): Ditto.
10466 (asan_protect_global): Optionally sanitize user-defined
10468 * asan.h (set_sanitized_sections): Declare new function.
10469 * common.opt (fsanitize-sections): New option.
10470 * doc/invoke.texi (-fsanitize-sections): Document new option.
10471 * opts-global.c (handle_common_deferred_options): Handle new
10474 2015-04-17 Jakub Jelinek <jakub@redhat.com>
10477 * dwarf2out.c (loc_list_from_tree): Return NULL
10478 for DEBUG_EXPR_DECL.
10480 2015-04-17 Christian Bruel <christian.bruel@st.com>
10482 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
10485 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10487 * ira-color.c (setup_left_conflict_sizes_p): Do not process
10488 node itself when computing left conflict subnode size.
10490 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
10492 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
10493 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
10494 *fop_<mode>_1_sse using enabled attribute. Use
10495 register_mixssei387nonimm_operand operand 1 predicate. Change
10496 alternative 3 constraints from "x" to "v".
10498 2015-04-16 Richard Biener <rguenther@suse.de>
10500 PR tree-optimization/65774
10501 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
10502 bit-value tracking on.
10504 2015-04-16 Richard Biener <rguenther@suse.de>
10506 PR tree-optimization/64277
10507 * tree-vrp.c (check_array_ref): Fix anti-range handling,
10508 simplify upper bound handling.
10509 (search_for_addr_array): Simplify.
10510 (check_array_bounds): Handle ADDR_EXPRs here.
10511 (check_all_array_refs): Simplify.
10513 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
10515 * config/i386/i386.c (print_reg): Rewrite function.
10517 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10519 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
10520 Invert the condition.
10522 2015-04-16 Renlin Li <renlin.li@arm.com>
10524 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
10525 simplifications for UNSIGNED_FLOAT.
10527 2015-04-16 Nick Clifton <nickc@redhat.com>
10529 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
10531 (enum rl78_cpu_type): New.
10532 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
10533 (umulhi3_shift_virt): Remove m constraint from operand 1.
10534 (umulqihi3_virt): Likewise.
10535 * config/rl78/rl78.c (rl78_option_override): Add code to process
10536 -mcpu and -mmul options.
10537 (rl78_alloc_physical_registers): Add code to handle divhi and
10538 divsi valloc attributes.
10539 (set_origin): Likewise.
10540 * config/rl78/rl78.h (RL78_MUL_G14): Define.
10541 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
10542 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
10544 (ASM_SPEC): Pass -mcpu on to assembler.
10545 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
10546 (mulqi3_rl78): Likewise.
10547 (mulhi3_g13): Likewise.
10548 (mulhi3): Generate the G13 or G14 versions of the insn directly.
10549 (mulsi3): Likewise.
10550 (mulhi3_g14): Add clobbers of AX and BC.
10551 (mulsi3_g14): Likewise.
10552 (mulsi3_g13): Likewise.
10553 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
10554 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
10555 * config/rl78/rl78.opt (mmul): Initialise value to
10557 (mcpu): New option.
10558 (m13, m14, mrl78): New option aliases.
10559 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
10560 (MULTILIB_DIRNAMES): Add g13 and g14.
10561 * doc/invoke.texi: Document -mcpu and -mmul options.
10563 2015-04-16 Richard Biener <rguenther@suse.de>
10565 * tree-ssa-ccp.c (likely_value): See if we have operands that
10566 are marked as never simulate again and return CONSTANT in this
10568 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
10569 not have any operands that will be simulated again as
10570 not being simulated again.
10572 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
10574 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
10575 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
10576 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
10578 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
10580 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
10581 *float<SWI48:mode><MODEF:mode>2_sse.
10582 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
10584 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
10587 2015-04-15 Tom de Vries <tom@codesourcery.com>
10590 * function.c (push_dummy_function): New function.
10591 (init_dummy_function_start): Use push_dummy_function.
10592 (pop_dummy_function): New function. Factored out of ...
10593 (expand_dummy_function_end): ... here.
10594 * function.h (push_dummy_function, pop_dummy_function): Declare.
10595 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
10596 pop_dummy_function.
10597 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
10599 2015-04-15 Jeff Law <law@redhat.com>
10601 PR tree-optimization/47679
10602 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
10603 need for forward declaration in upcoming changes.
10604 (record_conditions, record_edge_info): Likewise.
10606 PR rtl-optimization/42522
10607 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
10608 SIGN_EXTRACT as a whole object rather than simplifying
10611 2015-04-15 Jakub Jelinek <jakub@redhat.com>
10614 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
10615 and GIMPLE_PREDICT use break instead of return true. For
10616 GIMPLE_EH_DISPATCH, compare dispatch region.
10618 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
10620 * doc/extend.texi (__sync Builtins): Simplify some text. Update
10621 details about the implementation. Make clear preference for
10622 __atomic builtins. Reduce possibility of future change.
10624 2015-04-15 Nick Clifton <nickc@redhat.com>
10626 * config/rx/rx.opt (mallow-string-insns): New option.
10627 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
10628 builtin if string instructions are denied.
10629 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
10630 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
10632 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
10633 * config/rx/rx.md (movstr): Enable pattern only if string
10634 instructions are allowed.
10635 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
10636 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
10637 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
10638 (MULTILIB_DIRNAMES): Add no-strings.
10639 * doc/invoke.texi: Document -mno-allow-string-insns.
10641 2015-04-15 Alan Modra <amodra@gmail.com>
10645 PR middle-end/36043
10646 * calls.c (load_register_parameters): Don't load past end of
10647 mem unless suitably aligned.
10649 2015-04-15 Nick Clifton <nickc@redhat.com>
10651 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
10652 decrement instruction as being frame related.
10653 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
10655 If zero extending a function address enclose the operation in
10657 (rl78_preferred_reload_class): New function.
10658 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10659 * config/rl78/rl78.md: Remove useless constraints in expanders.
10660 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
10661 (mulhi3_rl78): Likewise.
10662 (mulhi3_g13): Likewise.
10663 (mulsi3_rl78): Likewise.
10664 (es_addr): Move to before the multiply patterns.
10666 2015-04-15 Alan Modra <amodra@gmail.com>
10668 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
10669 and sequence_stack. Add seq.
10670 (seq_stack): Delete.
10671 * function.c (prepare_function_start): Don't access x_last_insn.
10672 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
10673 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
10674 * emit_rtl.c (start_sequence, push_topmost_sequence,
10675 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
10676 sequence accessors.
10677 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
10678 remove_insn): Likewise. Simplify.
10679 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
10680 and pop_topmost_sequence.
10681 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
10683 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
10685 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
10688 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
10691 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
10693 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
10694 (LEGACY_INT_REGNO_P): Ditto.
10695 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
10696 (ANY_MASK_REG_P): Remove.
10697 (BND_REG_P): Rename from ANY_BND_REG_P.
10698 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
10699 legacy integer registers. Do not handle MMX_REG_P in a special way.
10700 Merge 64byte and 32byte SSE handling.
10702 2015-04-14 Nick Clifton <nickc@redhat.com>
10704 * expr.c (expand_assignment): Force an address offset computation
10705 into a register before changing its mode.
10706 (expand_expr_real_1): Likewise.
10708 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
10710 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
10711 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
10712 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
10713 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
10714 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
10715 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
10716 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
10717 and __aarch64_vget_lane_any.
10719 2015-04-14 Jakub Jelinek <jakub@redhat.com>
10721 PR rtl-optimization/65761
10722 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
10723 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
10725 2015-04-14 Richard Biener <rguenther@suse.de>
10727 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
10728 (graphite_can_represent_scev): Use POINTER_TYPE_P.
10730 2015-04-14 Richard Biener <rguenther@suse.de>
10732 PR tree-optimization/65758
10733 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
10735 (ccp_lattice_meet): Likewise.
10736 (bit_value_unop): Likewise.
10737 (bit_value_binop): Likewise.
10738 (bit_value_assume_aligned): Likewise.
10740 2015-04-14 Christian Bruel <christian.bruel@st.com>
10742 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
10745 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
10747 PR tree-optimization/63387
10748 * match.pd ((x unord x) | (y unord y) -> (x unord y),
10749 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
10751 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
10753 * config/i386/predicates.md (any_QIreg_operand): Rename from
10754 q_regs_operand. Do not process subregs.
10755 (QIreg_operand): Use QI_REGNO_P predicate.
10756 (ext_QIreg_operand): Ditto.
10757 (ext_register_operand): Ditto.
10758 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
10759 (AND splitters): Ditto.
10760 (AND with -65536 splitter): Add SWI48 mode for operand 0.
10761 (AND with -256 splitter): Use any_QIreg_operand predicate and
10762 SWI248 mode for operand 0.
10763 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
10764 mode for operand 0.
10765 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
10767 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
10769 * doc/plugins.texi: Rewrite first introductory paragraph.
10771 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10773 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
10774 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
10776 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10778 * ipa-profie.c (ipa_profile): Check number of parameters
10779 and possible polymorphic call targets before
10782 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
10784 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
10785 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
10787 2015-04-13 Richard Biener <rguenther@suse.de>
10789 PR tree-optimization/65204
10790 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
10791 takens for bit-CCP.
10793 2015-04-13 Richard Biener <rguenther@suse.de>
10796 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
10797 and cond_not_taken_branch_cost to 4 and 2.
10798 (bdver2_cost): Likewise.
10799 (bdver3_cost): Likewise.
10800 (bdver4_cost): Likewise.
10802 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10804 * hash-table.h (hash_table constructor): Add mem stats.
10805 (alloc_entries): Likewise.
10807 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10809 * ipa-cp.c (ipcp_driver): Relase prev_edge.
10810 * passes.c (execute_one_pass): Only add transform if pass has one.
10812 2015-04-12 Joseph Myers <joseph@codesourcery.com>
10814 * config/i386/i386.c (ix86_option_override_internal): Don't set
10815 -fprefetch-loop-arrays if optimizing for size.
10817 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
10818 Gerald Pfeifer <gerald@pfeifer.com>
10820 * doc/contrib.texi (Contributors): Add Martin Jambor and
10823 2015-04-12 Jakub Jelinek <jakub@redhat.com>
10825 * BASE-VER: Set to 6.0.0.
10827 PR tree-optimization/65747
10828 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
10829 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
10831 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
10833 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10834 sentence. Improve grammar.
10836 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
10838 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10840 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
10843 * ipa-inline-transform.c (speculation_removed): Remove static var.
10844 (check_speculations): New function.
10845 (clone_inlined_nodes): Do not check spculations.
10846 (inline_call): Call check_speculations.
10847 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10848 consider non-invariants.
10850 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
10851 Martin Liska <mliska@suse.cz>
10854 * ipa-icf.c (sem_item::compare_cgraph_references): function and
10855 variable can not match.
10856 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10857 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10859 2015-04-11 Jakub Jelinek <jakub@redhat.com>
10861 PR tree-optimization/65735
10862 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10863 Remove visited_phis argument, add visited_bbs, avoid recursing into the
10864 same bb rather than just into the same phi node.
10865 (thread_through_normal_block): Adjust caller.
10867 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10869 * doc/contrib.texi (Contributors): Add Ira Rosen.
10871 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
10873 * gcov.c (find_source): Fix miswording in error message.
10874 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10875 (ix86_expand_sse_comi_round): Fix typo in error message.
10877 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10879 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10881 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
10883 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10885 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10888 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10889 Print bad_spills_num and insn_pseudos_num.
10891 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10894 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10895 when creating +1 values for SImode.
10897 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10900 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10903 2015-04-10 Jakub Jelinek <jakub@redhat.com>
10904 Iain Sandoe <iain@codesourcery.com>
10907 * configure: Regenerate.
10909 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10912 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10914 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
10916 * doc/contrib.texi (Contributors): Add John Marino.
10918 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10920 PR tree-optimization/65709
10921 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10922 TREE_TYPE (TREE_TYPE (t)).
10924 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
10927 * lra-int.h (lra_bad_spill_regno_start): New.
10928 * lra.c (lra_bad_spill_regno_start): New.
10929 (lra): Set up lra_bad_spill_regno_start. Set up
10930 lra_constraint_new_regno_start unconditionally.
10931 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10934 2015-04-09 Marek Polacek <polacek@redhat.com>
10935 Jakub Jelinek <jakub@redhat.com>
10937 PR middle-end/65554
10938 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10939 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10942 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
10944 PR rtl-optimization/65693
10945 * combine.c (is_parallel_of_n_reg_sets): Move outside of
10948 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
10951 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10952 device specs file if "device-specs%s" didn't resolve to a path.
10954 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10957 * config/i386/i386.c (fixup_modeless_constant): New.
10958 (ix86_expand_args_builtin): Fixup modeless constant operand.
10959 (ix86_expand_round_builtin): Ditto.
10960 (ix86_expand_special_args_builtin): Ditto.
10961 (ix86_expand_builtin): Ditto.
10963 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10966 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10967 any pow2 integer in between 2 and 0x80000000U inclusive.
10969 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
10971 PR rtl-optimization/65693
10972 * combine.c (is_parallel_of_n_reg_sets): Change first argument
10973 from an rtx_insn * to an rtx.
10974 (try_combine): Adjust both callers. Use it once more.
10976 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10978 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10979 (chkp_make_static_const_bounds): Search existing
10980 symbol by assembler name. Use make_decl_one_only.
10981 (chkp_get_zero_bounds_var): Remove node search which
10982 is now performed in chkp_make_static_const_bounds.
10983 (chkp_get_none_bounds_var): Likewise.
10985 2015-04-08 Michael Witten <mfwitten@gmail.com>
10987 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
10990 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10992 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
10994 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
10996 * doc/extend.texi (__sync Builtins): Fix grammar.
10998 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11000 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
11002 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11004 * varasm.c (emit_local): Move definition of align.
11006 2015-04-08 Julian Brown <julian@codesourcery.com>
11008 * config/nvptx/mkoffload.c (process): Support variable mapping.
11010 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
11012 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
11014 (alpha_write_one_linkage): Correct typo.
11016 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
11018 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
11020 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
11022 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
11024 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
11026 * tree-chkp.h (chkp_insert_retbnd_call): New.
11027 * tree-chkp.c (chkp_insert_retbnd_call): New.
11028 * ipa-split.c (insert_bndret_call_after): Remove.
11029 (split_function): Use chkp_insert_retbnd_call.
11030 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
11031 bounds for instrumented functions.
11033 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
11036 * calls.c (initialize_argument_information): When producing tail
11037 call also turn SSA_NAMES passed by references to original PARM_DECLs
11039 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
11042 * lra-remat.c (do_remat): Process input and non-input insn
11043 registers separately.
11045 2015-04-07 Jakub Jelinek <jakub@redhat.com>
11048 * valtrack.c (debug_lowpart_subreg): New function.
11049 (dead_debug_insert_temp): Use it.
11051 PR middle-end/65680
11052 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
11053 into signed HOST_WIDE_INT the same as negative bit_offset.
11055 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
11057 * ipa-comdats.c (ipa_comdats): Visit all thunks
11058 to set proper comdat group.
11060 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11063 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
11064 on constants for NEON VSTRUCT modes.
11066 2015-04-07 Jakub Jelinek <jakub@redhat.com>
11067 Iain Sandoe <iain@codesourcery.com>
11070 * configure: Regenerate.
11072 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11075 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
11076 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
11077 that LFD is used to load double constants instead of LFS. Add
11078 defaults for all costs structures. Add comments for missing
11079 initialization fields.
11080 (size32_cost): Likewise.
11081 (size64_cost): Likewise.
11082 (rs64a_cost): Likewise.
11083 (mpccore_cost): Likewise.
11084 (ppc403_cost): Likewise.
11085 (ppc405_cost): Likewise.
11086 (ppc440_cost): Likewise.
11087 (ppc476_cost): Likewise.
11088 (ppc601_cost): Likewise.
11089 (ppc603_cost): Likewise.
11090 (ppc604_cost): Likewise.
11091 (ppc604e_cost): Likewise.
11092 (ppc620_cost): Likewise.
11093 (ppc630_cost): Likewise.
11094 (ppccell_cost): Likewise.
11095 (ppc750_cost): Likewise.
11096 (ppc7450_cost): Likewise.
11097 (ppc8540_cost): Likewise.
11098 (ppce300c2c3_cost): Likewise.
11099 (ppce500mc_cost): Likewise.
11100 (ppce500mc64_cost): Likewise.
11101 (ppce5500_cost): Likewise.
11102 (ppce6500_cost): Likewise.
11103 (titan_cost): Likewise.
11104 (power4_cost): Likewise.
11105 (power6_cost): Likewise.
11106 (power7_cost): Likewise.
11107 (power8_cost): Likewise.
11108 (ppca2_cost): Likewise.
11109 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
11111 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
11112 instead of XXLOR to copy SFmode to clear out dirty bits created
11113 when SFmode denormals are generated.
11114 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
11115 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
11117 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
11119 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
11120 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
11121 * config/aarch64/aarch64-tune.md: Regenerate.
11123 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
11125 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
11126 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
11127 * config/arm/arm-cores.def (exynos-m1): New core.
11128 * config/arm/arm-tune.md: Regenerate.
11129 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
11130 * config/arm/bpabi.h: Likewise.
11132 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
11134 * ipa-cp (set_single_call_flag): Remove too
11135 restrictive assert.
11137 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
11139 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
11140 GOMP_offload_unregister from the destructor.
11142 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
11144 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
11145 flags for instrumentation thunk.
11146 (chkp_produce_thunks): Likewise.
11148 2015-04-05 Martin Liska <mliska@suse.cz>
11151 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
11152 has computed data structure.
11153 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11155 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
11157 * invoke.texi (inline-unit-growth): Increase growth to 20%
11158 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
11160 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
11163 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
11165 (lra_rematerialization_iter): New.
11166 * lra.c (lra): Initialize lra_rematerialization_iter.
11167 Stop updating lra_constraint_new_regno_start after switching of
11168 inheritance and rematerialization.
11169 * lra-remat.c (lra_rematerialization_iter): New.
11170 (lra_remat): Add printing pass iteration. Do rematerialization
11171 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
11173 2015-04-04 Richard Biener <rguenther@suse.de>
11175 PR tree-optimization/64909
11176 PR tree-optimization/65660
11177 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
11178 to take a cost vector for scalar iteration cost.
11179 (vect_get_single_scalar_iteration_cost): Likewise.
11180 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
11181 Compute the scalar iteration cost into a cost vector.
11182 (vect_get_known_peeling_cost): Use the scalar cost vector to
11183 account for the cost of the peeled iterations.
11184 (vect_estimate_min_profitable_iters): Likewise.
11185 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11188 2015-04-04 Alan Modra <amodra@gmail.com>
11192 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
11193 0.0 constant unless TARGET_VSX.
11194 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
11197 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
11200 * ipa-inline-transform.c (inline_call): Skip sanity check to work
11203 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
11206 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
11207 speculative indirect edges to avoid ordering issue.
11209 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
11212 * ipa-inline.c (edge_badness): Add combined size to the denominator.
11214 2015-04-03 Jakub Jelinek <jakub@redhat.com>
11216 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
11217 TYPE_ARTIFICIAL on the .omp_data* types.
11219 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11221 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
11222 instrumentation thunks.
11224 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11226 * config/i386/i386.c (ix86_expand_call): Avoid nested
11227 PARALLEL in returned call value.
11229 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11231 * lto-cgraph.c (input_cgraph_1): Always link instrumented
11232 assembler name with original one.
11234 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
11236 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
11238 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
11240 Revert parts of r216820.
11241 * config/i386/i386.md (movqi_internal): Correct type calculation
11242 for alternatives 3 and 5.
11244 2015-04-02 Jakub Jelinek <jakub@redhat.com>
11246 PR preprocessor/61977
11247 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
11248 predefine __vector/__bool/__pixel macros nor context sensitive
11249 macros for CLK_ASM.
11250 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
11252 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
11254 * config/pa/pa.c (pa_output_move_double): Directly handle register
11255 indexed memory operand. Simplify handling of scaled register indexed
11258 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
11261 * config/i386/linux-common.h (MPX_SPEC): New.
11262 (CHKP_SPEC): Add MPX_SPEC.
11263 * doc/invoke.texi (-fcheck-pointer-boudns): Document
11264 possible issues with '-z bndplt' support in linker.
11266 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
11268 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
11269 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
11270 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
11271 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
11272 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
11274 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
11276 * config/i386/sync.md (UNSPEC_MOVA): Remove.
11277 (atomic_load<mode>): Change operand 0 predicate to
11278 nonimmediate_operand and fix up the destination when needed.
11280 (atomic_loaddi_fpu): Use UNSPEC_LDA.
11281 (atomic_store<mode>): Change operand 1 predicate to
11282 nonimmendate_operand and move the source to register when needed.
11284 (atomic_store<mode>_1): Use UNSPEC_STA.
11285 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
11286 Fix moves from memory operand. Use UNSPEC_STA.
11288 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11290 * expmed.c (strict_volatile_bitfield_p): Check that the access will
11291 not cross a MODESIZE boundary.
11292 (store_bit_field, extract_bit_field): Added assertions in the
11293 strict volatile bitfields code path.
11295 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
11298 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
11299 Increase args array size by one to avoid buffer overflow.
11301 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
11303 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11305 * ipa-inline.c (edge_badness): Add wrapper penalty.
11306 (sum_callers): Move up.
11307 (inline_small_functions): Set single_caller.
11308 * ipa-inline.h (inline_summary): Add single_caller.
11309 * ipa-split.c (split_function): Set split_part.
11310 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
11311 * cgraph.h (cgraph_node): Add split_part.
11313 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
11316 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11317 Do not split operands 0 and operands 2 to halfmode.
11318 (atomic_compare_and_swap<mode>): Update for
11319 atomic_compare_and_swap<dwi>_doubleword changes.
11321 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
11323 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
11324 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
11325 no caching is done.
11327 2015-03-31 Martin Liska <mliska@suse.cz>
11330 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
11331 has already filled up function summary.
11332 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11334 2015-03-31 Richard Biener <rguenther@suse.de>
11336 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
11339 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
11341 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
11343 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
11344 (s390_asm_output_function_label): Adapt to new signature of
11345 s390_function_num_hotpatch_hw
11346 Optimise the code generating assembler output.
11347 Add comments to assembler file.
11349 2015-03-31 Richard Biener <rguenther@suse.de>
11351 PR middle-end/65626
11352 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
11353 of the noreturn call so it is last and cleanup_control_flow_bb
11354 can do the CFG part.
11356 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
11359 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
11360 same_comdat_group for external symbols.
11361 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
11362 infinite same_comdat_group traversal loop.
11364 2015-03-31 Jakub Jelinek <jakub@redhat.com>
11367 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
11368 automatically to $headers.
11370 2015-03-30 Jakub Jelinek <jakub@redhat.com>
11373 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
11374 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
11376 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
11378 * ipa-prop.c (param_type_may_change_p): Likewise.
11379 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
11380 (remove_unused_scope_block_p): Add in_ctor_dtor_block
11381 argument. Before inlining, preserve
11382 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
11383 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
11385 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
11387 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11390 * ipa-inline.c (edge_badness): Base denominator on callee's
11393 2015-03-27 Martin Jambor <mjambor@suse.cz>
11396 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
11397 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
11398 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
11399 node_calling_single_call.
11400 * ipa-cp.c (count_callers): New function.
11401 (set_single_call_flag): Likewise.
11402 (initialize_node_lattices): Count callers and set single_flag_call if
11404 (incorporate_penalties): New function.
11405 (good_cloning_opportunity_p): Use it, dump new flags.
11406 (propagate_constants_topo): Set node_within_scc flag if appropriate.
11407 * doc/invoke.texi (ipa-cp-recursion-penalty,
11408 ipa-cp-single-call-pentalty): Document.
11410 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11413 * symtab.c (symtab_node::get_partitioning_class): Register vars
11415 * varpool.c (symbol_table::output_variables) Do not assemble unefined
11416 decls for non-symbols.
11418 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
11421 * output.h (default_binds_local_p_2): New.
11422 * varasm.c (default_binds_local_p_2): Renamed to ...
11423 (default_binds_local_p_3): This. Don't return true on protected
11424 data symbol if protected data may be external.
11425 (default_binds_local_p): Use default_binds_local_p_3.
11426 (default_binds_local_p_1): Likewise.
11427 (default_binds_local_p_2): New.
11428 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
11429 default_binds_local_p_2 if TARGET_MACHO is undefined.
11431 2015-03-27 Jakub Jelinek <jakub@redhat.com>
11434 * config/i386/i386.c (legitimize_pic_address): If base
11435 is SYMBOL_REF or LABEL_REF using %rip addressing, force
11436 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
11438 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11441 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
11444 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
11447 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
11448 of optimized out indirect call.
11449 (redirect_to_unreachable): Always build symbol table node for
11450 BUILT_IN_UNREACHABLE
11452 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
11455 * ira-costs.c (record_reg_classes): Process all constraint string
11458 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
11460 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
11464 * config/c6x/constraints.md (S3): New constraint.
11465 * config/c6x/c6x.md (real_jump): Use it.
11467 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11469 PR middle-end/65595
11470 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
11471 do redirection if the call is not optimized out.
11473 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
11476 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
11477 (fchkp-check-incomplete-type): Add LTO.
11478 (fchkp-zero-input-bounds-for-main): Likewise.
11479 (fchkp-first-field-has-own-bounds): Likewise.
11480 (fchkp-narrow-bounds): Likewise.
11481 (fchkp-narrow-to-innermost-array): Likewise.
11482 (fchkp-use-static-bounds): Likewise.
11483 (fchkp-use-static-const-bounds): Likewise.
11484 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11486 2015-03-27 Marek Polacek <polacek@redhat.com>
11488 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
11490 2015-03-27 Marek Polacek <polacek@redhat.com>
11493 * ubsan.c (ubsan_create_edge): New function.
11494 (instrument_bool_enum_load): Call it.
11495 (instrument_nonnull_arg): Likewise.
11496 (instrument_nonnull_return): Likewise.
11497 (instrument_object_size): Likewise.
11499 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11501 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
11504 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11507 * lto-streamer.h (class lto_location_cache): New.
11508 (struct data_in): Add location_cache.
11509 (lto_input_location): Update prototype.
11510 (stream_input_location_now): New.
11511 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
11512 pointer to location.
11513 (stream_input_location): Update.
11514 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
11515 (warn_odr): Apply location cache before warning.
11516 (lto_input_location): Update prototype.
11517 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
11518 Use stream_input_location_now.
11519 * lto-streamer-in.c (lto_location_cache::current_cache): New static
11521 (lto_location_cache::cmp_loc): New function.
11522 (lto_location_cache::apply_location_cache): New function.
11523 (lto_location_cache::accept_location_cache): New function.
11524 (lto_location_cache::revert_location_cache): New function.
11525 (lto_location_cache::input_location): New function.
11526 (lto_input_location): Do location caching.
11527 (stream_input_location_now): New function.
11528 (input_eh_region, input_struct_function_base): Use
11529 stream_input_location_now.
11530 (lto_data_in_create): use new.
11531 (lto_data_in_delete): Use delete.
11532 * tree-streamer-in.c (unpack_ts_block_value_fields,
11533 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
11534 lto_input_ts_exp_tree_pointers): Update for cached location api.
11536 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11539 * passes.def: Add pass_nothrow.
11540 * ipa-pure-const.c: (pass_data_nothrow): New.
11541 (pass_nothrow): New.
11542 (pass_nothrow::execute): New.
11543 (make_pass_nothrow): New.
11544 * tree-pass.h (make_pass_nothrow): Declare.
11546 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11548 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
11549 edge to change by speculation resolution or redirection.
11550 (edge_set_predicate): Likewise.
11551 (inline_summary_t::duplicate): Likewise.
11552 (remap_edge_summaries): Likewise.
11554 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11556 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
11558 (can_inline_edge_p): Relax option matching for always inline functions.
11560 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
11563 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
11564 Check operand 4 and operand 0 for equality.
11565 (avx512f_vextract<shuffletype>32x4_1_maskm):
11566 Check operand 6 and operand 0 for equality.
11567 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
11569 (vec_extract_hi_<mode>_maskm): Ditto.
11571 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11573 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
11574 dead calls back to live.
11575 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
11577 (cgraph_node::verify_node): ... here; verify only callee edges,
11579 * cif-code.def (CILK_SPAWN): New code.
11581 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
11583 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
11584 (edge_set_predicate): Use it to mark unreachable edges.
11585 (inline_summary_t::duplicate): Remove unnecesary code.
11586 (remap_edge_summaries): Likewise.
11587 (dump_inline_summary): Report contains_cilk_spawn.
11588 (compute_inline_parameters): Compute contains_cilk_spawn.
11589 (inline_read_section, inline_write_summary): Stream
11590 contains_cilk_spawn.
11591 * ipa-inline.c (can_inline_edge_p): Do not touch
11592 DECL_STRUCT_FUNCTION that may not be available;
11593 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
11594 remove check for callee_fun->can_throw_non_call_exceptions and
11595 replace it by optimization attribute check; check for flag_exceptions.
11596 * ipa-inline-transform.c (inline_call): Maintain
11597 DECL_FUNCTION_PERSONALITY
11598 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
11600 2015-03-26 Jakub Jelinek <jakub@redhat.com>
11602 PR tree-optimization/65551
11603 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
11604 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
11606 2015-03-26 Richard Biener <rguenther@suse.de>
11608 PR middle-end/65555
11609 * tree-cfg.c (verify_gimple_call): Do not require a call to
11610 have no LHS if it wasn't recognized as control altering yet.
11612 2015-03-26 Jakub Jelinek <jakub@redhat.com>
11614 PR tree-optimization/64715
11615 * passes.def: Add another instance of pass_object_sizes before ccp1.
11616 * tree-object-size.c (pass_object_sizes::execute): In
11617 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
11618 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
11619 __bos result and the computed constant. Remove redundant
11620 checks, obsoleted by gimple_call_builtin_p test.
11622 * var-tracking.c (variable_tracking_main_1): Don't track
11623 variables for targetm.no_register_allocation targets.
11625 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
11627 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
11628 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
11630 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11633 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
11634 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
11635 0.0 is correctly setup.
11636 (extenddftf2_internal): Likewise.
11638 2015-03-25 Sebastian Pop <s.pop@samsung.com>
11640 PR tree-optimization/65177
11641 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
11643 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
11644 edges not adjacent on the path to the original code.
11646 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
11649 * doc/install.texi (Building a native compiler): Document new
11650 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
11651 configuration assumes that the host supports the linker plugin.
11653 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
11656 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
11657 chain for generated call.
11659 2015-03-25 Richard Biener <rguenther@suse.de>
11661 * passes.c (pass_manager::execute_early_local_passes): Guard
11662 execution of pass_chkp_instrumentation_passes with
11663 flag_check_pointer_bounds.
11664 (pass_chkp_instrumentation_passes::gate): Likewise.
11666 2015-03-25 Martin Liska <mliska@suse.cz>
11668 PR tree-optimization/65538
11669 * symbol-summary.h (function_summary::~function_summary):
11670 Relese memory for allocated summaries.
11671 (function_summary::release): New function.
11673 2015-03-25 Jakub Jelinek <jakub@redhat.com>
11676 * lto-streamer-out.c (DFS::worklist): New struct.
11677 (DFS::worklist_vec): New data member.
11678 (DFS::next_dfs_num): Remove.
11679 (DFS::DFS): Rewritten using worklist instead of recursion,
11680 using most of code from DFS::DFS_write_tree.
11681 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
11682 pass it to DFS_write_tree calls.
11683 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
11684 quick initial checks push it into worklist_vec and return.
11686 2015-03-25 Richard Biener <rguenther@suse.de>
11688 PR middle-end/65519
11689 * genmatch.c (expr::gen_transform): Re-write to avoid
11690 using gimple_build.
11692 2015-03-25 Bin Cheng <bin.cheng@arm.com>
11694 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
11696 2015-03-25 Bin Cheng <bin.cheng@arm.com>
11698 * config/arm/arm.opt (print_tune_info): New option.
11699 * config/arm/arm.c (arm_print_tune_info): New function.
11700 (arm_file_start): Call arm_print_tune_info.
11701 * config/arm/arm-protos.h (struct tune_params): Add comment.
11702 * doc/invoke.texi (@item -mprint-tune-info): New item.
11703 (-mtune): mention it in ARM Option Summary.
11705 2015-03-25 DJ Delorie <dj@redhat.com>
11707 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
11710 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
11711 Martin Liska <mliska@suse.cz>
11713 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
11714 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
11715 (sem_item::add_type): New function.
11716 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
11717 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
11718 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
11719 (sem_function::equals_wpa): Fix typo.
11720 * ipa-icf.h (sem_item::add_type): New function.
11721 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
11724 2015-03-24 Jakub Jelinek <jakub@redhat.com>
11726 PR tree-optimization/65533
11727 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
11728 with swapped operands, call vect_free_slp_tree on
11729 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
11732 2015-03-24 Richard Biener <rguenther@suse.de>
11734 PR middle-end/65517
11735 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
11736 for fixup if necessary.
11738 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
11740 * doc/extend.texi (Function Attributes): Add @cindex entries
11741 for all attributes and regularize their format. Delete text
11742 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
11743 information about "eightbit_data", "tiny_data", and "model"
11744 variable attributes to the Variable Attributes section. Fix
11745 some obvious typos and copy-editing issues.
11746 (Variable Attributes, Type Attributes): Likewise add/fix
11747 @cindex entries for all attributes.
11749 2015-03-23 Jakub Jelinek <jakub@redhat.com>
11752 * tree-chkp.c (chkp_build_returned_bound): Ignore
11753 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
11755 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
11758 * config/sh/predicates.md (simple_mem_operand,
11759 displacement_mem_operand): Add test for reg.
11760 (short_displacement_mem_operand): Test for displacement_mem_operand
11761 before invoking sh_disp_addr_displacement.
11762 * config/sh/constraints.md (Sdd, Sra): Simplify.
11763 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
11764 Remove redundant displacement_mem_operand tests.
11766 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
11769 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
11770 the same -mmcu=MCU more than once.
11772 2015-03-23 Jakub Jelinek <jakub@redhat.com>
11775 * ipa-devirt.c: Remove duplicate demangle.h include.
11778 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
11780 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
11781 REG_POINTER on *destptr after adjusting it for prologue size.
11784 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
11785 ultimate_alias_target ()->order ints instead of
11786 ultimate_alias_target () pointers.
11788 2015-03-23 Richard Biener <rguenther@suse.de>
11790 PR tree-optimization/65518
11791 * tree-vect-stmts.c (vectorizable_load): Reject single-element
11792 interleaving cases we generate absymal code for.
11794 2015-03-23 Richard Biener <rguenther@suse.de>
11796 PR tree-optimization/65494
11797 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
11799 (vect_analyze_slp_instance): But do that here, always and once.
11801 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11803 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
11804 adding T or multiplying by T+1 and subracting T.
11806 2015-03-22 Jeff Law <law@redhat.com>
11808 PR rtl-optimization/64317
11809 * Makefile.in (OBJS): Add gcse-common.c
11810 * gcse.c: Include gcse-common.h
11811 (struct modify_pair_s): Move structure definition to gcse-common.h
11812 (compute_transp): Move function to gcse-common.c.
11813 (canon_list_insert): Similarly.
11814 (record_last_mem_set_info): Break out some code and put it into
11815 gcse-common.c. Call into the new common code.
11816 (compute_local_properties): Pass additional arguments to compute_transp.
11817 * postreload-gcse.c: Include gcse-common.h and df.h
11818 (modify_mem_list_set, blocks_with_calls): New variables.
11819 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
11820 (get_bb_avail_insn): Pass in the expression index too.
11821 (alloc_mem): Allocate memory for the new bitmaps and lists.
11822 (free_mem): Free memory for the new bitmaps and lists.
11823 (insert_expr_in_table): Record a bitmap index for each entry we
11825 (record_last_mem_set_info): Call into common code in gcse-common.c.
11826 (get_bb_avail_insn): If no available insn was found in the requested
11827 BB. If BB has a single predecessor, see if the expression is
11828 transparent in BB and available in that single predecessor.
11829 (compute_expr_transp): New wrapper for compute_transp.
11830 (eliminate_partially_redundant_load): Pass expression's bitmap_index
11831 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
11832 (gcse_after_reload_main): If there are elements in the hash table,
11833 then compute transparency for all the elements in the hash table.
11834 * gcse-common.h: New file.
11835 * gcse-common.c: New file.
11837 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
11839 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11841 (System Headers): Likewise.
11843 (Traditional macros): Likewise.
11844 (Invocation): Likewise.
11845 (Option Index): Likewise.
11846 * doc/cppopts.texi (-M): Likewise.
11847 (-finput-charset): Likewise.
11848 (--help): Likewise.
11849 * doc.invoke.texi (AVR Options): Likewise.
11850 (V850 Options): Likewise.
11852 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
11855 * ipa-devirt.c: Include demangle.h
11856 (odr_type_d): Add field rtti_broken.
11857 (odr_subtypes_equivalent_p): Do not require name to match.
11858 (compare_virtual_tables): Fix typo; if type already has ODR violation,
11859 bypass the tests; be ready for function referneces in vtables that are
11860 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11861 (warn_odr): Give up for nameless types.
11862 (warn_types_mismatch): Report mismatch in mangled names;
11863 report mismatch in anonymous namespaces; look into component types to
11864 give useful error; report when mismatch is dragged in from other ODR
11866 (odr_types_equivalent_p): Match types for being polymorphic; avoid
11867 duplicated diagnostics.
11868 (add_type_duplicate): Reorder checks so more informative ones come
11869 first; fix typo; do not output "the extra base is defined here" when
11871 (BINFO_N_BASE_BINFOS): Relax sanity check.
11873 2015-03-22 Martin Liska <mliska@suse.cz>
11874 Jakub Jelinek <jakub@redhat.com>
11876 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11877 masks that can potentially include a builtin.
11878 (ix86_add_new_builtins): Introduce fast filter for isa values
11879 that cannot trigger builtin inclusion.
11881 2015-03-22 Martin Liska <mliska@suse.cz>
11883 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11884 (sem_item::update_hash_by_local_refs): Likewise.
11885 (sem_variable::get_hash): Empty line is fixed.
11886 (sem_item_optimizer::execute): Include adding of hash references.
11887 (sem_item_optimizer::update_hash_by_addr_refs): New function.
11888 (sem_item_optimizer::build_hash_based_classes): Use local hash.
11889 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11890 (sem_item::update_hash_by_local_refs): Likewise.
11892 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11895 * ipa-comdats.c (enqueue_references): Walk through thunks.
11896 (ipa_comdats): Likewise.
11897 (set_comdat_group_1): New function.
11899 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11902 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11905 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
11906 Gerald Pfeifer <gerald@pfeifer.com>
11908 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11910 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11911 Sandra Loosemore <sandra@codesourcery.com>
11913 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11914 function parameter declaration.
11915 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11916 Update arguments to nios2_adjust_call_address().
11917 (sibcall_internal): Rename from *sibcall.
11918 (sibcall_value_internal): Rename from *sibcall_value.
11919 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11920 (nios2_large_got_address): Add target temp reg parameter.
11921 (nios2_got_address): Adjust call to nios2_large_got_address, add
11922 force_reg around it.
11923 (nios2_load_pic_address): Add target temp reg parameter, replace call
11924 to nios2_got_address with corresponding code.
11925 (nios2_legitimize_constant_address): Update call to
11926 nios2_load_pic_address.
11927 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11928 to use temp reg for PIC loading purposes.
11929 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11930 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11931 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11933 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11935 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11936 usage of "the @option{...}".
11937 (-Wopenmp-simd): Likewise.
11938 (-fsanitize-recover): Likewise.
11939 (-fsanitize-undefined-trap-on-error): Likewise.
11941 (tracer-dynamic-coverage-feedback): Likewise.
11942 (reorder-block-duplicate-feedback): Likewise.
11943 (loop-unroll-jam-size): Likewise.
11946 (-mabs=legacy): Likewise.
11947 (-mupper-regs-df): Likewise.
11948 (-mupper-regs-sf): Likewise.
11949 (-mpointers-to-nested-functions): Likewise.
11951 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11953 * doc/extend.texi (Cilk Plus Builtins): Add markup.
11955 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11957 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11958 additional index entries and cross-references.
11959 (-fchkp-check-incomplete-type): Likewise.
11960 (-fchkp-first-field-has-own-bounds): Likewise.
11961 (-fchkp-narrow-to-innermost-array): Likewise.
11962 (-fchkp-use-fast-string-functions): Likewise.
11963 (-fchkp-use-nochk-string-functions): Likewise.
11964 (-fchkp-use-static-const-bounds): Likewise.
11965 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11966 (-fchkp-instrument-marked-only): Likewise.
11967 (-fchkp-use-wrappers): Likewise.
11968 (-static-libmpx): Likewise.
11969 (-static-libmpxwrappers): Likewise.
11970 * doc/extend.texi (bnd_legacy): Likewise.
11971 (bnd_instrument): Likewise.
11972 (bnd_variable_size): Likewise.
11973 (Pointer Bounds Checker builtins): Likewise.
11975 2015-03-21 Tom de Vries <tom@codesourcery.com>
11977 PR tree-optimization/65458
11978 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11979 * cgraph.h (cgraph_node): Add parallelized_function field.
11980 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11981 (input_overwrite_node): Read parallelized_function field.
11982 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11983 parallelized_function on cgraph_node for child_fn.
11984 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11985 Remove include of gt-tree-parloops.h.
11986 (parallelized_functions): Remove static variable.
11987 (parallelized_function_p): Rewrite using parallelized_function field of
11989 (create_loop_fn): Remove adding to parallelized_functions.
11990 * Makefile.in (GTFILES): Remove tree-parloops.c
11992 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
11994 PR rtl-optimization/64366
11995 * lra.c (lra_update_insn_regno_info): Consider regs in
11996 CALL_INSN_FUNCTION_USAGE memory.
11998 2015-03-20 Richard Biener <rguenther@suse.de>
12000 PR middle-end/64715
12001 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
12002 for type comparison and gcc_checking_assert.
12003 (chrec_fold_plus_poly_poly): Likewise.
12004 (chrec_fold_multiply_poly_poly): Likewise.
12005 (chrec_convert_1): Likewise.
12006 * gimplify.c (gimplify_expr): Remove premature folding of
12007 &X + CST to &MEM[&X, CST].
12009 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
12011 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
12013 (ipa_inline): Recompute inline_failed codes.
12014 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
12015 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
12018 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
12020 PR rtl-optimization/60851
12021 * recog.c (constrain_operands): Accept a pseudo register before reload
12022 for LRA enabled targets.
12024 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
12027 * config/rs6000/predicates.md (easy_fp_constant): Remove special
12028 -ffast-math handling that kept non-0 constants live in the RTL
12029 until reload. Remove logic testing the number of instructions it
12030 took to create a constant in a GPR that was never used, due to a
12031 test for soft-float earlier.
12032 (memory_fp_constant): Delete, no longer used.
12034 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
12035 alternatives for loading non-0 constants into GPRs for hard
12036 floating point that is no longer needed due to changes in
12037 easy_fp_constant. Add support for loading 0.0 into GPRs.
12038 (mov<mode>_hardfloat32): Likewise.
12039 (mov<mode>_hardfloat64): Likewise.
12040 (mov<mode>_64bit_dm): Likewise.
12041 (movtd_64bit_nodm): Likewise.
12042 (pre-reload move FP constant define_split): Delete define_split,
12043 since it is no longer used.
12044 (extenddftf2_internal): Remove GHF constraints that are not valid
12047 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
12049 PR rtl-optimization/63491
12050 * lra-constraints.c (check_and_process_move): Use src instead of
12051 sreg. Remove some dead code.
12053 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
12056 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
12057 (sem_variable::merge): Likewise.
12059 2015-03-19 Martin Liska <mliska@suse.cz>
12062 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
12063 all fields of cgraph_thunk_info.
12065 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
12067 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
12068 clone instrumented thunks.
12070 2015-03-19 Richard Biener <rguenther@suse.de>
12073 2015-03-10 Richard Biener <rguenther@suse.de>
12075 PR middle-end/63155
12076 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12077 * tree-ssa-coalesce.c: Include timevar.h.
12078 (attempt_coalesce): Handle graph being NULL.
12079 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12080 Split out abnormal coalescing to ...
12081 (perform_abnormal_coalescing): ... this function.
12082 (coalesce_ssa_name): Perform abnormal coalescing without computing
12084 (verify_ssa_coalescing_worker): New function.
12085 (verify_ssa_coalescing): Likewise.
12087 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12088 Jakub Jelinek <jakub@redhat.com>
12091 * tsan.c (instrument_gimple): Clear tail call flag on
12094 2015-03-19 Jakub Jelinek <jakub@redhat.com>
12097 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
12098 call in the return bb.
12099 (find_split_points): Add RETURN_BB argument, don't call
12101 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
12102 if true append TSAN_FUNC_EXIT internal call after the call to
12103 the split off function.
12104 (execute_split_functions): Call find_return_bb here.
12105 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
12106 Adjust find_split_points and split_function calls.
12108 2015-03-18 DJ Delorie <dj@redhat.com>
12110 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
12111 (iorqi3_virt): Likewise.
12113 2015-03-18 Tom de Vries <tom@codesourcery.com>
12115 * tree-parloops.c (parallelize_loops): Make static.
12116 * tree-parloops.h (parallelize_loops): Remove extern declaration.
12118 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
12120 PR middle-end/64491
12122 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
12124 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
12125 condition would be removed due to undefined behaviour.
12127 2015-03-18 Martin Liska <mliska@suse.cz>
12130 * cgraph.c (cgraph_node::get_create): Remove unnecessary
12131 xstrdup_for_dump wrapper.
12132 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
12134 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
12135 with xstrdup_for_dump.
12136 (sem_variable::equals): Likewise.
12137 (sem_item_optimizer::read_section): Use symtab_node::name instead of
12139 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
12140 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
12141 symtab_node::asm_name with xstrdup_for_dump.
12142 (congruence_class::dump): Use symtab_node::name instead of
12144 * ipa-icf.h (symtab_node::name): Remove.
12145 (symtab_node::asm_name): Likewise.
12147 2015-03-18 Jakub Jelinek <jakub@redhat.com>
12149 PR tree-optimization/65450
12150 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
12152 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
12153 it instead of duplicate_ssa_name_ptr_info.
12156 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
12158 2015-03-18 Richard Biener <rguenther@suse.de>
12160 * tree-data-ref.h (struct access_matrix): Remove.
12161 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12162 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12163 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
12164 (am_vector_index_for_loop): Likewise.
12165 (struct data_reference): Remove access_matrix member.
12166 (DR_ACCESS_MATRIX): Remove.
12167 (lambda_vector_new): Add comment.
12168 (lambda_matrix_new): Use XOBNEWVEC.
12170 2015-03-18 Richard Biener <rguenther@suse.de>
12172 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
12173 (pass_ch::execute): Cleanup the CFG only if we did sth.
12174 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
12176 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12178 * expmed.c (synth_mult): Use std::swap instead of manually
12179 swapping algorithms.
12181 2015-03-18 Jakub Jelinek <jakub@redhat.com>
12184 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
12186 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
12189 * config/avr/avr.opt (-nodevicelib): New option.
12190 * doc/invoke.texi (AVR Options): Document it.
12191 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
12192 libgcc.a, libc.a, libm.a.
12193 * config/avr/specs.h: Same.
12194 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
12195 which don't (directly) depend on the device. Print more help.
12196 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
12197 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
12198 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
12200 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
12201 for specs file name.
12202 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
12203 * config/avr/avr-mcus.def: Adjust initializers and comments.
12205 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
12207 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
12208 DECL_ONE_ONLY to check if decl is one only.
12209 * ipa-split.c (consider_split): Limit splitt of one only functions.
12211 2015-03-16 Jakub Jelinek <jakub@redhat.com>
12213 PR tree-optimization/65427
12214 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
12216 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
12218 2015-03-16 Marek Polacek <polacek@redhat.com>
12220 * cgraph.h (add_new_static_var): Remove declaration.
12221 * varpool.c (add_new_static_var): Remove function.
12223 2015-03-16 Jakub Jelinek <jakub@redhat.com>
12225 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
12226 instead of vec<tree> * with vec_alloc and release for args.
12229 PR middle-end/65431
12230 * omp-low.c (delete_omp_context): Only splay_tree_delete
12231 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
12232 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
12234 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
12237 * cfgexpand.c (align_base): New function.
12238 (alloc_stack_frame_space): Call it.
12239 (expand_stack_vars): Align prev_frame to be sure
12240 data->asan_vec elements aligned properly.
12242 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
12244 PR middle-end/65409
12245 * expr.c (store_field): Do not do a direct block copy if the source is
12246 a PARALLEL with BLKmode.
12248 2015-03-16 Tom de Vries <tom@codesourcery.com>
12250 PR middle-end/65414
12252 2015-03-12 Tom de Vries <tom@codesourcery.com>
12254 PR rtl-optimization/64895
12255 * lra-lives.c (check_pseudos_live_through_calls): Use
12256 actual_call_used_reg_set instead of call_used_reg_set, if available.
12258 2015-03-16 Alan Modra <amodra@gmail.com>
12261 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
12262 Modify Z->r bswapdi splitter to use dest in place of scratch.
12263 In r->Z and Z->r bswapdi splitter rename word_high, word_low
12264 to word1, word2 and rearrange logic to suit.
12265 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
12266 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
12267 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
12268 Add one '?' on r->r. Modify Z->r splitter to avoid need for
12271 2015-03-14 Jakub Jelinek <jakub@redhat.com>
12273 PR tree-optimization/65369
12274 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
12275 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
12276 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
12278 PR tree-optimization/65418
12279 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
12280 are casts in the first PLUS_EXPR operand, ensure tbias and
12281 *totallowp are in the inner type.
12283 PR rtl-optimization/65401
12284 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
12285 argument. If true, adjust_address_nv of x with big-endian
12286 correction for the mode widening to GET_MODE (y).
12287 (make_field_assignment): Don't do MEM mode widening here.
12288 Use MEM_P instead of GET_CODE == MEM.
12290 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
12292 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
12293 the external decls.
12295 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12298 * config/arm/arm.c (arm_gen_constant, AND case): Use
12299 ARM_SIGN_EXTEND when constructing AND mask.
12301 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12303 * graph.c (print_graph_cfg): Make function names visible and append
12304 parenthesis to it. Also make groups of basic blocks belonging to the
12305 same function visible.
12307 2015-03-12 Richard Biener <rguenther@suse.de>
12309 PR middle-end/44563
12310 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
12311 to avoid quadratic behavior with inline expansion splitting blocks.
12312 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
12313 with the successor if the predecessor will be merged with it.
12314 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
12315 entry block with its successor.
12317 2015-03-13 Richard Biener <rguenther@suse.de>
12319 PR middle-end/44563
12320 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
12321 (cleanup_tree_cfg_1): Do not call it.
12322 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
12323 (fixup_noreturn_call): Mark the stmt as control altering.
12324 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
12326 (pass_data_fixup_cfg): Produce a dump file.
12327 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
12328 (need_noreturn_fixup): New global.
12329 (pass_dominator::execute): Fixup queued noreturn calls.
12330 (optimize_stmt): Queue calls that became noreturn for fixup.
12331 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
12332 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
12333 (el_to_fixup): New global.
12334 (eliminate_dom_walker::before_dom_childre): Queue calls that
12335 became noreturn for fixup.
12336 (eliminate): Fixup queued noreturn calls.
12337 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
12338 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
12339 (substitute_and_fold_dom_walker::before_dom_children): Queue
12340 alls that became noreturn for fixup.
12341 (substitute_and_fold): Fixup queued noreturn calls.
12343 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
12345 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
12346 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
12347 are building; for methods check ODR type of class they belong to if
12348 they may lead to a polymorphic call.
12349 (sem_function::compare_polymorphic_p): Be bit smarter about testing
12350 when function may lead to a polymorphic call.
12351 (sem_function::compare_type_list): Remove.
12352 (sem_variable::equals): Update use of compatible_types_p.
12353 (sem_variable::parse_tree_refs): Remove.
12354 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
12356 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
12358 (func_checker::compatible_polymorphic_types_p): Break out from ...
12359 (unc_checker::compatible_types_p): ... here.
12360 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
12362 (unc_checker::compatible_types_p): Update.
12363 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
12366 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12368 PR rtl-optimization/65235
12369 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
12370 When first element of vec_concat is const_int, calculate its size
12371 using second element.
12373 2015-03-12 Richard Biener <rguenther@suse.de>
12375 PR middle-end/65270
12376 * fold-const.c (operand_equal_p): Fix ordering of resetting
12377 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
12379 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
12381 * config/s390/s390.c (s390_reorg): Move code to output nops after label
12383 (s390_asm_output_function_label): Likewise.
12384 * config/s390/s390.c (s390_asm_output_function_label):
12385 Fix function label alignment with -mhtopatch.
12386 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
12387 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
12388 ("nop_2_byte"): New define_insn.
12389 ("nop_4_byte"): Likewise.
12390 ("nop_6_byte"): Likewise.
12391 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
12392 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
12394 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
12397 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
12400 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
12403 * toplev.c (process_options): Restrict Pointer Bounds Checker
12404 usage with Address Sanitizer.
12406 2015-03-12 Richard Biener <rguenther@suse.de>
12408 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
12410 * omp-low.c (expand_omp_taskreg): Split block before removing
12412 (expand_omp_target): Likewise.
12413 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
12414 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
12415 stmt to split_block.
12417 2015-03-12 Tom de Vries <tom@codesourcery.com>
12419 PR rtl-optimization/64895
12420 * lra-lives.c (check_pseudos_live_through_calls): Use
12421 actual_call_used_reg_set instead of call_used_reg_set, if available.
12423 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
12425 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
12426 (cgraph_node::remove): Likewise.
12427 (cgraph_node::get_untransformed_body): Likewise.
12428 * varpool.c (varpool_node::remove): Likewise.
12429 (varpool_node::get_constructor): Add sanity check.
12431 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
12433 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
12435 (-fabi-compat-version): Likewise.
12436 (-ffriend-injection): Likewise.
12437 (-Wdeclaration-after-statement): Likewise.
12438 (-fomit-frame-pointer): Likewise.
12439 (-ftree-coalesce-inlined-vars): Likewise.
12440 (-fvisibility=): Likewise.
12441 * doc/extend.texi (Typeof): Likewise.
12442 (Zero Length): Likewise.
12443 (Escaped Newlines): Likewise.
12444 (Compound Literals): Likewise.
12445 (Function Attributes): Likewise.
12446 (Label Attributes): Likewise.
12447 (Type Attributes): Likewise.
12448 (Function Names): Likewise.
12449 (Other Builtins): Likewise.
12450 (Function Specific Option Pragmas): Likewise.
12451 (C++ Interface): Likewise.
12453 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
12455 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
12457 2015-03-11 Marek Polacek <polacek@redhat.com>
12459 PR tree-optimization/65388
12460 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
12462 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
12465 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
12466 * configure: Regenerate.
12467 * config.in: Regenerate.
12468 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
12469 [-mn-flash]: Document it.
12470 [__AVR_ARCH__]: Document avrtiny.
12472 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
12473 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
12474 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
12476 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12478 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
12480 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12483 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
12484 allow reloads of PLUS in floating point/VSX registers.
12486 2015-03-11 Junmo Park <junmoz.park@samsung.com>
12488 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
12489 crypto_sha256_fast.
12490 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
12492 2015-03-11 Richard Biener <rguenther@suse.de>
12494 PR tree-optimization/65310
12495 * tree-sra.c (build_ref_for_offset): Also preserve larger
12498 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
12500 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
12502 2015-03-10 Jakub Jelinek <jakub@redhat.com>
12505 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
12507 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
12509 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
12511 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
12512 (sem_function::equals_wpa): ... here.
12514 2015-03-10 Marek Polacek <polacek@redhat.com>
12515 Jakub Jelinek <jakub@redhat.com>
12518 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
12519 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
12522 2015-03-10 Jakub Jelinek <jakub@redhat.com>
12525 * config/rs6000/t-linux: For powerpc64* target set
12526 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
12528 2015-03-10 Richard Biener <rguenther@suse.de>
12530 PR middle-end/44563
12531 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
12532 for redirect_all_calls.
12534 2015-03-10 Marek Polacek <polacek@redhat.com>
12536 * gdbinit.in (pcfun): Define and document.
12538 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
12540 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
12541 of libgomp-plugin.h.
12542 (find_target_compiler): Support a case when the path to gcc is
12543 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
12544 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
12545 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
12547 (main): Use GCC_INSTALL_NAME as target_driver_name.
12548 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
12550 (mkoffload.o): Remove obsolete include path and defines.
12551 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
12553 2015-03-10 Richard Biener <rguenther@suse.de>
12555 PR middle-end/63155
12556 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12557 * tree-ssa-coalesce.c: Include timevar.h.
12558 (attempt_coalesce): Handle graph being NULL.
12559 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12560 Split out abnormal coalescing to ...
12561 (perform_abnormal_coalescing): ... this function.
12562 (coalesce_ssa_name): Perform abnormal coalescing without computing
12564 (verify_ssa_coalescing_worker): New function.
12565 (verify_ssa_coalescing): Likewise.
12567 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
12570 * config.gcc (extra_options) [avr]: Remove.
12571 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
12572 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
12573 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
12575 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
12576 (-mmcu=): Add Var and MissingArgError properties.
12578 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
12579 * config/avr/t-multilib: Regenerate.
12580 * config/avr/specs.h: New file.
12581 * config/avr/driver-avr.c: New file.
12582 * config/avr/genopt.sh: Remove file.
12583 * config/avr/avr-tables.opt: Remove file.
12584 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
12585 * config/avr/avr-c.c: Same.
12586 * avr-arch.h: Same.
12587 (avr_current_device): Remove proto.
12588 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
12589 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
12590 (EXTRA_SPEC_FUNCTIONS): Define.
12591 (avr_devicespecs_file): New specs function proto.
12592 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
12593 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
12594 (avr_current_device): Remove definition and usage.
12595 (avr_set_core_architecture): New static function.
12596 (avr_option_override): Use it.
12597 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
12598 (mcu_name): New static array.
12599 (comparator, avr_archs_str, avr_mcus_str): New static functions.
12600 (avr_inform_devices, avr_inform_core_architectures): New functions.
12601 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
12602 (avrlibc.h) [WITH_AVRLIBC]: Include.
12603 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
12604 (print_mcu): Rewrite from scratch.
12605 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
12606 Forward to avr-specific specs defined in device-specs file.
12607 * config/avr/t-avr (driver-avr.o): New rule.
12608 (avr-devices.o): Depend on avr-arch.h.
12609 (avr-mcus): No more depend on avr-tables.opt.
12610 (avr-tables.opt): Remove rule.
12611 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
12613 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
12615 * c-family/c.opt (fchkp-use-wrappers): New.
12616 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
12617 (chkp_wrap_function): New.
12618 (chkp_build_instrumented_fndecl): Support wrapped
12620 * doc/invoke.texi (-fcheck-pointer-bounds): New.
12621 (-fchkp-check-incomplete-type): New.
12622 (-fchkp-first-field-has-own-bounds): New.
12623 (-fchkp-narrow-bounds): New.
12624 (-fchkp-narrow-to-innermost-array): New.
12625 (-fchkp-optimize): New.
12626 (-fchkp-use-fast-string-functions): New.
12627 (-fchkp-use-nochk-string-functions): New.
12628 (-fchkp-use-static-bounds): New.
12629 (-fchkp-use-static-const-bounds): New.
12630 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
12631 (-fchkp-check-read): New.
12632 (-fchkp-check-write): New.
12633 (-fchkp-store-bounds): New.
12634 (-fchkp-instrument-calls): New.
12635 (-fchkp-instrument-marked-only): New.
12636 (-fchkp-use-wrappers): New.
12637 (-static-libmpx): New.
12638 (-static-libmpxwrappers): New.
12640 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
12642 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
12643 (CHKP_SPEC): Add wrappers library.
12644 * c-family/c.opt (static-libmpxwrappers): New.
12646 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
12648 * config/i386/linux-common.h (LIBMPX_LIBS): New.
12649 (LIBMPX_SPEC): New.
12651 * gcc.c (CHKP_SPEC): New.
12652 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
12653 * c-family/c.opt (static-libmpx): New.
12655 2015-03-10 Richard Biener <rguenther@suse.de>
12657 PR middle-end/44563
12658 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
12660 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
12661 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
12662 (cgraph_add_edge_to_call_site_hash): Likewise.
12663 (cgraph_node::get_edge): Likewise.
12664 (cgraph_edge::set_call_stmt): Likewise.
12665 (cgraph_edge::remove_caller): Likewise.
12667 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
12669 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
12670 (callee_saved_gpr_regs_size): ... this.
12671 (callee_saved_regs_first_regno): Rename to ...
12672 (callee_saved_first_gpr_regno): ... this.
12673 (callee_saved_regs_last_regno) Rename to ...
12674 (callee_saved_last_gpr_regno): ... this.
12675 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
12677 (nds32_initial_elimination_offset): Likewise.
12678 (nds32_expand_prologue): Likewise.
12679 (nds32_expand_epilogue): Likewise.
12680 (nds32_expand_prologue_v3push): Likewise.
12681 (nds32_expand_epilogue_v3pop): Likewise.
12682 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
12683 Adjust renamed variables.
12684 (nds32_output_stack_pop): Likewise.
12686 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
12688 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
12691 2015-03-10 Jakub Jelinek <jakub@redhat.com>
12693 PR rtl-optimization/65321
12694 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
12696 * var-tracking.c (use_narrower_mode): Likewise.
12698 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
12700 PR tree-optimization/65355
12701 * varasm.c (notice_global_symbol): Do not produce RTL.
12702 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
12704 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
12705 check for section anchors.
12707 2015-03-10 Alan Modra <amodra@gmail.com>
12710 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
12711 to be single-arch by default. Set cpu_is_64bit for powerpc64
12712 given --with-cpu=native.
12713 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
12714 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
12716 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
12717 rs6000_isa_flags rather than TARGET_64BIT.
12719 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
12720 Kaz Kojima <kkojima@gcc.gnu.org>
12722 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
12724 2015-03-09 Jakub Jelinek <jakub@redhat.com>
12727 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
12728 on a TREE_BINFO, instead use BINFO_TYPE.
12730 2015-03-09 Richard Biener <rguenther@suse.de>
12732 PR middle-end/65270
12733 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
12734 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
12735 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
12736 of that. When comparing dereferences compare alignment.
12737 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
12739 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
12741 * ipa-inline-analysis.c (check_callers): Check
12742 node->can_remove_if_no_direct_calls_and_refs_p.
12743 (growth_likely_positive): Reorganize to call
12744 can_remove_if_no_direct_calls_p later.
12745 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
12746 will_be_removed_from_program_if_no_direct_calls_p): Add
12747 will_inline parameter.
12748 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
12749 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12750 Handle inliner case correctly.
12752 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12754 PR tree-optimization/63743
12755 * cfgexpand.c (reorder_operands): Also reorder if only second operand
12756 had its definition forwarded by TER.
12758 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
12761 * ipa-utils.h (types_odr_comparable): Add strict argument.
12762 * ipa-devirt.c: Fix whitespace;
12763 (odr_hasher): Remove.
12764 (odr_name_hasher, odr_vtable_hasher): New hashers.
12765 (can_be_name_hashed_p): New predicate.
12766 (hash_type_name): remove.
12767 (hash_odr_name): New.
12768 (odr_name_hasher::hash): new.
12769 (can_be_vtable_hashed_p): New.
12770 (hash_odr_vtable): New.
12771 (odr_vtable_hasher::hash): New.
12772 (types_same_for_odr): Add strict parameter.
12773 (types_odr_comparable): Likewise.
12774 (odr_name_hasher::equal): New.
12775 (odr_vtable_hasher::equal): New.
12776 (odr_name_hasher::remove): New.
12777 (odr_hash_type): Change to hash_table<odr_name_hasher>.
12778 (odr_vtable_hash_type): New.
12779 (odr_vtable_hash): New.
12780 (odr_subtypes_equivalent_p): Do strict comparsion.
12781 (add_type_duplicate): Merge type names; cleanup; avoid type
12783 (register_odr_type): Initialize vtable hash.
12784 (build_type_inheritance_graph): Likewise
12785 (get_odr_type): Reorg to use two hashes.
12786 (dump_possible_polymorphic_call_targets): Move sanity check after debug
12788 (ipa_devirt): Dump type_inheritance_graph.
12789 (types_same_for_odr): Add strict mode.
12791 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12794 * cgraph.h (symtab_node): Add definition_alignment,
12795 can_increase_alignment_p and increase_alignment.
12796 * symtab.c (symtab_node::can_increase_alignment_p,
12797 increase_alignment_1, symtab_node::increase_alignment,
12798 symtab_node::definition_alignment): New.
12799 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
12800 can_increase_alignment_p.
12801 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
12802 * tree-vect-stmts.c (ensure_base_align): Likewise.
12803 * varasm.c (function_section_1): Use definition_alignment.
12804 (assemble_start_function): Likewise.
12805 (emit_local): likewise.
12806 (build_constant_desc): Likewsie.
12807 (output_constant_def_contents): Likewise.
12808 (place_block_symbol): Likewise.
12809 (output_object_block): Likewise.
12811 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12814 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
12815 when outputting debug.
12817 2015-03-07 Marek Polacek <polacek@redhat.com>
12818 Martin Uecker <uecker@eecs.berkeley.edu>
12821 * doc/invoke.texi: Update description of -fsanitize=bounds.
12823 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
12825 * tree-ssa-phiopt.c (neg_replacement): Remove.
12826 (tree_ssa_phiopt_worker): Remove negate optimization.
12828 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12831 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12833 2015-03-06 Richard Biener <rguenther@suse.de>
12835 PR middle-end/64928
12836 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12837 and liveout_obstack members.
12838 (calculate_live_on_exit): Remove.
12839 (calculate_live_ranges): Change declaration.
12840 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12841 (new_tree_live_info): Adjust.
12842 (calculate_live_ranges): Delete livein when not wanted.
12843 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12844 Deal with partly deleted live info.
12845 (loe_visit_block): Remove temporary bitmap by using
12846 bitmap_ior_and_compl_into.
12847 (live_worklist): Adjust accordingly.
12848 (calculate_live_on_exit): Make static.
12849 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12850 we do not need livein.
12852 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
12854 * real.c (real_from_string): Fix typo in assertion.
12856 2015-03-06 Alex Velenko <alex.velenko@arm.com>
12858 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12861 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12863 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12865 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
12868 * lra-assigns.c (find_hard_regno_for): Rename to
12869 find_hard_regno_for_1. Add a new parameter.
12870 (find_hard_regno_for): New function using find_hard_regno_for_1.
12872 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12874 PR rtl-optimization/65067
12875 * expmed.c (store_bit_field, extract_bit_field): Reworked the
12876 strict volatile bitfield handling.
12878 2015-03-05 Martin Liska <mliska@suse.cz>
12881 * ipa-icf.c (sem_variable::equals): Compare variables types.
12883 2015-03-05 Richard Henderson <rth@redhat.com>
12886 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12887 correctly check weak symbol binding.
12889 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
12891 PR middle-end/65315
12892 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12895 2015-03-05 Martin Liska <mliska@suse.cz>
12897 * ipa-inline.c (inline_small_functions): Set default value to
12898 prevent warning during bootstrap.
12899 * tree.h: Add pragma guard that ignores false positives during
12902 2015-03-05 Richard Biener <rguenther@suse.de>
12904 PR tree-optimization/65310
12905 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12906 Properly preserve alignment of the base of the access.
12908 2015-03-05 Richard Biener <rguenther@suse.de>
12911 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12912 Compare dependence info.
12914 2015-03-05 Richard Biener <rguenther@suse.de>
12916 PR middle-end/65233
12917 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12919 (walk_ssa_copies): Revert last chage. Instead do not walk
12920 SSA names registered for SSA update.
12922 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12925 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12926 vtable references for their containing type.
12927 (sem_function::equals_wpa): Compare TYPE_RESTRICT
12928 and type attributes.
12930 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
12932 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12933 before negating it.
12934 * stor-layout.c (finalize_record_size): Revert latest change.
12936 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
12938 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12940 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12942 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12943 for correct comdat handling.
12944 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12946 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12947 (used_from_object_file_p_worker): Remove.
12948 (cgraph_node::only_called_directly_or_alised): Add
12949 used_from_object_file_p.
12950 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12951 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12952 can_remove_if_no_direct_calls_and_refs_p.
12954 2015-03-04 Nick Clifton <nickc@redhat.com>
12956 * config/rl78/rl78.h (enum reg_class): Remove real registers from
12957 General register class.
12958 * config/rl78/rl78-real.md: Replace general register constraints
12959 with real+virtual register constraints.
12961 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12963 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12964 from checking for -mhtm option.
12966 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12968 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12969 (struct ipa_sra_check_caller_data): Add has_thunk field.
12970 (ipa_sra_check_caller): Check for thunk.
12971 (ipa_sra_preliminary_function_checks): Give up on function with
12973 (ipa_early_sra): Use call_for_symbol_and_aliases.
12975 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
12978 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12979 called for __stack_chk_guard symbol.
12981 2015-03-03 DJ Delorie <dj@redhat.com>
12983 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12985 (*addhi3_real): Likewise.
12986 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12987 pattern to match incrementing memory.
12988 * config/rl78/predicates.md (rl78_1_2_operand): New.
12989 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
12990 it's the same and only mem.
12991 (rl78_alloc_physical_registers_op2): If there's effectively only
12992 one MEM, transcode it into HL.
12993 (rl78_far_p): Reject addresses that aren't legitimate.
12995 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
12997 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
13000 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
13002 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
13004 Implement call0 ABI for xtensa
13005 * config/xtensa/constraints.md ("a" constraint): Include stack
13006 pointer in case of call0 ABI.
13007 ("q" constraint): Make empty in case of call0 ABI.
13008 ("D" constraint): Include stack pointer in case of call0 ABI.
13009 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
13010 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
13012 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
13014 (xtensa_regno_to_class): Make it a local variable in the
13015 function xtensa_regno_to_class.
13016 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
13017 macro, function prototype and implementation.
13018 (reg_nonleaf_alloc_order): Make it a local variable in the
13019 function order_regs_for_local_alloc.
13020 (xtensa_conditional_register_usage): New function.
13021 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
13022 (xtensa_valid_move): Allow direct moves to stack pointer
13023 register in call0 ABI.
13024 (xtensa_setup_frame_addresses): Only spill register windows in
13026 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
13027 call0 ABI respectively.
13028 (xtensa_function_arg_1): Only mark a7 register for copying in
13030 (xtensa_call_save_reg): New function.
13031 (compute_frame_size): Add space for callee saved register
13032 storage to the frame size in call0 ABI.
13033 (xtensa_expand_prologue): Generate code to set up stack frame
13034 and save callee-saved registers in call0 ABI.
13035 (xtensa_expand_epilogue): New function.
13036 (xtensa_set_return_address): New function.
13037 (xtensa_return_addr): Calculate return address in call0 ABI.
13038 (xtensa_builtin_saveregs): Only mark a7 register for copying and
13039 emit copying code in windowed ABI.
13040 (order_regs_for_local_alloc): Add preferred register allocation
13041 order for non-leaf function in call0 ABI.
13042 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
13043 (xtensa_asm_trampoline_template): Add trampoline generation for
13045 (xtensa_trampoline_init): Add trampoline initialization for
13047 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
13049 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
13050 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
13051 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
13052 ABI call-used registers.
13053 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
13054 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
13056 (REG_CLASS_CONTENTS): Include all registers into the preferred
13057 reload registers set, adjust the set in the
13058 xtensa_conditional_register_usage.
13059 (xtensa_regno_to_class): Drop variable declaration.
13060 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
13062 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
13064 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
13065 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
13066 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
13067 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
13068 location in call0 ABI.
13069 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
13070 stack adjustment size when handling exception.
13071 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
13072 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
13074 ("return" pattern): Generate ret.n/ret in call0 ABI.
13075 ("epilogue" pattern): Expand epilogue.
13076 ("nonlocal_goto" pattern): Use default in call0 ABI.
13077 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
13078 emit eh_set_a0_* depending on ABI.
13079 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
13080 ("eh_set_a0_call0", "blockage"): New patterns.
13082 2015-03-03 Martin Liska <mliska@suse.cz>
13085 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
13087 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13090 * config/rs6000/rs6000-tables.opt: Regenerate table.
13092 2015-03-03 Renlin Li <renlin.li@arm.com>
13094 * doc/md.texi (@item ^): Change ? into ^.
13096 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
13098 * doc/tm.texi: Regenerated.
13100 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
13102 * builtins.c (expand_builtin_return_addr): Add
13103 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
13104 surrounding #ifdef.
13105 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
13107 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
13109 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
13111 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
13114 2015-03-03 Martin Jambor <mjambor@suse.cz>
13115 Eric Botcazou <ebotcazou@adacore.com>
13117 * tree-sra.c (ipa_sra_check_caller_data): New type.
13118 (has_caller_p): Removed.
13119 (ipa_sra_check_caller): New function.
13120 (ipa_sra_preliminary_function_checks): Use it.
13122 2015-03-03 Martin Liska <mliska@suse.cz>
13124 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
13125 instead of if branch.
13127 2015-03-03 Martin Liska <mliska@suse.cz>
13130 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
13132 2015-03-23 Jeff Law <law@redhat.com>
13134 PR tree-optimization/65241
13135 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
13136 hash table if INSERT is true.
13138 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
13141 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
13143 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
13146 * config/avr/avr.c (context.h, tree-pass.h): Include them.
13147 (avr_pass_data_recompute_notes): New static variable.
13148 (avr_pass_recompute_notes): New class.
13149 (avr_register_passes): New static function.
13150 (avr_option_override): Call it.
13152 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
13154 Fix various problems with specs file generation.
13157 * config.gcc (extra_gcc_objs) [avr]: Remove.
13158 * config/avr/driver-avr.c: Remove file.
13159 * config/avr/t-avr (driver-avr.o): Remove rule.
13160 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
13161 INCLUDES to build. Depend on TM_H.
13162 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
13163 build warnings. Fix non-matching types and non-existing %-codes.
13165 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
13166 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
13167 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
13168 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
13169 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
13170 (LIBGCC_SPEC): Remove definitions.
13172 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
13174 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
13175 to create a register in testing mode.
13177 2015-03-03 Martin Liska <mliska@suse.cz>
13178 Jan Hubicka <hubicka@ucw.cz>
13181 * cgraph.c (cgraph_node::has_thunk_p): New function.
13182 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
13183 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
13184 (sem_function::merge): Assert is changed.
13186 2015-03-03 Martin Liska <mliska@suse.cz>
13187 Martin Jambor <mjambor@suse.cz>
13190 * ipa-icf.c (sem_item_optimizer::execute): Change function
13191 return value to boolean.
13192 (sem_item_optimizer::merge_classes): Likewise.
13193 (ipa_icf_driver): Return TODO_remove_functions in case there's
13194 a merge operation processed.
13195 * ipa-icf.h: Change function return value to boolean.
13197 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13200 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
13201 processor type for 64-bit little endian PowerPC.
13203 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13204 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
13205 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
13206 printing built-in mask so it does not pass NULL pointers.
13208 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
13211 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
13214 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
13215 !ISA_HAS_FP_CONDMOVE.
13217 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
13219 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
13222 2015-03-02 Ulrich Drepper <drepper@gmail.com>
13224 * doc/invoke.texi (Options for Code Generation Conventions):
13225 Fix URL of DSO paper.
13227 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
13230 * ipa-inline.c (check_callers): Looks for recursion.
13231 (inline_to_all_callers): Give up on uninlinable or recursive edges.
13232 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
13233 summary of inline clones.
13234 (do_estimate_growth_1): Fix recursion check.
13236 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
13239 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
13242 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
13243 Aldy Hernandez <aldyh@redhat.com>
13246 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
13247 when checking TYPE_BINFO.
13249 2015-03-02 Richard Biener <rguenther@suse.de>
13252 * ipa-icf-gimple.c: Include builtins.h.
13253 (func_checker::compare_memory_operand): Compare base alignment.
13255 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
13258 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
13259 are never passed by reference.
13261 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
13264 * tree-chkp.c (chkp_check_lower): Don't check against
13265 zero bounds for already instrumented functions.
13266 (chkp_check_upper): Likewise.
13267 (chkp_fini): Clean pass local data to avoid wrong reusage.
13269 2015-02-28 Martin Liska <mliska@suse.cz>
13270 Jan Hubicka <hubicka@ucw.cz>
13272 * ipa-icf.c (sem_variable::equals): Improve debug output;
13273 get variable constructor.
13274 (sem_variable::parse): Do not filter out too early; give up on
13275 volatile and register vars.
13276 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
13278 * ipa-icf.h (sem_variable::init): Do not set ctor.
13279 (sem_variable::ctor): Remove.
13281 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
13283 PR middle-end/65233
13284 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
13286 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13288 * ipa-icf.c: Include stor-layout.h
13289 (sem_function::compare_cgraph_references): Rename to ...
13290 (sem_item::compare_cgraph_references): ... this one.
13291 (sem_variable::equals_wpa): New function
13292 (sem_variable::equals): Do not check stuff already verified by
13294 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
13295 * ipa-icf.h (sem_item): Add compare_cgraph_references.
13296 (sem_function): Remove compare_cgraph_references.
13297 (sem_variable): Turns equals_wpa into non-inline.
13299 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13301 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
13302 (sem_item::add_expr): New function.
13303 (sem_function::hash_stmt): Handle operands of most statements.
13304 (sem_variable::get_hash): Hash the actual constructor.
13305 * ipa-icf.h (sem_item): Add add_expr.
13306 (sem_function): Update prototype of hash_stmt
13308 2015-02-28 Martin Liska <mliska@suse.cz>
13309 Jan Hubicka <hubicka@ucw.cz>
13312 * ipa-icf-gimple.c (func_checker::compare_function_decl):
13314 (func_checker::compare_variable_decl): Skip symtab vars.
13315 (func_checker::compare_cst_or_decl): Update.
13316 * ipa-icf.c (sem_function::parse): Do not consider aliases.
13317 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
13318 use correct symtab predicates.
13319 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
13320 (sem_variable::parse): Update comment.
13321 (sem_item_optimizer::build_graph): Consider ultimate aliases
13324 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13326 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
13329 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13331 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
13332 (sem_variable::merge) Likewise.
13334 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13336 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
13337 target; also match flag_ipa_devirt.
13339 2015-03-01 Martin Liska <mliska@suse.cz>
13340 Jan Hubicka <hubicka@ucw.cz>
13342 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
13343 Validate variable alignment.
13344 * ipa-icf.c (sem_function::equals_private): Be more precise
13345 about non-common function attributes.
13346 (sem_variable::equals): Likewise.
13348 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13351 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
13352 across COMDAT group boundary.
13354 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13357 * ipa-icf.c (clear_decl_rtl): New function.
13358 (sem_function::merge): Clear RTL before forming alias.
13359 (sem_variable::merge): Clear RTL before forming alias.
13361 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
13364 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
13366 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
13368 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
13371 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
13373 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
13374 a typo in the description.
13376 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
13379 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13380 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13381 * lra-constraints.c: Include "params.h".
13382 (EBB_PROBABILITY_CUTOFF): Use
13383 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
13384 (lra_inheritance): Use '<' instead of '<=' for
13385 EBB_PROBABILITY_CUTOFF.
13386 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
13389 2015-02-27 Martin Liska <mliska@suse.cz>
13391 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
13392 vector length condition.
13394 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
13396 * doc/extend.texi (x86 transactional memory intrinsics):
13397 Reorganize discussion of _xbegin. Clarify that the return
13398 value is a bit mask. Expand example and move to end of section.
13400 2015-02-26 Jakub Jelinek <jakub@redhat.com>
13401 Aldy Hernandez <aldyh@redhat.com>
13403 PR rtl-optimization/65220
13404 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
13406 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
13409 * lra-remat.c (update_scratch_ops): New.
13410 (do_remat): Call it.
13411 * lra.c (lra_register_new_scratch_op): New. Take code from ...
13412 (remove_scratches): ... here.
13413 * lra-int.h (lra_register_new_scratch_op): New prototype.
13415 2015-02-27 Marek Polacek <polacek@redhat.com>
13418 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
13419 -Wformat-signedness anymore.
13421 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13423 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
13425 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
13427 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13429 * config/s390/s390.c (enum s390_builtin):
13430 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
13431 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
13432 (s390_init_builtins): Generate new builtin functions.
13433 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
13434 (s390_sfpc, s390_efpc): New pattern definitions.
13436 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13438 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
13439 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
13440 (s390_builtin_decls): New array.
13441 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
13442 (s390_builtin_decl): New function.
13443 (TARGET_BUILTIN_DECL): Define macro.
13445 2015-02-27 Richard Biener <rguenther@suse.de>
13447 PR middle-end/63175
13448 * builtins.c (get_object_alignment_2): Make sure to re-apply
13449 the ANDed mask after recursing to its operand gets us a new
13450 misalignment bit position.
13452 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
13453 Martin Liska <mliska@suse.cz>
13456 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
13457 Use address_matters_p.
13458 (redirect_all_callers, set_addressable): New functions.
13459 (sem_function::merge): Reorganize and fix merging issues.
13460 (sem_variable::merge): Likewise.
13461 (sem_variable::compare_sections): Remove.
13462 * common.opt (fmerge-all-constants, fmerge-constants): Remove
13464 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
13466 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
13468 (address_matters_1): New function.
13469 (symtab_node::address_matters_p): New function.
13470 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
13471 check for merged flag.
13472 * cgraph.h (address_matters_p): Declare.
13473 (symtab_node::address_taken_from_non_vtable_p): Remove.
13474 (symtab_node::address_can_be_compared_p): New method.
13475 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
13476 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
13478 (comdat_can_be_unshared_p_1) Use address_matters_p.
13479 (update_vtable_references): Fix formating.
13480 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
13481 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
13482 * cgraphclones.c: Preserve merged and icf_merged flags.
13484 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
13486 * doc/extend.texi (Function Attributes): Fix spelling and typos.
13487 (Label Attributes): Likewise.
13488 (Cilk Plus Builtins): Likewise.
13489 (ARC SIMD Built-in Functions): Likewise.
13490 (ARM C Language Extensions (ACLE)): Likewise.
13491 (PowerPC Built-in Functions): Likewise.
13492 (PowerPC Hardware Transactional Memory Built-in Functions):
13495 2015-02-26 Jakub Jelinek <jakub@redhat.com>
13497 PR tree-optimization/65216
13498 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
13499 new stmt and new SSA_NAME for lhs whenever the arguments have
13500 changed and weren't just swapped. Fix comment typo.
13502 PR tree-optimization/65215
13503 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
13504 for PDP endian targets.
13505 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
13506 Fix up formatting issues.
13507 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
13508 size is smaller than the original, adjust MEM_REF offset by the
13509 difference of sizes. Use is_gimple_mem_ref_addr instead of
13510 is_gimple_min_invariant test to avoid adding address temporaries.
13512 2015-02-26 Martin Liska <mliska@suse.cz>
13513 Jan Hubicka <hubicka@ucw.cz>
13516 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
13517 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
13518 (sem_item_optimizer::process_cong_reduction): Include division by
13519 sensitive references.
13520 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
13521 * ipa-ref.c (ipa_ref::address_matters_p): New function.
13522 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13524 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
13527 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
13529 * config/avr/avr.c: Same.
13530 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
13531 Refuse any constant address not in 0..0xbf.
13532 * config/avr/avr.md (*mov<mode>, *movsf): Remove
13533 tiny_valid_direct_memory_access_range from insn conditions.
13534 (mov<mode>): Don't special-case expansion of avrtiny addresses.
13536 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
13539 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
13540 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
13541 * config/sh/predicates.md (const_logical_operand): New predicate.
13542 * config/sh/sh.md: Add new peephole2 patterns.
13544 2015-02-26 Marek Polacek <polacek@redhat.com>
13547 * ipa-inline.c (early_inliner): Recompute inline parameters.
13549 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13552 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
13553 instructions with TImode operands are included in the analysis.
13555 2015-02-26 Sebastian Pop <s.pop@samsung.com>
13557 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
13558 of an EDGE_FSM_THREAD.
13560 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13562 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
13564 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
13567 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
13569 2015-02-26 Sebastian Pop <s.pop@samsung.com>
13571 PR tree-optimization/65048
13572 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
13573 (thread_through_all_blocks): Call valid_jump_thread_path.
13574 Remove invalid FSM jump-thread paths.
13576 2015-02-26 Jakub Jelinek <jakub@redhat.com>
13578 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
13579 (ipa_write_optimization_summaries): Likewise.
13580 * tree-streamer.h: Include data-streamer.h.
13581 (streamer_mode_table): Declare extern variable.
13582 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
13583 * lto-streamer-out.c (lto_output_init_mode_table,
13584 lto_write_mode_table): New functions.
13585 (produce_asm_for_decls): Call lto_write_mode_table when streaming
13587 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
13588 (lto_create_simple_input_block): Add mode_table argument to the
13589 lto_input_block constructors.
13590 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
13592 * data-streamer-in.c (string_for_index): Likewise.
13593 * ipa-inline-analysis.c (inline_read_section): Likewise.
13594 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
13595 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13596 * lto-streamer-in.c (lto_read_body_or_constructor,
13597 lto_input_toplevel_asms): Likewise.
13598 (lto_input_mode_table): New function.
13599 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
13600 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
13601 Use bp_pack_machine_mode.
13602 * real.h (struct real_format): Add name field.
13603 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
13604 (class lto_input_block): Add mode_table member.
13605 (lto_input_block::lto_input_block): Add mode_table_ argument,
13606 initialize mode_table.
13607 (struct lto_file_decl_data): Add mode_table field.
13608 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
13609 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
13610 unpack_ts_decl_common_value_fields,
13611 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
13612 * tree-streamer.c (streamer_mode_table): New variable.
13613 * real.c (ieee_single_format, mips_single_format,
13614 motorola_single_format, spu_single_format, ieee_double_format,
13615 mips_double_format, motorola_double_format,
13616 ieee_extended_motorola_format, ieee_extended_intel_96_format,
13617 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13618 ibm_extended_format, mips_extended_format, ieee_quad_format,
13619 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13620 decimal_single_format, decimal_double_format, decimal_quad_format,
13621 ieee_half_format, arm_half_format, real_internal_format): Add name
13623 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
13625 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
13628 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
13629 reordering for selective scheduling.
13631 2015-02-26 Terry Guo <terry.guo@arm.com>
13633 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
13634 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
13635 (arm_arch_no_volatile_ce): Declare new global variable.
13636 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
13637 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
13638 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
13639 (TARGET_NO_VOLATILE_CE): New macro.
13640 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
13641 volatile memory access in IT block
13643 2015-02-25 Kai Tietz <ktietz@redhat.com>
13645 PR tree-optimization/61917
13646 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
13647 that reduc_def_stmt is null.
13649 2015-02-25 Martin Liska <mliska@suse.cz>
13651 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
13652 hard register variables.
13654 2015-02-25 Kai Tietz <ktietz@redhat.com>
13657 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
13658 (symtab::noninterposable_alias): Likewise.
13660 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
13663 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
13665 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
13667 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
13670 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
13671 as split condition; force split via '#' in output pattern.
13673 2015-02-25 Richard Biener <rguenther@suse.de>
13674 Kai Tietz <ktietz@redhat.com>
13676 PR tree-optimization/61917
13677 * tree-vect-loop.c (vectorizable_reduction): Allow
13678 vect_internal_def without reduction to exit graceful.
13680 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
13683 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
13684 only with NONDEBUG_INSN_P.
13686 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
13688 Use variadic macros with avr-log.c.
13690 * config/avr/avr-protos.h (avr_vdump): New prototype.
13691 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
13692 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
13693 * config/avr/avr-log.c: Adjust comments.
13694 (avr_vdump): New function.
13695 (avr_vadump): Pass caller as 2nd argument instead of format string.
13696 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
13697 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
13699 2015-02-25 Jakub Jelinek <jakub@redhat.com>
13702 * target.def (target_option_stream_in): New target hook.
13703 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
13704 targetm.target_option.post_stream_in if non-NULL.
13705 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
13706 * doc/tm.texi: Updated.
13707 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
13709 (TARGET_OPTION_POST_STREAM_IN): Redefine.
13711 2015-02-24 Jeff Law <law@redhat.com>
13714 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
13715 of operand 0 and operand 2.
13716 (zero_cost_loop_end, loop_end): Similarly.
13718 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
13720 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
13723 2015-02-24 DJ Delorie <dj@redhat.com>
13725 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
13726 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
13727 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
13728 instead of hardcoding SImode.
13730 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
13732 * omp-low.c (create_omp_child_function): Tag entrypoint
13733 functions with a special attribute.
13735 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13738 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
13740 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
13742 PR rtl-optimization/65123
13743 * lra-remat.c (operand_to_remat): Check hard regs in insn
13746 2015-02-24 Nick Clifton <nickc@redhat.com>
13748 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
13751 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
13754 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
13755 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
13756 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
13757 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
13758 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
13759 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
13760 (BUILT_IN_GOACC_PARALLEL): Specify as
13761 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
13762 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
13763 * builtin-types.def
13764 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13765 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13766 Remove function types.
13767 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
13768 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13769 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13770 New function types.
13772 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
13774 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
13776 2015-02-24 Jakub Jelinek <jakub@redhat.com>
13778 PR tree-optimization/65170
13779 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
13780 if val[1] < 0, clear also val[2] and return 3.
13782 2015-02-24 Alan Modra <amodra@gmail.com>
13785 * config/rs6000/rs6000.c (get_memref_parts): Only return true
13786 when *base is a reg. Handle nested plus addresses. Simplify
13789 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
13791 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
13792 use natural alignment when optimizing for size.
13794 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
13797 * config/sh/sh.md (movsicc_true+3): Remove peephole.
13798 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
13799 * config/sh/sh.c (replace_n_hard_rtx): Remove.
13801 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
13804 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
13805 too big for a wide_int. Implement missing wrapping operation.
13807 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
13810 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
13811 instead of const_int 4294901760.
13813 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
13815 * config/avr/t-avr: Fix typo in comment.
13817 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
13819 * doc/rtl.texi (fma): Clarify documentation.
13821 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
13824 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
13825 over input_location.
13827 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13829 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
13830 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
13831 restrict alignments to absolute_biggest_alignment.
13832 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13834 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13835 * doc/tm.texi: Regenerate.
13836 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13838 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
13841 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13843 2015-02-20 Richard Biener <rguenther@suse.de>
13845 PR tree-optimization/65136
13846 * tree-ssa-propagate.c: Include cfgloop.h.
13847 (replace_phi_args_in): Avoid replacing loop latch edge PHI
13848 arguments with constants.
13850 2015-02-20 Jakub Jelinek <jakub@redhat.com>
13851 Martin Liska <mliska@suse.cz>
13854 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13855 don't try to create_thunk if stdarg_p. If
13856 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13857 redirect_callers if possible.
13858 (sem_item_optimizer::execute): Call unregister_hooks here...
13859 (ipa_icf_driver): ... instead of here.
13861 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13863 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13864 Mark operand 0 as earlyclobber in 2nd alternative.
13865 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13866 Write negated shift amount into QI lowpart operand 0 and use it
13868 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13870 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13872 * cgraph.h (clone_function_name_1): Declare.
13873 * cgraphclones.c (clone_function_name_1): New function.
13874 (clone_function_name): Use it.
13875 * lto-partition.c: Include "stringpool.h".
13876 (must_not_rename, maybe_rewrite_identifier)
13877 (validize_symbol_for_target): New static functions.
13878 (privatize_symbol_name): Use must_not_rename.
13879 (promote_symbol): Call validize_symbol_for_target.
13880 (lto_promote_cross_file_statics): Likewise.
13881 (lto_promote_statics_nonwpa): Likewise.
13883 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
13886 * config/avr/avr.md (pushhi_insn): New insn.
13887 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13889 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13890 Jakub Jelinek <jakub@redhat.com>
13892 * tree-streamer.c (preload_common_nodes): Don't preload
13893 TI_VA_LIST* for offloading.
13894 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13897 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
13899 * config/pa/pa.c (pa_emit_move_sequence): Always force
13900 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
13903 * config/pa/pa.c (pa_reloc_rw_mask): New function.
13904 (TARGET_ASM_RELOC_RW_MASK): Define.
13905 (pa_cannot_force_const_mem): Revert previous change.
13907 2015-02-19 Martin Jambor <mjmabor@suse.cz>
13908 Jan Hubicka <hubicka@ucw.cz>
13911 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13912 across jump functions.
13914 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
13916 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13918 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
13920 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13922 2015-02-19 Richard Henderson <rth@redhat.com>
13924 PR middle-end/65074
13925 * varasm.c (default_binds_local_p_2): Don't test node->definition;
13926 test DECL_EXTERNAL independent of symtab_node.
13928 2015-02-19 Jakub Jelinek <jakub@redhat.com>
13931 * varpool.c (varpool_node::get_constructor): Return early
13932 if this->lto_file_data is NULL.
13934 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13936 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13937 (rank_for_schedule_debug): Update.
13938 (ready_sort): Make static. Move sorting logic to ...
13939 (ready_sort_debug, ready_sort_real): New static functions.
13940 (schedule_block): Sort both debug insns and real insns in preparation
13941 for ready list trimming. Improve debug output.
13942 * sched-int.h (ready_sort): Remove global declaration.
13944 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
13946 * ipa-icf.c (sem_function::equals_private): Adjust.
13947 (sem_function::bb_dict_test): Take a vec<int> * instead of
13949 * ipa-icf.h (bb_dict_test): Likewise.
13951 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13953 PR gcov-profile/64634
13954 * tree-eh.c (frob_into_branch_around): Fix up typos
13955 in function comment.
13956 (lower_catch): Put eh_seq resulting from EH lowering of
13957 the cleanup sequence after the cleanup rather than before it.
13959 2015-02-18 Tom de Vries <tom@codesourcery.com>
13961 * common.opt (fstdarg-opt): New option.
13962 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13963 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13964 (@item -fstdarg-opt): New item.
13966 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
13969 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13970 for common symbols.
13972 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13974 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13976 (ALL_HOST_OBJS): Add mkoffload.o.
13977 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13979 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
13981 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13982 (compare_virtual_tables): Be smarter about skipping typeinfos;
13983 do sane output on virtual table table mismatch.
13984 (warn_odr): Be ready for forward declarations of enums;
13985 output sane info on base mismatch and virtual table mismatch.
13986 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13987 when only one type is polymorphic.
13988 (get_odr_type): Fix hashtable corruption.
13989 (dump_odr_type): Dump mangled names.
13991 2015-02-18 Richard Biener <rguenther@suse.de>
13993 PR tree-optimization/65063
13994 * tree-predcom.c (determine_unroll_factor): Return 1 if we
13995 have replaced looparound PHIs.
13997 2015-02-18 Martin Liska <mliska@suse.cz>
13999 * lto-streamer.c (lto_streamer_init): Encapsulate
14000 streamer_check_handled_ts_structures with checking macro.
14002 2015-02-18 Jakub Jelinek <jakub@redhat.com>
14005 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
14006 section if !implicit_section.
14007 (cgraph_node::create_version_clone_with_body): Likewise.
14008 * trans-mem.c (ipa_tm_create_version): Likewise.
14010 2015-02-18 Richard Biener <rguenther@suse.de>
14012 PR tree-optimization/62217
14013 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
14016 2015-02-18 Marek Polacek <polacek@redhat.com>
14019 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
14020 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
14021 is in range [-16K, -1]. Don't issue run-time error if
14022 (ptr > ptr + offset).
14024 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
14026 * doc/install.texi (nvptx-*-none): New section.
14027 * doc/invoke.texi (Nvidia PTX Options): Likewise.
14028 * config/nvptx/nvptx.opt: Update.
14030 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
14031 (access_check): New functions, copied from
14032 config/i386/intelmic-mkoffload.c.
14033 (main): For non-installed testing, look in all COMPILER_PATHs for
14036 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
14038 2015-02-18 Andrew Pinski <apinski@cavium.com>
14039 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14041 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
14042 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
14044 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
14046 * ipa-visibility.c (function_and_variable_visibility): Only
14047 check locality if node is not already local.
14048 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14049 call_for_symbol_and_aliases instead of
14050 call_for_symbol_thunks_and_aliases.
14051 (ipa_inline): Likewise.
14052 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14053 first walk aliases.
14054 * ipa.c (symbol_table::remove_unreachable_nodes): Use
14055 call_for_symbol_and_aliases.
14056 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14057 (ipa_propagate_frequency_1): Use it; use opt_for_fn
14058 (ipa_propagate_frequency): Update.
14059 (ipa_profile): Add opt_for_fn gueards.
14061 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
14063 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
14064 * doc/invoke.texi (SH options): Document it.
14065 * config/sh/sh.c (sh_insn_length_adjustment): Check
14066 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
14068 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
14070 * common.opt (fipa-cp-alignment): New.
14071 * ipa-cp.c (ipcp_store_alignment_results): Check
14072 flag_ipa_cp_alignment.
14073 * opts.c (default_options_table): Enable -fipa-cp-alignment for
14075 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
14076 * doc/invoke.texi: Document -fipa-cp-alignment.
14078 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
14081 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
14082 to nil. Adjust comments.
14084 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
14086 * ipa-visibility.c (function_and_variable_visibility): Only
14087 check locality if node is not already local.
14088 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14089 call_for_symbol_and_aliases instead of
14090 call_for_symbol_thunks_and_aliases.
14091 (ipa_inline): Likewise.
14092 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14093 first walk aliases.
14094 * ipa.c (symbol_table::remove_unreachable_nodes): Use
14095 call_for_symbol_and_aliases.
14096 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14097 (ipa_propagate_frequency_1): Use it; use opt_for_fn
14098 (ipa_propagate_frequency): Update.
14099 (ipa_profile): Add opt_for_fn guards.
14101 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
14103 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
14104 skipping of "strange" tokens.
14106 2015-02-17 Jeff Law <law@redhat.com>
14108 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
14111 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
14113 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
14114 as forcing a HARD_DEP between instructions, thereby
14115 disallowing rewriting to break dependencies.
14117 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
14119 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
14120 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
14121 variables in boundary that have no inlitalizer encoded and are
14123 * varasm.c (default_binds_local_p_2): External definitions do not
14124 count as definitions here.
14126 2015-02-16 Jeff Law <law@redhat.com>
14128 PR tree-optimization/64823
14129 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
14131 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14132 threading through blocks with PHIs, but no statements.
14133 (thread_through_normal_block): Distinguish between blocks where
14134 we did not process all the statements and blocks with no statements.
14136 2015-02-16 Jakub Jelinek <jakub@redhat.com>
14137 James Greenhalgh <james.greenhalgh@arm.com>
14140 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
14141 section if not linkonce. Fix up formatting.
14142 (cgraph_node::create_version_clone_with_body): Copy section.
14143 * trans-mem.c (ipa_tm_create_version): Likewise.
14145 2015-02-16 Richard Biener <rguenther@suse.de>
14147 PR tree-optimization/65077
14148 * tree-ssa-structalias.c (get_constraint_for_1): Handle
14149 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
14150 (find_func_aliases): Allow float values to carry pointers again.
14152 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14154 * doc/install.texi (Specific): Reorder targets list to put
14155 aarch64 in alphabetical order. Add a link to aarch64*-*-*
14158 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14159 David Edelsohn <dje.gcc@gmail.com>
14162 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
14163 mapping class to external variable or function reference.
14164 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
14167 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
14170 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
14171 ASM_WEAKEN_DECL if defined.
14173 2015-02-16 Richard Biener <rguenther@suse.de>
14176 * varasm.c (default_file_start): For LTO produced units
14177 emit <artificial> as file directive.
14179 2015-02-16 Richard Biener <rguenther@suse.de>
14181 PR tree-optimization/63593
14182 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
14183 stmts and releasing SSA names until...
14184 (execute_pred_commoning): ... after processing all chains.
14186 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
14189 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
14190 external functions.
14192 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
14194 * doc/bugreport.texi: Adjust section titles throughout the file
14195 to use "Title Case".
14196 * doc/extend.texi: Likewise.
14197 * doc/gcov.texi: Likewise.
14198 * doc/implement-c.texi: Likewise.
14199 * doc/implement-cxx.texi: Likewise.
14200 * doc/invoke.texi: Likewise.
14201 * doc/objc.texi: Likewise.
14202 * doc/standards.texi: Likewise.
14203 * doc/trouble.texi: Likewise.
14205 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
14207 * cgraph.h (symtab_node::has_aliases_p): Simplify.
14208 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
14209 * tree.c (lookup_binfo_at_offset): Make static.
14210 (get_binfo_at_offset): Do not shadow offset; add explanatory
14213 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
14215 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
14216 for all floading point loads and stores except those using a register
14218 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
14221 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
14223 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
14224 (do_estimate_growth_1): Record if any uninlinable edge was seen.
14225 (estimate_growth): Handle uninlinable edges correctly.
14226 (check_callers): New.
14227 (growth_likely_positive): Handle aliases correctly.
14229 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
14231 * ipa-chkp.c: Use iterate_direct_aliases.
14232 * symtab.c (resolution_used_from_other_file_p): Move inline.
14233 (symtab_node::create_reference): Fix formating.
14234 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14235 (symtab_node::iterate_reference): Move inline.
14236 (symtab_node::iterate_referring): Move inline.
14237 (symtab_node::iterate_direct_aliases): Move inline.
14238 (symtab_node::used_from_object_file_p_worker): Inline into ...
14239 (symtab_node::used_from_object_file_p): ... this one; move inline.
14240 (symtab_node::call_for_symbol_and_aliases): Move inline;
14241 use iterate_direct_aliases.
14242 (symtab_node::call_for_symbol_and_aliases_1): New method.
14243 (cgraph_node::call_for_symbol_and_aliases): Move inline;
14244 use iterate_direct_aliases.
14245 (cgraph_node::call_for_symbol_and_aliases_1): New method.
14246 (varpool_node::call_for_node_and_aliases): Rename to ...
14247 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
14248 use iterate_direct_aliases.
14249 (varpool_node::call_for_symbol_and_aliases_1): New method.
14250 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
14251 (ipa_discover_readonly_nonaddressable_var): Update.
14252 * ipa-devirt.c: Fix formating.
14253 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
14255 (cgraph_node::call_for_symbol_and_aliases): Move inline.
14256 (cgraph_node::call_for_symbol_and_aliases_1): New function..
14257 * cgraph.h (used_from_object_file_p_worker): Remove.
14258 (resolution_used_from_other_file_p): Move inline.
14259 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14260 (symtab_node::iterate_reference): Move inline.
14261 (symtab_node::iterate_referring): Move inline.
14262 (symtab_node::iterate_direct_aliases): Move inline.
14263 (symtab_node::used_from_object_file_p_worker): Inline into ...
14264 (symtab_node::used_from_object_file_p): Move inline.
14265 * tree-emutls.c (ipa_lower_emutls): Update.
14266 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
14267 (varpool_node::call_for_node_and_aliases): Remove.
14269 2015-02-14 Jakub Jelinek <jakub@redhat.com>
14271 PR tree-optimization/62209
14272 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
14273 op == range->exp, insert seq and gimplified code after labels
14274 instead of after the phi.
14276 2015-02-13 Jeff Law <law@redhat.com>
14279 Revert my change for tree-optimization/64823.
14281 2015-02-13 Jakub Jelinek <jakub@redhat.com>
14283 PR tree-optimization/65053
14284 * tree-ssa-phiopt.c (value_replacement): When moving assign before
14285 cond, either reset VR on lhs or set it to phi result VR.
14287 2015-02-13 Jeff Law <law@redhat.com>
14289 PR tree-optimization/64823
14290 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
14291 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14292 threading through blocks with PHIs, but no statements.
14293 (thread_through_normal_block): Distinguish between blocks where
14294 we did not process all the statements and blocks with no statements.
14296 PR rtl-optimization/47477
14297 * match.pd (convert (plus/minus (convert @0) (convert @1): New
14298 simplifier to narrow arithmetic.
14300 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
14303 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
14304 polymorphic call info when type is not known to be preserved.
14306 2015-02-13 Maritn Jambor <mjambor@suse.cz>
14309 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
14310 (inline_call): Use it.
14312 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
14314 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
14315 GOMP_DEVICE_NVIDIA_PTX.
14317 2015-02-13 Jakub Jelinek <jakub@redhat.com>
14320 * stmt.c (emit_case_nodes): Use void_type_node instead of
14321 NULL_TREE as LABEL_DECL type.
14323 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
14325 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
14327 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
14328 symbolic references to data to be forced to constant memory on the
14331 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
14333 PR tree-optimization/65002
14334 * tree-cfg.c (pass_data_fixup_cfg): Don't update
14336 * tree-sra.c (some_callers_have_no_vuse_p): New.
14337 (ipa_early_sra): Reject functions whose callers
14338 assume function is read only.
14340 2015-02-13 Richard Biener <rguenther@suse.de>
14343 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
14344 for LTO produced CUs.
14346 2015-02-13 Bin Cheng <bin.cheng@arm.com>
14348 PR tree-optimization/64705
14349 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
14350 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
14351 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
14352 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
14353 expand_simple_operations.
14355 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
14356 Richard Henderson <rth@redhat.com>
14359 * cgraphunit.c (cgraph_node::finalize_function): Set definition
14360 before notice_global_symbol.
14361 (varpool_node::finalize_decl): Likewise.
14362 * varasm.c (default_binds_local_p_2): Rename from
14363 default_binds_local_p_1, add weak_dominate argument. Use direct
14364 returns instead of assigning to local variable. Unify varpool and
14365 cgraph paths via symtab_node. Reject undef weak variables before
14366 testing visibility. Reorder tests for simplicity.
14367 (default_binds_local_p): Use default_binds_local_p_2.
14368 (default_binds_local_p_1): Likewise.
14369 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
14371 (default_elf_asm_output_external): Emit visibility when specified.
14373 2015-02-13 Alan Modra <amodra@gmail.com>
14375 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
14376 code setting up r11 for out-of-line fp restore.
14378 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
14380 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
14381 (muser-mode): Likewise.
14383 2015-02-13 Alan Modra <amodra@gmail.com>
14385 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
14386 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
14388 2015-02-12 David Howells <dhowells@redhat.com>
14390 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
14392 * tree-ssa-uninit.c (dump_predicates): Likewise.
14393 * opts.c (print_filtered_help): Likewise.
14395 2015-02-12 Jakub Jelinek <jakub@redhat.com>
14397 * dwarf2out.c (output_die): Use "%s", name instead of name to
14398 avoid -Wformat-security warning.
14400 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
14401 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14402 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
14403 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14405 2015-02-12 Jason Merrill <jason@redhat.com>
14407 * common.opt (-flifetime-dse): New.
14409 2015-02-12 Jakub Jelinek <jakub@redhat.com>
14412 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
14414 PR tree-optimization/65014
14415 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
14416 use original second operand of arg0 or arg1 instead of
14417 that adjusted by STRIP_NOPS.
14419 2015-02-11 Jeff Law <law@redhat.com>
14422 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
14423 that needs to be queued, just queue it for a single cycle.
14425 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
14427 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
14428 bodies of thunks; comment on why.
14429 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
14430 symbols are extern.
14432 2015-02-11 Richard Henderson <rth@redhat.com>
14435 * tree-eh.c (mark_reachable_handlers): Mark source and destination
14436 regions of __builtin_eh_copy_values.
14438 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14440 PR middle-end/65003
14441 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
14442 ultimate alias is MEM with SYMBOL_REF satisfying
14443 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
14444 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
14446 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
14448 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
14449 "diagnostic-core.h".
14450 (main): Initialize progname, and call diagnostic_initialize.
14452 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
14453 instead of __OPENMP_TARGET__.
14455 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
14456 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
14457 hard-coding PTX_ID.
14459 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
14461 * doc/sourcebuild.texi (pie_enabled): Document.
14463 2015-02-11 Martin Liska <mliska@suse.cz>
14466 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
14467 a return value for call to a function that is noreturn.
14469 2015-02-11 Richard Biener <rguenther@suse.de>
14472 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
14475 2015-02-11 Andrew Pinski <apinski@cavium.com>
14478 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14479 Change the first argument type to size_type_node and add another
14481 (aarch64_simd_expand_builtin): Handle the new argument to
14482 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
14483 print an out when the first two arguments are not
14484 nonzero integer constants.
14485 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
14486 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
14488 2015-02-11 Jakub Jelinek <jakub@redhat.com>
14491 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
14492 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
14493 (ix86_set_current_function): Rewritten.
14494 (ix86_add_new_builtins): Temporarily clear current_target_pragma
14495 when creating builtin fndecls.
14497 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
14500 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
14502 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
14503 have no comdat group.
14504 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
14505 (lto_output_varpool_node): Always output alias info.
14506 (output_refs): Output refs of boundary aliases, too.
14507 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
14508 (output_symtab): Output call eges in thunks in boundary.
14509 (get_alias_symbol): Remove.
14510 (input_node, input_varpool_node): Do not special case weakrefs.
14511 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
14512 alias and thunks targets in the boundary; do not take removed symbols
14513 from their comdat groups.
14514 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
14515 (cgraph_node::global_info): Remove.
14516 (cgraph_node::rtl_info): Look through aliases and thunks.
14517 * cgrpah.h (global_info): Remove.
14518 (non_local_p): Remove.
14520 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
14521 Sandra Loosemore <sandra@codesourcery.com>
14523 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
14524 to inline asm. List dialects in proper order.
14526 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
14527 Sandra Loosemore <sandra@codesourcery.com>
14529 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
14531 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
14533 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
14534 modified) reference to Solaris.
14536 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
14538 * doc/extend.texi (Extended Asm): Fix typos.
14540 2015-02-10 Jakub Jelinek <jakub@redhat.com>
14543 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
14545 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
14548 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
14549 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
14550 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
14551 * config/sh/constraints.md (Ara, Add): New constraints.
14552 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
14554 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
14555 atomic_mem_operand_0. Don't use force_reg on the memory address.
14556 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
14557 Sra constraint. Convert to insn_and_split. Add workaround for
14559 (atomic_compare_and_swap<mode>_hard): Copy to
14560 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
14561 Use atomic_mem_operand_0 predicate.
14562 (atomic_compare_and_swap<mode>_soft_gusa,
14563 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
14564 AraAdd constraints.
14565 (atomic_compare_and_swap<mode>_soft_tcb,
14566 atomic_compare_and_swap<mode>_soft_imask,
14567 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
14568 atomic_mem_operand_0 predicate and SraSdd constraints.
14569 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
14571 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
14572 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
14573 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
14574 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
14575 force_reg on the memory address.
14576 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
14577 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
14578 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
14579 atomic_mem_operand_1 predicate and Sra constraint.
14580 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
14581 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
14582 Use atomic_mem_operand_1 predicate.
14583 (atomic_<fetchop_name><mode>_hard): Copy to
14584 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
14585 Use atomic_mem_operand_1 predicate.
14586 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
14587 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
14588 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
14589 insn_and_split. Use atomic_mem_operand_1 predicate.
14590 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
14591 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
14592 Use atomic_mem_operand_1 predicate.
14593 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
14594 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
14595 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
14596 in generated insn with original mem operand before emitting the insn.
14597 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
14598 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
14599 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
14600 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
14601 Use atomic_mem_operand_1 predicate and AraAdd constraints.
14602 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
14603 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
14604 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
14605 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
14606 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
14607 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
14608 atomic_not_fetch<mode>_soft_tcb,
14609 atomic_<fetchop_name>_fetch<mode>_soft_imask,
14610 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
14611 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
14612 Use atomic_mem_operand_1 predicate and SraSdd constraints.
14614 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
14616 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
14617 and 3 earlyclobber operands.
14619 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
14621 * common.opt (fstack-reuse): Mark as optimization.
14623 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
14626 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
14628 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
14630 PR tree-optimization/64326
14631 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
14633 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
14635 PR gcov-profile/61889
14636 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
14638 2015-02-10 Richard Biener <rguenther@suse.de>
14640 PR tree-optimization/64995
14641 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
14642 value we use is final.
14643 (visit_reference_op_store): Always valueize op.
14644 (visit_use): Properly valueize vuses.
14646 2015-02-10 Richard Biener <rguenther@suse.de>
14648 PR tree-optimization/64909
14649 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
14650 pass a scalar-stmt count estimate to the cost model.
14651 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
14653 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
14655 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
14656 enabled by default together with var-tracking.
14658 2015-02-10 Nick Clifton <nickc@redhat.com>
14660 * config/rl78/rl78.c: Remove DIV attribute code accidentally
14661 included in previous rl78 commit.
14663 2015-02-10 Richard Biener <rguenther@suse.de>
14665 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
14666 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
14667 return the bitpack.
14669 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
14671 PR gcov-profile/61889
14672 * config.in: regenerate.
14673 * configure.in: Likewise.
14674 * configure.ac: Check for ftw.h.
14675 * gcov-tool.c: Check for ftw.h before using nftw.
14677 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
14680 * ipa-visibility.c (update_visibility_by_resolution_info): Only
14681 assert when not in lto mode.
14683 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14685 * ira-color.c (setup_left_conflict_sizes_p): Simplify
14686 initialization/assignment of conflict_size.
14688 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
14691 * ipa-cp.c (gather_caller_stats): Skip thunks.
14692 (propagate_constants_topo): Skip aliases.
14694 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
14697 * config/sh/sh.c (sh_option_override): Don't change
14698 -freorder-blocks-and-partition to -freorder-blocks even when
14699 unwinding is enabled.
14700 (sh_can_follow_jump): Return false if the followee jump is
14701 a crossing jump when -freorder-blocks-and-partition is specified.
14702 * config/sh/sh.md (*jump_compact_crossing): New insn.
14704 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
14705 Kaz Kojima <kkojima@gcc.gnu.org>
14708 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
14709 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
14710 (sh_can_redirect_branch): Rename to ...
14711 (sh_can_follow_jump): ... this. Constify argument types.
14712 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
14713 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
14714 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
14715 * doc/tm.texi: Regenerate.
14717 2015-02-09 Jakub Jelinek <jakub@redhat.com>
14720 * builtins.c (expand_builtin): Call targetm.expand_builtin
14721 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
14723 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14726 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
14728 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14731 * ipa-icf.c (set_local): New function.
14732 (sem_function::merge): Use it.
14734 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14736 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
14737 (add_type_duplicate): Fix comparison of BINFOs.
14739 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14741 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
14742 on getting VOID pointer.
14744 2015-02-09 Jakub Jelinek <jakub@redhat.com>
14747 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
14750 2015-02-09 Richard Biener <rguenther@suse.de>
14752 * genmatch.c (replace_id): Copy expr_type.
14754 2015-02-09 Richard Biener <rguenther@suse.de>
14756 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
14757 (streamer_write_tree_bitfields): Declare.
14758 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
14759 properly unpack padding.
14760 (unpack_value_fields): Inline ...
14761 (streamer_read_tree_bitfields): ... here.
14762 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
14763 and properly add padding bits.
14764 (streamer_pack_tree_bitfields): Fold into ...
14765 (streamer_write_tree_bitfields): ... this new function,
14766 exposing the bitpack object.
14767 * lto-streamer-out.c (lto_write_tree_1): Call
14768 streamer_write_tree_bitfields.
14770 2015-02-09 Richard Biener <rguenther@suse.de>
14772 PR tree-optimization/54000
14773 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
14774 (struct ivopts_data): Add loop_loc member.
14775 (tree_ssa_iv_optimize_loop): Dump loop location.
14776 (create_new_ivs): Likewise, also dump number of IVs generated.
14778 2015-02-09 Martin Liska <mliska@suse.cz>
14780 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
14781 just if not yet registered.
14782 (ipa_icf_generate_summary): Register callgraph hooks.
14784 2015-02-08 Andrew Pinski <apinski@cavium.com>
14786 * config/aarch64/aarch64.c (gty_dummy): Delete.
14788 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14791 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
14792 (cgraph_node::local_p): Remove thunk related FIXME.
14794 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14797 * i386.c (ix86_function_regparm): Look through aliases to see if callee
14798 is local and optimized.
14799 (ix86_function_sseregparm): Likewise; also use target's SSE math
14800 settings; error out instead of silently generating wrong code
14802 (init_cumulative_args): Look through aliases.
14804 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14807 * ipa-split.c (execute_split_functions): Split if function has aliases.
14809 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
14812 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
14813 aliases before trying to expand it.
14814 (cgraph_node::expand_thunk): Fix formating.
14816 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
14818 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
14819 (Using Assembly Language with C): Expand introduction.
14820 (Basic Asm): Copy-edit. Add more information about uses of
14822 (Extended Asm): Copy-edit. Document new escape syntax and
14824 (Global Reg Vars): Copy-edit.
14825 (Local Reg Vars): Likewise.
14827 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
14831 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14832 (DBX_CONTIN_CHAR): Define.
14834 2015-02-06 Sebastian Pop <s.pop@samsung.com>
14835 Brian Rzycki <b.rzycki@samsung.com>
14837 PR tree-optimization/64878
14838 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14839 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14840 Stop recursion at loop phi nodes after having visited a loop phi node.
14842 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14844 * toplev.c (process_options): Change flag_ipa_ra before creating
14845 optimization_{default,current}_node.
14848 * cgraphunit.c (cgraph_node::expand_thunk): If
14849 restype is not is_gimple_reg_type nor the thunk_fndecl
14850 returns aggregate_value_p, set restmp to a temporary variable
14851 instead of resdecl.
14853 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
14855 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14857 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14860 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14861 add a general secondary reload handler for SDmode, unless we have
14862 both read/write support for SDmode.
14864 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14866 PR middle-end/64937
14867 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14868 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14869 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14870 1 before, push it to abstract_vec.
14871 (dwarf2out_abstract_function): Adjust caller. Don't call
14872 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14873 DECL_ABSTRACT_P flags for all abstract_vec elts.
14875 2015-02-06 Renlin Li <renlin.li@arm.com>
14877 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14879 * tree-ssa.c (execute_update_addresses_taken): Likewise.
14881 2015-02-06 Jeff Law <law@redhat.com>
14884 * config/h8300/h8300.c (push): New argument "in_prologue".
14885 Pass "in_prologue" along to "F".
14886 (h8300_push_pop): Corresponding changes.
14887 (h8300_expand_prologue): Likewise.
14888 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
14890 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14892 PR rtl-optimization/64957
14894 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14895 IOR rather than for AND.
14897 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
14900 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14901 of shift-add and (add + shift) operations. Rename local variable.
14903 2015-02-05 Jeff Law <law@redhat.com>
14906 * config/h8300/constraints.md (U): Correctly dectect
14907 "eightbit_data" memory addresses.
14908 * config/h8300/h8300.c (eightbit_constant_address_p): Also
14909 handle (const (plus (symbol_ref (x)))) where x is declared
14910 as an 8-bit data memory address.
14911 * config/h8300/h8300.md (call, call_value): Correctly detect
14912 "funcvec" functions.
14915 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14916 24 to 28 bits for the H8/300.
14918 2015-02-06 Alan Modra <amodra@gmail.com>
14921 * config/rs6000/rs6000.c (chain_already_loaded): New function.
14922 (rs6000_call_aix): Use it.
14924 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
14926 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14929 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
14931 * config/h8300/constraints.md ("U" constraint): Use strict
14932 variant of REG_OK_FOR_BASE_P after reload has started.
14934 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
14936 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14937 define to zero if !TARGET_NEON.
14938 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14940 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14941 Trevor Saunders <tsaunders@mozilla.com>
14944 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14946 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14949 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14950 when removing varpool nodes.
14952 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14955 * varpool.c (varpool_node::remove): Fix order of variables.
14957 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14960 * ipa-inline.c (inline_small_functions): Fix ordering issue between
14961 speculation resolution and key updates.
14963 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14965 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14966 about not letting any speculative edges unupdated.
14968 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14971 * gcov-io.c (gcov_var): Export.
14973 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14975 PR middle-end/64922
14976 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14977 edges that become speculative.
14979 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14981 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14982 or DW_LANG_Fortran08.
14983 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14985 (gen_compile_unit_die): Handle "GNU Fortran2003" and
14986 "GNU Fortran2008" language strings.
14987 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14988 * langhooks.h (lang_GNU_Fortran): New prototype.
14989 * langhooks.c (lang_GNU_Fortran): New function.
14990 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
14993 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
14995 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
14996 (RTX_OK_FOR_OLO10_P): Likewise.
14998 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
15000 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
15002 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
15004 PR middle-end/64922
15005 * gimple.c: Include gimple-ssa.h.
15006 (maybe_remove_unused_call_args): New function.
15007 * gimple.h (maybe_remove_unused_call_args): Declare.
15008 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
15009 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15010 * gimple-fold.c (gimple_fold_call): Likewise.
15012 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
15014 PR rtl-optimization/64905
15015 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
15016 pointer alignment if it isn't needed.
15018 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
15020 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
15021 cortex-a72.cortex-a53.
15022 * config/aarch64/aarch64-tune.md: Regenerate.
15023 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
15025 2015-02-04 Nick Clifton <nickc@redhat.com>
15027 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
15030 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15032 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
15033 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
15034 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
15036 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
15037 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
15038 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
15039 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
15040 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
15041 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
15042 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
15043 * tree-core.h (enum built_in_function): In between
15044 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
15045 for builtins that use DEF_BUILTIN_CHKP macro.
15047 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
15050 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
15051 operands for tcc_comparison exprs. Fix typos.
15054 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
15055 of two XORs that have an intervening AND or IOR.
15058 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
15059 simplification of XOR of AND to not allocate new rtx before
15060 committing to a simplification.
15062 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15064 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
15065 manual swaps in all peepholes.
15067 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15069 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
15070 of manual swapping implementation.
15071 (aarch64_expand_vec_perm_const_1): Likewise.
15073 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
15075 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
15076 (generic_addrcost_table): Remove NAMED_PARAM.
15077 (cortexa57_addrcost_table): Likewise.
15078 (xgene1_addrcost_table): Likewise.
15079 (generic_regmove_table): Likewise.
15080 (cortexa53_regmove_table): Likewise.
15081 (xgene1_regmove_table): Likewise.
15082 (generic_vector_table): Likewise.
15083 (cortexa57_vector_table): Likewise.
15084 (xgene1_vector_table): Likewise.
15085 (generic_tunings): Likewise.
15086 (cortexa53_tunings): Likewise.
15087 (cortexa57_tunings): Likewise.
15088 (xgene1_tunings): Likewise.
15090 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
15092 * config/arm/arm-cores.def: Add cortex-a72 and
15093 cortex-a72.cortex-a53.
15094 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
15095 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
15096 * config/arm/arm-tune.md: Regenerate.
15097 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
15098 "cortex-a72.cortex-a53".
15099 * doc/invoke.texi (ARM Options/-mtune): Likewise.
15101 2015-02-04 Nick Clifton <nickc@redhat.com>
15104 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
15106 (nonimmediate_di_operand): Likewise.
15108 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
15109 prefixes of known F5 using MSP430 MCUs.
15111 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15113 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
15114 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
15115 instead of __builtin_sqrt.
15117 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
15119 * varasm.c (do_assemble_alias): Follow transparent alias
15121 (default_assemble_visibility): Follow transparent alias
15122 chain for decl name.
15124 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15126 PR middle-end/62103
15127 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
15128 to compute size of referenced value in the constant case.
15130 2015-02-03 Jakub Jelinek <jakub@redhat.com>
15132 PR rtl-optimization/64756
15133 * cse.c (invalidate_dest): New function.
15134 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
15135 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
15136 invalidate and do not record it.
15138 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
15141 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
15142 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
15143 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
15144 atomic_nand<mode>_soft_tcb): New insns.
15145 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
15146 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
15147 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
15148 Split into atomic_not_fetchsi_hard if operands[0] is unused.
15149 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
15150 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15151 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
15152 atomic_not<mode>_hard if operands[0] is unused.
15153 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
15154 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
15155 if operands[0] is unused.
15156 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
15157 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
15158 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
15159 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15161 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
15162 into atomic_not<mode>_soft_tcb if operands[0] is unused.
15163 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
15164 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
15165 if operands[0] is unused.
15166 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
15167 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
15168 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
15169 atomic_nand_fetchsi_hard if operands[0] is unused.
15170 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
15171 atomic_nand<mode>_hard if operands[0] is unused.
15172 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
15173 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
15174 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
15175 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15176 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
15177 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
15178 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
15179 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15180 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
15181 atomic_not<mode>_hard if operands[0] is unused.
15182 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
15183 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15185 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
15186 into atomic_not<mode>_soft_tcb if operands[0] is unused.
15187 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
15188 atomic_nand<mode>_hard if operands[0] is unused.
15189 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
15190 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15192 2015-02-03 David Malcolm <dmalcolm@redhat.com>
15195 * Makefile.in (GCC_OBJS): Add gcc-main.o.
15196 * gcc-main.c: New file, containing "main" taken from gcc.c.
15197 * gcc.c (do_self_spec): Free decoded_options.
15198 (class driver): Move declaration to gcc.h.
15199 (main): Move declaration and implementation to new file
15201 (driver_get_configure_time_options): New function.
15202 * gcc.h (class driver): Move this declaration here, from
15204 (driver_get_configure_time_options): New declaration.
15206 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
15208 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
15209 cross-module inlining.
15210 * cgraph.h (cgraph_node): Add flag merged.
15211 * ipa-icf.c (sem_function::merge): Maintain it.
15213 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
15215 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
15216 instead of OBJECT_P.
15218 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
15221 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
15222 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
15223 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
15224 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
15226 2015-02-03 Jakub Jelinek <jakub@redhat.com>
15229 * combine.c (reg_n_sets_max): New variable.
15230 (can_change_dest_mode, reg_nonzero_bits_for_combine,
15231 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
15232 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
15233 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
15234 (rest_of_handle_combine): Initialize reg_n_sets_max.
15236 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
15238 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
15239 if some always_inline was inlined, apply changes before inlining
15242 2015-02-02 David Malcolm <dmalcolm@redhat.com>
15245 * config/arm/arm.c (arm_option_override): Set
15246 arm_selected_arch/cpu/tune to NULL on entry.
15248 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
15249 Andrew Pinski <pinskia@gcc.gnu.org>
15250 Jakub Jelinek <jakub@gcc.gnu.org>
15253 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
15254 integer typing for small model. Use IN_RANGE.
15256 2015-02-02 Richard Biener <rguenther@suse.de>
15258 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
15259 * tree-vrp.c (vrp_valueize_1): Likewise.
15261 2015-02-02 Alan Modra <amodra@gmail.com>
15263 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
15264 than mem for toc_restore.
15265 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
15266 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
15267 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
15269 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15272 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
15273 explicit default options.
15275 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
15278 * ipa-utils.c (ipa_merge_profiles): Add release argument.
15279 * ipa-icf.c (sem_function::merge): Do not release body when merging.
15280 * ipa-utils.h (ipa_merge_profiles): Update prototype.
15282 2015-02-01 Jakub Jelinek <jakub@redhat.com>
15285 * cfgexpand.c (deep_ter_debug_map): New variable.
15286 (avoid_deep_ter_for_debug): New function.
15287 (expand_debug_expr): If TERed SSA_NAME is in
15288 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
15289 instead of trying to expand SSA_NAME's def stmt.
15290 (expand_debug_locations): When expanding debug bind
15291 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
15292 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
15294 (pass_expand::execute): Call avoid_deep_ter_for_debug on
15295 all debug bind stmts. Delete deep_ter_debug_map after
15296 expand_debug_location if non-NULL and clear it.
15298 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
15301 * config/sh/sync.md (atomic_fetch_notsi_hard,
15302 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
15303 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
15304 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
15305 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
15306 atomic_not_fetch<mode>_soft_imask): New insns.
15308 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15310 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
15311 (rank_for_schedule_debug): Split from ...
15312 (rank_for_schedule): ... this.
15313 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
15314 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
15316 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
15318 * doc/md.texi (Machine Constraints): Alphabetize table by target.
15319 * doc/extend.texi (x86 Variable Attributes): Move section to
15320 correct alphabetization after renaming.
15321 (x86 Type Attributes): Likewise.
15322 (Target Builtins): Re-alphabetize menu.
15323 (x86 Built-in Functions): Move section to correct alphabetization
15325 (x86 transactional memory intrinsics): Likewise.
15326 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
15327 and x86 Windows Options in table and menu.
15328 (x86 Options): Move section to correct alphabetization after
15330 (x86 Windows Options): Likewise.
15332 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
15334 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
15335 preferred names of the architecture and its 32- and 64-bit
15337 * doc/invoke.texi: Likewise.
15338 * doc/md.texi: Likewise.
15340 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
15343 * config/i386/predicates.md (address_no_seg_operand): Reject
15344 non-CONST_INT_P operands in invalid mode.
15346 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
15348 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
15349 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
15350 * config/i386/predicates.md (address_no_seg_operand): Call
15351 address_operand with VOIDmode.
15352 (vsib_address_operand): Ditto.
15353 (address_mpx_no_base_operand): Ditto.
15354 (address_mpx_no_index_operand): Ditto.
15356 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
15359 * lra-constraints.c (original_subreg_reg_mode): New.
15360 (simplify_operand_subreg): Try to simplify subreg of const. Use
15361 original_subreg_reg_mode for it.
15362 (swap_operands): Update original_subreg_reg_mode.
15363 (curr_insn_transform): Set up original_subreg_reg_mode.
15365 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
15368 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
15370 (process_alt_operands): Use it.
15371 (curr_insn_transform): Check the optional reload pseudo class is
15374 2015-01-30 Joseph Myers <joseph@codesourcery.com>
15376 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
15377 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
15379 * toplev.h (init_asm_output): Update comment on use of
15380 UNKNOWN_LOCATION with fatal_error.
15381 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
15382 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
15383 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
15384 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
15385 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
15386 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
15387 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
15388 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
15389 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
15390 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
15391 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
15392 fatal_error changed to pass input_location as first argument.
15394 2015-01-30 Martin Liska <mliska@suse.cz>
15396 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
15397 in #pragma GCC diagnostic guards.
15399 2015-01-30 Richard Biener <rguenther@suse.de>
15401 PR tree-optimization/64829
15402 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
15403 not add a widening conversion pattern but hand off extra
15404 widenings to callers.
15405 (vect_recog_widen_mult_pattern): Handle extra widening produced
15406 by vect_handle_widen_op_by_const.
15407 (vect_recog_widen_shift_pattern): Likewise.
15408 (vect_pattern_recog_1): Remove excess vertical space in dumping.
15409 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15410 (vect_init_vector_1): Likewise.
15411 (vect_get_vec_def_for_operand): Likewise.
15412 (vect_finish_stmt_generation): Likewise.
15413 (vectorizable_load): Likewise.
15414 (vect_analyze_stmt): Likewise.
15415 (vect_is_simple_use): Likewise.
15417 2015-01-29 Jeff Law <law@redhat.com>
15419 * combine.c (try_combine): Fix typo in comment.
15421 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
15424 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
15425 (rs6000_stack_info): Add assert.
15426 (rs6000_output_savres_externs): New function, split off from...
15427 (rs6000_output_function_prologue): ... here. Do not call it for
15430 2015-01-29 Jeff Law <law@redhat.com>
15433 * combine.c (try_combine): If I0 is a memory load and I3 a store
15434 to a related address, increase the "goodness" of doing a 4-insn
15435 combination with I0-I3.
15436 (make_field_assignment): Handle SUBREGs in the ior+and case.
15438 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15440 PR tree-optimization/64746
15441 * tree-if-conv.c (mask_exists): New function.
15442 (predicate_mem_writes): Save created mask with given size for further
15444 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
15445 (ifcvt_repair_bool_pattern): Collect all statements that are root
15446 of bool pattern and use iterative algorithm to remove multiple uses
15447 of predicates, display number of required iterations.
15449 2015-01-29 Richard Biener <rguenther@suse.de>
15451 PR tree-optimization/64853
15452 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
15453 stmt will get simulated again.
15454 * tree-ssa-ccp.c (valueize_op_1): Likewise.
15456 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15458 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
15459 return_in_pc. Remove redundant assignments.
15460 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
15461 (arm_expand_epilogue): Don't compare boolean with true in if condition.
15463 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
15465 * config/i386/i386.c (ix86_mode_after): Make static.
15467 2015-01-29 Richard Biener <rguenther@suse.de>
15469 PR tree-optimization/64844
15470 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
15471 dump cost model analysis.
15472 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15473 Do not register adjusted load/store costs here.
15475 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
15476 Uros Bizjak <ubizjak@gmail.com>
15478 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
15479 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
15480 using x86_use_pseudo_pic_reg.
15481 * config/i386/i386.c (ix86_conditional_register_usage): Remove
15482 support for fixed PIC register.
15483 (ix86_use_pseudo_pic_reg): Not static any more.
15485 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
15487 PR middle-end/64805
15488 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
15489 to avoid error in cgraph node verification.
15491 2015-01-29 Marek Polacek <polacek@redhat.com>
15493 * doc/standards.texi: Reflect that the default for C is gnu11.
15495 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
15498 * reorg.c (switch_text_sections_between_p): New function.
15499 (relax_delay_slots): Call it when testing if the jump insn
15500 is removable. Use targetm.can_follow_jump when testing if
15501 the conditional branch can follow an unconditional jump.
15503 2015-01-27 Caroline Tice <cmtice@google.com>
15505 Committing VTV Cywin/Ming patch for Patrick Wollgast
15506 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
15507 if -fvtable-verify=preinit/std is used.
15508 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
15509 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
15510 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
15511 if -fvtable-verify=preinit/std is used.
15512 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15513 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
15514 if -fvtable-verify=preinit/std is used.
15515 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
15516 * config/i386/mingw32.h (LIB_SPEC): Likewise.
15517 * varasm.c (assemble_variable): Add code to properly set the comdat
15518 section and name for the .vtable_map_vars section in case the
15519 target is PE or COFF.
15521 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
15524 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
15525 make sane BB profile.
15526 (cgraph_node::expand_thunk): Make sane BB profile.
15527 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
15528 * cgraph.h (init_lowered_empty_function): Update prototype.
15529 * config/i386/i386.c (make_resolver_func): Update call.
15530 * predict.c (gate): Disable branch prediction pass if
15531 profile is already there.
15533 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
15535 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
15536 * opth-gen.awk: Likewise.
15537 * common.opt: Mark flag_fp_contract_mode as Optimization.
15539 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
15541 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
15542 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
15544 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
15547 * config/sh/predicates.md (atomic_arith_operand,
15548 atomic_logical_operand): Remove.
15549 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
15550 (atomic_arith_operand_0): New predicate.
15551 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
15552 Use atomic_arith_operand_0 for input values.
15553 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
15554 atomic_compare_and_swap<mode>_soft_gusa,
15555 atomic_compare_and_swap<mode>_soft_tcb,
15556 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
15557 arith_reg_operand instead of register_operand.
15558 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
15559 atomic_arith_operand_0 for newval input.
15560 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15561 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
15562 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
15563 arith_reg_operand instead of register_operand.
15564 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
15565 fetchop_predicate_1, fetchop_constraint_1_llcs,
15566 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
15567 fetchop_constraint_1_imask): New code iterator attributes.
15568 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
15569 register_operand. Use fetchop_predicate_1.
15570 (atomic_fetch_<fetchop_name>si_hard,
15571 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
15572 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
15573 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
15574 and arith_reg_operand instead of register_operand. Use
15575 fetchop_predicate_1, fetchop_constraint_1_gusa.
15576 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
15577 and arith_reg_operand instead of register_operand. Use
15578 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
15580 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
15581 and arith_reg_operand instead of register_operand. Use
15582 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
15584 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
15585 register_operand. Use atomic_logical_operand_1.
15586 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
15587 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
15588 arith_reg_operand instead of register_operand.
15589 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
15590 Use arith_reg_dest and arith_reg_operand instead of register_operand.
15591 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
15592 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
15593 register_operand. Use fetchop_predicate_1.
15594 (atomic_<fetchop_name>_fetchsi_hard,
15595 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
15596 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15597 fetchop_constraint_1_llcs.
15598 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
15599 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15600 fetchop_constraint_1_gusa.
15601 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
15602 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15603 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
15604 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
15605 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
15606 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
15607 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
15608 register_operand. Use atomic_logical_operand_1.
15609 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
15610 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
15611 arith_reg_operand instead of register_operand.
15612 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
15613 arith_reg_operand instead of register_operand. Use logical_operand
15614 and K08. Adjust asm sequence to allow R0 usage.
15615 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
15616 arith_reg_operand instead of register_operand. Use logical_operand
15619 2015-01-28 Jakub Jelinek <jakub@redhat.com>
15622 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
15623 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
15624 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
15625 only get_full_len HOST_WIDE_INTs from get_val () array rather than
15626 all bits in *val_wide.
15628 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
15630 * varpool.c (tls_model_names): Fix names.
15631 (varpool_node::dump): Dump tls- prefix for tls models.
15633 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
15634 Bernd Schmidt <bernds@codesourcery.com>
15635 Nathan Sidwell <nathan@codesourcery.com>
15637 * config/nvptx/mkoffload.c: New file.
15638 * config/nvptx/t-nvptx: Add build rules for it.
15639 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
15640 (extra_programs): Add mkoffload.
15641 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
15643 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
15645 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15647 PR middle-end/64809
15648 * cfgexpand.c (reorder_operands): Skip debug gimples.
15650 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
15652 PR tree-optimization/64277
15653 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
15654 range info when possible to refine estimation.
15656 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15658 PR tree-optimization/64718
15659 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
15660 be a 16bit unsigned integer when n->range is 16.
15661 (bswap_replace): Convert src to that type if necessary for all bswap
15662 sizes. Fix rotation right notation in nearby comment. Use bswap_type
15663 set in pass_optimize_bswap::execute ().
15665 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
15667 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
15668 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
15669 integer and floating point variants.
15670 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
15672 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
15674 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
15675 for all vector modes.
15677 2015-01-28 Jakub Jelinek <jakub@redhat.com>
15680 * doc/sourcebuild.texi (comdat_group): Document.
15682 2015-01-28 Terry Guo <terry.guo@arm.com>
15684 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
15686 2015-01-27 David Malcolm <dmalcolm@redhat.com>
15688 * toplev.c (print_version): Add param "show_global_state", and
15689 only print GGC and plugin information if it is true.
15690 (init_asm_output): Pass in "true" for the new param when calling
15692 (process_options): Likewise.
15693 (toplev::main): Likewise.
15694 * toplev.h (print_version): Add new param to decl.
15696 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
15700 * tree.c (lookup_binfo_at_offset): New function.
15701 (get_binfo_at_offset): Use it.
15703 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
15706 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
15707 on vtable being vtable.
15709 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15711 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
15712 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
15713 -mhotpatch= option.
15714 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
15715 -mno-hotpatch options. Change syntax of -mhotpatch= option.
15716 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
15718 (s390_hotpatch_trampoline_halfwords_max): Renamed.
15719 (s390_hotpatch_hw_max): New name.
15720 (s390_hotpatch_trampoline_halfwords): Renamed.
15721 (s390_hotpatch_hw_before_label): New name.
15722 (get_hotpatch_attribute): Removed.
15723 (s390_hotpatch_hw_after_label): New name.
15724 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
15726 (s390_attribute_table): Ditto.
15727 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
15728 (s390_function_num_hotpatch_hw): New name.
15729 Remove special handling of inline functions and hotpatching.
15730 Return number of nops before and after the function label.
15731 (s390_can_inline_p): Removed.
15732 (s390_asm_output_function_label): Emit a configurable number of nops
15733 after the function label.
15734 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
15735 (TARGET_CAN_INLINE_P) Removed.
15736 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
15738 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15739 Jiong Wang <jiong.wang@arm.com>
15741 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
15743 (cb<optab><mode>1): Likewise.
15744 * config/aarch64/iterators.md (bcond): New define_code_attr.
15746 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15748 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
15751 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15753 * config/s390/s390.c (s390_register_move_cost): Increase costs for
15756 2015-01-27 Richard Biener <rguenther@suse.de>
15758 * tree-vrp.c (update_value_range): Intersect the range with
15759 old recorded SSA name range information.
15761 2015-01-27 Nick Clifton <nickc@redhat.com>
15763 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
15764 BC, DE and HL registers directly, not via AX.
15765 When decrementing the stack pointer by a large amount, transfer SP
15766 into AX and perform the subtraction there.
15767 (rl78_expand_epilogue): Perform the inverse of the above
15770 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15772 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
15774 2015-01-27 Jakub Jelinek <jakub@redhat.com>
15775 Yury Gribov <y.gribov@samsung.com>
15778 * ubsan.c (ubsan_source_location): Refactor code.
15779 (ubsan_type_descriptor): Update type size. Refactor code.
15781 2015-01-27 Richard Biener <rguenther@suse.de>
15783 PR tree-optimization/56273
15784 PR tree-optimization/59124
15785 PR tree-optimization/64277
15786 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
15787 from the first VRP pass.
15789 2015-01-27 Jakub Jelinek <jakub@redhat.com>
15792 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
15793 handle the first argument in the same loop as all the other arguments.
15795 PR rtl-optimization/61058
15796 * jump.c (cleanup_barriers): Update basic block boundaries
15797 if BLOCK_FOR_INSN is non-NULL on PREV.
15799 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
15801 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
15802 bounds narrowing, already instrumented calls and calls to
15803 not instrumentable functions.
15805 2015-01-27 Jakub Jelinek <jakub@redhat.com>
15807 PR tree-optimization/64807
15808 * wide-int.cc (wi::divmod_internal): Clear
15809 b_dividend[dividend_blocks_needed].
15811 2015-01-26 DJ Delorie <dj@redhat.com>
15813 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
15814 volatile memory references.
15816 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
15819 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
15821 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
15822 shifts if it already fits into K08.
15824 2015-01-26 Jakub Jelinek <jakub@redhat.com>
15827 * ipa-inline.c (inline_small_functions): Print "unknown" even
15828 if edge->call_stmt is non-NULL, but has builtins or unknown
15831 PR middle-end/64421
15832 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15833 with asterisk, skip the first character.
15835 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
15838 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15841 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
15844 * config/i386/i386.md (*movdi_internal): Also check operand 0
15845 to determine TYPE_LEA operand.
15846 (*movsi_internal): Ditto.
15848 2015-01-26 Jakub Jelinek <jakub@redhat.com>
15850 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15851 OPTION_MASK_QUAD_MEMORY_ATOMIC.
15853 2015-01-26 Renlin Li <renlin.li@arm.com>
15855 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15857 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15860 2015-01-26 Richard Biener <rguenther@suse.de>
15862 PR middle-end/64764
15863 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15864 combining two BIT_AND_EXPR predicates.
15866 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
15869 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15871 2015-01-26 Terry Guo <terry.guo@arm.com>
15873 * config/arm/arm.c (arm_file_start): Update the assignment of
15874 Tag_ABI_HardFP_use.
15876 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
15878 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15880 config/arm/arm.md: Include the new Cortex-A57 model.
15881 (generic_sched): Don't use generic_sched when tuning for
15884 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
15885 Uros Bizjak <ubizjak@gmail.com>
15887 * config/i386/i386.c (get_builtin_code_for_version): Add
15888 support for BMI and BMI2 multiversion functions.
15890 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15892 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15893 (extract_bit_field): Likewise.
15894 (extract_low_bits): Likewise.
15895 (expand_mult): Likewise.
15896 (expand_mult_highpart_adjust): Likewise.
15898 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
15900 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15901 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15902 * config/i386/i386.c (processor_model): Add
15903 M_INTEL_COREI7_BROADWELL.
15904 (arch_names_table): Add "broadwell".
15906 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
15915 * config/sh/sh-protos.h
15916 (sh_extending_set_of_reg::can_use_as_unextended_reg,
15917 sh_extending_set_of_reg::use_as_unextended_reg,
15918 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15919 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15920 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15921 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15922 (sh_treg_insns): New class.
15923 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15924 (scope_counter): New class.
15925 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15926 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15927 sh_extending_set_of_reg::can_use_as_unextended_reg,
15928 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15929 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15930 sh_split_treg_set_expr): New functions.
15931 (addsubcosts): Handle treg_set_expr.
15932 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15933 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15934 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15935 (sh_insn_operands_modified_between_p): Make non-static.
15936 * config/sh/predicates.md (zero_extend_movu_operand): Allow
15937 simple_mem_operand in addition to displacement_mem_operand.
15938 (zero_extend_operand): Don't allow zero_extend_movu_operand.
15939 (treg_set_expr, treg_set_expr_not_const01,
15940 arith_reg_or_treg_set_expr): New predicates.
15941 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15942 arith_or_int_operand instead of logical_operand. Convert to
15943 insn_and_split. Try to optimize constant operand in splitter.
15944 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
15945 (*tstqi_t_zero): Delete.
15946 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15947 (tstsi_t_and_not): Delete.
15948 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15949 Convert to insn_and_split.
15950 (unnamed split, tstsi_t_zero_extract_xor,
15951 tstsi_t_zero_extract_subreg_xor_little,
15952 tstsi_t_zero_extract_subreg_xor_big): Delete.
15953 (*tstsi_t_shift_mask): New insn_and_split.
15954 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15955 to recombine with surrounding insns when splitting.
15956 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15957 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15958 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15959 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15960 (*cbranch_div0s: Delete.
15961 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15962 Try to recombine with surrounding insns when splitting. Add operand
15964 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15965 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15966 *addc_r_r_msb, *addc_2r_msb): Delete.
15967 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
15969 (*addc_negreg_t): New insn_and_split.
15970 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15971 Try to recombine with surrounding insns when splitting.
15972 Add operand order variants.
15973 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15974 insn_and_split patterns.
15975 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
15976 surrounding insns when splitting.
15977 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15978 (*rotcl): Likewise. Add zero_extract variant.
15979 (*ashrsi2_31): New insn_and_split.
15980 (*negc): Convert to insn_and_split. Use treg_set_expr.
15981 (*zero_extend<mode>si2_disp_mem): Update comment.
15982 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15984 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
15985 with surrounding insns when splitting.
15986 (any_treg_expr_to_reg): New insn_and_split.
15987 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15988 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
15989 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
15990 *zero_extract_2): New single bit zero extract patterns.
15991 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
15992 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
15993 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
15994 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
15996 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
15997 register_operand for set source.
15999 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
16001 * i386.opt (prefetch_sse): New targetsave.
16002 * i386.c (ix86_function_specific_save): Save prefetch_sse.
16003 (ix86_function_specific_restore): Restore prefetch_sse and initialize
16004 ix86_cost/ix86_tune_cost.
16006 2015-01-23 David Malcolm <dmalcolm@redhat.com>
16008 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
16009 Support the JIT by using 0 as the language type.
16011 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
16014 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
16015 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
16016 (mark_regno_live, process_bb_lives): Pass new parameter value to
16017 make_hard_regno_born.
16019 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16021 PR rtl-optimization/63637
16022 PR rtl-optimization/60663
16023 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
16024 if elt->cost is MAX_COST for ASM_OPERANDS.
16025 (find_sets_in_insn): Fix up comment typo.
16026 (cse_insn): Don't set src_volatile for all non-volatile
16027 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
16028 or with "memory" clobber. Set elt->cost to MAX_COST
16029 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
16030 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
16032 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
16034 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
16037 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
16039 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
16040 libgcc/config/i386/elf-lib.h.
16042 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16045 * gcc.c (print_configuration): Don't print a blank line at the end
16047 (run_attempt): ... but here unstead.
16049 PR middle-end/64734
16050 * omp-low.c (scan_sharing_clauses): Don't ignore
16051 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
16052 on target data/update constructs.
16054 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
16057 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
16058 (DEBUG_RELOAD): Removed define.
16059 (m32c_limit_reload_class): Enable traces with if DEBUG0.
16060 (m32c_function_arg): Added a type cast.
16061 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
16062 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
16063 * config/m32c/bitops.md (andqi3_16): Likewise.
16064 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
16065 (push_a01_l): Likewise.
16067 2015-01-23 David Malcolm <dmalcolm@redhat.com>
16070 * main.c (main): Construct toplev instances with init_signals=true.
16071 * toplev.c (general_init): Add param "init_signals", and use it to
16072 conditionalize the calls to signal and host_hooks.extra_signals.
16073 (toplev::toplev): Add param "init_signals".
16074 (toplev::main): When invoking general_init, pass m_init_signals
16075 to control whether signal-handlers are installed.
16076 * toplev.h (toplev::toplev): Add param "init_signals".
16077 (toplev::m_init_signals): New field.
16079 2015-01-23 David Malcolm <dmalcolm@redhat.com>
16082 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
16083 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
16084 latter may be affected by the former (e.g. on i686).
16086 2015-01-23 Martin Liska <mliska@suse.cz>
16088 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
16089 false positive during profiledbootstrap.
16091 2015-01-23 Tom de Vries <tom@codesourcery.com>
16094 * lto-opts.c (lto_write_options): Output non-explicit conservative
16096 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
16097 (append_compiler_options): Pass -fopenacc through.
16099 2015-01-23 Tom de Vries <tom@codesourcery.com>
16102 * lto-opts.c (lto_write_options): Output non-explicit conservative
16104 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
16105 (append_compiler_options): Pass -fopenmp through.
16107 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16110 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
16113 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
16114 * diagnostic.def (DK_ICE_NOBT): New kind.
16115 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
16116 like DK_ICE, but never print backtrace.
16117 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
16118 (internal_error_no_backtrace): New function.
16119 * gcc.c (execute): Use internal_error_no_backtrace instead of
16122 2015-01-22 Jeff Law <law@redhat.com>
16125 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
16126 improve code density for small immediate to memory case.
16127 (insv): Better handle bitfield assignments when the field is
16128 being set to all ones.
16129 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
16132 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16133 Jakub Jelinek <jakub@redhat.com>
16135 PR middle-end/64729
16136 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
16137 for !TARGET_LIBC_PROVIDES_SSP version and
16138 -fstack-protector-{all,strong,explicit} otherwise.
16139 * config/freebsd.h (LINK_SSP_SPEC): Handle
16140 -fstack-protector-{strong,explicit}.
16142 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
16143 H.J. Lu <hongjiu.lu@intel.com>
16146 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
16149 2015-01-22 Wei Mi <wmi@google.com>
16151 PR rtl-optimization/64557
16152 * dse.c (record_store): Call get_addr for mem_addr.
16153 (check_mem_read_rtx): Likewise.
16155 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
16157 * fold-const.c (const_binop): Add early return for non-tcc_binary.
16159 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
16161 * toplev.c (init_local_tick): Process the failure when read
16162 fails for random_seed.
16164 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
16165 'pretty_name' to avoid memory overflow.
16167 2015-01-22 Richard Biener <rguenther@suse.de>
16169 PR middle-end/64728
16170 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
16171 abnormal coalescing on undefined SSA names.
16173 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
16177 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
16179 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
16181 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
16183 PR middle-end/63325
16184 * fold-const.c (fold_checksum_tree): Don't include value of
16185 expr->decl_with_vis.symtab_node in the checksum.
16187 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16189 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
16191 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
16194 * gcc.c (insert_comments): New function.
16195 (try_generate_repro): Call it.
16196 (append_text): Removed.
16198 2015-01-22 Richard Biener <rguenther@suse.de>
16200 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
16201 with IL incompatible options. Properly honor user optimize
16204 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
16206 PR rtl-optimization/64682
16207 * combine.c (distribute_notes): When moving a death note for
16208 a register that is set in the new I2, make sure to put it
16209 before that new I2.
16211 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
16213 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
16214 not TARGET_DEFAULT.
16216 2015-01-21 Jakub Jelinek <jakub@redhat.com>
16219 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
16220 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
16221 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
16224 * doc/invoke.texi (-fsanitize=vptr): Document.
16226 PR rtl-optimization/62078
16227 * dse.c: Include cfgcleanup.h.
16228 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
16229 anything call purge_all_dead_edges and cleanup_cfg at the end
16232 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
16234 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
16237 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16239 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
16242 2015-01-21 David Sherwood <david.sherwood@arm.com>
16243 Tejas Belagod <Tejas.Belagod@arm.com>
16245 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
16246 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
16247 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
16250 2015-01-21 David Sherwood <david.sherwood@arm.com>
16251 Tejas Belagod <Tejas.Belagod@arm.com>
16253 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
16254 (aarch64_reverse_mask): New decls.
16255 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
16256 (insn_count): New mode_attr.
16257 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
16258 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
16259 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
16260 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
16261 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
16262 (aarch64_simd_st4): New patterns.
16263 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
16264 (aarch64_reverse_mask): New functions.
16266 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
16268 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
16270 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
16271 addressing modes for BE.
16272 (aarch64_print_operand): Add 'R' specifier.
16273 (aarch64_simd_disambiguate_copy): Delete.
16274 (aarch64_simd_emit_reg_reg_move): New function.
16275 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
16276 in define_splits for structural moves.
16277 (mov<mode>): Use less restrictive predicates.
16278 (*aarch64_mov<mode>): Simplify and only allow for LE.
16279 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
16281 2015-01-21 Alan Hayward <alan.hayward@arm.com>
16283 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
16285 2015-01-21 Richard Henderson <rth@redhat.com>
16288 * ccmp.c (used_in_cond_stmt_p): Remove.
16289 (expand_ccmp_expr): Don't use it.
16291 2015-01-21 Nick Clifton <nickc@redhat.com>
16293 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
16296 2015-01-21 Richard Biener <rguenther@suse.de>
16298 PR middle-end/64313
16299 * tree-core.h (builtin_info, builtin_info_type): Turn from
16300 an object with two arrays into an array of an object with
16301 decl and two flags, implicit_p and declared_p.
16302 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
16303 set_builtin_decl, set_builtin_decl_implicit_p,
16304 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
16305 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
16306 * builtins.c (builtin_info): Adjust.
16307 * gimplify.c (gimplify_addr_expr): References to builtins
16308 that have been declared by the user makes them eligible for
16309 use by the compiler. Call set_builtin_decl_implicit_p on them.
16311 2015-01-20 Jeff Law <law@redhat.com>
16314 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
16315 allow pc-relative addresses in operand predicates or constraints.
16317 2015-01-21 Bin Cheng <bin.cheng@arm.com>
16319 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
16320 neon on aarch32 processors for stringops.
16322 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16325 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
16327 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16330 * ipa-inline.c: Include lto-streamer.h
16331 (report_inline_failed_reason): Output source file differences and
16332 flags on optimization/target node mismatch.
16333 (can_inline_edge_p): Consider caller to be the outer inline function;
16334 be less restrictive about matching opimize and optimize_size attributes.
16335 (inline_account_function_p): Break out from ...
16336 (inline_small_functions): ... here.
16337 * ipa-inline-transform.c (clone_inlined_nodes): Use
16338 inline_account_function_p.
16339 (inline_call): Use optimize attribution; use inline_account_function_p.
16340 (inline_transform): Use opt_for_fn.
16341 * ipa-inline.h (inline_account_function_p): Declare.
16343 2015-01-20 Jakub Jelinek <jakub@redhat.com>
16346 * dwarf2out.c (decl_piece_node): Don't put bitsize into
16347 mode if bitsize <= 0.
16348 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
16349 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
16350 sizes and positions.
16352 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
16354 * config/nios2/nios2.c (nios2_asm_file_end): Implement
16355 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
16357 (TARGET_ASM_FILE_END): Define.
16359 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16361 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
16362 (struct tune_params): Use the enum.
16363 * arm.c (arm_*_tune): Update.
16364 (arm_option_override): Update.
16366 2015-01-20 Richard Biener <rguenther@suse.de>
16369 * ipa-reference.c (add_static_var): Inline ...
16370 (analyze_function): ... here after splitting out from ...
16371 (is_proper_for_analysis): ... this.
16373 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
16376 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
16377 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
16378 replace the conditional with it's true branch.
16379 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
16380 (arm_lra_p): Remove.
16382 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
16384 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
16386 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16388 * config/tilegx/mul-tables.c: Move symtab.h include after
16389 coretypes.h include.
16390 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
16391 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
16392 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
16393 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
16394 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16396 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
16400 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
16402 PR rtl-optimization/64081
16403 * loop-iv.c (def_pred_latch_p): New function.
16404 (latch_dominating_def): Allow specific cases with non-single
16406 (iv_get_reaching_def): Likewise.
16407 (check_complex_exit_p): New function.
16408 (check_simple_exit): Use check_complex_exit_p to allow certain cases
16409 with exits not executing on any iteration.
16411 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16414 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
16415 to set branch cost.
16417 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16420 * i386.c (gate): Check flag_expensive_optimizations and
16422 (ix86_option_override_internal): Drop optimize_size condition
16423 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
16424 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
16425 MASK_PREFER_AVX128.
16426 (ix86_avx256_split_vector_move_misalign,
16427 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
16428 * sse.md (all uses of TARGET_PREFER_AVX128): Add
16429 optimize_insn_for_speed_p check.
16431 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
16433 * config/mips/mips.h (FP_ASM_SPEC): New define.
16434 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
16437 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
16440 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
16441 nullptr for insn when reaching the first insn.
16442 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
16443 (sh_insn_operands_modified_between_p): Add nullptr check.
16444 (sh_find_extending_set_of_reg): Fix log message. Don't accept
16445 sign extending mem load if the insn contains any UNSPEC or
16448 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16450 * params.def (inline-unit-growth): Drop to 15%.
16451 * invoke.texi (inline-unit-growth): Document change.
16453 2015-01-19 Martin Liska <mliska@suse.cz>
16456 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
16457 function for second argument of OBJ_TYPE_REF.
16459 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16462 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
16463 whether function is an alias.
16465 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
16467 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
16470 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
16472 PR rtl-optimization/64671
16473 * lra-remat.c (operand_to_remat): Don't consider jump and call
16476 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
16479 * config/rs6000/default64.h: Include rs6000-cpus.def.
16480 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
16481 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
16482 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
16484 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
16486 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
16487 pseudo-op to specify assembler dialect.
16489 2015-01-19 Martin Liska <mliska@suse.cz>
16492 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
16493 Handle safe potentially removed nodes during filtering.
16495 2015-01-19 Martin Liska <mliska@suse.cz>
16497 * doc/extend.texi (no_icf): Add new attribute description.
16498 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
16499 where the pass attempts to merge a function with no_icf attribute.
16501 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16504 * doc/md.texi (ARM Options): Document register constraints.
16506 2015-01-19 Jiong Wang <jiong.wang@arm.com>
16507 Andrew Pinski <apinski@cavium.com>
16510 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
16511 (ashl<mode>3): Don't expand if operands[2] is not constant.
16513 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16516 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
16517 Match xor-and-xor RTL pattern.
16519 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
16521 PR rtl-optimization/64081
16522 * loop-iv.c (def_pred_latch_p): New function.
16523 (latch_dominating_def): Allow specific cases with non-single
16525 (iv_get_reaching_def): Likewise.
16526 (check_complex_exit_p): New function.
16527 (check_simple_exit): Use check_complex_exit_p to allow certain cases
16528 with exits not executing on any iteration.
16530 2015-01-19 Jakub Jelinek <jakub@redhat.com>
16532 * common.opt (fgraphite): Fix a typo.
16534 2015-01-19 Felix Yang <felix.yang@huawei.com>
16536 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
16538 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
16539 uminp, smax_nanp, smin_nanp): New builtins.
16540 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
16541 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
16542 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
16543 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
16544 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
16545 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
16546 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
16547 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
16548 vpminnms_f32): Rewrite using builtin functions.
16550 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16553 * omp-low.c (offload_symbol_decl): Remove variable.
16554 (get_offload_symbol_decl): Remove function.
16555 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
16556 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
16557 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
16558 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
16559 BUILT_IN_GOACC_UPDATE don't pass it at all.
16561 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
16563 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
16566 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
16568 * ipa-chkp.c (chkp_produce_thunks): Add early param
16569 to split thunks production into two passes. Keep
16570 'always_inline' function bodies after the first pass.
16571 (pass_data_ipa_chkp_early_produce_thunks): New.
16572 (pass_ipa_chkp_early_produce_thunks): New.
16573 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
16574 chkp_produce_thunks signature.
16575 (make_pass_ipa_chkp_early_produce_thunks): New.
16576 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
16577 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
16578 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
16580 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
16582 * cgraph.c (cgraph_node::dump): Dump profile flags.
16584 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
16587 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
16588 reg appear first in the parallel.
16590 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
16592 * ipa-reference.c (set_reference_optimization_summary,
16593 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
16595 (ignore_module_statics): New static var.
16596 (propagate_bits): If ipa-reference is disabled, do not look into local
16598 (analyze_function): Disable analysis when ipa_reference is disabled.
16599 (generate_summary): Do not dump when reference is disabled;
16600 collect vars accessed from functions with ipa-reference disabled.
16601 (get_read_write_all_from_node): When ipa-reference is disabled, use the
16603 (gate): Enable for LTO.
16604 (ignore_edge_p): New function.
16605 (propagate): Skip functions w/o ipa-reference analysis.
16606 * optc-save-gen.awk: Handle optimize_debug correctly.
16607 * opth-gen.awk: Likewise.
16608 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
16609 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
16610 fira-share-save-slots, fira-share-spill-slots,
16611 fmodulo-sched-allow-regmoves, fpartial-inlining,
16612 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
16613 ftracer, ftree-parallelize-loops, fassociative-math,
16614 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
16616 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
16617 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
16619 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
16622 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
16625 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
16627 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
16629 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
16631 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
16632 Remove duplicate option listings.
16634 2015-01-18 Felix Yang <felix.yang@huawei.com>
16636 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
16637 (autofdo_source_profile::get_callsite_total_count,
16638 function_instance::get_function_instance_by_decl,
16639 string_table::get_index, string_table::get_index_by_decl,
16640 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
16641 Fix comment typos. Reformatting and minor code rearrangement.
16643 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
16645 * config/rs6000/rs6000.md (probe_stack): Delete.
16646 (probe_stack_address): New.
16648 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
16650 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
16651 to test for 32-bit ABIs, not !TARGET_POWERPC64.
16653 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
16655 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
16656 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
16657 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
16659 (rs6000_libcall_value): Use the new function.
16661 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
16663 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
16665 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
16667 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
16668 implement a more precise life analysis for it during backward scan.
16670 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
16672 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
16674 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
16676 PR rtl-optimization/52773
16677 * calls.c (emit_library_call_value): When pushing arguments use
16678 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
16679 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
16680 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
16682 2015-01-17 Jeff Law <law@redhat.com>
16684 PR rtl-optimization/32790
16685 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
16686 not ZERO_EXTEND in SET_DESTs.
16688 2015-01-17 Alan Modra <amodra@gmail.com>
16690 * cprop.c (do_local_cprop): Revert last change.
16692 2015-01-16 DJ Delorie <dj@redhat.com>
16693 Nick Clifton <nickc@redhat.com>
16695 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
16696 (addhi3_real): Likewise. Fix [HL+0] syntax.
16697 (subqi3_real): Likewise.
16698 (subhi3_real): Likewise.
16699 (cbranchqi4_real): Likewise. Allow saddr,#imm.
16700 (cbranchhi4_real): Likewise.
16701 (cbranchhi4_real_inverted): Likewise.
16702 (cbranchsi4_real_lt): Likewise.
16703 (cbranchsi4_real_ge): Likewise.
16704 (cbranchsi4_real_ge): Likewise.
16705 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
16706 (sub<mode>3_virt): Likewise.
16707 (cbranchqi4_virt): Likewise.
16708 (cbranchhi4_virt): Likewise.
16709 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
16710 always use '[reg+imm]' even when imm is zero.
16711 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
16712 (rl78_general_operand): New.
16713 (rl78_nonimmediate_operand): New.
16714 (rl78_nonfar_operand): Use them.
16715 (rl78_nonfar_nonimm_operand): Likewise.
16716 (rl78_stack_based_mem): Fix.
16717 * config/rl78/constraints.md (Ibqi): New.
16722 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
16723 (iorqi3): Likewise.
16724 (xorqi3): Likewise.
16725 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
16727 * config/rl78/constrains (Qs8): New constraint.
16728 * config/rl78/rl78.c (rl78_flags_already_set): New function.
16729 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
16730 * config/rl78/rl78-real.md (update_Z): New attribute.
16731 Update patterns to set it.
16732 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
16733 shorter compare and branch sequence can be used.
16734 (cbranchhi4_real): Likewise.
16735 (cbranchhi4_real_inverted): Likewise.
16737 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
16738 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
16740 * config/rl78/rl78.c (rl78_get_name_encoding): New.
16741 (rl78_option_override): Allow -mes0 only if C.
16742 (characterize_address): Support subregs of symbol_refs.
16743 (rl78_addr_space_address_mode): Move. Add __near.
16744 (rl78_far_p): Likewise.
16745 (rl78_addr_space_pointer_mode): Likewise.
16746 (rl78_as_legitimate_address): Likewise.
16747 (rl78_addr_space_subset_p): Likewise.
16748 (rl78_addr_space_convert): Likewise.
16749 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
16750 symbols with -mes0.
16751 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
16753 (rl78_alloc_physical_registers_op1): Change logic to prefer
16754 symbol[BC] addressing.
16755 (frodata_section): New.
16756 (rl78_asm_init_sections): Initialize it.
16757 (rl78_select_section): Put __far readonly symbols in .frodata.
16758 (rl78_make_type_far): New.
16759 (rl78_insert_attributes): Force all readonly symbols to be
16761 (rl78_asm_out_integer): New.
16762 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
16763 * config/rl78/rl78.opt (-mes0): New.
16765 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
16766 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16767 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16768 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
16769 (rl78_saddr_p): New.
16770 (rl78_output_aligned_common): New.
16771 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
16772 (rl78_handle_saddr_attribute): New.
16773 (rl78_handle_naked_attribute): New.
16774 (rl78_attribute_table): Add saddr.
16775 (rl78_print_operand_1): Don't print '!' on saddr operands.
16776 (rl78_print_operand_1): Strip encodings.
16778 (rl78_strip_name_encoding): New.
16779 (rl78_attrlist_to_encoding): New.
16780 (rl78_encode_section_info): New.
16781 (rl78_asm_init_sections): New.
16782 (rl78_select_section): New.
16783 (rl78_output_labelref): New.
16784 (rl78_output_aligned_common): New.
16785 (rl78_asm_out_integer): New.
16786 (rl78_asm_ctor_dtor): New.
16787 (rl78_asm_constructor): New.
16788 (rl78_asm_destructor): New.
16790 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
16791 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
16792 (transcode_memory_rtx): Update.
16793 (rl78_expand_epilogue): Use A_REG instead of 0.
16795 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16797 * config/arm/arm-protos.h (struct tune_params): New field
16798 sched_autopref_queue_depth.
16799 * config/arm/arm.c (sched-int.h): Include header.
16800 (arm_first_cycle_multipass_dfa_lookahead_guard,)
16801 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
16802 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
16803 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
16804 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
16805 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
16806 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
16807 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
16808 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
16809 * config/arm/t-arm (arm.o): Update.
16810 * haifa-sched.c (update_insn_after_change): Update.
16811 (rank_for_schedule): Use auto-prefetcher model, if requested.
16812 (autopref_multipass_init): New static function.
16813 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
16814 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
16815 variable for debug dumps.
16816 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
16817 (autopref_multipass_dfa_lookahead_guard): New global function that
16818 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
16819 (init_h_i_d): Update.
16820 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
16821 * sched-int.h (enum autopref_multipass_data_status): New const enum.
16822 (autopref_multipass_data_): Structure for auto-prefetcher data.
16823 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
16824 (struct _haifa_insn_data:autopref_multipass_data): New field.
16825 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
16826 (autopref_multipass_dfa_lookahead_guard): Declare.
16828 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16830 * rtlanal.c (get_base_term): Handle SCRATCH.
16832 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16834 * config/aarch64/aarch64.c
16835 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16836 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16838 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16839 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16841 2015-01-17 Alan Modra <amodra@gmail.com>
16843 * cprop.c (do_local_cprop): Disallow replacement of fixed
16846 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16849 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16852 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16854 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16855 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16857 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16859 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16860 * config/arm/thumb1.md: ... Here.
16862 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16864 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16865 TImode for TARGET_32BIT.
16867 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16869 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16870 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16872 (rs6000_abi_word_mode): New function.
16874 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16876 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16877 instead of UNITS_PER_WORD to describe the size of stack slots.
16879 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16881 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16882 as rs6000_promote_function_mode. Move comment to there.
16883 (rs6000_promote_function_mode): New function.
16885 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16887 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16888 -mpowerpc64 is active.
16890 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16892 PR middle-end/64353
16893 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16896 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16898 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16899 introduced in revision 219724.
16901 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16902 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16905 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16906 destination is not a GP reg.
16907 (*movdi_aarch64): Likewise.
16909 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
16912 * config/rs6000/default64.h: Revert ISA change.
16914 2015-01-16 Richard Biener <rguenther@suse.de>
16916 PR middle-end/64614
16917 * tree-ssa-uninit.c: Include tree-cfg.h.
16918 (MAX_SWITCH_CASES): New define.
16919 (convert_control_dep_chain_into_preds): Handle switch statements.
16920 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16921 (normalize_one_pred_1): Do not split bit-manipulations.
16924 2015-01-16 Richard Biener <rguenther@suse.de>
16926 PR tree-optimization/64568
16927 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16928 complex load rewriting for TARGET_MEM_REFs.
16930 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
16932 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16934 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
16937 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16939 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16940 (aarch64_lra_p): Remove.
16942 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16945 * ipa-chkp.h (chkp_instrumentable_p): New.
16946 * ipa-chkp.c: Include tree-inline.h.
16947 (chkp_instrumentable_p): New.
16948 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16949 Fix processing of not instrumentable functions.
16950 (chkp_versioning): Use chkp_instrumentable_p. Warn about
16951 not instrumentable functions.
16952 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16953 chkp_instrumentable_p.
16954 * tree-inline.h (copy_forbidden): New.
16955 * tree-inline.c (copy_forbidden): Not static anymore.
16957 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16959 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16962 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16964 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16965 type OP_OUT to OP_INOUT.
16967 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16969 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16970 (high x) y) to y if x and y have the same base.
16972 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16974 * config/arm/cortex-a57.md: New.
16975 * config/aarch64/aarch64.md: Include it.
16976 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16977 * config/aarch64/aarch64-tune.md: Regenerate.
16979 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
16982 * ccmp.c (expand_ccmp_next): New function.
16983 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16984 and compare insn sequence.
16985 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16986 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16987 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16988 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
16989 (*ccmp_ior): Changed to ccmp_ior<mode>.
16990 (cmp<mode>): New pattern.
16991 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
16993 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
16995 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
16997 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
16998 _mm256_bsrli_epi128): New.
16999 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
17001 2015-01-15 Jiong Wang <jiong.wang@arm.com>
17003 * expmed.c (store_bit_field_using_insv): Improve warning message.
17004 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
17006 2015-01-15 Jiong Wang <jiong.wang@arm.com>
17008 PR rtl-optimization/64011
17009 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
17010 there is partial overflow.
17012 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17014 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
17016 (nds32_expand_epilogue_v3pop): Likewise.
17017 * config/nds32/nds32.md (sibcall): Define this for sibling call
17019 (sibcall_register): Likewise.
17020 (sibcall_immediate): Likewise.
17021 (sibcall_value): Likewise.
17022 (sibcall_value_register): Likewise.
17023 (sibcall_value_immediate): Likewise.
17024 (sibcall_epilogue): Likewise.
17025 (epilogue): Pass false to indicate this is not a sibcall epilogue.
17026 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
17027 (nds32_expand_epilogue_v3pop): Likewise.
17029 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17031 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
17032 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
17033 (return_internal): New.
17034 (return): Define this named pattern.
17035 (simple_return): Define this named pattern.
17036 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
17037 pattern instead of unspec_volatile_func_return.
17038 (nds32_expand_epilogue_v3pop): Likewise.
17039 (nds32_can_use_return_insn): New function.
17041 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17043 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
17044 * config/nds32/nds32.md (pop25return): New.
17045 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
17046 pop25return pattern.
17048 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17050 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
17051 -mforbid-fp-as-gp, and -mex9 options.
17053 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
17055 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
17056 remove -mgp-direct option.
17058 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17060 * doc/invoke.texi (--param early-inlining-insns): Update default value.
17061 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
17063 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17065 * ipa-inline.c (inline_small_functions): Work around hints
17068 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
17071 * doc/invoke.texi (Option Summary): Document new Nios II
17073 (Nios II Options): Likewise.
17074 * config/nios2/nios2.opt: Add -mgpopt= option support.
17075 Modify existing -mgpopt and -mno-gpopt options to be aliases.
17076 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
17077 * config/nios2/nios2.c (nios2_option_override): Adjust
17078 -mgpopt defaulting.
17079 (nios2_in_small_data_p): Return true for explicit small data
17080 sections even with -G0.
17081 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
17084 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17087 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
17089 (inline_call): Fix removal of aliases.
17091 2015-01-15 Jakub Jelinek <jakub@redhat.com>
17093 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
17094 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
17095 * opts.c (common_handle_option): Add -fsanitize=vptr.
17096 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
17097 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
17098 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
17099 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
17100 (ubsan_expand_vptr_ifn): New prototype.
17101 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
17102 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
17103 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
17104 expand_LOOP_VECTORIZED): Make argument nameless, remove
17106 (expand_UBSAN_VPTR): New function.
17107 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
17109 (UBSAN_VPTR): New internal function.
17110 * sanopt.c (tree_map_traits): Renamed to ...
17111 (sanopt_tree_map_traits): ... this.
17112 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
17113 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
17114 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
17115 (maybe_optimize_ubsan_vptr_ifn): New function.
17116 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
17117 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
17119 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
17120 internal calls like pure functions for aliasing, even when they
17121 have other side-effects that prevent making them ECF_PURE.
17122 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
17123 (ubsan_expand_vptr_ifn): New function.
17125 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
17127 PR rtl-optimization/64110
17128 * stmt.c (parse_output_constraint): Process '^' and '$'.
17129 (parse_input_constraint): Ditto.
17130 * lra-constraints.c (process_alt_operands): Process the new
17132 * ira-costs.c (record_reg_classes): Process the new constraint
17134 * genoutput.c (indep_constraints): Add '^' and '$'.
17135 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
17136 * doc/md.texi: Add description of the new constraints.
17138 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
17139 Bernd Schmidt <bernds@codesourcery.com>
17140 Cesar Philippidis <cesar@codesourcery.com>
17141 James Norris <jnorris@codesourcery.com>
17142 Tom de Vries <tom@codesourcery.com>
17143 Ilmir Usmanov <i.usmanov@samsung.com>
17144 Dmitry Bocharnikov <dmitry.b@samsung.com>
17145 Evgeny Gavrin <e.gavrin@samsung.com>
17146 Jakub Jelinek <jakub@redhat.com>
17148 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
17149 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17150 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17151 New function types.
17152 * builtins.c: Include "gomp-constants.h".
17153 (expand_builtin_acc_on_device): New function.
17154 (expand_builtin, is_inexpensive_builtin): Handle
17155 BUILT_IN_ACC_ON_DEVICE.
17156 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
17158 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
17160 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
17161 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
17162 i386/intelmic-offload.h.
17163 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
17164 to libgomp and its dependencies.
17165 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
17166 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17167 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17168 * config/ia64/hpux.h (LIB_SPEC): Likewise.
17169 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17170 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17171 * doc/generic.texi: Update for OpenACC changes.
17172 * doc/gimple.texi: Likewise.
17173 * doc/invoke.texi: Likewise.
17174 * doc/sourcebuild.texi: Likewise.
17175 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
17176 GF_OMP_FOR_KIND_OACC_LOOP.
17177 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
17178 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
17179 GF_OMP_TARGET_KIND_OACC_UPDATE,
17180 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17182 * gimple.c: Update comments for OpenACC changes.
17183 * gimple.def: Likewise.
17184 * gimple.h: Likewise.
17185 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
17186 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17187 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
17188 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17189 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
17191 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
17192 * gimplify.c: Include "gomp-constants.h".
17193 Update comments for OpenACC changes.
17194 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
17195 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
17196 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17197 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
17198 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17199 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17200 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
17201 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17202 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17204 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
17205 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
17206 OMP_CLAUSE_SET_MAP_KIND.
17207 (gimplify_oacc_cache): New function.
17208 (gimplify_omp_for): Handle OACC_LOOP.
17209 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
17211 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
17212 OACC_EXIT_DATA, OACC_UPDATE.
17213 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
17214 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
17215 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
17216 (gimplify_body): Consider flag_openacc next to flag_openmp.
17217 * lto-streamer-out.c: Include "gomp-constants.h".
17218 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
17219 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
17220 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
17221 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
17222 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
17223 (BUILT_IN_ACC_ON_DEVICE): New builtins.
17224 * omp-low.c: Include "gomp-constants.h".
17225 Update comments for OpenACC changes.
17226 (struct omp_context): Add reduction_map, gwv_below, gwv_this
17228 (extract_omp_for_data, use_pointer_for_field, install_var_field)
17229 (new_omp_context, delete_omp_context, scan_sharing_clauses)
17230 (create_omp_child_function, scan_omp_for, scan_omp_target)
17231 (check_omp_nesting_restrictions, lower_reduction_clauses)
17232 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
17233 Update for OpenACC changes.
17234 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
17235 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
17236 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
17237 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17238 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
17239 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
17241 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
17242 Handle GF_OMP_FOR_KIND_OACC_LOOP.
17243 (expand_omp_target, lower_omp_target): Handle
17244 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17245 GF_OMP_TARGET_KIND_OACC_UPDATE,
17246 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
17247 GF_OMP_TARGET_KIND_OACC_DATA.
17248 (pass_expand_omp::execute, execute_lower_omp)
17249 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
17251 (offload_symbol_decl): New variable.
17252 (oacc_get_reduction_array_id, oacc_max_threads)
17253 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
17254 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
17255 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
17256 (oacc_gimple_assign, oacc_initialize_reduction_data)
17257 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
17259 (is_targetreg_ctx): Remove function.
17260 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
17261 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
17262 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17263 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
17264 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
17265 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
17266 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
17267 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
17268 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
17269 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
17270 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
17271 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
17272 * tree-core.h: Update comments for OpenACC changes.
17273 (enum omp_clause_map_kind): Remove.
17274 (struct tree_omp_clause): Change type of map_kind member from enum
17275 omp_clause_map_kind to unsigned char.
17276 * tree-inline.c: Update comments for OpenACC changes.
17277 * tree-nested.c: Likewise. Include "gomp-constants.h".
17278 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
17279 (convert_tramp_reference_stmt, convert_gimple_call): Update for
17280 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
17281 OMP_CLAUSE_SET_MAP_KIND.
17282 * tree-pretty-print.c: Include "gomp-constants.h".
17283 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
17284 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
17285 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
17286 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
17287 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17288 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
17289 instead of OMP_CLAUSE_MAP_*.
17290 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
17291 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
17292 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17293 * tree-streamer-in.c: Include "gomp-constants.h".
17294 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
17295 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
17296 * tree-streamer-out.c: Include "gomp-constants.h".
17297 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
17299 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
17300 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
17301 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
17302 * tree.c (omp_clause_num_ops): Update accordingly.
17303 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
17305 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
17306 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
17307 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
17308 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
17309 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
17310 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
17311 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
17312 (OMP_CLAUSE_SET_MAP_KIND): New macro.
17313 * varpool.c (varpool_node::get_create): Consider flag_openacc next
17315 * config/i386/intelmic-offload.h: New file.
17316 * config/nvptx/offload.h: Likewise.
17318 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17320 * explow.h: Remove duplicate contents.
17321 * dojump.h: Likewise.
17323 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
17325 * arm.c (arm_xgene_tune): Add default initializer for instruction
17328 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
17332 * ipa.c (symbol_table::remove_unreachable_nodes):
17333 Do not put abstract origins into boundary.
17335 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
17337 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
17338 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
17340 2015-01-15 Steve Ellcey <sellcey@mips.com>
17342 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
17343 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
17344 builtins.def, and chkp-builtins.def.
17346 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
17348 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
17351 2015-01-15 Richard Biener <rguenther@suse.de>
17353 PR tree-optimization/61743
17354 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
17355 information on PHIs for some simple cases.
17357 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17359 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
17361 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
17362 * config/arm/arm-cores.def (xgene1): New entry.
17363 * config/arm/arm-tables.opt: Regenerate.
17364 * config/arm/arm-tune.md: Regenerate.
17365 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
17367 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
17369 * tree-if-conv.c: Include hash-map.h.
17370 (aggressive_if_conv): New variable.
17371 (fold_build_cond_expr): Add simplification of non-zero condition.
17372 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
17373 destination block is not always executed.
17374 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
17375 than two predecessors if AGGRESSIVE_IF_CONV is true.
17376 (if_convertible_stmt_p): Fix commentary.
17377 (all_preds_critical_p): New function.
17378 (has_pred_critical_p): New function.
17379 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
17380 BB can have more than two predecessors and all incoming edges can be
17382 (predicate_bbs): Skip predication for loop exit block, use build2_loc
17383 to compute predicate for true edge.
17384 (find_phi_replacement_condition): Delete this function.
17385 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
17386 Allow interchange PHI arguments if EXTENDED is false.
17387 Change check that block containing reduction statement candidate
17388 is predecessor of phi-block since phi may have more than two arguments.
17389 (phi_args_hash_traits): New helper structure.
17390 (struct phi_args_hash_traits): New type.
17391 (phi_args_hash_traits::hash): New function.
17392 (phi_args_hash_traits::equal_keys): New function.
17393 (gen_phi_arg_condition): New function.
17394 (predicate_scalar_phi): Add handling of phi nodes with more than two
17395 arguments, delete COND and TRUE_BB arguments, insert body of
17396 find_phi_replacement_condition to predicate ordinary phi nodes.
17397 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
17398 delete call of find_phi_replacement_condition and invoke
17399 predicate_scalar_phi with two arguments.
17400 (insert_gimplified_predicates): Add assert that non-predicated block
17401 don't have statements to insert.
17402 (ifcvt_split_critical_edges): New function.
17403 (ifcvt_split_def_stmt): Likewise.
17404 (ifcvt_walk_pattern_tree): Likewise.
17405 (stmt_is_root_of_bool_pattern): Likewise.
17406 (ifcvt_repair_bool_pattern): Likewise.
17407 (ifcvt_local_dce): Likewise.
17408 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
17409 is copy of inner or outer loop force_vectorize field, invoke
17410 ifcvt_split_critical_edges, ifcvt_local_dce and
17411 ifcvt_repair_bool_pattern for aggressive if-conversion.
17413 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
17415 * config/aarch64/aarch64.md: Include xgene1.md.
17416 * config/aarch64/xgene1.md: New file.
17418 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17420 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
17421 xgene1 (APM XGene-1) core definition.
17422 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
17423 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
17424 * doc/invoke.texi: Document -mcpu=xgene1.
17426 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17428 * dojump.h: New header file.
17429 * explow.h: Likewise.
17430 * expr.h: Remove includes.
17431 Move expmed.c prototypes to expmed.h.
17432 Move dojump.c prototypes to dojump.h.
17433 Move alias.c prototypes to alias.h.
17434 Move explow.c prototypes to explow.h.
17435 Move calls.c prototypes to calls.h.
17436 Move emit-rtl.c prototypes to emit-rtl.h.
17437 Move varasm.c prototypes to varasm.h.
17438 Move stmt.c prototypes to stmt.h.
17439 (saved_pending_stack_adjust): Move to dojump.h.
17440 (adjust_address): Move to explow.h.
17441 (adjust_address_nv): Move to emit-rtl.h.
17442 (adjust_bitfield_address): Likewise.
17443 (adjust_bitfield_address_size): Likewise.
17444 (adjust_bitfield_address_nv): Likewise.
17445 (adjust_automodify_address_nv): Likewise.
17446 * explow.c (expr_size): Move to expr.c.
17447 (int_expr_size): Likewise.
17448 (tree_expr_size): Likewise.
17449 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17450 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17451 * genemit.c (main): Generate includes statistics.h, real.h,
17452 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
17454 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
17455 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
17456 explow.h, emit-rtl.h, stmt.h.
17457 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
17458 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
17459 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
17460 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
17461 emit-rtl.h, varasm.h, stmt.h.
17462 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
17463 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
17464 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
17465 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
17466 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17467 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
17468 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
17469 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
17470 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
17471 tm.h tree.h varasm.h vec.h wide-int.h.
17472 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17473 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17474 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
17475 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
17476 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
17477 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
17478 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
17479 * loop-iv.c: Likewise.
17480 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
17481 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
17482 statistics.h stmt.h tree.h varasm.h wide-int.h.
17483 * lra-constraints.c: Likewise.
17484 * lra-eliminations.c: Likewise.
17485 * lra-lives.c: Likewise.
17486 * lra-remat.c: Likewise.
17487 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17488 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
17489 statistics.h stmt.h tree.h varasm.h wide-int.h.
17490 * hw-doloop.c: Likewise.
17491 * ira-color.c: Likewise.
17492 * ira-emit.c: Likewise.
17493 * loop-doloop.c: Likewise.
17494 * loop-invariant.c: Likewise.
17495 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17496 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
17497 statistics.h stmt.h tree.h varasm.h wide-int.h.
17498 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
17499 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
17500 statistics.h stmt.h tree.h varasm.h wide-int.h.
17501 * combine-stack-adj.c: Likewise.
17504 * ifcvt.c: Likewise.
17505 * ira-costs.c: Likewise.
17506 * jump.c: Likewise.
17507 * lra-coalesce.c: Likewise.
17508 * lra-spills.c: Likewise.
17509 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17510 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
17511 stmt.h varasm.h wide-int.h.
17512 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17513 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17515 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
17516 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
17517 statistics.h stmt.h varasm.h wide-int.h.
17518 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
17519 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
17520 varasm.h wide-int.h.
17521 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
17522 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17523 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
17524 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
17525 statistics.h stmt.h.
17526 * config/tilepro/tilepro.c: Likewise.
17527 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
17528 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
17529 * config/pdp11/pdp11.c: Likewise.
17530 * config/xtensa/xtensa.c: Likewise.
17531 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
17532 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17534 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17535 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17536 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
17537 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17538 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17539 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
17540 * rtl-chkp.c: Likewise.
17541 * tree-chkp-opt.c: Likewise.
17542 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
17543 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17544 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
17545 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17546 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17547 statistics.h stmt.h.
17548 * tree-vect-data-refs.c: Likewise.
17549 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
17550 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17551 rtl.h statistics.h stmt.h varasm.h.
17552 * internal-fn.c: Likewise.
17553 * ipa-icf-gimple.c: Likewise.
17554 * lto-section-out.c: Likewise.
17555 * tree-data-ref.c: Likewise.
17556 * tree-nested.c: Likewise.
17557 * tree-outof-ssa.c: Likewise.
17558 * tree-predcom.c: Likewise.
17559 * tree-pretty-print.c: Likewise.
17560 * tree-scalar-evolution.c: Likewise.
17561 * tree-ssa-strlen.c: Likewise.
17562 * tree-vect-loop.c: Likewise.
17563 * tree-vect-patterns.c: Likewise.
17564 * tree-vect-slp.c: Likewise.
17565 * tree-vect-stmts.c: Likewise.
17566 * tsan.c: Likewise.
17567 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17568 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
17570 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
17571 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17572 statistics.h stmt.h varasm.h.
17573 * loop-unroll.c: Likewise.
17574 * ubsan.c: Likewise.
17575 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
17576 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
17578 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17579 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
17580 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
17581 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17582 statistics.h stmt.h.
17583 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
17584 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17585 statistics.h stmt.h varasm.h.
17586 * gimple-match-head.c: Likewise.
17587 * lto-cgraph.c: Likewise.
17588 * lto-section-in.c: Likewise.
17589 * lto-streamer-in.c: Likewise.
17590 * lto-streamer-out.c: Likewise.
17591 * tree-affine.c: Likewise.
17592 * tree-cfg.c: Likewise.
17593 * tree-cfgcleanup.c: Likewise.
17594 * tree-if-conv.c: Likewise.
17595 * tree-into-ssa.c: Likewise.
17596 * tree-ssa-alias.c: Likewise.
17597 * tree-ssa-copyrename.c: Likewise.
17598 * tree-ssa-dse.c: Likewise.
17599 * tree-ssa-forwprop.c: Likewise.
17600 * tree-ssa-live.c: Likewise.
17601 * tree-ssa-math-opts.c: Likewise.
17602 * tree-ssa-pre.c: Likewise.
17603 * tree-ssa-sccvn.c: Likewise.
17604 * tree-tailcall.c: Likewise.
17605 * tree-vect-generic.c: Likewise.
17606 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17607 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
17608 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17609 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
17610 * varasm.c: Likewise.
17611 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17612 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
17614 * init-regs.c: Likewise.
17616 * omp-low.c: Likewise.
17617 * stack-ptr-mod.c: Likewise.
17618 * tree-ssa-reassoc.c: Likewise.
17619 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17620 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
17622 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17623 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
17624 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17625 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
17626 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17627 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
17628 * tree-ssa-phiopt.c: Likewise.
17629 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17630 fixed-value.h hashtab.h real.h statistics.h stmt.h.
17631 * config/fr30/fr30.c: Likewise.
17632 * config/frv/frv.c: Likewise.
17633 * expr.c: Likewise.
17634 * final.c: Likewise.
17635 * optabs.c: Likewise.
17636 * passes.c: Likewise.
17637 * simplify-rtx.c: Likewise.
17638 * stmt.c: Likewise.
17639 * toplev.c: Likewise.
17640 * var-tracking.c: Likewise.
17641 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17642 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17643 * lower-subreg.c: Likewise.
17644 * postreload-gcse.c: Likewise.
17646 * reginfo.c: Likewise.
17647 * store-motion.c: Likewise.
17648 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17649 fixed-value.h hashtab.h real.h stmt.h varasm.h.
17650 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17651 fixed-value.h hashtab.h statistics.h stmt.h.
17652 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17653 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17654 * except.c: Likewise.
17655 * explow.c: Likewise.
17656 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17657 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
17659 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17660 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
17661 * tree-ssa-structalias.c: Likewise.
17662 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17663 fixed-value.h insn-config.h real.h statistics.h.
17664 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17665 fixed-value.h insn-config.h real.h statistics.h stmt.h.
17666 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17667 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17668 * cfgbuild.c: Likewise.
17669 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17670 fixed-value.h real.h rtl.h statistics.h stmt.h.
17671 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17672 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17673 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17674 fixed-value.h real.h statistics.h stmt.h.
17675 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17676 fixed-value.h real.h statistics.h stmt.h varasm.h.
17677 * cprop.c: Likewise.
17678 * modulo-sched.c: Likewise.
17679 * postreload.c: Likewise.
17680 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17681 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
17682 statistics.h stmt.h varasm.h.
17683 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
17684 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17685 rtl.h statistics.h stmt.h varasm.h.
17686 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
17687 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
17689 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17690 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
17692 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
17693 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
17695 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
17696 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17697 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17698 function.h real.h statistics.h stmt.h varasm.h.
17699 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17700 insn-config.h real.h statistics.h stmt.h.
17701 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17702 statistics.h stmt.h.
17703 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
17704 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
17705 statistics.h stmt.h varasm.h.
17706 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
17707 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
17708 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17709 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
17710 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
17711 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17712 statistics.h stmt.h varasm.h.
17713 * ipa-polymorphic-call.c: Likewise.
17714 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
17715 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17716 statistics.h stmt.h.
17717 * config/c6x/c6x.c: Likewise.
17718 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
17719 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17720 statistics.h stmt.h varasm.h.
17721 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
17722 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
17724 * ipa-split.c: Likewise.
17725 * tree-eh.c: Likewise.
17726 * tree-ssa-dce.c: Likewise.
17727 * tree-ssa-loop-niter.c: Likewise.
17728 * tree-vrp.c: Likewise.
17729 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
17730 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
17732 * config/nds32/nds32-fp-as-gp.c: Likewise.
17733 * config/nds32/nds32-intrinsic.c: Likewise.
17734 * config/nds32/nds32-isr.c: Likewise.
17735 * config/nds32/nds32-md-auxiliary.c: Likewise.
17736 * config/nds32/nds32-memory-manipulation.c: Likewise.
17737 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17738 * config/nds32/nds32-predicates.c: Likewise.
17739 * config/nds32/nds32.c: Likewise.
17740 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
17741 fixed-value.h hashtab.h real.h statistics.h.
17742 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
17743 fixed-value.h hashtab.h real.h statistics.h stmt.h.
17744 * config/arm/arm.c: Likewise.
17745 * config/avr/avr.c: Likewise.
17746 * config/bfin/bfin.c: Likewise.
17747 * config/h8300/h8300.c: Likewise.
17748 * config/i386/i386.c: Likewise.
17749 * config/ia64/ia64.c: Likewise.
17750 * config/iq2000/iq2000.c: Likewise.
17751 * config/m32c/m32c.c: Likewise.
17752 * config/m32r/m32r.c: Likewise.
17753 * config/m68k/m68k.c: Likewise.
17754 * config/mcore/mcore.c: Likewise.
17755 * config/mep/mep.c: Likewise.
17756 * config/mips/mips.c: Likewise.
17757 * config/mn10300/mn10300.c: Likewise.
17758 * config/moxie/moxie.c: Likewise.
17759 * config/pa/pa.c: Likewise.
17760 * config/rl78/rl78.c: Likewise.
17761 * config/rx/rx.c: Likewise.
17762 * config/s390/s390.c: Likewise.
17763 * config/sh/sh.c: Likewise.
17764 * config/sparc/sparc.c: Likewise.
17765 * config/spu/spu.c: Likewise.
17766 * config/stormy16/stormy16.c: Likewise.
17767 * config/v850/v850.c: Likewise.
17768 * config/vax/vax.c: Likewise.
17769 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
17770 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17771 * config/msp430/msp430.c: Likewise.
17772 * predict.c: Likewise.
17773 * value-prof.c: Likewise.
17774 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
17775 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
17776 * config/microblaze/microblaze.c: Likewise.
17777 * config/nios2/nios2.c: Likewise.
17778 * config/rs6000/rs6000.c: Likewise.
17779 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17780 insn-config.h real.h rtl.h statistics.h stmt.h.
17781 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17782 insn-config.h real.h statistics.h stmt.h.
17783 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
17784 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17785 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
17786 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17787 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
17788 fixed-value.h real.h statistics.h stmt.h.
17789 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
17790 fixed-value.h statistics.h stmt.h.
17791 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
17794 2015-01-15 Jakub Jelinek <jakub@redhat.com>
17796 * gengtype.c (create_user_defined_type): Workaround
17797 -Wmaybe-uninitialized false positives.
17798 * cse.c (fold_rtx): Likewise.
17799 * loop-invariant.c (gain_for_invariant): Likewise.
17801 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
17803 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
17804 set the memory attributes in all cases but clear MEM_EXPR if need be.
17806 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
17808 PR tree-optimization/64434
17809 * cfgexpand.c (reorder_operands): New function.
17810 (expand_gimple_basic_block): Insert call of reorder_operands if
17813 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
17815 * config/mips/micromips.md (*swp): Remove explicit parallel.
17816 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
17817 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
17818 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
17819 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
17820 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
17821 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
17822 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
17823 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
17824 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
17825 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
17826 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
17827 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
17828 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
17829 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
17830 (mips_wrdsp): Likewise.
17831 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17833 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17834 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17835 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17836 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17837 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17838 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17839 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17840 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17841 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17843 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17845 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17846 (mips_print_operand): Support 'y' to print exact log2 in decimal
17848 * config/mips/mips.h (ISA_HAS_LSA): New define.
17849 (ISA_HAS_DLSA): Likewise.
17850 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17851 * config/mips/predicates.md (const_immlsa_operand): New predicate.
17853 2015-01-15 Martin Liska <mliska@suse.cz>
17856 * optc-save-gen.awk: Add support for array types.
17858 2015-01-15 Richard Biener <rguenther@suse.de>
17860 PR middle-end/64365
17861 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17862 for MEM_REF access functions with the same base can never partially
17865 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
17867 * common.opt: New option -fstack-protector-explicit.
17868 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17869 (stack_protect_decl_phase): Handle stack_protect attribute for
17870 explicit stack protection requests.
17871 (expand_used_vars): Similarly.
17872 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17873 * doc/extend.texi: Add documentation for "stack_protect" attribute.
17874 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17876 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
17879 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17881 (sh_extending_set_of_reg): New struct.
17882 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17883 sh_remove_reg_dead_or_unused_notes): New Declarations.
17884 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17885 sh_find_extending_set_of_reg, sh_split_tst_subregs,
17886 sh_extending_set_of_reg::use_as_extended_reg): New functions.
17887 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17888 convert to insn_and_split and use new function sh_split_tst_subregs.
17890 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
17892 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17894 (Optimization Options): Move -fuse-ld documentation to...
17895 (Link Options): ...here.
17897 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17899 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17901 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17902 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17903 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17904 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17905 instead of ZR for the memory operand of LL/SC.
17906 (compare_and_swap_12, sync_add<mode>): Likewise.
17907 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17908 (sync_new_<optab>_12, sync_nand_12): Likewise.
17909 (sync_old_nand_12, sync_new_nand_12): Likewise.
17910 (sync_sub<mode>, sync_old_add<mode>): Likewise.
17911 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17912 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17913 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17914 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17915 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17916 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17917 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17918 * doc/md.texi (ZC): Update description.
17920 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17922 * builtins.c (expand_builtin_atomic_exchange): Remove error when
17923 memory model is CONSUME.
17924 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17925 expand_builtin_atomic_store): Change invalid memory model errors to
17927 (expand_builtin_atomic_clear): Change invalid model errors to warnings
17928 and issue warning for CONSUME.
17930 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
17932 * lto-cgraph: Update function comments for
17933 lto_symtab_encoder_encode_*.
17935 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17937 * Makefile.in (site.exp): Do not set ENABLE_LTO.
17939 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17941 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17942 * lto-cgraph.c (select_what_to_stream): Remove argument, use
17943 lto_stream_offload_p instead.
17944 * lto-streamer.h (select_what_to_stream): Remove argument.
17945 * passes.c (ipa_write_summaries): Likewise.
17946 * tree-pass.h (ipa_write_summaries): Likewise.
17948 2015-01-14 Richard Biener <rguenther@suse.de>
17950 PR tree-optimization/59354
17951 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17952 groups larger than the slp group size as having gaps.
17954 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17956 PR middle-end/59448
17957 * builtins.c (get_memmodel): Promote consume to acquire always.
17959 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17962 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17965 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17968 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17970 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17971 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17972 AVX512VBMI, as it implies AVX512BW.
17974 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17977 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17978 (vec_unpacks_hi_v16sf): Ditto.
17980 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17982 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17985 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17987 * doc/invoke.texi (mapcs): Mention deprecation.
17988 (mapcs-frame): Likewise.
17990 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17993 * config/arm/arm.c (callee_saved_reg_p): Define.
17994 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
17995 register is callee saved instead of !call_used_regs[reg].
17996 (thumb1_compute_save_reg_mask): Likewise.
17998 2015-01-14 Hale Wang <hale.wang@arm.com>
18000 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
18003 2015-01-14 Richard Biener <rguenther@suse.de>
18006 * tree-inline.c (insert_debug_decl_map): Check destination
18007 function MAY_HAVE_DEBUG_STMTS.
18008 (insert_init_debug_bind): Likewise.
18009 (insert_init_stmt): Remove redundant check.
18010 (remap_gimple_stmt): Drop debug stmts if the destination
18011 function has var-tracking assignments disabled.
18013 2015-01-14 Martin Liska <mliska@suse.cz>
18015 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
18016 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
18018 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18021 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
18022 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
18024 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
18026 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
18027 level from an ARCH; do not inject the default.
18028 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
18029 MIPS_ISA_LEVEL_SPEC.
18030 (MIPS_ISA_NAN2008_SPEC): Update comment.
18031 (BASE_DRIVER_SELF_SPECS): Likewise.
18032 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
18033 MIPS_DEFAULT_ISA_LEVEL_SPEC.
18034 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
18035 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
18036 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
18038 2015-01-14 Richard Biener <rguenther@suse.de>
18040 PR tree-optimization/64493
18041 PR tree-optimization/64495
18042 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
18043 assign the proper vectorized PHI to the inner loop exit PHIs.
18045 2015-01-14 Joey Ye <joey.ye@arm.com>
18047 * config/arm/arm.c (arm_compute_save_reg_mask):
18048 Do not save lr in case of tail call.
18049 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
18051 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
18053 * tree-vrp.c (check_array_ref): Emit more warnings
18054 for warn_array_bounds >= 2.
18055 * common.opt: New option -Warray-bounds=.
18056 * doc/invoke.texi: Document -Warray-bounds=.
18058 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
18060 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
18061 (mforbid-fp-as-gp): Remove.
18063 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
18064 (nds32_symbol_load_store_p): Remove.
18065 (nds32_fp_as_gp_check_available): Clean up implementation.
18066 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
18068 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
18069 fp-as-gp and ex9 cases.
18071 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
18073 * tree-profile.c (init_ic_make_global_vars): Drop workaround
18074 for bintuils bug 14342.
18075 (init_ic_make_global_vars): Likewise.
18076 (gimple_init_edge_profiler): Likewise.
18077 (gimple_gen_ic_func_profiler): Likewise.
18079 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18081 * ipa-inline.c (inline_small_functions): Swap the operands in
18084 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
18087 * ipa-inline-analysis.c (node_growth_cache): Remove.
18088 (initialize_growth_caches): Do not initialize it.
18089 (free_growth_caches): Do not free it.
18090 (do_estimate_growth): Rename to ...
18091 (estimate_growth): ... this one; drop growth cache code.
18092 (growth_likely_positive): Always go the heuristics way.
18093 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
18094 (reset_edge_caches): Do not reset node growth.
18095 (heap_edge_removal_hook): Do not maintain cache.
18096 (inline_small_functions): Likewise; strenghten sanity check.
18097 (ipa_inline): Do not maintain caches.
18098 * ipa-inline.h (node_growth_cache): Remove.
18099 (do_estimate_growth): Remove to ...
18100 (estimate_growth): this one; remove inline version.
18101 (reset_node_growth_cache): Remove.
18103 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
18106 * ipa-inline.c (inline_small_functions): Update callee keys after
18107 resolving speculation
18108 (inline_small_functions): Always check monotonicity of the queue.
18110 2015-01-13 Marek Polacek <polacek@redhat.com>
18112 PR middle-end/64391
18113 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
18115 2015-01-13 Jakub Jelinek <jakub@redhat.com>
18117 PR rtl-optimization/64286
18118 * ree.c (combine_reaching_defs): Move part of comment earlier,
18119 remove !SCALAR_INT_MODE_P check.
18120 (add_removable_extension): Don't add vector mode
18121 extensions if all uses of the source register aren't the same
18124 2015-01-13 Renlin Li <renlin.li@arm.com>
18126 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
18127 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
18129 2015-01-13 Martin Liska <mliska@suse.cz>
18131 * ipa-icf.c (sem_function::equals_private): Call new functions
18132 cl_target_option_print_diff and cl_optimization_print_diff.
18133 * optc-save-gen.awk (cl_target_option_print_diff): New function.
18134 (cl_optimization_print_diff): Likewise.
18135 * opth-gen.awk: Likewise.
18137 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
18139 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
18140 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
18141 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
18142 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
18143 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
18144 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
18146 2015-01-13 Andrew Pinski <apinski@cavium.com>
18148 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
18149 instead of src mode.
18151 2015-01-13 Richard Biener <rguenther@suse.de>
18154 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
18157 2015-01-13 Andrew Pinski <apinski@cavium.com>
18159 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
18161 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
18163 2015-01-13 Jakub Jelinek <jakub@redhat.com>
18165 PR middle-end/63974
18166 * cfgexpand.c (expand_computed_goto): Don't call
18167 convert_memory_address here.
18169 2015-01-13 Richard Biener <rguenther@suse.de>
18171 PR tree-optimization/64406
18172 * tree-loop-distibution.c (pass_loop_distribution::execute):
18173 Reset the SCEV hashtable if we distributed anything.
18175 2015-01-13 Richard Biener <rguenther@suse.de>
18177 PR tree-optimization/64404
18178 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
18179 SLP types for CSEd loads.
18181 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18183 PR tree-optimization/64436
18184 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
18185 merge of two symbolic numbers for a bitwise OR to ...
18186 (perform_symbolic_merge): This. Also fix computation of the range and
18187 end of the symbolic number corresponding to the result of a bitwise OR.
18189 2015-01-13 Richard Biener <rguenther@suse.de>
18191 PR tree-optimization/64568
18192 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
18193 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
18195 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18197 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
18198 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
18200 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18202 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
18203 target-specific symbol_ref flag.
18204 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
18205 resides in rodata section.
18206 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
18207 (nds32_encode_section_info): New function.
18209 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18211 * config/nds32/nds32.md (call): Use pseudo instruction bal which
18212 clobbers TA_REGNUM if large code model is specified.
18213 (call_register): Likewise.
18214 (call_immediate): Likewise.
18215 (call_value): Likewise.
18216 (call_value_register): Likewise.
18217 (call_value_immediate): Likewise.
18219 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18221 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
18222 (TARGET_CMODEL_MEDIUM): New macro.
18223 (TARGET_CMODEL_LARGE): New macro.
18224 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
18225 code model setting in assembly code.
18227 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18229 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18230 Remove MASK_GP_DIRECT flag.
18231 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
18232 one of the multilib default options.
18233 * config/nds32/nds32.opt (mgp-direct): Remove.
18234 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
18235 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
18237 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
18239 * config/nds32/nds32.opt (mcmodel): Add new option.
18240 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
18241 to describe code model.
18243 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
18246 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
18248 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
18250 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
18251 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
18252 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
18253 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
18254 __builtin_sh_set_fpscr.
18256 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
18258 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
18259 after a funtion name just to indicate it is a function.
18260 ([-fsanitize-undefined-trap-on-error]): Likewise.
18261 ([-fdbg-cnt=]): Likewise.
18262 ([-mmemcpy]): Likewise.
18263 ([-mflush-func]): Likewise.
18264 ([-msynci]): Likewise.
18266 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
18268 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
18271 2015-01-12 Jakub Jelinek <jakub@redhat.com>
18273 PR tree-optimization/64563
18274 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
18275 instead of != VR_VARYING.
18278 * config/i386/i386.c (ix86_expand_prologue): Add
18279 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
18281 PR tree-optimization/64454
18282 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
18283 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
18284 for signed or [0, op1 - 1] for unsigned modulo.
18285 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18286 even if op1 does not satisfy integer_pow2p.
18289 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
18291 2015-01-12 Jeff Law <law@redhat.com>
18294 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
18295 (trunchiqi2, truncsihi2): Similarly.
18297 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
18298 rather than calling F.
18300 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
18302 * tsan.c (instrument_expr): Use force_gimple_operand.
18303 Use may_be_nonaddressable_p instead of is_gimple_addressable.
18305 2015-01-12 Richard Biener <rguenther@suse.de>
18307 PR tree-optimization/64530
18308 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
18311 2015-01-12 Richard Biener <rguenther@suse.de>
18313 PR middle-end/64357
18314 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
18317 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18319 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
18320 Cortex-A17 tuning parameters.
18321 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
18323 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18325 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
18326 * config/arm/arm.c (arm_macro_fusion_p): New function.
18327 (arm_macro_fusion_pair_p): Likewise.
18328 (TARGET_SCHED_MACRO_FUSION_P): Define.
18329 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
18330 (ARM_FUSE_NOTHING): Likewise.
18331 (ARM_FUSE_MOVW_MOVT): Likewise.
18332 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
18333 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
18334 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
18335 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
18336 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
18337 arm_cortex_a5_tune): Specify fuseable_ops value.
18339 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
18342 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
18343 test for PIE with copy reloc.
18344 * configure: Regenerated.
18346 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18348 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
18350 (arm_tls_descseq_addr): Likewise.
18351 (arm_gen_movmemqi): Likewise.
18352 (arm_expand_epilogue_apcs_frame): Likewise.
18353 (arm_expand_epilogue): Likewise.
18354 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
18357 2015-01-12 Martin Liska <mliska@suse.cz>
18360 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
18361 volatility for correct operands.
18363 2015-01-12 Martin Liska <mliska@suse.cz>
18365 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
18366 indication that a function is not leaf.
18367 (sem_function::compare_polymorphic_p): Likewise.
18369 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18371 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
18372 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
18373 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
18374 fold-const.h, tree-check.h.
18376 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
18380 * ipa-inline.c (compute_uninlined_call_time,
18381 compute_inlined_call_time): Use counts for extra precision when
18383 (big_speedup_p): Fix formating.
18384 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
18385 (relative_time_benefit): Remove.
18386 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
18387 merge guessed and read profile paths.
18388 (inline_small_functions): Count only !optimize_size functions into
18389 initial size; be more lax about sanity check when profile is used;
18390 be sure to update inlined function profile when profile is read.
18392 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
18395 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
18396 cost when edge becomes direct.
18397 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
18398 is resolved or when introducing new speculation.
18400 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
18404 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
18405 '||' to fix typo issue.
18407 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
18408 accept and return NULL.
18410 2015-01-12 Martin Liska <mliska@suse.cz>
18412 * cgraph.c (cgraph_edge::remove_callee): Move function to header
18413 file for being inlined.
18414 (cgraph_set_edge_callee): Delete.
18415 (cgraph_edge::redirect_callee): Move function to header file
18417 (cgraph_edge::make_direct): Use new function.
18418 (cgraph_edge::dump_edge_flags): New function created from
18419 static dump_edge_flags function.
18420 (cgraph_node::dump): Use new function.
18421 (cgraph_edge::verify_count_and_frequency): New function created
18422 from verify_edge_count_and_frequency.
18423 (cgraph_edge::verify_corresponds_to_fndecl): New function created
18424 from verify_edge_corresponds_to_fndecl.
18425 (verify_edge_corresponds_to_fndecl): Delete.
18426 (cgraph_node::verify_node): Use new function.
18427 * cgraph.h (cgraph_edge::set_callee): New function.
18428 (cgraph_edge::dump_edge_flags): Likewise.
18429 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
18431 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
18433 * ipa-utils.c (estimate_function_body_sizes): Do not
18434 free node params when called late with early=true.
18436 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
18438 * doc/md.texi (Instruction Patterns): Rewrite text for
18440 (Example): Likewise.
18442 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
18444 * doc/invoke.texi (Option Summary): Break long lines.
18445 [(-fdiagnostics-color)]: Put long literal in @smallexample
18447 [(-fsanitize-recover)]: Likewise.
18448 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
18449 [(-ffast-math)]: Likewise.
18450 [(--param max-inline-insns-recursive)]: Likewise.
18451 [(--param max-inline-recursive-depth)]: Likewise.
18452 [(-mno-text-section-literals)]: Likewise.
18454 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
18456 * doc/install.texi: Update for libgomp being renamed from "GNU
18457 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
18459 * doc/sourcebuild.texi: Likewise.
18461 2015-01-10 Anthony Green <green@moxielogic.com>
18463 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
18464 mul.x availability for moxiebox configuration.
18466 2015-01-09 Anthony Green <green@moxielogic.com>
18468 * config/moxie/moxie.md: Tabify assembly output.
18470 2015-01-09 Anthony Green <green@moxielogic.com>
18472 * config/moxie/moxie.md (CC_REG): Correct register definition.
18474 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
18476 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
18477 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
18480 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
18482 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
18484 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
18485 Jakub Jelinek <jakub@redhat.com>
18487 PR middle-end/64412
18488 * lto-streamer.h (lto_stream_offload_p): New declaration.
18489 * lto-streamer.c (lto_stream_offload_p): New variable.
18490 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
18491 at the same time as section_name_prefix.
18492 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
18493 if lto_stream_offload_p.
18494 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
18495 stream TREE_TARGET_OPTION if lto_stream_offload_p.
18496 (write_ts_function_decl_tree_pointers): Don't
18497 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
18498 * tree-streamer-in.c (unpack_value_fields): Don't stream
18499 TREE_TARGET_OPTION in if ACCEL_COMPILER.
18500 (lto_input_ts_function_decl_tree_pointers): Don't stream
18501 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
18502 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
18503 instead of section_name_prefix string comparisons.
18505 2015-01-09 Jakub Jelinek <jakub@redhat.com>
18507 PR rtl-optimization/64536
18508 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
18511 2015-01-09 Michael Collison <michael.collison@linaro.org>
18513 PR tree-optimization/64322
18514 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
18515 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
18517 2015-01-09 Tom de Vries <tom@codesourcery.com>
18519 PR rtl-optimization/64539
18520 * regcprop.c (kill_clobbered_values): Factor out of ...
18521 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
18522 instead of note_stores with kill_clobbered_value.
18524 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
18526 * ginclude/unwind-arm-common.h: Revert previous commit.
18528 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
18530 * config.gcc (arm*-*-freebsd*): New configuration.
18531 * config/arm/freebsd.h: New file.
18532 * config.host: Add extra components for arm*-*-freebsd*.
18533 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
18534 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
18536 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18538 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
18540 * config/rs6000/t-rtems: Add e6500 multilibs.
18542 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18544 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
18547 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18549 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
18550 MULTILIB_EXCEPTIONS.
18552 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18554 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
18555 MULTILIB_EXCEPTIONS.
18557 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18559 * config/arm/t-rtems-eabi: Rename to...
18560 * config/arm/t-rtems: ...this.
18561 * config/arm/rtems-eabi.h: Rename to...
18562 * config/arm/rtems.h: ...this.
18563 * config.gcc (arm*-*-rtems*): Reflect changes above.
18565 2015-01-09 Richard Biener <rguenther@suse.de>
18567 PR tree-optimization/64410
18568 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
18570 (execute_update_addresses_taken): Deal with that.
18571 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
18572 loads/stores for complex variables.
18574 2015-01-09 Martin Liska <mliska@suse.cz>
18576 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
18578 (func_checker::compare_memory_operand): New function.
18579 (func_checker::compare_operand): Split case to newly
18581 (func_checker::compare_cst_or_decl): New function.
18582 (func_checker::compare_gimple_call): Identify
18584 (func_checker::compare_gimple_assign): Likewise.
18585 * ipa-icf-gimple.h: New function.
18587 2015-01-09 Martin Liska <mliska@suse.cz>
18590 * sreal.c (sreal::dump): Change unsigned format to signed for
18592 (sreal::to_double): Replace exp2 with scalbln.
18594 2015-01-09 Martin Liska <mliska@suse.cz>
18596 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
18597 * ipa-icf.c (sem_function::equals_private): Add support for target and
18598 (sem_item_optimizer::merge_classes): Remove redundant function
18599 optimization flags comparison.
18600 * tree.h (target_opts_for_fn): New function.
18602 2015-01-09 Tom de Vries <tom@codesourcery.com>
18604 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
18606 2015-01-09 Kito Cheng <kito@0xlab.org>
18608 PR rtl-optimization/64348
18609 * lra-constraints.c (split_reg): Fix caller-save store/restore
18610 instruction generation.
18612 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
18614 PR gcov-profile/61790
18615 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
18616 long long. Fallback to int64_t if host doesn't have long long and
18617 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
18619 2015-01-08 Jakub Jelinek <jakub@redhat.com>
18621 PR tree-optimization/63989
18622 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
18623 from 1000 to 10000.
18624 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
18625 (get_stridx): If we don't have a record for certain SSA_NAME,
18626 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
18627 constant offset, call get_stridx_plus_constant.
18628 (get_stridx_plus_constant): New function.
18629 (zero_length_string): Don't use get_stridx here.
18632 PR middle-end/64388
18633 * dse.c (struct insn_info): Mention frame_read set also
18634 before reload for tail calls on some targets.
18635 (scan_insn): Revert 2014-12-22 change. Set frame_read
18636 also before reload for tail calls if
18637 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
18638 instead of add_non_frame_wild_read for non-const/memset
18639 tail calls after reload.
18641 2015-01-08 Jason Merrill <jason@redhat.com>
18643 * ubsan.c (do_ubsan_in_current_function): New.
18644 (pass_ubsan::gate): Use it.
18645 * ubsan.h: Declare it.
18646 * convert.c (convert_to_integer): Use it.
18648 2015-01-08 Jakub Jelinek <jakub@redhat.com>
18651 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
18652 compare_code when it is unconditionally overwritten afterwards.
18653 Use ix86_reverse_condition instead of reverse_condition. Don't
18654 change code if *reverse_condition* returned UNKNOWN and don't
18655 swap ct/cf and negate diff in that case.
18657 2015-01-08 Mike Stump <mikestump@comcast.net>
18659 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
18660 (pass_tsan_O0::gate): Likewise.
18661 * extend.texi (Function Attributes): Add no_sanitize_thread
18664 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
18666 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
18667 for registering builtins.
18668 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
18669 add -fopenmp to the argv_obstack used when invoking
18670 compile_for_target.
18672 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
18673 add "-m32" or "-m64" to argv_obstack.
18674 (generate_host_descr_file): Likewise, when invoking host_compiler.
18675 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
18678 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
18680 * config/sh/sh-mem.cc: Use constant as second operand when emitting
18683 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
18686 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
18687 constant load if constant operand fits into I08.
18689 2015-01-08 Jakub Jelinek <jakub@redhat.com>
18692 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
18693 and TREE_THIS_VOLATILE for MEM_REFs.
18694 (build5_stat): Fix up initialization of TREE_READONLY and
18695 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
18697 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
18700 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
18701 of r for the second alternative of the destination operand.
18703 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
18706 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
18708 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
18710 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
18712 ([-fivar-visibility], [-fvisibility]): Likewise.
18714 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
18716 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
18717 the file where @code, @command, etc is more appropriate.
18719 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
18721 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
18722 of -mrecip= documentation.
18724 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18727 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
18728 correct reload handler if -m32 -mpowerpc64 is used.
18730 2015-01-06 Tom de Vries <tom@codesourcery.com>
18732 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
18734 2015-01-08 Christian Bruel <christian.bruel@st.com>
18737 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
18739 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
18741 PR tree-optimization/63259
18742 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
18743 if optab exists for 16bit byteswap.
18745 2015-01-06 Jakub Jelinek <jakub@redhat.com>
18747 * opts.c (common_handle_option): Add support for
18748 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
18749 * doc/invoke.texi: Document -fno-sanitize=all,
18750 -f{,no-}sanitize-recover=all. Document that
18751 -fsanitize=float-cast-overflow is not enabled
18752 by -fsanitize=undefined. Fix up documentation
18753 of -f{,no-}sanitize-recover.
18755 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
18757 * config.gcc: Add Visium support.
18758 * configure.ac: Likewise.
18759 * configure: Regenerate.
18760 * doc/extend.texi (interrupt attribute): Add Visium.
18761 * doc/invoke.texi: Document Visium options.
18762 * doc/install.texi: Document Visium target.
18763 * doc/md.texi: Document Visium constraints.
18764 * common/config/visium: New directory.
18765 * config/visium: Likewise.
18767 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
18769 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
18770 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
18772 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
18774 * combine.c (combine_validate_cost): Do not count the cost of a
18775 split I2 twice. Do not display it twice in the dump, either.
18777 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
18779 Revert parts of r219199.
18780 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
18782 ([-Wtraditional]): Restore markup on <limits.h>.
18784 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
18787 * doc/invoke.texi: Document -Wsuggest-override.
18789 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
18791 PR rtl-optimization/64287
18792 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
18793 (process_options): Disable flag_ipa_ra if profiling.
18795 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
18797 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
18799 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
18801 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
18802 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
18803 put under #if TARGET_LOOPS guard.
18805 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
18807 * config/i386/i386.c (output_387_binary_op): Use std::swap.
18809 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
18811 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
18812 * rtl.h (refers_to_regno_p): Add overload.
18814 * bt-load.c: Likewise.
18815 * combine.c: Likewise.
18816 * df-scan.c: Likewise.
18817 * sched-deps.c: Likewise.
18818 * config/s390/s390.c: Likewise.
18819 * config/m32r/m32r.c: Likewise.
18820 * config/rs6000/spe.md: Likewise.
18821 * config/rs6000/rs6000.c: Likewise.
18822 * config/pa/pa.c: Likewise.
18823 * config/stormy16/stormy16.c: Likewise.
18824 * config/cris/cris.c: Likewise.
18825 * config/arc/arc.md: Likewise.
18826 * config/arc/arc.c: Likewise.
18827 * config/sh/sh.md: Likewise.
18828 * config/sh/sh.c: Likewise.
18829 * config/frv/frv.c: Likewise.
18831 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18834 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18835 call as cleanup of the whole body.
18836 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18837 * tsan.c (replace_func_exit): New function.
18838 (instrument_func_exit): Moved earlier.
18839 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18840 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18842 (tsan_pass): Don't call instrument_func_exit.
18843 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18844 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18848 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18849 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18850 it to libubsan handler instead of EXPR. Fold comparisons earlier,
18851 if the result is integer_zerop, return NULL_TREE.
18852 * convert.c (convert_to_integer): Pass expr as ARG.
18854 PR tree-optimization/64465
18855 * tree-inline.c (redirect_all_calls): During inlining
18856 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18857 changed the stmt to a non-throwing call.
18859 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
18861 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18862 etc markup throughout the file.
18864 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
18866 Enable experimental TSAN support for Ada.
18867 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18869 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18871 PR tree-optimization/64494
18872 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18873 clear SSA_NAME_ANTI_RANGE_P flag.
18875 2015-01-05 Marek Polacek <polacek@redhat.com>
18877 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18879 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18881 Update copyright years.
18883 * gcc.c (process_command): Update copyright notice dates.
18884 * gcov-dump.c: Ditto.
18886 * doc/cpp.texi: Bump @copying's copyright year.
18887 * doc/cppinternals.texi: Ditto.
18888 * doc/gcc.texi: Ditto.
18889 * doc/gccint.texi: Ditto.
18890 * doc/gcov.texi: Ditto.
18891 * doc/install.texi: Ditto.
18892 * doc/invoke.texi: Ditto.
18894 * auto-profile.c, auto-profile.h: Fix up Copyright line.
18896 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
18898 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18900 ([-fvtable-verify], [-fvtv-debug]): Likewise.
18901 ([-Wabi]): Likewise.
18902 ([-fmessage-length]): Likewise.
18903 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18904 ([-Wno-discarded-qualifiers]): Likewise.
18905 ([-Wnodiscarded-array-qualifiers]): Likewise.
18906 ([-Wno-virtual-move-assign]): Likewise.
18907 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18908 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18909 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18910 ([-fsanitize-undefined-trap-on-error]): Likewise.
18911 ([-floop-interchange]): Likewise.
18912 ([-ftree-coalesce-inlined-vars]): Likewise.
18913 ([-fvect-cost-model]): Likewise.
18914 ([-flto]): Likewise.
18915 ([--param]): Likewise.
18916 (Spec Files): Likewise.
18917 ([-mstrict-align]): Likewise.
18918 ([-mfix-cortex-a53-835769]): Likewise.
18919 ([-march], [-mtune]): Likewise.
18920 ([-mpic-register]): Likewise.
18921 ([-munaligned-access]): Likewise.
18922 ([-msp8]): Likewise.
18923 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18924 (AVR Built-in Macros): Likewise.
18925 ([-mpreferred-stack-boundary]): Likewise.
18926 ([-mtune-crtl]): Likewise.
18927 ([-mashf]): Likewise.
18928 ([-mmcu=]): Likewise.
18929 ([-minrt]): Likewise.
18930 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18931 ([-mupper-regs]): Likewise.
18932 ([-matomic-model]): Likewise.
18933 ([-mdiv]): Likewise.
18934 ([-mzdcbranch]): Likewise.
18935 ([-mdisable-callt]): Likewise.
18936 ([-msoft-float]): Likewise.
18937 ([-m8byte-align]): Likewise.
18938 ([-fstack-reuse]): Likewise.
18940 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18942 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18943 Fix markup, light copy-editing.
18944 ([-fauto-profile]): Rewrite to fix formatting and content
18947 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18949 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18950 Copy-edit description.
18951 ([-fisolate-erroneous-paths-attribute]): Likewise.
18952 * common.opt (fisolate-erroneous-paths-dereference):
18953 Copy-edit description.
18954 (fisolate-erroneous-paths-attribute): Likewise.
18956 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18958 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18961 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18963 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18964 ([-fvtv-debug]): Likewise.
18965 ([-Wc++-compat]): Likewise.
18966 ([-Wc++11-compat]): Likewise.
18967 ([-Wc++14-compat]): Likewise.
18968 ([-Wno-sized-deallocation]): Likewise.
18969 ([-femit-class-debug-always]): Likewise.
18970 ([-femit-struct-debug-detailed]): Likewise.
18971 ([-fno-keep-inline-dllexport]): Likewise.
18972 ([-fira-algorithm]): Likewise.
18973 ([-fira-region]): Likewise.
18974 ([-flra-remat]): Likewise.
18975 ([-fipa-ra]): Likewise.
18976 ([-fhoist-adjacent-loads]): Likewise.
18977 ([-fisolate-erroneous-paths-dereference]): Likewise.
18978 ([-fisolate-erroneous-paths-attribute]): Likewise.
18979 ([-ftree-switch-conversion]): Likewise.
18980 ([-ftree-tail-merge]): Likewise.
18981 ([-ftree-loop-if-convert]): Likewise.
18982 ([-ftree-loop-if-convert-stores]): Likewise.
18983 ([-ftree-loop-distribution]): Likewise.
18984 ([-ftree-loop-distribute-patterns]): Likewise.
18985 ([-flto-compression-level]): Likewise.
18986 ([-flto-report]): Likewise.
18987 ([-flto-report-wpa]): Likewise.
18988 ([-fuse-linker-plugin]): Likewise.
18989 ([-mfix-cortex-a53-835769]): Likewise.
18990 ([-mno-fix-cortex-a53-835769]): Likewise.
18991 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
18992 explicit listing; add a note to the discussion indicating they
18993 exist. Reorder table to group similar options. Add missing
18994 @opindex entries. Add @need commands throughout the table to
18995 allow it to be split across multiple pages.
18996 ([-m8bit-idiv]): Fix @opindex.
18997 ([-mavx256-split-unaligned-load]): Likewise.
18998 ([-mavx256-split-unaligned-store]): Likewise.
18999 ([-mstack-protector-guard]): Likewise.
19000 ([-mcpu=]): Likewise.
19001 ([-mcpu]): Likewise.
19002 ([-mpointer-size=]): Likewise.
19004 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
19006 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
19007 instead of `m' constraint. Likewise for unnamed movb comparison
19008 patterns using reg_before_reload_operand predicate.
19009 * config/pa/predicates.md (reg_before_reload_operand): Tighten
19010 predicate to reject register index and LO_SUM DLT memory forms
19013 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
19015 * doc/invoke.texi (Option Summary): Fix spelling of
19016 -fdevirtualize-at-ltrans.
19017 ([-fdevirtualize]): Fix markup.
19018 ([-fdevirtualize-speculatively]): Fix typo.
19019 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
19020 implementor-speaky.
19021 * common.opt (fdevirtualize-at-ltrans): Likewise.
19022 * ipa-devirt.c: Fix typos in comments throughout the file.
19023 (ipa_devirt): Fix typos in format strings for dump output.
19025 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
19027 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
19028 discussion of defaults, light copy-editing.
19030 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19032 * tsan.c (instrument_expr): corrected previous checkin.
19034 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19036 Instrument bit field and unaligned accesses for TSAN.
19037 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
19038 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
19039 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
19040 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
19041 unaligned memory regions.
19043 2015-01-01 Anthony Green <green@moxielogic.com>
19045 * config/moxie/predicates.md (moxie_general_movsrc_operand):
19046 Restrict move source register offsets to 16 bits.
19048 Copyright (C) 2015 Free Software Foundation, Inc.
19050 Copying and distribution of this file, with or without modification,
19051 are permitted in any medium without royalty provided the copyright
19052 notice and this notice are preserved.